@everymatrix/player-account-controller 1.53.12 → 1.54.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 (96) hide show
  1. package/components/{GeneralLogout-Ddt-oH9k.js → GeneralLogout-CsWa2j6i.js} +1131 -1094
  2. package/components/GeneralLogout-DfI2_eQe.cjs +8 -0
  3. package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-D_8K8e-E.js} +35 -34
  4. package/components/PlayerAccountBettingHistory-ldAp8-yN.cjs +1 -0
  5. package/components/PlayerAccountBiometrics-Cft2jzuJ.cjs +1 -0
  6. package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-FWYyFKmB.js} +1 -1
  7. package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-BJP8eejl.js} +1 -1
  8. package/components/PlayerAccountClosure-DvHhtHhl.cjs +1 -0
  9. package/components/PlayerAccountController-DDLO4xVW.cjs +1 -0
  10. package/components/{PlayerAccountController-BZYAo3oo.js → PlayerAccountController-DQGj69Re.js} +353 -336
  11. package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-Dt8hOZzW.js} +3 -3
  12. package/components/PlayerAccountGamingLimits-EQC_UZag.cjs +1 -0
  13. package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-B6SPYMpk.js} +1 -1
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Ciz1fSFW.cjs +1 -0
  15. package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BG2VPqUz.js} +16 -16
  16. package/components/PlayerAccountGamingLimitsGroupEdit-CLjUmEQv.cjs +10 -0
  17. package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-65MLJ2rD.js} +132 -121
  18. package/components/PlayerAccountGamingLimitsHistory2-CG4RnfZE.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard-Au2vobro.cjs +1 -0
  20. package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-CqTAvCh7.js} +4 -4
  21. package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-C3dTjA-p.js} +768 -737
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-CMnCgRU1.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-BtbGIQFb.cjs +1 -0
  24. package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-diUVGesC.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BmDihzLr.js} +81 -75
  26. package/components/PlayerAccountGamingLimitsWrapper2-CW3N7E83.cjs +1 -0
  27. package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-D3tbAl7Q.js} +1 -1
  28. package/components/PlayerAccountGeneralConfirmationModal-xMxALug3.cjs +1 -0
  29. package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-CbXhpL1a.js} +67 -66
  30. package/components/PlayerAccountMenu-DHGBVm64.cjs +1 -0
  31. package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-5TJbkUF8.js} +1 -1
  32. package/components/PlayerAccountModal-BitbPM3Z.cjs +1 -0
  33. package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-BVY-SXyT.js} +1 -1
  34. package/components/PlayerAccountNotifications-DDu6ZWkh.cjs +1 -0
  35. package/components/PlayerAccountSelfExclusion-9vzbBY28.cjs +3828 -0
  36. package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-BGfuEA4r.js} +1572 -1488
  37. package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-BDDMm0XX.js} +4 -4
  38. package/components/PlayerAccountTimeout-f4vPyQE-.cjs +1 -0
  39. package/components/PlayerActiveBonuses-BVQwAh2z.cjs +1 -0
  40. package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-D0RUTvjl.js} +120 -119
  41. package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-CU67pLmG.js} +2 -2
  42. package/components/PlayerBonusCard-UTTIEBwb.cjs +1 -0
  43. package/components/{PlayerBonusHistory-BxBiQwQf.js → PlayerBonusHistory-BLedlLHg.js} +53 -53
  44. package/components/PlayerBonusHistory-EXOvKzDr.cjs +1 -0
  45. package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-8ZD6eOj-.js} +1 -1
  46. package/components/PlayerChangePassword-XpKJjnFu.cjs +3 -0
  47. package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-D5Xuk21T.js} +1 -1
  48. package/components/PlayerDeposit-Do7vb_4b.cjs +1 -0
  49. package/components/PlayerGamingHistory-OEU1L3Q2.cjs +1 -0
  50. package/components/{PlayerGamingHistory-BtQ73TId.js → PlayerGamingHistory-tb-rMGdz.js} +388 -375
  51. package/components/PlayerPendingWithdrawals-Bu2MOezw.cjs +1 -0
  52. package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-DuN3Qn3P.js} +1 -1
  53. package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-DmKFg0dn.js} +549 -532
  54. package/components/PlayerProfileInfo-lMeb2jBi.cjs +1 -0
  55. package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BUW8tvj3.js} +191 -175
  56. package/components/PlayerRealityCheck-CA0P_3BC.cjs +1 -0
  57. package/components/PlayerTransactionHistory-CvZcvyBx.cjs +1 -0
  58. package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-hGi2tOL2.js} +1 -1
  59. package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-CR3Xpytk.js} +1 -1
  60. package/components/PlayerWithdrawal-DxLwjX7x.cjs +1 -0
  61. package/es2015/player-account-controller.cjs +1 -0
  62. package/es2015/player-account-controller.js +16 -0
  63. package/package.json +33 -12
  64. package/stencil/active-mixin-59dfae2a-1hMz67mM.cjs +1519 -0
  65. package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → active-mixin-59dfae2a-CJN1Jc-g.js} +776 -745
  66. package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
  67. package/stencil/{checkbox-group-input_9-CMFoK7_E.js → checkbox-group-input_9-DQoOMgN8.js} +1942 -1873
  68. package/stencil/checkbox-group-input_9-DiXERGqn.cjs +4193 -0
  69. package/stencil/{general-input-DnFPstQP.js → general-input-bzWxIJkt.js} +1 -1
  70. package/stencil/general-input-fzGwoSoE.cjs +1 -0
  71. package/stencil/index-062e829b-CpXLBOEz.cjs +1 -0
  72. package/stencil/{index-062e829b-DAFsZs6D.js → index-062e829b-DPj_pEuI.js} +236 -220
  73. package/stencil/index-33f005e1-BS5PFnj3.cjs +1 -0
  74. package/stencil/{index-33f005e1-fFxPaeNy.js → index-33f005e1-DGGQe5wK.js} +239 -223
  75. package/stencil/{index-9b3245b3-rzHgwqlB.js → index-9b3245b3-3zj7bxxu.js} +193 -166
  76. package/stencil/index-9b3245b3-ByXtSZIM.cjs +1 -0
  77. package/stencil/{index-fc58390d-BSwfXuUs.js → index-fc58390d-DeoeGpBS.js} +294 -267
  78. package/stencil/index-fc58390d-DgBOSsU7.cjs +1 -0
  79. package/stencil/locale-B5abSHU_.cjs +1 -0
  80. package/stencil/password-input_2-DvDzz75b.cjs +1248 -0
  81. package/stencil/{password-input_2-Bb9Q6Fe0.js → password-input_2-Dx1lICIg.js} +154 -136
  82. package/stencil/player-change-password-gm2-98dcb7bc-CCEw2GA2.cjs +1 -0
  83. package/stencil/{player-change-password-gm2-98dcb7bc-gLcZhl3S.js → player-change-password-gm2-98dcb7bc-F9HM0T8d.js} +1 -1
  84. package/stencil/player-change-password-gm2-BEYcuzS-.cjs +1 -0
  85. package/stencil/player-change-password-gm2-NWnv4CCw.js +25 -0
  86. package/stencil/player-kyc-verification-_iT3bbO9.cjs +180 -0
  87. package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-o-RUWyY4.js} +83 -61
  88. package/stencil/{toggle-checkbox-input-CCLW6-uK.js → toggle-checkbox-input-BCrxxTpc.js} +1 -1
  89. package/stencil/toggle-checkbox-input-BYoIi-jG.cjs +1 -0
  90. package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
  91. package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-DEMVRyvk.js} +197 -175
  92. package/stencil/user-deposit-withdrawal-_jt0Ivg5.cjs +59 -0
  93. package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-CevHOCcm.js} +107 -81
  94. package/stencil/user-transaction-history-U0c__t1q.cjs +1 -0
  95. package/esnext/player-account-controller.js +0 -14
  96. package/stencil/player-change-password-gm2-DR3e2gh5.js +0 -7
@@ -0,0 +1,4193 @@
1
+ "use strict";var Se=(o,t,e)=>new Promise((i,r)=>{var n=u=>{try{l(e.next(u))}catch(h){r(h)}},s=u=>{try{l(e.throw(u))}catch(h){r(h)}},l=u=>u.done?i(u.value):Promise.resolve(u.value).then(n,s);l((e=e.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index-062e829b-CpXLBOEz.cjs"),k=require("./locale-B5abSHU_.cjs"),Q=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),a=require("./active-mixin-59dfae2a-1hMz67mM.cjs");/**
2
+ * @license
3
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */class xo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}a.defineCustomElement(xo);const Ae=(o,...t)=>{a.addGlobalThemeStyles(`lumo-${o}`,t)};/**
6
+ * @license
7
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
8
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
+ */const wo=a.i$3`
10
+ :host {
11
+ /* Base (background) */
12
+ --lumo-base-color: #fff;
13
+
14
+ /* Tint */
15
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
16
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
17
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
18
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
19
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
20
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
21
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
22
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
23
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
24
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
25
+ --lumo-tint: #fff;
26
+
27
+ /* Shade */
28
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
29
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
30
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
31
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
32
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
33
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
34
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
35
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
36
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
37
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
38
+ --lumo-shade: hsl(214, 35%, 15%);
39
+
40
+ /* Contrast */
41
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
42
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
43
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
44
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
45
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
46
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
47
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
48
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
49
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
50
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
51
+ --lumo-contrast: var(--lumo-shade);
52
+
53
+ /* Text */
54
+ --lumo-header-text-color: var(--lumo-contrast);
55
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
56
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
57
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
58
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
59
+
60
+ /* Primary */
61
+ --lumo-primary-color: hsl(214, 100%, 48%);
62
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
63
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
64
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
65
+ --lumo-primary-contrast-color: #fff;
66
+
67
+ /* Error */
68
+ --lumo-error-color: hsl(3, 85%, 48%);
69
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
70
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
71
+ --lumo-error-text-color: hsl(3, 89%, 42%);
72
+ --lumo-error-contrast-color: #fff;
73
+
74
+ /* Success */
75
+ --lumo-success-color: hsl(145, 72%, 30%);
76
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
77
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
78
+ --lumo-success-text-color: hsl(145, 85%, 25%);
79
+ --lumo-success-contrast-color: #fff;
80
+
81
+ /* Warning */
82
+ --lumo-warning-color: hsl(48, 100%, 50%);
83
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
84
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
85
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
86
+ }
87
+
88
+ /* forced-colors mode adjustments */
89
+ @media (forced-colors: active) {
90
+ html {
91
+ --lumo-disabled-text-color: GrayText;
92
+ }
93
+ }
94
+ `;Ae("color-props",wo);const Ao=a.i$3`
95
+ [theme~='dark'] {
96
+ /* Base (background) */
97
+ --lumo-base-color: hsl(214, 35%, 21%);
98
+
99
+ /* Tint */
100
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
101
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
102
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
103
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
104
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
105
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
106
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
107
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
108
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
109
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
110
+ --lumo-tint: hsl(214, 100%, 98%);
111
+
112
+ /* Shade */
113
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
114
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
115
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
116
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
117
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
118
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
119
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
120
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
121
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
122
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
123
+ --lumo-shade: hsl(214, 33%, 13%);
124
+
125
+ /* Contrast */
126
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
127
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
128
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
129
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
130
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
131
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
132
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
133
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
134
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
135
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
136
+ --lumo-contrast: var(--lumo-tint);
137
+
138
+ /* Text */
139
+ --lumo-header-text-color: var(--lumo-contrast);
140
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
141
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
142
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
143
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
144
+
145
+ /* Primary */
146
+ --lumo-primary-color: hsl(214, 90%, 48%);
147
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
148
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
149
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
150
+ --lumo-primary-contrast-color: #fff;
151
+
152
+ /* Error */
153
+ --lumo-error-color: hsl(3, 79%, 49%);
154
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
155
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
156
+ --lumo-error-text-color: hsl(3, 100%, 80%);
157
+
158
+ /* Success */
159
+ --lumo-success-color: hsl(145, 72%, 30%);
160
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
161
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
162
+ --lumo-success-text-color: hsl(145, 85%, 46%);
163
+
164
+ /* Warning */
165
+ --lumo-warning-color: hsl(43, 100%, 48%);
166
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
167
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
168
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
169
+ }
170
+
171
+ html {
172
+ color: var(--lumo-body-text-color);
173
+ background-color: var(--lumo-base-color);
174
+ color-scheme: light;
175
+ }
176
+
177
+ [theme~='dark'] {
178
+ color: var(--lumo-body-text-color);
179
+ background-color: var(--lumo-base-color);
180
+ color-scheme: dark;
181
+ }
182
+
183
+ h1,
184
+ h2,
185
+ h3,
186
+ h4,
187
+ h5,
188
+ h6 {
189
+ color: var(--lumo-header-text-color);
190
+ }
191
+
192
+ a:where(:any-link) {
193
+ color: var(--lumo-primary-text-color);
194
+ }
195
+
196
+ a:not(:any-link) {
197
+ color: var(--lumo-disabled-text-color);
198
+ }
199
+
200
+ blockquote {
201
+ color: var(--lumo-secondary-text-color);
202
+ }
203
+
204
+ code,
205
+ pre {
206
+ background-color: var(--lumo-contrast-10pct);
207
+ border-radius: var(--lumo-border-radius-m);
208
+ }
209
+ `;a.registerStyles("",Ao,{moduleId:"lumo-color"});/**
210
+ * @license
211
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
212
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
213
+ */const Co=a.i$3`
214
+ @font-face {
215
+ font-family: 'lumo-icons';
216
+ src: url(data:application/font-woff;charset=utf-8;base64,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)
217
+ format('woff');
218
+ font-weight: normal;
219
+ font-style: normal;
220
+ }
221
+
222
+ html {
223
+ --lumo-icons-align-center: '\\ea01';
224
+ --lumo-icons-align-left: '\\ea02';
225
+ --lumo-icons-align-right: '\\ea03';
226
+ --lumo-icons-angle-down: '\\ea04';
227
+ --lumo-icons-angle-left: '\\ea05';
228
+ --lumo-icons-angle-right: '\\ea06';
229
+ --lumo-icons-angle-up: '\\ea07';
230
+ --lumo-icons-arrow-down: '\\ea08';
231
+ --lumo-icons-arrow-left: '\\ea09';
232
+ --lumo-icons-arrow-right: '\\ea0a';
233
+ --lumo-icons-arrow-up: '\\ea0b';
234
+ --lumo-icons-bar-chart: '\\ea0c';
235
+ --lumo-icons-bell: '\\ea0d';
236
+ --lumo-icons-calendar: '\\ea0e';
237
+ --lumo-icons-checkmark: '\\ea0f';
238
+ --lumo-icons-chevron-down: '\\ea10';
239
+ --lumo-icons-chevron-left: '\\ea11';
240
+ --lumo-icons-chevron-right: '\\ea12';
241
+ --lumo-icons-chevron-up: '\\ea13';
242
+ --lumo-icons-clock: '\\ea14';
243
+ --lumo-icons-cog: '\\ea15';
244
+ --lumo-icons-cross: '\\ea16';
245
+ --lumo-icons-download: '\\ea17';
246
+ --lumo-icons-dropdown: '\\ea18';
247
+ --lumo-icons-edit: '\\ea19';
248
+ --lumo-icons-error: '\\ea1a';
249
+ --lumo-icons-eye: '\\ea1b';
250
+ --lumo-icons-eye-disabled: '\\ea1c';
251
+ --lumo-icons-menu: '\\ea1d';
252
+ --lumo-icons-minus: '\\ea1e';
253
+ --lumo-icons-ordered-list: '\\ea1f';
254
+ --lumo-icons-phone: '\\ea20';
255
+ --lumo-icons-photo: '\\ea21';
256
+ --lumo-icons-play: '\\ea22';
257
+ --lumo-icons-plus: '\\ea23';
258
+ --lumo-icons-redo: '\\ea24';
259
+ --lumo-icons-reload: '\\ea25';
260
+ --lumo-icons-search: '\\ea26';
261
+ --lumo-icons-undo: '\\ea27';
262
+ --lumo-icons-unordered-list: '\\ea28';
263
+ --lumo-icons-upload: '\\ea29';
264
+ --lumo-icons-user: '\\ea2a';
265
+ }
266
+ `;Ae("font-icons",Co);/**
267
+ * @license
268
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
269
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
270
+ */const ko=a.i$3`
271
+ :host {
272
+ --lumo-size-xs: 1.625rem;
273
+ --lumo-size-s: 1.875rem;
274
+ --lumo-size-m: 2.25rem;
275
+ --lumo-size-l: 2.75rem;
276
+ --lumo-size-xl: 3.5rem;
277
+
278
+ /* Icons */
279
+ --lumo-icon-size-s: 1.25em;
280
+ --lumo-icon-size-m: 1.5em;
281
+ --lumo-icon-size-l: 2.25em;
282
+ /* For backwards compatibility */
283
+ --lumo-icon-size: var(--lumo-icon-size-m);
284
+ }
285
+ `;Ae("sizing-props",ko);/**
286
+ * @license
287
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
288
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
289
+ */const To=a.i$3`
290
+ :host {
291
+ /* Square */
292
+ --lumo-space-xs: 0.25rem;
293
+ --lumo-space-s: 0.5rem;
294
+ --lumo-space-m: 1rem;
295
+ --lumo-space-l: 1.5rem;
296
+ --lumo-space-xl: 2.5rem;
297
+
298
+ /* Wide */
299
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
300
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
301
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
302
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
303
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
304
+
305
+ /* Tall */
306
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
307
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
308
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
309
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
310
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
311
+ }
312
+ `;Ae("spacing-props",To);/**
313
+ * @license
314
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
315
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
316
+ */const Eo=a.i$3`
317
+ :host {
318
+ /* Border radius */
319
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
320
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
321
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
322
+
323
+ /* Shadow */
324
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
325
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
326
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
327
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
328
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
329
+
330
+ /* Clickable element cursor */
331
+ --lumo-clickable-cursor: default;
332
+ }
333
+ `;a.i$3`
334
+ html {
335
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
336
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
337
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
338
+ }
339
+ `;Ae("style-props",Eo);/**
340
+ * @license
341
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
342
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
343
+ */const Do=a.i$3`
344
+ :host {
345
+ /* prettier-ignore */
346
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
347
+
348
+ /* Font sizes */
349
+ --lumo-font-size-xxs: 0.75rem;
350
+ --lumo-font-size-xs: 0.8125rem;
351
+ --lumo-font-size-s: 0.875rem;
352
+ --lumo-font-size-m: 1rem;
353
+ --lumo-font-size-l: 1.125rem;
354
+ --lumo-font-size-xl: 1.375rem;
355
+ --lumo-font-size-xxl: 1.75rem;
356
+ --lumo-font-size-xxxl: 2.5rem;
357
+
358
+ /* Line heights */
359
+ --lumo-line-height-xs: 1.25;
360
+ --lumo-line-height-s: 1.375;
361
+ --lumo-line-height-m: 1.625;
362
+ }
363
+ `,Io=a.i$3`
364
+ body,
365
+ :host {
366
+ font-family: var(--lumo-font-family);
367
+ font-size: var(--lumo-font-size-m);
368
+ line-height: var(--lumo-line-height-m);
369
+ -webkit-text-size-adjust: 100%;
370
+ -webkit-font-smoothing: antialiased;
371
+ -moz-osx-font-smoothing: grayscale;
372
+ }
373
+
374
+ small,
375
+ [theme~='font-size-s'] {
376
+ font-size: var(--lumo-font-size-s);
377
+ line-height: var(--lumo-line-height-s);
378
+ }
379
+
380
+ [theme~='font-size-xs'] {
381
+ font-size: var(--lumo-font-size-xs);
382
+ line-height: var(--lumo-line-height-xs);
383
+ }
384
+
385
+ :where(h1, h2, h3, h4, h5, h6) {
386
+ font-weight: 600;
387
+ line-height: var(--lumo-line-height-xs);
388
+ margin-block: 0;
389
+ }
390
+
391
+ :where(h1) {
392
+ font-size: var(--lumo-font-size-xxxl);
393
+ }
394
+
395
+ :where(h2) {
396
+ font-size: var(--lumo-font-size-xxl);
397
+ }
398
+
399
+ :where(h3) {
400
+ font-size: var(--lumo-font-size-xl);
401
+ }
402
+
403
+ :where(h4) {
404
+ font-size: var(--lumo-font-size-l);
405
+ }
406
+
407
+ :where(h5) {
408
+ font-size: var(--lumo-font-size-m);
409
+ }
410
+
411
+ :where(h6) {
412
+ font-size: var(--lumo-font-size-xs);
413
+ text-transform: uppercase;
414
+ letter-spacing: 0.03em;
415
+ }
416
+
417
+ p,
418
+ blockquote {
419
+ margin-top: 0.5em;
420
+ margin-bottom: 0.75em;
421
+ }
422
+
423
+ a {
424
+ text-decoration: none;
425
+ }
426
+
427
+ a:where(:any-link):hover {
428
+ text-decoration: underline;
429
+ }
430
+
431
+ hr {
432
+ display: block;
433
+ align-self: stretch;
434
+ height: 1px;
435
+ border: 0;
436
+ padding: 0;
437
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
438
+ background-color: var(--lumo-contrast-10pct);
439
+ }
440
+
441
+ blockquote {
442
+ border-left: 2px solid var(--lumo-contrast-30pct);
443
+ }
444
+
445
+ b,
446
+ strong {
447
+ font-weight: 600;
448
+ }
449
+
450
+ /* RTL specific styles */
451
+ blockquote[dir='rtl'] {
452
+ border-left: none;
453
+ border-right: 2px solid var(--lumo-contrast-30pct);
454
+ }
455
+ `;a.registerStyles("",Io,{moduleId:"lumo-typography"});Ae("typography-props",Do);a.registerStyles("vaadin-checkbox",a.i$3`
456
+ :host {
457
+ color: var(--lumo-body-text-color);
458
+ font-size: var(--lumo-font-size-m);
459
+ font-family: var(--lumo-font-family);
460
+ line-height: var(--lumo-line-height-s);
461
+ -webkit-font-smoothing: antialiased;
462
+ -moz-osx-font-smoothing: grayscale;
463
+ -webkit-tap-highlight-color: transparent;
464
+ -webkit-user-select: none;
465
+ -moz-user-select: none;
466
+ user-select: none;
467
+ cursor: default;
468
+ outline: none;
469
+ --_checkbox-size: var(--vaadin-checkbox-size, calc(var(--lumo-size-m) / 2));
470
+ }
471
+
472
+ :host([has-label]) ::slotted(label) {
473
+ padding-block: var(--lumo-space-xs);
474
+ padding-inline: var(--lumo-space-xs) var(--lumo-space-s);
475
+ }
476
+
477
+ [part='checkbox'] {
478
+ width: var(--_checkbox-size);
479
+ height: var(--_checkbox-size);
480
+ margin: var(--lumo-space-xs);
481
+ position: relative;
482
+ border-radius: var(--lumo-border-radius-s);
483
+ background-color: var(--lumo-contrast-20pct);
484
+ transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), background-color 0.15s;
485
+ cursor: var(--lumo-clickable-cursor);
486
+ /* Default field border color */
487
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
488
+ }
489
+
490
+ :host([indeterminate]),
491
+ :host([checked]) {
492
+ --vaadin-input-field-border-color: transparent;
493
+ }
494
+
495
+ :host([indeterminate]) [part='checkbox'],
496
+ :host([checked]) [part='checkbox'] {
497
+ background-color: var(--lumo-primary-color);
498
+ }
499
+
500
+ /* Checkmark */
501
+ [part='checkbox']::after {
502
+ pointer-events: none;
503
+ font-family: 'lumo-icons';
504
+ content: var(--lumo-icons-checkmark);
505
+ color: var(--lumo-primary-contrast-color);
506
+ font-size: calc(var(--_checkbox-size) + 2px);
507
+ line-height: 1;
508
+ position: absolute;
509
+ top: -1px;
510
+ left: -1px;
511
+ contain: content;
512
+ opacity: 0;
513
+ }
514
+
515
+ :host([checked]) [part='checkbox']::after {
516
+ opacity: 1;
517
+ }
518
+
519
+ /* Indeterminate checkmark */
520
+ :host([indeterminate]) [part='checkbox']::after {
521
+ content: '';
522
+ opacity: 1;
523
+ top: 45%;
524
+ height: 10%;
525
+ left: 22%;
526
+ right: 22%;
527
+ width: auto;
528
+ border: 0;
529
+ background-color: var(--lumo-primary-contrast-color);
530
+ }
531
+
532
+ /* Focus ring */
533
+ :host([focus-ring]) [part='checkbox'] {
534
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct),
535
+ inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
536
+ }
537
+
538
+ /* Disabled */
539
+ :host([disabled]) {
540
+ pointer-events: none;
541
+ color: var(--lumo-disabled-text-color);
542
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
543
+ }
544
+
545
+ :host([disabled]) ::slotted(label) {
546
+ color: inherit;
547
+ }
548
+
549
+ :host([disabled]) [part='checkbox'] {
550
+ background-color: var(--lumo-contrast-10pct);
551
+ }
552
+
553
+ :host([disabled]) [part='checkbox']::after {
554
+ color: var(--lumo-contrast-30pct);
555
+ }
556
+
557
+ :host([indeterminate][disabled]) [part='checkbox']::after {
558
+ background-color: var(--lumo-contrast-30pct);
559
+ }
560
+
561
+ /* RTL specific styles */
562
+ :host([dir='rtl'][has-label]) ::slotted(label) {
563
+ padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s);
564
+ }
565
+
566
+ /* Used for activation "halo" */
567
+ [part='checkbox']::before {
568
+ pointer-events: none;
569
+ color: transparent;
570
+ width: 100%;
571
+ height: 100%;
572
+ line-height: var(--_checkbox-size);
573
+ border-radius: inherit;
574
+ background-color: inherit;
575
+ transform: scale(1.4);
576
+ opacity: 0;
577
+ transition: transform 0.1s, opacity 0.8s;
578
+ }
579
+
580
+ /* Hover */
581
+ :host(:not([checked]):not([indeterminate]):not([disabled]):hover) [part='checkbox'] {
582
+ background-color: var(--lumo-contrast-30pct);
583
+ }
584
+
585
+ /* Disable hover for touch devices */
586
+ @media (pointer: coarse) {
587
+ :host(:not([checked]):not([indeterminate]):not([disabled]):hover) [part='checkbox'] {
588
+ background-color: var(--lumo-contrast-20pct);
589
+ }
590
+ }
591
+
592
+ /* Active */
593
+ :host([active]) [part='checkbox'] {
594
+ transform: scale(0.9);
595
+ transition-duration: 0.05s;
596
+ }
597
+
598
+ :host([active][checked]) [part='checkbox'] {
599
+ transform: scale(1.1);
600
+ }
601
+
602
+ :host([active]:not([checked])) [part='checkbox']::before {
603
+ transition-duration: 0.01s, 0.01s;
604
+ transform: scale(0);
605
+ opacity: 0.4;
606
+ }
607
+ `,{moduleId:"lumo-checkbox"});/**
608
+ * @license
609
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
610
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
611
+ */const So=a.dedupingMixin(o=>class extends a.DelegateStateMixin(a.DisabledMixin(a.InputMixin(o))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked)}_toggleChecked(e){this.checked=e}});/**
612
+ * @license
613
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
614
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
615
+ */const Po=o=>class extends a.LabelMixin(So(a.DelegateFocusMixin(a.ActiveMixin(o)))){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 a.InputController(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new a.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)}};/**
616
+ * @license
617
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
618
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
619
+ */const Mo=a.i$3`
620
+ :host {
621
+ display: inline-block;
622
+ }
623
+
624
+ :host([hidden]) {
625
+ display: none !important;
626
+ }
627
+
628
+ :host([disabled]) {
629
+ -webkit-tap-highlight-color: transparent;
630
+ }
631
+
632
+ .vaadin-checkbox-container {
633
+ display: grid;
634
+ grid-template-columns: auto 1fr;
635
+ align-items: baseline;
636
+ }
637
+
638
+ [part='checkbox'],
639
+ ::slotted(input),
640
+ ::slotted(label) {
641
+ grid-row: 1;
642
+ }
643
+
644
+ [part='checkbox'],
645
+ ::slotted(input) {
646
+ grid-column: 1;
647
+ }
648
+
649
+ [part='checkbox'] {
650
+ width: var(--vaadin-checkbox-size, 1em);
651
+ height: var(--vaadin-checkbox-size, 1em);
652
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
653
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
654
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
655
+ }
656
+
657
+ [part='checkbox']::before {
658
+ display: block;
659
+ content: '\\202F';
660
+ line-height: var(--vaadin-checkbox-size, 1em);
661
+ contain: paint;
662
+ }
663
+
664
+ /* visually hidden */
665
+ ::slotted(input) {
666
+ opacity: 0;
667
+ cursor: inherit;
668
+ margin: 0;
669
+ align-self: stretch;
670
+ -webkit-appearance: none;
671
+ width: initial;
672
+ height: initial;
673
+ }
674
+
675
+ @media (forced-colors: active) {
676
+ [part='checkbox'] {
677
+ outline: 1px solid;
678
+ outline-offset: -1px;
679
+ }
680
+
681
+ :host([disabled]) [part='checkbox'],
682
+ :host([disabled]) [part='checkbox']::after {
683
+ outline-color: GrayText;
684
+ }
685
+
686
+ :host(:is([checked], [indeterminate])) [part='checkbox']::after {
687
+ outline: 1px solid;
688
+ outline-offset: -1px;
689
+ border-radius: inherit;
690
+ }
691
+
692
+ :host([focused]) [part='checkbox'],
693
+ :host([focused]) [part='checkbox']::after {
694
+ outline-width: 2px;
695
+ }
696
+ }
697
+ `;/**
698
+ * @license
699
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
700
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
701
+ */a.registerStyles("vaadin-checkbox",Mo,{moduleId:"vaadin-checkbox-styles"});class or extends Po(a.ElementMixin(a.ThemableMixin(a.PolymerElement))){static get is(){return"vaadin-checkbox"}static get template(){return a.html`
702
+ <div class="vaadin-checkbox-container">
703
+ <div part="checkbox" aria-hidden="true"></div>
704
+ <slot name="input"></slot>
705
+ <slot name="label"></slot>
706
+ </div>
707
+ <slot name="tooltip"></slot>
708
+ `}ready(){super.ready(),this._tooltipController=new a.TooltipController(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}a.defineCustomElement(or);/**
709
+ * @license
710
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
711
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
712
+ */const sr=a.i$3`
713
+ :host([has-helper]) [part='helper-text']::before {
714
+ content: '';
715
+ display: block;
716
+ height: 0.4em;
717
+ }
718
+
719
+ [part='helper-text'] {
720
+ display: block;
721
+ color: var(--lumo-secondary-text-color);
722
+ font-size: var(--lumo-font-size-xs);
723
+ line-height: var(--lumo-line-height-xs);
724
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
725
+ transition: color 0.2s;
726
+ }
727
+
728
+ :host(:hover:not([readonly])) [part='helper-text'] {
729
+ color: var(--lumo-body-text-color);
730
+ }
731
+
732
+ :host([disabled]) [part='helper-text'] {
733
+ color: var(--lumo-disabled-text-color);
734
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
735
+ }
736
+
737
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
738
+ display: none;
739
+ }
740
+
741
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
742
+ content: '';
743
+ display: block;
744
+ height: 0.4em;
745
+ }
746
+
747
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
748
+ order: 0;
749
+ padding-bottom: 0.4em;
750
+ }
751
+
752
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
753
+ order: 1;
754
+ }
755
+
756
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
757
+ order: 2;
758
+ }
759
+
760
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
761
+ order: 3;
762
+ }
763
+ `;/**
764
+ * @license
765
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
766
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
767
+ */const jt=a.i$3`
768
+ [part='label'] {
769
+ align-self: flex-start;
770
+ color: var(--lumo-secondary-text-color);
771
+ font-weight: 500;
772
+ font-size: var(--lumo-font-size-s);
773
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
774
+ transition: color 0.2s;
775
+ line-height: 1;
776
+ padding-right: 1em;
777
+ padding-bottom: 0.5em;
778
+ /* As a workaround for diacritics being cut off, add a top padding and a
779
+ negative margin to compensate */
780
+ padding-top: 0.25em;
781
+ margin-top: -0.25em;
782
+ overflow: hidden;
783
+ white-space: nowrap;
784
+ text-overflow: ellipsis;
785
+ position: relative;
786
+ max-width: 100%;
787
+ box-sizing: border-box;
788
+ }
789
+
790
+ :host([has-label])::before {
791
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
792
+ }
793
+
794
+ :host([has-label][theme~='small'])::before {
795
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
796
+ }
797
+
798
+ :host([has-label]) {
799
+ padding-top: var(--lumo-space-m);
800
+ }
801
+
802
+ :host([has-label]) ::slotted([slot='tooltip']) {
803
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
804
+ }
805
+
806
+ :host([required]) [part='required-indicator']::after {
807
+ content: var(--lumo-required-field-indicator, '\\2022');
808
+ transition: opacity 0.2s;
809
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
810
+ position: absolute;
811
+ right: 0;
812
+ width: 1em;
813
+ text-align: center;
814
+ }
815
+
816
+ :host([invalid]) [part='required-indicator']::after {
817
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
818
+ }
819
+
820
+ [part='error-message'] {
821
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
822
+ font-size: var(--lumo-font-size-xs);
823
+ line-height: var(--lumo-line-height-xs);
824
+ color: var(--lumo-error-text-color);
825
+ will-change: max-height;
826
+ transition: 0.4s max-height;
827
+ max-height: 5em;
828
+ }
829
+
830
+ :host([has-error-message]) [part='error-message']::before,
831
+ :host([has-error-message]) [part='error-message']::after {
832
+ content: '';
833
+ display: block;
834
+ height: 0.4em;
835
+ }
836
+
837
+ :host(:not([invalid])) [part='error-message'] {
838
+ max-height: 0;
839
+ overflow: hidden;
840
+ }
841
+
842
+ /* RTL specific styles */
843
+
844
+ :host([dir='rtl']) [part='label'] {
845
+ margin-left: 0;
846
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
847
+ }
848
+
849
+ :host([dir='rtl']) [part='label'] {
850
+ padding-left: 1em;
851
+ padding-right: 0;
852
+ }
853
+
854
+ :host([dir='rtl']) [part='required-indicator']::after {
855
+ right: auto;
856
+ left: 0;
857
+ }
858
+
859
+ :host([dir='rtl']) [part='error-message'] {
860
+ margin-left: 0;
861
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
862
+ }
863
+ `;a.registerStyles("",jt,{moduleId:"lumo-required-field"});const Oo=a.i$3`
864
+ :host {
865
+ color: var(--lumo-body-text-color);
866
+ font-size: var(--lumo-font-size-m);
867
+ font-family: var(--lumo-font-family);
868
+ -webkit-font-smoothing: antialiased;
869
+ -moz-osx-font-smoothing: grayscale;
870
+ -webkit-tap-highlight-color: transparent;
871
+ padding: var(--lumo-space-xs) 0;
872
+ }
873
+
874
+ :host::before {
875
+ /* Effective height of vaadin-checkbox */
876
+ height: var(--lumo-size-s);
877
+ box-sizing: border-box;
878
+ display: inline-flex;
879
+ align-items: center;
880
+ }
881
+
882
+ :host([theme~='vertical']) [part='group-field'] {
883
+ flex-direction: column;
884
+ }
885
+
886
+ :host([disabled]) [part='label'] {
887
+ color: var(--lumo-disabled-text-color);
888
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
889
+ }
890
+
891
+ :host([focused]:not([disabled])) [part='label'] {
892
+ color: var(--lumo-primary-text-color);
893
+ }
894
+
895
+ :host(:hover:not([disabled]):not([focused])) [part='label'],
896
+ :host(:hover:not([disabled]):not([focused])) [part='helper-text'] {
897
+ color: var(--lumo-body-text-color);
898
+ }
899
+
900
+ /* Touch device adjustment */
901
+ @media (pointer: coarse) {
902
+ :host(:hover:not([disabled]):not([focused])) [part='label'] {
903
+ color: var(--lumo-secondary-text-color);
904
+ }
905
+ }
906
+ `;a.registerStyles("vaadin-checkbox-group",[jt,sr,Oo],{moduleId:"lumo-checkbox-group"});/**
907
+ * @license
908
+ * Copyright (c) 2018 - 2023 Vaadin Ltd.
909
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
910
+ */class $o extends a.FieldMixin(a.FocusMixin(a.DisabledMixin(a.ElementMixin(a.ThemableMixin(a.PolymerElement))))){static get is(){return"vaadin-checkbox-group"}static get template(){return a.html`
911
+ <style>
912
+ :host {
913
+ display: inline-flex;
914
+ }
915
+
916
+ :host::before {
917
+ content: '\\2003';
918
+ width: 0;
919
+ display: inline-block;
920
+ }
921
+
922
+ :host([hidden]) {
923
+ display: none !important;
924
+ }
925
+
926
+ .vaadin-group-field-container {
927
+ display: flex;
928
+ flex-direction: column;
929
+ width: 100%;
930
+ }
931
+
932
+ [part='group-field'] {
933
+ display: flex;
934
+ flex-wrap: wrap;
935
+ }
936
+
937
+ :host(:not([has-label])) [part='label'] {
938
+ display: none;
939
+ }
940
+ </style>
941
+
942
+ <div class="vaadin-group-field-container">
943
+ <div part="label">
944
+ <slot name="label"></slot>
945
+ <span part="required-indicator" aria-hidden="true"></span>
946
+ </div>
947
+
948
+ <div part="group-field">
949
+ <slot></slot>
950
+ </div>
951
+
952
+ <div part="helper-text">
953
+ <slot name="helper"></slot>
954
+ </div>
955
+
956
+ <div part="error-message">
957
+ <slot name="error-message"></slot>
958
+ </div>
959
+ </div>
960
+
961
+ <slot name="tooltip"></slot>
962
+ `}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 a.TooltipController(this),this._tooltipController.addEventListener("tooltip-changed",t=>{const e=t.detail.node;if(e&&e.isConnected){const i=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new a.SlotObserver(t,({addedNodes:e,removedNodes:i})=>{const r=this.__filterCheckboxes(e),n=this.__filterCheckboxes(i);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const s=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(s),this.__warnOfCheckboxesWithoutValue(r)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||this.value.length>0}__filterCheckboxes(t){return t.filter(e=>e instanceof or)}__warnOfCheckboxesWithoutValue(t){t.some(i=>{const{value:r}=i;return!i.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(t){t.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(t.disabled=!0),t.checked?this.__addCheckboxToValue(t.value):this.value.includes(t.value)&&(t.checked=!0)}__unregisterCheckbox(t){t.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),t.checked&&this.__removeCheckboxFromValue(t.value)}_disabledChanged(t,e){super._disabledChanged(t,e),!(!t&&e===void 0)&&e!==t&&this.__checkboxes.forEach(i=>{i.disabled=t})}__addCheckboxToValue(t){this.value.includes(t)||(this.value=[...this.value,t])}__removeCheckboxFromValue(t){this.value.includes(t)&&(this.value=this.value.filter(e=>e!==t))}__onCheckboxCheckedChanged(t){const e=t.target;e.checked?this.__addCheckboxToValue(e.value):this.__removeCheckboxFromValue(e.value)}__valueChanged(t,e){t.length===0&&e===void 0||(this.toggleAttribute("has-value",t.length>0),this.__checkboxes.forEach(i=>{i.checked=t.includes(i.value)}),e!==void 0&&this.validate())}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}}a.defineCustomElement($o);const Vo='*,*::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[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}',zo=Vo,nr=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.value=null,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}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((o,t)=>(o[t.name]=this.selectedValues.includes(t.name),o),{}),this.emitValueHandler(!0)}validityStateHandler(o){this.sendValidityState.emit(o)}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.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(o=>o.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 k.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?p.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}handleParentCheckbox(o){this.selectedValues=o.target.checked?this.options.map(t=>t.name):[]}renderLabel(){return p.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},p.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return p.h("div",{key:"fa45026502fd8d46aa537aee03210ad68d30e577",class:`checkboxgroup__wrapper ${this.name}__input`,ref:o=>this.stylingContainer=o},p.h("div",{key:"15ded4fd896920c6244806e49f300c124c27186d",class:"checkboxgroup__wrapper--flex"},p.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:o=>this.handleParentCheckbox(o)},this.renderLabel()),this.tooltip&&p.h("img",{key:"aca39ed398415a6e2cef861be40dad33e0398759",class:"checkboxgroup__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:o=>this.tooltipIconReference=o,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),p.h("small",{key:"a1a6e1c3c02edcca572b8826ffba06835ca451c3",class:"checkboxgroup__error-message"},this.errorMessage),p.h("vaadin-checkbox-group",{key:"9f5f8a945e4ba13d7d0da6d362c15d00a7796b71",theme:"vertical",value:this.selectedValues,"on-value-changed":o=>{this.selectedValues=o.detail.value}},this.options.map(o=>p.h("vaadin-checkbox",{class:"checkbox__input",name:o.name,value:o.name,label:o.displayName}))))}get element(){return p.getElement(this)}static get watchers(){return{isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};nr.style=zo;const Fo='*,*::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}',Ho=Fo,ar=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(o){this.sendValidityState.emit(o)}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.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 k.translate("requiredError",this.language)}renderLabel(){return p.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},p.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?p.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){return p.h("div",{key:"0aae00d291d1da02adae1bc91e79ccd579aa5c7f",class:`checkbox__wrapper ${this.name}__input`,ref:o=>this.stylingContainer=o},p.h("input",{key:"4b8c61d322b5065d8abe4e2687e270511fadc97f",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:o=>this.inputReference=o,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),p.h("small",{key:"934263cb58a0d379e8b7dc1f5004ad7e61c63ce0",class:"checkbox__error-message"},this.errorMessage),p.h("div",{key:"88cc71329d88b6325d792226e64ff7f93e940178",class:"checkbox__wrapper--relative"},this.tooltip&&p.h("img",{key:"3708dc613dc920bac6557f2a8020bbafd97d9127",class:"checkbox__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:o=>this.tooltipIconReference=o,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ar.style=Ho;/**
963
+ * @license
964
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
965
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
966
+ */class Ro extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}a.defineCustomElement(Ro);const Ce=(o,...t)=>{a.addGlobalThemeStyles(`lumo-${o}`,t)};/**
967
+ * @license
968
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
969
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
970
+ */const Lo=a.i$3`
971
+ :host {
972
+ --lumo-size-xs: 1.625rem;
973
+ --lumo-size-s: 1.875rem;
974
+ --lumo-size-m: 2.25rem;
975
+ --lumo-size-l: 2.75rem;
976
+ --lumo-size-xl: 3.5rem;
977
+
978
+ /* Icons */
979
+ --lumo-icon-size-s: 1.25em;
980
+ --lumo-icon-size-m: 1.5em;
981
+ --lumo-icon-size-l: 2.25em;
982
+ /* For backwards compatibility */
983
+ --lumo-icon-size: var(--lumo-icon-size-m);
984
+ }
985
+ `;Ce("sizing-props",Lo);/**
986
+ * @license
987
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
988
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
989
+ */const Bo=a.i$3`
990
+ :host {
991
+ /* Square */
992
+ --lumo-space-xs: 0.25rem;
993
+ --lumo-space-s: 0.5rem;
994
+ --lumo-space-m: 1rem;
995
+ --lumo-space-l: 1.5rem;
996
+ --lumo-space-xl: 2.5rem;
997
+
998
+ /* Wide */
999
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1000
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1001
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1002
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1003
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1004
+
1005
+ /* Tall */
1006
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1007
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1008
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1009
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1010
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1011
+ }
1012
+ `;Ce("spacing-props",Bo);/**
1013
+ * @license
1014
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1015
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1016
+ */const Uo=a.i$3`
1017
+ :host {
1018
+ /* Border radius */
1019
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
1020
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
1021
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
1022
+
1023
+ /* Shadow */
1024
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
1025
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
1026
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
1027
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
1028
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
1029
+
1030
+ /* Clickable element cursor */
1031
+ --lumo-clickable-cursor: default;
1032
+ }
1033
+ `;a.i$3`
1034
+ html {
1035
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
1036
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1037
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1038
+ }
1039
+ `;Ce("style-props",Uo);/**
1040
+ * @license
1041
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1042
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1043
+ */const No=a.i$3`
1044
+ :host {
1045
+ /* Base (background) */
1046
+ --lumo-base-color: #fff;
1047
+
1048
+ /* Tint */
1049
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
1050
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
1051
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
1052
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
1053
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
1054
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
1055
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
1056
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
1057
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
1058
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
1059
+ --lumo-tint: #fff;
1060
+
1061
+ /* Shade */
1062
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
1063
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
1064
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
1065
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
1066
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
1067
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
1068
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
1069
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
1070
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
1071
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
1072
+ --lumo-shade: hsl(214, 35%, 15%);
1073
+
1074
+ /* Contrast */
1075
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
1076
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
1077
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
1078
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
1079
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
1080
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
1081
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
1082
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
1083
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
1084
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
1085
+ --lumo-contrast: var(--lumo-shade);
1086
+
1087
+ /* Text */
1088
+ --lumo-header-text-color: var(--lumo-contrast);
1089
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1090
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1091
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1092
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1093
+
1094
+ /* Primary */
1095
+ --lumo-primary-color: hsl(214, 100%, 48%);
1096
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
1097
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
1098
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
1099
+ --lumo-primary-contrast-color: #fff;
1100
+
1101
+ /* Error */
1102
+ --lumo-error-color: hsl(3, 85%, 48%);
1103
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
1104
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
1105
+ --lumo-error-text-color: hsl(3, 89%, 42%);
1106
+ --lumo-error-contrast-color: #fff;
1107
+
1108
+ /* Success */
1109
+ --lumo-success-color: hsl(145, 72%, 30%);
1110
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
1111
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
1112
+ --lumo-success-text-color: hsl(145, 85%, 25%);
1113
+ --lumo-success-contrast-color: #fff;
1114
+
1115
+ /* Warning */
1116
+ --lumo-warning-color: hsl(48, 100%, 50%);
1117
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
1118
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
1119
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1120
+ }
1121
+
1122
+ /* forced-colors mode adjustments */
1123
+ @media (forced-colors: active) {
1124
+ html {
1125
+ --lumo-disabled-text-color: GrayText;
1126
+ }
1127
+ }
1128
+ `;Ce("color-props",No);const Yo=a.i$3`
1129
+ [theme~='dark'] {
1130
+ /* Base (background) */
1131
+ --lumo-base-color: hsl(214, 35%, 21%);
1132
+
1133
+ /* Tint */
1134
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
1135
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
1136
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
1137
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
1138
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
1139
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
1140
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
1141
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
1142
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
1143
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
1144
+ --lumo-tint: hsl(214, 100%, 98%);
1145
+
1146
+ /* Shade */
1147
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1148
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1149
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1150
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1151
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1152
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1153
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1154
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1155
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1156
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1157
+ --lumo-shade: hsl(214, 33%, 13%);
1158
+
1159
+ /* Contrast */
1160
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
1161
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
1162
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
1163
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
1164
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
1165
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
1166
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
1167
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
1168
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
1169
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
1170
+ --lumo-contrast: var(--lumo-tint);
1171
+
1172
+ /* Text */
1173
+ --lumo-header-text-color: var(--lumo-contrast);
1174
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1175
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1176
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1177
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1178
+
1179
+ /* Primary */
1180
+ --lumo-primary-color: hsl(214, 90%, 48%);
1181
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1182
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1183
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
1184
+ --lumo-primary-contrast-color: #fff;
1185
+
1186
+ /* Error */
1187
+ --lumo-error-color: hsl(3, 79%, 49%);
1188
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1189
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1190
+ --lumo-error-text-color: hsl(3, 100%, 80%);
1191
+
1192
+ /* Success */
1193
+ --lumo-success-color: hsl(145, 72%, 30%);
1194
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1195
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1196
+ --lumo-success-text-color: hsl(145, 85%, 46%);
1197
+
1198
+ /* Warning */
1199
+ --lumo-warning-color: hsl(43, 100%, 48%);
1200
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1201
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
1202
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1203
+ }
1204
+
1205
+ html {
1206
+ color: var(--lumo-body-text-color);
1207
+ background-color: var(--lumo-base-color);
1208
+ color-scheme: light;
1209
+ }
1210
+
1211
+ [theme~='dark'] {
1212
+ color: var(--lumo-body-text-color);
1213
+ background-color: var(--lumo-base-color);
1214
+ color-scheme: dark;
1215
+ }
1216
+
1217
+ h1,
1218
+ h2,
1219
+ h3,
1220
+ h4,
1221
+ h5,
1222
+ h6 {
1223
+ color: var(--lumo-header-text-color);
1224
+ }
1225
+
1226
+ a:where(:any-link) {
1227
+ color: var(--lumo-primary-text-color);
1228
+ }
1229
+
1230
+ a:not(:any-link) {
1231
+ color: var(--lumo-disabled-text-color);
1232
+ }
1233
+
1234
+ blockquote {
1235
+ color: var(--lumo-secondary-text-color);
1236
+ }
1237
+
1238
+ code,
1239
+ pre {
1240
+ background-color: var(--lumo-contrast-10pct);
1241
+ border-radius: var(--lumo-border-radius-m);
1242
+ }
1243
+ `;a.registerStyles("",Yo,{moduleId:"lumo-color"});/**
1244
+ * @license
1245
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1246
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1247
+ */const Wo=a.i$3`
1248
+ :host {
1249
+ /* prettier-ignore */
1250
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1251
+
1252
+ /* Font sizes */
1253
+ --lumo-font-size-xxs: 0.75rem;
1254
+ --lumo-font-size-xs: 0.8125rem;
1255
+ --lumo-font-size-s: 0.875rem;
1256
+ --lumo-font-size-m: 1rem;
1257
+ --lumo-font-size-l: 1.125rem;
1258
+ --lumo-font-size-xl: 1.375rem;
1259
+ --lumo-font-size-xxl: 1.75rem;
1260
+ --lumo-font-size-xxxl: 2.5rem;
1261
+
1262
+ /* Line heights */
1263
+ --lumo-line-height-xs: 1.25;
1264
+ --lumo-line-height-s: 1.375;
1265
+ --lumo-line-height-m: 1.625;
1266
+ }
1267
+ `,qo=a.i$3`
1268
+ body,
1269
+ :host {
1270
+ font-family: var(--lumo-font-family);
1271
+ font-size: var(--lumo-font-size-m);
1272
+ line-height: var(--lumo-line-height-m);
1273
+ -webkit-text-size-adjust: 100%;
1274
+ -webkit-font-smoothing: antialiased;
1275
+ -moz-osx-font-smoothing: grayscale;
1276
+ }
1277
+
1278
+ small,
1279
+ [theme~='font-size-s'] {
1280
+ font-size: var(--lumo-font-size-s);
1281
+ line-height: var(--lumo-line-height-s);
1282
+ }
1283
+
1284
+ [theme~='font-size-xs'] {
1285
+ font-size: var(--lumo-font-size-xs);
1286
+ line-height: var(--lumo-line-height-xs);
1287
+ }
1288
+
1289
+ :where(h1, h2, h3, h4, h5, h6) {
1290
+ font-weight: 600;
1291
+ line-height: var(--lumo-line-height-xs);
1292
+ margin-block: 0;
1293
+ }
1294
+
1295
+ :where(h1) {
1296
+ font-size: var(--lumo-font-size-xxxl);
1297
+ }
1298
+
1299
+ :where(h2) {
1300
+ font-size: var(--lumo-font-size-xxl);
1301
+ }
1302
+
1303
+ :where(h3) {
1304
+ font-size: var(--lumo-font-size-xl);
1305
+ }
1306
+
1307
+ :where(h4) {
1308
+ font-size: var(--lumo-font-size-l);
1309
+ }
1310
+
1311
+ :where(h5) {
1312
+ font-size: var(--lumo-font-size-m);
1313
+ }
1314
+
1315
+ :where(h6) {
1316
+ font-size: var(--lumo-font-size-xs);
1317
+ text-transform: uppercase;
1318
+ letter-spacing: 0.03em;
1319
+ }
1320
+
1321
+ p,
1322
+ blockquote {
1323
+ margin-top: 0.5em;
1324
+ margin-bottom: 0.75em;
1325
+ }
1326
+
1327
+ a {
1328
+ text-decoration: none;
1329
+ }
1330
+
1331
+ a:where(:any-link):hover {
1332
+ text-decoration: underline;
1333
+ }
1334
+
1335
+ hr {
1336
+ display: block;
1337
+ align-self: stretch;
1338
+ height: 1px;
1339
+ border: 0;
1340
+ padding: 0;
1341
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1342
+ background-color: var(--lumo-contrast-10pct);
1343
+ }
1344
+
1345
+ blockquote {
1346
+ border-left: 2px solid var(--lumo-contrast-30pct);
1347
+ }
1348
+
1349
+ b,
1350
+ strong {
1351
+ font-weight: 600;
1352
+ }
1353
+
1354
+ /* RTL specific styles */
1355
+ blockquote[dir='rtl'] {
1356
+ border-left: none;
1357
+ border-right: 2px solid var(--lumo-contrast-30pct);
1358
+ }
1359
+ `;a.registerStyles("",qo,{moduleId:"lumo-typography"});Ce("typography-props",Wo);/**
1360
+ * @license
1361
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1362
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1363
+ */const lr=a.i$3`
1364
+ :host {
1365
+ top: var(--lumo-space-m);
1366
+ right: var(--lumo-space-m);
1367
+ bottom: var(--lumo-space-m);
1368
+ left: var(--lumo-space-m);
1369
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
1370
+ /* stylelint-disable-next-line */
1371
+ outline: 0px solid transparent;
1372
+ }
1373
+
1374
+ [part='overlay'] {
1375
+ background-color: var(--lumo-base-color);
1376
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1377
+ border-radius: var(--lumo-border-radius-m);
1378
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
1379
+ color: var(--lumo-body-text-color);
1380
+ font-family: var(--lumo-font-family);
1381
+ font-size: var(--lumo-font-size-m);
1382
+ font-weight: 400;
1383
+ line-height: var(--lumo-line-height-m);
1384
+ letter-spacing: 0;
1385
+ text-transform: none;
1386
+ -webkit-text-size-adjust: 100%;
1387
+ -webkit-font-smoothing: antialiased;
1388
+ -moz-osx-font-smoothing: grayscale;
1389
+ }
1390
+
1391
+ [part='content'] {
1392
+ padding: var(--lumo-space-xs);
1393
+ }
1394
+
1395
+ [part='backdrop'] {
1396
+ background-color: var(--lumo-shade-20pct);
1397
+ animation: 0.2s lumo-overlay-backdrop-enter both;
1398
+ will-change: opacity;
1399
+ }
1400
+
1401
+ @keyframes lumo-overlay-backdrop-enter {
1402
+ 0% {
1403
+ opacity: 0;
1404
+ }
1405
+ }
1406
+
1407
+ :host([closing]) [part='backdrop'] {
1408
+ animation: 0.2s lumo-overlay-backdrop-exit both;
1409
+ }
1410
+
1411
+ @keyframes lumo-overlay-backdrop-exit {
1412
+ 100% {
1413
+ opacity: 0;
1414
+ }
1415
+ }
1416
+
1417
+ @keyframes lumo-overlay-dummy-animation {
1418
+ 0% {
1419
+ opacity: 1;
1420
+ }
1421
+
1422
+ 100% {
1423
+ opacity: 1;
1424
+ }
1425
+ }
1426
+ `;a.registerStyles("",lr,{moduleId:"lumo-overlay"});/**
1427
+ * @license
1428
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1429
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1430
+ */const ur=a.i$3`
1431
+ :host([opening]),
1432
+ :host([closing]) {
1433
+ animation: 0.14s lumo-overlay-dummy-animation;
1434
+ }
1435
+
1436
+ [part='overlay'] {
1437
+ will-change: opacity, transform;
1438
+ }
1439
+
1440
+ :host([opening]) [part='overlay'] {
1441
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
1442
+ }
1443
+
1444
+ @keyframes lumo-menu-overlay-enter {
1445
+ 0% {
1446
+ opacity: 0;
1447
+ transform: translateY(-4px);
1448
+ }
1449
+ }
1450
+
1451
+ :host([closing]) [part='overlay'] {
1452
+ animation: 0.1s lumo-menu-overlay-exit both;
1453
+ }
1454
+
1455
+ @keyframes lumo-menu-overlay-exit {
1456
+ 100% {
1457
+ opacity: 0;
1458
+ }
1459
+ }
1460
+ `;a.registerStyles("",ur,{moduleId:"lumo-menu-overlay-core"});const jo=a.i$3`
1461
+ /* Small viewport (bottom sheet) styles */
1462
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
1463
+ @media (max-width: 420px), (max-height: 420px) {
1464
+ :host {
1465
+ top: 0 !important;
1466
+ right: 0 !important;
1467
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
1468
+ left: 0 !important;
1469
+ align-items: stretch !important;
1470
+ justify-content: flex-end !important;
1471
+ }
1472
+
1473
+ [part='overlay'] {
1474
+ max-height: 50vh;
1475
+ width: 100vw;
1476
+ border-radius: 0;
1477
+ box-shadow: var(--lumo-box-shadow-xl);
1478
+ }
1479
+
1480
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
1481
+ [part='content'] {
1482
+ padding: 30px var(--lumo-space-m);
1483
+ max-height: inherit;
1484
+ box-sizing: border-box;
1485
+ -webkit-overflow-scrolling: touch;
1486
+ overflow: auto;
1487
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1488
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1489
+ }
1490
+
1491
+ [part='backdrop'] {
1492
+ display: block;
1493
+ }
1494
+
1495
+ /* Animations */
1496
+
1497
+ :host([opening]) [part='overlay'] {
1498
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
1499
+ }
1500
+
1501
+ :host([closing]),
1502
+ :host([closing]) [part='backdrop'] {
1503
+ animation-delay: 0.14s;
1504
+ }
1505
+
1506
+ :host([closing]) [part='overlay'] {
1507
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
1508
+ }
1509
+ }
1510
+
1511
+ @keyframes lumo-mobile-menu-overlay-enter {
1512
+ 0% {
1513
+ transform: translateY(150%);
1514
+ }
1515
+ }
1516
+
1517
+ @keyframes lumo-mobile-menu-overlay-exit {
1518
+ 100% {
1519
+ transform: translateY(150%);
1520
+ }
1521
+ }
1522
+ `,hr=[lr,ur,jo];a.registerStyles("",hr,{moduleId:"lumo-menu-overlay"});const Go=a.i$3`
1523
+ [part='overlay'] {
1524
+ /*
1525
+ Width:
1526
+ date cell widths
1527
+ + month calendar side padding
1528
+ + year scroller width
1529
+ */
1530
+ /* prettier-ignore */
1531
+ width:
1532
+ calc(
1533
+ var(--lumo-size-m) * 7
1534
+ + var(--lumo-space-xs) * 2
1535
+ + 57px
1536
+ );
1537
+ height: 100%;
1538
+ max-height: calc(var(--lumo-size-m) * 14);
1539
+ overflow: hidden;
1540
+ -webkit-tap-highlight-color: transparent;
1541
+ }
1542
+
1543
+ [part='overlay'] {
1544
+ flex-direction: column;
1545
+ }
1546
+
1547
+ [part='content'] {
1548
+ padding: 0;
1549
+ height: 100%;
1550
+ overflow: hidden;
1551
+ -webkit-mask-image: none;
1552
+ mask-image: none;
1553
+ }
1554
+
1555
+ :host([top-aligned]) [part~='overlay'] {
1556
+ margin-top: var(--lumo-space-xs);
1557
+ }
1558
+
1559
+ :host([bottom-aligned]) [part~='overlay'] {
1560
+ margin-bottom: var(--lumo-space-xs);
1561
+ }
1562
+
1563
+ @media (max-width: 420px), (max-height: 420px) {
1564
+ [part='overlay'] {
1565
+ width: 100vw;
1566
+ height: 70vh;
1567
+ max-height: 70vh;
1568
+ }
1569
+ }
1570
+ `;a.registerStyles("vaadin-date-picker-overlay",[hr,Go],{moduleId:"lumo-date-picker-overlay"});const Ko=a.i$3`
1571
+ :host {
1572
+ /* Sizing */
1573
+ --lumo-button-size: var(--lumo-size-m);
1574
+ min-width: calc(var(--lumo-button-size) * 2);
1575
+ height: var(--lumo-button-size);
1576
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
1577
+ margin: var(--lumo-space-xs) 0;
1578
+ box-sizing: border-box;
1579
+ /* Style */
1580
+ font-family: var(--lumo-font-family);
1581
+ font-size: var(--lumo-font-size-m);
1582
+ font-weight: 500;
1583
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
1584
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
1585
+ border-radius: var(--lumo-border-radius-m);
1586
+ cursor: var(--lumo-clickable-cursor);
1587
+ -webkit-tap-highlight-color: transparent;
1588
+ -webkit-font-smoothing: antialiased;
1589
+ -moz-osx-font-smoothing: grayscale;
1590
+ flex-shrink: 0;
1591
+ }
1592
+
1593
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
1594
+ [part='label'],
1595
+ [part='prefix'],
1596
+ [part='suffix'] {
1597
+ line-height: var(--lumo-line-height-xs);
1598
+ }
1599
+
1600
+ [part='label'] {
1601
+ padding: calc(var(--lumo-button-size) / 6) 0;
1602
+ }
1603
+
1604
+ :host([theme~='small']) {
1605
+ font-size: var(--lumo-font-size-s);
1606
+ --lumo-button-size: var(--lumo-size-s);
1607
+ }
1608
+
1609
+ :host([theme~='large']) {
1610
+ font-size: var(--lumo-font-size-l);
1611
+ --lumo-button-size: var(--lumo-size-l);
1612
+ }
1613
+
1614
+ /* For interaction states */
1615
+ :host::before,
1616
+ :host::after {
1617
+ content: '';
1618
+ /* We rely on the host always being relative */
1619
+ position: absolute;
1620
+ z-index: 1;
1621
+ inset: 0;
1622
+ background-color: currentColor;
1623
+ border-radius: inherit;
1624
+ opacity: 0;
1625
+ pointer-events: none;
1626
+ }
1627
+
1628
+ /* Hover */
1629
+
1630
+ @media (any-hover: hover) {
1631
+ :host(:hover)::before {
1632
+ opacity: 0.02;
1633
+ }
1634
+ }
1635
+
1636
+ /* Active */
1637
+
1638
+ :host::after {
1639
+ transition: opacity 1.4s, transform 0.1s;
1640
+ filter: blur(8px);
1641
+ }
1642
+
1643
+ :host([active])::before {
1644
+ opacity: 0.05;
1645
+ transition-duration: 0s;
1646
+ }
1647
+
1648
+ :host([active])::after {
1649
+ opacity: 0.1;
1650
+ transition-duration: 0s, 0s;
1651
+ transform: scale(0);
1652
+ }
1653
+
1654
+ /* Keyboard focus */
1655
+
1656
+ :host([focus-ring]) {
1657
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1658
+ }
1659
+
1660
+ :host([theme~='primary'][focus-ring]) {
1661
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1662
+ }
1663
+
1664
+ /* Types (primary, tertiary, tertiary-inline */
1665
+
1666
+ :host([theme~='tertiary']),
1667
+ :host([theme~='tertiary-inline']) {
1668
+ background-color: transparent !important;
1669
+ min-width: 0;
1670
+ }
1671
+
1672
+ :host([theme~='tertiary']) {
1673
+ padding: 0 calc(var(--lumo-button-size) / 6);
1674
+ }
1675
+
1676
+ :host([theme~='tertiary-inline'])::before {
1677
+ display: none;
1678
+ }
1679
+
1680
+ :host([theme~='tertiary-inline']) {
1681
+ margin: 0;
1682
+ height: auto;
1683
+ padding: 0;
1684
+ line-height: inherit;
1685
+ font-size: inherit;
1686
+ }
1687
+
1688
+ :host([theme~='tertiary-inline']) [part='label'] {
1689
+ padding: 0;
1690
+ overflow: visible;
1691
+ line-height: inherit;
1692
+ }
1693
+
1694
+ :host([theme~='primary']) {
1695
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1696
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1697
+ font-weight: 600;
1698
+ min-width: calc(var(--lumo-button-size) * 2.5);
1699
+ }
1700
+
1701
+ :host([theme~='primary'])::before {
1702
+ background-color: black;
1703
+ }
1704
+
1705
+ @media (any-hover: hover) {
1706
+ :host([theme~='primary']:hover)::before {
1707
+ opacity: 0.05;
1708
+ }
1709
+ }
1710
+
1711
+ :host([theme~='primary'][active])::before {
1712
+ opacity: 0.1;
1713
+ }
1714
+
1715
+ :host([theme~='primary'][active])::after {
1716
+ opacity: 0.2;
1717
+ }
1718
+
1719
+ /* Colors (success, error, contrast) */
1720
+
1721
+ :host([theme~='success']) {
1722
+ color: var(--lumo-success-text-color);
1723
+ }
1724
+
1725
+ :host([theme~='success'][theme~='primary']) {
1726
+ background-color: var(--lumo-success-color);
1727
+ color: var(--lumo-success-contrast-color);
1728
+ }
1729
+
1730
+ :host([theme~='error']) {
1731
+ color: var(--lumo-error-text-color);
1732
+ }
1733
+
1734
+ :host([theme~='error'][theme~='primary']) {
1735
+ background-color: var(--lumo-error-color);
1736
+ color: var(--lumo-error-contrast-color);
1737
+ }
1738
+
1739
+ :host([theme~='contrast']) {
1740
+ color: var(--lumo-contrast);
1741
+ }
1742
+
1743
+ :host([theme~='contrast'][theme~='primary']) {
1744
+ background-color: var(--lumo-contrast);
1745
+ color: var(--lumo-base-color);
1746
+ }
1747
+
1748
+ /* Disabled state. Keep selectors after other color variants. */
1749
+
1750
+ :host([disabled]) {
1751
+ pointer-events: none;
1752
+ color: var(--lumo-disabled-text-color);
1753
+ }
1754
+
1755
+ :host([theme~='primary'][disabled]) {
1756
+ background-color: var(--lumo-contrast-30pct);
1757
+ color: var(--lumo-base-color);
1758
+ }
1759
+
1760
+ :host([theme~='primary'][disabled]) [part] {
1761
+ opacity: 0.7;
1762
+ }
1763
+
1764
+ /* Icons */
1765
+
1766
+ [part] ::slotted(vaadin-icon) {
1767
+ display: inline-block;
1768
+ width: var(--lumo-icon-size-m);
1769
+ height: var(--lumo-icon-size-m);
1770
+ }
1771
+
1772
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
1773
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
1774
+ padding: 0.25em;
1775
+ box-sizing: border-box !important;
1776
+ }
1777
+
1778
+ [part='prefix'] {
1779
+ margin-left: -0.25em;
1780
+ margin-right: 0.25em;
1781
+ }
1782
+
1783
+ [part='suffix'] {
1784
+ margin-left: 0.25em;
1785
+ margin-right: -0.25em;
1786
+ }
1787
+
1788
+ /* Icon-only */
1789
+
1790
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
1791
+ min-width: var(--lumo-button-size);
1792
+ padding-left: calc(var(--lumo-button-size) / 4);
1793
+ padding-right: calc(var(--lumo-button-size) / 4);
1794
+ }
1795
+
1796
+ :host([theme~='icon']) [part='prefix'],
1797
+ :host([theme~='icon']) [part='suffix'] {
1798
+ margin-left: 0;
1799
+ margin-right: 0;
1800
+ }
1801
+
1802
+ /* RTL specific styles */
1803
+
1804
+ :host([dir='rtl']) [part='prefix'] {
1805
+ margin-left: 0.25em;
1806
+ margin-right: -0.25em;
1807
+ }
1808
+
1809
+ :host([dir='rtl']) [part='suffix'] {
1810
+ margin-left: -0.25em;
1811
+ margin-right: 0.25em;
1812
+ }
1813
+
1814
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
1815
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
1816
+ margin-left: 0;
1817
+ margin-right: 0;
1818
+ }
1819
+ `;a.registerStyles("vaadin-button",Ko,{moduleId:"lumo-button"});/**
1820
+ * @license
1821
+ * Copyright 2019 Google LLC
1822
+ * SPDX-License-Identifier: BSD-3-Clause
1823
+ */const it=window,Gt=it.ShadowRoot&&(it.ShadyCSS===void 0||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kt=Symbol(),mi=new WeakMap;class cr{constructor(t,e,i){if(this._$cssResult$=!0,i!==Kt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Gt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=mi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&mi.set(e,t))}return t}toString(){return this.cssText}}const Qo=o=>new cr(typeof o=="string"?o:o+"",void 0,Kt),qe=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,r,n)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[n+1],o[0]);return new cr(e,o,Kt)},Zo=(o,t)=>{Gt?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),r=it.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,o.appendChild(i)})},fi=Gt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Qo(e)})(o):o;/**
1824
+ * @license
1825
+ * Copyright 2017 Google LLC
1826
+ * SPDX-License-Identifier: BSD-3-Clause
1827
+ */var bt;const at=window,_i=at.trustedTypes,Xo=_i?_i.emptyScript:"",vi=at.reactiveElementPolyfillSupport,Ft={toAttribute(o,t){switch(t){case Boolean:o=o?Xo:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},dr=(o,t)=>t!==o&&(t==t||o==o),xt={attribute:!0,type:String,converter:Ft,reflect:!1,hasChanged:dr},Ht="finalized";class me extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const r=this._$Ep(i,e);r!==void 0&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=xt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const n=this[t];this[e]=r,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||xt}static finalize(){if(this.hasOwnProperty(Ht))return!1;this[Ht]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of i)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(fi(r))}else t!==void 0&&e.push(fi(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Zo(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=xt){var r;const n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){const s=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:Ft).toAttribute(e,i.type);this._$El=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,n=r._$Ev.get(t);if(n!==void 0&&this._$El!==n){const s=r.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?s.converter:Ft;this._$El=n,this[n]=l.fromAttribute(e,s.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||dr)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}_$Ej(){return Se(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((r,n)=>this[n]=r),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostUpdate)===null||n===void 0?void 0:n.call(r)}),this.update(i)):this._$Ek()}catch(r){throw e=!1,this._$Ek(),r}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}me[Ht]=!0,me.elementProperties=new Map,me.elementStyles=[],me.shadowRootOptions={mode:"open"},vi==null||vi({ReactiveElement:me}),((bt=at.reactiveElementVersions)!==null&&bt!==void 0?bt:at.reactiveElementVersions=[]).push("1.6.3");/**
1828
+ * @license
1829
+ * Copyright 2017 Google LLC
1830
+ * SPDX-License-Identifier: BSD-3-Clause
1831
+ */var wt;const lt=window,_e=lt.trustedTypes,gi=_e?_e.createPolicy("lit-html",{createHTML:o=>o}):void 0,Rt="$lit$",ee=`lit$${(Math.random()+"").slice(9)}$`,pr="?"+ee,Jo=`<${pr}>`,ue=document,He=()=>ue.createComment(""),Re=o=>o===null||typeof o!="object"&&typeof o!="function",mr=Array.isArray,es=o=>mr(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",At=`[
1832
+ \f\r]`,Pe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yi=/-->/g,bi=/>/g,oe=RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^
1833
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xi=/'/g,wi=/"/g,fr=/^(?:script|style|textarea|title)$/i,ve=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),Ai=new WeakMap,ae=ue.createTreeWalker(ue,129,null,!1);function _r(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return gi!==void 0?gi.createHTML(t):t}const ts=(o,t)=>{const e=o.length-1,i=[];let r,n=t===2?"<svg>":"",s=Pe;for(let l=0;l<e;l++){const u=o[l];let h,d,c=-1,_=0;for(;_<u.length&&(s.lastIndex=_,d=s.exec(u),d!==null);)_=s.lastIndex,s===Pe?d[1]==="!--"?s=yi:d[1]!==void 0?s=bi:d[2]!==void 0?(fr.test(d[2])&&(r=RegExp("</"+d[2],"g")),s=oe):d[3]!==void 0&&(s=oe):s===oe?d[0]===">"?(s=r!=null?r:Pe,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?oe:d[3]==='"'?wi:xi):s===wi||s===xi?s=oe:s===yi||s===bi?s=Pe:(s=oe,r=void 0);const v=s===oe&&o[l+1].startsWith("/>")?" ":"";n+=s===Pe?u+Jo:c>=0?(i.push(h),u.slice(0,c)+Rt+u.slice(c)+ee+v):u+ee+(c===-2?(i.push(void 0),l):v)}return[_r(o,n+(o[e]||"<?>")+(t===2?"</svg>":"")),i]};class Le{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,s=0;const l=t.length-1,u=this.parts,[h,d]=ts(t,e);if(this.el=Le.createElement(h,i),ae.currentNode=this.el.content,e===2){const c=this.el.content,_=c.firstChild;_.remove(),c.append(..._.childNodes)}for(;(r=ae.nextNode())!==null&&u.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const c=[];for(const _ of r.getAttributeNames())if(_.endsWith(Rt)||_.startsWith(ee)){const v=d[s++];if(c.push(_),v!==void 0){const g=r.getAttribute(v.toLowerCase()+Rt).split(ee),O=/([.?@])?(.*)/.exec(v);u.push({type:1,index:n,name:O[2],strings:g,ctor:O[1]==="."?rs:O[1]==="?"?ss:O[1]==="@"?ns:ft})}else u.push({type:6,index:n})}for(const _ of c)r.removeAttribute(_)}if(fr.test(r.tagName)){const c=r.textContent.split(ee),_=c.length-1;if(_>0){r.textContent=_e?_e.emptyScript:"";for(let v=0;v<_;v++)r.append(c[v],He()),ae.nextNode(),u.push({type:2,index:++n});r.append(c[_],He())}}}else if(r.nodeType===8)if(r.data===pr)u.push({type:2,index:n});else{let c=-1;for(;(c=r.data.indexOf(ee,c+1))!==-1;)u.push({type:7,index:n}),c+=ee.length-1}n++}}static createElement(t,e){const i=ue.createElement("template");return i.innerHTML=t,i}}function ge(o,t,e=o,i){var r,n,s,l;if(t===ve)return t;let u=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const h=Re(t)?void 0:t._$litDirective$;return(u==null?void 0:u.constructor)!==h&&((n=u==null?void 0:u._$AO)===null||n===void 0||n.call(u,!1),h===void 0?u=void 0:(u=new h(o),u._$AT(o,e,i)),i!==void 0?((s=(l=e)._$Co)!==null&&s!==void 0?s:l._$Co=[])[i]=u:e._$Cl=u),u!==void 0&&(t=ge(o,u._$AS(o,t.values),u,i)),t}class is{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:r}=this._$AD,n=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:ue).importNode(i,!0);ae.currentNode=n;let s=ae.nextNode(),l=0,u=0,h=r[0];for(;h!==void 0;){if(l===h.index){let d;h.type===2?d=new je(s,s.nextSibling,this,t):h.type===1?d=new h.ctor(s,h.name,h.strings,this,t):h.type===6&&(d=new as(s,this,t)),this._$AV.push(d),h=r[++u]}l!==(h==null?void 0:h.index)&&(s=ae.nextNode(),l++)}return ae.currentNode=ue,n}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class je{constructor(t,e,i,r){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=(n=r==null?void 0:r.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ge(this,t,e),Re(t)?t===z||t==null||t===""?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==ve&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):es(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==z&&Re(this._$AH)?this._$AA.nextSibling.data=t:this.$(ue.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Le.createElement(_r(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.v(i);else{const s=new is(n,this),l=s.u(this.options);s.v(i),this.$(l),this._$AH=s}}_$AC(t){let e=Ai.get(t.strings);return e===void 0&&Ai.set(t.strings,e=new Le(t)),e}T(t){mr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new je(this.k(He()),this.k(He()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class ft{constructor(t,e,i,r,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const n=this.strings;let s=!1;if(n===void 0)t=ge(this,t,e,0),s=!Re(t)||t!==this._$AH&&t!==ve,s&&(this._$AH=t);else{const l=t;let u,h;for(t=n[0],u=0;u<n.length-1;u++)h=ge(this,l[i+u],e,u),h===ve&&(h=this._$AH[u]),s||(s=!Re(h)||h!==this._$AH[u]),h===z?t=z:t!==z&&(t+=(h!=null?h:"")+n[u+1]),this._$AH[u]=h}s&&!r&&this.j(t)}j(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class rs extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===z?void 0:t}}const os=_e?_e.emptyScript:"";class ss extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==z?this.element.setAttribute(this.name,os):this.element.removeAttribute(this.name)}}class ns extends ft{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=ge(this,t,e,0))!==null&&i!==void 0?i:z)===ve)return;const r=this._$AH,n=t===z&&r!==z||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==z&&(r===z||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class as{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ge(this,t)}}const Ci=lt.litHtmlPolyfillSupport;Ci==null||Ci(Le,je),((wt=lt.litHtmlVersions)!==null&&wt!==void 0?wt:lt.litHtmlVersions=[]).push("2.8.0");const ls=(o,t,e)=>{var i,r;const n=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let s=n._$litPart$;if(s===void 0){const l=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;n._$litPart$=s=new je(t.insertBefore(He(),l),l,void 0,e!=null?e:{})}return s._$AI(o),s};/**
1834
+ * @license
1835
+ * Copyright 2017 Google LLC
1836
+ * SPDX-License-Identifier: BSD-3-Clause
1837
+ */var Ct,kt;class rt extends me{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ls(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return ve}}rt.finalized=!0,rt._$litElement$=!0,(Ct=globalThis.litElementHydrateSupport)===null||Ct===void 0||Ct.call(globalThis,{LitElement:rt});const ki=globalThis.litElementPolyfillSupport;ki==null||ki({LitElement:rt});((kt=globalThis.litElementVersions)!==null&&kt!==void 0?kt:globalThis.litElementVersions=[]).push("3.3.3");/**
1838
+ * @license
1839
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1840
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1841
+ */const us=qe`
1842
+ :host {
1843
+ display: inline-block;
1844
+ position: relative;
1845
+ outline: none;
1846
+ white-space: nowrap;
1847
+ -webkit-user-select: none;
1848
+ -moz-user-select: none;
1849
+ user-select: none;
1850
+ }
1851
+
1852
+ :host([hidden]) {
1853
+ display: none !important;
1854
+ }
1855
+
1856
+ /* Aligns the button with form fields when placed on the same line.
1857
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
1858
+ .vaadin-button-container::before {
1859
+ content: '\\2003';
1860
+ display: inline-block;
1861
+ width: 0;
1862
+ max-height: 100%;
1863
+ }
1864
+
1865
+ .vaadin-button-container {
1866
+ display: inline-flex;
1867
+ align-items: center;
1868
+ justify-content: center;
1869
+ text-align: center;
1870
+ width: 100%;
1871
+ height: 100%;
1872
+ min-height: inherit;
1873
+ text-shadow: inherit;
1874
+ }
1875
+
1876
+ [part='prefix'],
1877
+ [part='suffix'] {
1878
+ flex: none;
1879
+ }
1880
+
1881
+ [part='label'] {
1882
+ white-space: nowrap;
1883
+ overflow: hidden;
1884
+ text-overflow: ellipsis;
1885
+ }
1886
+
1887
+ @media (forced-colors: active) {
1888
+ :host {
1889
+ outline: 1px solid;
1890
+ outline-offset: -1px;
1891
+ }
1892
+
1893
+ :host([focused]) {
1894
+ outline-width: 2px;
1895
+ }
1896
+
1897
+ :host([disabled]) {
1898
+ outline-color: GrayText;
1899
+ }
1900
+ }
1901
+ `,hs=o=>o`
1902
+ <div class="vaadin-button-container">
1903
+ <span part="prefix" aria-hidden="true">
1904
+ <slot name="prefix"></slot>
1905
+ </span>
1906
+ <span part="label">
1907
+ <slot></slot>
1908
+ </span>
1909
+ <span part="suffix" aria-hidden="true">
1910
+ <slot name="suffix"></slot>
1911
+ </span>
1912
+ </div>
1913
+ <slot name="tooltip"></slot>
1914
+ `;/**
1915
+ * @license
1916
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1917
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1918
+ */const cs=o=>class extends a.ActiveMixin(a.TabindexMixin(a.FocusMixin(o))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
1919
+ * @license
1920
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1921
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1922
+ */a.registerStyles("vaadin-button",us,{moduleId:"vaadin-button-styles"});class ds extends cs(a.ElementMixin(a.ThemableMixin(a.ControllerMixin(a.PolymerElement)))){static get is(){return"vaadin-button"}static get template(){return hs(a.html)}ready(){super.ready(),this._tooltipController=new a.TooltipController(this),this.addController(this._tooltipController)}}a.defineCustomElement(ds);a.registerStyles("vaadin-date-picker-year",a.i$3`
1923
+ :host([current]) [part='year-number'] {
1924
+ color: var(--lumo-primary-text-color);
1925
+ }
1926
+
1927
+ :host(:not([current])) [part='year-number'],
1928
+ [part='year-separator'] {
1929
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
1930
+ transition: 0.2s opacity;
1931
+ }
1932
+
1933
+ [part='year-number'],
1934
+ [part='year-separator'] {
1935
+ display: flex;
1936
+ align-items: center;
1937
+ justify-content: center;
1938
+ height: 50%;
1939
+ transform: translateY(-50%);
1940
+ }
1941
+
1942
+ [part='year-separator']::after {
1943
+ color: var(--lumo-disabled-text-color);
1944
+ content: '\\2022';
1945
+ }
1946
+ `,{moduleId:"lumo-date-picker-year"});a.registerStyles("vaadin-date-picker-overlay-content",a.i$3`
1947
+ :host {
1948
+ position: relative;
1949
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
1950
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
1951
+ background-size: 57px 100%;
1952
+ background-position: top right;
1953
+ background-repeat: no-repeat;
1954
+ cursor: default;
1955
+ }
1956
+
1957
+ ::slotted([slot='months']) {
1958
+ /* Month calendar height:
1959
+ header height + margin-bottom
1960
+ + weekdays height + margin-bottom
1961
+ + date cell heights
1962
+ + small margin between month calendars
1963
+ */
1964
+ /* prettier-ignore */
1965
+ --vaadin-infinite-scroller-item-height:
1966
+ calc(
1967
+ var(--lumo-font-size-l) + var(--lumo-space-m)
1968
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
1969
+ + var(--lumo-size-m) * 6
1970
+ + var(--lumo-space-s)
1971
+ );
1972
+ --vaadin-infinite-scroller-buffer-offset: 10%;
1973
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1974
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1975
+ position: relative;
1976
+ margin-right: 57px;
1977
+ }
1978
+
1979
+ ::slotted([slot='years']) {
1980
+ /* TODO get rid of fixed magic number */
1981
+ --vaadin-infinite-scroller-buffer-width: 97px;
1982
+ width: 57px;
1983
+ height: auto;
1984
+ top: 0;
1985
+ bottom: 0;
1986
+ font-size: var(--lumo-font-size-s);
1987
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
1988
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1989
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1990
+ cursor: var(--lumo-clickable-cursor);
1991
+ }
1992
+
1993
+ ::slotted([slot='years']:hover) {
1994
+ --_lumo-date-picker-year-opacity: 1;
1995
+ }
1996
+
1997
+ /* TODO unsupported selector */
1998
+ #scrollers {
1999
+ position: static;
2000
+ display: block;
2001
+ }
2002
+
2003
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
2004
+ :host([desktop]) ::slotted([slot='months']) {
2005
+ right: auto;
2006
+ }
2007
+
2008
+ /* Year scroller position indicator */
2009
+ ::slotted([slot='years'])::before {
2010
+ border: none;
2011
+ width: 1em;
2012
+ height: 1em;
2013
+ background-color: var(--lumo-base-color);
2014
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
2015
+ transform: translate(-75%, -50%) rotate(45deg);
2016
+ border-top-right-radius: var(--lumo-border-radius-s);
2017
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
2018
+ z-index: 1;
2019
+ }
2020
+
2021
+ [part='toolbar'] {
2022
+ padding: var(--lumo-space-s);
2023
+ border-bottom-left-radius: var(--lumo-border-radius-l);
2024
+ margin-right: 57px;
2025
+ }
2026
+
2027
+ [part='toolbar'] ::slotted(vaadin-button) {
2028
+ margin: 0;
2029
+ }
2030
+
2031
+ /* Narrow viewport mode (fullscreen) */
2032
+
2033
+ :host([fullscreen]) [part='toolbar'] {
2034
+ order: -1;
2035
+ background-color: var(--lumo-base-color);
2036
+ }
2037
+
2038
+ :host([fullscreen]) [part='overlay-header'] {
2039
+ order: -2;
2040
+ height: var(--lumo-size-m);
2041
+ padding: var(--lumo-space-s);
2042
+ position: absolute;
2043
+ left: 0;
2044
+ right: 0;
2045
+ justify-content: center;
2046
+ }
2047
+
2048
+ :host([fullscreen]) [part='toggle-button'],
2049
+ :host([fullscreen]) [part='clear-button'],
2050
+ [part='overlay-header'] [part='label'] {
2051
+ display: none;
2052
+ }
2053
+
2054
+ /* Very narrow screen (year scroller initially hidden) */
2055
+
2056
+ [part='years-toggle-button'] {
2057
+ display: flex;
2058
+ align-items: center;
2059
+ height: var(--lumo-size-s);
2060
+ padding: 0 0.5em;
2061
+ border-radius: var(--lumo-border-radius-m);
2062
+ z-index: 3;
2063
+ color: var(--lumo-primary-text-color);
2064
+ font-weight: 500;
2065
+ -webkit-font-smoothing: antialiased;
2066
+ -moz-osx-font-smoothing: grayscale;
2067
+ }
2068
+
2069
+ :host([years-visible]) [part='years-toggle-button'] {
2070
+ background-color: var(--lumo-primary-color);
2071
+ color: var(--lumo-primary-contrast-color);
2072
+ }
2073
+
2074
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
2075
+ @media screen and (max-width: 374px) {
2076
+ :host {
2077
+ background-image: none;
2078
+ }
2079
+
2080
+ [part='toolbar'],
2081
+ ::slotted([slot='months']) {
2082
+ margin-right: 0;
2083
+ }
2084
+
2085
+ /* TODO make date-picker adapt to the width of the years part */
2086
+ ::slotted([slot='years']) {
2087
+ --vaadin-infinite-scroller-buffer-width: 90px;
2088
+ width: 50px;
2089
+ background-color: var(--lumo-shade-5pct);
2090
+ }
2091
+
2092
+ :host([years-visible]) ::slotted([slot='months']) {
2093
+ padding-left: 50px;
2094
+ }
2095
+ }
2096
+ `,{moduleId:"lumo-date-picker-overlay-content"});a.registerStyles("vaadin-month-calendar",a.i$3`
2097
+ :host {
2098
+ -moz-user-select: none;
2099
+ -webkit-user-select: none;
2100
+ -webkit-tap-highlight-color: transparent;
2101
+ user-select: none;
2102
+ font-size: var(--lumo-font-size-m);
2103
+ color: var(--lumo-body-text-color);
2104
+ text-align: center;
2105
+ padding: 0 var(--lumo-space-xs);
2106
+ }
2107
+
2108
+ /* Month header */
2109
+
2110
+ [part='month-header'] {
2111
+ color: var(--lumo-header-text-color);
2112
+ font-size: var(--lumo-font-size-l);
2113
+ line-height: 1;
2114
+ font-weight: 500;
2115
+ margin-bottom: var(--lumo-space-m);
2116
+ }
2117
+
2118
+ /* Week days and numbers */
2119
+
2120
+ [part='weekdays'],
2121
+ [part='weekday'],
2122
+ [part='week-number'] {
2123
+ font-size: var(--lumo-font-size-xxs);
2124
+ line-height: 1;
2125
+ color: var(--lumo-secondary-text-color);
2126
+ }
2127
+
2128
+ [part='weekdays'] {
2129
+ margin-bottom: var(--lumo-space-s);
2130
+ }
2131
+
2132
+ [part='weekday']:empty,
2133
+ [part='week-number'] {
2134
+ width: var(--lumo-size-xs);
2135
+ }
2136
+
2137
+ /* Date and week number cells */
2138
+
2139
+ [part~='date'],
2140
+ [part='week-number'] {
2141
+ box-sizing: border-box;
2142
+ display: inline-flex;
2143
+ align-items: center;
2144
+ justify-content: center;
2145
+ height: var(--lumo-size-m);
2146
+ position: relative;
2147
+ }
2148
+
2149
+ [part~='date'] {
2150
+ transition: color 0.1s;
2151
+ }
2152
+
2153
+ [part~='date']:not(:empty) {
2154
+ cursor: var(--lumo-clickable-cursor);
2155
+ }
2156
+
2157
+ :host([week-numbers]) [part='weekday']:not(:empty),
2158
+ :host([week-numbers]) [part~='date'] {
2159
+ width: calc((100% - var(--lumo-size-xs)) / 7);
2160
+ }
2161
+
2162
+ /* Today date */
2163
+
2164
+ [part~='date'][part~='today'] {
2165
+ color: var(--lumo-primary-text-color);
2166
+ }
2167
+
2168
+ /* Focused date */
2169
+
2170
+ [part~='date']::before {
2171
+ content: '';
2172
+ position: absolute;
2173
+ z-index: -1;
2174
+ top: 50%;
2175
+ left: 50%;
2176
+ transform: translate(-50%, -50%);
2177
+ min-width: 2em;
2178
+ min-height: 2em;
2179
+ width: 80%;
2180
+ height: 80%;
2181
+ max-height: 100%;
2182
+ max-width: 100%;
2183
+ border-radius: var(--lumo-border-radius-m);
2184
+ }
2185
+
2186
+ [part~='date'][part~='focused']::before {
2187
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
2188
+ }
2189
+
2190
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
2191
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
2192
+ }
2193
+
2194
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2195
+ 50% {
2196
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
2197
+ }
2198
+ }
2199
+
2200
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
2201
+ background-color: var(--lumo-primary-color-10pct);
2202
+ }
2203
+
2204
+ [part~='date'][part~='selected'] {
2205
+ color: var(--lumo-primary-contrast-color);
2206
+ }
2207
+
2208
+ [part~='date'][part~='selected']::before {
2209
+ background-color: var(--lumo-primary-color);
2210
+ }
2211
+
2212
+ [part~='date'][part~='disabled'] {
2213
+ color: var(--lumo-disabled-text-color);
2214
+ }
2215
+
2216
+ @media (pointer: coarse) {
2217
+ [part~='date']:hover:not([part~='selected'])::before,
2218
+ [part~='focused']:not([part~='selected'])::before {
2219
+ display: none;
2220
+ }
2221
+
2222
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
2223
+ display: block;
2224
+ }
2225
+
2226
+ [part~='date'][part~='selected']::before {
2227
+ box-shadow: none;
2228
+ }
2229
+ }
2230
+
2231
+ /* Disabled */
2232
+
2233
+ :host([disabled]) * {
2234
+ color: var(--lumo-disabled-text-color) !important;
2235
+ }
2236
+ `,{moduleId:"lumo-month-calendar"});const vr=document.createElement("template");vr.innerHTML=`
2237
+ <style>
2238
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2239
+ 50% {
2240
+ box-shadow: 0 0 0 2px transparent;
2241
+ }
2242
+ }
2243
+ </style>
2244
+ `;document.head.appendChild(vr.content);/**
2245
+ * @license
2246
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2247
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2248
+ */const ps=a.i$3`
2249
+ @font-face {
2250
+ font-family: 'lumo-icons';
2251
+ src: url(data:application/font-woff;charset=utf-8;base64,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)
2252
+ format('woff');
2253
+ font-weight: normal;
2254
+ font-style: normal;
2255
+ }
2256
+
2257
+ html {
2258
+ --lumo-icons-align-center: '\\ea01';
2259
+ --lumo-icons-align-left: '\\ea02';
2260
+ --lumo-icons-align-right: '\\ea03';
2261
+ --lumo-icons-angle-down: '\\ea04';
2262
+ --lumo-icons-angle-left: '\\ea05';
2263
+ --lumo-icons-angle-right: '\\ea06';
2264
+ --lumo-icons-angle-up: '\\ea07';
2265
+ --lumo-icons-arrow-down: '\\ea08';
2266
+ --lumo-icons-arrow-left: '\\ea09';
2267
+ --lumo-icons-arrow-right: '\\ea0a';
2268
+ --lumo-icons-arrow-up: '\\ea0b';
2269
+ --lumo-icons-bar-chart: '\\ea0c';
2270
+ --lumo-icons-bell: '\\ea0d';
2271
+ --lumo-icons-calendar: '\\ea0e';
2272
+ --lumo-icons-checkmark: '\\ea0f';
2273
+ --lumo-icons-chevron-down: '\\ea10';
2274
+ --lumo-icons-chevron-left: '\\ea11';
2275
+ --lumo-icons-chevron-right: '\\ea12';
2276
+ --lumo-icons-chevron-up: '\\ea13';
2277
+ --lumo-icons-clock: '\\ea14';
2278
+ --lumo-icons-cog: '\\ea15';
2279
+ --lumo-icons-cross: '\\ea16';
2280
+ --lumo-icons-download: '\\ea17';
2281
+ --lumo-icons-dropdown: '\\ea18';
2282
+ --lumo-icons-edit: '\\ea19';
2283
+ --lumo-icons-error: '\\ea1a';
2284
+ --lumo-icons-eye: '\\ea1b';
2285
+ --lumo-icons-eye-disabled: '\\ea1c';
2286
+ --lumo-icons-menu: '\\ea1d';
2287
+ --lumo-icons-minus: '\\ea1e';
2288
+ --lumo-icons-ordered-list: '\\ea1f';
2289
+ --lumo-icons-phone: '\\ea20';
2290
+ --lumo-icons-photo: '\\ea21';
2291
+ --lumo-icons-play: '\\ea22';
2292
+ --lumo-icons-plus: '\\ea23';
2293
+ --lumo-icons-redo: '\\ea24';
2294
+ --lumo-icons-reload: '\\ea25';
2295
+ --lumo-icons-search: '\\ea26';
2296
+ --lumo-icons-undo: '\\ea27';
2297
+ --lumo-icons-unordered-list: '\\ea28';
2298
+ --lumo-icons-upload: '\\ea29';
2299
+ --lumo-icons-user: '\\ea2a';
2300
+ }
2301
+ `;Ce("font-icons",ps);/**
2302
+ * @license
2303
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2304
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2305
+ */const gr=a.i$3`
2306
+ [part$='button'] {
2307
+ flex: none;
2308
+ width: 1em;
2309
+ height: 1em;
2310
+ line-height: 1;
2311
+ font-size: var(--lumo-icon-size-m);
2312
+ text-align: center;
2313
+ color: var(--lumo-contrast-60pct);
2314
+ transition: 0.2s color;
2315
+ cursor: var(--lumo-clickable-cursor);
2316
+ }
2317
+
2318
+ [part$='button']:hover {
2319
+ color: var(--lumo-contrast-90pct);
2320
+ }
2321
+
2322
+ :host([disabled]) [part$='button'],
2323
+ :host([readonly]) [part$='button'] {
2324
+ color: var(--lumo-contrast-20pct);
2325
+ cursor: default;
2326
+ }
2327
+
2328
+ [part$='button']::before {
2329
+ font-family: 'lumo-icons';
2330
+ display: block;
2331
+ }
2332
+ `;a.registerStyles("",gr,{moduleId:"lumo-field-button"});/**
2333
+ * @license
2334
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2335
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2336
+ */const ms=a.i$3`
2337
+ :host([has-helper]) [part='helper-text']::before {
2338
+ content: '';
2339
+ display: block;
2340
+ height: 0.4em;
2341
+ }
2342
+
2343
+ [part='helper-text'] {
2344
+ display: block;
2345
+ color: var(--lumo-secondary-text-color);
2346
+ font-size: var(--lumo-font-size-xs);
2347
+ line-height: var(--lumo-line-height-xs);
2348
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2349
+ transition: color 0.2s;
2350
+ }
2351
+
2352
+ :host(:hover:not([readonly])) [part='helper-text'] {
2353
+ color: var(--lumo-body-text-color);
2354
+ }
2355
+
2356
+ :host([disabled]) [part='helper-text'] {
2357
+ color: var(--lumo-disabled-text-color);
2358
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2359
+ }
2360
+
2361
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
2362
+ display: none;
2363
+ }
2364
+
2365
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
2366
+ content: '';
2367
+ display: block;
2368
+ height: 0.4em;
2369
+ }
2370
+
2371
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
2372
+ order: 0;
2373
+ padding-bottom: 0.4em;
2374
+ }
2375
+
2376
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
2377
+ order: 1;
2378
+ }
2379
+
2380
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
2381
+ order: 2;
2382
+ }
2383
+
2384
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
2385
+ order: 3;
2386
+ }
2387
+ `;/**
2388
+ * @license
2389
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2390
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2391
+ */const yr=a.i$3`
2392
+ [part='label'] {
2393
+ align-self: flex-start;
2394
+ color: var(--lumo-secondary-text-color);
2395
+ font-weight: 500;
2396
+ font-size: var(--lumo-font-size-s);
2397
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2398
+ transition: color 0.2s;
2399
+ line-height: 1;
2400
+ padding-right: 1em;
2401
+ padding-bottom: 0.5em;
2402
+ /* As a workaround for diacritics being cut off, add a top padding and a
2403
+ negative margin to compensate */
2404
+ padding-top: 0.25em;
2405
+ margin-top: -0.25em;
2406
+ overflow: hidden;
2407
+ white-space: nowrap;
2408
+ text-overflow: ellipsis;
2409
+ position: relative;
2410
+ max-width: 100%;
2411
+ box-sizing: border-box;
2412
+ }
2413
+
2414
+ :host([has-label])::before {
2415
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
2416
+ }
2417
+
2418
+ :host([has-label][theme~='small'])::before {
2419
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
2420
+ }
2421
+
2422
+ :host([has-label]) {
2423
+ padding-top: var(--lumo-space-m);
2424
+ }
2425
+
2426
+ :host([has-label]) ::slotted([slot='tooltip']) {
2427
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
2428
+ }
2429
+
2430
+ :host([required]) [part='required-indicator']::after {
2431
+ content: var(--lumo-required-field-indicator, '\\2022');
2432
+ transition: opacity 0.2s;
2433
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
2434
+ position: absolute;
2435
+ right: 0;
2436
+ width: 1em;
2437
+ text-align: center;
2438
+ }
2439
+
2440
+ :host([invalid]) [part='required-indicator']::after {
2441
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
2442
+ }
2443
+
2444
+ [part='error-message'] {
2445
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2446
+ font-size: var(--lumo-font-size-xs);
2447
+ line-height: var(--lumo-line-height-xs);
2448
+ color: var(--lumo-error-text-color);
2449
+ will-change: max-height;
2450
+ transition: 0.4s max-height;
2451
+ max-height: 5em;
2452
+ }
2453
+
2454
+ :host([has-error-message]) [part='error-message']::before,
2455
+ :host([has-error-message]) [part='error-message']::after {
2456
+ content: '';
2457
+ display: block;
2458
+ height: 0.4em;
2459
+ }
2460
+
2461
+ :host(:not([invalid])) [part='error-message'] {
2462
+ max-height: 0;
2463
+ overflow: hidden;
2464
+ }
2465
+
2466
+ /* RTL specific styles */
2467
+
2468
+ :host([dir='rtl']) [part='label'] {
2469
+ margin-left: 0;
2470
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2471
+ }
2472
+
2473
+ :host([dir='rtl']) [part='label'] {
2474
+ padding-left: 1em;
2475
+ padding-right: 0;
2476
+ }
2477
+
2478
+ :host([dir='rtl']) [part='required-indicator']::after {
2479
+ right: auto;
2480
+ left: 0;
2481
+ }
2482
+
2483
+ :host([dir='rtl']) [part='error-message'] {
2484
+ margin-left: 0;
2485
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2486
+ }
2487
+ `;a.registerStyles("",yr,{moduleId:"lumo-required-field"});/**
2488
+ * @license
2489
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2490
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2491
+ */const fs=a.i$3`
2492
+ :host {
2493
+ --lumo-text-field-size: var(--lumo-size-m);
2494
+ color: var(--lumo-body-text-color);
2495
+ font-size: var(--lumo-font-size-m);
2496
+ font-family: var(--lumo-font-family);
2497
+ -webkit-font-smoothing: antialiased;
2498
+ -moz-osx-font-smoothing: grayscale;
2499
+ -webkit-tap-highlight-color: transparent;
2500
+ padding: var(--lumo-space-xs) 0;
2501
+ }
2502
+
2503
+ :host::before {
2504
+ height: var(--lumo-text-field-size);
2505
+ box-sizing: border-box;
2506
+ display: inline-flex;
2507
+ align-items: center;
2508
+ }
2509
+
2510
+ :host([focused]:not([readonly])) [part='label'] {
2511
+ color: var(--lumo-primary-text-color);
2512
+ }
2513
+
2514
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
2515
+ -webkit-mask-image: none;
2516
+ mask-image: none;
2517
+ }
2518
+
2519
+ ::slotted(:is(input, textarea):placeholder-shown) {
2520
+ color: var(--lumo-secondary-text-color);
2521
+ }
2522
+
2523
+ /* Hover */
2524
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2525
+ color: var(--lumo-body-text-color);
2526
+ }
2527
+
2528
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2529
+ opacity: 0.1;
2530
+ }
2531
+
2532
+ /* Touch device adjustment */
2533
+ @media (pointer: coarse) {
2534
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2535
+ color: var(--lumo-secondary-text-color);
2536
+ }
2537
+
2538
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2539
+ opacity: 0;
2540
+ }
2541
+
2542
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
2543
+ opacity: 0.2;
2544
+ }
2545
+ }
2546
+
2547
+ /* Trigger when not focusing using the keyboard */
2548
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
2549
+ transform: scaleX(0);
2550
+ transition-duration: 0.15s, 1s;
2551
+ }
2552
+
2553
+ /* Focus-ring */
2554
+ :host([focus-ring]) [part='input-field'] {
2555
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
2556
+ }
2557
+
2558
+ /* Read-only and disabled */
2559
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
2560
+ opacity: 0;
2561
+ }
2562
+
2563
+ /* Read-only style */
2564
+ :host([readonly]) {
2565
+ --vaadin-input-field-border-color: transparent;
2566
+ }
2567
+
2568
+ /* Disabled style */
2569
+ :host([disabled]) {
2570
+ pointer-events: none;
2571
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
2572
+ }
2573
+
2574
+ :host([disabled]) [part='label'],
2575
+ :host([disabled]) [part='input-field'] ::slotted(*) {
2576
+ color: var(--lumo-disabled-text-color);
2577
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2578
+ }
2579
+
2580
+ /* Invalid style */
2581
+ :host([invalid]) {
2582
+ --vaadin-input-field-border-color: var(--lumo-error-color);
2583
+ }
2584
+
2585
+ :host([invalid][focus-ring]) [part='input-field'] {
2586
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
2587
+ }
2588
+
2589
+ :host([input-prevented]) [part='input-field'] {
2590
+ animation: shake 0.15s infinite;
2591
+ }
2592
+
2593
+ @keyframes shake {
2594
+ 25% {
2595
+ transform: translateX(4px);
2596
+ }
2597
+ 75% {
2598
+ transform: translateX(-4px);
2599
+ }
2600
+ }
2601
+
2602
+ /* Small theme */
2603
+ :host([theme~='small']) {
2604
+ font-size: var(--lumo-font-size-s);
2605
+ --lumo-text-field-size: var(--lumo-size-s);
2606
+ }
2607
+
2608
+ :host([theme~='small']) [part='label'] {
2609
+ font-size: var(--lumo-font-size-xs);
2610
+ }
2611
+
2612
+ :host([theme~='small']) [part='error-message'] {
2613
+ font-size: var(--lumo-font-size-xxs);
2614
+ }
2615
+
2616
+ /* Slotted content */
2617
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
2618
+ color: var(--lumo-secondary-text-color);
2619
+ font-weight: 400;
2620
+ }
2621
+
2622
+ [part='clear-button']::before {
2623
+ content: var(--lumo-icons-cross);
2624
+ }
2625
+ `,br=[yr,gr,ms,fs];a.registerStyles("",br,{moduleId:"lumo-input-field-shared-styles"});const _s=a.i$3`
2626
+ :host {
2627
+ outline: none;
2628
+ }
2629
+
2630
+ [part='toggle-button']::before {
2631
+ content: var(--lumo-icons-calendar);
2632
+ }
2633
+
2634
+ [part='clear-button']::before {
2635
+ content: var(--lumo-icons-cross);
2636
+ }
2637
+
2638
+ @media (max-width: 420px), (max-height: 420px) {
2639
+ [part='overlay-content'] {
2640
+ height: 70vh;
2641
+ }
2642
+ }
2643
+
2644
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
2645
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
2646
+ }
2647
+
2648
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2649
+ --_lumo-text-field-overflow-mask-image: none;
2650
+ }
2651
+ `;a.registerStyles("vaadin-date-picker",[br,_s],{moduleId:"lumo-date-picker"});/**
2652
+ @license
2653
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2654
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2655
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2656
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2657
+ Code distributed by Google as part of the polymer project is also
2658
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2659
+ */let Lt=!1,vs=[],xr=[];function gs(){Lt=!0,requestAnimationFrame(function(){Lt=!1,ys(vs),setTimeout(function(){bs(xr)})})}function ys(o){for(;o.length;)wr(o.shift())}function bs(o){for(let t=0,e=o.length;t<e;t++)wr(o.shift())}function wr(o){const t=o[0],e=o[1],i=o[2];try{e.apply(t,i)}catch(r){setTimeout(()=>{throw r})}}function Ar(o,t,e){Lt||gs(),xr.push([o,t,e])}/**
2660
+ * @license
2661
+ * Copyright (c) 2017 Anton Korzunov
2662
+ * SPDX-License-Identifier: MIT
2663
+ */let de=new WeakMap,Je=new WeakMap,et={},Tt=0;const Ti=o=>o&&o.nodeType===Node.ELEMENT_NODE,Et=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},xs=(o,t)=>Ti(o)?t.map(e=>{if(!Ti(e))return Et(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return Et(e,"is not contained inside",o),null}).filter(e=>!!e):(Et(o,"is not a valid element"),[]),ws=(o,t,e,i)=>{const r=xs(t,Array.isArray(o)?o:[o]);et[e]||(et[e]=new WeakMap);const n=et[e],s=[],l=new Set,u=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 d=c=>{if(!c||u.has(c))return;const _=c.shadowRoot;(_?[...c.children,..._.children]:[...c.children]).forEach(g=>{if(!["template","script","style"].includes(g.localName))if(l.has(g))d(g);else{const O=g.getAttribute(i),R=O!==null&&O!=="false",U=(de.get(g)||0)+1,$=(n.get(g)||0)+1;de.set(g,U),n.set(g,$),s.push(g),U===1&&R&&Je.set(g,!0),$===1&&g.setAttribute(e,"true"),R||g.setAttribute(i,"true")}})};return d(t),l.clear(),Tt+=1,()=>{s.forEach(c=>{const _=de.get(c)-1,v=n.get(c)-1;de.set(c,_),n.set(c,v),_||(Je.has(c)?Je.delete(c):c.removeAttribute(i)),v||c.removeAttribute(e)}),Tt-=1,Tt||(de=new WeakMap,de=new WeakMap,Je=new WeakMap,et={})}},Cr=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),ws(i,t,e,"aria-hidden")};/**
2664
+ * @license
2665
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2666
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2667
+ */class As{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Cr(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2668
+ * @license
2669
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2670
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2671
+ */class Cs{saveFocus(t){this.focusNode=t||a.getDeepActiveElement()}restoreFocus(){const t=this.focusNode;t&&(a.getDeepActiveElement()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
2672
+ * @license
2673
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2674
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2675
+ */const Dt=[];class ks{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return a.getFocusableElements(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(a.isElementFocused).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Dt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Dt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Dt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,r=this.__focusedElementIndex,n=(e.length+r+i)%e.length,s=e[n];s.focus(),s.localName==="input"&&s.select()}}/**
2676
+ * @license
2677
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2678
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2679
+ */const Ts=o=>class extends a.ControllerMixin(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new As(this),this.__focusTrapController=new ks(this),this.__focusRestorationController=new Cs}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=a.getDeepActiveElement();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const r=e.ownerDocument;for(;i&&i!==r&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
2680
+ * @license
2681
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2682
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2683
+ */const ot=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),Es=o=>o===ot().pop(),Ds=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Es(this)}bringToFront(){let e="";const i=ot().filter(r=>r!==this).pop();i&&(e=i.__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"),ot().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=ot();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
2684
+ * @license
2685
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2686
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2687
+ */const kr=o=>class extends Ts(Ds(o)){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),a.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 i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,r=window.innerWidth>e,n=document.documentElement.clientHeight;r&&n>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-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,i,r,n){const s=this._oldOwner!==i||this._oldModel!==r;this._oldModel=r,this._oldOwner=i;const l=this._oldRenderer!==e;this._oldRenderer=e;const u=this._oldOpened!==n;this._oldOpened=n,l&&(this.innerHTML="",delete this._$litPart$),n&&e&&(l||u||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Ar(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(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),i=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const r=`__${e}Handler`,n=s=>{s&&s.target!==this||(i(),this.removeEventListener("animationend",n),delete this[r])};this[r]=n,this.addEventListener("animationend",n)}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]()}_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 i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}}};/**
2688
+ * @license
2689
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2690
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2691
+ */const It={start:"top",end:"bottom"},St={start:"left",end:"right"},Ei=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Tr=o=>class extends o{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=a.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,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Ei.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Ei.observe(i))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(n=>{this.__margins[n]=parseInt(r[n],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(),i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const r=this.__isRTL,n=this.__shouldAlignStartHorizontally(e,r),s=!r&&n||r&&!n;this.style.alignItems=s?"flex-start":"flex-end";const l=this.getBoundingClientRect(),u=this.__calculatePositionInOneDimension(e,l,this.noVerticalOverlap,It,this,i),h=this.__calculatePositionInOneDimension(e,l,this.noHorizontalOverlap,St,this,n);Object.assign(this.style,u,h),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,i){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,n,this.__margins,s,this.noHorizontalOverlap,St)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),n=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,r,this.__margins,n,this.noVerticalOverlap,It)}__shouldAlignStart(e,i,r,n,s,l,u){const h=r-e[l?u.end:u.start]-n[u.end],d=e[l?u.start:u.end]-n[u.start],c=s?h:d,v=c>(s?d:h)||c>i;return s===v}__adjustBottomProperty(e,i,r){let n;if(e===i.end){if(i.end===It.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>s&&this.__oldViewportHeight){const l=this.__oldViewportHeight-s;n=r-l}this.__oldViewportHeight=s}if(i.end===St.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>s&&this.__oldViewportWidth){const l=this.__oldViewportWidth-s;n=r-l}this.__oldViewportWidth=s}}return n}__calculatePositionInOneDimension(e,i,r,n,s,l){const u=l?n.start:n.end,h=l?n.end:n.start,d=parseFloat(s.style[u]||getComputedStyle(s)[u]),c=this.__adjustBottomProperty(u,n,d),_=i[l?n.start:n.end]-e[r===l?n.end:n.start],v=c?`${c}px`:`${d+_*(l?-1:1)}px`;return{[u]:v,[h]:""}}};/**
2692
+ * @license
2693
+ * Copyright 2019 Google LLC
2694
+ * SPDX-License-Identifier: BSD-3-Clause
2695
+ */const st=globalThis,Qt=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zt=Symbol(),Di=new WeakMap;class Er{constructor(t,e,i){if(this._$cssResult$=!0,i!==Zt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Qt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Di.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Di.set(e,t))}return t}toString(){return this.cssText}}const Is=o=>new Er(typeof o=="string"?o:o+"",void 0,Zt),Ss=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,r,n)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[n+1],o[0]);return new Er(e,o,Zt)},Ps=(o,t)=>{if(Qt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=st.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,o.appendChild(i)}},Ii=Qt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Is(e)})(o):o;/**
2696
+ * @license
2697
+ * Copyright 2017 Google LLC
2698
+ * SPDX-License-Identifier: BSD-3-Clause
2699
+ */const{is:Ms,defineProperty:Os,getOwnPropertyDescriptor:$s,getOwnPropertyNames:Vs,getOwnPropertySymbols:zs,getPrototypeOf:Fs}=Object,ie=globalThis,Si=ie.trustedTypes,Hs=Si?Si.emptyScript:"",Pt=ie.reactiveElementPolyfillSupport,ze=(o,t)=>o,Bt={toAttribute(o,t){switch(t){case Boolean:o=o?Hs:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},Dr=(o,t)=>!Ms(o,t),Pi={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:Dr};var Xi,Ji;(Xi=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ji=ie.litPropertyMetadata)!=null||(ie.litPropertyMetadata=new WeakMap);class fe extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Pi){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Os(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){var s;const{get:r,set:n}=(s=$s(this.prototype,t))!=null?s:{get(){return this[e]},set(l){this[e]=l}};return{get(){return r==null?void 0:r.call(this)},set(l){const u=r==null?void 0:r.call(this);n.call(this,l),this.requestUpdate(t,u,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Pi}static _$Ei(){if(this.hasOwnProperty(ze("elementProperties")))return;const t=Fs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ze("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ze("properties"))){const e=this.properties,i=[...Vs(e),...zs(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Ii(r))}else t!==void 0&&e.push(Ii(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ps(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const s=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:Bt).toAttribute(e,i.type);this._$Em=t,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const s=i.getPropertyOptions(r),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Bt;this._$Em=r,this[r]=l.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,i){var r;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((r=i.hasChanged)!=null?r:Dr)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){var r;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(t)}_$ET(){return Se(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,l]of n)l.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],l)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}var er;fe.elementStyles=[],fe.shadowRootOptions={mode:"open"},fe[ze("elementProperties")]=new Map,fe[ze("finalized")]=new Map,Pt==null||Pt({ReactiveElement:fe}),((er=ie.reactiveElementVersions)!=null?er:ie.reactiveElementVersions=[]).push("2.0.4");/**
2700
+ * @license
2701
+ * Copyright 2017 Google LLC
2702
+ * SPDX-License-Identifier: BSD-3-Clause
2703
+ */const Fe=globalThis,ut=Fe.trustedTypes,Mi=ut?ut.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ir="$lit$",te=`lit$${Math.random().toFixed(9).slice(2)}$`,Sr="?"+te,Rs=`<${Sr}>`,he=document,Be=()=>he.createComment(""),Ue=o=>o===null||typeof o!="object"&&typeof o!="function",Xt=Array.isArray,Ls=o=>Xt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Mt=`[
2704
+ \f\r]`,Me=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oi=/-->/g,$i=/>/g,se=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
2705
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Vi=/'/g,zi=/"/g,Pr=/^(?:script|style|textarea|title)$/i,ye=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Fi=new WeakMap,le=he.createTreeWalker(he,129);function Mr(o,t){if(!Xt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Mi!==void 0?Mi.createHTML(t):t}const Bs=(o,t)=>{const e=o.length-1,i=[];let r,n=t===2?"<svg>":t===3?"<math>":"",s=Me;for(let l=0;l<e;l++){const u=o[l];let h,d,c=-1,_=0;for(;_<u.length&&(s.lastIndex=_,d=s.exec(u),d!==null);)_=s.lastIndex,s===Me?d[1]==="!--"?s=Oi:d[1]!==void 0?s=$i:d[2]!==void 0?(Pr.test(d[2])&&(r=RegExp("</"+d[2],"g")),s=se):d[3]!==void 0&&(s=se):s===se?d[0]===">"?(s=r!=null?r:Me,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?se:d[3]==='"'?zi:Vi):s===zi||s===Vi?s=se:s===Oi||s===$i?s=Me:(s=se,r=void 0);const v=s===se&&o[l+1].startsWith("/>")?" ":"";n+=s===Me?u+Rs:c>=0?(i.push(h),u.slice(0,c)+Ir+u.slice(c)+te+v):u+te+(c===-2?l:v)}return[Mr(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ne{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,s=0;const l=t.length-1,u=this.parts,[h,d]=Bs(t,e);if(this.el=Ne.createElement(h,i),le.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=le.nextNode())!==null&&u.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const c of r.getAttributeNames())if(c.endsWith(Ir)){const _=d[s++],v=r.getAttribute(c).split(te),g=/([.?@])?(.*)/.exec(_);u.push({type:1,index:n,name:g[2],strings:v,ctor:g[1]==="."?Ns:g[1]==="?"?Ys:g[1]==="@"?Ws:_t}),r.removeAttribute(c)}else c.startsWith(te)&&(u.push({type:6,index:n}),r.removeAttribute(c));if(Pr.test(r.tagName)){const c=r.textContent.split(te),_=c.length-1;if(_>0){r.textContent=ut?ut.emptyScript:"";for(let v=0;v<_;v++)r.append(c[v],Be()),le.nextNode(),u.push({type:2,index:++n});r.append(c[_],Be())}}}else if(r.nodeType===8)if(r.data===Sr)u.push({type:2,index:n});else{let c=-1;for(;(c=r.data.indexOf(te,c+1))!==-1;)u.push({type:7,index:n}),c+=te.length-1}n++}}static createElement(t,e){const i=he.createElement("template");return i.innerHTML=t,i}}function be(o,t,e=o,i){var s,l,u;if(t===ye)return t;let r=i!==void 0?(s=e._$Co)==null?void 0:s[i]:e._$Cl;const n=Ue(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((l=r==null?void 0:r._$AO)==null||l.call(r,!1),n===void 0?r=void 0:(r=new n(o),r._$AT(o,e,i)),i!==void 0?((u=e._$Co)!=null?u:e._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=be(o,r._$AS(o,t.values),r,i)),t}class Us{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var h;const{el:{content:e},parts:i}=this._$AD,r=((h=t==null?void 0:t.creationScope)!=null?h:he).importNode(e,!0);le.currentNode=r;let n=le.nextNode(),s=0,l=0,u=i[0];for(;u!==void 0;){if(s===u.index){let d;u.type===2?d=new Ge(n,n.nextSibling,this,t):u.type===1?d=new u.ctor(n,u.name,u.strings,this,t):u.type===6&&(d=new qs(n,this,t)),this._$AV.push(d),u=i[++l]}s!==(u==null?void 0:u.index)&&(n=le.nextNode(),s++)}return le.currentNode=he,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ge{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,r){var n;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(n=r==null?void 0:r.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=be(this,t,e),Ue(t)?t===F||t==null||t===""?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==ye&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ls(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==F&&Ue(this._$AH)?this._$AA.nextSibling.data=t:this.T(he.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ne.createElement(Mr(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const s=new Us(r,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=Fi.get(t.strings);return e===void 0&&Fi.set(t.strings,e=new Ne(t)),e}k(t){Xt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new Ge(this.O(Be()),this.O(Be()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=F}_$AI(t,e=this,i,r){const n=this.strings;let s=!1;if(n===void 0)t=be(this,t,e,0),s=!Ue(t)||t!==this._$AH&&t!==ye,s&&(this._$AH=t);else{const l=t;let u,h;for(t=n[0],u=0;u<n.length-1;u++)h=be(this,l[i+u],e,u),h===ye&&(h=this._$AH[u]),s||(s=!Ue(h)||h!==this._$AH[u]),h===F?t=F:t!==F&&(t+=(h!=null?h:"")+n[u+1]),this._$AH[u]=h}s&&!r&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Ns extends _t{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}class Ys extends _t{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==F)}}class Ws extends _t{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=be(this,t,e,0))!=null?s:F)===ye)return;const i=this._$AH,r=t===F&&i!==F||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==F&&(i===F||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class qs{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){be(this,t)}}const Ot=Fe.litHtmlPolyfillSupport;var tr;Ot==null||Ot(Ne,Ge),((tr=Fe.litHtmlVersions)!=null?tr:Fe.litHtmlVersions=[]).push("3.2.1");const js=(o,t,e)=>{var n,s;const i=(n=e==null?void 0:e.renderBefore)!=null?n:t;let r=i._$litPart$;if(r===void 0){const l=(s=e==null?void 0:e.renderBefore)!=null?s:null;i._$litPart$=r=new Ge(t.insertBefore(Be(),l),l,void 0,e!=null?e:{})}return r._$AI(o),r};/**
2706
+ * @license
2707
+ * Copyright 2017 Google LLC
2708
+ * SPDX-License-Identifier: BSD-3-Clause
2709
+ */class nt extends fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=js(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return ye}}var ir;nt._$litElement$=!0,nt.finalized=!0,(ir=globalThis.litElementHydrateSupport)==null||ir.call(globalThis,{LitElement:nt});const $t=globalThis.litElementPolyfillSupport;$t==null||$t({LitElement:nt});var rr;((rr=globalThis.litElementVersions)!=null?rr:globalThis.litElementVersions=[]).push("4.1.1");/**
2710
+ * @license
2711
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2712
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2713
+ */const Or=Ss`
2714
+ :host {
2715
+ z-index: 200;
2716
+ position: fixed;
2717
+
2718
+ /* Despite of what the names say, <vaadin-overlay> is just a container
2719
+ for position/sizing/alignment. The actual overlay is the overlay part. */
2720
+
2721
+ /* Default position constraints: the entire viewport. Note: themes can
2722
+ override this to introduce gaps between the overlay and the viewport. */
2723
+ inset: 0;
2724
+ bottom: var(--vaadin-overlay-viewport-bottom);
2725
+
2726
+ /* Use flexbox alignment for the overlay part. */
2727
+ display: flex;
2728
+ flex-direction: column; /* makes dropdowns sizing easier */
2729
+ /* Align to center by default. */
2730
+ align-items: center;
2731
+ justify-content: center;
2732
+
2733
+ /* Allow centering when max-width/max-height applies. */
2734
+ margin: auto;
2735
+
2736
+ /* The host is not clickable, only the overlay part is. */
2737
+ pointer-events: none;
2738
+
2739
+ /* Remove tap highlight on touch devices. */
2740
+ -webkit-tap-highlight-color: transparent;
2741
+
2742
+ /* CSS API for host */
2743
+ --vaadin-overlay-viewport-bottom: 0;
2744
+ }
2745
+
2746
+ :host([hidden]),
2747
+ :host(:not([opened]):not([closing])) {
2748
+ display: none !important;
2749
+ }
2750
+
2751
+ [part='overlay'] {
2752
+ -webkit-overflow-scrolling: touch;
2753
+ overflow: auto;
2754
+ pointer-events: auto;
2755
+
2756
+ /* Prevent overflowing the host */
2757
+ max-width: 100%;
2758
+ box-sizing: border-box;
2759
+
2760
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
2761
+ }
2762
+
2763
+ [part='backdrop'] {
2764
+ z-index: -1;
2765
+ content: '';
2766
+ background: rgba(0, 0, 0, 0.5);
2767
+ position: fixed;
2768
+ inset: 0;
2769
+ pointer-events: auto;
2770
+ }
2771
+ `;/**
2772
+ * @license
2773
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2774
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2775
+ */const Gs=qe`
2776
+ [part='overlay'] {
2777
+ display: flex;
2778
+ flex: auto;
2779
+ }
2780
+
2781
+ [part~='content'] {
2782
+ flex: auto;
2783
+ }
2784
+
2785
+ @media (forced-colors: active) {
2786
+ [part='overlay'] {
2787
+ outline: 3px solid;
2788
+ }
2789
+ }
2790
+ `;/**
2791
+ * @license
2792
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2793
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2794
+ */a.registerStyles("vaadin-date-picker-overlay",[Or,Gs],{moduleId:"vaadin-date-picker-overlay-styles"});class Ks extends Tr(kr(a.DirMixin(a.ThemableMixin(a.PolymerElement)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return a.html`
2795
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2796
+ <div part="overlay" id="overlay">
2797
+ <div part="content" id="content">
2798
+ <slot></slot>
2799
+ </div>
2800
+ </div>
2801
+ `}}a.defineCustomElement(Ks);/**
2802
+ * @license
2803
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2804
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2805
+ */function Qs(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),r=new Date(0,0);r.setFullYear(i.getFullYear());const n=i.getTime()-r.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function G(o,t){return o instanceof Date&&t instanceof Date&&o.getFullYear()===t.getFullYear()&&o.getMonth()===t.getMonth()&&o.getDate()===t.getDate()}function Ye(o,t,e){return(!t||o>=t)&&(!e||o<=e)}function $r(o,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const r=Math.abs(o.getTime()-i.getTime()),n=Math.abs(e.getTime()-o.getTime());return r<n?i:e})}function Vr(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function zr(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function Zs(o,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let r=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(r-50,e,i)?r-=100:o>new Date(r+50,e,i)&&(r+=100),r}function Oe(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}/**
2806
+ * @license
2807
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2808
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2809
+ */const Fr=document.createElement("template");Fr.innerHTML=`
2810
+ <style>
2811
+ :host {
2812
+ display: block;
2813
+ overflow: hidden;
2814
+ height: 500px;
2815
+ }
2816
+
2817
+ #scroller {
2818
+ position: relative;
2819
+ height: 100%;
2820
+ overflow: auto;
2821
+ outline: none;
2822
+ margin-right: -40px;
2823
+ -webkit-overflow-scrolling: touch;
2824
+ overflow-x: hidden;
2825
+ }
2826
+
2827
+ #scroller.notouchscroll {
2828
+ -webkit-overflow-scrolling: auto;
2829
+ }
2830
+
2831
+ #scroller::-webkit-scrollbar {
2832
+ display: none;
2833
+ }
2834
+
2835
+ .buffer {
2836
+ position: absolute;
2837
+ width: var(--vaadin-infinite-scroller-buffer-width, 100%);
2838
+ box-sizing: border-box;
2839
+ padding-right: 40px;
2840
+ top: var(--vaadin-infinite-scroller-buffer-offset, 0);
2841
+ animation: fadein 0.2s;
2842
+ }
2843
+
2844
+ @keyframes fadein {
2845
+ from {
2846
+ opacity: 0;
2847
+ }
2848
+ to {
2849
+ opacity: 1;
2850
+ }
2851
+ }
2852
+ </style>
2853
+
2854
+ <div id="scroller">
2855
+ <div class="buffer"></div>
2856
+ <div class="buffer"></div>
2857
+ <div id="fullHeight"></div>
2858
+ </div>
2859
+ `;class Hr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Fr.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}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(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%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(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,a.isFirefox&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?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 t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,r=t<this._buffers[0].translateY+e;(i||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=a.Debouncer.debounce(this._debouncerScrollFinish,a.timeOut.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=a.Debouncer.debounce(this._debouncerUpdateClones,a.timeOut.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const r=document.createElement("div");r.style.height=`${this.itemHeight}px`,r.instance={};const n=`vaadin-infinite-scroller-item-content-${a.generateUniqueId()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=r,e.appendChild(s),r.setAttribute("slot",n),this.appendChild(r),this._isVisible(r,t)&&this._ensureStampedInstance(r)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,r)=>{if(!i.updated){const n=this._firstIndex+this.bufferSize*r;[...i.children].forEach((s,l)=>{const u=s._itemWrapper;(!t||this._isVisible(u,e))&&this._updateElement(u.instance,n+l)}),i.updated=!0}})}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
2860
+ * @license
2861
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2862
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2863
+ */const Rr=document.createElement("template");Rr.innerHTML=`
2864
+ <style>
2865
+ :host {
2866
+ --vaadin-infinite-scroller-item-height: 270px;
2867
+ position: absolute;
2868
+ top: 0;
2869
+ left: 0;
2870
+ right: 0;
2871
+ bottom: 0;
2872
+ height: 100%;
2873
+ }
2874
+ </style>
2875
+ `;class Xs extends Hr{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Rr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=zr(e)}}a.defineCustomElement(Xs);/**
2876
+ * @license
2877
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2878
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2879
+ */const Lr=document.createElement("template");Lr.innerHTML=`
2880
+ <style>
2881
+ :host {
2882
+ --vaadin-infinite-scroller-item-height: 80px;
2883
+ width: 50px;
2884
+ display: block;
2885
+ height: 100%;
2886
+ position: absolute;
2887
+ right: 0;
2888
+ transform: translateX(100%);
2889
+ -webkit-tap-highlight-color: transparent;
2890
+ -webkit-user-select: none;
2891
+ -moz-user-select: none;
2892
+ user-select: none;
2893
+ /* Center the year scroller position. */
2894
+ --vaadin-infinite-scroller-buffer-offset: 50%;
2895
+ }
2896
+
2897
+ :host::before {
2898
+ content: '';
2899
+ display: block;
2900
+ background: transparent;
2901
+ width: 0;
2902
+ height: 0;
2903
+ position: absolute;
2904
+ left: 0;
2905
+ top: 50%;
2906
+ transform: translateY(-50%);
2907
+ border-width: 6px;
2908
+ border-style: solid;
2909
+ border-color: transparent;
2910
+ border-left-color: #000;
2911
+ }
2912
+ </style>
2913
+ `;class Js extends Hr{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Lr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}a.defineCustomElement(Js);/**
2914
+ * @license
2915
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2916
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2917
+ */class en extends a.ThemableMixin(a.PolymerElement){static get is(){return"vaadin-date-picker-year"}static get template(){return a.html`
2918
+ <style>
2919
+ :host {
2920
+ display: block;
2921
+ height: 100%;
2922
+ }
2923
+ </style>
2924
+ <div part="year-number">[[year]]</div>
2925
+ <div part="year-separator" aria-hidden="true"></div>
2926
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}}a.defineCustomElement(en);/**
2927
+ @license
2928
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2929
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2930
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2931
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2932
+ Code distributed by Google as part of the polymer project is also
2933
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2934
+ */function Jt(o,t,e,i,r){let n;r&&(n=typeof e=="object"&&e!==null,n&&(i=o.__dataTemp[t]));let s=i!==e&&(i===i||e===e);return n&&s&&(o.__dataTemp[t]=e),s}const ei=a.dedupingMixin(o=>{class t extends o{_shouldPropertyChange(i,r,n){return Jt(this,i,r,n,!0)}}return t}),tn=a.dedupingMixin(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,r,n){return Jt(this,i,r,n,this.mutableData)}}return t});ei._mutablePropertyChange=Jt;/**
2935
+ @license
2936
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2937
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2938
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2939
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2940
+ Code distributed by Google as part of the polymer project is also
2941
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2942
+ */let Ut=null;function Nt(){return Ut}Nt.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Nt,writable:!0}});const Br=a.PropertyEffects(Nt),rn=ei(Br);function on(o,t){Ut=o,Object.setPrototypeOf(o,t.prototype),new t,Ut=null}const sn=a.PropertyEffects(class{});function nn(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),a.wrap$1(a.wrap$1(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const r=i.__polymerReplaced__;r&&a.wrap$1(a.wrap$1(r).parentNode).replaceChild(i,r)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class ti extends sn{constructor(t){super(),this._configureProperties(t),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 i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,r=>{r.model=this,i(r)});else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(t,e,i)}}_showHideChildren(t){nn(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}const an=ei(ti);function Hi(o){let t=o.__dataHost;return t&&t._methodHost||t}function ln(o,t,e){let i=e.mutableData?an:ti;Yt.mixin&&(i=Yt.mixin(i));let r=class extends i{};return r.prototype.__templatizeOptions=e,r.prototype._bindTemplate(o),cn(r,o,t,e),r}function un(o,t,e,i){let r=e.forwardHostProp;if(r&&t.hasHostProps){const n=o.localName=="template";let s=t.templatizeTemplateClass;if(!s){if(n){let u=e.mutableData?rn:Br;class h extends u{}s=t.templatizeTemplateClass=h}else{const u=o.constructor;class h extends u{}s=t.templatizeTemplateClass=h}let l=t.hostProps;for(let u in l)s.prototype._addPropertyEffect("_host_"+u,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:hn(u,r)}),s.prototype._createNotifyingProperty("_host_"+u);a.legacyWarnings&&i&&mn(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),n)on(o,s),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,s.prototype);const l=t.hostProps;for(let u in l)if(u="_host_"+u,u in o){const h=o[u];delete o[u],o.__data[u]=h}}}}function hn(o,t){return function(i,r,n){t.call(i.__templatizeOwner,r.substring(6),n[r])}}function cn(o,t,e,i){let r=e.hostProps||{};for(let n in i.instanceProps){delete r[n];let s=i.notifyInstanceProp;s&&o.prototype._addPropertyEffect(n,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:dn(n,s)})}if(i.forwardHostProp&&t.__dataHost)for(let n in r)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(n,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pn()})}function dn(o,t){return function(i,r,n){t.call(i.__templatizeOwner,i,r,n[r])}}function pn(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function Yt(o,t,e){if(a.strictTemplatePolicy&&!Hi(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let r=(t?t.constructor:ti)._parseTemplate(o),n=r.templatizeInstanceClass;n||(n=ln(o,r,e),r.templatizeInstanceClass=n);const s=Hi(o);un(o,r,e,s);let l=class extends n{};return l.prototype._methodHost=s,l.prototype.__dataHost=o,l.prototype.__templatizeOwner=t,l.prototype.__hostProps=r.hostProps,l=l,l}function mn(o,t,e){const i=e.constructor._properties,{propertyEffects:r}=o,{instanceProps:n}=t;for(let s in r)if(!i[s]&&!(n&&n[s])){const l=r[s];for(let u=0;u<l.length;u++){const{part:h}=l[u].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function fn(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=a.wrap$1(t).parentNode;return null}/**
2943
+ @license
2944
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2945
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2946
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2947
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2948
+ Code distributed by Google as part of the polymer project is also
2949
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2950
+ */class ht{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,We.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),We.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(t,e,i){return t instanceof ht?t._cancelAsync():t=new ht,t.setConfig(e,i),t}}let We=new Set;const _n=function(o){We.add(o)},vn=function(){const o=!!We.size;return We.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o};/**
2951
+ @license
2952
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2953
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2954
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2955
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2956
+ Code distributed by Google as part of the polymer project is also
2957
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2958
+ */const Ur=function(){let o,t;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=vn();while(o||t)};/**
2959
+ @license
2960
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2961
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2962
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2963
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2964
+ Code distributed by Google as part of the polymer project is also
2965
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2966
+ */let Ri=!1;function gn(){if(a.legacyOptimizations&&!a.useShadow){if(!Ri){Ri=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
2967
+ @license
2968
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2969
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2970
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2971
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2972
+ Code distributed by Google as part of the polymer project is also
2973
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2974
+ */const yn=tn(a.PolymerElement);class Li extends yn{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:!a.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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),gn()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=a.wrap$1(a.wrap$1(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t: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 i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Yt(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(r,n){let s=this.__instances;for(let l=0,u;l<s.length&&(u=s[l]);l++)u.forwardHostProp(r,n)},notifyInstanceProp:function(r,n,s){if(a.matches(this.as,n)){let l=r[this.itemsIndexAs];n==this.as&&(this.items[l]=s);let u=a.translate(this.as,`${JSCompiler_renameProperty("items",this)}.${l}`,n);this.notifyPath(u,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=ht.debounce(this.__renderDebouncer,e>0?a.timeOut$1.after(e):a.microTask$1,t.bind(this)),_n(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ur()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!a.suppressTemplateNotifications||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,r,n)=>this.__filterFn(t[i],r,n))),this.__sortFn&&e.sort((i,r)=>this.__sortFn(t[i],t[r])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),r=Math.max(e-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+r,t)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<e;n++){let s=this.__instances[n],l=i[n],u=t[l];r[l]=n,s?(s._setPendingProperty(this.as,u),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,l),s._flushProperties()):this.__insertInstance(u,n,l)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(t){let e=this.__instances[t];const i=a.wrap$1(e.root);for(let r=0;r<e.children.length;r++){let n=e.children[r];i.appendChild(n)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let r={};return r[this.as]=t,r[this.indexAs]=e,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(t,e,i){const r=this.__stampInstance(t,e,i);let n=this.__instances[e+1],s=n?n.children[0]:this;return a.wrap$1(a.wrap$1(this).parentNode).insertBefore(r.root,s),this.__instances[e]=r,r}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),r=i.indexOf("."),n=r<0?i:i.substring(0,r);if(n==parseInt(n,10)){let s=r<0?"":i.substring(r+1);this.__handleObservedPaths(s);let l=this.__itemsIdxToInstIdx[n],u=this.__instances[l];if(u){let h=this.as+(s?"."+s:"");u._setPendingPropertyOrPath(h,e,!1,!0),u._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return fn(this.template,t)}}customElements.define(Li.is,Li);/**
2975
+ * @license
2976
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2977
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2978
+ */const bn=o=>class extends a.FocusMixin(o){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=>G(e.date,this.focusedDate))}ready(){super.ready(),a.addListener(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,i,r){const n=new Date(0,0);n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),i&&r&&i.getMonth()===r.getMonth()&&i.getMonth()===e.getMonth()&&r.getDate()-i.getDate()>=0?!1:!Ye(n,i,r)&&!Ye(s,i,r)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,i){e.setDate(e.getDate()+i)}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return[];const{weekdays:r,weekdaysShort:n,firstDayOfWeek:s}=e,l=this._applyFirstDayOfWeek(n,s);return this._applyFirstDayOfWeek(r,s).map((h,d)=>({weekDay:h,weekDayShort:l[d]}))}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(r=>G(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return G(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==i.firstDayOfWeek;)this._dateAdd(r,-1);const n=[],s=r.getMonth(),l=e.getMonth();for(;r.getMonth()===l||r.getMonth()===s;)n.push(r.getMonth()===l?new Date(r.getTime()):null),this._dateAdd(r,1);return n}_getWeeks(e){return e.reduce((i,r,n)=>(n%7===0&&i.push([]),i[i.length-1].push(r),i),[])}_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 i=e.reduce((r,n)=>!r&&n?n:r);return Qs(i)}__getDayAriaLabel(e){if(!e)return"";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
2979
+ * @license
2980
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2981
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2982
+ */const xn=qe`
2983
+ :host {
2984
+ display: block;
2985
+ }
2986
+
2987
+ #monthGrid {
2988
+ width: 100%;
2989
+ border-collapse: collapse;
2990
+ }
2991
+
2992
+ #days-container tr,
2993
+ #weekdays-container tr {
2994
+ display: flex;
2995
+ }
2996
+
2997
+ [part~='date'] {
2998
+ outline: none;
2999
+ }
3000
+
3001
+ [part~='disabled'] {
3002
+ pointer-events: none;
3003
+ }
3004
+
3005
+ [part='week-number'][hidden],
3006
+ [part='weekday'][hidden] {
3007
+ display: none;
3008
+ }
3009
+
3010
+ [part='weekday'],
3011
+ [part~='date'] {
3012
+ width: calc(100% / 7);
3013
+ padding: 0;
3014
+ font-weight: normal;
3015
+ }
3016
+
3017
+ [part='weekday']:empty,
3018
+ [part='week-number'] {
3019
+ width: 12.5%;
3020
+ flex-shrink: 0;
3021
+ padding: 0;
3022
+ }
3023
+
3024
+ :host([week-numbers]) [part='weekday']:not(:empty),
3025
+ :host([week-numbers]) [part~='date'] {
3026
+ width: 12.5%;
3027
+ }
3028
+
3029
+ @media (forced-colors: active) {
3030
+ [part~='date'][part~='focused'] {
3031
+ outline: 1px solid;
3032
+ }
3033
+
3034
+ [part~='date'][part~='selected'] {
3035
+ outline: 3px solid;
3036
+ }
3037
+ }
3038
+ `;/**
3039
+ * @license
3040
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3041
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3042
+ */a.registerStyles("vaadin-month-calendar",xn,{moduleId:"vaadin-month-calendar-styles"});class wn extends bn(a.ThemableMixin(a.PolymerElement)){static get template(){return a.html`
3043
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3044
+ <table
3045
+ id="monthGrid"
3046
+ role="grid"
3047
+ aria-labelledby="month-header"
3048
+ on-touchend="_preventDefault"
3049
+ on-touchstart="_onMonthGridTouchStart"
3050
+ >
3051
+ <thead id="weekdays-container">
3052
+ <tr role="row" part="weekdays">
3053
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
3054
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
3055
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
3056
+ [[item.weekDayShort]]
3057
+ </th>
3058
+ </template>
3059
+ </tr>
3060
+ </thead>
3061
+ <tbody id="days-container">
3062
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
3063
+ <tr role="row">
3064
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
3065
+ [[__getWeekNumber(week)]]
3066
+ </td>
3067
+ <template is="dom-repeat" items="[[week]]">
3068
+ <td
3069
+ role="gridcell"
3070
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
3071
+ date="[[item]]"
3072
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
3073
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
3074
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
3075
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
3076
+ aria-label$="[[__getDayAriaLabel(item)]]"
3077
+ >[[_getDate(item)]]</td
3078
+ >
3079
+ </template>
3080
+ </tr>
3081
+ </template>
3082
+ </tbody>
3083
+ </table>
3084
+ `}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(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,r,n){const s=["date"];return this.__isDayDisabled(t,r,n)&&s.push("disabled"),this.__isDayFocused(t,e)&&s.push("focused"),this.__isDaySelected(t,i)&&s.push("selected"),this._isToday(t)&&s.push("today"),s.join(" ")}__isDayFocused(t,e){return G(t,e)}__isDaySelected(t,e){return G(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i){return!Ye(t,e,i)}__getDayAriaDisabled(t,e,i){if(!(t===void 0||e===void 0||i===void 0)&&this.__isDayDisabled(t,e,i))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}a.defineCustomElement(wn);/**
3085
+ * @license
3086
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3087
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3088
+ */class Nr{constructor(t,e){this.query=t,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(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3089
+ * @license
3090
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3091
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3092
+ */const An=o=>class extends o{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(){a.setTouchAction(this.$.scrollers,"pan-y"),a.addListener(this.$.scrollers,"track",this._track.bind(this)),a.addListener(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),a.addListener(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),a.addListener(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Nr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new a.SlotController(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),a.addListener(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new a.SlotController(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),a.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,i){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new a.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",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(r=>{r.addEventListener("selected-date-changed",n=>{this.selectedDate=n.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new a.SlotController(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),a.addListener(e,"tap",i=>{this._onYearTap(i)}),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,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(r,n))}__updateCalendars(e,i,r,n,s,l,u,h,d){e&&e.length&&e.forEach(c=>{c.i18n=i,c.minDate=r,c.maxDate=n,c.focusedDate=l,c.selectedDate=s,c.showWeekNumbers=u,c.ignoreTaps=h,d?c.setAttribute("theme",d):c.removeAttribute("theme")})}__updateYears(e,i,r){e&&e.length&&e.forEach(n=>{n.selectedDate=i,r?n.setAttribute("theme",r):n.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,i=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const h=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+h,i);return}const n=this._monthScroller.position>r,l=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,u=this._monthScroller.position+l-1<r;n?this._scrollToPosition(r,i):u&&this._scrollToPosition(r-l+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let r=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.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=a.Debouncer.debounce(this._debouncer,a.timeOut.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,r){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Vr(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,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){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 n=(h,d,c,_)=>(h/=_/2,h<1?c/2*h*h+d:(h-=1,-c/2*(h*(h-2)-1)+d));let s=0;const l=this._monthScroller.position,u=h=>{s||(s=h);const d=h-s;if(d<this.scrollDuration){const c=n(d,l,this._targetPosition-l,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(u)}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(u)}_limit(e,i){return Math.min(i.max,Math.max(i.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 i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{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 zr(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.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){G(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),i=!0;break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){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 i=this.focusableDateElement;i&&G(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return Se(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,i||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Se(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ar(this,()=>{Ur(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate($r(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,r){this._dateAllowed(e)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),i&&r.setDate(this.focusedDate.getDate()+i),r}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),r=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==r&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),i==="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[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,r=this.maxDate){return(!i||e>=i)&&(!r||e<=r)}_isTodayAllowed(e,i){const r=new Date,n=new Date(0,0);return n.setFullYear(r.getFullYear()),n.setMonth(r.getMonth()),n.setDate(r.getDate()),this._dateAllowed(n,e,i)}};/**
3093
+ * @license
3094
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3095
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3096
+ */const Cn=qe`
3097
+ :host {
3098
+ display: flex;
3099
+ flex-direction: column;
3100
+ height: 100%;
3101
+ width: 100%;
3102
+ outline: none;
3103
+ }
3104
+
3105
+ [part='overlay-header'] {
3106
+ display: flex;
3107
+ flex-shrink: 0;
3108
+ flex-wrap: nowrap;
3109
+ align-items: center;
3110
+ }
3111
+
3112
+ :host(:not([fullscreen])) [part='overlay-header'] {
3113
+ display: none;
3114
+ }
3115
+
3116
+ [part='label'] {
3117
+ flex-grow: 1;
3118
+ }
3119
+
3120
+ [hidden] {
3121
+ display: none !important;
3122
+ }
3123
+
3124
+ [part='years-toggle-button'] {
3125
+ display: flex;
3126
+ }
3127
+
3128
+ #scrollers {
3129
+ display: flex;
3130
+ height: 100%;
3131
+ width: 100%;
3132
+ position: relative;
3133
+ overflow: hidden;
3134
+ }
3135
+
3136
+ :host([desktop]) ::slotted([slot='months']) {
3137
+ right: 50px;
3138
+ transform: none !important;
3139
+ }
3140
+
3141
+ :host([desktop]) ::slotted([slot='years']) {
3142
+ transform: none !important;
3143
+ }
3144
+
3145
+ :host(.animate) ::slotted([slot='months']),
3146
+ :host(.animate) ::slotted([slot='years']) {
3147
+ transition: all 200ms;
3148
+ }
3149
+
3150
+ [part='toolbar'] {
3151
+ display: flex;
3152
+ justify-content: space-between;
3153
+ z-index: 2;
3154
+ flex-shrink: 0;
3155
+ }
3156
+ `;/**
3157
+ * @license
3158
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3159
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3160
+ */a.registerStyles("vaadin-date-picker-overlay-content",Cn,{moduleId:"vaadin-date-picker-overlay-content-styles"});class kn extends An(a.ControllerMixin(a.ThemableMixin(a.DirMixin(a.PolymerElement)))){static get template(){return a.html`
3161
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3162
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3163
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
3164
+ <div part="toggle-button"></div>
3165
+
3166
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
3167
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
3168
+ </div>
3169
+ </div>
3170
+
3171
+ <div id="scrollers">
3172
+ <slot name="months"></slot>
3173
+ <slot name="years"></slot>
3174
+ </div>
3175
+
3176
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
3177
+ <slot name="today-button"></slot>
3178
+ <slot name="cancel-button"></slot>
3179
+ </div>
3180
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}a.defineCustomElement(kn);/**
3181
+ * @license
3182
+ * Copyright (c) 2023 Vaadin Ltd.
3183
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3184
+ */const Yr=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:r}=i;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(l=>!this.__initialClasses.has(l));s.length>0&&r.remove(...s)}const n=typeof e=="string"?e.split(" "):[];n.length>0&&r.add(...n),this.__previousClasses=n}};/**
3185
+ * @license
3186
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3187
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3188
+ */class Wr{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
3189
+ * @license
3190
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3191
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3192
+ */const Tn=o=>class extends Yr(a.ControllerMixin(a.DelegateFocusMixin(a.InputConstraintsMixin(a.KeyboardMixin(o))))){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 i=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),r=new Date;let n,s=r.getMonth(),l=r.getFullYear();if(i.length===3){if(s=parseInt(i[0])-1,n=parseInt(i[1]),l=parseInt(i[2]),i[2].length<3&&l>=0){const u=this.referenceDate?Oe(this.referenceDate):new Date;l=Zs(u,l,s,n)}}else i.length===2?(s=parseInt(i[0])-1,n=parseInt(i[1])):i.length===1&&(n=parseInt(i[0]));if(n!==void 0)return{day:n,month:s,year:l}},formatTitle:(e,i)=>`${e} ${i}`})},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:a.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 Nr(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new Wr(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 i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",r=>{this.__userConfirmedDate=!0,this._selectDate(r.detail.date),this._close()}),i.addEventListener("date-selected",r=>{this.__userConfirmedDate=!!r.detail.date,this._selectDate(r.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Oe(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Vr(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||Ye(this._selectedDate,this._minDate,this._maxDate);let n=!0;return this.inputElement&&(this.inputElement.checkValidity?n=this.inputElement.checkValidity():this.inputElement.validate&&(n=this.inputElement.validate())),i&&r&&n}_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 i=this.value;this._selectedDate=e,i!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,i,r,n,s,l){return!e||i&&(!l||s)||r&&s||!n.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const i=(d,c="00")=>(c+d).substr((c+d).length-c.length);let r="",n="0000",s=e.getFullYear();s<0?(s=-s,r="-",n="000000"):e.getFullYear()>=1e4&&(r="+",n="000000");const l=r+i(s,n),u=i(e.getMonth()+1),h=i(e.getDate());return[l,u,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,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const r=Oe(e);if(e&&!r){this.value=i;return}e?G(this._selectedDate,r)||(this._selectedDate=r,i!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,r,n,s,l,u,h){e&&(e.i18n=i,e.label=r,e.minDate=n,e.maxDate=s,e.focusedDate=l,e.selectedDate=u,e.showWeekNumbers=h)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const r=e.focusedDate||i;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 n=this._nativeInput;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[n,e];this.__showOthers=Cr(s)}_getInitialPosition(){const e=Oe(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ye(i,this._minDate,this._maxDate)?i:$r(i,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this._selectDate(i):(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,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_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 i=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),i===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,G(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Oe(e)}};/**
3193
+ * @license
3194
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3195
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3196
+ */const En=qe`
3197
+ :host([opened]) {
3198
+ pointer-events: auto;
3199
+ }
3200
+
3201
+ :host([dir='rtl']) [part='input-field'] {
3202
+ direction: ltr;
3203
+ }
3204
+
3205
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
3206
+ direction: rtl;
3207
+ text-align: left;
3208
+ }
3209
+ `;/**
3210
+ * @license
3211
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3212
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3213
+ */a.registerStyles("vaadin-date-picker",[a.inputFieldShared,En],{moduleId:"vaadin-date-picker-styles"});class Dn extends Tn(a.InputControlMixin(a.ThemableMixin(a.ElementMixin(a.PolymerElement)))){static get is(){return"vaadin-date-picker"}static get template(){return a.html`
3214
+ <div class="vaadin-date-picker-container">
3215
+ <div part="label">
3216
+ <slot name="label"></slot>
3217
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
3218
+ </div>
3219
+
3220
+ <vaadin-input-container
3221
+ part="input-field"
3222
+ readonly="[[readonly]]"
3223
+ disabled="[[disabled]]"
3224
+ invalid="[[invalid]]"
3225
+ theme$="[[_theme]]"
3226
+ >
3227
+ <slot name="prefix" slot="prefix"></slot>
3228
+ <slot name="input"></slot>
3229
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
3230
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
3231
+ </vaadin-input-container>
3232
+
3233
+ <div part="helper-text">
3234
+ <slot name="helper"></slot>
3235
+ </div>
3236
+
3237
+ <div part="error-message">
3238
+ <slot name="error-message"></slot>
3239
+ </div>
3240
+ </div>
3241
+
3242
+ <vaadin-date-picker-overlay
3243
+ id="overlay"
3244
+ fullscreen$="[[_fullscreen]]"
3245
+ theme$="[[_theme]]"
3246
+ opened="{{opened}}"
3247
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
3248
+ on-vaadin-overlay-open="_onOverlayOpened"
3249
+ on-vaadin-overlay-closing="_onOverlayClosed"
3250
+ restore-focus-on-close
3251
+ restore-focus-node="[[inputElement]]"
3252
+ ></vaadin-date-picker-overlay>
3253
+
3254
+ <slot name="tooltip"></slot>
3255
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new a.InputController(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new a.LabelledInputController(this.inputElement,this._labelController)),this._tooltipController=new a.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(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}a.defineCustomElement(Dn);function K(o){"@babel/helpers - typeof";return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(o)}function I(o,t){if(t.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+t.length+" present")}function In(o){return I(1,arguments),o instanceof Date||K(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function M(o){I(1,arguments);var t=Object.prototype.toString.call(o);return o instanceof Date||K(o)==="object"&&t==="[object Date]"?new Date(o.getTime()):typeof o=="number"||t==="[object Number]"?new Date(o):((typeof o=="string"||t==="[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 Sn(o){if(I(1,arguments),!In(o)&&typeof o!="number")return!1;var t=M(o);return!isNaN(Number(t))}function L(o){if(o===null||o===!0||o===!1)return NaN;var t=Number(o);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Pn(o,t){I(2,arguments);var e=M(o).getTime(),i=L(t);return new Date(e+i)}function qr(o,t){I(2,arguments);var e=L(t);return Pn(o,-e)}var Mn=864e5;function On(o){I(1,arguments);var t=M(o),e=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),r=e-i;return Math.floor(r/Mn)+1}function xe(o){I(1,arguments);var t=1,e=M(o),i=e.getUTCDay(),r=(i<t?7:0)+i-t;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function jr(o){I(1,arguments);var t=M(o),e=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(e+1,0,4),i.setUTCHours(0,0,0,0);var r=xe(i),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var s=xe(n);return t.getTime()>=r.getTime()?e+1:t.getTime()>=s.getTime()?e:e-1}function $n(o){I(1,arguments);var t=jr(o),e=new Date(0);e.setUTCFullYear(t,0,4),e.setUTCHours(0,0,0,0);var i=xe(e);return i}var Vn=6048e5;function Gr(o){I(1,arguments);var t=M(o),e=xe(t).getTime()-$n(t).getTime();return Math.round(e/Vn)+1}var zn={};function ke(){return zn}function ce(o,t){var e,i,r,n,s,l,u,h;I(1,arguments);var d=ke(),c=L((e=(i=(r=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:d.weekStartsOn)!==null&&i!==void 0?i:(u=d.locale)===null||u===void 0||(h=u.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 _=M(o),v=_.getUTCDay(),g=(v<c?7:0)+v-c;return _.setUTCDate(_.getUTCDate()-g),_.setUTCHours(0,0,0,0),_}function ii(o,t){var e,i,r,n,s,l,u,h;I(1,arguments);var d=M(o),c=d.getUTCFullYear(),_=ke(),v=L((e=(i=(r=(n=t==null?void 0:t.firstWeekContainsDate)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&i!==void 0?i:(u=_.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(c+1,0,v),g.setUTCHours(0,0,0,0);var O=ce(g,t),R=new Date(0);R.setUTCFullYear(c,0,v),R.setUTCHours(0,0,0,0);var U=ce(R,t);return d.getTime()>=O.getTime()?c+1:d.getTime()>=U.getTime()?c:c-1}function Fn(o,t){var e,i,r,n,s,l,u,h;I(1,arguments);var d=ke(),c=L((e=(i=(r=(n=t==null?void 0:t.firstWeekContainsDate)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:d.firstWeekContainsDate)!==null&&i!==void 0?i:(u=d.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&e!==void 0?e:1),_=ii(o,t),v=new Date(0);v.setUTCFullYear(_,0,c),v.setUTCHours(0,0,0,0);var g=ce(v,t);return g}var Hn=6048e5;function Kr(o,t){I(1,arguments);var e=M(o),i=ce(e,t).getTime()-Fn(e,t).getTime();return Math.round(i/Hn)+1}function C(o,t){for(var e=o<0?"-":"",i=Math.abs(o).toString();i.length<t;)i="0"+i;return e+i}var Rn={y:function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return C(e==="yy"?r%100:r,e.length)},M:function(t,e){var i=t.getUTCMonth();return e==="M"?String(i+1):C(i+1,2)},d:function(t,e){return C(t.getUTCDate(),e.length)},a:function(t,e){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,e){return C(t.getUTCHours()%12||12,e.length)},H:function(t,e){return C(t.getUTCHours(),e.length)},m:function(t,e){return C(t.getUTCMinutes(),e.length)},s:function(t,e){return C(t.getUTCSeconds(),e.length)},S:function(t,e){var i=e.length,r=t.getUTCMilliseconds(),n=Math.floor(r*Math.pow(10,i-3));return C(n,e.length)}};const J=Rn;var pe={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ln={G:function(t,e,i){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});case"GGGG":default:return i.era(r,{width:"wide"})}},y:function(t,e,i){if(e==="yo"){var r=t.getUTCFullYear(),n=r>0?r:1-r;return i.ordinalNumber(n,{unit:"year"})}return J.y(t,e)},Y:function(t,e,i,r){var n=ii(t,r),s=n>0?n:1-n;if(e==="YY"){var l=s%100;return C(l,2)}return e==="Yo"?i.ordinalNumber(s,{unit:"year"}):C(s,e.length)},R:function(t,e){var i=jr(t);return C(i,e.length)},u:function(t,e){var i=t.getUTCFullYear();return C(i,e.length)},Q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return C(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return C(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i){var r=t.getUTCMonth();switch(e){case"M":case"MM":return J.M(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return C(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,r){var n=Kr(t,r);return e==="wo"?i.ordinalNumber(n,{unit:"week"}):C(n,e.length)},I:function(t,e,i){var r=Gr(t);return e==="Io"?i.ordinalNumber(r,{unit:"week"}):C(r,e.length)},d:function(t,e,i){return e==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):J.d(t,e)},D:function(t,e,i){var r=On(t);return e==="Do"?i.ordinalNumber(r,{unit:"dayOfYear"}):C(r,e.length)},E:function(t,e,i){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});case"EEEE":default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,i,r){var n=t.getUTCDay(),s=(n-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return C(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,i,r){var n=t.getUTCDay(),s=(n-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return C(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,i){var r=t.getUTCDay(),n=r===0?7:r;switch(e){case"i":return String(n);case"ii":return C(n,e.length);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});case"iiii":default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){var r=t.getUTCHours(),n=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,i){var r=t.getUTCHours(),n;switch(r===12?n=pe.noon:r===0?n=pe.midnight:n=r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,i){var r=t.getUTCHours(),n;switch(r>=17?n=pe.evening:r>=12?n=pe.afternoon:r>=4?n=pe.morning:n=pe.night,e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,i){if(e==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return J.h(t,e)},H:function(t,e,i){return e==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):J.H(t,e)},K:function(t,e,i){var r=t.getUTCHours()%12;return e==="Ko"?i.ordinalNumber(r,{unit:"hour"}):C(r,e.length)},k:function(t,e,i){var r=t.getUTCHours();return r===0&&(r=24),e==="ko"?i.ordinalNumber(r,{unit:"hour"}):C(r,e.length)},m:function(t,e,i){return e==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):J.m(t,e)},s:function(t,e,i){return e==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):J.s(t,e)},S:function(t,e){return J.S(t,e)},X:function(t,e,i,r){var n=r._originalDate||t,s=n.getTimezoneOffset();if(s===0)return"Z";switch(e){case"X":return Ui(s);case"XXXX":case"XX":return ne(s);case"XXXXX":case"XXX":default:return ne(s,":")}},x:function(t,e,i,r){var n=r._originalDate||t,s=n.getTimezoneOffset();switch(e){case"x":return Ui(s);case"xxxx":case"xx":return ne(s);case"xxxxx":case"xxx":default:return ne(s,":")}},O:function(t,e,i,r){var n=r._originalDate||t,s=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Bi(s,":");case"OOOO":default:return"GMT"+ne(s,":")}},z:function(t,e,i,r){var n=r._originalDate||t,s=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Bi(s,":");case"zzzz":default:return"GMT"+ne(s,":")}},t:function(t,e,i,r){var n=r._originalDate||t,s=Math.floor(n.getTime()/1e3);return C(s,e.length)},T:function(t,e,i,r){var n=r._originalDate||t,s=n.getTime();return C(s,e.length)}};function Bi(o,t){var e=o>0?"-":"+",i=Math.abs(o),r=Math.floor(i/60),n=i%60;if(n===0)return e+String(r);var s=t;return e+String(r)+s+C(n,2)}function Ui(o,t){if(o%60===0){var e=o>0?"-":"+";return e+C(Math.abs(o)/60,2)}return ne(o,t)}function ne(o,t){var e=t||"",i=o>0?"-":"+",r=Math.abs(o),n=C(Math.floor(r/60),2),s=C(r%60,2);return i+n+e+s}const Bn=Ln;var Ni=function(t,e){switch(t){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"})}},Qr=function(t,e){switch(t){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"})}},Un=function(t,e){var i=t.match(/(P+)(p+)?/)||[],r=i[1],n=i[2];if(!n)return Ni(t,e);var s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Ni(r,e)).replace("{{time}}",Qr(n,e))},Nn={p:Qr,P:Un};const Wt=Nn;function Zr(o){var t=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return t.setUTCFullYear(o.getFullYear()),o.getTime()-t.getTime()}var Yn=["D","DD"],Wn=["YY","YYYY"];function Xr(o){return Yn.indexOf(o)!==-1}function Jr(o){return Wn.indexOf(o)!==-1}function ct(o,t,e){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) 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(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) 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 qn={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"}},jn=function(t,e,i){var r,n=qn[t];return typeof n=="string"?r=n:e===1?r=n.one:r=n.other.replace("{{count}}",e.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r};const Gn=jn;function Vt(o){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.width?String(t.width):o.defaultWidth,i=o.formats[e]||o.formats[o.defaultWidth];return i}}var Kn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xn={date:Vt({formats:Kn,defaultWidth:"full"}),time:Vt({formats:Qn,defaultWidth:"full"}),dateTime:Vt({formats:Zn,defaultWidth:"full"})};const Jn=Xn;var ea={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ta=function(t,e,i,r){return ea[t]};const ia=ta;function $e(o){return function(t,e){var i=e!=null&&e.context?String(e.context):"standalone",r;if(i==="formatting"&&o.formattingValues){var n=o.defaultFormattingWidth||o.defaultWidth,s=e!=null&&e.width?String(e.width):n;r=o.formattingValues[s]||o.formattingValues[n]}else{var l=o.defaultWidth,u=e!=null&&e.width?String(e.width):o.defaultWidth;r=o.values[u]||o.values[l]}var h=o.argumentCallback?o.argumentCallback(t):t;return r[h]}}var ra={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oa={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sa={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"]},na={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"]},aa={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"}},la={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"}},ua=function(t,e){var i=Number(t),r=i%100;if(r>20||r<10)switch(r%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},ha={ordinalNumber:ua,era:$e({values:ra,defaultWidth:"wide"}),quarter:$e({values:oa,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$e({values:sa,defaultWidth:"wide"}),day:$e({values:na,defaultWidth:"wide"}),dayPeriod:$e({values:aa,defaultWidth:"wide",formattingValues:la,defaultFormattingWidth:"wide"})};const ca=ha;function Ve(o){return function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.width,r=i&&o.matchPatterns[i]||o.matchPatterns[o.defaultMatchWidth],n=t.match(r);if(!n)return null;var s=n[0],l=i&&o.parsePatterns[i]||o.parsePatterns[o.defaultParseWidth],u=Array.isArray(l)?pa(l,function(c){return c.test(s)}):da(l,function(c){return c.test(s)}),h;h=o.valueCallback?o.valueCallback(u):u,h=e.valueCallback?e.valueCallback(h):h;var d=t.slice(s.length);return{value:h,rest:d}}}function da(o,t){for(var e in o)if(o.hasOwnProperty(e)&&t(o[e]))return e}function pa(o,t){for(var e=0;e<o.length;e++)if(t(o[e]))return e}function ma(o){return function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(o.matchPattern);if(!i)return null;var r=i[0],n=t.match(o.parsePattern);if(!n)return null;var s=o.valueCallback?o.valueCallback(n[0]):n[0];s=e.valueCallback?e.valueCallback(s):s;var l=t.slice(r.length);return{value:s,rest:l}}}var fa=/^(\d+)(th|st|nd|rd)?/i,_a=/\d+/i,va={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},ga={any:[/^b/i,/^(a|c)/i]},ya={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ba={any:[/1/i,/2/i,/3/i,/4/i]},xa={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},wa={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]},Aa={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},Ca={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]},ka={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},Ta={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}},Ea={ordinalNumber:ma({matchPattern:fa,parsePattern:_a,valueCallback:function(t){return parseInt(t,10)}}),era:Ve({matchPatterns:va,defaultMatchWidth:"wide",parsePatterns:ga,defaultParseWidth:"any"}),quarter:Ve({matchPatterns:ya,defaultMatchWidth:"wide",parsePatterns:ba,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ve({matchPatterns:xa,defaultMatchWidth:"wide",parsePatterns:wa,defaultParseWidth:"any"}),day:Ve({matchPatterns:Aa,defaultMatchWidth:"wide",parsePatterns:Ca,defaultParseWidth:"any"}),dayPeriod:Ve({matchPatterns:ka,defaultMatchWidth:"any",parsePatterns:Ta,defaultParseWidth:"any"})};const Da=Ea;var Ia={code:"en-US",formatDistance:Gn,formatLong:Jn,formatRelative:ia,localize:ca,match:Da,options:{weekStartsOn:0,firstWeekContainsDate:1}};const eo=Ia;var Sa=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ma=/^'([^]*?)'?$/,Oa=/''/g,$a=/[a-zA-Z]/;function Va(o,t,e){var i,r,n,s,l,u,h,d,c,_,v,g,O,R;I(2,arguments);var U=String(t),$=ke(),Y=(i=(r=void 0)!==null&&r!==void 0?r:$.locale)!==null&&i!==void 0?i:eo,j=L((n=(s=(l=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&l!==void 0?l:$.firstWeekContainsDate)!==null&&s!==void 0?s:(h=$.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=L((c=(_=(v=(g=void 0)!==null&&g!==void 0?g:void 0)!==null&&v!==void 0?v:$.weekStartsOn)!==null&&_!==void 0?_:(O=$.locale)===null||O===void 0||(R=O.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&c!==void 0?c:0);if(!(Z>=0&&Z<=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 X=M(o);if(!Sn(X))throw new RangeError("Invalid time value");var Te=Zr(X),Ee=qr(X,Te),De={firstWeekContainsDate:j,weekStartsOn:Z,locale:Y,_originalDate:X},vt=U.match(Pa).map(function(H){var B=H[0];if(B==="p"||B==="P"){var re=Wt[B];return re(H,Y.formatLong)}return H}).join("").match(Sa).map(function(H){if(H==="''")return"'";var B=H[0];if(B==="'")return za(H);var re=Bn[B];if(re)return Jr(H)&&ct(H,t,String(o)),Xr(H)&&ct(H,t,String(o)),re(Ee,H,Y.localize,De);if(B.match($a))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return H}).join("");return vt}function za(o){var t=o.match(Ma);return t?t[1].replace(Oa,"'"):o}function Yi(o,t){(t==null||t>o.length)&&(t=o.length);for(var e=0,i=Array(t);e<t;e++)i[e]=o[e];return i}function Fa(o,t){if(o){if(typeof o=="string")return Yi(o,t);var e={}.toString.call(o).slice(8,-1);return e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set"?Array.from(o):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Yi(o,t):void 0}}function Wi(o,t){var e=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!e){if(Array.isArray(o)||(e=Fa(o))||t){e&&(o=e);var i=0,r=function(){};return{s:r,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(h){throw h},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3256
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n,s=!0,l=!1;return{s:function(){e=e.call(o)},n:function(){var h=e.next();return s=h.done,h},e:function(h){l=!0,n=h},f:function(){try{s||e.return==null||e.return()}finally{if(l)throw n}}}}function Ha(o,t){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e]);return o}function f(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function qt(o,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e},qt(o,t)}function x(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&qt(o,t)}function dt(o){return dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dt(o)}function to(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(to=function(){return!!o})()}function Ra(o,t){if(t&&(K(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(o)}function w(o){var t=to();return function(){var e,i=dt(o);if(t){var r=dt(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return Ra(this,e)}}function y(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function La(o,t){if(K(o)!="object"||!o)return o;var e=o[Symbol.toPrimitive];if(e!==void 0){var i=e.call(o,t||"default");if(K(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function io(o){var t=La(o,"string");return K(t)=="symbol"?t:t+""}function Ba(o,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,io(i.key),i)}}function b(o,t,e){return t&&Ba(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function m(o,t,e){return(t=io(t))in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}var Ua=10,ro=function(){function o(){y(this,o),m(this,"priority",void 0),m(this,"subPriority",0)}return b(o,[{key:"validate",value:function(e,i){return!0}}]),o}(),Na=function(o){x(e,o);var t=w(e);function e(i,r,n,s,l){var u;return y(this,e),u=t.call(this),u.value=i,u.validateValue=r,u.setValue=n,u.priority=s,l&&(u.subPriority=l),u}return b(e,[{key:"validate",value:function(r,n){return this.validateValue(r,this.value,n)}},{key:"set",value:function(r,n,s){return this.setValue(r,n,this.value,s)}}]),e}(ro),Ya=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",Ua),m(f(i),"subPriority",-1),i}return b(e,[{key:"set",value:function(r,n){if(n.timestampIsSet)return r;var s=new Date(0);return s.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),s.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),s}}]),e}(ro),A=function(){function o(){y(this,o),m(this,"incompatibleTokens",void 0),m(this,"priority",void 0),m(this,"subPriority",void 0)}return b(o,[{key:"run",value:function(e,i,r,n){var s=this.parse(e,i,r,n);return s?{setter:new Na(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(e,i,r){return!0}}]),o}(),Wa=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",140),m(f(i),"incompatibleTokens",["R","u","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"G":case"GG":case"GGG":return s.era(r,{width:"abbreviated"})||s.era(r,{width:"narrow"});case"GGGGG":return s.era(r,{width:"narrow"});case"GGGG":default:return s.era(r,{width:"wide"})||s.era(r,{width:"abbreviated"})||s.era(r,{width:"narrow"})}}},{key:"set",value:function(r,n,s){return n.era=s,r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(A),qa=6e4,ja=36e5,Ga=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}/},W={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 P(o,t){return o&&{value:t(o.value),rest:o.rest}}function E(o,t){var e=t.match(o);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function q(o,t){var e=t.match(o);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};var i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,n=e[3]?parseInt(e[3],10):0,s=e[5]?parseInt(e[5],10):0;return{value:i*(r*ja+n*qa+s*Ga),rest:t.slice(e[0].length)}}function oo(o){return E(S.anyDigitsSigned,o)}function D(o,t){switch(o){case 1:return E(S.singleDigit,t);case 2:return E(S.twoDigits,t);case 3:return E(S.threeDigits,t);case 4:return E(S.fourDigits,t);default:return E(new RegExp("^\\d{1,"+o+"}"),t)}}function pt(o,t){switch(o){case 1:return E(S.singleDigitSigned,t);case 2:return E(S.twoDigitsSigned,t);case 3:return E(S.threeDigitsSigned,t);case 4:return E(S.fourDigitsSigned,t);default:return E(new RegExp("^-?\\d{1,"+o+"}"),t)}}function ri(o){switch(o){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 so(o,t){var e=t>0,i=e?t:1-t,r;if(i<=50)r=o||100;else{var n=i+50,s=Math.floor(n/100)*100,l=o>=n%100;r=o+s-(l?100:0)}return e?r:1-r}function no(o){return o%400===0||o%4===0&&o%100!==0}var Ka=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",130),m(f(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){var l=function(h){return{year:h,isTwoDigitYear:n==="yy"}};switch(n){case"y":return P(D(4,r),l);case"yo":return P(s.ordinalNumber(r,{unit:"year"}),l);default:return P(D(n.length,r),l)}}},{key:"validate",value:function(r,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(r,n,s){var l=r.getUTCFullYear();if(s.isTwoDigitYear){var u=so(s.year,l);return r.setUTCFullYear(u,0,1),r.setUTCHours(0,0,0,0),r}var h=!("era"in n)||n.era===1?s.year:1-s.year;return r.setUTCFullYear(h,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(A),Qa=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",130),m(f(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){var l=function(h){return{year:h,isTwoDigitYear:n==="YY"}};switch(n){case"Y":return P(D(4,r),l);case"Yo":return P(s.ordinalNumber(r,{unit:"year"}),l);default:return P(D(n.length,r),l)}}},{key:"validate",value:function(r,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(r,n,s,l){var u=ii(r,l);if(s.isTwoDigitYear){var h=so(s.year,u);return r.setUTCFullYear(h,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),ce(r,l)}var d=!("era"in n)||n.era===1?s.year:1-s.year;return r.setUTCFullYear(d,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),ce(r,l)}}]),e}(A),Za=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",130),m(f(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n){return pt(n==="R"?4:n.length,r)}},{key:"set",value:function(r,n,s){var l=new Date(0);return l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0),xe(l)}}]),e}(A),Xa=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",130),m(f(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n){return pt(n==="u"?4:n.length,r)}},{key:"set",value:function(r,n,s){return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(A),Ja=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",120),m(f(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"Q":case"QQ":return D(n.length,r);case"Qo":return s.ordinalNumber(r,{unit:"quarter"});case"QQQ":return s.quarter(r,{width:"abbreviated",context:"formatting"})||s.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(r,{width:"wide",context:"formatting"})||s.quarter(r,{width:"abbreviated",context:"formatting"})||s.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,n){return n>=1&&n<=4}},{key:"set",value:function(r,n,s){return r.setUTCMonth((s-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),e}(A),el=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",120),m(f(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"q":case"qq":return D(n.length,r);case"qo":return s.ordinalNumber(r,{unit:"quarter"});case"qqq":return s.quarter(r,{width:"abbreviated",context:"standalone"})||s.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(r,{width:"wide",context:"standalone"})||s.quarter(r,{width:"abbreviated",context:"standalone"})||s.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,n){return n>=1&&n<=4}},{key:"set",value:function(r,n,s){return r.setUTCMonth((s-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),e}(A),tl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),m(f(i),"priority",110),i}return b(e,[{key:"parse",value:function(r,n,s){var l=function(h){return h-1};switch(n){case"M":return P(E(S.month,r),l);case"MM":return P(D(2,r),l);case"Mo":return P(s.ordinalNumber(r,{unit:"month"}),l);case"MMM":return s.month(r,{width:"abbreviated",context:"formatting"})||s.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(r,{width:"wide",context:"formatting"})||s.month(r,{width:"abbreviated",context:"formatting"})||s.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,n){return n>=0&&n<=11}},{key:"set",value:function(r,n,s){return r.setUTCMonth(s,1),r.setUTCHours(0,0,0,0),r}}]),e}(A),il=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",110),m(f(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){var l=function(h){return h-1};switch(n){case"L":return P(E(S.month,r),l);case"LL":return P(D(2,r),l);case"Lo":return P(s.ordinalNumber(r,{unit:"month"}),l);case"LLL":return s.month(r,{width:"abbreviated",context:"standalone"})||s.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(r,{width:"wide",context:"standalone"})||s.month(r,{width:"abbreviated",context:"standalone"})||s.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,n){return n>=0&&n<=11}},{key:"set",value:function(r,n,s){return r.setUTCMonth(s,1),r.setUTCHours(0,0,0,0),r}}]),e}(A);function rl(o,t,e){I(2,arguments);var i=M(o),r=L(t),n=Kr(i,e)-r;return i.setUTCDate(i.getUTCDate()-n*7),i}var ol=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",100),m(f(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"w":return E(S.week,r);case"wo":return s.ordinalNumber(r,{unit:"week"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=1&&n<=53}},{key:"set",value:function(r,n,s,l){return ce(rl(r,s,l),l)}}]),e}(A);function sl(o,t){I(2,arguments);var e=M(o),i=L(t),r=Gr(e)-i;return e.setUTCDate(e.getUTCDate()-r*7),e}var nl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",100),m(f(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"I":return E(S.week,r);case"Io":return s.ordinalNumber(r,{unit:"week"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=1&&n<=53}},{key:"set",value:function(r,n,s){return xe(sl(r,s))}}]),e}(A),al=[31,28,31,30,31,30,31,31,30,31,30,31],ll=[31,29,31,30,31,30,31,31,30,31,30,31],ul=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",90),m(f(i),"subPriority",1),m(f(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"d":return E(S.date,r);case"do":return s.ordinalNumber(r,{unit:"date"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){var s=r.getUTCFullYear(),l=no(s),u=r.getUTCMonth();return l?n>=1&&n<=ll[u]:n>=1&&n<=al[u]}},{key:"set",value:function(r,n,s){return r.setUTCDate(s),r.setUTCHours(0,0,0,0),r}}]),e}(A),hl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",90),m(f(i),"subpriority",1),m(f(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"D":case"DD":return E(S.dayOfYear,r);case"Do":return s.ordinalNumber(r,{unit:"date"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){var s=r.getUTCFullYear(),l=no(s);return l?n>=1&&n<=366:n>=1&&n<=365}},{key:"set",value:function(r,n,s){return r.setUTCMonth(0,s),r.setUTCHours(0,0,0,0),r}}]),e}(A);function oi(o,t,e){var i,r,n,s,l,u,h,d;I(2,arguments);var c=ke(),_=L((i=(r=(n=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(l=e.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:c.weekStartsOn)!==null&&r!==void 0?r:(h=c.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&i!==void 0?i:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=M(o),g=L(t),O=v.getUTCDay(),R=g%7,U=(R+7)%7,$=(U<_?7:0)+g-O;return v.setUTCDate(v.getUTCDate()+$),v}var cl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",90),m(f(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"E":case"EE":case"EEE":return s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(r,{width:"wide",context:"formatting"})||s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,n){return n>=0&&n<=6}},{key:"set",value:function(r,n,s,l){return r=oi(r,s,l),r.setUTCHours(0,0,0,0),r}}]),e}(A),dl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",90),m(f(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s,l){var u=function(d){var c=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+c};switch(n){case"e":case"ee":return P(D(n.length,r),u);case"eo":return P(s.ordinalNumber(r,{unit:"day"}),u);case"eee":return s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"eeeee":return s.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(r,{width:"wide",context:"formatting"})||s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,n){return n>=0&&n<=6}},{key:"set",value:function(r,n,s,l){return r=oi(r,s,l),r.setUTCHours(0,0,0,0),r}}]),e}(A),pl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",90),m(f(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s,l){var u=function(d){var c=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+c};switch(n){case"c":case"cc":return P(D(n.length,r),u);case"co":return P(s.ordinalNumber(r,{unit:"day"}),u);case"ccc":return s.day(r,{width:"abbreviated",context:"standalone"})||s.day(r,{width:"short",context:"standalone"})||s.day(r,{width:"narrow",context:"standalone"});case"ccccc":return s.day(r,{width:"narrow",context:"standalone"});case"cccccc":return s.day(r,{width:"short",context:"standalone"})||s.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(r,{width:"wide",context:"standalone"})||s.day(r,{width:"abbreviated",context:"standalone"})||s.day(r,{width:"short",context:"standalone"})||s.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,n){return n>=0&&n<=6}},{key:"set",value:function(r,n,s,l){return r=oi(r,s,l),r.setUTCHours(0,0,0,0),r}}]),e}(A);function ml(o,t){I(2,arguments);var e=L(t);e%7===0&&(e=e-7);var i=1,r=M(o),n=r.getUTCDay(),s=e%7,l=(s+7)%7,u=(l<i?7:0)+e-n;return r.setUTCDate(r.getUTCDate()+u),r}var fl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",90),m(f(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){var l=function(h){return h===0?7:h};switch(n){case"i":case"ii":return D(n.length,r);case"io":return s.ordinalNumber(r,{unit:"day"});case"iii":return P(s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"}),l);case"iiiii":return P(s.day(r,{width:"narrow",context:"formatting"}),l);case"iiiiii":return P(s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"}),l);case"iiii":default:return P(s.day(r,{width:"wide",context:"formatting"})||s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(r,n){return n>=1&&n<=7}},{key:"set",value:function(r,n,s){return r=ml(r,s),r.setUTCHours(0,0,0,0),r}}]),e}(A),_l=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",80),m(f(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"a":case"aa":case"aaa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})||s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,n,s){return r.setUTCHours(ri(s),0,0,0),r}}]),e}(A),vl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",80),m(f(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"b":case"bb":case"bbb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})||s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,n,s){return r.setUTCHours(ri(s),0,0,0),r}}]),e}(A),gl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",80),m(f(i),"incompatibleTokens",["a","b","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"B":case"BB":case"BBB":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})||s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,n,s){return r.setUTCHours(ri(s),0,0,0),r}}]),e}(A),yl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",70),m(f(i),"incompatibleTokens",["H","K","k","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"h":return E(S.hour12h,r);case"ho":return s.ordinalNumber(r,{unit:"hour"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=1&&n<=12}},{key:"set",value:function(r,n,s){var l=r.getUTCHours()>=12;return l&&s<12?r.setUTCHours(s+12,0,0,0):!l&&s===12?r.setUTCHours(0,0,0,0):r.setUTCHours(s,0,0,0),r}}]),e}(A),bl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",70),m(f(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"H":return E(S.hour23h,r);case"Ho":return s.ordinalNumber(r,{unit:"hour"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=0&&n<=23}},{key:"set",value:function(r,n,s){return r.setUTCHours(s,0,0,0),r}}]),e}(A),xl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",70),m(f(i),"incompatibleTokens",["h","H","k","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"K":return E(S.hour11h,r);case"Ko":return s.ordinalNumber(r,{unit:"hour"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=0&&n<=11}},{key:"set",value:function(r,n,s){var l=r.getUTCHours()>=12;return l&&s<12?r.setUTCHours(s+12,0,0,0):r.setUTCHours(s,0,0,0),r}}]),e}(A),wl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",70),m(f(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"k":return E(S.hour24h,r);case"ko":return s.ordinalNumber(r,{unit:"hour"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=1&&n<=24}},{key:"set",value:function(r,n,s){var l=s<=24?s%24:s;return r.setUTCHours(l,0,0,0),r}}]),e}(A),Al=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",60),m(f(i),"incompatibleTokens",["t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"m":return E(S.minute,r);case"mo":return s.ordinalNumber(r,{unit:"minute"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=0&&n<=59}},{key:"set",value:function(r,n,s){return r.setUTCMinutes(s,0,0),r}}]),e}(A),Cl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",50),m(f(i),"incompatibleTokens",["t","T"]),i}return b(e,[{key:"parse",value:function(r,n,s){switch(n){case"s":return E(S.second,r);case"so":return s.ordinalNumber(r,{unit:"second"});default:return D(n.length,r)}}},{key:"validate",value:function(r,n){return n>=0&&n<=59}},{key:"set",value:function(r,n,s){return r.setUTCSeconds(s,0),r}}]),e}(A),kl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",30),m(f(i),"incompatibleTokens",["t","T"]),i}return b(e,[{key:"parse",value:function(r,n){var s=function(u){return Math.floor(u*Math.pow(10,-n.length+3))};return P(D(n.length,r),s)}},{key:"set",value:function(r,n,s){return r.setUTCMilliseconds(s),r}}]),e}(A),Tl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",10),m(f(i),"incompatibleTokens",["t","T","x"]),i}return b(e,[{key:"parse",value:function(r,n){switch(n){case"X":return q(W.basicOptionalMinutes,r);case"XX":return q(W.basic,r);case"XXXX":return q(W.basicOptionalSeconds,r);case"XXXXX":return q(W.extendedOptionalSeconds,r);case"XXX":default:return q(W.extended,r)}}},{key:"set",value:function(r,n,s){return n.timestampIsSet?r:new Date(r.getTime()-s)}}]),e}(A),El=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",10),m(f(i),"incompatibleTokens",["t","T","X"]),i}return b(e,[{key:"parse",value:function(r,n){switch(n){case"x":return q(W.basicOptionalMinutes,r);case"xx":return q(W.basic,r);case"xxxx":return q(W.basicOptionalSeconds,r);case"xxxxx":return q(W.extendedOptionalSeconds,r);case"xxx":default:return q(W.extended,r)}}},{key:"set",value:function(r,n,s){return n.timestampIsSet?r:new Date(r.getTime()-s)}}]),e}(A),Dl=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",40),m(f(i),"incompatibleTokens","*"),i}return b(e,[{key:"parse",value:function(r){return oo(r)}},{key:"set",value:function(r,n,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),e}(A),Il=function(o){x(e,o);var t=w(e);function e(){var i;y(this,e);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n)),m(f(i),"priority",20),m(f(i),"incompatibleTokens","*"),i}return b(e,[{key:"parse",value:function(r){return oo(r)}},{key:"set",value:function(r,n,s){return[new Date(s),{timestampIsSet:!0}]}}]),e}(A),Sl={G:new Wa,y:new Ka,Y:new Qa,R:new Za,u:new Xa,Q:new Ja,q:new el,M:new tl,L:new il,w:new ol,I:new nl,d:new ul,D:new hl,E:new cl,e:new dl,c:new pl,i:new fl,a:new _l,b:new vl,B:new gl,h:new yl,H:new bl,K:new xl,k:new wl,m:new Al,s:new Cl,S:new kl,X:new Tl,x:new El,t:new Dl,T:new Il},Pl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ml=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ol=/^'([^]*?)'?$/,$l=/''/g,Vl=/\S/,zl=/[a-zA-Z]/;function tt(o,t,e,i){var r,n,s,l,u,h,d,c,_,v,g,O,R,U;I(3,arguments);var $=String(o),Y=String(t),j=ke(),Z=(r=(n=void 0)!==null&&n!==void 0?n:j.locale)!==null&&r!==void 0?r:eo;if(!Z.match)throw new RangeError("locale must contain match property");var X=L((s=(l=(u=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&u!==void 0?u:j.firstWeekContainsDate)!==null&&l!==void 0?l:(d=j.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(X>=1&&X<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Te=L((_=(v=(g=(O=void 0)!==null&&O!==void 0?O:void 0)!==null&&g!==void 0?g:j.weekStartsOn)!==null&&v!==void 0?v:(R=j.locale)===null||R===void 0||(U=R.options)===null||U===void 0?void 0:U.weekStartsOn)!==null&&_!==void 0?_:0);if(!(Te>=0&&Te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(Y==="")return $===""?M(e):new Date(NaN);var Ee={firstWeekContainsDate:X,weekStartsOn:Te,locale:Z},De=[new Ya],vt=Y.match(Ml).map(function(V){var T=V[0];if(T in Wt){var N=Wt[T];return N(V,Z.formatLong)}return V}).join("").match(Pl),H=[],B=Wi(vt),re;try{var yo=function(){var T=re.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&Jr(T)&&ct(T,Y,o),!(i!=null&&i.useAdditionalDayOfYearTokens)&&Xr(T)&&ct(T,Y,o);var N=T[0],Xe=Sl[N];if(Xe){var ci=Xe.incompatibleTokens;if(Array.isArray(ci)){var di=H.find(function(pi){return ci.includes(pi.token)||pi.token===N});if(di)throw new RangeError("The format string mustn't contain `".concat(di.fullToken,"` and `").concat(T,"` at the same time"))}else if(Xe.incompatibleTokens==="*"&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(T,"` and any other token at the same time"));H.push({token:N,fullToken:T});var yt=Xe.run($,T,Z.match,Ee);if(!yt)return{v:new Date(NaN)};De.push(yt.setter),$=yt.rest}else{if(N.match(zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");if(T==="''"?T="'":N==="'"&&(T=Fl(T)),$.indexOf(T)===0)$=$.slice(T.length);else return{v:new Date(NaN)}}};for(B.s();!(re=B.n()).done;){var ai=yo();if(K(ai)==="object")return ai.v}}catch(V){B.e(V)}finally{B.f()}if($.length>0&&Vl.test($))return new Date(NaN);var bo=De.map(function(V){return V.priority}).sort(function(V,T){return T-V}).filter(function(V,T,N){return N.indexOf(V)===T}).map(function(V){return De.filter(function(T){return T.priority===V}).sort(function(T,N){return N.subPriority-T.subPriority})}).map(function(V){return V[0]}),gt=M(e);if(isNaN(gt.getTime()))return new Date(NaN);var Ie=qr(gt,Zr(gt)),li={},Qe=Wi(bo),ui;try{for(Qe.s();!(ui=Qe.n()).done;){var hi=ui.value;if(!hi.validate(Ie,Ee))return new Date(NaN);var Ze=hi.set(Ie,li,Ee);Array.isArray(Ze)?(Ie=Ze[0],Ha(li,Ze[1])):Ie=Ze}}catch(V){Qe.e(V)}finally{Qe.f()}return Ie}function Fl(o){return o.match(Ol)[1].replace($l,"'")}function qi(o,t){I(2,arguments);var e=M(o),i=M(t);return e.getTime()>i.getTime()}function ji(o,t){I(2,arguments);var e=M(o),i=M(t);return e.getTime()<i.getTime()}const Hl='*,*::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}',Rl=Hl,ao=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.clientStyling="",this.emitOnClick=!1,this.limitStylingAppends=!1,this.showTooltip=!1,this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:r}=t,n=new Date(e,i,r);return Va(n,this.dateFormat||"yyyy-MM-dd")},this.parseDate=t=>{const e=tt(t,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 t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(o){this.sendValidityState.emit(o)}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var o,t;this.minDate=tt(((o=this.validation.min)===null||o===void 0?void 0:o.toString())||"","yyyy-MM-dd",new Date),this.maxDate=tt(((t=this.validation.max)===null||t===void 0?void 0:t.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 o=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');o&&o.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(o){this.value=o.target.value,this.touched=!0,this.valueAsDate=tt(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return ji(this.valueAsDate,this.minDate)||qi(this.valueAsDate,this.maxDate)?!1:this.inputReference.validity.valid}setErrorMessage(){if(ji(this.valueAsDate,this.minDate)||qi(this.valueAsDate,this.maxDate))return k.translate("dateError2",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return k.translate("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return k.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?p.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){let o="";return this.touched&&(o=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),p.h("div",{key:"fc9cd0a618c7b6e62962c0800399a470fffa1fc4",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},p.h("label",{key:"abc7c1715dd2d0c60dd2ac6d028355de910be501",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),p.h("vaadin-date-picker",{key:"a6b40a978b573d41490457d708f9a7ac78622a6f",id:`${this.name}__input`,type:"date",class:`date__input ${o}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:t=>this.handleInput(t),onBlur:this.handleBlur}),p.h("small",{key:"d802ea7b25a64802aca3a7491107fcee7af2a23c",class:"date__error-message"},this.errorMessage),this.tooltip&&p.h("img",{key:"46edd200a9ce9eba27414a6434c6b3d5e9dc9964",class:"date__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return p.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ao.style=Rl;const Ll='*,*::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}',Bl=Ll,lo=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.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 t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(o){this.sendValidityState.emit(o)}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(o){this.isDuplicateInput&&this.name===o.detail.name+"Duplicate"&&(this.duplicateInputValue=o.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 o,t;if(((o=this.validation.custom)===null||o===void 0?void 0:o.length)>0)return(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.pattern}setErrorMessage(){var o,t,e,i;if(this.inputReference.validity.patternMismatch){const r=(o=this.validation.custom.find(s=>s.rule==="regex"))===null||o===void 0?void 0:o.errorKey,n=(t=this.validation.custom.find(s=>s.rule==="regex"))===null||t===void 0?void 0:t.errorMessage;return k.translate(`${r}`,this.language)?k.translate(`${r}`,this.language):n}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return k.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return k.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const r=(e=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||e===void 0?void 0:e.errorKey,n=(i=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||i===void 0?void 0:i.errorMessage;return k.translate(`${r}`,this.language)?k.translate(`${r}`,this.language):n}}renderTooltip(){return this.showTooltip?p.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){let o="";return this.touched&&(o=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),p.h("div",{key:"23ac67984ab7a0f4db01e5fe01f4f326b4c6a912",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},p.h("div",{key:"aa2405e435aea20f1678dd74776a8ce4094bc95b",class:"email__wrapper--flex"},p.h("label",{key:"970b83bbcf082d1721c1647993fecd076939b65d",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),p.h("div",{key:"2f03eaf161aab9b45282c1bc0de15bea8455427c",class:"email__wrapper--relative"},this.tooltip&&p.h("img",{key:"3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b",class:"email__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),p.h("input",{key:"491f83c0f562893c02e3425b4d54eecc214e3c95",id:`${this.name}__input`,type:"email",class:`email__input ${o}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),p.h("small",{key:"edb6660d958cc5d0cb41b0db195bd7e847ecbefe",class:"email__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};lo.style=Bl;const Ul='*,*::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}',Nl=Ul,uo=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.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 t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(o){this.sendValidityState.emit(o)}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.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 o,t;if(((o=this.validation.custom)===null||o===void 0?void 0:o.length)>0)return(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.pattern}setErrorMessage(){var o,t;if(this.inputReference.validity.patternMismatch){const e=(o=this.validation.custom.find(r=>r.rule==="regex"))===null||o===void 0?void 0:o.errorKey,i=(t=this.validation.custom.find(r=>r.rule==="regex"))===null||t===void 0?void 0:t.errorMessage;return k.translate(`${e}`,this.language)?k.translate(`${e}`,this.language):i}if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return k.translate("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return k.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?p.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){let o="";return this.touched&&(o=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),p.h("div",{key:"2032f77ca52b330ae2e8f484d7a0aba60ee7b9d5",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},p.h("div",{key:"0786901cd928bba86597180f058bff43fba522b6",class:"number__wrapper--flex"},p.h("label",{key:"ff7f39306cef7aeba3e0e4508df03c5a945e748b",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),p.h("div",{key:"dced91223621551472fee374d56f1ad7476f4191",class:"number__wrapper--relative"},this.tooltip&&p.h("img",{key:"a804a983e342e4d117126720a32c4c34a2b267dc",class:"number__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),p.h("input",{key:"fd59afaedf7d9f761684b057a1809474d735cc26",ref:t=>this.inputReference=t,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${o}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),p.h("small",{key:"ca11558b5704b69311626736ab84a298449b98d7",class:"number__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};uo.style=Nl;const Yl="*,*::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}",Wl=Yl,ho=class{constructor(o){p.registerInstance(this,o),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(o){this.sendInputValue.emit(o)}validityStateHandler(o){this.sendValidityState.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(o){this.value=o.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 k.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?p.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){return p.h("fieldset",{key:"3d90735f7dc8fef6a96dc85b8f9ba22880cb205f",class:`radio__fieldset ${this.name}__input`,ref:o=>this.stylingContainer=o},p.h("legend",{key:"9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(o=>p.h("div",{class:"radio__wrapper"},p.h("input",{type:"radio",class:"radio__input",id:`${o.label}__input`,ref:t=>this.inputReference=t,value:o.value,name:this.name,required:this.validation.mandatory,onClick:t=>this.handleClick(t)}),p.h("label",{htmlFor:`${o.label}__input`},o.label))),p.h("small",{key:"2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2",class:"radio__error-message"},this.errorMessage),this.tooltip&&p.h("img",{key:"4f3cbf341f1c559bbdf44ca5d169be7a64d46e97",class:"radio__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:o=>this.tooltipIconReference=o,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ho.style=Wl;/**
3257
+ * @license
3258
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3259
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3260
+ */class ql extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}a.defineCustomElement(ql);const Ke=(o,...t)=>{a.addGlobalThemeStyles(`lumo-${o}`,t)};/**
3261
+ * @license
3262
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3263
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3264
+ */const jl=a.i$3`
3265
+ @font-face {
3266
+ font-family: 'lumo-icons';
3267
+ src: url(data:application/font-woff;charset=utf-8;base64,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)
3268
+ format('woff');
3269
+ font-weight: normal;
3270
+ font-style: normal;
3271
+ }
3272
+
3273
+ html {
3274
+ --lumo-icons-align-center: '\\ea01';
3275
+ --lumo-icons-align-left: '\\ea02';
3276
+ --lumo-icons-align-right: '\\ea03';
3277
+ --lumo-icons-angle-down: '\\ea04';
3278
+ --lumo-icons-angle-left: '\\ea05';
3279
+ --lumo-icons-angle-right: '\\ea06';
3280
+ --lumo-icons-angle-up: '\\ea07';
3281
+ --lumo-icons-arrow-down: '\\ea08';
3282
+ --lumo-icons-arrow-left: '\\ea09';
3283
+ --lumo-icons-arrow-right: '\\ea0a';
3284
+ --lumo-icons-arrow-up: '\\ea0b';
3285
+ --lumo-icons-bar-chart: '\\ea0c';
3286
+ --lumo-icons-bell: '\\ea0d';
3287
+ --lumo-icons-calendar: '\\ea0e';
3288
+ --lumo-icons-checkmark: '\\ea0f';
3289
+ --lumo-icons-chevron-down: '\\ea10';
3290
+ --lumo-icons-chevron-left: '\\ea11';
3291
+ --lumo-icons-chevron-right: '\\ea12';
3292
+ --lumo-icons-chevron-up: '\\ea13';
3293
+ --lumo-icons-clock: '\\ea14';
3294
+ --lumo-icons-cog: '\\ea15';
3295
+ --lumo-icons-cross: '\\ea16';
3296
+ --lumo-icons-download: '\\ea17';
3297
+ --lumo-icons-dropdown: '\\ea18';
3298
+ --lumo-icons-edit: '\\ea19';
3299
+ --lumo-icons-error: '\\ea1a';
3300
+ --lumo-icons-eye: '\\ea1b';
3301
+ --lumo-icons-eye-disabled: '\\ea1c';
3302
+ --lumo-icons-menu: '\\ea1d';
3303
+ --lumo-icons-minus: '\\ea1e';
3304
+ --lumo-icons-ordered-list: '\\ea1f';
3305
+ --lumo-icons-phone: '\\ea20';
3306
+ --lumo-icons-photo: '\\ea21';
3307
+ --lumo-icons-play: '\\ea22';
3308
+ --lumo-icons-plus: '\\ea23';
3309
+ --lumo-icons-redo: '\\ea24';
3310
+ --lumo-icons-reload: '\\ea25';
3311
+ --lumo-icons-search: '\\ea26';
3312
+ --lumo-icons-undo: '\\ea27';
3313
+ --lumo-icons-unordered-list: '\\ea28';
3314
+ --lumo-icons-upload: '\\ea29';
3315
+ --lumo-icons-user: '\\ea2a';
3316
+ }
3317
+ `;Ke("font-icons",jl);/**
3318
+ * @license
3319
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3320
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3321
+ */const Gl=a.i$3`
3322
+ :host {
3323
+ --lumo-size-xs: 1.625rem;
3324
+ --lumo-size-s: 1.875rem;
3325
+ --lumo-size-m: 2.25rem;
3326
+ --lumo-size-l: 2.75rem;
3327
+ --lumo-size-xl: 3.5rem;
3328
+
3329
+ /* Icons */
3330
+ --lumo-icon-size-s: 1.25em;
3331
+ --lumo-icon-size-m: 1.5em;
3332
+ --lumo-icon-size-l: 2.25em;
3333
+ /* For backwards compatibility */
3334
+ --lumo-icon-size: var(--lumo-icon-size-m);
3335
+ }
3336
+ `;Ke("sizing-props",Gl);/**
3337
+ * @license
3338
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3339
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3340
+ */const Kl=a.i$3`
3341
+ :host {
3342
+ /* Square */
3343
+ --lumo-space-xs: 0.25rem;
3344
+ --lumo-space-s: 0.5rem;
3345
+ --lumo-space-m: 1rem;
3346
+ --lumo-space-l: 1.5rem;
3347
+ --lumo-space-xl: 2.5rem;
3348
+
3349
+ /* Wide */
3350
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
3351
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
3352
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
3353
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
3354
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
3355
+
3356
+ /* Tall */
3357
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
3358
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
3359
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
3360
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
3361
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
3362
+ }
3363
+ `;Ke("spacing-props",Kl);/**
3364
+ * @license
3365
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3366
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3367
+ */const Ql=a.i$3`
3368
+ :host {
3369
+ /* Border radius */
3370
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
3371
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
3372
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
3373
+
3374
+ /* Shadow */
3375
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
3376
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
3377
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
3378
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
3379
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
3380
+
3381
+ /* Clickable element cursor */
3382
+ --lumo-clickable-cursor: default;
3383
+ }
3384
+ `;a.i$3`
3385
+ html {
3386
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
3387
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
3388
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
3389
+ }
3390
+ `;Ke("style-props",Ql);/**
3391
+ * @license
3392
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3393
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3394
+ */const Zl=a.i$3`
3395
+ :host {
3396
+ /* prettier-ignore */
3397
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
3398
+
3399
+ /* Font sizes */
3400
+ --lumo-font-size-xxs: 0.75rem;
3401
+ --lumo-font-size-xs: 0.8125rem;
3402
+ --lumo-font-size-s: 0.875rem;
3403
+ --lumo-font-size-m: 1rem;
3404
+ --lumo-font-size-l: 1.125rem;
3405
+ --lumo-font-size-xl: 1.375rem;
3406
+ --lumo-font-size-xxl: 1.75rem;
3407
+ --lumo-font-size-xxxl: 2.5rem;
3408
+
3409
+ /* Line heights */
3410
+ --lumo-line-height-xs: 1.25;
3411
+ --lumo-line-height-s: 1.375;
3412
+ --lumo-line-height-m: 1.625;
3413
+ }
3414
+ `,Xl=a.i$3`
3415
+ body,
3416
+ :host {
3417
+ font-family: var(--lumo-font-family);
3418
+ font-size: var(--lumo-font-size-m);
3419
+ line-height: var(--lumo-line-height-m);
3420
+ -webkit-text-size-adjust: 100%;
3421
+ -webkit-font-smoothing: antialiased;
3422
+ -moz-osx-font-smoothing: grayscale;
3423
+ }
3424
+
3425
+ small,
3426
+ [theme~='font-size-s'] {
3427
+ font-size: var(--lumo-font-size-s);
3428
+ line-height: var(--lumo-line-height-s);
3429
+ }
3430
+
3431
+ [theme~='font-size-xs'] {
3432
+ font-size: var(--lumo-font-size-xs);
3433
+ line-height: var(--lumo-line-height-xs);
3434
+ }
3435
+
3436
+ :where(h1, h2, h3, h4, h5, h6) {
3437
+ font-weight: 600;
3438
+ line-height: var(--lumo-line-height-xs);
3439
+ margin-block: 0;
3440
+ }
3441
+
3442
+ :where(h1) {
3443
+ font-size: var(--lumo-font-size-xxxl);
3444
+ }
3445
+
3446
+ :where(h2) {
3447
+ font-size: var(--lumo-font-size-xxl);
3448
+ }
3449
+
3450
+ :where(h3) {
3451
+ font-size: var(--lumo-font-size-xl);
3452
+ }
3453
+
3454
+ :where(h4) {
3455
+ font-size: var(--lumo-font-size-l);
3456
+ }
3457
+
3458
+ :where(h5) {
3459
+ font-size: var(--lumo-font-size-m);
3460
+ }
3461
+
3462
+ :where(h6) {
3463
+ font-size: var(--lumo-font-size-xs);
3464
+ text-transform: uppercase;
3465
+ letter-spacing: 0.03em;
3466
+ }
3467
+
3468
+ p,
3469
+ blockquote {
3470
+ margin-top: 0.5em;
3471
+ margin-bottom: 0.75em;
3472
+ }
3473
+
3474
+ a {
3475
+ text-decoration: none;
3476
+ }
3477
+
3478
+ a:where(:any-link):hover {
3479
+ text-decoration: underline;
3480
+ }
3481
+
3482
+ hr {
3483
+ display: block;
3484
+ align-self: stretch;
3485
+ height: 1px;
3486
+ border: 0;
3487
+ padding: 0;
3488
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
3489
+ background-color: var(--lumo-contrast-10pct);
3490
+ }
3491
+
3492
+ blockquote {
3493
+ border-left: 2px solid var(--lumo-contrast-30pct);
3494
+ }
3495
+
3496
+ b,
3497
+ strong {
3498
+ font-weight: 600;
3499
+ }
3500
+
3501
+ /* RTL specific styles */
3502
+ blockquote[dir='rtl'] {
3503
+ border-left: none;
3504
+ border-right: 2px solid var(--lumo-contrast-30pct);
3505
+ }
3506
+ `;a.registerStyles("",Xl,{moduleId:"lumo-typography"});Ke("typography-props",Zl);const co=a.i$3`
3507
+ :host {
3508
+ display: flex;
3509
+ align-items: center;
3510
+ box-sizing: border-box;
3511
+ font-family: var(--lumo-font-family);
3512
+ font-size: var(--lumo-font-size-m);
3513
+ line-height: var(--lumo-line-height-xs);
3514
+ padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
3515
+ var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
3516
+ min-height: var(--lumo-size-m);
3517
+ outline: none;
3518
+ border-radius: var(--lumo-border-radius-m);
3519
+ cursor: var(--lumo-clickable-cursor);
3520
+ -webkit-font-smoothing: antialiased;
3521
+ -moz-osx-font-smoothing: grayscale;
3522
+ -webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
3523
+ }
3524
+
3525
+ /* Checkmark */
3526
+ [part='checkmark']::before {
3527
+ display: var(--_lumo-item-selected-icon-display, none);
3528
+ content: var(--lumo-icons-checkmark);
3529
+ font-family: lumo-icons;
3530
+ font-size: var(--lumo-icon-size-m);
3531
+ line-height: 1;
3532
+ font-weight: normal;
3533
+ width: 1em;
3534
+ height: 1em;
3535
+ margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
3536
+ color: var(--lumo-primary-text-color);
3537
+ flex: none;
3538
+ opacity: 0;
3539
+ transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
3540
+ }
3541
+
3542
+ :host([selected]) [part='checkmark']::before {
3543
+ opacity: 1;
3544
+ }
3545
+
3546
+ :host([active]:not([selected])) [part='checkmark']::before {
3547
+ transform: scale(0.8);
3548
+ opacity: 0;
3549
+ transition-duration: 0s;
3550
+ }
3551
+
3552
+ [part='content'] {
3553
+ flex: auto;
3554
+ }
3555
+
3556
+ /* Disabled */
3557
+ :host([disabled]) {
3558
+ color: var(--lumo-disabled-text-color);
3559
+ cursor: default;
3560
+ pointer-events: none;
3561
+ }
3562
+
3563
+ /* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
3564
+ @media (any-hover: hover) {
3565
+ :host(:hover:not([disabled])) {
3566
+ background-color: var(--lumo-primary-color-10pct);
3567
+ }
3568
+
3569
+ :host([focus-ring]:not([disabled])) {
3570
+ box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
3571
+ }
3572
+ }
3573
+
3574
+ /* RTL specific styles */
3575
+ :host([dir='rtl']) {
3576
+ padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
3577
+ padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
3578
+ }
3579
+
3580
+ /* Slotted icons */
3581
+ :host ::slotted(vaadin-icon) {
3582
+ width: var(--lumo-icon-size-m);
3583
+ height: var(--lumo-icon-size-m);
3584
+ }
3585
+ `;a.registerStyles("vaadin-item",co,{moduleId:"lumo-item"});const Jl=a.i$3`
3586
+ :host {
3587
+ transition: background-color 100ms;
3588
+ overflow: hidden;
3589
+ --_lumo-item-selected-icon-display: block;
3590
+ }
3591
+
3592
+ @media (any-hover: hover) {
3593
+ :host([focused]:not([disabled])) {
3594
+ box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
3595
+ }
3596
+ }
3597
+ `;a.registerStyles("vaadin-combo-box-item",[co,Jl],{moduleId:"lumo-combo-box-item"});/**
3598
+ * @license
3599
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
3600
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3601
+ */const eu=a.i$3`
3602
+ [part~='loader'] {
3603
+ box-sizing: border-box;
3604
+ width: var(--lumo-icon-size-s);
3605
+ height: var(--lumo-icon-size-s);
3606
+ border: 2px solid transparent;
3607
+ border-color: var(--lumo-primary-color-10pct) var(--lumo-primary-color-10pct) var(--lumo-primary-color)
3608
+ var(--lumo-primary-color);
3609
+ border-radius: calc(0.5 * var(--lumo-icon-size-s));
3610
+ opacity: 0;
3611
+ pointer-events: none;
3612
+ }
3613
+
3614
+ :host(:not([loading])) [part~='loader'] {
3615
+ display: none;
3616
+ }
3617
+
3618
+ :host([loading]) [part~='loader'] {
3619
+ animation: 1s linear infinite lumo-loader-rotate, 0.3s 0.1s lumo-loader-fade-in both;
3620
+ }
3621
+
3622
+ @keyframes lumo-loader-fade-in {
3623
+ 0% {
3624
+ opacity: 0;
3625
+ }
3626
+
3627
+ 100% {
3628
+ opacity: 1;
3629
+ }
3630
+ }
3631
+
3632
+ @keyframes lumo-loader-rotate {
3633
+ 0% {
3634
+ transform: rotate(0deg);
3635
+ }
3636
+
3637
+ 100% {
3638
+ transform: rotate(360deg);
3639
+ }
3640
+ }
3641
+ `;/**
3642
+ * @license
3643
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3644
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3645
+ */const si=a.i$3`
3646
+ :host {
3647
+ top: var(--lumo-space-m);
3648
+ right: var(--lumo-space-m);
3649
+ bottom: var(--lumo-space-m);
3650
+ left: var(--lumo-space-m);
3651
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
3652
+ /* stylelint-disable-next-line */
3653
+ outline: 0px solid transparent;
3654
+ }
3655
+
3656
+ [part='overlay'] {
3657
+ background-color: var(--lumo-base-color);
3658
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
3659
+ border-radius: var(--lumo-border-radius-m);
3660
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
3661
+ color: var(--lumo-body-text-color);
3662
+ font-family: var(--lumo-font-family);
3663
+ font-size: var(--lumo-font-size-m);
3664
+ font-weight: 400;
3665
+ line-height: var(--lumo-line-height-m);
3666
+ letter-spacing: 0;
3667
+ text-transform: none;
3668
+ -webkit-text-size-adjust: 100%;
3669
+ -webkit-font-smoothing: antialiased;
3670
+ -moz-osx-font-smoothing: grayscale;
3671
+ }
3672
+
3673
+ [part='content'] {
3674
+ padding: var(--lumo-space-xs);
3675
+ }
3676
+
3677
+ [part='backdrop'] {
3678
+ background-color: var(--lumo-shade-20pct);
3679
+ animation: 0.2s lumo-overlay-backdrop-enter both;
3680
+ will-change: opacity;
3681
+ }
3682
+
3683
+ @keyframes lumo-overlay-backdrop-enter {
3684
+ 0% {
3685
+ opacity: 0;
3686
+ }
3687
+ }
3688
+
3689
+ :host([closing]) [part='backdrop'] {
3690
+ animation: 0.2s lumo-overlay-backdrop-exit both;
3691
+ }
3692
+
3693
+ @keyframes lumo-overlay-backdrop-exit {
3694
+ 100% {
3695
+ opacity: 0;
3696
+ }
3697
+ }
3698
+
3699
+ @keyframes lumo-overlay-dummy-animation {
3700
+ 0% {
3701
+ opacity: 1;
3702
+ }
3703
+
3704
+ 100% {
3705
+ opacity: 1;
3706
+ }
3707
+ }
3708
+ `;a.registerStyles("",si,{moduleId:"lumo-overlay"});/**
3709
+ * @license
3710
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3711
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3712
+ */const ni=a.i$3`
3713
+ :host([opening]),
3714
+ :host([closing]) {
3715
+ animation: 0.14s lumo-overlay-dummy-animation;
3716
+ }
3717
+
3718
+ [part='overlay'] {
3719
+ will-change: opacity, transform;
3720
+ }
3721
+
3722
+ :host([opening]) [part='overlay'] {
3723
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
3724
+ }
3725
+
3726
+ @keyframes lumo-menu-overlay-enter {
3727
+ 0% {
3728
+ opacity: 0;
3729
+ transform: translateY(-4px);
3730
+ }
3731
+ }
3732
+
3733
+ :host([closing]) [part='overlay'] {
3734
+ animation: 0.1s lumo-menu-overlay-exit both;
3735
+ }
3736
+
3737
+ @keyframes lumo-menu-overlay-exit {
3738
+ 100% {
3739
+ opacity: 0;
3740
+ }
3741
+ }
3742
+ `;a.registerStyles("",ni,{moduleId:"lumo-menu-overlay-core"});const tu=a.i$3`
3743
+ /* Small viewport (bottom sheet) styles */
3744
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
3745
+ @media (max-width: 420px), (max-height: 420px) {
3746
+ :host {
3747
+ top: 0 !important;
3748
+ right: 0 !important;
3749
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
3750
+ left: 0 !important;
3751
+ align-items: stretch !important;
3752
+ justify-content: flex-end !important;
3753
+ }
3754
+
3755
+ [part='overlay'] {
3756
+ max-height: 50vh;
3757
+ width: 100vw;
3758
+ border-radius: 0;
3759
+ box-shadow: var(--lumo-box-shadow-xl);
3760
+ }
3761
+
3762
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
3763
+ [part='content'] {
3764
+ padding: 30px var(--lumo-space-m);
3765
+ max-height: inherit;
3766
+ box-sizing: border-box;
3767
+ -webkit-overflow-scrolling: touch;
3768
+ overflow: auto;
3769
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
3770
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
3771
+ }
3772
+
3773
+ [part='backdrop'] {
3774
+ display: block;
3775
+ }
3776
+
3777
+ /* Animations */
3778
+
3779
+ :host([opening]) [part='overlay'] {
3780
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
3781
+ }
3782
+
3783
+ :host([closing]),
3784
+ :host([closing]) [part='backdrop'] {
3785
+ animation-delay: 0.14s;
3786
+ }
3787
+
3788
+ :host([closing]) [part='overlay'] {
3789
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
3790
+ }
3791
+ }
3792
+
3793
+ @keyframes lumo-mobile-menu-overlay-enter {
3794
+ 0% {
3795
+ transform: translateY(150%);
3796
+ }
3797
+ }
3798
+
3799
+ @keyframes lumo-mobile-menu-overlay-exit {
3800
+ 100% {
3801
+ transform: translateY(150%);
3802
+ }
3803
+ }
3804
+ `,iu=[si,ni,tu];a.registerStyles("",iu,{moduleId:"lumo-menu-overlay"});const ru=a.i$3`
3805
+ [part='content'] {
3806
+ padding: 0;
3807
+ }
3808
+
3809
+ /* When items are empty, the spinner needs some room */
3810
+ :host(:not([closing])) [part~='content'] {
3811
+ min-height: calc(2 * var(--lumo-space-s) + var(--lumo-icon-size-s));
3812
+ }
3813
+
3814
+ [part~='overlay'] {
3815
+ position: relative;
3816
+ }
3817
+
3818
+ :host([top-aligned]) [part~='overlay'] {
3819
+ margin-top: var(--lumo-space-xs);
3820
+ }
3821
+
3822
+ :host([bottom-aligned]) [part~='overlay'] {
3823
+ margin-bottom: var(--lumo-space-xs);
3824
+ }
3825
+ `,ou=a.i$3`
3826
+ [part~='loader'] {
3827
+ position: absolute;
3828
+ z-index: 1;
3829
+ left: var(--lumo-space-s);
3830
+ right: var(--lumo-space-s);
3831
+ top: var(--lumo-space-s);
3832
+ margin-left: auto;
3833
+ margin-inline-start: auto;
3834
+ margin-inline-end: 0;
3835
+ }
3836
+
3837
+ :host([dir='rtl']) [part~='loader'] {
3838
+ left: auto;
3839
+ margin-left: 0;
3840
+ margin-right: auto;
3841
+ margin-inline-start: 0;
3842
+ margin-inline-end: auto;
3843
+ }
3844
+ `;a.registerStyles("vaadin-combo-box-overlay",[si,ni,ru,eu,ou,a.i$3`
3845
+ :host {
3846
+ --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
3847
+ --_vaadin-combo-box-items-container-border-style: solid;
3848
+ }
3849
+ `],{moduleId:"lumo-combo-box-overlay"});/**
3850
+ * @license
3851
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3852
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3853
+ */const po=a.i$3`
3854
+ [part$='button'] {
3855
+ flex: none;
3856
+ width: 1em;
3857
+ height: 1em;
3858
+ line-height: 1;
3859
+ font-size: var(--lumo-icon-size-m);
3860
+ text-align: center;
3861
+ color: var(--lumo-contrast-60pct);
3862
+ transition: 0.2s color;
3863
+ cursor: var(--lumo-clickable-cursor);
3864
+ }
3865
+
3866
+ [part$='button']:hover {
3867
+ color: var(--lumo-contrast-90pct);
3868
+ }
3869
+
3870
+ :host([disabled]) [part$='button'],
3871
+ :host([readonly]) [part$='button'] {
3872
+ color: var(--lumo-contrast-20pct);
3873
+ cursor: default;
3874
+ }
3875
+
3876
+ [part$='button']::before {
3877
+ font-family: 'lumo-icons';
3878
+ display: block;
3879
+ }
3880
+ `;a.registerStyles("",po,{moduleId:"lumo-field-button"});/**
3881
+ * @license
3882
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3883
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3884
+ */const su=a.i$3`
3885
+ :host {
3886
+ --lumo-text-field-size: var(--lumo-size-m);
3887
+ color: var(--lumo-body-text-color);
3888
+ font-size: var(--lumo-font-size-m);
3889
+ font-family: var(--lumo-font-family);
3890
+ -webkit-font-smoothing: antialiased;
3891
+ -moz-osx-font-smoothing: grayscale;
3892
+ -webkit-tap-highlight-color: transparent;
3893
+ padding: var(--lumo-space-xs) 0;
3894
+ }
3895
+
3896
+ :host::before {
3897
+ height: var(--lumo-text-field-size);
3898
+ box-sizing: border-box;
3899
+ display: inline-flex;
3900
+ align-items: center;
3901
+ }
3902
+
3903
+ :host([focused]:not([readonly])) [part='label'] {
3904
+ color: var(--lumo-primary-text-color);
3905
+ }
3906
+
3907
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
3908
+ -webkit-mask-image: none;
3909
+ mask-image: none;
3910
+ }
3911
+
3912
+ ::slotted(:is(input, textarea):placeholder-shown) {
3913
+ color: var(--lumo-secondary-text-color);
3914
+ }
3915
+
3916
+ /* Hover */
3917
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
3918
+ color: var(--lumo-body-text-color);
3919
+ }
3920
+
3921
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
3922
+ opacity: 0.1;
3923
+ }
3924
+
3925
+ /* Touch device adjustment */
3926
+ @media (pointer: coarse) {
3927
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
3928
+ color: var(--lumo-secondary-text-color);
3929
+ }
3930
+
3931
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
3932
+ opacity: 0;
3933
+ }
3934
+
3935
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
3936
+ opacity: 0.2;
3937
+ }
3938
+ }
3939
+
3940
+ /* Trigger when not focusing using the keyboard */
3941
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
3942
+ transform: scaleX(0);
3943
+ transition-duration: 0.15s, 1s;
3944
+ }
3945
+
3946
+ /* Focus-ring */
3947
+ :host([focus-ring]) [part='input-field'] {
3948
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
3949
+ }
3950
+
3951
+ /* Read-only and disabled */
3952
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
3953
+ opacity: 0;
3954
+ }
3955
+
3956
+ /* Read-only style */
3957
+ :host([readonly]) {
3958
+ --vaadin-input-field-border-color: transparent;
3959
+ }
3960
+
3961
+ /* Disabled style */
3962
+ :host([disabled]) {
3963
+ pointer-events: none;
3964
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
3965
+ }
3966
+
3967
+ :host([disabled]) [part='label'],
3968
+ :host([disabled]) [part='input-field'] ::slotted(*) {
3969
+ color: var(--lumo-disabled-text-color);
3970
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
3971
+ }
3972
+
3973
+ /* Invalid style */
3974
+ :host([invalid]) {
3975
+ --vaadin-input-field-border-color: var(--lumo-error-color);
3976
+ }
3977
+
3978
+ :host([invalid][focus-ring]) [part='input-field'] {
3979
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
3980
+ }
3981
+
3982
+ :host([input-prevented]) [part='input-field'] {
3983
+ animation: shake 0.15s infinite;
3984
+ }
3985
+
3986
+ @keyframes shake {
3987
+ 25% {
3988
+ transform: translateX(4px);
3989
+ }
3990
+ 75% {
3991
+ transform: translateX(-4px);
3992
+ }
3993
+ }
3994
+
3995
+ /* Small theme */
3996
+ :host([theme~='small']) {
3997
+ font-size: var(--lumo-font-size-s);
3998
+ --lumo-text-field-size: var(--lumo-size-s);
3999
+ }
4000
+
4001
+ :host([theme~='small']) [part='label'] {
4002
+ font-size: var(--lumo-font-size-xs);
4003
+ }
4004
+
4005
+ :host([theme~='small']) [part='error-message'] {
4006
+ font-size: var(--lumo-font-size-xxs);
4007
+ }
4008
+
4009
+ /* Slotted content */
4010
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
4011
+ color: var(--lumo-secondary-text-color);
4012
+ font-weight: 400;
4013
+ }
4014
+
4015
+ [part='clear-button']::before {
4016
+ content: var(--lumo-icons-cross);
4017
+ }
4018
+ `,mo=[jt,po,sr,su];a.registerStyles("",mo,{moduleId:"lumo-input-field-shared-styles"});const nu=a.i$3`
4019
+ :host {
4020
+ outline: none;
4021
+ }
4022
+
4023
+ [part='toggle-button']::before {
4024
+ content: var(--lumo-icons-dropdown);
4025
+ }
4026
+ `;a.registerStyles("vaadin-combo-box",[mo,nu],{moduleId:"lumo-combo-box"});/**
4027
+ * @license
4028
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4029
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4030
+ */const au=o=>class extends o{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,i,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,i,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,i,r){r===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,i){i||(this.textContent=e)}};/**
4031
+ * @license
4032
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4033
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4034
+ */class lu extends au(a.ThemableMixin(a.DirMixin(a.PolymerElement))){static get template(){return a.html`
4035
+ <style>
4036
+ :host {
4037
+ display: block;
4038
+ }
4039
+
4040
+ :host([hidden]) {
4041
+ display: none;
4042
+ }
4043
+ </style>
4044
+ <span part="checkmark" aria-hidden="true"></span>
4045
+ <div part="content">
4046
+ <slot></slot>
4047
+ </div>
4048
+ `}static get is(){return"vaadin-combo-box-item"}}a.defineCustomElement(lu);/**
4049
+ * @license
4050
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4051
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4052
+ */const uu=o=>class extends Tr(o){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i)}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return!i.includes(this.positionTarget)&&!i.includes(this)}_setOverlayWidth(e,i){if(e&&i){const r=this.localName;this.style.setProperty(`--_${r}-default-width`,`${e.clientWidth}px`);const n=getComputedStyle(this._comboBox).getPropertyValue(`--${r}-width`);n===""?this.style.removeProperty(`--${r}-width`):this.style.setProperty(`--${r}-width`,n),this._updatePosition()}}};/**
4053
+ * @license
4054
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4055
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4056
+ */const hu=a.i$3`
4057
+ #overlay {
4058
+ width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4059
+ }
4060
+
4061
+ [part='content'] {
4062
+ display: flex;
4063
+ flex-direction: column;
4064
+ height: 100%;
4065
+ }
4066
+ `;a.registerStyles("vaadin-combo-box-overlay",[Or,hu],{moduleId:"vaadin-combo-box-overlay-styles"});class cu extends uu(kr(a.DirMixin(a.ThemableMixin(a.PolymerElement)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return a.html`
4067
+ <div id="backdrop" part="backdrop" hidden></div>
4068
+ <div part="overlay" id="overlay">
4069
+ <div part="loader"></div>
4070
+ <div part="content" id="content"><slot></slot></div>
4071
+ </div>
4072
+ `}}a.defineCustomElement(cu);/**
4073
+ * @license
4074
+ * Copyright (c) 2023 Vaadin Ltd.
4075
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4076
+ */function mt(o,t){return o.split(".").reduce((e,i)=>e?e[i]:void 0,t)}/**
4077
+ * @license
4078
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4079
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4080
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
4081
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4082
+ * Code distributed by Google as part of the polymer project is also
4083
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4084
+ */const Gi=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),du=Gi&&Gi[1]>=8,Ki=3,pu={_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 o=this._virtualCount;return Math.max(0,o-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(o){o=this._clamp(o,0,this._maxVirtualStart),this._virtualStartVal=o},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(o){o%=this._physicalCount,o<0&&(o=this._physicalCount+o),this._physicalStartVal=o},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(o){this._physicalCountVal=o},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let o=this._firstVisibleIndexVal;if(o==null){let t=this._physicalTop+this._scrollOffset;o=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=o}return o},get lastVisibleIndex(){let o=this._lastVisibleIndexVal;if(o==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(o=i),t+=this._getPhysicalSizeIncrement(e)}),this._lastVisibleIndexVal=o}return o},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const o=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=o-this._scrollPosition;const e=t>=0;if(this._scrollPosition=o,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),a.microTask)}},_getReusables(o){let t,e,i;const r=[],n=this._hiddenContentSize*this._ratio,s=this._virtualStart,l=this._virtualEnd,u=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,_=this._scrollBottom;for(o?(t=this._physicalStart,e=c-h):(t=this._physicalEnd,e=d-_);i=this._getPhysicalSizeIncrement(t),e-=i,!(r.length>=u||e<=n);)if(o){if(l+r.length+1>=this._virtualCount||h+i>=c-this._scrollOffset)break;r.push(t),h+=i,t=(t+1)%u}else{if(s-r.length<=0||h+this._physicalSize-i<=_)break;r.push(t),h-=i,t=t===0?u-1:t-1}return{indexes:r,physicalTop:h-this._scrollOffset}},_update(o,t){if(!(o&&o.length===0||this._physicalCount===0)){if(this._assignModels(o),this._updateMetrics(o),t)for(;t.length;){const e=t.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(o){const e=this._clamp(this._physicalCount+o,Ki,this._virtualCount-this._virtualStart)-this._physicalCount;let i=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 n=0;n<e;n++)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,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),a.idlePeriod):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),a.microTask))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const o=this._getReusables(!0);this._physicalTop=o.physicalTop,this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length,this._update(o.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Ki))},_itemsChanged(o){o.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,a.animationFrame))},_iterateItems(o,t){let e,i,r,n;if(arguments.length===2&&t){for(n=0;n<t.length;n++)if(e=t[n],i=this._computeVidx(e),(r=o.call(this,e,i))!=null)return r}else{for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((r=o.call(this,e,i))!=null)return r;for(e=0;e<this._physicalStart;e++,i++)if((r=o.call(this,e,i))!=null)return r}},_computeVidx(o){return o>=this._physicalStart?this._virtualStart+(o-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+o},_positionItems(){this._adjustScrollPosition();let o=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${o}px`,0,this._physicalItems[t]),o+=this._physicalSizes[t]})},_getPhysicalSizeIncrement(o){return this._physicalSizes[o]},_adjustScrollPosition(){const o=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(o!==0){this._physicalTop-=o;const t=this._scrollPosition;!du&&t>0&&this._resetScrollPosition(t-o)}},_resetScrollPosition(o){this.scrollTarget&&o>=0&&(this._scrollTop=o,this._scrollPosition=this._scrollTop)},_updateScrollerSize(o){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(o||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(o){if(typeof o!="number"||o<0||o>this.items.length-1||(a.flush(),this._physicalCount===0))return;o=this._clamp(o,0,this._virtualCount-1),(!this._isIndexRendered(o)||o>=this._maxVirtualStart)&&(this._virtualStart=o-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const r=this._hiddenContentSize;for(;e<o&&i<=r;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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)},a.animationFrame)},_isIndexRendered(o){return o>=this._virtualStart&&o<=this._virtualEnd},_getPhysicalIndex(o){return(this._physicalStart+(o-this._virtualStart))%this._physicalCount},_clamp(o,t,e){return Math.min(e,Math.max(t,o))},_debounce(o,t,e){this._debouncers||(this._debouncers={}),this._debouncers[o]=a.Debouncer.debounce(this._debouncers[o],e,t.bind(this)),a.enqueueDebouncer(this._debouncers[o])}};/**
4085
+ * @license
4086
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4087
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4088
+ */const mu=1e5,zt=1e3;class fo{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:r,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=n||r,this.reorderElements=s,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(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this.size-this._virtualCount):i<e?t<zt?(i=t,this._vidxOffset=0):(i=zt,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),a.flush(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(r=>{r.__virtualIndex>=t&&r.__virtualIndex<=e&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))}),this.__afterElementsUpdated(i)}_updateMetrics(t){a.flush();let e=0,i=0;const r=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,l)=>{i+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),e+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((n*r+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const r=parseFloat(e.paddingBottom)||0,n=parseFloat(e.paddingTop)||0,s=parseFloat(e.borderBottomWidth)||0,l=parseFloat(e.borderTopWidth)||0;return i+r+n+s+l}__updateElement(t,e,i){t.style.paddingTop&&(t.style.paddingTop=""),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=a.Debouncer.debounce(this.__placeholderClearDebouncer,a.animationFrame,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const r=this.__elementHeightQueue.filter(n=>n!==void 0);this.__placeholderHeight=Math.round(r.reduce((n,s)=>n+s,0)/r.length)}})}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){t!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=t,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,a.flush(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),a.flush())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,mu)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(r=>{r.style.position="absolute",i.appendChild(r),this.__resizeObserver.observe(r)}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,r)=>{const n=this._physicalItems[i];n.hidden=r>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=r+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),e.push(n))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,r){r.style.transform=`translateY(${e})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=a.Debouncer.debounce(this.__fixInvalidItemPositioningDebouncer,a.timeOut.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=a.Debouncer.debounce(this.__scrollReorderDebouncer,a.timeOut.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,r=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!r){const n=e,s=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(n?-1:1),this._scrollHandler(),this._ratio=s}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=a.Debouncer.debounce(this.__debouncerWheelAnimationFrame,a.animationFrame,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=a.Debouncer.debounce(this._debouncerIgnoreNewWheel,a.timeOut.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)))}else super._increasePoolIfNeeded(t)}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=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 n=r.__virtualIndex-t,s=e.indexOf(r)-n;if(s>0)for(let l=0;l<s;l++)this.elementsContainer.appendChild(e[l]);else if(s<0)for(let l=e.length+s;l<e.length;l++)this.elementsContainer.insertBefore(e[l],e[0]);if(a.isSafari){const{transform:l}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=l})}}_adjustVirtualIndexOffset(t){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),i=e*this.size;this._vidxOffset=Math.round(i-e*this._virtualCount)}else{const e=this._vidxOffset,i=zt,r=100;this._scrollTop===0?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset)));const n=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=n,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<n&&(this._vidxOffset+=Math.min(n-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(fo.prototype,pu);class fu{constructor(t){this.__adapter=new fo(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
4089
+ * @license
4090
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4091
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4092
+ */const we=class{toString(){return""}};/**
4093
+ * @license
4094
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4095
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4096
+ */const _u=o=>class extends o{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(i=>parseInt(i,10)).reduce((i,r)=>i+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${a.generateUniqueId()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling(),this.__virtualizer=new fu({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 i=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const n=[...this.children].find(h=>!h.hidden&&h.index===this.__virtualizer.lastVisibleIndex);if(!n||e!==n.index)return;const s=n.getBoundingClientRect(),l=this.getBoundingClientRect(),u=s.bottom-l.bottom+this._viewportTotalPaddingBottom;u>0&&(this.scrollTop+=u)}_isItemSelected(e,i,r){return e instanceof we?!1:r&&e!==void 0&&i!==void 0?mt(r,e)===mt(r,i):e===i}__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,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const r=this.items[i],n=this.focusedIndex,s=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:i,label:this.getItemLabel(r),selected:s,renderer:this.renderer,focused:!this.loading&&n===i}),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",s.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof we&&this.__requestItemByIndex(i)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&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}};/**
4097
+ * @license
4098
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4099
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4100
+ */class vu extends _u(a.PolymerElement){static get is(){return"vaadin-combo-box-scroller"}static get template(){return a.html`
4101
+ <style>
4102
+ :host {
4103
+ display: block;
4104
+ min-height: 1px;
4105
+ overflow: auto;
4106
+
4107
+ /* Fixes item background from getting on top of scrollbars on Safari */
4108
+ transform: translate3d(0, 0, 0);
4109
+
4110
+ /* Enable momentum scrolling on iOS */
4111
+ -webkit-overflow-scrolling: touch;
4112
+
4113
+ /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
4114
+ box-shadow: 0 0 0 white;
4115
+ }
4116
+
4117
+ #selector {
4118
+ border-width: var(--_vaadin-combo-box-items-container-border-width);
4119
+ border-style: var(--_vaadin-combo-box-items-container-border-style);
4120
+ border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
4121
+ position: relative;
4122
+ }
4123
+ </style>
4124
+ <div id="selector">
4125
+ <slot></slot>
4126
+ </div>
4127
+ `}}a.defineCustomElement(vu);/**
4128
+ * @license
4129
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4130
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4131
+ */const gu=o=>class extends a.InputConstraintsMixin(o){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4132
+ * @license
4133
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4134
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4135
+ */const yu=o=>class extends o{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 we},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{const i=e.detail.index,r=e.detail.currentScrollerPos,n=Math.floor(this.pageSize*1.5);if(!this._shouldSkipIndex(i,n,r)&&i!==void 0){const s=this._getPageForIndex(i);this._shouldLoadPage(s)&&this._loadPage(s)}})}_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,i,r){return r!==0&&e>=r-i&&e<=r+i}_shouldLoadPage(e){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;const i=this.filteredItems[e*this.pageSize];return i!==void 0?i instanceof we:this.size===void 0}_loadPage(e){if(this._pendingRequests[e]||!this.dataProvider)return;const i={page:e,pageSize:this.pageSize,filter:this.filter},r=(n,s)=>{if(this._pendingRequests[e]!==r)return;const l=this.filteredItems?[...this.filteredItems]:[];l.splice(i.page*i.pageSize,n.length,...n),this.filteredItems=l,!this.opened&&!this._isInputFocused()&&this._commitValue(),s!==void 0&&(this.size=s),delete this._pendingRequests[e],Object.keys(this._pendingRequests).length===0&&(this.loading=!1)};this._pendingRequests[e]=r,this.loading=!0,this.dataProvider(i,r)}_getPageForIndex(e){return Math.floor(e/this.pageSize)}clearCache(){if(!this.dataProvider)return;this._pendingRequests={};const e=[];for(let i=0;i<(this.size||0);i++)e.push(this.__placeHolder);this.filteredItems=e,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}_sizeChanged(e=0){const i=(this.filteredItems||[]).slice(0,e);for(let r=0;r<e;r++)i[r]=i[r]!==void 0?i[r]:this.__placeHolder;this.filteredItems=i,this._flushPendingRequests(e)}_pageSizeChanged(e,i){if(Math.floor(e)!==e||e<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.clearCache()}_dataProviderChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i}),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,i){if(e&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const r=this.__getItemIndexByValue(this.filteredItems,i);(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 i=Math.ceil(e/this.pageSize);Object.entries(this._pendingRequests).forEach(([r,n])=>{parseInt(r)>=i&&n([],e)})}}};/**
4136
+ * @license
4137
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4138
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4139
+ */function bu(o){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(o);return}o.querySelector("template")&&console.warn(`WARNING: <template> inside <${o.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4140
+ * @license
4141
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4142
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4143
+ */function Qi(o){return o!=null}function Zi(o,t){return o.findIndex(e=>e instanceof we?!1:t(e))}const xu=o=>class extends Yr(a.ControllerMixin(a.ValidateMixin(a.FocusMixin(a.KeyboardMixin(a.InputMixin(a.DisabledMixin(o))))))){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 i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.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),bu(this),this.addController(new Wr(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,i,r){super._propertiesChanged(e,i,r),i.filter!==void 0&&this._filterChanged(i.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=e}_initScroller(e){const i=`${this._tagNamePrefix}-scroller`,r=this._overlayElement;r.renderer=s=>{s.firstChild||s.appendChild(document.createElement(i))},r.requestContentUpdate();const n=r.querySelector(i);n.owner=e||this,n.getItemLabel=this._getItemLabel.bind(this),n.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=n}_updateScroller(e,i,r,n,s,l,u,h,d){e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?i:[],opened:r,loading:n,selectedItem:s,itemIdPath:l,focusedIndex:u,renderer:h,theme:d}))}_openedOrItemsChanged(e,i,r){this._overlayOpened=!!(e&&(r||i&&i.length))}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&a.isElementFocused(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const r=this._getItemElements().find(n=>n.index===e);r?i.setAttribute("aria-activedescendant",r.id):i.removeAttribute("aria-activedescendant")}_openedChanged(e,i){if(i===void 0)return;e?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),!this._isInputFocused()&&!a.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 i=e&&this.itemLabelPath?mt(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?mt(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_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,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i)}_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 i=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&i){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",i=>i.preventDefault()),e.addEventListener("click",()=>{a.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||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const r=this._inputElementValue;this._lastCustomValue=r;const n=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(n),n.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(e){const i=this._inputElementValue,r={};this.filter===i?this._filterChanged(this.filter):r.filter=i,!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 i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,i){e===""&&i===void 0||(Qi(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,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(e,i){this._setDropdownItems(e);const r=i?i[this._focusedIndex]:null,n=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&n>=0&&(this.selectedItem=e[n]);const s=this.__getItemIndexByValue(e,this._getItemValue(r));s>-1?this._focusedIndex=s:this._focusedIndex=this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(e,i){return e&&e.filter(n=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(n).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]: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,i){return!e||!Qi(i)?-1:Zi(e,r=>this._getItemValue(r)===i)}__getItemIndexByLabel(e,i){return!e||!i?-1:Zi(e,r=>this._getItemLabel(r).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof we)&&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())}};/**
4144
+ * @license
4145
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
4146
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4147
+ */a.registerStyles("vaadin-combo-box",a.inputFieldShared,{moduleId:"vaadin-combo-box-styles"});class wu extends yu(xu(gu(a.InputControlMixin(a.ThemableMixin(a.ElementMixin(a.PolymerElement)))))){static get is(){return"vaadin-combo-box"}static get template(){return a.html`
4148
+ <style>
4149
+ :host([opened]) {
4150
+ pointer-events: auto;
4151
+ }
4152
+ </style>
4153
+
4154
+ <div class="vaadin-combo-box-container">
4155
+ <div part="label">
4156
+ <slot name="label"></slot>
4157
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
4158
+ </div>
4159
+
4160
+ <vaadin-input-container
4161
+ part="input-field"
4162
+ readonly="[[readonly]]"
4163
+ disabled="[[disabled]]"
4164
+ invalid="[[invalid]]"
4165
+ theme$="[[_theme]]"
4166
+ >
4167
+ <slot name="prefix" slot="prefix"></slot>
4168
+ <slot name="input"></slot>
4169
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
4170
+ <div id="toggleButton" part="toggle-button" slot="suffix" aria-hidden="true"></div>
4171
+ </vaadin-input-container>
4172
+
4173
+ <div part="helper-text">
4174
+ <slot name="helper"></slot>
4175
+ </div>
4176
+
4177
+ <div part="error-message">
4178
+ <slot name="error-message"></slot>
4179
+ </div>
4180
+ </div>
4181
+
4182
+ <vaadin-combo-box-overlay
4183
+ id="overlay"
4184
+ opened="[[_overlayOpened]]"
4185
+ loading$="[[loading]]"
4186
+ theme$="[[_theme]]"
4187
+ position-target="[[_positionTarget]]"
4188
+ no-vertical-overlap
4189
+ restore-focus-node="[[inputElement]]"
4190
+ ></vaadin-combo-box-overlay>
4191
+
4192
+ <slot name="tooltip"></slot>
4193
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new a.InputController(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new a.LabelledInputController(this.inputElement,this._labelController)),this._tooltipController=new a.TooltipController(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}a.defineCustomElement(wu);const Au='*,*::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}',Cu=Au,_o=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.defaultValue="",this.options=[],this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.touched=!1,this.handleChange=t=>{this.touched=!0;const e=t.target.value,i=this.options.find(r=>r.value.toLowerCase()===e.toLowerCase());i?this.value=i.value:this.value=e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(o){this.sendValidityState.emit(o)}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map(o=>({label:o.label,value:o.value.toUpperCase()}))}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const o=this.action.split(" ")[1];return this.getOptions(o).then(t=>{const e=Object.keys(t)[0];this.displayedOptions=t[e].map(i=>({label:i.Name,value:i.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(o){const t=new URL(o);return new Promise((e,i)=>{fetch(t.href).then(r=>r.json()).then(r=>{e(r)}).catch(r=>{console.error(r),i(r)})})}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return k.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?p.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){let o="";return this.touched&&(o=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),p.h("div",{key:"3d298b9709617233adacd88b8acb7d6298d35627",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},p.h("div",{key:"9ba53148a200b925da11ad0dea5589e9634ffb03",class:"select__wrapper--flex"},p.h("label",{key:"eb2fa2233926ada4da750e47304325d0d7ea3985",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),p.h("div",{key:"3cbe968f9a7c612d0b8d0517621a933cccd1bd58",class:"select__wrapper--relative"},this.tooltip&&p.h("img",{key:"9fa9be645ed72897a95705b0e17b3aee855eb6d4",class:"select__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),p.h("vaadin-combo-box",{key:"f596a5fa5b480791080dfa63359ed30eeabfaa02",name:this.name,id:`${this.name}__input`,class:`select__input ${o} ${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}),p.h("small",{key:"a9c652406489ba1d23497c55aa14e7b67fa701bd",class:"select__error-message"},this.errorMessage))}get element(){return p.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};_o.style=Cu;const ku='*,*::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}',Tu=ku,vo=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.phoneValue=t.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 t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(o){this.sendValidityState.emit(o)}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.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 o=this.action.split(" ")[1];return this.getPhoneCodes(o).then(t=>{this.phoneCodesOptions=t.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(o){const t=new URL(o);return new Promise((e,i)=>{fetch(t.href).then(r=>r.json()).then(r=>{e(r)}).catch(r=>{console.error(r),i(r)})})}handlePrefixInput(o){this.prefixValue=o.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var o,t;if(((o=this.validation.custom)===null||o===void 0?void 0:o.length)>0)return(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.pattern}setErrorMessage(){var o,t;if(this.inputReference.validity.patternMismatch){const e=(o=this.validation.custom.find(r=>r.rule==="regex"))===null||o===void 0?void 0:o.errorKey,i=(t=this.validation.custom.find(r=>r.rule==="regex"))===null||t===void 0?void 0:t.errorMessage;return k.translate(`${e}`,this.language)?k.translate(`${e}`,this.language):i}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return k.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return k.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?p.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){let o="";return this.touched&&(o=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),p.h("div",{key:"5febd36c339710683111039d477196daac87853c",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},p.h("div",{key:"fb779beee03992b23478ffcaac85095420048ceb",class:"tel__wrapper--flex-label"},p.h("label",{key:"5b69271c1c8bf403a003d765adb40a553e09466e",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),p.h("div",{key:"040c487308231459fc92eba2e643a80639df09d6",class:"tel__wrapper--relative"},this.tooltip&&p.h("img",{key:"91efd4656c718c75e5047413daf10c22c37e8f93",class:"tel__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),p.h("div",{key:"6215f80b6bccb3dfb03dbbc485c850725633627c",class:`tel__wrapper--flex ${o}`},p.h("vaadin-combo-box",{key:"3b7b1ef3415619c51d74f5fc7c5e034acb8f037f",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:t=>this.handlePrefixInput(t)}),p.h("input",{key:"886553206896c367ba96f015d81b44ea86f741ea",type:"tel",ref:t=>this.inputReference=t,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})),p.h("small",{key:"d4c88d386c3342c789527d925e9cd061494b785c",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};vo.style=Tu;const Eu='*,*::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}',Du=Eu,go=class{constructor(o){p.registerInstance(this,o),this.sendValidityState=p.createEvent(this,"sendValidityState"),this.sendInputValue=p.createEvent(this,"sendInputValue"),this.defaultValue="",this.clientStyling="",this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=t=>{this.value=t.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=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(o){o==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(o){this.sendValidityState.emit(o)}valueHandler(o){this.sendInputValue.emit(o)}handleClickOutside(o){o.composedPath()[0]!==this.tooltipIconReference&&o.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(o){this.isDuplicateInput&&this.name===o.detail.name+"Duplicate"&&(this.duplicateInputValue=o.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===o.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===o.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 o;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:(o=this.inputReference)===null||o===void 0?void 0:o.validity.valid}setPattern(){var o,t;if(((o=this.validation.custom)===null||o===void 0?void 0:o.length)>0)return(t=this.validation.custom.find(e=>e.rule==="regex"))===null||t===void 0?void 0:t.pattern}setErrorMessage(){var o,t,e,i;if(this.inputReference.validity.patternMismatch){const r=(o=this.validation.custom.find(s=>s.rule==="regex"))===null||o===void 0?void 0:o.errorKey,n=(t=this.validation.custom.find(s=>s.rule==="regex"))===null||t===void 0?void 0:t.errorMessage;return k.translate(`${r}`,this.language)?k.translate(`${r}`,this.language):n}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return k.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return k.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const r=(e=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||e===void 0?void 0:e.errorKey,n=(i=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||i===void 0?void 0:i.errorMessage;return k.translate(`${r}`,this.language)?k.translate(`${r}`,this.language):n}}renderTooltip(){return this.showTooltip?p.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:o=>this.tooltipReference=o,innerHTML:this.tooltip}):null}render(){let o="";return this.touched&&(o=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),p.h("div",{key:"bfb803110a70b89dd484e993c204b572f0115a17",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},p.h("div",{key:"6e9f8f5aada98821d5dc78ccb8b1431ba23b81ab",class:"text__wrapper--flex"},p.h("label",{key:"05cf07855121a79641475a5b020774cf8120d1ed",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),p.h("div",{key:"f8c48a999f6827a61ec392ce99858c19559c77d2",class:"text__wrapper--relative"},this.tooltip&&p.h("img",{key:"e866f1df104ce57c29164e73b4ad4d017c7201cd",class:"text__tooltip-icon",src:Q.tooltipIconSvg,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),p.h("input",{key:"d761c265b1487fe73af54568b6da7fed82656b8d",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${o}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),p.h("small",{key:"5c8df34dd47959eb1668cdf389524d145c69fa84",class:"text__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};go.style=Du;exports.checkbox_group_input=nr;exports.checkbox_input=ar;exports.date_input=ao;exports.email_input=lo;exports.number_input=uo;exports.radio_input=ho;exports.select_input=_o;exports.tel_input=vo;exports.text_input=go;