@everymatrix/player-account-controller 1.54.11 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/components/GeneralLogout-BW6b3iuS.cjs +8 -0
  2. package/components/{GeneralLogout-BO_iHKNr.js → GeneralLogout-DMvKimEo.js} +735 -713
  3. package/components/{GeneralLogout-CwSCMNgW.js → GeneralLogout-GS7gE3LI.js} +610 -588
  4. package/components/{PlayerAccountBettingHistory-Cb8OMNy9.cjs → PlayerAccountBettingHistory-BsFzBNDY.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-BoeZFFFu.js → PlayerAccountBettingHistory-DUgPRDra.js} +24 -24
  6. package/components/{PlayerAccountBettingHistory-C6G8D9gE.js → PlayerAccountBettingHistory-YNLbWHxl.js} +24 -24
  7. package/components/{PlayerAccountBiometrics-DbzqR4YB.cjs → PlayerAccountBiometrics-BrlNlZ5N.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-TQaVyCUp.js → PlayerAccountBiometrics-CARn4eVu.js} +26 -26
  9. package/components/{PlayerAccountBiometrics-C6n6AU67.js → PlayerAccountBiometrics-CXLK5_xT.js} +26 -26
  10. package/components/{PlayerAccountClosure-mb6TcNFj.js → PlayerAccountClosure-BQsYcTs7.js} +13 -13
  11. package/components/{PlayerAccountClosure-RO3lnj8F.js → PlayerAccountClosure-BkKcpa4J.js} +13 -13
  12. package/components/{PlayerAccountClosure-CoKkAlIq.cjs → PlayerAccountClosure-DfJc6Ip_.cjs} +1 -1
  13. package/components/{PlayerAccountController-DYgabEdS.js → PlayerAccountController-5iMZlx1a.js} +128 -128
  14. package/components/{PlayerAccountController-BuXBBarM.cjs → PlayerAccountController-7FPLehfk.cjs} +1 -1
  15. package/components/{PlayerAccountController-B1T1aFdb.js → PlayerAccountController-BhRqOpNe.js} +126 -126
  16. package/components/{PlayerAccountGamingLimits-Bc6vqzq1.js → PlayerAccountGamingLimits-B2-Mgazd.js} +19 -19
  17. package/components/{PlayerAccountGamingLimits-DbX9_Kpb.cjs → PlayerAccountGamingLimits-BPQrptbd.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimits-DiyC185P.js → PlayerAccountGamingLimits-DwpArRnO.js} +19 -19
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-BnOXTUlS.js → PlayerAccountGamingLimitsConfirmationModal-CNTlXu7V.js} +30 -30
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-x0MkZXMQ.js → PlayerAccountGamingLimitsConfirmationModal-DefxnTKN.js} +30 -30
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-CnGLRHzu.cjs → PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs} +1 -1
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-dprcKEZC.js → PlayerAccountGamingLimitsGroupEdit-CDY-ylK7.js} +51 -51
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-Crmi-e6x.js → PlayerAccountGamingLimitsGroupEdit-Cj7PXLH2.js} +51 -51
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-DYe0OoaG.cjs → PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs} +2 -2
  25. package/components/{PlayerAccountGamingLimitsHistory2-DiAUM6kQ.js → PlayerAccountGamingLimitsHistory2-2NpX8p0k.js} +44 -44
  26. package/components/{PlayerAccountGamingLimitsHistory2-CS4fpWhH.cjs → PlayerAccountGamingLimitsHistory2-B_7Y0DgS.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2-Dt9CSOvf.js → PlayerAccountGamingLimitsHistory2-DF8kvIf6.js} +46 -46
  28. package/components/{PlayerAccountGamingLimitsInfoCard-DFsD9RSx.cjs → PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsInfoCard-D9MKGXei.js → PlayerAccountGamingLimitsInfoCard-CNvQOw3A.js} +95 -95
  30. package/components/{PlayerAccountGamingLimitsInfoCard-Bd4vV7fT.js → PlayerAccountGamingLimitsInfoCard-D3sJXuZa.js} +95 -95
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-8-RWZDSp.cjs → PlayerAccountGamingLimitsPage2Gm16-BiFzgvUx.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-C9VhT1ek.js → PlayerAccountGamingLimitsPage2Gm16-C7_DGAt1.js} +72 -72
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-WSk66pxJ.js → PlayerAccountGamingLimitsPage2Gm16-Dz6knJ_h.js} +122 -122
  34. package/components/{PlayerAccountGamingLimitsPopup-C2R4OzUK.js → PlayerAccountGamingLimitsPopup-BlCz3nIH.js} +17 -17
  35. package/components/{PlayerAccountGamingLimitsPopup-DLqNpo7V.js → PlayerAccountGamingLimitsPopup-Bt4YlCWi.js} +17 -17
  36. package/components/{PlayerAccountGamingLimitsPopup-zTXU7ohP.cjs → PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsWrapper2-D3NmPjvT.js → PlayerAccountGamingLimitsWrapper2-D3tW5CCc.js} +8 -8
  38. package/components/{PlayerAccountGamingLimitsWrapper2-CXP2X7Lk.cjs → PlayerAccountGamingLimitsWrapper2-Dg6CwNyN.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2-Cr1xbzbX.js → PlayerAccountGamingLimitsWrapper2-RnvNKSgN.js} +8 -8
  40. package/components/{PlayerAccountGeneralConfirmationModal-CnGS36kY.cjs → PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs} +1 -1
  41. package/components/{PlayerAccountGeneralConfirmationModal-BrcO0n_o.js → PlayerAccountGeneralConfirmationModal-D3u9X3Q6.js} +39 -39
  42. package/components/{PlayerAccountGeneralConfirmationModal-DHuSzGQn.js → PlayerAccountGeneralConfirmationModal-SjPp-PVG.js} +39 -39
  43. package/components/{PlayerAccountMenu-VCDFEkVV.js → PlayerAccountMenu-5esyJ_VN.js} +20 -20
  44. package/components/{PlayerAccountMenu-kULPvwXH.cjs → PlayerAccountMenu-C704oUrC.cjs} +1 -1
  45. package/components/{PlayerAccountMenu-Bnj75Pyr.js → PlayerAccountMenu-DgptA72k.js} +17 -17
  46. package/components/{PlayerAccountModal-BGNjm-FU.js → PlayerAccountModal-BnWL5726.js} +28 -28
  47. package/components/{PlayerAccountModal-DLxnK5Aq.cjs → PlayerAccountModal-C7aZZlBw.cjs} +1 -1
  48. package/components/{PlayerAccountModal-d2eY7pgp.js → PlayerAccountModal-CbLpkfXY.js} +28 -28
  49. package/components/{PlayerAccountNotifications-BkPn9o0x.js → PlayerAccountNotifications-B02Ownhe.js} +16 -16
  50. package/components/{PlayerAccountNotifications-DwHaboef.js → PlayerAccountNotifications-C-lyz5dM.js} +16 -16
  51. package/components/{PlayerAccountNotifications-DLpnh54-.cjs → PlayerAccountNotifications-DkgHtUGj.cjs} +1 -1
  52. package/components/PlayerAccountSelfExclusion-BS89T7sZ.cjs +4171 -0
  53. package/components/{PlayerAccountSelfExclusion-Dsc1c5ET.js → PlayerAccountSelfExclusion-BkK_LRpi.js} +9840 -9439
  54. package/components/{PlayerAccountSelfExclusion-C-Gq5xhb.js → PlayerAccountSelfExclusion-D6Kby-08.js} +9320 -8965
  55. package/components/{PlayerAccountTimeout-DX8TE-kL.cjs → PlayerAccountTimeout-DMbUPtRy.cjs} +1 -1
  56. package/components/{PlayerAccountTimeout-DPGSPm6O.js → PlayerAccountTimeout-DWNG3Mes.js} +25 -25
  57. package/components/{PlayerAccountTimeout-BrX6tkl3.js → PlayerAccountTimeout-tPNVqlAT.js} +25 -25
  58. package/components/PlayerActiveBonuses-B9jz3QD8.cjs +1 -0
  59. package/components/{PlayerActiveBonuses-DZ1TuekM.js → PlayerActiveBonuses-SCbHFBuw.js} +392 -443
  60. package/components/{PlayerActiveBonuses-WBu-rYFj.js → PlayerActiveBonuses-dRIcHoZG.js} +415 -466
  61. package/components/{PlayerBonusCard-BtSC36hN.js → PlayerBonusCard-8uOU9OLG.js} +50 -50
  62. package/components/{PlayerBonusCard-DqHyFS9o.cjs → PlayerBonusCard-BC8FfHZz.cjs} +1 -1
  63. package/components/{PlayerBonusCard-Ci1k7NFv.js → PlayerBonusCard-Cppd6wFF.js} +50 -50
  64. package/components/{PlayerBonusHistory-C7m0o7Yl.js → PlayerBonusHistory-44sPM1i7.js} +30 -30
  65. package/components/{PlayerBonusHistory-D-qDx10G.cjs → PlayerBonusHistory-D2YSJiqi.cjs} +1 -1
  66. package/components/{PlayerBonusHistory-DDNLaEBO.js → PlayerBonusHistory-DWvXjCPO.js} +30 -30
  67. package/components/{PlayerChangePassword-B4VW3taV.cjs → PlayerChangePassword-CzR4Xz0H.cjs} +1 -1
  68. package/components/{PlayerChangePassword-Bhfh3D2M.js → PlayerChangePassword-N_UEFJNT.js} +103 -103
  69. package/components/{PlayerChangePassword-Dk7vlEEM.js → PlayerChangePassword-OM9U8MSx.js} +103 -103
  70. package/components/PlayerDeposit-CwMvcnsj.js +414 -0
  71. package/components/PlayerDeposit-D_78W5GC.cjs +1 -0
  72. package/components/PlayerDeposit-Q2N0Y2_v.js +414 -0
  73. package/components/{PlayerGamingHistory-CaYFZtwD.js → PlayerGamingHistory-BLQD-WyT.js} +54 -54
  74. package/components/{PlayerGamingHistory-CcFH-mIk.cjs → PlayerGamingHistory-DRkPp9aG.cjs} +1 -1
  75. package/components/{PlayerGamingHistory-BPF2pyCO.js → PlayerGamingHistory-XiAb60Gu.js} +59 -59
  76. package/components/{PlayerPendingWithdrawals-BvhoX5n1.cjs → PlayerPendingWithdrawals-BG3I8ifu.cjs} +1 -1
  77. package/components/{PlayerPendingWithdrawals-DQ_Nh38H.js → PlayerPendingWithdrawals-BSTgce9H.js} +33 -33
  78. package/components/{PlayerPendingWithdrawals-DabTg_Hg.js → PlayerPendingWithdrawals-BsCRRPqb.js} +33 -33
  79. package/components/{PlayerProfileInfo-B6I2vv_G.js → PlayerProfileInfo-C7zRlD3p.js} +163 -159
  80. package/components/{PlayerProfileInfo-Bx9bKldG.cjs → PlayerProfileInfo-CGsJydqv.cjs} +1 -1
  81. package/components/{PlayerProfileInfo-Baoz1CHE.js → PlayerProfileInfo-zmbAMe_l.js} +154 -150
  82. package/components/{PlayerRealityCheck-6ZyJUl5U.js → PlayerRealityCheck-A_mZq3YZ.js} +27 -27
  83. package/components/{PlayerRealityCheck-DMI_8YfG.cjs → PlayerRealityCheck-C26ZBWae.cjs} +1 -1
  84. package/components/{PlayerRealityCheck-CzPyJQgR.js → PlayerRealityCheck-D7u9BzPV.js} +26 -26
  85. package/components/{PlayerTransactionHistory-Dj8ABxFp.cjs → PlayerTransactionHistory-CJqhYnbs.cjs} +1 -1
  86. package/components/{PlayerTransactionHistory-CSK3J3Na.js → PlayerTransactionHistory-DllIB_qE.js} +23 -23
  87. package/components/{PlayerTransactionHistory-DmTfwUdw.js → PlayerTransactionHistory-DsRmd4u6.js} +23 -23
  88. package/components/{PlayerWithdrawal-BrqShTsy.js → PlayerWithdrawal-CGSnHppy.js} +20 -20
  89. package/components/{PlayerWithdrawal-BwymNFiL.cjs → PlayerWithdrawal-GDc_7hZX.cjs} +1 -1
  90. package/components/{PlayerWithdrawal-ct79yXDc.js → PlayerWithdrawal-t5mlX5CD.js} +20 -20
  91. package/es2015/player-account-controller.cjs +1 -1
  92. package/es2015/player-account-controller.js +1 -1
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/{checkbox-group-input_9-9b62GyCW.js → checkbox-group-input_9-Cny9rOs9.js} +2490 -3376
  96. package/stencil/{checkbox-group-input_9-BDryW6Wx.js → checkbox-group-input_9-DZvX2H_r.js} +2434 -3306
  97. package/stencil/checkbox-group-input_9-FLO2Qa5Y.cjs +2104 -0
  98. package/stencil/{general-input-BXIgsD0E.js → general-input-Yj_LRx0v.js} +6 -6
  99. package/stencil/{general-input-CwyM4h8z.js → general-input-d5RULL12.js} +6 -6
  100. package/stencil/general-input-igTYIJ6W.cjs +1 -0
  101. package/stencil/index-0437c9c0-BwGFk0Yq.js +565 -0
  102. package/stencil/index-0437c9c0-C_oD9Yfn.js +592 -0
  103. package/stencil/index-0437c9c0-oCxuDVFQ.cjs +1 -0
  104. package/stencil/index-657e7a14-B7-RqEpB.js +572 -0
  105. package/stencil/index-657e7a14-CrrA_w_5.cjs +1 -0
  106. package/stencil/index-657e7a14-DW4SbCqy.js +588 -0
  107. package/stencil/index-72d2f0c7--qtpsDOz.js +642 -0
  108. package/stencil/index-72d2f0c7-DldCMjBJ.cjs +1 -0
  109. package/stencil/index-72d2f0c7-DyMEJXra.js +626 -0
  110. package/stencil/index-e8249896-BjtvOmsZ.cjs +1 -0
  111. package/stencil/index-e8249896-CM_igLvD.js +658 -0
  112. package/stencil/index-e8249896-DW1YiUqn.js +631 -0
  113. package/stencil/password-input_2-CHOu4hgw.js +1420 -0
  114. package/stencil/password-input_2-DQAgV1SZ.cjs +896 -0
  115. package/stencil/password-input_2-DaiHlKbQ.js +1420 -0
  116. package/stencil/{player-change-password-gm2-2de114b8-j-W8UbVm.cjs → player-change-password-gm2-780eb445-CdItmoKI.cjs} +1 -1
  117. package/stencil/{player-change-password-gm2-2de114b8-BXdScOXy.js → player-change-password-gm2-780eb445-Cg8Z75Vz.js} +3 -3
  118. package/stencil/{player-change-password-gm2-2de114b8-D375sYxZ.js → player-change-password-gm2-780eb445-DEjz9Jjk.js} +3 -3
  119. package/stencil/{player-change-password-gm2-DLw7pfT_.cjs → player-change-password-gm2-BR82_Y4L.cjs} +1 -1
  120. package/stencil/{player-change-password-gm2-BDCYchnQ.js → player-change-password-gm2-DlMNv4hv.js} +1 -1
  121. package/stencil/{player-change-password-gm2-CQtvRl58.js → player-change-password-gm2-FHUeecdE.js} +1 -1
  122. package/stencil/{player-kyc-verification-KcMUMtzd.js → player-kyc-verification-CZy8RShe.js} +43 -43
  123. package/stencil/{player-kyc-verification-BZX3owFI.js → player-kyc-verification-DuUII5AF.js} +39 -39
  124. package/stencil/{player-kyc-verification-CnOn9bB_.cjs → player-kyc-verification-DxpMnJ6t.cjs} +2 -2
  125. package/stencil/{toggle-checkbox-input-BqotLJuA.js → toggle-checkbox-input-Co64_7cm.js} +7 -7
  126. package/stencil/{toggle-checkbox-input-DFpk-vL2.js → toggle-checkbox-input-ErX2Ngat.js} +7 -7
  127. package/stencil/toggle-checkbox-input-a_0w-Y0n.cjs +1 -0
  128. package/stencil/{user-deposit-withdrawal-BZXlCCQr.cjs → user-deposit-withdrawal-Cum51n64.cjs} +2 -2
  129. package/stencil/{user-deposit-withdrawal-6RE0dcHP.js → user-deposit-withdrawal-DRo4MaOR.js} +24 -24
  130. package/stencil/{user-deposit-withdrawal-D7AuBXPO.js → user-deposit-withdrawal-DsEm--6b.js} +24 -24
  131. package/stencil/{user-transaction-history-DW482EoT.js → user-transaction-history-BpBJPUwq.js} +10 -10
  132. package/stencil/{user-transaction-history-CLdEzp7O.cjs → user-transaction-history-C3_7vgUY.cjs} +1 -1
  133. package/stencil/{user-transaction-history-CtDvqHoF.js → user-transaction-history-ClGHRdoQ.js} +7 -7
  134. package/stencil/vaadin-button-6001b2a6-C6xw53k5.cjs +3018 -0
  135. package/stencil/{vaadin-button-mixin-b8087c3c-DMeIIR12.js → vaadin-button-6001b2a6-CZwj1qjO.js} +5818 -5228
  136. package/stencil/{vaadin-button-mixin-b8087c3c-DTenw4S9.js → vaadin-button-6001b2a6-Dqz5Vp8D.js} +3935 -3299
  137. package/components/GeneralLogout-CMYMtWfC.cjs +0 -8
  138. package/components/PlayerAccountSelfExclusion-Dlkeebgy.cjs +0 -3557
  139. package/components/PlayerActiveBonuses-T1itpvjq.cjs +0 -1
  140. package/components/PlayerDeposit-B04mpHHT.js +0 -395
  141. package/components/PlayerDeposit-CH0pw_GN.cjs +0 -1
  142. package/components/PlayerDeposit-DJXOEJyq.js +0 -395
  143. package/stencil/checkbox-group-input_9-B0JD93gn.cjs +0 -2045
  144. package/stencil/general-input-BL1L8PI-.cjs +0 -1
  145. package/stencil/index-0a27499c-BaAMIKJI.js +0 -724
  146. package/stencil/index-0a27499c-DaAhyku1.js +0 -697
  147. package/stencil/index-0a27499c-vG7Av-0V.cjs +0 -1
  148. package/stencil/index-1d58b17d-BREebYgt.js +0 -658
  149. package/stencil/index-1d58b17d-CY3tvLdR.js +0 -631
  150. package/stencil/index-1d58b17d-oagDV-gC.cjs +0 -1
  151. package/stencil/index-45f4006f-CL2s7me-.cjs +0 -1
  152. package/stencil/index-45f4006f-D9GyS-vs.js +0 -638
  153. package/stencil/index-45f4006f-DKAxZFDZ.js +0 -654
  154. package/stencil/index-92b64862-Bnmv00O2.js +0 -708
  155. package/stencil/index-92b64862-CK1ANWGa.cjs +0 -1
  156. package/stencil/index-92b64862-CO3_TP5h.js +0 -692
  157. package/stencil/password-input_2-B5ePukhS.js +0 -569
  158. package/stencil/password-input_2-D3ziy4Iu.cjs +0 -105
  159. package/stencil/password-input_2-ZN0C3aqj.js +0 -569
  160. package/stencil/toggle-checkbox-input-n5b3s-CU.cjs +0 -1
  161. package/stencil/vaadin-button-mixin-b8087c3c-BzMgQwsM.cjs +0 -2385
@@ -0,0 +1,4171 @@
1
+ "use strict";var nr=Object.defineProperty,ar=Object.defineProperties;var lr=Object.getOwnPropertyDescriptors;var Yo=Object.getOwnPropertySymbols;var cr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable;var Uo=(i,t,e)=>t in i?nr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Tt=(i,t)=>{for(var e in t||(t={}))cr.call(t,e)&&Uo(i,e,t[e]);if(Yo)for(var e of Yo(t))ur.call(t,e)&&Uo(i,e,t[e]);return i},Mt=(i,t)=>ar(i,lr(t));var rt=(i,t,e)=>new Promise((o,s)=>{var r=l=>{try{a(e.next(l))}catch(c){s(c)}},n=l=>{try{a(e.throw(l))}catch(c){s(c)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(i,t)).next())});const u=require("./GeneralLogout-BW6b3iuS.cjs");/**
2
+ * @license
3
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */function ae(i){const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const e=t.version;e&&i.version&&e===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
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
+ */let dr=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};ae(dr);/**
10
+ * @license
11
+ * Copyright 2019 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const ut=window,xo=ut.ShadowRoot&&(ut.ShadyCSS===void 0||ut.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wo=Symbol(),Vo=new WeakMap;let Eo=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==wo)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(xo&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=Vo.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Vo.set(e,t))}return t}toString(){return this.cssText}};const hr=i=>new Eo(typeof i=="string"?i:i+"",void 0,wo),S=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((o,s,r)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[r+1],i[0]);return new Eo(e,i,wo)},pr=(i,t)=>{xo?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const o=document.createElement("style"),s=ut.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=e.cssText,i.appendChild(o)})},Wo=xo?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return hr(e)})(i):i;/**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */var Ot;const ft=window,qo=ft.trustedTypes,mr=qo?qo.emptyScript:"",Ko=ft.reactiveElementPolyfillSupport,Zt={toAttribute(i,t){switch(t){case Boolean:i=i?mr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(o){e=null}}return e}},$i=(i,t)=>t!==i&&(t==t||i==i),zt={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:$i},Qt="finalized";let De=class 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,o)=>{const s=this._$Ep(o,e);s!==void 0&&(this._$Ev.set(s,o),t.push(s))}),t}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,o,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||zt}static finalize(){if(this.hasOwnProperty(Qt))return!1;this[Qt]=!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,o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of o)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const s of o)e.unshift(Wo(s))}else t!==void 0&&e.push(Wo(t));return e}static _$Ep(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o: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,o;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.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 pr(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 o;return(o=e.hostConnected)===null||o===void 0?void 0:o.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostDisconnected)===null||o===void 0?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=zt){var s;const r=this.constructor._$Ep(t,o);if(r!==void 0&&o.reflect===!0){const n=(((s=o.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?o.converter:Zt).toAttribute(e,o.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var o;const s=this.constructor,r=s._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=s.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:Zt;this._$El=r,this[r]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,o){let s=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||$i)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}_$Ej(){return rt(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.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,r)=>this[r]=s),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var r;return(r=s.hostUpdate)===null||r===void 0?void 0:r.call(s)}),this.update(o)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var s;return(s=o.hostUpdated)===null||s===void 0?void 0:s.call(o)}),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,o)=>this._$EO(o,this[o],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};De[Qt]=!0,De.elementProperties=new Map,De.elementStyles=[],De.shadowRootOptions={mode:"open"},Ko==null||Ko({ReactiveElement:De}),((Ot=ft.reactiveElementVersions)!==null&&Ot!==void 0?Ot:ft.reactiveElementVersions=[]).push("1.6.3");/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */var It;const _t=window,ze=_t.trustedTypes,Go=ze?ze.createPolicy("lit-html",{createHTML:i=>i}):void 0,eo="$lit$",me=`lit$${(Math.random()+"").slice(9)}$`,Ri="?"+me,fr=`<${Ri}>`,Se=document,We=()=>Se.createComment(""),qe=i=>i===null||typeof i!="object"&&typeof i!="function",Hi=Array.isArray,_r=i=>Hi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Nt=`[
22
+ \f\r]`,$e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jo=/-->/g,Xo=/>/g,ve=RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Zo=/'/g,Qo=/"/g,Bi=/^(?:script|style|textarea|title)$/i,Ie=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),ei=new WeakMap,be=Se.createTreeWalker(Se,129,null,!1);function ji(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Go!==void 0?Go.createHTML(t):t}const gr=(i,t)=>{const e=i.length-1,o=[];let s,r=t===2?"<svg>":"",n=$e;for(let a=0;a<e;a++){const l=i[a];let c,d,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===$e?d[1]==="!--"?n=Jo:d[1]!==void 0?n=Xo:d[2]!==void 0?(Bi.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=ve):d[3]!==void 0&&(n=ve):n===ve?d[0]===">"?(n=s!=null?s:$e,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?ve:d[3]==='"'?Qo:Zo):n===Qo||n===Zo?n=ve:n===Jo||n===Xo?n=$e:(n=ve,s=void 0);const m=n===ve&&i[a+1].startsWith("/>")?" ":"";r+=n===$e?l+fr:h>=0?(o.push(c),l.slice(0,h)+eo+l.slice(h)+me+m):l+me+(h===-2?(o.push(void 0),a):m)}return[ji(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),o]};class Ke{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[c,d]=gr(t,e);if(this.el=Ke.createElement(c,o),be.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=be.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(eo)||p.startsWith(me)){const m=d[n++];if(h.push(p),m!==void 0){const y=s.getAttribute(m.toLowerCase()+eo).split(me),P=/([.?@])?(.*)/.exec(m);l.push({type:1,index:r,name:P[2],strings:y,ctor:P[1]==="."?vr:P[1]==="?"?xr:P[1]==="@"?wr:Et})}else l.push({type:6,index:r})}for(const p of h)s.removeAttribute(p)}if(Bi.test(s.tagName)){const h=s.textContent.split(me),p=h.length-1;if(p>0){s.textContent=ze?ze.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],We()),be.nextNode(),l.push({type:2,index:++r});s.append(h[p],We())}}}else if(s.nodeType===8)if(s.data===Ri)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(me,h+1))!==-1;)l.push({type:7,index:r}),h+=me.length-1}r++}}static createElement(t,e){const o=Se.createElement("template");return o.innerHTML=t,o}}function Ne(i,t,e=i,o){var s,r,n,a;if(t===Ie)return t;let l=o!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[o]:e._$Cl;const c=qe(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,e,o)),o!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:e._$Cl=l),l!==void 0&&(t=Ne(i,l._$AS(i,t.values),l,o)),t}class yr{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:o},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Se).importNode(o,!0);be.currentNode=r;let n=be.nextNode(),a=0,l=0,c=s[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new it(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new Er(n,this,t)),this._$AV.push(d),c=s[++l]}a!==(c==null?void 0:c.index)&&(n=be.nextNode(),a++)}return be.currentNode=Se,r}v(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class it{constructor(t,e,o,s){var r;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}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=Ne(this,t,e),qe(t)?t===q||t==null||t===""?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==Ie&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):_r(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!==q&&qe(this._$AH)?this._$AA.nextSibling.data=t:this.$(Se.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Ke.createElement(ji(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(o);else{const n=new yr(r,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(t){let e=ei.get(t.strings);return e===void 0&&ei.set(t.strings,e=new Ke(t)),e}T(t){Hi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const r of t)s===e.length?e.push(o=new it(this.k(We()),this.k(We()),this,this.options)):o=e[s],o._$AI(r),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class Et{constructor(t,e,o,s,r){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,s){const r=this.strings;let n=!1;if(r===void 0)t=Ne(this,t,e,0),n=!qe(t)||t!==this._$AH&&t!==Ie,n&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=Ne(this,a[o+l],e,l),c===Ie&&(c=this._$AH[l]),n||(n=!qe(c)||c!==this._$AH[l]),c===q?t=q:t!==q&&(t+=(c!=null?c:"")+r[l+1]),this._$AH[l]=c}n&&!s&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class vr extends Et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const br=ze?ze.emptyScript:"";class xr extends Et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,br):this.element.removeAttribute(this.name)}}class wr extends Et{constructor(t,e,o,s,r){super(t,e,o,s,r),this.type=5}_$AI(t,e=this){var o;if((t=(o=Ne(this,t,e,0))!==null&&o!==void 0?o:q)===Ie)return;const s=this._$AH,r=t===q&&s!==q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==q&&(s===q||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&o!==void 0?o:this.element,t):this._$AH.handleEvent(t)}}class Er{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Ne(this,t)}}const ti=_t.litHtmlPolyfillSupport;ti==null||ti(Ke,it),((It=_t.litHtmlVersions)!==null&&It!==void 0?It:_t.litHtmlVersions=[]).push("2.8.0");const Sr=(i,t,e)=>{var o,s;const r=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:t;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new it(t.insertBefore(We(),a),a,void 0,e!=null?e:{})}return n._$AI(i),n};/**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */var Ft,Lt;class dt extends De{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Sr(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 Ie}}dt.finalized=!0,dt._$litElement$=!0,(Ft=globalThis.litElementHydrateSupport)===null||Ft===void 0||Ft.call(globalThis,{LitElement:dt});const oi=globalThis.litElementPolyfillSupport;oi==null||oi({LitElement:dt});((Lt=globalThis.litElementVersions)!==null&&Lt!==void 0?Lt:globalThis.litElementVersions=[]).push("3.3.3");/**
28
+ * @license
29
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
30
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
31
+ */const Cr=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o,s){super.attributeChangedCallback(e,o,s),e==="theme"&&this._set_theme(s)}};/**
32
+ * @license
33
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
34
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
+ */const Yi=[];function Ui(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Ar(i){return Ui(customElements.get(i))}function Pr(i=[]){return[i].flat(1/0).filter(t=>t instanceof Eo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function R(i,t,e={}){i&&Ar(i)&&console.warn(`The custom element definition for "${i}"
36
+ was finalized before a style module was registered.
37
+ Make sure to add component specific style modules before
38
+ importing the corresponding custom element.`),t=Pr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):Yi.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId})}function to(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Yi}function kr(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Dr(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function Vi(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const o=to().find(s=>s.moduleId===e);o?t.push(...Vi(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function Tr(i,t){const e=document.createElement("style");e.innerHTML=i.map(o=>o.cssText).join(`
39
+ `),t.content.appendChild(e)}function Mr(i){const t=`${i}-default-theme`,e=to().filter(o=>o.moduleId!==t&&kr(o.themeFor,i)).map(o=>Mt(Tt({},o),{styles:[...Vi(o),...o.styles],includePriority:Dr(o.moduleId)})).sort((o,s)=>s.includePriority-o.includePriority);return e.length>0?e:to().filter(o=>o.moduleId===t)}const Ce=i=>class extends Cr(i){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Ui(this)||Tr(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...super.finalizeStyles(e),...o]:o}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),o=(e?e.constructor.__themes:[])||[];this.__themes=[...o,...Mr(this.is)];const s=this.__themes.flatMap(r=>r.styles);return s.filter((r,n)=>n===s.lastIndexOf(r))}};/**
40
+ * @license
41
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
42
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
43
+ */const So=(i,...t)=>{const e=document.createElement("style");e.id=i,e.textContent=t.map(o=>o.toString()).join(`
44
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},St=(i,...t)=>{So(`lumo-${i}`,t)};/**
45
+ * @license
46
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
47
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
+ */const Or=S`
49
+ :host {
50
+ /* Base (background) */
51
+ --lumo-base-color: #fff;
52
+
53
+ /* Tint */
54
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
55
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
56
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
57
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
58
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
59
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
60
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
61
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
62
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
63
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
64
+ --lumo-tint: #fff;
65
+
66
+ /* Shade */
67
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
68
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
69
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
70
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
71
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
72
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
73
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
74
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
75
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
76
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
77
+ --lumo-shade: hsl(214, 35%, 15%);
78
+
79
+ /* Contrast */
80
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
81
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
82
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
83
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
84
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
85
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
86
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
87
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
88
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
89
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
90
+ --lumo-contrast: var(--lumo-shade);
91
+
92
+ /* Text */
93
+ --lumo-header-text-color: var(--lumo-contrast);
94
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
95
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
96
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
97
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
98
+
99
+ /* Primary */
100
+ --lumo-primary-color: hsl(214, 100%, 48%);
101
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
102
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
103
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
104
+ --lumo-primary-contrast-color: #fff;
105
+
106
+ /* Error */
107
+ --lumo-error-color: hsl(3, 85%, 48%);
108
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
109
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
110
+ --lumo-error-text-color: hsl(3, 89%, 42%);
111
+ --lumo-error-contrast-color: #fff;
112
+
113
+ /* Success */
114
+ --lumo-success-color: hsl(145, 72%, 30%);
115
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
116
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
117
+ --lumo-success-text-color: hsl(145, 85%, 25%);
118
+ --lumo-success-contrast-color: #fff;
119
+
120
+ /* Warning */
121
+ --lumo-warning-color: hsl(48, 100%, 50%);
122
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
123
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
124
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
125
+ }
126
+
127
+ /* forced-colors mode adjustments */
128
+ @media (forced-colors: active) {
129
+ html {
130
+ --lumo-disabled-text-color: GrayText;
131
+ }
132
+ }
133
+ `;St("color-props",Or);const zr=S`
134
+ [theme~='dark'] {
135
+ /* Base (background) */
136
+ --lumo-base-color: hsl(214, 35%, 21%);
137
+
138
+ /* Tint */
139
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
140
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
141
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
142
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
143
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
144
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
145
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
146
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
147
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
148
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
149
+ --lumo-tint: hsl(214, 100%, 98%);
150
+
151
+ /* Shade */
152
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
153
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
154
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
155
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
156
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
157
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
158
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
159
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
160
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
161
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
162
+ --lumo-shade: hsl(214, 33%, 13%);
163
+
164
+ /* Contrast */
165
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
166
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
167
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
168
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
169
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
170
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
171
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
172
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
173
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
174
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
175
+ --lumo-contrast: var(--lumo-tint);
176
+
177
+ /* Text */
178
+ --lumo-header-text-color: var(--lumo-contrast);
179
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
180
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
181
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
182
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
183
+
184
+ /* Primary */
185
+ --lumo-primary-color: hsl(214, 90%, 48%);
186
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
187
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
188
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
189
+ --lumo-primary-contrast-color: #fff;
190
+
191
+ /* Error */
192
+ --lumo-error-color: hsl(3, 79%, 49%);
193
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
194
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
195
+ --lumo-error-text-color: hsl(3, 100%, 80%);
196
+
197
+ /* Success */
198
+ --lumo-success-color: hsl(145, 72%, 30%);
199
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
200
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
201
+ --lumo-success-text-color: hsl(145, 85%, 46%);
202
+
203
+ /* Warning */
204
+ --lumo-warning-color: hsl(43, 100%, 48%);
205
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
206
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
207
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
208
+ }
209
+
210
+ html {
211
+ color: var(--lumo-body-text-color);
212
+ background-color: var(--lumo-base-color);
213
+ color-scheme: light;
214
+ }
215
+
216
+ [theme~='dark'] {
217
+ color: var(--lumo-body-text-color);
218
+ background-color: var(--lumo-base-color);
219
+ color-scheme: dark;
220
+ }
221
+
222
+ h1,
223
+ h2,
224
+ h3,
225
+ h4,
226
+ h5,
227
+ h6 {
228
+ color: var(--lumo-header-text-color);
229
+ }
230
+
231
+ a:where(:any-link) {
232
+ color: var(--lumo-primary-text-color);
233
+ }
234
+
235
+ a:not(:any-link) {
236
+ color: var(--lumo-disabled-text-color);
237
+ }
238
+
239
+ blockquote {
240
+ color: var(--lumo-secondary-text-color);
241
+ }
242
+
243
+ code,
244
+ pre {
245
+ background-color: var(--lumo-contrast-10pct);
246
+ border-radius: var(--lumo-border-radius-m);
247
+ }
248
+ `;R("",zr,{moduleId:"lumo-color"});/**
249
+ * @license
250
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
251
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
252
+ */const Ir=S`
253
+ :host {
254
+ --lumo-size-xs: 1.625rem;
255
+ --lumo-size-s: 1.875rem;
256
+ --lumo-size-m: 2.25rem;
257
+ --lumo-size-l: 2.75rem;
258
+ --lumo-size-xl: 3.5rem;
259
+
260
+ /* Icons */
261
+ --lumo-icon-size-s: 1.25em;
262
+ --lumo-icon-size-m: 1.5em;
263
+ --lumo-icon-size-l: 2.25em;
264
+ /* For backwards compatibility */
265
+ --lumo-icon-size: var(--lumo-icon-size-m);
266
+ }
267
+ `;St("sizing-props",Ir);/**
268
+ * @license
269
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
270
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
271
+ */const Nr=S`
272
+ :host {
273
+ /* Border radius */
274
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
275
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
276
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
277
+
278
+ /* Shadow */
279
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
280
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
281
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
282
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
283
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
284
+
285
+ /* Clickable element cursor */
286
+ --lumo-clickable-cursor: default;
287
+ }
288
+ `;S`
289
+ html {
290
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
291
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
292
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
293
+ }
294
+ `;St("style-props",Nr);/**
295
+ * @license
296
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
297
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
298
+ */const Fr=S`
299
+ :host {
300
+ /* prettier-ignore */
301
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
302
+
303
+ /* Font sizes */
304
+ --lumo-font-size-xxs: 0.75rem;
305
+ --lumo-font-size-xs: 0.8125rem;
306
+ --lumo-font-size-s: 0.875rem;
307
+ --lumo-font-size-m: 1rem;
308
+ --lumo-font-size-l: 1.125rem;
309
+ --lumo-font-size-xl: 1.375rem;
310
+ --lumo-font-size-xxl: 1.75rem;
311
+ --lumo-font-size-xxxl: 2.5rem;
312
+
313
+ /* Line heights */
314
+ --lumo-line-height-xs: 1.25;
315
+ --lumo-line-height-s: 1.375;
316
+ --lumo-line-height-m: 1.625;
317
+ }
318
+ `,Lr=S`
319
+ body,
320
+ :host {
321
+ font-family: var(--lumo-font-family);
322
+ font-size: var(--lumo-font-size-m);
323
+ line-height: var(--lumo-line-height-m);
324
+ -webkit-text-size-adjust: 100%;
325
+ -webkit-font-smoothing: antialiased;
326
+ -moz-osx-font-smoothing: grayscale;
327
+ }
328
+
329
+ small,
330
+ [theme~='font-size-s'] {
331
+ font-size: var(--lumo-font-size-s);
332
+ line-height: var(--lumo-line-height-s);
333
+ }
334
+
335
+ [theme~='font-size-xs'] {
336
+ font-size: var(--lumo-font-size-xs);
337
+ line-height: var(--lumo-line-height-xs);
338
+ }
339
+
340
+ :where(h1, h2, h3, h4, h5, h6) {
341
+ font-weight: 600;
342
+ line-height: var(--lumo-line-height-xs);
343
+ margin-block: 0;
344
+ }
345
+
346
+ :where(h1) {
347
+ font-size: var(--lumo-font-size-xxxl);
348
+ }
349
+
350
+ :where(h2) {
351
+ font-size: var(--lumo-font-size-xxl);
352
+ }
353
+
354
+ :where(h3) {
355
+ font-size: var(--lumo-font-size-xl);
356
+ }
357
+
358
+ :where(h4) {
359
+ font-size: var(--lumo-font-size-l);
360
+ }
361
+
362
+ :where(h5) {
363
+ font-size: var(--lumo-font-size-m);
364
+ }
365
+
366
+ :where(h6) {
367
+ font-size: var(--lumo-font-size-xs);
368
+ text-transform: uppercase;
369
+ letter-spacing: 0.03em;
370
+ }
371
+
372
+ p,
373
+ blockquote {
374
+ margin-top: 0.5em;
375
+ margin-bottom: 0.75em;
376
+ }
377
+
378
+ a {
379
+ text-decoration: none;
380
+ }
381
+
382
+ a:where(:any-link):hover {
383
+ text-decoration: underline;
384
+ }
385
+
386
+ hr {
387
+ display: block;
388
+ align-self: stretch;
389
+ height: 1px;
390
+ border: 0;
391
+ padding: 0;
392
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
393
+ background-color: var(--lumo-contrast-10pct);
394
+ }
395
+
396
+ blockquote {
397
+ border-left: 2px solid var(--lumo-contrast-30pct);
398
+ }
399
+
400
+ b,
401
+ strong {
402
+ font-weight: 600;
403
+ }
404
+
405
+ /* RTL specific styles */
406
+ blockquote[dir='rtl'] {
407
+ border-left: none;
408
+ border-right: 2px solid var(--lumo-contrast-30pct);
409
+ }
410
+ `;R("",Lr,{moduleId:"lumo-typography"});St("typography-props",Fr);R("vaadin-input-container",S`
411
+ :host {
412
+ background-color: var(--lumo-contrast-10pct);
413
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
414
+ font-weight: 500;
415
+ line-height: 1;
416
+ position: relative;
417
+ cursor: text;
418
+ box-sizing: border-box;
419
+ border-radius:
420
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
421
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
422
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
423
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
424
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
425
+ /* Fallback */
426
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
427
+ /* Default field border color */
428
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
429
+ }
430
+
431
+ :host([dir='rtl']) {
432
+ border-radius:
433
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
434
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
435
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
436
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
437
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
438
+ }
439
+
440
+ /* Used for hover and activation effects */
441
+ :host::after {
442
+ content: '';
443
+ position: absolute;
444
+ inset: 0;
445
+ border-radius: inherit;
446
+ pointer-events: none;
447
+ background-color: var(--lumo-contrast-50pct);
448
+ opacity: 0;
449
+ transition: transform 0.15s, opacity 0.2s;
450
+ transform-origin: 100% 0;
451
+ }
452
+
453
+ ::slotted(:not([slot$='fix'])) {
454
+ cursor: inherit;
455
+ min-height: var(--lumo-text-field-size, var(--lumo-size-m));
456
+ padding: 0 0.25em;
457
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
458
+ -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
459
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
460
+ }
461
+
462
+ /* Read-only */
463
+ :host([readonly]) {
464
+ color: var(--lumo-secondary-text-color);
465
+ background-color: transparent;
466
+ cursor: default;
467
+ }
468
+
469
+ :host([readonly])::after {
470
+ background-color: transparent;
471
+ opacity: 1;
472
+ border: 1px dashed var(--lumo-contrast-30pct);
473
+ }
474
+
475
+ /* Disabled */
476
+ :host([disabled]) {
477
+ background-color: var(--lumo-contrast-5pct);
478
+ }
479
+
480
+ :host([disabled]) ::slotted(*) {
481
+ color: var(--lumo-disabled-text-color);
482
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
483
+ }
484
+
485
+ /* Invalid */
486
+ :host([invalid]) {
487
+ background-color: var(--lumo-error-color-10pct);
488
+ }
489
+
490
+ :host([invalid])::after {
491
+ background-color: var(--lumo-error-color-50pct);
492
+ }
493
+
494
+ /* Slotted icons */
495
+ ::slotted(vaadin-icon) {
496
+ color: var(--lumo-contrast-60pct);
497
+ width: var(--lumo-icon-size-m);
498
+ height: var(--lumo-icon-size-m);
499
+ }
500
+
501
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
502
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
503
+ padding: 0.25em;
504
+ box-sizing: border-box !important;
505
+ }
506
+
507
+ /* Text align */
508
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
509
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
510
+ }
511
+
512
+ @-moz-document url-prefix() {
513
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
514
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
515
+ }
516
+ }
517
+
518
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
519
+ text-align: start;
520
+ --_lumo-text-field-overflow-mask-image: none;
521
+ }
522
+
523
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
524
+ text-align: center;
525
+ --_lumo-text-field-overflow-mask-image: none;
526
+ }
527
+
528
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
529
+ text-align: end;
530
+ --_lumo-text-field-overflow-mask-image: none;
531
+ }
532
+
533
+ @-moz-document url-prefix() {
534
+ /* Firefox is smart enough to align overflowing text to right */
535
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
536
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
537
+ }
538
+ }
539
+
540
+ @-moz-document url-prefix() {
541
+ /* Firefox is smart enough to align overflowing text to right */
542
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
543
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
544
+ }
545
+ }
546
+
547
+ /* RTL specific styles */
548
+ :host([dir='rtl'])::after {
549
+ transform-origin: 0% 0;
550
+ }
551
+
552
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
553
+ --_lumo-text-field-overflow-mask-image: none;
554
+ }
555
+
556
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
557
+ --_lumo-text-field-overflow-mask-image: none;
558
+ }
559
+
560
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
561
+ --_lumo-text-field-overflow-mask-image: none;
562
+ }
563
+
564
+ @-moz-document url-prefix() {
565
+ /* Firefox is smart enough to align overflowing text to right */
566
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
567
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
568
+ }
569
+ }
570
+
571
+ @-moz-document url-prefix() {
572
+ /* Firefox is smart enough to align overflowing text to right */
573
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
574
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
575
+ }
576
+ }
577
+ `,{moduleId:"lumo-input-container"});/**
578
+ @license
579
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
580
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
581
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
582
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
583
+ Code distributed by Google as part of the polymer project is also
584
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
585
+ */window.JSCompiler_renameProperty=function(i,t){return i};/**
586
+ @license
587
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
588
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
589
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
590
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
591
+ Code distributed by Google as part of the polymer project is also
592
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
593
+ */let $r=/(url\()([^)]*)(\))/g,Rr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,nt,oe;function Ve(i,t){if(i&&Rr.test(i)||i==="//")return i;if(nt===void 0){nt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",nt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),nt)try{return new URL(i,t).href}catch(e){return i}return oe||(oe=document.implementation.createHTMLDocument("temp"),oe.base=oe.createElement("base"),oe.head.appendChild(oe.base),oe.anchor=oe.createElement("a"),oe.body.appendChild(oe.anchor)),oe.base.href=t,oe.anchor.href=i,oe.anchor.href||i}function Co(i,t){return i.replace($r,function(e,o,s,r){return o+"'"+Ve(s.replace(/["']/g,""),t)+"'"+r})}function Ao(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
594
+ @license
595
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
596
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
597
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
598
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
599
+ Code distributed by Google as part of the polymer project is also
600
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
601
+ */const Wi=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Hr=Wi&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Br=window.Polymer&&window.Polymer.rootPath||Ao(document.baseURI||window.location.href),gt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let yt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,jr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,qi=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ki=window.Polymer&&window.Polymer.legacyWarnings||!1,Yr=window.Polymer&&window.Polymer.syncInitialRender||!1,oo=window.Polymer&&window.Polymer.legacyUndefined||!1,Ur=window.Polymer&&window.Polymer.orderedComputed||!1,ii=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Vr=window.Polymer&&window.Polymer.fastDomIf||!1,si=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Wr=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
602
+ @license
603
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
604
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
605
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
606
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
607
+ Code distributed by Google as part of the polymer project is also
608
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
609
+ */let qr=0;const W=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=qr++;function o(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=i(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return o};/**
610
+ @license
611
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
612
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
613
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
614
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
615
+ Code distributed by Google as part of the polymer project is also
616
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
617
+ */let Po={},Gi={};function ri(i,t){Po[i]=Gi[i.toLowerCase()]=t}function ni(i){return Po[i]||Gi[i.toLowerCase()]}function Kr(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Ge extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=ni(t);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(t,e,o,s){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ve(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Ao(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(yt&&ni(t)!==void 0)throw ri(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,ri(t,this),Kr(this)}}}Ge.prototype.modules=Po;customElements.define("dom-module",Ge);/**
618
+ @license
619
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
620
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
621
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
622
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
623
+ Code distributed by Google as part of the polymer project is also
624
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
625
+ */const Gr="link[rel=import][type~=css]",Jr="include",ai="shady-unscoped";function Ji(i){return Ge.import(i)}function li(i){let t=i.body?i.body:i;const e=Co(t.textContent,i.baseURI),o=document.createElement("style");return o.textContent=e,o}function Xr(i){const t=i.trim().split(/\s+/),e=[];for(let o=0;o<t.length;o++)e.push(...Zr(t[o]));return e}function Zr(i){const t=Ji(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...Zi(t));const o=t.querySelector("template");o&&e.push(...Xi(o,t.assetpath)),t._styles=e}return t._styles}function Xi(i,t){if(!i._styles){const e=[],o=i.content.querySelectorAll("style");for(let s=0;s<o.length;s++){let r=o[s],n=r.getAttribute(Jr);n&&e.push(...Xr(n).filter(function(a,l,c){return c.indexOf(a)===l})),t&&(r.textContent=Co(r.textContent,t)),e.push(r)}i._styles=e}return i._styles}function Qr(i){let t=Ji(i);return t?Zi(t):[]}function Zi(i){const t=[],e=i.querySelectorAll(Gr);for(let o=0;o<e.length;o++){let s=e[o];if(s.import){const r=s.import,n=s.hasAttribute(ai);if(n&&!r._unscopedStyle){const a=li(r);a.setAttribute(ai,""),r._unscopedStyle=a}else r._style||(r._style=li(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
626
+ @license
627
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
628
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
629
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
630
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
631
+ Code distributed by Google as part of the polymer project is also
632
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
633
+ */const J=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
634
+ @license
635
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
636
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
637
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
638
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
639
+ Code distributed by Google as part of the polymer project is also
640
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
641
+ */function io(i){return i.indexOf(".")>=0}function Ae(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function Qi(i,t){return i.indexOf(t+".")===0}function Je(i,t){return t.indexOf(i+".")===0}function Xe(i,t,e){return t+e.slice(i.length)}function en(i,t){return i===t||Qi(i,t)||Je(i,t)}function Ye(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let o=i[e].toString().split(".");for(let s=0;s<o.length;s++)t.push(o[s])}return t.join(".")}else return i}function es(i){return Array.isArray(i)?Ye(i).split("."):i.toString().split(".")}function te(i,t,e){let o=i,s=es(t);for(let r=0;r<s.length;r++){if(!o)return;let n=s[r];o=o[n]}return e&&(e.path=s.join(".")),o}function ci(i,t,e){let o=i,s=es(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(o=o[a],!o)return}o[r]=e}else o[t]=e;return s.join(".")}/**
642
+ @license
643
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
644
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
645
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
646
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
647
+ Code distributed by Google as part of the polymer project is also
648
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
649
+ */const vt={},tn=/-[a-z]/g,on=/([A-Z])/g;function ts(i){return vt[i]||(vt[i]=i.indexOf("-")<0?i:i.replace(tn,t=>t[1].toUpperCase()))}function Ct(i){return vt[i]||(vt[i]=i.replace(on,"-$1").toLowerCase())}/**
650
+ @license
651
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
652
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
653
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
654
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
655
+ Code distributed by Google as part of the polymer project is also
656
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
657
+ */let sn=0,os=0,Te=[],rn=0,so=!1,is=document.createTextNode("");new window.MutationObserver(nn).observe(is,{characterData:!0});function nn(){so=!1;const i=Te.length;for(let t=0;t<i;t++){let e=Te[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}Te.splice(0,i),os+=i}const an={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},ss={run(i){return so||(so=!0,is.textContent=rn++),Te.push(i),sn++},cancel(i){const t=i-os;if(t>=0){if(!Te[t])throw new Error("invalid async handle: "+i);Te[t]=null}}};/**
658
+ @license
659
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
660
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
661
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
662
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
663
+ Code distributed by Google as part of the polymer project is also
664
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
665
+ */const ln=ss,rs=W(i=>{class t extends i{static createProperties(o){const s=this.prototype;for(let r in o)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,s){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,s))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[o];return s||(s=this.constructor.attributeNameForProperty(o),this.__dataAttributes[s]=o),s}_definePropertyAccessor(o,s){Object.defineProperty(this,o,{get(){return this.__data[o]},set:s?function(){}:function(r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,s){this._setPendingProperty(o,s)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,s,r){let n=this.__data[o],a=this._shouldPropertyChange(o,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=n),this.__data[o]=s,this.__dataPending[o]=s),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ln.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const o=this.__data,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(o,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,s,r)),this.__dataCounter--}_shouldPropertiesChange(o,s,r){return!!s}_propertiesChanged(o,s,r){}_shouldPropertyChange(o,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(o,s,r,n){s!==r&&this._attributeToProperty(o,r),super.attributeChangedCallback&&super.attributeChangedCallback(o,s,r,n)}_attributeToProperty(o,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[o]||o;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,s,r){this.__serializing=!0,r=arguments.length<3?this[o]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(o=J(o)),n===void 0?o.removeAttribute(r):o.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,s){switch(s){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return t});/**
666
+ @license
667
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
668
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
669
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
670
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
671
+ Code distributed by Google as part of the polymer project is also
672
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
673
+ */const ns={};let at=HTMLElement.prototype;for(;at;){let i=Object.getOwnPropertyNames(at);for(let t=0;t<i.length;t++)ns[i[t]]=!0;at=Object.getPrototypeOf(at)}const cn=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function un(i,t){if(!ns[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const dn=W(i=>{const t=rs(i);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(ts(s[r]))}static attributeNameForProperty(s){return Ct(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(cn(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){un(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
674
+ @license
675
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
676
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
677
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
678
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
679
+ Code distributed by Google as part of the polymer project is also
680
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
681
+ */const hn={"dom-if":!0,"dom-repeat":!0};let ui=!1,di=!1;function pn(){if(!ui){ui=!0;const i=document.createElement("textarea");i.placeholder="a",di=i.placeholder===i.textContent}return di}function mn(i){pn()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const fn=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,o)=>{const s=e.getAttribute(o);if(i&&o.startsWith("on-")){t.setAttribute(o,i.createScript(s,o));return}t.setAttribute(o,s)}})();function _n(i){let t=i.getAttribute("is");if(t&&hn[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];fn(i,e,o),e.removeAttribute(o)}}return i}function as(i,t){let e=t.parentInfo&&as(i,t.parentInfo);if(e){for(let o=e.firstChild,s=0;o;o=o.nextSibling)if(t.parentIndex===s++)return o}else return i}function gn(i,t,e,o){o.id&&(t[o.id]=e)}function yn(i,t,e){if(e.events&&e.events.length)for(let o=0,s=e.events,r;o<s.length&&(r=s[o]);o++)i._addMethodEventListenerToNode(t,r.name,r.value,i)}function vn(i,t,e,o){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=o)}function bn(i,t,e){return i=i._methodHost||i,function(s){i[e]?i[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const xn=W(i=>{class t extends i{static _parseTemplate(o,s){if(!o._templateInfo){let r=o._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,r,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,s,r){return this._parseTemplateNode(o.content,s,r)}static _parseTemplateNode(o,s,r){let n=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),mn(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(o,s,r){if(!(o.localName==="script"||o.localName==="style"))for(let n=o.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=_n(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,l=d.nextSibling,o.removeChild(d),d=l;if(s.stripWhiteSpace&&!n.textContent.trim()){o.removeChild(n);continue}}let c={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,c)&&(c.infoIndex=s.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(o,s,r){let n=o,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,s,r){let n=!1,a=Array.from(o.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(o,s,r,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(o,s,r,n,a){return n.slice(0,3)==="on-"?(o.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(o){let s=o._templateInfo;return s&&s.content||o.content}_stampTemplate(o,s){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),s=s||this.constructor._parseTemplate(o);let r=s.nodeInfoList,n=s.content||o.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let c=0,d=r.length,h;c<d&&(h=r[c]);c++){let p=l[c]=as(a,h);gn(this,a.$,p,h),vn(this,p,h,s),yn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(o,s,r,n){n=n||o;let a=bn(n,s,r);return this._addEventListenerToNode(o,s,a),a}_addEventListenerToNode(o,s,r){o.addEventListener(s,r)}_removeEventListenerFromNode(o,s,r){o.removeEventListener(s,r)}}return t});/**
682
+ * @fileoverview
683
+ * @suppress {checkPrototypalTypes}
684
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
685
+ * This code may only be used under the BSD style license found at
686
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
687
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
688
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
689
+ * Google as part of the polymer project is also subject to an additional IP
690
+ * rights grant found at http://polymer.github.io/PATENTS.txt
691
+ */let Ze=0;const Qe=[],M={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ls="__computeInfo",wn=/[A-Z]/;function $t(i,t,e){let o=i[t];if(!o)o=i[t]={};else if(!i.hasOwnProperty(t)&&(o=i[t]=Object.create(i[t]),e))for(let s in o){let r=o[s],n=o[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return o}function Ue(i,t,e,o,s,r){if(t){let n=!1;const a=Ze++;for(let l in e){let c=s?Ae(l):l,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||ko(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(i,l,e,o,m.info,s,r),n=!0)}return n}return!1}function En(i,t,e,o,s,r,n,a){let l=!1,c=n?Ae(o):o,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||ko(o,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(i,o,s,r,m.info,n,a),l=!0);return l}function ko(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&Qi(e,i))||!!(t.wildcard&&Je(e,i))}else return!0}function hi(i,t,e,o,s){let r=typeof s.method=="string"?i[s.method]:s.method,n=s.property;r?r.call(i,i.__data[n],o[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Sn(i,t,e,o,s){let r=i[M.NOTIFY],n,a=Ze++;for(let c in t)t[c]&&(r&&En(i,r,a,c,e,o,s)||s&&Cn(i,c,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Cn(i,t,e){let o=Ae(t);if(o!==t){let s=Ct(o)+"-changed";return cs(i,s,e[t],t),!0}return!1}function cs(i,t,e,o){let s={value:e,queueProperty:!0};o&&(s.path=o),J(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function An(i,t,e,o,s,r){let a=(r?Ae(t):t)!=t?t:null,l=a?te(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),cs(i,s.eventName,l,a)}function Pn(i,t,e,o,s){let r,n=i.detail,a=n&&n.path;a?(o=Xe(e,o,a),r=n&&n.value):r=i.currentTarget[e],r=s?!r:r,(!t[M.READ_ONLY]||!t[M.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function kn(i,t,e,o,s){let r=i.__data[t];gt&&(r=gt(r,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,r)}function Dn(i,t,e,o){let s=i[M.COMPUTE];if(s)if(Ur){Ze++;const r=Mn(i),n=[];for(let l in t)pi(l,s,n,r,o);let a;for(;a=n.shift();)us(i,"",t,e,a)&&pi(a.methodInfo,s,n,r,o);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let r=t;for(;Ue(i,s,r,e,o);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),r=i.__dataPending,i.__dataPending=null}}const Tn=(i,t,e)=>{let o=0,s=t.length-1,r=-1;for(;o<=s;){const n=o+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)o=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,i)},pi=(i,t,e,o,s)=>{const r=s?Ae(i):i,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Ze&&(!s||ko(i,l.trigger))&&(l.info.lastRun=Ze,Tn(l.info,e,o))}};function Mn(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[M.COMPUTE];let{counts:o,ready:s,total:r}=On(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--o[c]===0&&s.push(c)})}r!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function On(i){const t=i[ls],e={},o=i[M.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function us(i,t,e,o,s){let r=ro(i,t,e,o,s);if(r===Qe)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,r,!0):(i[n]=r,!1)}function zn(i,t,e){let o=i.__dataLinkedPaths;if(o){let s;for(let r in o){let n=o[r];Je(r,t)?(s=Xe(r,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):Je(n,t)&&(s=Xe(n,r,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function Rt(i,t,e,o,s,r,n){e.bindings=e.bindings||[];let a={kind:o,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),$n(a)){let{event:c,negate:d}=a.parts[0];a.listenerEvent=c||Ct(s)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let d=a.parts[c];d.compoundIndex=c,In(i,t,a,d,l)}}function In(i,t,e,o,s){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=o.dependencies,n={index:s,binding:e,part:o,evaluator:i};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=hs(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Nn,info:n,trigger:l})}}}function Nn(i,t,e,o,s,r,n){let a=n[s.index],l=s.binding,c=s.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=Xe(c.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&i._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(i,c,t,e,o,r);d!==Qe&&Fn(i,a,l,c,d)}}function Fn(i,t,e,o,s){if(s=Ln(t,s,e,o),gt&&(s=gt(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[M.READ_ONLY]||!t[M.READ_ONLY][r])&&t._setPendingProperty(r,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,r,s)}}function Ln(i,t,e,o){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[o.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function $n(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Rn(i,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let s=0;s<o.length;s++){let r=o[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Hn(n,c),Bn(n,i,c)}n.__dataHost=i}}function Hn(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),o=t.parts,s=new Array(o.length);for(let n=0;n<o.length;n++)s[n]=o[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(i=J(i)),i[r]=t.literal)}}function Bn(i,t,e){if(e.listenerEvent){let o=e.parts[0];i.addEventListener(e.listenerEvent,function(s){Pn(s,t,e.target,o.source,o.negate)})}}function mi(i,t,e,o,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return r&&i._addPropertyEffect(t.methodName,e,{fn:o,info:n}),n}function ro(i,t,e,o,s){let r=i._methodHost||i,n=r[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===Qe?Qe:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const jn=[],ds="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Yn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Un="(?:'(?:[^'\\\\]|\\\\.)*')",Vn='(?:"(?:[^"\\\\]|\\\\.)*")',Wn="(?:"+Un+"|"+Vn+")",fi="(?:("+ds+"|"+Yn+"|"+Wn+")\\s*)",qn="(?:"+fi+"(?:,\\s*"+fi+")*)",Kn="(?:\\(\\s*(?:"+qn+"?)\\)\\s*)",Gn="("+ds+"\\s*"+Kn+"?)",Jn="(\\[\\[|{{)\\s*",Xn="(?:]]|}})",Zn="(?:(!)\\s*)?",Qn=Jn+Zn+Gn+Xn,_i=new RegExp(Qn,"g");function gi(i){let t="";for(let e=0;e<i.length;e++){let o=i[e].literal;t+=o||""}return t}function Ht(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:jn};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return ea(s,o)}else return o}return null}function ea(i,t){return t.args=i.map(function(e){let o=hs(e);return o.literal||(t.static=!1),o},this),t}function hs(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Ae(t),e.structured=io(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function yi(i,t,e){let o=te(i,e);return o===void 0&&(o=t[e]),o}function ps(i,t,e,o){const s={indexSplices:o};oo&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),oo&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function Re(i,t,e,o,s,r){ps(i,t,e,[{index:o,addedCount:s,removed:r,object:t,type:"splice"}])}function ta(i){return i[0].toUpperCase()+i.substring(1)}const Do=W(i=>{const t=xn(dn(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return M}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(He.length){let s=He[He.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[M.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==M.READ_ONLY);let a=$t(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=$t(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,M.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,M.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,M.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,M.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Ae(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=te(this,s);if(s=ci(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return zn(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=J(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&io(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[M.NOTIFY]&&this[M.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[M.READ_ONLY]||!this[M.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Dn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ue(this,this[M.REFLECT],r,n,a),Ue(this,this[M.OBSERVE],r,n,a),l&&Sn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[M.PROPAGATE]&&Ue(this,this[M.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(c,d)=>{Ue(this,s.propertyEffects,c,n,d,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,d)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=Ye(s),r=Ye(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=Ye(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=te(this,s,n);ps(this,a,n.path,r)}get(s,r){return te(r||this,s)}set(s,r,n){n?ci(n,s,r):(!this[M.READ_ONLY]||!this[M.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=te(this,s,n),l=a.length,c=a.push(...r);return r.length&&Re(this,a,n.path,l,r.length,[]),c}pop(s){let r={path:""},n=te(this,s,r),a=!!n.length,l=n.pop();return a&&Re(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},c=te(this,s,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=c.splice(r):d=c.splice(r,n,...a),(a.length||d.length)&&Re(this,c,l.path,r,a.length,d),d}shift(s){let r={path:""},n=te(this,s,r),a=!!n.length,l=n.shift();return a&&Re(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=te(this,s,n),l=a.unshift(...r);return r.length&&Re(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=te(this,s,a),n=a.path}else Array.isArray(s)?n=Ye(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,M.READ_ONLY),r&&(this["_set"+ta(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,M.OBSERVE,{fn:hi,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,M.OBSERVE,{fn:hi,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Ht(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");mi(this,n,M.OBSERVE,ro,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,M.NOTIFY,{fn:An,info:{eventName:Ct(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,M.REFLECT,{fn:kn,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Ht(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=mi(this,a,M.COMPUTE,us,s,n);$t(this,ls)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let c=0,d=s.length;c<d;c++){let{name:h,structured:p,wildcard:m,value:y,literal:P}=s[c];if(!P)if(m){const O=Je(h,r),N=yi(a,n,O?r:h);y={path:O?r:h,value:N,base:O?te(a,h):N}}else y=p?yi(a,n,h):a[h];if(oo&&!this._overrideLegacyUndefined&&y===void 0&&s.length>1)return Qe;l[c]=y}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),He.push(this);let n=super._stampTemplate(s,r);if(He.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,Rn(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let d=0;d<c.length;d++){let h=c[d];J(J(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=gi(l)||" ",Rt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let c=this._parseBindings(l,r);if(c){let d=a,h="property";wn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=gi(c);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),h==="property"&&(a=ts(a)),Rt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,c=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";ii&&(d||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(Vr&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),ii||(n.parentInfo.noted=!0));else{let m="{";for(let y in p){let P=[{mode:m,source:y,dependencies:[y],hostProp:!0}];Rt(this,r,n,"property","_host_"+y,P)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=_i.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let c=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,m="",y=-1;c=="{"&&(y=h.indexOf("::"))>0&&(m=h.substring(y+2),h=h.substring(0,y),p=!0);let P=Ht(h),O=[];if(P){let{args:N,methodName:F}=P;for(let V=0;V<N.length;V++){let U=N[V];U.literal||O.push(U)}let Y=r.dynamicFns;(Y&&Y[F]||P.static)&&(O.push(F),P.dynamicFn=!0)}else O.push(h);n.push({source:h,mode:c,negate:d,customEvent:p,signature:P,dependencies:O,event:m}),a=_i.lastIndex}if(a&&a<s.length){let c=s.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,c){let d;return r.signature?d=ro(s,n,a,l,r.signature):n!=r.source?d=te(s,r.source):c&&io(n)?d=te(s,n):d=s.__data[n],r.negate&&(d=!d),d}}return e}),He=[];/**
692
+ @license
693
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
694
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
695
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
696
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
697
+ Code distributed by Google as part of the polymer project is also
698
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
699
+ *//**
700
+ @license
701
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
702
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
703
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
704
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
705
+ Code distributed by Google as part of the polymer project is also
706
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
707
+ */function oa(i){const t={};for(let e in i){const o=i[e];t[e]=typeof o=="function"?{type:o}:o}return t}const ia=W(i=>{const t=rs(i);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function o(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=oa(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=o(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,o(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
708
+ * @fileoverview
709
+ * @suppress {checkPrototypalTypes}
710
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
711
+ * This code may only be used under the BSD style license found at
712
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
713
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
714
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
715
+ * Google as part of the polymer project is also subject to an additional IP
716
+ * rights grant found at http://polymer.github.io/PATENTS.txt
717
+ */const sa="3.5.2",vi=window.ShadyCSS&&window.ShadyCSS.cssBuild,ra=W(i=>{const t=ia(Do(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let d in c){let h=c[d];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=h)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,c,d,h){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,d.computed,h)),d.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):d.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),d.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):d.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),d.observer&&l._createPropertyObserver(c,d.observer,h[d.observer]),l._addPropertyToAttributeMap(c)}function r(l,c,d,h){if(!vi){const p=c.content.querySelectorAll("style"),m=Xi(c),y=Qr(d),P=c.content.firstElementChild;for(let N=0;N<y.length;N++){let F=y[N];F.textContent=l._processStyleText(F.textContent,h),c.content.insertBefore(F,P)}let O=0;for(let N=0;N<m.length;N++){let F=m[N],Y=p[O];Y!==F?(F=F.cloneNode(!0),Y.parentNode.insertBefore(F,Y)):O++,F.textContent=l._processStyleText(F.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,d),Wr&&vi&&Hr){const p=c.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(y=>{m+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let c=null;if(l&&(!yt||jr)&&(c=Ge.import(l,"template"),yt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return sa}static _finalizeClass(){t._finalizeClass.call(this);const c=o(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):qi||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let d in c)s(this.prototype,d,c[d],c)}static createObservers(c,d){const h=this.prototype;for(let p=0;p<c.length;p++)h._createMethodObserver(c[p],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=Ao(c.url);else{const d=Ge.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Br,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let d in c){let h=c[d];if(this._canApplyPropertyDefault(d)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,d){return Co(c,d)}static _finalizeTemplate(c){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const h=this.importPath,p=h?Ve(h):"";r(this,d,c,p),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(c){const d=J(this);if(d.attachShadow)return c?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:c}),d.shadowRoot.appendChild(c),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Yr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,d){return!d&&this.importPath&&(d=Ve(this.importPath)),Ve(c,d)}static _parseTemplateContent(c,d,h){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,d,h)}static _addTemplatePropertyEffect(c,d,h){return Ki&&!(d in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,d,h)}}return a});/**
718
+ @license
719
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
720
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
721
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
722
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
723
+ Code distributed by Google as part of the polymer project is also
724
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
725
+ */const bi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class ms{constructor(t,e){_s(t,e);const o=e.reduce((s,r,n)=>s+fs(r)+t[n+1],t[0]);this.value=o.toString()}toString(){return this.value}}function fs(i){if(i instanceof ms)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function na(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof ms)return fs(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const Pe=function(t,...e){_s(t,e);const o=document.createElement("template");let s=e.reduce((r,n,a)=>r+na(n)+t[a+1],t[0]);return bi&&(s=bi.createHTML(s)),o.innerHTML=s,o},_s=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
726
+ @license
727
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
728
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
729
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
730
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
731
+ Code distributed by Google as part of the polymer project is also
732
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
733
+ */const _e=ra(HTMLElement);/**
734
+ * @license
735
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
736
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
737
+ */const de=[];function no(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function ao(){return document.documentElement.getAttribute("dir")}function aa(){const i=ao();de.forEach(t=>{no(t,i)})}const la=new MutationObserver(aa);la.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const At=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),no(this,ao(),null))}attributeChangedCallback(e,o,s){if(super.attributeChangedCallback(e,o,s),e!=="dir")return;const r=ao(),n=s===r&&de.indexOf(this)===-1,a=!s&&o&&de.indexOf(this)===-1;n||a?(this.__subscribe(),no(this,r,s)):s!==r&&o===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=de.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,o,s){s==="dir"&&o===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,o,s)}_attributeToProperty(e,o,s){e==="dir"&&!o?this.dir="":super._attributeToProperty(e,o,s)}__subscribe(){de.includes(this)||de.push(this)}__unsubscribe(){de.includes(this)&&de.splice(de.indexOf(this),1)}};/**
738
+ * @license
739
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
740
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
741
+ */class ca extends Ce(At(_e)){static get is(){return"vaadin-input-container"}static get template(){return Pe`
742
+ <style>
743
+ :host {
744
+ display: flex;
745
+ align-items: center;
746
+ flex: 0 1 auto;
747
+ border-radius:
748
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
749
+ var(--vaadin-input-field-top-start-radius, var(--__border-radius))
750
+ var(--vaadin-input-field-top-end-radius, var(--__border-radius))
751
+ var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
752
+ var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
753
+ --_border-radius: var(--vaadin-input-field-border-radius, 0px);
754
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
755
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
756
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
757
+ }
758
+
759
+ :host([dir='rtl']) {
760
+ border-radius:
761
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
762
+ var(--vaadin-input-field-top-end-radius, var(--_border-radius))
763
+ var(--vaadin-input-field-top-start-radius, var(--_border-radius))
764
+ var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
765
+ var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
766
+ }
767
+
768
+ :host([hidden]) {
769
+ display: none !important;
770
+ }
771
+
772
+ /* Reset the native input styles */
773
+ ::slotted(input) {
774
+ -webkit-appearance: none;
775
+ -moz-appearance: none;
776
+ flex: auto;
777
+ white-space: nowrap;
778
+ overflow: hidden;
779
+ width: 100%;
780
+ height: 100%;
781
+ outline: none;
782
+ margin: 0;
783
+ padding: 0;
784
+ border: 0;
785
+ border-radius: 0;
786
+ min-width: 0;
787
+ font: inherit;
788
+ line-height: normal;
789
+ color: inherit;
790
+ background-color: transparent;
791
+ /* Disable default invalid style in Firefox */
792
+ box-shadow: none;
793
+ }
794
+
795
+ ::slotted(*) {
796
+ flex: none;
797
+ }
798
+
799
+ ::slotted(:is(input, textarea))::placeholder {
800
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
801
+ /* because ::slotted(...)::placeholder does not work in Safari. */
802
+ font: inherit;
803
+ color: inherit;
804
+ /* Override default opacity in Firefox */
805
+ opacity: 1;
806
+ }
807
+ </style>
808
+ <slot name="prefix"></slot>
809
+ <slot></slot>
810
+ <slot name="suffix"></slot>
811
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}ae(ca);/**
812
+ * @license
813
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
814
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
815
+ */let ua=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};ae(ua);const Fe=(i,...t)=>{So(`lumo-${i}`,t)};/**
816
+ * @license
817
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
818
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
819
+ */const da=S`
820
+ :host {
821
+ --lumo-size-xs: 1.625rem;
822
+ --lumo-size-s: 1.875rem;
823
+ --lumo-size-m: 2.25rem;
824
+ --lumo-size-l: 2.75rem;
825
+ --lumo-size-xl: 3.5rem;
826
+
827
+ /* Icons */
828
+ --lumo-icon-size-s: 1.25em;
829
+ --lumo-icon-size-m: 1.5em;
830
+ --lumo-icon-size-l: 2.25em;
831
+ /* For backwards compatibility */
832
+ --lumo-icon-size: var(--lumo-icon-size-m);
833
+ }
834
+ `;Fe("sizing-props",da);/**
835
+ * @license
836
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
837
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
838
+ */const ha=S`
839
+ :host {
840
+ /* Square */
841
+ --lumo-space-xs: 0.25rem;
842
+ --lumo-space-s: 0.5rem;
843
+ --lumo-space-m: 1rem;
844
+ --lumo-space-l: 1.5rem;
845
+ --lumo-space-xl: 2.5rem;
846
+
847
+ /* Wide */
848
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
849
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
850
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
851
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
852
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
853
+
854
+ /* Tall */
855
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
856
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
857
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
858
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
859
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
860
+ }
861
+ `;Fe("spacing-props",ha);/**
862
+ * @license
863
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
864
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
865
+ */const pa=S`
866
+ :host {
867
+ /* Border radius */
868
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
869
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
870
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
871
+
872
+ /* Shadow */
873
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
874
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
875
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
876
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
877
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
878
+
879
+ /* Clickable element cursor */
880
+ --lumo-clickable-cursor: default;
881
+ }
882
+ `;S`
883
+ html {
884
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
885
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
886
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
887
+ }
888
+ `;Fe("style-props",pa);/**
889
+ * @license
890
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
891
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
892
+ */const ma=S`
893
+ :host {
894
+ /* Base (background) */
895
+ --lumo-base-color: #fff;
896
+
897
+ /* Tint */
898
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
899
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
900
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
901
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
902
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
903
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
904
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
905
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
906
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
907
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
908
+ --lumo-tint: #fff;
909
+
910
+ /* Shade */
911
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
912
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
913
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
914
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
915
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
916
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
917
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
918
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
919
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
920
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
921
+ --lumo-shade: hsl(214, 35%, 15%);
922
+
923
+ /* Contrast */
924
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
925
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
926
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
927
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
928
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
929
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
930
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
931
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
932
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
933
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
934
+ --lumo-contrast: var(--lumo-shade);
935
+
936
+ /* Text */
937
+ --lumo-header-text-color: var(--lumo-contrast);
938
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
939
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
940
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
941
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
942
+
943
+ /* Primary */
944
+ --lumo-primary-color: hsl(214, 100%, 48%);
945
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
946
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
947
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
948
+ --lumo-primary-contrast-color: #fff;
949
+
950
+ /* Error */
951
+ --lumo-error-color: hsl(3, 85%, 48%);
952
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
953
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
954
+ --lumo-error-text-color: hsl(3, 89%, 42%);
955
+ --lumo-error-contrast-color: #fff;
956
+
957
+ /* Success */
958
+ --lumo-success-color: hsl(145, 72%, 30%);
959
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
960
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
961
+ --lumo-success-text-color: hsl(145, 85%, 25%);
962
+ --lumo-success-contrast-color: #fff;
963
+
964
+ /* Warning */
965
+ --lumo-warning-color: hsl(48, 100%, 50%);
966
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
967
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
968
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
969
+ }
970
+
971
+ /* forced-colors mode adjustments */
972
+ @media (forced-colors: active) {
973
+ html {
974
+ --lumo-disabled-text-color: GrayText;
975
+ }
976
+ }
977
+ `;Fe("color-props",ma);const fa=S`
978
+ [theme~='dark'] {
979
+ /* Base (background) */
980
+ --lumo-base-color: hsl(214, 35%, 21%);
981
+
982
+ /* Tint */
983
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
984
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
985
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
986
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
987
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
988
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
989
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
990
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
991
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
992
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
993
+ --lumo-tint: hsl(214, 100%, 98%);
994
+
995
+ /* Shade */
996
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
997
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
998
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
999
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1000
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1001
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1002
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1003
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1004
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1005
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1006
+ --lumo-shade: hsl(214, 33%, 13%);
1007
+
1008
+ /* Contrast */
1009
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
1010
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
1011
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
1012
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
1013
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
1014
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
1015
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
1016
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
1017
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
1018
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
1019
+ --lumo-contrast: var(--lumo-tint);
1020
+
1021
+ /* Text */
1022
+ --lumo-header-text-color: var(--lumo-contrast);
1023
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1024
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1025
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1026
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1027
+
1028
+ /* Primary */
1029
+ --lumo-primary-color: hsl(214, 90%, 48%);
1030
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1031
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1032
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
1033
+ --lumo-primary-contrast-color: #fff;
1034
+
1035
+ /* Error */
1036
+ --lumo-error-color: hsl(3, 79%, 49%);
1037
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1038
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1039
+ --lumo-error-text-color: hsl(3, 100%, 80%);
1040
+
1041
+ /* Success */
1042
+ --lumo-success-color: hsl(145, 72%, 30%);
1043
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1044
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1045
+ --lumo-success-text-color: hsl(145, 85%, 46%);
1046
+
1047
+ /* Warning */
1048
+ --lumo-warning-color: hsl(43, 100%, 48%);
1049
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1050
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
1051
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1052
+ }
1053
+
1054
+ html {
1055
+ color: var(--lumo-body-text-color);
1056
+ background-color: var(--lumo-base-color);
1057
+ color-scheme: light;
1058
+ }
1059
+
1060
+ [theme~='dark'] {
1061
+ color: var(--lumo-body-text-color);
1062
+ background-color: var(--lumo-base-color);
1063
+ color-scheme: dark;
1064
+ }
1065
+
1066
+ h1,
1067
+ h2,
1068
+ h3,
1069
+ h4,
1070
+ h5,
1071
+ h6 {
1072
+ color: var(--lumo-header-text-color);
1073
+ }
1074
+
1075
+ a:where(:any-link) {
1076
+ color: var(--lumo-primary-text-color);
1077
+ }
1078
+
1079
+ a:not(:any-link) {
1080
+ color: var(--lumo-disabled-text-color);
1081
+ }
1082
+
1083
+ blockquote {
1084
+ color: var(--lumo-secondary-text-color);
1085
+ }
1086
+
1087
+ code,
1088
+ pre {
1089
+ background-color: var(--lumo-contrast-10pct);
1090
+ border-radius: var(--lumo-border-radius-m);
1091
+ }
1092
+ `;R("",fa,{moduleId:"lumo-color"});/**
1093
+ * @license
1094
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1095
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1096
+ */const _a=S`
1097
+ :host {
1098
+ /* prettier-ignore */
1099
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1100
+
1101
+ /* Font sizes */
1102
+ --lumo-font-size-xxs: 0.75rem;
1103
+ --lumo-font-size-xs: 0.8125rem;
1104
+ --lumo-font-size-s: 0.875rem;
1105
+ --lumo-font-size-m: 1rem;
1106
+ --lumo-font-size-l: 1.125rem;
1107
+ --lumo-font-size-xl: 1.375rem;
1108
+ --lumo-font-size-xxl: 1.75rem;
1109
+ --lumo-font-size-xxxl: 2.5rem;
1110
+
1111
+ /* Line heights */
1112
+ --lumo-line-height-xs: 1.25;
1113
+ --lumo-line-height-s: 1.375;
1114
+ --lumo-line-height-m: 1.625;
1115
+ }
1116
+ `,ga=S`
1117
+ body,
1118
+ :host {
1119
+ font-family: var(--lumo-font-family);
1120
+ font-size: var(--lumo-font-size-m);
1121
+ line-height: var(--lumo-line-height-m);
1122
+ -webkit-text-size-adjust: 100%;
1123
+ -webkit-font-smoothing: antialiased;
1124
+ -moz-osx-font-smoothing: grayscale;
1125
+ }
1126
+
1127
+ small,
1128
+ [theme~='font-size-s'] {
1129
+ font-size: var(--lumo-font-size-s);
1130
+ line-height: var(--lumo-line-height-s);
1131
+ }
1132
+
1133
+ [theme~='font-size-xs'] {
1134
+ font-size: var(--lumo-font-size-xs);
1135
+ line-height: var(--lumo-line-height-xs);
1136
+ }
1137
+
1138
+ :where(h1, h2, h3, h4, h5, h6) {
1139
+ font-weight: 600;
1140
+ line-height: var(--lumo-line-height-xs);
1141
+ margin-block: 0;
1142
+ }
1143
+
1144
+ :where(h1) {
1145
+ font-size: var(--lumo-font-size-xxxl);
1146
+ }
1147
+
1148
+ :where(h2) {
1149
+ font-size: var(--lumo-font-size-xxl);
1150
+ }
1151
+
1152
+ :where(h3) {
1153
+ font-size: var(--lumo-font-size-xl);
1154
+ }
1155
+
1156
+ :where(h4) {
1157
+ font-size: var(--lumo-font-size-l);
1158
+ }
1159
+
1160
+ :where(h5) {
1161
+ font-size: var(--lumo-font-size-m);
1162
+ }
1163
+
1164
+ :where(h6) {
1165
+ font-size: var(--lumo-font-size-xs);
1166
+ text-transform: uppercase;
1167
+ letter-spacing: 0.03em;
1168
+ }
1169
+
1170
+ p,
1171
+ blockquote {
1172
+ margin-top: 0.5em;
1173
+ margin-bottom: 0.75em;
1174
+ }
1175
+
1176
+ a {
1177
+ text-decoration: none;
1178
+ }
1179
+
1180
+ a:where(:any-link):hover {
1181
+ text-decoration: underline;
1182
+ }
1183
+
1184
+ hr {
1185
+ display: block;
1186
+ align-self: stretch;
1187
+ height: 1px;
1188
+ border: 0;
1189
+ padding: 0;
1190
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1191
+ background-color: var(--lumo-contrast-10pct);
1192
+ }
1193
+
1194
+ blockquote {
1195
+ border-left: 2px solid var(--lumo-contrast-30pct);
1196
+ }
1197
+
1198
+ b,
1199
+ strong {
1200
+ font-weight: 600;
1201
+ }
1202
+
1203
+ /* RTL specific styles */
1204
+ blockquote[dir='rtl'] {
1205
+ border-left: none;
1206
+ border-right: 2px solid var(--lumo-contrast-30pct);
1207
+ }
1208
+ `;R("",ga,{moduleId:"lumo-typography"});Fe("typography-props",_a);/**
1209
+ * @license
1210
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1211
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1212
+ */const gs=S`
1213
+ :host {
1214
+ top: var(--lumo-space-m);
1215
+ right: var(--lumo-space-m);
1216
+ bottom: var(--lumo-space-m);
1217
+ left: var(--lumo-space-m);
1218
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
1219
+ /* stylelint-disable-next-line */
1220
+ outline: 0px solid transparent;
1221
+ }
1222
+
1223
+ [part='overlay'] {
1224
+ background-color: var(--lumo-base-color);
1225
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1226
+ border-radius: var(--lumo-border-radius-m);
1227
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
1228
+ color: var(--lumo-body-text-color);
1229
+ font-family: var(--lumo-font-family);
1230
+ font-size: var(--lumo-font-size-m);
1231
+ font-weight: 400;
1232
+ line-height: var(--lumo-line-height-m);
1233
+ letter-spacing: 0;
1234
+ text-transform: none;
1235
+ -webkit-text-size-adjust: 100%;
1236
+ -webkit-font-smoothing: antialiased;
1237
+ -moz-osx-font-smoothing: grayscale;
1238
+ }
1239
+
1240
+ [part='content'] {
1241
+ padding: var(--lumo-space-xs);
1242
+ }
1243
+
1244
+ [part='backdrop'] {
1245
+ background-color: var(--lumo-shade-20pct);
1246
+ animation: 0.2s lumo-overlay-backdrop-enter both;
1247
+ will-change: opacity;
1248
+ }
1249
+
1250
+ @keyframes lumo-overlay-backdrop-enter {
1251
+ 0% {
1252
+ opacity: 0;
1253
+ }
1254
+ }
1255
+
1256
+ :host([closing]) [part='backdrop'] {
1257
+ animation: 0.2s lumo-overlay-backdrop-exit both;
1258
+ }
1259
+
1260
+ @keyframes lumo-overlay-backdrop-exit {
1261
+ 100% {
1262
+ opacity: 0;
1263
+ }
1264
+ }
1265
+
1266
+ @keyframes lumo-overlay-dummy-animation {
1267
+ 0% {
1268
+ opacity: 1;
1269
+ }
1270
+
1271
+ 100% {
1272
+ opacity: 1;
1273
+ }
1274
+ }
1275
+ `;R("",gs,{moduleId:"lumo-overlay"});/**
1276
+ * @license
1277
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1278
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1279
+ */const ys=S`
1280
+ :host([opening]),
1281
+ :host([closing]) {
1282
+ animation: 0.14s lumo-overlay-dummy-animation;
1283
+ }
1284
+
1285
+ [part='overlay'] {
1286
+ will-change: opacity, transform;
1287
+ }
1288
+
1289
+ :host([opening]) [part='overlay'] {
1290
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
1291
+ }
1292
+
1293
+ @keyframes lumo-menu-overlay-enter {
1294
+ 0% {
1295
+ opacity: 0;
1296
+ transform: translateY(-4px);
1297
+ }
1298
+ }
1299
+
1300
+ :host([closing]) [part='overlay'] {
1301
+ animation: 0.1s lumo-menu-overlay-exit both;
1302
+ }
1303
+
1304
+ @keyframes lumo-menu-overlay-exit {
1305
+ 100% {
1306
+ opacity: 0;
1307
+ }
1308
+ }
1309
+ `;R("",ys,{moduleId:"lumo-menu-overlay-core"});const ya=S`
1310
+ /* Small viewport (bottom sheet) styles */
1311
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
1312
+ @media (max-width: 420px), (max-height: 420px) {
1313
+ :host {
1314
+ top: 0 !important;
1315
+ right: 0 !important;
1316
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
1317
+ left: 0 !important;
1318
+ align-items: stretch !important;
1319
+ justify-content: flex-end !important;
1320
+ }
1321
+
1322
+ [part='overlay'] {
1323
+ max-height: 50vh;
1324
+ width: 100vw;
1325
+ border-radius: 0;
1326
+ box-shadow: var(--lumo-box-shadow-xl);
1327
+ }
1328
+
1329
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
1330
+ [part='content'] {
1331
+ padding: 30px var(--lumo-space-m);
1332
+ max-height: inherit;
1333
+ box-sizing: border-box;
1334
+ -webkit-overflow-scrolling: touch;
1335
+ overflow: auto;
1336
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1337
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1338
+ }
1339
+
1340
+ [part='backdrop'] {
1341
+ display: block;
1342
+ }
1343
+
1344
+ /* Animations */
1345
+
1346
+ :host([opening]) [part='overlay'] {
1347
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
1348
+ }
1349
+
1350
+ :host([closing]),
1351
+ :host([closing]) [part='backdrop'] {
1352
+ animation-delay: 0.14s;
1353
+ }
1354
+
1355
+ :host([closing]) [part='overlay'] {
1356
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
1357
+ }
1358
+ }
1359
+
1360
+ @keyframes lumo-mobile-menu-overlay-enter {
1361
+ 0% {
1362
+ transform: translateY(150%);
1363
+ }
1364
+ }
1365
+
1366
+ @keyframes lumo-mobile-menu-overlay-exit {
1367
+ 100% {
1368
+ transform: translateY(150%);
1369
+ }
1370
+ }
1371
+ `,vs=[gs,ys,ya];R("",vs,{moduleId:"lumo-menu-overlay"});const va=S`
1372
+ [part='overlay'] {
1373
+ /*
1374
+ Width:
1375
+ date cell widths
1376
+ + month calendar side padding
1377
+ + year scroller width
1378
+ */
1379
+ /* prettier-ignore */
1380
+ width:
1381
+ calc(
1382
+ var(--lumo-size-m) * 7
1383
+ + var(--lumo-space-xs) * 2
1384
+ + 57px
1385
+ );
1386
+ height: 100%;
1387
+ max-height: calc(var(--lumo-size-m) * 14);
1388
+ overflow: hidden;
1389
+ -webkit-tap-highlight-color: transparent;
1390
+ }
1391
+
1392
+ [part='overlay'] {
1393
+ flex-direction: column;
1394
+ }
1395
+
1396
+ [part='content'] {
1397
+ padding: 0;
1398
+ height: 100%;
1399
+ overflow: hidden;
1400
+ -webkit-mask-image: none;
1401
+ mask-image: none;
1402
+ }
1403
+
1404
+ :host([top-aligned]) [part~='overlay'] {
1405
+ margin-top: var(--lumo-space-xs);
1406
+ }
1407
+
1408
+ :host([bottom-aligned]) [part~='overlay'] {
1409
+ margin-bottom: var(--lumo-space-xs);
1410
+ }
1411
+
1412
+ @media (max-width: 420px), (max-height: 420px) {
1413
+ [part='overlay'] {
1414
+ width: 100vw;
1415
+ height: 70vh;
1416
+ max-height: 70vh;
1417
+ }
1418
+ }
1419
+ `;R("vaadin-date-picker-overlay",[vs,va],{moduleId:"lumo-date-picker-overlay"});/**
1420
+ * @license
1421
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1422
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1423
+ */class ba extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}ae(ba);const st=(i,...t)=>{So(`lumo-${i}`,t)};/**
1424
+ * @license
1425
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1426
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1427
+ */const xa=S`
1428
+ :host {
1429
+ /* Base (background) */
1430
+ --lumo-base-color: #fff;
1431
+
1432
+ /* Tint */
1433
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
1434
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
1435
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
1436
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
1437
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
1438
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
1439
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
1440
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
1441
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
1442
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
1443
+ --lumo-tint: #fff;
1444
+
1445
+ /* Shade */
1446
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
1447
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
1448
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
1449
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
1450
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
1451
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
1452
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
1453
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
1454
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
1455
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
1456
+ --lumo-shade: hsl(214, 35%, 15%);
1457
+
1458
+ /* Contrast */
1459
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
1460
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
1461
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
1462
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
1463
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
1464
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
1465
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
1466
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
1467
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
1468
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
1469
+ --lumo-contrast: var(--lumo-shade);
1470
+
1471
+ /* Text */
1472
+ --lumo-header-text-color: var(--lumo-contrast);
1473
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1474
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1475
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1476
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1477
+
1478
+ /* Primary */
1479
+ --lumo-primary-color: hsl(214, 100%, 48%);
1480
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
1481
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
1482
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
1483
+ --lumo-primary-contrast-color: #fff;
1484
+
1485
+ /* Error */
1486
+ --lumo-error-color: hsl(3, 85%, 48%);
1487
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
1488
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
1489
+ --lumo-error-text-color: hsl(3, 89%, 42%);
1490
+ --lumo-error-contrast-color: #fff;
1491
+
1492
+ /* Success */
1493
+ --lumo-success-color: hsl(145, 72%, 30%);
1494
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
1495
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
1496
+ --lumo-success-text-color: hsl(145, 85%, 25%);
1497
+ --lumo-success-contrast-color: #fff;
1498
+
1499
+ /* Warning */
1500
+ --lumo-warning-color: hsl(48, 100%, 50%);
1501
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
1502
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
1503
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1504
+ }
1505
+
1506
+ /* forced-colors mode adjustments */
1507
+ @media (forced-colors: active) {
1508
+ html {
1509
+ --lumo-disabled-text-color: GrayText;
1510
+ }
1511
+ }
1512
+ `;st("color-props",xa);const wa=S`
1513
+ [theme~='dark'] {
1514
+ /* Base (background) */
1515
+ --lumo-base-color: hsl(214, 35%, 21%);
1516
+
1517
+ /* Tint */
1518
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
1519
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
1520
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
1521
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
1522
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
1523
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
1524
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
1525
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
1526
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
1527
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
1528
+ --lumo-tint: hsl(214, 100%, 98%);
1529
+
1530
+ /* Shade */
1531
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1532
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1533
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1534
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1535
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1536
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1537
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1538
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1539
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1540
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1541
+ --lumo-shade: hsl(214, 33%, 13%);
1542
+
1543
+ /* Contrast */
1544
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
1545
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
1546
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
1547
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
1548
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
1549
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
1550
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
1551
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
1552
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
1553
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
1554
+ --lumo-contrast: var(--lumo-tint);
1555
+
1556
+ /* Text */
1557
+ --lumo-header-text-color: var(--lumo-contrast);
1558
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1559
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1560
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1561
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1562
+
1563
+ /* Primary */
1564
+ --lumo-primary-color: hsl(214, 90%, 48%);
1565
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1566
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1567
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
1568
+ --lumo-primary-contrast-color: #fff;
1569
+
1570
+ /* Error */
1571
+ --lumo-error-color: hsl(3, 79%, 49%);
1572
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1573
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1574
+ --lumo-error-text-color: hsl(3, 100%, 80%);
1575
+
1576
+ /* Success */
1577
+ --lumo-success-color: hsl(145, 72%, 30%);
1578
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1579
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1580
+ --lumo-success-text-color: hsl(145, 85%, 46%);
1581
+
1582
+ /* Warning */
1583
+ --lumo-warning-color: hsl(43, 100%, 48%);
1584
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1585
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
1586
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1587
+ }
1588
+
1589
+ html {
1590
+ color: var(--lumo-body-text-color);
1591
+ background-color: var(--lumo-base-color);
1592
+ color-scheme: light;
1593
+ }
1594
+
1595
+ [theme~='dark'] {
1596
+ color: var(--lumo-body-text-color);
1597
+ background-color: var(--lumo-base-color);
1598
+ color-scheme: dark;
1599
+ }
1600
+
1601
+ h1,
1602
+ h2,
1603
+ h3,
1604
+ h4,
1605
+ h5,
1606
+ h6 {
1607
+ color: var(--lumo-header-text-color);
1608
+ }
1609
+
1610
+ a:where(:any-link) {
1611
+ color: var(--lumo-primary-text-color);
1612
+ }
1613
+
1614
+ a:not(:any-link) {
1615
+ color: var(--lumo-disabled-text-color);
1616
+ }
1617
+
1618
+ blockquote {
1619
+ color: var(--lumo-secondary-text-color);
1620
+ }
1621
+
1622
+ code,
1623
+ pre {
1624
+ background-color: var(--lumo-contrast-10pct);
1625
+ border-radius: var(--lumo-border-radius-m);
1626
+ }
1627
+ `;R("",wa,{moduleId:"lumo-color"});/**
1628
+ * @license
1629
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1630
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1631
+ */const Ea=S`
1632
+ :host {
1633
+ --lumo-size-xs: 1.625rem;
1634
+ --lumo-size-s: 1.875rem;
1635
+ --lumo-size-m: 2.25rem;
1636
+ --lumo-size-l: 2.75rem;
1637
+ --lumo-size-xl: 3.5rem;
1638
+
1639
+ /* Icons */
1640
+ --lumo-icon-size-s: 1.25em;
1641
+ --lumo-icon-size-m: 1.5em;
1642
+ --lumo-icon-size-l: 2.25em;
1643
+ /* For backwards compatibility */
1644
+ --lumo-icon-size: var(--lumo-icon-size-m);
1645
+ }
1646
+ `;st("sizing-props",Ea);/**
1647
+ * @license
1648
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1649
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
+ */const Sa=S`
1651
+ :host {
1652
+ /* Square */
1653
+ --lumo-space-xs: 0.25rem;
1654
+ --lumo-space-s: 0.5rem;
1655
+ --lumo-space-m: 1rem;
1656
+ --lumo-space-l: 1.5rem;
1657
+ --lumo-space-xl: 2.5rem;
1658
+
1659
+ /* Wide */
1660
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1661
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1662
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1663
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1664
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1665
+
1666
+ /* Tall */
1667
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1668
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1669
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1670
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1671
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1672
+ }
1673
+ `;st("spacing-props",Sa);/**
1674
+ * @license
1675
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1676
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1677
+ */const Ca=S`
1678
+ :host {
1679
+ /* Border radius */
1680
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
1681
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
1682
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
1683
+
1684
+ /* Shadow */
1685
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
1686
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
1687
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
1688
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
1689
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
1690
+
1691
+ /* Clickable element cursor */
1692
+ --lumo-clickable-cursor: default;
1693
+ }
1694
+ `;S`
1695
+ html {
1696
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
1697
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1698
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1699
+ }
1700
+ `;st("style-props",Ca);/**
1701
+ * @license
1702
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1703
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1704
+ */const Aa=S`
1705
+ :host {
1706
+ /* prettier-ignore */
1707
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1708
+
1709
+ /* Font sizes */
1710
+ --lumo-font-size-xxs: 0.75rem;
1711
+ --lumo-font-size-xs: 0.8125rem;
1712
+ --lumo-font-size-s: 0.875rem;
1713
+ --lumo-font-size-m: 1rem;
1714
+ --lumo-font-size-l: 1.125rem;
1715
+ --lumo-font-size-xl: 1.375rem;
1716
+ --lumo-font-size-xxl: 1.75rem;
1717
+ --lumo-font-size-xxxl: 2.5rem;
1718
+
1719
+ /* Line heights */
1720
+ --lumo-line-height-xs: 1.25;
1721
+ --lumo-line-height-s: 1.375;
1722
+ --lumo-line-height-m: 1.625;
1723
+ }
1724
+ `,Pa=S`
1725
+ body,
1726
+ :host {
1727
+ font-family: var(--lumo-font-family);
1728
+ font-size: var(--lumo-font-size-m);
1729
+ line-height: var(--lumo-line-height-m);
1730
+ -webkit-text-size-adjust: 100%;
1731
+ -webkit-font-smoothing: antialiased;
1732
+ -moz-osx-font-smoothing: grayscale;
1733
+ }
1734
+
1735
+ small,
1736
+ [theme~='font-size-s'] {
1737
+ font-size: var(--lumo-font-size-s);
1738
+ line-height: var(--lumo-line-height-s);
1739
+ }
1740
+
1741
+ [theme~='font-size-xs'] {
1742
+ font-size: var(--lumo-font-size-xs);
1743
+ line-height: var(--lumo-line-height-xs);
1744
+ }
1745
+
1746
+ :where(h1, h2, h3, h4, h5, h6) {
1747
+ font-weight: 600;
1748
+ line-height: var(--lumo-line-height-xs);
1749
+ margin-block: 0;
1750
+ }
1751
+
1752
+ :where(h1) {
1753
+ font-size: var(--lumo-font-size-xxxl);
1754
+ }
1755
+
1756
+ :where(h2) {
1757
+ font-size: var(--lumo-font-size-xxl);
1758
+ }
1759
+
1760
+ :where(h3) {
1761
+ font-size: var(--lumo-font-size-xl);
1762
+ }
1763
+
1764
+ :where(h4) {
1765
+ font-size: var(--lumo-font-size-l);
1766
+ }
1767
+
1768
+ :where(h5) {
1769
+ font-size: var(--lumo-font-size-m);
1770
+ }
1771
+
1772
+ :where(h6) {
1773
+ font-size: var(--lumo-font-size-xs);
1774
+ text-transform: uppercase;
1775
+ letter-spacing: 0.03em;
1776
+ }
1777
+
1778
+ p,
1779
+ blockquote {
1780
+ margin-top: 0.5em;
1781
+ margin-bottom: 0.75em;
1782
+ }
1783
+
1784
+ a {
1785
+ text-decoration: none;
1786
+ }
1787
+
1788
+ a:where(:any-link):hover {
1789
+ text-decoration: underline;
1790
+ }
1791
+
1792
+ hr {
1793
+ display: block;
1794
+ align-self: stretch;
1795
+ height: 1px;
1796
+ border: 0;
1797
+ padding: 0;
1798
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1799
+ background-color: var(--lumo-contrast-10pct);
1800
+ }
1801
+
1802
+ blockquote {
1803
+ border-left: 2px solid var(--lumo-contrast-30pct);
1804
+ }
1805
+
1806
+ b,
1807
+ strong {
1808
+ font-weight: 600;
1809
+ }
1810
+
1811
+ /* RTL specific styles */
1812
+ blockquote[dir='rtl'] {
1813
+ border-left: none;
1814
+ border-right: 2px solid var(--lumo-contrast-30pct);
1815
+ }
1816
+ `;R("",Pa,{moduleId:"lumo-typography"});st("typography-props",Aa);const ka=S`
1817
+ :host {
1818
+ /* Sizing */
1819
+ --lumo-button-size: var(--lumo-size-m);
1820
+ min-width: calc(var(--lumo-button-size) * 2);
1821
+ height: var(--lumo-button-size);
1822
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
1823
+ margin: var(--lumo-space-xs) 0;
1824
+ box-sizing: border-box;
1825
+ /* Style */
1826
+ font-family: var(--lumo-font-family);
1827
+ font-size: var(--lumo-font-size-m);
1828
+ font-weight: 500;
1829
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
1830
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
1831
+ border-radius: var(--lumo-border-radius-m);
1832
+ cursor: var(--lumo-clickable-cursor);
1833
+ -webkit-tap-highlight-color: transparent;
1834
+ -webkit-font-smoothing: antialiased;
1835
+ -moz-osx-font-smoothing: grayscale;
1836
+ flex-shrink: 0;
1837
+ }
1838
+
1839
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
1840
+ [part='label'],
1841
+ [part='prefix'],
1842
+ [part='suffix'] {
1843
+ line-height: var(--lumo-line-height-xs);
1844
+ }
1845
+
1846
+ [part='label'] {
1847
+ padding: calc(var(--lumo-button-size) / 6) 0;
1848
+ }
1849
+
1850
+ :host([theme~='small']) {
1851
+ font-size: var(--lumo-font-size-s);
1852
+ --lumo-button-size: var(--lumo-size-s);
1853
+ }
1854
+
1855
+ :host([theme~='large']) {
1856
+ font-size: var(--lumo-font-size-l);
1857
+ --lumo-button-size: var(--lumo-size-l);
1858
+ }
1859
+
1860
+ /* For interaction states */
1861
+ :host::before,
1862
+ :host::after {
1863
+ content: '';
1864
+ /* We rely on the host always being relative */
1865
+ position: absolute;
1866
+ z-index: 1;
1867
+ inset: 0;
1868
+ background-color: currentColor;
1869
+ border-radius: inherit;
1870
+ opacity: 0;
1871
+ pointer-events: none;
1872
+ }
1873
+
1874
+ /* Hover */
1875
+
1876
+ @media (any-hover: hover) {
1877
+ :host(:hover)::before {
1878
+ opacity: 0.02;
1879
+ }
1880
+ }
1881
+
1882
+ /* Active */
1883
+
1884
+ :host::after {
1885
+ transition: opacity 1.4s, transform 0.1s;
1886
+ filter: blur(8px);
1887
+ }
1888
+
1889
+ :host([active])::before {
1890
+ opacity: 0.05;
1891
+ transition-duration: 0s;
1892
+ }
1893
+
1894
+ :host([active])::after {
1895
+ opacity: 0.1;
1896
+ transition-duration: 0s, 0s;
1897
+ transform: scale(0);
1898
+ }
1899
+
1900
+ /* Keyboard focus */
1901
+
1902
+ :host([focus-ring]) {
1903
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1904
+ }
1905
+
1906
+ :host([theme~='primary'][focus-ring]) {
1907
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1908
+ }
1909
+
1910
+ /* Types (primary, tertiary, tertiary-inline */
1911
+
1912
+ :host([theme~='tertiary']),
1913
+ :host([theme~='tertiary-inline']) {
1914
+ background-color: transparent !important;
1915
+ min-width: 0;
1916
+ }
1917
+
1918
+ :host([theme~='tertiary']) {
1919
+ padding: 0 calc(var(--lumo-button-size) / 6);
1920
+ }
1921
+
1922
+ :host([theme~='tertiary-inline'])::before {
1923
+ display: none;
1924
+ }
1925
+
1926
+ :host([theme~='tertiary-inline']) {
1927
+ margin: 0;
1928
+ height: auto;
1929
+ padding: 0;
1930
+ line-height: inherit;
1931
+ font-size: inherit;
1932
+ }
1933
+
1934
+ :host([theme~='tertiary-inline']) [part='label'] {
1935
+ padding: 0;
1936
+ overflow: visible;
1937
+ line-height: inherit;
1938
+ }
1939
+
1940
+ :host([theme~='primary']) {
1941
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1942
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1943
+ font-weight: 600;
1944
+ min-width: calc(var(--lumo-button-size) * 2.5);
1945
+ }
1946
+
1947
+ :host([theme~='primary'])::before {
1948
+ background-color: black;
1949
+ }
1950
+
1951
+ @media (any-hover: hover) {
1952
+ :host([theme~='primary']:hover)::before {
1953
+ opacity: 0.05;
1954
+ }
1955
+ }
1956
+
1957
+ :host([theme~='primary'][active])::before {
1958
+ opacity: 0.1;
1959
+ }
1960
+
1961
+ :host([theme~='primary'][active])::after {
1962
+ opacity: 0.2;
1963
+ }
1964
+
1965
+ /* Colors (success, error, contrast) */
1966
+
1967
+ :host([theme~='success']) {
1968
+ color: var(--lumo-success-text-color);
1969
+ }
1970
+
1971
+ :host([theme~='success'][theme~='primary']) {
1972
+ background-color: var(--lumo-success-color);
1973
+ color: var(--lumo-success-contrast-color);
1974
+ }
1975
+
1976
+ :host([theme~='error']) {
1977
+ color: var(--lumo-error-text-color);
1978
+ }
1979
+
1980
+ :host([theme~='error'][theme~='primary']) {
1981
+ background-color: var(--lumo-error-color);
1982
+ color: var(--lumo-error-contrast-color);
1983
+ }
1984
+
1985
+ :host([theme~='contrast']) {
1986
+ color: var(--lumo-contrast);
1987
+ }
1988
+
1989
+ :host([theme~='contrast'][theme~='primary']) {
1990
+ background-color: var(--lumo-contrast);
1991
+ color: var(--lumo-base-color);
1992
+ }
1993
+
1994
+ /* Disabled state. Keep selectors after other color variants. */
1995
+
1996
+ :host([disabled]) {
1997
+ pointer-events: none;
1998
+ color: var(--lumo-disabled-text-color);
1999
+ }
2000
+
2001
+ :host([theme~='primary'][disabled]) {
2002
+ background-color: var(--lumo-contrast-30pct);
2003
+ color: var(--lumo-base-color);
2004
+ }
2005
+
2006
+ :host([theme~='primary'][disabled]) [part] {
2007
+ opacity: 0.7;
2008
+ }
2009
+
2010
+ /* Icons */
2011
+
2012
+ [part] ::slotted(vaadin-icon) {
2013
+ display: inline-block;
2014
+ width: var(--lumo-icon-size-m);
2015
+ height: var(--lumo-icon-size-m);
2016
+ }
2017
+
2018
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
2019
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
2020
+ padding: 0.25em;
2021
+ box-sizing: border-box !important;
2022
+ }
2023
+
2024
+ [part='prefix'] {
2025
+ margin-left: -0.25em;
2026
+ margin-right: 0.25em;
2027
+ }
2028
+
2029
+ [part='suffix'] {
2030
+ margin-left: 0.25em;
2031
+ margin-right: -0.25em;
2032
+ }
2033
+
2034
+ /* Icon-only */
2035
+
2036
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
2037
+ min-width: var(--lumo-button-size);
2038
+ padding-left: calc(var(--lumo-button-size) / 4);
2039
+ padding-right: calc(var(--lumo-button-size) / 4);
2040
+ }
2041
+
2042
+ :host([theme~='icon']) [part='prefix'],
2043
+ :host([theme~='icon']) [part='suffix'] {
2044
+ margin-left: 0;
2045
+ margin-right: 0;
2046
+ }
2047
+
2048
+ /* RTL specific styles */
2049
+
2050
+ :host([dir='rtl']) [part='prefix'] {
2051
+ margin-left: 0.25em;
2052
+ margin-right: -0.25em;
2053
+ }
2054
+
2055
+ :host([dir='rtl']) [part='suffix'] {
2056
+ margin-left: -0.25em;
2057
+ margin-right: 0.25em;
2058
+ }
2059
+
2060
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
2061
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
2062
+ margin-left: 0;
2063
+ margin-right: 0;
2064
+ }
2065
+ `;R("vaadin-button",ka,{moduleId:"lumo-button"});/**
2066
+ * @license
2067
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2068
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2069
+ */const Le=W(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Da=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ht=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ta(){function i(){return!0}return bs(i)}function Ma(){try{return Oa()?!0:za()?ht?!Ia():!Ta():!1}catch(i){return!1}}function Oa(){return localStorage.getItem("vaadin.developmentmode.force")}function za(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ia(){return!!(ht&&Object.keys(ht).map(t=>ht[t]).filter(t=>t.productionMode).length>0)}function bs(i,t){if(typeof i!="function")return;const e=Da.exec(i.toString());if(e)try{i=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return i(t)}window.Vaadin=window.Vaadin||{};const xi=function(i,t){if(window.Vaadin.developmentMode)return bs(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ma());function Na(){/*! vaadin-dev-mode:start
2070
+ (function () {
2071
+ 'use strict';
2072
+
2073
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
2074
+ return typeof obj;
2075
+ } : function (obj) {
2076
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2077
+ };
2078
+
2079
+ var classCallCheck = function (instance, Constructor) {
2080
+ if (!(instance instanceof Constructor)) {
2081
+ throw new TypeError("Cannot call a class as a function");
2082
+ }
2083
+ };
2084
+
2085
+ var createClass = function () {
2086
+ function defineProperties(target, props) {
2087
+ for (var i = 0; i < props.length; i++) {
2088
+ var descriptor = props[i];
2089
+ descriptor.enumerable = descriptor.enumerable || false;
2090
+ descriptor.configurable = true;
2091
+ if ("value" in descriptor) descriptor.writable = true;
2092
+ Object.defineProperty(target, descriptor.key, descriptor);
2093
+ }
2094
+ }
2095
+
2096
+ return function (Constructor, protoProps, staticProps) {
2097
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
2098
+ if (staticProps) defineProperties(Constructor, staticProps);
2099
+ return Constructor;
2100
+ };
2101
+ }();
2102
+
2103
+ var getPolymerVersion = function getPolymerVersion() {
2104
+ return window.Polymer && window.Polymer.version;
2105
+ };
2106
+
2107
+ var StatisticsGatherer = function () {
2108
+ function StatisticsGatherer(logger) {
2109
+ classCallCheck(this, StatisticsGatherer);
2110
+
2111
+ this.now = new Date().getTime();
2112
+ this.logger = logger;
2113
+ }
2114
+
2115
+ createClass(StatisticsGatherer, [{
2116
+ key: 'frameworkVersionDetectors',
2117
+ value: function frameworkVersionDetectors() {
2118
+ return {
2119
+ 'Flow': function Flow() {
2120
+ if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
2121
+ var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
2122
+ return window.Vaadin.Flow.clients[key];
2123
+ }).filter(function (client) {
2124
+ return client.getVersionInfo;
2125
+ }).map(function (client) {
2126
+ return client.getVersionInfo().flow;
2127
+ });
2128
+ if (flowVersions.length > 0) {
2129
+ return flowVersions[0];
2130
+ }
2131
+ }
2132
+ },
2133
+ 'Vaadin Framework': function VaadinFramework() {
2134
+ if (window.vaadin && window.vaadin.clients) {
2135
+ var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
2136
+ return client.getVersionInfo;
2137
+ }).map(function (client) {
2138
+ return client.getVersionInfo().vaadinVersion;
2139
+ });
2140
+ if (frameworkVersions.length > 0) {
2141
+ return frameworkVersions[0];
2142
+ }
2143
+ }
2144
+ },
2145
+ 'AngularJs': function AngularJs() {
2146
+ if (window.angular && window.angular.version && window.angular.version) {
2147
+ return window.angular.version.full;
2148
+ }
2149
+ },
2150
+ 'Angular': function Angular() {
2151
+ if (window.ng) {
2152
+ var tags = document.querySelectorAll("[ng-version]");
2153
+ if (tags.length > 0) {
2154
+ return tags[0].getAttribute("ng-version");
2155
+ }
2156
+ return "Unknown";
2157
+ }
2158
+ },
2159
+ 'Backbone.js': function BackboneJs() {
2160
+ if (window.Backbone) {
2161
+ return window.Backbone.VERSION;
2162
+ }
2163
+ },
2164
+ 'React': function React() {
2165
+ var reactSelector = '[data-reactroot], [data-reactid]';
2166
+ if (!!document.querySelector(reactSelector)) {
2167
+ // React does not publish the version by default
2168
+ return "unknown";
2169
+ }
2170
+ },
2171
+ 'Ember': function Ember() {
2172
+ if (window.Em && window.Em.VERSION) {
2173
+ return window.Em.VERSION;
2174
+ } else if (window.Ember && window.Ember.VERSION) {
2175
+ return window.Ember.VERSION;
2176
+ }
2177
+ },
2178
+ 'jQuery': function (_jQuery) {
2179
+ function jQuery() {
2180
+ return _jQuery.apply(this, arguments);
2181
+ }
2182
+
2183
+ jQuery.toString = function () {
2184
+ return _jQuery.toString();
2185
+ };
2186
+
2187
+ return jQuery;
2188
+ }(function () {
2189
+ if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
2190
+ return jQuery.prototype.jquery;
2191
+ }
2192
+ }),
2193
+ 'Polymer': function Polymer() {
2194
+ var version = getPolymerVersion();
2195
+ if (version) {
2196
+ return version;
2197
+ }
2198
+ },
2199
+ 'LitElement': function LitElement() {
2200
+ var version = window.litElementVersions && window.litElementVersions[0];
2201
+ if (version) {
2202
+ return version;
2203
+ }
2204
+ },
2205
+ 'LitHtml': function LitHtml() {
2206
+ var version = window.litHtmlVersions && window.litHtmlVersions[0];
2207
+ if (version) {
2208
+ return version;
2209
+ }
2210
+ },
2211
+ 'Vue.js': function VueJs() {
2212
+ if (window.Vue) {
2213
+ return window.Vue.version;
2214
+ }
2215
+ }
2216
+ };
2217
+ }
2218
+ }, {
2219
+ key: 'getUsedVaadinElements',
2220
+ value: function getUsedVaadinElements(elements) {
2221
+ var version = getPolymerVersion();
2222
+ var elementClasses = void 0;
2223
+ // NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
2224
+ // Check all locations calling the method getEntries() in
2225
+ // https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
2226
+ // Currently it is only used by BootstrapHandler.
2227
+ if (version && version.indexOf('2') === 0) {
2228
+ // Polymer 2: components classes are stored in window.Vaadin
2229
+ elementClasses = Object.keys(window.Vaadin).map(function (c) {
2230
+ return window.Vaadin[c];
2231
+ }).filter(function (c) {
2232
+ return c.is;
2233
+ });
2234
+ } else {
2235
+ // Polymer 3: components classes are stored in window.Vaadin.registrations
2236
+ elementClasses = window.Vaadin.registrations || [];
2237
+ }
2238
+ elementClasses.forEach(function (klass) {
2239
+ var version = klass.version ? klass.version : "0.0.0";
2240
+ elements[klass.is] = { version: version };
2241
+ });
2242
+ }
2243
+ }, {
2244
+ key: 'getUsedVaadinThemes',
2245
+ value: function getUsedVaadinThemes(themes) {
2246
+ ['Lumo', 'Material'].forEach(function (themeName) {
2247
+ var theme;
2248
+ var version = getPolymerVersion();
2249
+ if (version && version.indexOf('2') === 0) {
2250
+ // Polymer 2: themes are stored in window.Vaadin
2251
+ theme = window.Vaadin[themeName];
2252
+ } else {
2253
+ // Polymer 3: themes are stored in custom element registry
2254
+ theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
2255
+ }
2256
+ if (theme && theme.version) {
2257
+ themes[themeName] = { version: theme.version };
2258
+ }
2259
+ });
2260
+ }
2261
+ }, {
2262
+ key: 'getFrameworks',
2263
+ value: function getFrameworks(frameworks) {
2264
+ var detectors = this.frameworkVersionDetectors();
2265
+ Object.keys(detectors).forEach(function (framework) {
2266
+ var detector = detectors[framework];
2267
+ try {
2268
+ var version = detector();
2269
+ if (version) {
2270
+ frameworks[framework] = { version: version };
2271
+ }
2272
+ } catch (e) {}
2273
+ });
2274
+ }
2275
+ }, {
2276
+ key: 'gather',
2277
+ value: function gather(storage) {
2278
+ var storedStats = storage.read();
2279
+ var gatheredStats = {};
2280
+ var types = ["elements", "frameworks", "themes"];
2281
+
2282
+ types.forEach(function (type) {
2283
+ gatheredStats[type] = {};
2284
+ if (!storedStats[type]) {
2285
+ storedStats[type] = {};
2286
+ }
2287
+ });
2288
+
2289
+ var previousStats = JSON.stringify(storedStats);
2290
+
2291
+ this.getUsedVaadinElements(gatheredStats.elements);
2292
+ this.getFrameworks(gatheredStats.frameworks);
2293
+ this.getUsedVaadinThemes(gatheredStats.themes);
2294
+
2295
+ var now = this.now;
2296
+ types.forEach(function (type) {
2297
+ var keys = Object.keys(gatheredStats[type]);
2298
+ keys.forEach(function (key) {
2299
+ if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
2300
+ storedStats[type][key] = { firstUsed: now };
2301
+ }
2302
+ // Discards any previously logged version number
2303
+ storedStats[type][key].version = gatheredStats[type][key].version;
2304
+ storedStats[type][key].lastUsed = now;
2305
+ });
2306
+ });
2307
+
2308
+ var newStats = JSON.stringify(storedStats);
2309
+ storage.write(newStats);
2310
+ if (newStats != previousStats && Object.keys(storedStats).length > 0) {
2311
+ this.logger.debug("New stats: " + newStats);
2312
+ }
2313
+ }
2314
+ }]);
2315
+ return StatisticsGatherer;
2316
+ }();
2317
+
2318
+ var StatisticsStorage = function () {
2319
+ function StatisticsStorage(key) {
2320
+ classCallCheck(this, StatisticsStorage);
2321
+
2322
+ this.key = key;
2323
+ }
2324
+
2325
+ createClass(StatisticsStorage, [{
2326
+ key: 'read',
2327
+ value: function read() {
2328
+ var localStorageStatsString = localStorage.getItem(this.key);
2329
+ try {
2330
+ return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
2331
+ } catch (e) {
2332
+ return {};
2333
+ }
2334
+ }
2335
+ }, {
2336
+ key: 'write',
2337
+ value: function write(data) {
2338
+ localStorage.setItem(this.key, data);
2339
+ }
2340
+ }, {
2341
+ key: 'clear',
2342
+ value: function clear() {
2343
+ localStorage.removeItem(this.key);
2344
+ }
2345
+ }, {
2346
+ key: 'isEmpty',
2347
+ value: function isEmpty() {
2348
+ var storedStats = this.read();
2349
+ var empty = true;
2350
+ Object.keys(storedStats).forEach(function (key) {
2351
+ if (Object.keys(storedStats[key]).length > 0) {
2352
+ empty = false;
2353
+ }
2354
+ });
2355
+
2356
+ return empty;
2357
+ }
2358
+ }]);
2359
+ return StatisticsStorage;
2360
+ }();
2361
+
2362
+ var StatisticsSender = function () {
2363
+ function StatisticsSender(url, logger) {
2364
+ classCallCheck(this, StatisticsSender);
2365
+
2366
+ this.url = url;
2367
+ this.logger = logger;
2368
+ }
2369
+
2370
+ createClass(StatisticsSender, [{
2371
+ key: 'send',
2372
+ value: function send(data, errorHandler) {
2373
+ var logger = this.logger;
2374
+
2375
+ if (navigator.onLine === false) {
2376
+ logger.debug("Offline, can't send");
2377
+ errorHandler();
2378
+ return;
2379
+ }
2380
+ logger.debug("Sending data to " + this.url);
2381
+
2382
+ var req = new XMLHttpRequest();
2383
+ req.withCredentials = true;
2384
+ req.addEventListener("load", function () {
2385
+ // Stats sent, nothing more to do
2386
+ logger.debug("Response: " + req.responseText);
2387
+ });
2388
+ req.addEventListener("error", function () {
2389
+ logger.debug("Send failed");
2390
+ errorHandler();
2391
+ });
2392
+ req.addEventListener("abort", function () {
2393
+ logger.debug("Send aborted");
2394
+ errorHandler();
2395
+ });
2396
+ req.open("POST", this.url);
2397
+ req.setRequestHeader("Content-Type", "application/json");
2398
+ req.send(data);
2399
+ }
2400
+ }]);
2401
+ return StatisticsSender;
2402
+ }();
2403
+
2404
+ var StatisticsLogger = function () {
2405
+ function StatisticsLogger(id) {
2406
+ classCallCheck(this, StatisticsLogger);
2407
+
2408
+ this.id = id;
2409
+ }
2410
+
2411
+ createClass(StatisticsLogger, [{
2412
+ key: '_isDebug',
2413
+ value: function _isDebug() {
2414
+ return localStorage.getItem("vaadin." + this.id + ".debug");
2415
+ }
2416
+ }, {
2417
+ key: 'debug',
2418
+ value: function debug(msg) {
2419
+ if (this._isDebug()) {
2420
+ console.info(this.id + ": " + msg);
2421
+ }
2422
+ }
2423
+ }]);
2424
+ return StatisticsLogger;
2425
+ }();
2426
+
2427
+ var UsageStatistics = function () {
2428
+ function UsageStatistics() {
2429
+ classCallCheck(this, UsageStatistics);
2430
+
2431
+ this.now = new Date();
2432
+ this.timeNow = this.now.getTime();
2433
+ this.gatherDelay = 10; // Delay between loading this file and gathering stats
2434
+ this.initialDelay = 24 * 60 * 60;
2435
+
2436
+ this.logger = new StatisticsLogger("statistics");
2437
+ this.storage = new StatisticsStorage("vaadin.statistics.basket");
2438
+ this.gatherer = new StatisticsGatherer(this.logger);
2439
+ this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
2440
+ }
2441
+
2442
+ createClass(UsageStatistics, [{
2443
+ key: 'maybeGatherAndSend',
2444
+ value: function maybeGatherAndSend() {
2445
+ var _this = this;
2446
+
2447
+ if (localStorage.getItem(UsageStatistics.optOutKey)) {
2448
+ return;
2449
+ }
2450
+ this.gatherer.gather(this.storage);
2451
+ setTimeout(function () {
2452
+ _this.maybeSend();
2453
+ }, this.gatherDelay * 1000);
2454
+ }
2455
+ }, {
2456
+ key: 'lottery',
2457
+ value: function lottery() {
2458
+ return true;
2459
+ }
2460
+ }, {
2461
+ key: 'currentMonth',
2462
+ value: function currentMonth() {
2463
+ return this.now.getYear() * 12 + this.now.getMonth();
2464
+ }
2465
+ }, {
2466
+ key: 'maybeSend',
2467
+ value: function maybeSend() {
2468
+ var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2469
+ var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
2470
+
2471
+ if (!firstUse) {
2472
+ // Use a grace period to avoid interfering with tests, incognito mode etc
2473
+ firstUse = this.timeNow;
2474
+ localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
2475
+ }
2476
+
2477
+ if (this.timeNow < firstUse + this.initialDelay * 1000) {
2478
+ this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
2479
+ return;
2480
+ }
2481
+ if (this.currentMonth() <= monthProcessed) {
2482
+ this.logger.debug("This month has already been processed");
2483
+ return;
2484
+ }
2485
+ localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
2486
+ // Use random sampling
2487
+ if (this.lottery()) {
2488
+ this.logger.debug("Congratulations, we have a winner!");
2489
+ } else {
2490
+ this.logger.debug("Sorry, no stats from you this time");
2491
+ return;
2492
+ }
2493
+
2494
+ this.send();
2495
+ }
2496
+ }, {
2497
+ key: 'send',
2498
+ value: function send() {
2499
+ // Ensure we have the latest data
2500
+ this.gatherer.gather(this.storage);
2501
+
2502
+ // Read, send and clean up
2503
+ var data = this.storage.read();
2504
+ data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2505
+ data["usageStatisticsVersion"] = UsageStatistics.version;
2506
+ var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
2507
+ var self = this;
2508
+ this.sender.send(info + JSON.stringify(data), function () {
2509
+ // Revert the 'month processed' flag
2510
+ localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
2511
+ });
2512
+ }
2513
+ }], [{
2514
+ key: 'version',
2515
+ get: function get$1() {
2516
+ return '2.1.2';
2517
+ }
2518
+ }, {
2519
+ key: 'firstUseKey',
2520
+ get: function get$1() {
2521
+ return 'vaadin.statistics.firstuse';
2522
+ }
2523
+ }, {
2524
+ key: 'monthProcessedKey',
2525
+ get: function get$1() {
2526
+ return 'vaadin.statistics.monthProcessed';
2527
+ }
2528
+ }, {
2529
+ key: 'optOutKey',
2530
+ get: function get$1() {
2531
+ return 'vaadin.statistics.optout';
2532
+ }
2533
+ }]);
2534
+ return UsageStatistics;
2535
+ }();
2536
+
2537
+ try {
2538
+ window.Vaadin = window.Vaadin || {};
2539
+ window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
2540
+ window.Vaadin.usageStatsChecker.maybeGatherAndSend();
2541
+ } catch (e) {
2542
+ // Intentionally ignored as this is not a problem in the app being developed
2543
+ }
2544
+
2545
+ }());
2546
+
2547
+ vaadin-dev-mode:end **/}const Fa=function(){if(typeof xi=="function")return xi(Na)};/**
2548
+ * @license
2549
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2550
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2551
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2552
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2553
+ * Code distributed by Google as part of the polymer project is also
2554
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2555
+ */let wi=0,xs=0;const Me=[];let lo=!1;function La(){lo=!1;const i=Me.length;for(let t=0;t<i;t++){const e=Me[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}Me.splice(0,i),xs+=i}const bt={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},$a={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Ra={run(i){lo||(lo=!0,queueMicrotask(()=>La())),Me.push(i);const t=wi;return wi+=1,t},cancel(i){const t=i-xs;if(t>=0){if(!Me[t])throw new Error(`invalid async handle: ${i}`);Me[t]=null}}};/**
2556
+ @license
2557
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2558
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2559
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2560
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2561
+ Code distributed by Google as part of the polymer project is also
2562
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2563
+ */const co=new Set;let et=class uo{static debounce(t,e,o){return t instanceof uo?t._cancelAsync():t=new uo,t.setConfig(e,o),t}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,co.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),co.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Ha(i){co.add(i)}/**
2564
+ * @license
2565
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2566
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2567
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Fa()};let Bt;const Ei=new Set,ws=i=>class extends At(i){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!Ei.has(e)&&(window.Vaadin.registrations.push(this),Ei.add(e),window.Vaadin.developmentModeCallback&&(Bt=et.debounce(Bt,$a,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ha(Bt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2568
+ * @license
2569
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2570
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2571
+ */function Ba(i){const t=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){t.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return t}function To(i){return i?new Set(i.split(" ")):new Set}function Pt(i){return i?[...i].join(" "):""}function Es(i,t,e){const o=To(i.getAttribute(t));o.add(e),i.setAttribute(t,Pt(o))}function ja(i,t,e){const o=To(i.getAttribute(t));if(o.delete(e),o.size===0){i.removeAttribute(t);return}i.setAttribute(t,Pt(o))}function Ya(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
2572
+ * @license
2573
+ * Copyright (c) 2023 Vaadin Ltd.
2574
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2575
+ */class Ua{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const o=[],s=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?o.push(r):a!==n&&s.push(r)}),(e.length||o.length||s.length)&&this.callback({addedNodes:e,movedNodes:s,removedNodes:o}),this._storedNodes=t}}/**
2576
+ * @license
2577
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2578
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2579
+ */let Va=0;function Ss(){return Va++}/**
2580
+ * @license
2581
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2582
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2583
+ */class xe extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${Ss()}`}constructor(t,e,o,s={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l}=s;this.host=t,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:o}=this;let s=this.defaultNode;return!s&&o&&(s=document.createElement(o),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ua(o,({addedNodes:s,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Ya(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2584
+ * @license
2585
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
2586
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2587
+ */class Cs extends xe{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2588
+ * @license
2589
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2590
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2591
+ */const Wa=S`
2592
+ :host {
2593
+ display: inline-block;
2594
+ position: relative;
2595
+ outline: none;
2596
+ white-space: nowrap;
2597
+ -webkit-user-select: none;
2598
+ -moz-user-select: none;
2599
+ user-select: none;
2600
+ }
2601
+
2602
+ :host([hidden]) {
2603
+ display: none !important;
2604
+ }
2605
+
2606
+ /* Aligns the button with form fields when placed on the same line.
2607
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
2608
+ .vaadin-button-container::before {
2609
+ content: '\\2003';
2610
+ display: inline-block;
2611
+ width: 0;
2612
+ max-height: 100%;
2613
+ }
2614
+
2615
+ .vaadin-button-container {
2616
+ display: inline-flex;
2617
+ align-items: center;
2618
+ justify-content: center;
2619
+ text-align: center;
2620
+ width: 100%;
2621
+ height: 100%;
2622
+ min-height: inherit;
2623
+ text-shadow: inherit;
2624
+ }
2625
+
2626
+ [part='prefix'],
2627
+ [part='suffix'] {
2628
+ flex: none;
2629
+ }
2630
+
2631
+ [part='label'] {
2632
+ white-space: nowrap;
2633
+ overflow: hidden;
2634
+ text-overflow: ellipsis;
2635
+ }
2636
+
2637
+ @media (forced-colors: active) {
2638
+ :host {
2639
+ outline: 1px solid;
2640
+ outline-offset: -1px;
2641
+ }
2642
+
2643
+ :host([focused]) {
2644
+ outline-width: 2px;
2645
+ }
2646
+
2647
+ :host([disabled]) {
2648
+ outline-color: GrayText;
2649
+ }
2650
+ }
2651
+ `,qa=i=>i`
2652
+ <div class="vaadin-button-container">
2653
+ <span part="prefix" aria-hidden="true">
2654
+ <slot name="prefix"></slot>
2655
+ </span>
2656
+ <span part="label">
2657
+ <slot></slot>
2658
+ </span>
2659
+ <span part="suffix" aria-hidden="true">
2660
+ <slot name="suffix"></slot>
2661
+ </span>
2662
+ </div>
2663
+ <slot name="tooltip"></slot>
2664
+ `;/**
2665
+ @license
2666
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2667
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2668
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2669
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2670
+ Code distributed by Google as part of the polymer project is also
2671
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2672
+ */const Ka=!1,Ga=i=>i,Mo=typeof document.head.style.touchAction=="string",ho="__polymerGestures",jt="__polymerGesturesHandled",po="__polymerGesturesTouchAction",Si=25,Ci=5,Ja=2,Xa=["mousedown","mousemove","mouseup","click"],Za=[0,1,4,2],Qa=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Oo(i){return Xa.indexOf(i)>-1}let As=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){As=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function el(i){if(!(Oo(i)||i==="touchend")&&Mo&&As&&Ka)return{passive:!0}}const tl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ol={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ee(i){const t=i.type;if(!Oo(t))return!1;if(t==="mousemove"){let o=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Qa&&(o=Za[i.which]||0),!!(o&1)}return(i.button===void 0?0:i.button)===0}function il(i){if(i.type==="click"){if(i.detail===0)return!0;const t=fe(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=i.pageX,s=i.pageY;return!(o>=e.left&&o<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const he={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function sl(i){let t="auto";const e=ks(i);for(let o=0,s;o<e.length;o++)if(s=e[o],s[po]){t=s[po];break}return t}function Ps(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Oe(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const ks=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],zo={},we=[];function rl(i,t){let e=document.elementFromPoint(i,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const s=o;if(o=o.shadowRoot.elementFromPoint(i,t),s===o)break;o&&(e=o)}return e}function fe(i){const t=ks(i);return t.length>0?t[0]:i.target}function nl(i){const t=i.type,o=i.currentTarget[ho];if(!o)return;const s=o[t];if(!s)return;if(!i[jt]&&(i[jt]={},t.startsWith("touch"))){const n=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(he.touch.id=n.identifier),he.touch.id!==n.identifier)return;Mo||(t==="touchstart"||t==="touchmove")&&al(i)}const r=i[jt];if(!r.skip){for(let n=0,a;n<we.length;n++)a=we[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<we.length;n++)a=we[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](i))}}function al(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")he.touch.x=t.clientX,he.touch.y=t.clientY,he.touch.scrollDecided=!1;else if(e==="touchmove"){if(he.touch.scrollDecided)return;he.touch.scrollDecided=!0;const o=sl(i);let s=!1;const r=Math.abs(he.touch.x-t.clientX),n=Math.abs(he.touch.y-t.clientY);i.cancelable&&(o==="none"?s=!0:o==="pan-x"?s=n>r:o==="pan-y"&&(s=r>n)),s?i.preventDefault():xt("track")}}function ue(i,t,e){return zo[t]?(ll(i,t,e),!0):!1}function ll(i,t,e){const o=zo[t],s=o.deps,r=o.name;let n=i[ho];n||(i[ho]=n={});for(let a=0,l,c;a<s.length;a++)l=s[a],!(tl&&Oo(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&i.addEventListener(l,nl,el(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);i.addEventListener(t,e),o.touchAction&&Ds(i,o.touchAction)}function Io(i){we.push(i),i.emits.forEach(t=>{zo[t]=i})}function cl(i){for(let t=0,e;t<we.length;t++){e=we[t];for(let o=0,s;o<e.emits.length;o++)if(s=e.emits[o],s===i)return e}return null}function Ds(i,t){Mo&&i instanceof HTMLElement&&Ra.run(()=>{i.style.touchAction=t}),i[po]=t}function No(i,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,Ga(i).dispatchEvent(o),o.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function xt(i){const t=cl(i);t.info&&(t.info.prevent=!0)}Io({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Oe(this.info)},mousedown(i){if(!Ee(i))return;const t=fe(i),e=this,o=r=>{Ee(r)||(Be("up",t,r),Oe(e.info))},s=r=>{Ee(r)&&Be("up",t,r),Oe(e.info)};Ps(this.info,o,s),Be("down",t,i)},touchstart(i){Be("down",fe(i),i.changedTouches[0],i)},touchend(i){Be("up",fe(i),i.changedTouches[0],i)}});function Be(i,t,e,o){t&&No(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(s){return xt(s)}})}Io({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>Ja&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Oe(this.info)},mousedown(i){if(!Ee(i))return;const t=fe(i),e=this,o=r=>{const n=r.clientX,a=r.clientY;Ai(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&xt("tap"),e.info.addMove({x:n,y:a}),Ee(r)||(e.info.state="end",Oe(e.info)),t&&Yt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&o(r),Oe(e.info)};Ps(this.info,o,s),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=fe(i),e=i.changedTouches[0],o=e.clientX,s=e.clientY;Ai(this.info,o,s)&&(this.info.state==="start"&&xt("tap"),this.info.addMove({x:o,y:s}),Yt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=fe(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Yt(this.info,t,e))}});function Ai(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const o=Math.abs(i.x-t),s=Math.abs(i.y-e);return o>=Ci||s>=Ci}function Yt(i,t,e){if(!t)return;const o=i.moves[i.moves.length-2],s=i.moves[i.moves.length-1],r=s.x-i.x,n=s.y-i.y;let a,l=0;o&&(a=s.x-o.x,l=s.y-o.y),No(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return rl(e.clientX,e.clientY)}})}Io({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){Ee(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ee(i)&&Pi(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){Pi(this.info,i.changedTouches[0],i)}});function Pi(i,t,e){const o=Math.abs(t.clientX-i.x),s=Math.abs(t.clientY-i.y),r=fe(e||t);!r||ol[r.localName]&&r.hasAttribute("disabled")||(isNaN(o)||isNaN(s)||o<=Si&&s<=Si||il(t))&&(i.prevent||No(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2673
+ * @license
2674
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2675
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2676
+ */const Ts=W(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2677
+ * @license
2678
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2679
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2680
+ */const kt=W(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2681
+ * @license
2682
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2683
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2684
+ */const ul=i=>class extends Ts(kt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),ue(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ue(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2685
+ * @license
2686
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2687
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2688
+ */let Fo=!1;window.addEventListener("keydown",()=>{Fo=!0},{capture:!0});window.addEventListener("mousedown",()=>{Fo=!1},{capture:!0});function mo(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function dl(){return Fo}function hl(i){const t=i.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(i);return e.visibility==="hidden"||e.display==="none"}function pl(i,t){const e=Math.max(i.tabIndex,0),o=Math.max(t.tabIndex,0);return e===0||o===0?o>e:e>o}function ml(i,t){const e=[];for(;i.length>0&&t.length>0;)pl(i[0],t[0])?e.push(t.shift()):e.push(i.shift());return e.concat(i,t)}function fo(i){const t=i.length;if(t<2)return i;const e=Math.ceil(t/2),o=fo(i.slice(0,e)),s=fo(i.slice(e));return ml(o,s)}function fl(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function _l(i){return i.getRootNode().activeElement===i}function gl(i){if(!fl(i))return-1;const t=i.getAttribute("tabindex")||0;return Number(t)}function Ms(i,t){if(i.nodeType!==Node.ELEMENT_NODE||hl(i))return!1;const e=i,o=gl(e);let s=o>0;o>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{s=Ms(n,t)||s}),s}function yl(i){const t=[];return Ms(i,t)?fo(t):t}/**
2689
+ * @license
2690
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2691
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2692
+ */const Lo=W(i=>class extends i{get _keyboardActive(){return dl()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2693
+ * @license
2694
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2695
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2696
+ */const Os=i=>class extends Ts(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2697
+ * @license
2698
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2699
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2700
+ */const vl=i=>class extends ul(Os(Lo(i))){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())}};/**
2701
+ * @license
2702
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2703
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2704
+ */R("vaadin-button",Wa,{moduleId:"vaadin-button-styles"});class bl extends vl(ws(Ce(Le(_e)))){static get is(){return"vaadin-button"}static get template(){return qa(Pe)}ready(){super.ready(),this._tooltipController=new Cs(this),this.addController(this._tooltipController)}}ae(bl);R("vaadin-date-picker-year",S`
2705
+ :host([current]) [part='year-number'] {
2706
+ color: var(--lumo-primary-text-color);
2707
+ }
2708
+
2709
+ :host(:not([current])) [part='year-number'],
2710
+ [part='year-separator'] {
2711
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
2712
+ transition: 0.2s opacity;
2713
+ }
2714
+
2715
+ [part='year-number'],
2716
+ [part='year-separator'] {
2717
+ display: flex;
2718
+ align-items: center;
2719
+ justify-content: center;
2720
+ height: 50%;
2721
+ transform: translateY(-50%);
2722
+ }
2723
+
2724
+ [part='year-separator']::after {
2725
+ color: var(--lumo-disabled-text-color);
2726
+ content: '\\2022';
2727
+ }
2728
+ `,{moduleId:"lumo-date-picker-year"});R("vaadin-date-picker-overlay-content",S`
2729
+ :host {
2730
+ position: relative;
2731
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
2732
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
2733
+ background-size: 57px 100%;
2734
+ background-position: top right;
2735
+ background-repeat: no-repeat;
2736
+ cursor: default;
2737
+ }
2738
+
2739
+ ::slotted([slot='months']) {
2740
+ /* Month calendar height:
2741
+ header height + margin-bottom
2742
+ + weekdays height + margin-bottom
2743
+ + date cell heights
2744
+ + small margin between month calendars
2745
+ */
2746
+ /* prettier-ignore */
2747
+ --vaadin-infinite-scroller-item-height:
2748
+ calc(
2749
+ var(--lumo-font-size-l) + var(--lumo-space-m)
2750
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
2751
+ + var(--lumo-size-m) * 6
2752
+ + var(--lumo-space-s)
2753
+ );
2754
+ --vaadin-infinite-scroller-buffer-offset: 10%;
2755
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2756
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2757
+ position: relative;
2758
+ margin-right: 57px;
2759
+ }
2760
+
2761
+ ::slotted([slot='years']) {
2762
+ /* TODO get rid of fixed magic number */
2763
+ --vaadin-infinite-scroller-buffer-width: 97px;
2764
+ width: 57px;
2765
+ height: auto;
2766
+ top: 0;
2767
+ bottom: 0;
2768
+ font-size: var(--lumo-font-size-s);
2769
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
2770
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2771
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2772
+ cursor: var(--lumo-clickable-cursor);
2773
+ }
2774
+
2775
+ ::slotted([slot='years']:hover) {
2776
+ --_lumo-date-picker-year-opacity: 1;
2777
+ }
2778
+
2779
+ /* TODO unsupported selector */
2780
+ #scrollers {
2781
+ position: static;
2782
+ display: block;
2783
+ }
2784
+
2785
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
2786
+ :host([desktop]) ::slotted([slot='months']) {
2787
+ right: auto;
2788
+ }
2789
+
2790
+ /* Year scroller position indicator */
2791
+ ::slotted([slot='years'])::before {
2792
+ border: none;
2793
+ width: 1em;
2794
+ height: 1em;
2795
+ background-color: var(--lumo-base-color);
2796
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
2797
+ transform: translate(-75%, -50%) rotate(45deg);
2798
+ border-top-right-radius: var(--lumo-border-radius-s);
2799
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
2800
+ z-index: 1;
2801
+ }
2802
+
2803
+ [part='toolbar'] {
2804
+ padding: var(--lumo-space-s);
2805
+ border-bottom-left-radius: var(--lumo-border-radius-l);
2806
+ margin-right: 57px;
2807
+ }
2808
+
2809
+ [part='toolbar'] ::slotted(vaadin-button) {
2810
+ margin: 0;
2811
+ }
2812
+
2813
+ /* Narrow viewport mode (fullscreen) */
2814
+
2815
+ :host([fullscreen]) [part='toolbar'] {
2816
+ order: -1;
2817
+ background-color: var(--lumo-base-color);
2818
+ }
2819
+
2820
+ :host([fullscreen]) [part='overlay-header'] {
2821
+ order: -2;
2822
+ height: var(--lumo-size-m);
2823
+ padding: var(--lumo-space-s);
2824
+ position: absolute;
2825
+ left: 0;
2826
+ right: 0;
2827
+ justify-content: center;
2828
+ }
2829
+
2830
+ :host([fullscreen]) [part='toggle-button'],
2831
+ :host([fullscreen]) [part='clear-button'],
2832
+ [part='overlay-header'] [part='label'] {
2833
+ display: none;
2834
+ }
2835
+
2836
+ /* Very narrow screen (year scroller initially hidden) */
2837
+
2838
+ [part='years-toggle-button'] {
2839
+ display: flex;
2840
+ align-items: center;
2841
+ height: var(--lumo-size-s);
2842
+ padding: 0 0.5em;
2843
+ border-radius: var(--lumo-border-radius-m);
2844
+ z-index: 3;
2845
+ color: var(--lumo-primary-text-color);
2846
+ font-weight: 500;
2847
+ -webkit-font-smoothing: antialiased;
2848
+ -moz-osx-font-smoothing: grayscale;
2849
+ }
2850
+
2851
+ :host([years-visible]) [part='years-toggle-button'] {
2852
+ background-color: var(--lumo-primary-color);
2853
+ color: var(--lumo-primary-contrast-color);
2854
+ }
2855
+
2856
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
2857
+ @media screen and (max-width: 374px) {
2858
+ :host {
2859
+ background-image: none;
2860
+ }
2861
+
2862
+ [part='toolbar'],
2863
+ ::slotted([slot='months']) {
2864
+ margin-right: 0;
2865
+ }
2866
+
2867
+ /* TODO make date-picker adapt to the width of the years part */
2868
+ ::slotted([slot='years']) {
2869
+ --vaadin-infinite-scroller-buffer-width: 90px;
2870
+ width: 50px;
2871
+ background-color: var(--lumo-shade-5pct);
2872
+ }
2873
+
2874
+ :host([years-visible]) ::slotted([slot='months']) {
2875
+ padding-left: 50px;
2876
+ }
2877
+ }
2878
+ `,{moduleId:"lumo-date-picker-overlay-content"});R("vaadin-month-calendar",S`
2879
+ :host {
2880
+ -moz-user-select: none;
2881
+ -webkit-user-select: none;
2882
+ -webkit-tap-highlight-color: transparent;
2883
+ user-select: none;
2884
+ font-size: var(--lumo-font-size-m);
2885
+ color: var(--lumo-body-text-color);
2886
+ text-align: center;
2887
+ padding: 0 var(--lumo-space-xs);
2888
+ }
2889
+
2890
+ /* Month header */
2891
+
2892
+ [part='month-header'] {
2893
+ color: var(--lumo-header-text-color);
2894
+ font-size: var(--lumo-font-size-l);
2895
+ line-height: 1;
2896
+ font-weight: 500;
2897
+ margin-bottom: var(--lumo-space-m);
2898
+ }
2899
+
2900
+ /* Week days and numbers */
2901
+
2902
+ [part='weekdays'],
2903
+ [part='weekday'],
2904
+ [part='week-number'] {
2905
+ font-size: var(--lumo-font-size-xxs);
2906
+ line-height: 1;
2907
+ color: var(--lumo-secondary-text-color);
2908
+ }
2909
+
2910
+ [part='weekdays'] {
2911
+ margin-bottom: var(--lumo-space-s);
2912
+ }
2913
+
2914
+ [part='weekday']:empty,
2915
+ [part='week-number'] {
2916
+ width: var(--lumo-size-xs);
2917
+ }
2918
+
2919
+ /* Date and week number cells */
2920
+
2921
+ [part~='date'],
2922
+ [part='week-number'] {
2923
+ box-sizing: border-box;
2924
+ display: inline-flex;
2925
+ align-items: center;
2926
+ justify-content: center;
2927
+ height: var(--lumo-size-m);
2928
+ position: relative;
2929
+ }
2930
+
2931
+ [part~='date'] {
2932
+ transition: color 0.1s;
2933
+ }
2934
+
2935
+ [part~='date']:not(:empty) {
2936
+ cursor: var(--lumo-clickable-cursor);
2937
+ }
2938
+
2939
+ :host([week-numbers]) [part='weekday']:not(:empty),
2940
+ :host([week-numbers]) [part~='date'] {
2941
+ width: calc((100% - var(--lumo-size-xs)) / 7);
2942
+ }
2943
+
2944
+ /* Today date */
2945
+
2946
+ [part~='date'][part~='today'] {
2947
+ color: var(--lumo-primary-text-color);
2948
+ }
2949
+
2950
+ /* Focused date */
2951
+
2952
+ [part~='date']::before {
2953
+ content: '';
2954
+ position: absolute;
2955
+ z-index: -1;
2956
+ top: 50%;
2957
+ left: 50%;
2958
+ transform: translate(-50%, -50%);
2959
+ min-width: 2em;
2960
+ min-height: 2em;
2961
+ width: 80%;
2962
+ height: 80%;
2963
+ max-height: 100%;
2964
+ max-width: 100%;
2965
+ border-radius: var(--lumo-border-radius-m);
2966
+ }
2967
+
2968
+ [part~='date'][part~='focused']::before {
2969
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
2970
+ }
2971
+
2972
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
2973
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
2974
+ }
2975
+
2976
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2977
+ 50% {
2978
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
2979
+ }
2980
+ }
2981
+
2982
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
2983
+ background-color: var(--lumo-primary-color-10pct);
2984
+ }
2985
+
2986
+ [part~='date'][part~='selected'] {
2987
+ color: var(--lumo-primary-contrast-color);
2988
+ }
2989
+
2990
+ [part~='date'][part~='selected']::before {
2991
+ background-color: var(--lumo-primary-color);
2992
+ }
2993
+
2994
+ [part~='date'][part~='disabled'] {
2995
+ color: var(--lumo-disabled-text-color);
2996
+ }
2997
+
2998
+ @media (pointer: coarse) {
2999
+ [part~='date']:hover:not([part~='selected'])::before,
3000
+ [part~='focused']:not([part~='selected'])::before {
3001
+ display: none;
3002
+ }
3003
+
3004
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
3005
+ display: block;
3006
+ }
3007
+
3008
+ [part~='date'][part~='selected']::before {
3009
+ box-shadow: none;
3010
+ }
3011
+ }
3012
+
3013
+ /* Disabled */
3014
+
3015
+ :host([disabled]) * {
3016
+ color: var(--lumo-disabled-text-color) !important;
3017
+ }
3018
+ `,{moduleId:"lumo-month-calendar"});const zs=document.createElement("template");zs.innerHTML=`
3019
+ <style>
3020
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
3021
+ 50% {
3022
+ box-shadow: 0 0 0 2px transparent;
3023
+ }
3024
+ }
3025
+ </style>
3026
+ `;document.head.appendChild(zs.content);/**
3027
+ * @license
3028
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3029
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3030
+ */const xl=S`
3031
+ @font-face {
3032
+ font-family: 'lumo-icons';
3033
+ src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
3034
+ format('woff');
3035
+ font-weight: normal;
3036
+ font-style: normal;
3037
+ }
3038
+
3039
+ html {
3040
+ --lumo-icons-align-center: '\\ea01';
3041
+ --lumo-icons-align-left: '\\ea02';
3042
+ --lumo-icons-align-right: '\\ea03';
3043
+ --lumo-icons-angle-down: '\\ea04';
3044
+ --lumo-icons-angle-left: '\\ea05';
3045
+ --lumo-icons-angle-right: '\\ea06';
3046
+ --lumo-icons-angle-up: '\\ea07';
3047
+ --lumo-icons-arrow-down: '\\ea08';
3048
+ --lumo-icons-arrow-left: '\\ea09';
3049
+ --lumo-icons-arrow-right: '\\ea0a';
3050
+ --lumo-icons-arrow-up: '\\ea0b';
3051
+ --lumo-icons-bar-chart: '\\ea0c';
3052
+ --lumo-icons-bell: '\\ea0d';
3053
+ --lumo-icons-calendar: '\\ea0e';
3054
+ --lumo-icons-checkmark: '\\ea0f';
3055
+ --lumo-icons-chevron-down: '\\ea10';
3056
+ --lumo-icons-chevron-left: '\\ea11';
3057
+ --lumo-icons-chevron-right: '\\ea12';
3058
+ --lumo-icons-chevron-up: '\\ea13';
3059
+ --lumo-icons-clock: '\\ea14';
3060
+ --lumo-icons-cog: '\\ea15';
3061
+ --lumo-icons-cross: '\\ea16';
3062
+ --lumo-icons-download: '\\ea17';
3063
+ --lumo-icons-dropdown: '\\ea18';
3064
+ --lumo-icons-edit: '\\ea19';
3065
+ --lumo-icons-error: '\\ea1a';
3066
+ --lumo-icons-eye: '\\ea1b';
3067
+ --lumo-icons-eye-disabled: '\\ea1c';
3068
+ --lumo-icons-menu: '\\ea1d';
3069
+ --lumo-icons-minus: '\\ea1e';
3070
+ --lumo-icons-ordered-list: '\\ea1f';
3071
+ --lumo-icons-phone: '\\ea20';
3072
+ --lumo-icons-photo: '\\ea21';
3073
+ --lumo-icons-play: '\\ea22';
3074
+ --lumo-icons-plus: '\\ea23';
3075
+ --lumo-icons-redo: '\\ea24';
3076
+ --lumo-icons-reload: '\\ea25';
3077
+ --lumo-icons-search: '\\ea26';
3078
+ --lumo-icons-undo: '\\ea27';
3079
+ --lumo-icons-unordered-list: '\\ea28';
3080
+ --lumo-icons-upload: '\\ea29';
3081
+ --lumo-icons-user: '\\ea2a';
3082
+ }
3083
+ `;Fe("font-icons",xl);/**
3084
+ * @license
3085
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3086
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3087
+ */const Is=S`
3088
+ [part$='button'] {
3089
+ flex: none;
3090
+ width: 1em;
3091
+ height: 1em;
3092
+ line-height: 1;
3093
+ font-size: var(--lumo-icon-size-m);
3094
+ text-align: center;
3095
+ color: var(--lumo-contrast-60pct);
3096
+ transition: 0.2s color;
3097
+ cursor: var(--lumo-clickable-cursor);
3098
+ }
3099
+
3100
+ [part$='button']:hover {
3101
+ color: var(--lumo-contrast-90pct);
3102
+ }
3103
+
3104
+ :host([disabled]) [part$='button'],
3105
+ :host([readonly]) [part$='button'] {
3106
+ color: var(--lumo-contrast-20pct);
3107
+ cursor: default;
3108
+ }
3109
+
3110
+ [part$='button']::before {
3111
+ font-family: 'lumo-icons';
3112
+ display: block;
3113
+ }
3114
+ `;R("",Is,{moduleId:"lumo-field-button"});/**
3115
+ * @license
3116
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3117
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3118
+ */const wl=S`
3119
+ :host([has-helper]) [part='helper-text']::before {
3120
+ content: '';
3121
+ display: block;
3122
+ height: 0.4em;
3123
+ }
3124
+
3125
+ [part='helper-text'] {
3126
+ display: block;
3127
+ color: var(--lumo-secondary-text-color);
3128
+ font-size: var(--lumo-font-size-xs);
3129
+ line-height: var(--lumo-line-height-xs);
3130
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
3131
+ transition: color 0.2s;
3132
+ }
3133
+
3134
+ :host(:hover:not([readonly])) [part='helper-text'] {
3135
+ color: var(--lumo-body-text-color);
3136
+ }
3137
+
3138
+ :host([disabled]) [part='helper-text'] {
3139
+ color: var(--lumo-disabled-text-color);
3140
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
3141
+ }
3142
+
3143
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
3144
+ display: none;
3145
+ }
3146
+
3147
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
3148
+ content: '';
3149
+ display: block;
3150
+ height: 0.4em;
3151
+ }
3152
+
3153
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
3154
+ order: 0;
3155
+ padding-bottom: 0.4em;
3156
+ }
3157
+
3158
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
3159
+ order: 1;
3160
+ }
3161
+
3162
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
3163
+ order: 2;
3164
+ }
3165
+
3166
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
3167
+ order: 3;
3168
+ }
3169
+ `;/**
3170
+ * @license
3171
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3172
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3173
+ */const Ns=S`
3174
+ [part='label'] {
3175
+ align-self: flex-start;
3176
+ color: var(--lumo-secondary-text-color);
3177
+ font-weight: 500;
3178
+ font-size: var(--lumo-font-size-s);
3179
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
3180
+ transition: color 0.2s;
3181
+ line-height: 1;
3182
+ padding-right: 1em;
3183
+ padding-bottom: 0.5em;
3184
+ /* As a workaround for diacritics being cut off, add a top padding and a
3185
+ negative margin to compensate */
3186
+ padding-top: 0.25em;
3187
+ margin-top: -0.25em;
3188
+ overflow: hidden;
3189
+ white-space: nowrap;
3190
+ text-overflow: ellipsis;
3191
+ position: relative;
3192
+ max-width: 100%;
3193
+ box-sizing: border-box;
3194
+ }
3195
+
3196
+ :host([has-label])::before {
3197
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
3198
+ }
3199
+
3200
+ :host([has-label][theme~='small'])::before {
3201
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
3202
+ }
3203
+
3204
+ :host([has-label]) {
3205
+ padding-top: var(--lumo-space-m);
3206
+ }
3207
+
3208
+ :host([has-label]) ::slotted([slot='tooltip']) {
3209
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
3210
+ }
3211
+
3212
+ :host([required]) [part='required-indicator']::after {
3213
+ content: var(--lumo-required-field-indicator, '\\2022');
3214
+ transition: opacity 0.2s;
3215
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
3216
+ position: absolute;
3217
+ right: 0;
3218
+ width: 1em;
3219
+ text-align: center;
3220
+ }
3221
+
3222
+ :host([invalid]) [part='required-indicator']::after {
3223
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
3224
+ }
3225
+
3226
+ [part='error-message'] {
3227
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
3228
+ font-size: var(--lumo-font-size-xs);
3229
+ line-height: var(--lumo-line-height-xs);
3230
+ color: var(--lumo-error-text-color);
3231
+ will-change: max-height;
3232
+ transition: 0.4s max-height;
3233
+ max-height: 5em;
3234
+ }
3235
+
3236
+ :host([has-error-message]) [part='error-message']::before,
3237
+ :host([has-error-message]) [part='error-message']::after {
3238
+ content: '';
3239
+ display: block;
3240
+ height: 0.4em;
3241
+ }
3242
+
3243
+ :host(:not([invalid])) [part='error-message'] {
3244
+ max-height: 0;
3245
+ overflow: hidden;
3246
+ }
3247
+
3248
+ /* RTL specific styles */
3249
+
3250
+ :host([dir='rtl']) [part='label'] {
3251
+ margin-left: 0;
3252
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
3253
+ }
3254
+
3255
+ :host([dir='rtl']) [part='label'] {
3256
+ padding-left: 1em;
3257
+ padding-right: 0;
3258
+ }
3259
+
3260
+ :host([dir='rtl']) [part='required-indicator']::after {
3261
+ right: auto;
3262
+ left: 0;
3263
+ }
3264
+
3265
+ :host([dir='rtl']) [part='error-message'] {
3266
+ margin-left: 0;
3267
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
3268
+ }
3269
+ `;R("",Ns,{moduleId:"lumo-required-field"});/**
3270
+ * @license
3271
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3272
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3273
+ */const El=S`
3274
+ :host {
3275
+ --lumo-text-field-size: var(--lumo-size-m);
3276
+ color: var(--lumo-body-text-color);
3277
+ font-size: var(--lumo-font-size-m);
3278
+ font-family: var(--lumo-font-family);
3279
+ -webkit-font-smoothing: antialiased;
3280
+ -moz-osx-font-smoothing: grayscale;
3281
+ -webkit-tap-highlight-color: transparent;
3282
+ padding: var(--lumo-space-xs) 0;
3283
+ }
3284
+
3285
+ :host::before {
3286
+ height: var(--lumo-text-field-size);
3287
+ box-sizing: border-box;
3288
+ display: inline-flex;
3289
+ align-items: center;
3290
+ }
3291
+
3292
+ :host([focused]:not([readonly])) [part='label'] {
3293
+ color: var(--lumo-primary-text-color);
3294
+ }
3295
+
3296
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
3297
+ -webkit-mask-image: none;
3298
+ mask-image: none;
3299
+ }
3300
+
3301
+ ::slotted(:is(input, textarea):placeholder-shown) {
3302
+ color: var(--lumo-secondary-text-color);
3303
+ }
3304
+
3305
+ /* Hover */
3306
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
3307
+ color: var(--lumo-body-text-color);
3308
+ }
3309
+
3310
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
3311
+ opacity: 0.1;
3312
+ }
3313
+
3314
+ /* Touch device adjustment */
3315
+ @media (pointer: coarse) {
3316
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
3317
+ color: var(--lumo-secondary-text-color);
3318
+ }
3319
+
3320
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
3321
+ opacity: 0;
3322
+ }
3323
+
3324
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
3325
+ opacity: 0.2;
3326
+ }
3327
+ }
3328
+
3329
+ /* Trigger when not focusing using the keyboard */
3330
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
3331
+ transform: scaleX(0);
3332
+ transition-duration: 0.15s, 1s;
3333
+ }
3334
+
3335
+ /* Focus-ring */
3336
+ :host([focus-ring]) [part='input-field'] {
3337
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
3338
+ }
3339
+
3340
+ /* Read-only and disabled */
3341
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
3342
+ opacity: 0;
3343
+ }
3344
+
3345
+ /* Read-only style */
3346
+ :host([readonly]) {
3347
+ --vaadin-input-field-border-color: transparent;
3348
+ }
3349
+
3350
+ /* Disabled style */
3351
+ :host([disabled]) {
3352
+ pointer-events: none;
3353
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
3354
+ }
3355
+
3356
+ :host([disabled]) [part='label'],
3357
+ :host([disabled]) [part='input-field'] ::slotted(*) {
3358
+ color: var(--lumo-disabled-text-color);
3359
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
3360
+ }
3361
+
3362
+ /* Invalid style */
3363
+ :host([invalid]) {
3364
+ --vaadin-input-field-border-color: var(--lumo-error-color);
3365
+ }
3366
+
3367
+ :host([invalid][focus-ring]) [part='input-field'] {
3368
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
3369
+ }
3370
+
3371
+ :host([input-prevented]) [part='input-field'] {
3372
+ animation: shake 0.15s infinite;
3373
+ }
3374
+
3375
+ @keyframes shake {
3376
+ 25% {
3377
+ transform: translateX(4px);
3378
+ }
3379
+ 75% {
3380
+ transform: translateX(-4px);
3381
+ }
3382
+ }
3383
+
3384
+ /* Small theme */
3385
+ :host([theme~='small']) {
3386
+ font-size: var(--lumo-font-size-s);
3387
+ --lumo-text-field-size: var(--lumo-size-s);
3388
+ }
3389
+
3390
+ :host([theme~='small']) [part='label'] {
3391
+ font-size: var(--lumo-font-size-xs);
3392
+ }
3393
+
3394
+ :host([theme~='small']) [part='error-message'] {
3395
+ font-size: var(--lumo-font-size-xxs);
3396
+ }
3397
+
3398
+ /* Slotted content */
3399
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
3400
+ color: var(--lumo-secondary-text-color);
3401
+ font-weight: 400;
3402
+ }
3403
+
3404
+ [part='clear-button']::before {
3405
+ content: var(--lumo-icons-cross);
3406
+ }
3407
+ `,Fs=[Ns,Is,wl,El];R("",Fs,{moduleId:"lumo-input-field-shared-styles"});const Sl=S`
3408
+ :host {
3409
+ outline: none;
3410
+ }
3411
+
3412
+ [part='toggle-button']::before {
3413
+ content: var(--lumo-icons-calendar);
3414
+ }
3415
+
3416
+ [part='clear-button']::before {
3417
+ content: var(--lumo-icons-cross);
3418
+ }
3419
+
3420
+ @media (max-width: 420px), (max-height: 420px) {
3421
+ [part='overlay-content'] {
3422
+ height: 70vh;
3423
+ }
3424
+ }
3425
+
3426
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
3427
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
3428
+ }
3429
+
3430
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3431
+ --_lumo-text-field-overflow-mask-image: none;
3432
+ }
3433
+ `;R("vaadin-date-picker",[Fs,Sl],{moduleId:"lumo-date-picker"});/**
3434
+ @license
3435
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3436
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3437
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3438
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3439
+ Code distributed by Google as part of the polymer project is also
3440
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3441
+ */let _o=!1,Cl=[],Ls=[];function Al(){_o=!0,requestAnimationFrame(function(){_o=!1,Pl(Cl),setTimeout(function(){kl(Ls)})})}function Pl(i){for(;i.length;)$s(i.shift())}function kl(i){for(let t=0,e=i.length;t<e;t++)$s(i.shift())}function $s(i){const t=i[0],e=i[1],o=i[2];try{e.apply(t,o)}catch(s){setTimeout(()=>{throw s})}}function Rs(i,t,e){_o||Al(),Ls.push([i,t,e])}/**
3442
+ * @license
3443
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3444
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3445
+ */const Dt=i=>i.test(navigator.userAgent),go=i=>i.test(navigator.platform),Dl=i=>i.test(navigator.vendor);Dt(/Android/u);Dt(/Chrome/u)&&Dl(/Google Inc/u);const Tl=Dt(/Firefox/u),Ml=go(/^iPad/u)||go(/^Mac/u)&&navigator.maxTouchPoints>1,Ol=go(/^iPhone/u),Hs=Ol||Ml;Dt(/^((?!chrome|android).)*safari/iu);const zl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
3446
+ * @license
3447
+ * Copyright (c) 2017 Anton Korzunov
3448
+ * SPDX-License-Identifier: MIT
3449
+ */let ke=new WeakMap,lt=new WeakMap,ct={},Ut=0;const ki=i=>i&&i.nodeType===Node.ELEMENT_NODE,Vt=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Il=(i,t)=>ki(i)?t.map(e=>{if(!ki(e))return Vt(e,"is not a valid element"),null;let o=e;for(;o&&o!==i;){if(i.contains(o))return e;o=o.getRootNode().host}return Vt(e,"is not contained inside",i),null}).filter(e=>!!e):(Vt(i,"is not a valid element"),[]),Nl=(i,t,e,o)=>{const s=Il(t,Array.isArray(i)?i:[i]);ct[e]||(ct[e]=new WeakMap);const r=ct[e],n=[],a=new Set,l=new Set(s),c=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&c(p),c(h.parentNode||h.host)};s.forEach(c);const d=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(y=>{if(!["template","script","style"].includes(y.localName))if(a.has(y))d(y);else{const P=y.getAttribute(o),O=P!==null&&P!=="false",N=(ke.get(y)||0)+1,F=(r.get(y)||0)+1;ke.set(y,N),r.set(y,F),n.push(y),N===1&&O&&lt.set(y,!0),F===1&&y.setAttribute(e,"true"),O||y.setAttribute(o,"true")}})};return d(t),a.clear(),Ut+=1,()=>{n.forEach(h=>{const p=ke.get(h)-1,m=r.get(h)-1;ke.set(h,p),r.set(h,m),p||(lt.has(h)?lt.delete(h):h.removeAttribute(o)),m||h.removeAttribute(e)}),Ut-=1,Ut||(ke=new WeakMap,ke=new WeakMap,lt=new WeakMap,ct={})}},Bs=(i,t=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(i)?i:[i]);return t&&o.push(...Array.from(t.querySelectorAll("[aria-live]"))),Nl(o,t,e,"aria-hidden")};/**
3450
+ * @license
3451
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3452
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3453
+ */class Fl{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Bs(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3454
+ * @license
3455
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3456
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3457
+ */class Ll{saveFocus(t){this.focusNode=t||mo()}restoreFocus(){const t=this.focusNode;t&&(mo()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
3458
+ * @license
3459
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3460
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3461
+ */const Wt=[];class $l{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return yl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(_l).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.");Wt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Wt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Wt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,o=t?-1:1,s=this.__focusedElementIndex,r=(e.length+s+o)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
3462
+ * @license
3463
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3464
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3465
+ */const Rl=i=>class extends Le(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Fl(this),this.__focusTrapController=new $l(this),this.__focusRestorationController=new Ll}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=mo();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let o=e;const s=e.ownerDocument;for(;o&&o!==s&&o!==this;)o=o.parentNode||o.host;return o===this}};/**
3466
+ * @license
3467
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3468
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3469
+ */const pt=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,t)=>i.__zIndex-t.__zIndex||0),Hl=i=>i===pt().pop(),Bl=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Hl(this)}bringToFront(){let e="";const o=pt().filter(s=>s!==this).pop();o&&(e=o.__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"),pt().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=pt();let o;for(;(o=e.pop())&&!(o!==this&&(o.$.overlay.style.removeProperty("pointer-events"),!o.modeless)););}};/**
3470
+ * @license
3471
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3472
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3473
+ */const jl=i=>class extends Rl(Bl(i)){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),Hs&&(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 o=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),o.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,r=document.documentElement.clientHeight;s&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-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,o,s,r){const n=this._oldOwner!==o||this._oldModel!==s;this._oldModel=s,this._oldOwner=o;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,o){e?(this._saveFocus(),this._animatedOpening(),Rs(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):o&&(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),o=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&o&&o!=="none"}_enqueueAnimation(e,o){const s=`__${e}Handler`,r=n=>{n&&n.target!==this||(o(),this.removeEventListener("animationend",r),delete this[s])};this[s]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const o=`__${e}Handler`;typeof this[o]=="function"&&this[o]()}_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 o=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const o=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}}};/**
3474
+ * @license
3475
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3476
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3477
+ */const qt={start:"top",end:"bottom"},Kt={start:"left",end:"right"},Di=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Yl=i=>class extends i{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=Ba(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,o){if(this.__removeUpdatePositionEventListeners(),o&&(o.__overlay=null,Di.unobserve(o),e&&(this.__addUpdatePositionEventListeners(),o.__overlay=this,Di.observe(o))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],10)})),this.setAttribute("dir",s.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(),o=this.__shouldAlignStartVertically(e);this.style.justifyContent=o?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,qt,this,o),c=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Kt,this,r);Object.assign(this.style,l,c),this.toggleAttribute("bottom-aligned",!o),this.toggleAttribute("top-aligned",o),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,o){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!o&&this.horizontalAlign==="start"||o&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Kt)}__shouldAlignStartVertically(e){const o=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,o,s,this.__margins,r,this.noVerticalOverlap,qt)}__shouldAlignStart(e,o,s,r,n,a,l){const c=s-e[a?l.end:l.start]-r[l.end],d=e[a?l.start:l.end]-r[l.start],h=n?c:d,m=h>(n?d:c)||h>o;return n===m}__adjustBottomProperty(e,o,s){let r;if(e===o.end){if(o.end===qt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(o.end===Kt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,o,s,r,n,a){const l=a?r.start:r.end,c=a?r.end:r.start,d=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,d),p=o[a?r.start:r.end]-e[s===a?r.end:r.start],m=h?`${h}px`:`${d+p*(a?-1:1)}px`;return{[l]:m,[c]:""}}};/**
3478
+ * @license
3479
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3480
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3481
+ */const Ul=S`
3482
+ :host {
3483
+ z-index: 200;
3484
+ position: fixed;
3485
+
3486
+ /* Despite of what the names say, <vaadin-overlay> is just a container
3487
+ for position/sizing/alignment. The actual overlay is the overlay part. */
3488
+
3489
+ /* Default position constraints: the entire viewport. Note: themes can
3490
+ override this to introduce gaps between the overlay and the viewport. */
3491
+ inset: 0;
3492
+ bottom: var(--vaadin-overlay-viewport-bottom);
3493
+
3494
+ /* Use flexbox alignment for the overlay part. */
3495
+ display: flex;
3496
+ flex-direction: column; /* makes dropdowns sizing easier */
3497
+ /* Align to center by default. */
3498
+ align-items: center;
3499
+ justify-content: center;
3500
+
3501
+ /* Allow centering when max-width/max-height applies. */
3502
+ margin: auto;
3503
+
3504
+ /* The host is not clickable, only the overlay part is. */
3505
+ pointer-events: none;
3506
+
3507
+ /* Remove tap highlight on touch devices. */
3508
+ -webkit-tap-highlight-color: transparent;
3509
+
3510
+ /* CSS API for host */
3511
+ --vaadin-overlay-viewport-bottom: 0;
3512
+ }
3513
+
3514
+ :host([hidden]),
3515
+ :host(:not([opened]):not([closing])) {
3516
+ display: none !important;
3517
+ }
3518
+
3519
+ [part='overlay'] {
3520
+ -webkit-overflow-scrolling: touch;
3521
+ overflow: auto;
3522
+ pointer-events: auto;
3523
+
3524
+ /* Prevent overflowing the host */
3525
+ max-width: 100%;
3526
+ box-sizing: border-box;
3527
+
3528
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
3529
+ }
3530
+
3531
+ [part='backdrop'] {
3532
+ z-index: -1;
3533
+ content: '';
3534
+ background: rgba(0, 0, 0, 0.5);
3535
+ position: fixed;
3536
+ inset: 0;
3537
+ pointer-events: auto;
3538
+ }
3539
+ `;/**
3540
+ * @license
3541
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3542
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3543
+ */const Vl=S`
3544
+ [part='overlay'] {
3545
+ display: flex;
3546
+ flex: auto;
3547
+ }
3548
+
3549
+ [part~='content'] {
3550
+ flex: auto;
3551
+ }
3552
+
3553
+ @media (forced-colors: active) {
3554
+ [part='overlay'] {
3555
+ outline: 3px solid;
3556
+ }
3557
+ }
3558
+ `;/**
3559
+ * @license
3560
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3561
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3562
+ */R("vaadin-date-picker-overlay",[Ul,Vl],{moduleId:"vaadin-date-picker-overlay-styles"});class Wl extends Yl(jl(At(Ce(_e)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Pe`
3563
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3564
+ <div part="overlay" id="overlay">
3565
+ <div part="content" id="content">
3566
+ <slot></slot>
3567
+ </div>
3568
+ </div>
3569
+ `}}ae(Wl);/**
3570
+ * @license
3571
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3572
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3573
+ */function ql(i){let t=i.getDay();t===0&&(t=7);const e=4-t,o=new Date(i.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(o.getFullYear());const r=o.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function pe(i,t){return i instanceof Date&&t instanceof Date&&i.getFullYear()===t.getFullYear()&&i.getMonth()===t.getMonth()&&i.getDate()===t.getDate()}function tt(i,t,e){return(!t||i>=t)&&(!e||i<=e)}function js(i,t){return t.filter(e=>e!==void 0).reduce((e,o)=>{if(!o)return e;if(!e)return o;const s=Math.abs(i.getTime()-o.getTime()),r=Math.abs(e.getTime()-i.getTime());return s<r?o:e})}function Ys(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Us(i){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(i)+t.getMonth()),e}function Kl(i,t,e=0,o=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 s=t+Math.floor(i.getFullYear()/100)*100;return i<new Date(s-50,e,o)?s-=100:i>new Date(s+50,e,o)&&(s+=100),s}function je(i){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);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}/**
3574
+ * @license
3575
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3576
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3577
+ */const Vs=document.createElement("template");Vs.innerHTML=`
3578
+ <style>
3579
+ :host {
3580
+ display: block;
3581
+ overflow: hidden;
3582
+ height: 500px;
3583
+ }
3584
+
3585
+ #scroller {
3586
+ position: relative;
3587
+ height: 100%;
3588
+ overflow: auto;
3589
+ outline: none;
3590
+ margin-right: -40px;
3591
+ -webkit-overflow-scrolling: touch;
3592
+ overflow-x: hidden;
3593
+ }
3594
+
3595
+ #scroller.notouchscroll {
3596
+ -webkit-overflow-scrolling: auto;
3597
+ }
3598
+
3599
+ #scroller::-webkit-scrollbar {
3600
+ display: none;
3601
+ }
3602
+
3603
+ .buffer {
3604
+ position: absolute;
3605
+ width: var(--vaadin-infinite-scroller-buffer-width, 100%);
3606
+ box-sizing: border-box;
3607
+ padding-right: 40px;
3608
+ top: var(--vaadin-infinite-scroller-buffer-offset, 0);
3609
+ animation: fadein 0.2s;
3610
+ }
3611
+
3612
+ @keyframes fadein {
3613
+ from {
3614
+ opacity: 0;
3615
+ }
3616
+ to {
3617
+ opacity: 1;
3618
+ }
3619
+ }
3620
+ </style>
3621
+
3622
+ <div id="scroller">
3623
+ <div class="buffer"></div>
3624
+ <div class="buffer"></div>
3625
+ <div id="fullHeight"></div>
3626
+ </div>
3627
+ `;class Ws extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Vs.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 o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}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`,Tl&&(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,o=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(o||s)&&(this._translateBuffer(s),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=et.debounce(this._debouncerScrollFinish,bt.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(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=et.debounce(this._debouncerUpdateClones,bt.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 o=0;o<this.bufferSize;o++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const r=`vaadin-infinite-scroller-item-content-${Ss()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=s,e.appendChild(n),s.setAttribute("slot",r),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s)}}),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(o=>{t.instance[o]=e[o]})}_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((o,s)=>{if(!o.updated){const r=this._firstIndex+this.bufferSize*s;[...o.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),o.updated=!0}})}_isVisible(t,e){const o=t.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}/**
3628
+ * @license
3629
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3630
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3631
+ */const qs=document.createElement("template");qs.innerHTML=`
3632
+ <style>
3633
+ :host {
3634
+ --vaadin-infinite-scroller-item-height: 270px;
3635
+ position: absolute;
3636
+ top: 0;
3637
+ left: 0;
3638
+ right: 0;
3639
+ bottom: 0;
3640
+ height: 100%;
3641
+ }
3642
+ </style>
3643
+ `;class Gl extends Ws{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(qs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Us(e)}}ae(Gl);/**
3644
+ * @license
3645
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3646
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3647
+ */const Ks=document.createElement("template");Ks.innerHTML=`
3648
+ <style>
3649
+ :host {
3650
+ --vaadin-infinite-scroller-item-height: 80px;
3651
+ width: 50px;
3652
+ display: block;
3653
+ height: 100%;
3654
+ position: absolute;
3655
+ right: 0;
3656
+ transform: translateX(100%);
3657
+ -webkit-tap-highlight-color: transparent;
3658
+ -webkit-user-select: none;
3659
+ -moz-user-select: none;
3660
+ user-select: none;
3661
+ /* Center the year scroller position. */
3662
+ --vaadin-infinite-scroller-buffer-offset: 50%;
3663
+ }
3664
+
3665
+ :host::before {
3666
+ content: '';
3667
+ display: block;
3668
+ background: transparent;
3669
+ width: 0;
3670
+ height: 0;
3671
+ position: absolute;
3672
+ left: 0;
3673
+ top: 50%;
3674
+ transform: translateY(-50%);
3675
+ border-width: 6px;
3676
+ border-style: solid;
3677
+ border-color: transparent;
3678
+ border-left-color: #000;
3679
+ }
3680
+ </style>
3681
+ `;class Jl extends Ws{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ks.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,o=new Date(e);return o.setFullYear(parseInt(t)+e.getFullYear()),o.getFullYear()}}ae(Jl);/**
3682
+ * @license
3683
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3684
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3685
+ */class Xl extends Ce(_e){static get is(){return"vaadin-date-picker-year"}static get template(){return Pe`
3686
+ <style>
3687
+ :host {
3688
+ display: block;
3689
+ height: 100%;
3690
+ }
3691
+ </style>
3692
+ <div part="year-number">[[year]]</div>
3693
+ <div part="year-separator" aria-hidden="true"></div>
3694
+ `}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())}}ae(Xl);/**
3695
+ @license
3696
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3697
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3698
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3699
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3700
+ Code distributed by Google as part of the polymer project is also
3701
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3702
+ */function $o(i,t,e,o,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(o=i.__dataTemp[t]));let n=o!==e&&(o===o||e===e);return r&&n&&(i.__dataTemp[t]=e),n}const Ro=W(i=>{class t extends i{_shouldPropertyChange(o,s,r){return $o(this,o,s,r,!0)}}return t}),Zl=W(i=>{class t extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,s,r){return $o(this,o,s,r,this.mutableData)}}return t});Ro._mutablePropertyChange=$o;/**
3703
+ @license
3704
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3705
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3706
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3707
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3708
+ Code distributed by Google as part of the polymer project is also
3709
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3710
+ */let yo=null;function vo(){return yo}vo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:vo,writable:!0}});const Gs=Do(vo),Ql=Ro(Gs);function ec(i,t){yo=i,Object.setPrototypeOf(i,t.prototype),new t,yo=null}const tc=Do(class{});function oc(i,t){for(let e=0;e<t.length;e++){let o=t[e];if(!!i!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)i?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(i)o.__polymerReplaced__=document.createComment("hidden-slot"),J(J(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const s=o.__polymerReplaced__;s&&J(J(s).parentNode).replaceChild(o,s)}else o.style&&(i?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=i,o._showHideChildren&&o._showHideChildren(i)}}class ge extends tc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(t&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let o in this.__hostProps)this._setPendingProperty(o,this.__dataHost["_host_"+o]);for(let o in t)this._setPendingProperty(o,t[o])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,o(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,o)}}_showHideChildren(t){oc(t,this.children)}_setUnmanagedPropertyToNode(t,e,o){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(t,e,o)}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}}ge.prototype.__dataHost;ge.prototype.__templatizeOptions;ge.prototype._methodHost;ge.prototype.__templatizeOwner;ge.prototype.__hostProps;const ic=Ro(ge);function Ti(i){let t=i.__dataHost;return t&&t._methodHost||t}function sc(i,t,e){let o=e.mutableData?ic:ge;bo.mixin&&(o=bo.mixin(o));let s=class extends o{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(i),ac(s,i,t,e),s}function rc(i,t,e,o){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=i.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?Ql:Gs;class c extends l{}n=t.templatizeTemplateClass=c}else{const l=i.constructor;class c extends l{}n=t.templatizeTemplateClass=c}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:nc(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);Ki&&o&&uc(t,e,o)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),r)ec(i,n),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in i){const c=i[l];delete i[l],i.__data[l]=c}}}}function nc(i,t){return function(o,s,r){t.call(o.__templatizeOwner,s.substring(6),r[s])}}function ac(i,t,e,o){let s=e.hostProps||{};for(let r in o.instanceProps){delete s[r];let n=o.notifyInstanceProp;n&&i.prototype._addPropertyEffect(r,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lc(r,n)})}if(o.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),i.prototype._addPropertyEffect(r,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:cc()})}function lc(i,t){return function(o,s,r){t.call(o.__templatizeOwner,o,s,r[s])}}function cc(){return function(t,e,o){t.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}}function bo(i,t,e){if(yt&&!Ti(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=t;let s=(t?t.constructor:ge)._parseTemplate(i),r=s.templatizeInstanceClass;r||(r=sc(i,s,e),s.templatizeInstanceClass=r);const n=Ti(i);rc(i,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=i,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function uc(i,t,e){const o=e.constructor._properties,{propertyEffects:s}=i,{instanceProps:r}=t;for(let n in s)if(!o[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:c}=a[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function dc(i,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=i)t=e.__dataHost;else return e;else t=J(t).parentNode;return null}/**
3711
+ @license
3712
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3713
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3714
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3715
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3716
+ Code distributed by Google as part of the polymer project is also
3717
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3718
+ */class wt{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,ot.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ot.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,o){return t instanceof wt?t._cancelAsync():t=new wt,t.setConfig(e,o),t}}let ot=new Set;const hc=function(i){ot.add(i)},pc=function(){const i=!!ot.size;return ot.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),i};/**
3719
+ @license
3720
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3721
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3722
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3723
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3724
+ Code distributed by Google as part of the polymer project is also
3725
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3726
+ */const Js=function(){let i,t;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=pc();while(i||t)};/**
3727
+ @license
3728
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3729
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3730
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3731
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3732
+ Code distributed by Google as part of the polymer project is also
3733
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3734
+ */let Mi=!1;function mc(){if(qi&&!Wi){if(!Mi){Mi=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
3735
+ @license
3736
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3737
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3738
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3739
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3740
+ Code distributed by Google as part of the polymer project is also
3741
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3742
+ */const fc=Zl(_e);class Oi extends fc{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:!si,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,this._templateInfo}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(),mc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=J(J(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 s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=bo(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(en(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Xe(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,o=this.__getMethodHost();return function(){return o[e].apply(o,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 o=0;o<e.length;o++)t.indexOf(e[o])===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=wt.debounce(this.__renderDebouncer,e>0?an.after(e):ss,t.bind(this)),hc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Js()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),o=this.__calculateLimit(e.length);this.__updateInstances(t,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!si||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let o=0;o<t.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter((o,s,r)=>this.__filterFn(t[o],s,r))),this.__sortFn&&e.sort((o,s)=>this.__sortFn(t[o],t[s])),e}__calculateLimit(t){let e=t;const o=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-o,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-o,0),this.__chunkCount),e=Math.min(o+s,t)),this.__shouldMeasureChunk=s===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,o){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=o[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const o=J(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];o.appendChild(r)}return e}__attachInstance(t,e){let o=this.__instances[t];e.insertBefore(o.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,o){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=o,new this.__ctor(s)}__insertInstance(t,e,o){const s=this.__stampInstance(t,e,o);let r=this.__instances[e+1],n=r?r.children[0]:this;return J(J(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let o=t.slice(6),s=o.indexOf("."),r=s<0?o:o.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":o.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,e,!1,!0),l._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 dc(this.template,t)}}customElements.define(Oi.is,Oi);/**
3743
+ * @license
3744
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3745
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3746
+ */const _c=i=>class extends Lo(i){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=>pe(e.date,this.focusedDate))}ready(){super.ready(),ue(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,o,s){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),o&&s&&o.getMonth()===s.getMonth()&&o.getMonth()===e.getMonth()&&s.getDate()-o.getDate()>=0?!1:!tt(r,o,s)&&!tt(n,o,s)}_getTitle(e,o){if(!(e===void 0||o===void 0))return o.formatTitle(o.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,o){e.setDate(e.getDate()+o)}_applyFirstDayOfWeek(e,o){if(!(e===void 0||o===void 0))return e.slice(o).concat(e.slice(0,o))}_getWeekDayNames(e,o){if(e===void 0||o===void 0)return[];const{weekdays:s,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(s,n).map((c,d)=>({weekDay:c,weekDayShort:a[d]}))}__focusedDateChanged(e,o){Array.isArray(o)&&o.some(s=>pe(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,o){return e&&o&&o.firstDayOfWeek===1}_isToday(e){return pe(new Date,e)}_getDays(e,o){if(e===void 0||o===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==o.firstDayOfWeek;)this._dateAdd(s,-1);const r=[],n=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===n;)r.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return r}_getWeeks(e){return e.reduce((o,s,r)=>(r%7===0&&o.push([]),o[o.length-1].push(s),o),[])}_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 o=e.reduce((s,r)=>!s&&r?r:s);return ql(o)}__getDayAriaLabel(e){if(!e)return"";let o=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(o+=`, ${this.i18n.today}`),o}};/**
3747
+ * @license
3748
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3749
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3750
+ */const gc=S`
3751
+ :host {
3752
+ display: block;
3753
+ }
3754
+
3755
+ #monthGrid {
3756
+ width: 100%;
3757
+ border-collapse: collapse;
3758
+ }
3759
+
3760
+ #days-container tr,
3761
+ #weekdays-container tr {
3762
+ display: flex;
3763
+ }
3764
+
3765
+ [part~='date'] {
3766
+ outline: none;
3767
+ }
3768
+
3769
+ [part~='disabled'] {
3770
+ pointer-events: none;
3771
+ }
3772
+
3773
+ [part='week-number'][hidden],
3774
+ [part='weekday'][hidden] {
3775
+ display: none;
3776
+ }
3777
+
3778
+ [part='weekday'],
3779
+ [part~='date'] {
3780
+ width: calc(100% / 7);
3781
+ padding: 0;
3782
+ font-weight: normal;
3783
+ }
3784
+
3785
+ [part='weekday']:empty,
3786
+ [part='week-number'] {
3787
+ width: 12.5%;
3788
+ flex-shrink: 0;
3789
+ padding: 0;
3790
+ }
3791
+
3792
+ :host([week-numbers]) [part='weekday']:not(:empty),
3793
+ :host([week-numbers]) [part~='date'] {
3794
+ width: 12.5%;
3795
+ }
3796
+
3797
+ @media (forced-colors: active) {
3798
+ [part~='date'][part~='focused'] {
3799
+ outline: 1px solid;
3800
+ }
3801
+
3802
+ [part~='date'][part~='selected'] {
3803
+ outline: 3px solid;
3804
+ }
3805
+ }
3806
+ `;/**
3807
+ * @license
3808
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3809
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3810
+ */R("vaadin-month-calendar",gc,{moduleId:"vaadin-month-calendar-styles"});class yc extends _c(Ce(_e)){static get template(){return Pe`
3811
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3812
+ <table
3813
+ id="monthGrid"
3814
+ role="grid"
3815
+ aria-labelledby="month-header"
3816
+ on-touchend="_preventDefault"
3817
+ on-touchstart="_onMonthGridTouchStart"
3818
+ >
3819
+ <thead id="weekdays-container">
3820
+ <tr role="row" part="weekdays">
3821
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
3822
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
3823
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
3824
+ [[item.weekDayShort]]
3825
+ </th>
3826
+ </template>
3827
+ </tr>
3828
+ </thead>
3829
+ <tbody id="days-container">
3830
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
3831
+ <tr role="row">
3832
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
3833
+ [[__getWeekNumber(week)]]
3834
+ </td>
3835
+ <template is="dom-repeat" items="[[week]]">
3836
+ <td
3837
+ role="gridcell"
3838
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
3839
+ date="[[item]]"
3840
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
3841
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
3842
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
3843
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
3844
+ aria-label$="[[__getDayAriaLabel(item)]]"
3845
+ >[[_getDate(item)]]</td
3846
+ >
3847
+ </template>
3848
+ </tr>
3849
+ </template>
3850
+ </tbody>
3851
+ </table>
3852
+ `}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,o,s,r){const n=["date"];return this.__isDayDisabled(t,s,r)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,o)&&n.push("selected"),this._isToday(t)&&n.push("today"),n.join(" ")}__isDayFocused(t,e){return pe(t,e)}__isDaySelected(t,e){return pe(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,o){return!tt(t,e,o)}__getDayAriaDisabled(t,e,o){if(!(t===void 0||e===void 0||o===void 0)&&this.__isDayDisabled(t,e,o))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}ae(yc);/**
3853
+ * @license
3854
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3855
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3856
+ */class Xs{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)}}/**
3857
+ * @license
3858
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3859
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3860
+ */const vc=i=>class extends i{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(){Ds(this.$.scrollers,"pan-y"),ue(this.$.scrollers,"track",this._track.bind(this)),ue(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ue(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ue(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Xs(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new xe(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),ue(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new xe(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),ue(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,o){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new xe(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",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new xe(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),ue(e,"tap",o=>{this._onYearTap(o)}),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,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,s,r){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(s,r))}__updateCalendars(e,o,s,r,n,a,l,c,d){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=s,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,o,s){e&&e.length&&e.forEach(r=>{r.selectedDate=o,s?r.setAttribute("theme",s):r.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,o=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+c,o);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,o):l&&this._scrollToPosition(s-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let s=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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=et.debounce(this._debouncer,bt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,s){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Ys(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(c=>{s=c});const r=(c,d,h,p)=>(c/=p/2,c<1?h/2*c*c+d:(c-=1,-h/2*(c*(c-2)-1)+d));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const d=c-n;if(d<this.scrollDuration){const h=r(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.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 o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{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 Us(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.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){pe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){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 o=this.focusableDateElement;o&&pe(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return rt(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,o||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return rt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{Rs(this,()=>{Js(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(js(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,s){this._dateAllowed(e)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),o&&s.setDate(this.focusedDate.getDate()+o),s}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),s=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==s&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const s=new Date(0,0);s.setFullYear(e.getFullYear()),o==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,s=this.maxDate){return(!o||e>=o)&&(!s||e<=s)}_isTodayAllowed(e,o){const s=new Date,r=new Date(0,0);return r.setFullYear(s.getFullYear()),r.setMonth(s.getMonth()),r.setDate(s.getDate()),this._dateAllowed(r,e,o)}};/**
3861
+ * @license
3862
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3863
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3864
+ */const bc=S`
3865
+ :host {
3866
+ display: flex;
3867
+ flex-direction: column;
3868
+ height: 100%;
3869
+ width: 100%;
3870
+ outline: none;
3871
+ }
3872
+
3873
+ [part='overlay-header'] {
3874
+ display: flex;
3875
+ flex-shrink: 0;
3876
+ flex-wrap: nowrap;
3877
+ align-items: center;
3878
+ }
3879
+
3880
+ :host(:not([fullscreen])) [part='overlay-header'] {
3881
+ display: none;
3882
+ }
3883
+
3884
+ [part='label'] {
3885
+ flex-grow: 1;
3886
+ }
3887
+
3888
+ [hidden] {
3889
+ display: none !important;
3890
+ }
3891
+
3892
+ [part='years-toggle-button'] {
3893
+ display: flex;
3894
+ }
3895
+
3896
+ #scrollers {
3897
+ display: flex;
3898
+ height: 100%;
3899
+ width: 100%;
3900
+ position: relative;
3901
+ overflow: hidden;
3902
+ }
3903
+
3904
+ :host([desktop]) ::slotted([slot='months']) {
3905
+ right: 50px;
3906
+ transform: none !important;
3907
+ }
3908
+
3909
+ :host([desktop]) ::slotted([slot='years']) {
3910
+ transform: none !important;
3911
+ }
3912
+
3913
+ :host(.animate) ::slotted([slot='months']),
3914
+ :host(.animate) ::slotted([slot='years']) {
3915
+ transition: all 200ms;
3916
+ }
3917
+
3918
+ [part='toolbar'] {
3919
+ display: flex;
3920
+ justify-content: space-between;
3921
+ z-index: 2;
3922
+ flex-shrink: 0;
3923
+ }
3924
+ `;/**
3925
+ * @license
3926
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3927
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3928
+ */R("vaadin-date-picker-overlay-content",bc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class xc extends vc(Le(Ce(At(_e)))){static get template(){return Pe`
3929
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3930
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3931
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
3932
+ <div part="toggle-button"></div>
3933
+
3934
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
3935
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
3936
+ </div>
3937
+ </div>
3938
+
3939
+ <div id="scrollers">
3940
+ <slot name="months"></slot>
3941
+ <slot name="years"></slot>
3942
+ </div>
3943
+
3944
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
3945
+ <slot name="today-button"></slot>
3946
+ <slot name="cancel-button"></slot>
3947
+ </div>
3948
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ae(xc);/**
3949
+ * @license
3950
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3951
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3952
+ */const Zs=W(i=>class extends Lo(Os(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,o){super._disabledChanged(e,o),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3953
+ * @license
3954
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3955
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3956
+ */const Gt=new WeakMap;function wc(i){return Gt.has(i)||Gt.set(i,new Set),Gt.get(i)}function Ec(i,t){const e=document.createElement("style");e.textContent=i,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Sc=W(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=wc(e);this.slotStyles.forEach(s=>{o.has(s)||(Ec(s,e),o.add(s))})}});/**
3957
+ * @license
3958
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3959
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3960
+ */const Qs=W(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
3961
+ * @license
3962
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3963
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3964
+ */const Cc=i=>class extends Qs(kt(i)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),zl||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3965
+ * @license
3966
+ * Copyright (c) 2023 Vaadin Ltd.
3967
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3968
+ */const Jt=new Map;function Ho(i){return Jt.has(i)||Jt.set(i,new WeakMap),Jt.get(i)}function er(i,t){i&&i.removeAttribute(t)}function tr(i,t){if(!i||!t)return;const e=Ho(t);if(e.has(i))return;const o=To(i.getAttribute(t));e.set(i,new Set(o))}function Ac(i,t){if(!i||!t)return;const e=Ho(t),o=e.get(i);!o||o.size===0?i.removeAttribute(t):Es(i,t,Pt(o)),e.delete(i)}function Xt(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:o,oldId:s,fromUser:r}=e,n=Ho(t),a=n.get(i);if(!r&&a){s&&a.delete(s),o&&a.add(o);return}r&&(a?o||n.delete(i):tr(i,t),er(i,t)),ja(i,t,s);const l=o||Pt(a);l&&Es(i,t,l)}function Pc(i,t){tr(i,t),er(i,t)}/**
3969
+ * @license
3970
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3971
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3972
+ */class kc{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const o=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,o,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Pc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Ac(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,o){Xt(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(t,e){Xt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Xt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3973
+ * @license
3974
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
3975
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3976
+ */class Bo extends xe{constructor(t,e,o,s={}){super(t,e,o,Mt(Tt({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(o=>{const s=o.target,r=s===this.node;o.type==="attributes"?r&&this.__updateNodeId(s):(r||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
3977
+ * @license
3978
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3979
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3980
+ */class Dc extends Bo{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:o}=this,s=!!(o&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
3981
+ * @license
3982
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3983
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3984
+ */class Tc extends Bo{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3985
+ * @license
3986
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3987
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3988
+ */class Mc extends Bo{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3989
+ * @license
3990
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3991
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3992
+ */const Oc=W(i=>class extends Le(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Mc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3993
+ * @license
3994
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3995
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3996
+ */const or=W(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
3997
+ * @license
3998
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3999
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4000
+ */const zc=i=>class extends or(Oc(Le(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new kc(this),this._helperController=new Tc(this),this._errorController=new Dc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:s}=e.detail;this.__labelChanged(o,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:s}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,s)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
4001
+ * @license
4002
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4003
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4004
+ */const Ic=W(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((o,s)=>{this._delegateAttribute(o,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((o,s)=>{this._delegateProperty(o,e[s])})}_delegateAttribute(e,o){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",o?"true":!1),typeof o=="boolean"?this.stateTarget.toggleAttribute(e,o):o?this.stateTarget.setAttribute(e,o):this.stateTarget.removeAttribute(e))}_delegateProperty(e,o){this.stateTarget&&(this.stateTarget[e]=o)}});/**
4005
+ * @license
4006
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4007
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4008
+ */const ir=W(i=>class extends Ic(or(Qs(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const s=this._hasValidConstraints(o),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
4009
+ * @license
4010
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4011
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4012
+ */const Nc=i=>class extends Sc(Zs(ir(zc(Cc(kt(i)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
4013
+ :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
4014
+ font: inherit;
4015
+ color: inherit;
4016
+ }
4017
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=et.debounce(this._preventInputDebouncer,bt.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const o=e.clipboardData.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const o=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(o){console.error(o)}}};/**
4018
+ * @license
4019
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4020
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4021
+ */class Fc extends xe{constructor(t,e){super(t,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0})}}/**
4022
+ * @license
4023
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4024
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4025
+ */class Lc{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",o=>{this.__initLabel(o.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
4026
+ * @license
4027
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4028
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4029
+ */const $c=S`
4030
+ [part='clear-button'] {
4031
+ display: none;
4032
+ cursor: default;
4033
+ }
4034
+
4035
+ [part='clear-button']::before {
4036
+ content: '\\2715';
4037
+ }
4038
+
4039
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
4040
+ display: block;
4041
+ }
4042
+ `;/**
4043
+ * @license
4044
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4045
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4046
+ */const Rc=S`
4047
+ :host {
4048
+ display: inline-flex;
4049
+ outline: none;
4050
+ }
4051
+
4052
+ :host::before {
4053
+ content: '\\2003';
4054
+ width: 0;
4055
+ display: inline-block;
4056
+ /* Size and position this element on the same vertical position as the input-field element
4057
+ to make vertical align for the host element work as expected */
4058
+ }
4059
+
4060
+ :host([hidden]) {
4061
+ display: none !important;
4062
+ }
4063
+
4064
+ :host(:not([has-label])) [part='label'] {
4065
+ display: none;
4066
+ }
4067
+
4068
+ @media (forced-colors: active) {
4069
+ :host(:not([readonly])) [part='input-field'] {
4070
+ outline: 1px solid;
4071
+ outline-offset: -1px;
4072
+ }
4073
+ :host([focused]) [part='input-field'] {
4074
+ outline-width: 2px;
4075
+ }
4076
+ :host([disabled]) [part='input-field'] {
4077
+ outline-color: GrayText;
4078
+ }
4079
+ }
4080
+ `;/**
4081
+ * @license
4082
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4083
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4084
+ */const Hc=S`
4085
+ [class$='container'] {
4086
+ display: flex;
4087
+ flex-direction: column;
4088
+ min-width: 100%;
4089
+ max-width: 100%;
4090
+ width: var(--vaadin-field-default-width, 12em);
4091
+ }
4092
+ `;/**
4093
+ * @license
4094
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4095
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4096
+ */const Bc=[Rc,Hc,$c];/**
4097
+ * @license
4098
+ * Copyright (c) 2023 Vaadin Ltd.
4099
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4100
+ */const jc=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,o){if(!o||e===void 0)return;const{classList:s}=o;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n)}const r=typeof e=="string"?e.split(" "):[];r.length>0&&s.add(...r),this.__previousClasses=r}};/**
4101
+ * @license
4102
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4103
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4104
+ */class Yc{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")}}/**
4105
+ * @license
4106
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4107
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4108
+ */const Uc=i=>class extends jc(Le(Zs(ir(kt(i))))){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 o=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,r=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?je(this.referenceDate):new Date;a=Kl(l,a,n,r)}}else o.length===2?(n=parseInt(o[0])-1,r=parseInt(o[1])):o.length===1&&(r=parseInt(o[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},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:Hs},_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 Xs(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new Yc(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 o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",s=>{this.__userConfirmedDate=!0,this._selectDate(s.detail.date),this._close()}),o.addEventListener("date-selected",s=>{this.__userConfirmedDate=!!s.detail.date,this._selectDate(s.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=je(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ys(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||tt(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),o&&s&&r}_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 o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,s,r,n,a){return!e||o&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(d,h="00")=>(h+d).substr((h+d).length-h.length);let s="",r="0000",n=e.getFullYear();n<0?(n=-n,s="-",r="000000"):e.getFullYear()>=1e4&&(s="+",r="000000");const a=s+o(n,r),l=o(e.getMonth()+1),c=o(e.getDate());return[a,l,c].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,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const s=je(e);if(e&&!s){this.value=o;return}e?pe(this._selectedDate,s)||(this._selectedDate=s,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,s,r,n,a,l,c){e&&(e.i18n=o,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=c)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const s=e.focusedDate||o;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Bs(n)}_getInitialPosition(){const e=je(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||tt(o,this._minDate,this._maxDate)?o:js(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(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,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_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 o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===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,pe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return je(e)}};/**
4109
+ * @license
4110
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4111
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4112
+ */const Vc=S`
4113
+ :host([opened]) {
4114
+ pointer-events: auto;
4115
+ }
4116
+
4117
+ :host([dir='rtl']) [part='input-field'] {
4118
+ direction: ltr;
4119
+ }
4120
+
4121
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
4122
+ direction: rtl;
4123
+ text-align: left;
4124
+ }
4125
+ `;/**
4126
+ * @license
4127
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4128
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4129
+ */R("vaadin-date-picker",[Bc,Vc],{moduleId:"vaadin-date-picker-styles"});class Wc extends Uc(Nc(Ce(ws(_e)))){static get is(){return"vaadin-date-picker"}static get template(){return Pe`
4130
+ <div class="vaadin-date-picker-container">
4131
+ <div part="label">
4132
+ <slot name="label"></slot>
4133
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
4134
+ </div>
4135
+
4136
+ <vaadin-input-container
4137
+ part="input-field"
4138
+ readonly="[[readonly]]"
4139
+ disabled="[[disabled]]"
4140
+ invalid="[[invalid]]"
4141
+ theme$="[[_theme]]"
4142
+ >
4143
+ <slot name="prefix" slot="prefix"></slot>
4144
+ <slot name="input"></slot>
4145
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
4146
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
4147
+ </vaadin-input-container>
4148
+
4149
+ <div part="helper-text">
4150
+ <slot name="helper"></slot>
4151
+ </div>
4152
+
4153
+ <div part="error-message">
4154
+ <slot name="error-message"></slot>
4155
+ </div>
4156
+ </div>
4157
+
4158
+ <vaadin-date-picker-overlay
4159
+ id="overlay"
4160
+ fullscreen$="[[_fullscreen]]"
4161
+ theme$="[[_theme]]"
4162
+ opened="{{opened}}"
4163
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
4164
+ on-vaadin-overlay-open="_onOverlayOpened"
4165
+ on-vaadin-overlay-closing="_onOverlayClosed"
4166
+ restore-focus-on-close
4167
+ restore-focus-node="[[inputElement]]"
4168
+ ></vaadin-date-picker-overlay>
4169
+
4170
+ <slot name="tooltip"></slot>
4171
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Fc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lc(this.inputElement,this._labelController)),this._tooltipController=new Cs(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}}ae(Wc);var sr={exports:{}};(function(i,t){(function(e,o){i.exports=o()})(u.commonjsGlobal,function(){var e=1e3,o=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",c="day",d="week",h="month",p="quarter",m="year",y="date",P="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var g=["th","st","nd","rd"],f=x%100;return"["+x+(g[(f-20)%10]||g[f]||g[0])+"]"}},Y=function(x,g,f){var v=String(x);return!v||v.length>=g?x:""+Array(g+1-v.length).join(f)+x},V={s:Y,z:function(x){var g=-x.utcOffset(),f=Math.abs(g),v=Math.floor(f/60),_=f%60;return(g<=0?"+":"-")+Y(v,2,"0")+":"+Y(_,2,"0")},m:function x(g,f){if(g.date()<f.date())return-x(f,g);var v=12*(f.year()-g.year())+(f.month()-g.month()),_=g.clone().add(v,h),E=f-_<0,w=g.clone().add(v+(E?-1:1),h);return+(-(v+(f-_)/(E?_-w:w-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:y,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},U="en",Z={};Z[U]=F;var le="$isDayjsObject",ie=function(x){return x instanceof Q||!(!x||!x[le])},se=function x(g,f,v){var _;if(!g)return U;if(typeof g=="string"){var E=g.toLowerCase();Z[E]&&(_=E),f&&(Z[E]=f,_=E);var w=g.split("-");if(!_&&w.length>1)return x(w[0])}else{var k=g.name;Z[k]=g,_=k}return!v&&_&&(U=_),_||!v&&U},D=function(x,g){if(ie(x))return x.clone();var f=typeof g=="object"?g:{};return f.date=x,f.args=arguments,new Q(f)},A=V;A.l=se,A.i=ie,A.w=function(x,g){return D(x,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var Q=function(){function x(f){this.$L=se(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[le]=!0}var g=x.prototype;return g.parse=function(f){this.$d=function(v){var _=v.date,E=v.utc;if(_===null)return new Date(NaN);if(A.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var w=_.match(O);if(w){var k=w[2]-1||0,z=(w[7]||"0").substring(0,3);return E?new Date(Date.UTC(w[1],k,w[3]||1,w[4]||0,w[5]||0,w[6]||0,z)):new Date(w[1],k,w[3]||1,w[4]||0,w[5]||0,w[6]||0,z)}}return new Date(_)}(f),this.init()},g.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return this.$d.toString()!==P},g.isSame=function(f,v){var _=D(f);return this.startOf(v)<=_&&_<=this.endOf(v)},g.isAfter=function(f,v){return D(f)<this.startOf(v)},g.isBefore=function(f,v){return this.endOf(v)<D(f)},g.$g=function(f,v,_){return A.u(f)?this[v]:this.set(_,f)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(f,v){var _=this,E=!!A.u(v)||v,w=A.p(f),k=function(X,T){var $=A.w(_.$u?Date.UTC(_.$y,T,X):new Date(_.$y,T,X),_);return E?$:$.endOf(c)},z=function(X,T){return A.w(_.toDate()[X].apply(_.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(T)),_)},L=this.$W,H=this.$M,K=this.$D,re="set"+(this.$u?"UTC":"");switch(w){case m:return E?k(1,0):k(31,11);case h:return E?k(1,H):k(0,H+1);case d:var ne=this.$locale().weekStart||0,ee=(L<ne?L+7:L)-ne;return k(E?K-ee:K+(6-ee),H);case c:case y:return z(re+"Hours",0);case l:return z(re+"Minutes",1);case a:return z(re+"Seconds",2);case n:return z(re+"Milliseconds",3);default:return this.clone()}},g.endOf=function(f){return this.startOf(f,!1)},g.$set=function(f,v){var _,E=A.p(f),w="set"+(this.$u?"UTC":""),k=(_={},_[c]=w+"Date",_[y]=w+"Date",_[h]=w+"Month",_[m]=w+"FullYear",_[l]=w+"Hours",_[a]=w+"Minutes",_[n]=w+"Seconds",_[r]=w+"Milliseconds",_)[E],z=E===c?this.$D+(v-this.$W):v;if(E===h||E===m){var L=this.clone().set(y,1);L.$d[k](z),L.init(),this.$d=L.set(y,Math.min(this.$D,L.daysInMonth())).$d}else k&&this.$d[k](z);return this.init(),this},g.set=function(f,v){return this.clone().$set(f,v)},g.get=function(f){return this[A.p(f)]()},g.add=function(f,v){var _,E=this;f=Number(f);var w=A.p(v),k=function(H){var K=D(E);return A.w(K.date(K.date()+Math.round(H*f)),E)};if(w===h)return this.set(h,this.$M+f);if(w===m)return this.set(m,this.$y+f);if(w===c)return k(1);if(w===d)return k(7);var z=(_={},_[a]=o,_[l]=s,_[n]=e,_)[w]||1,L=this.$d.getTime()+f*z;return A.w(L,this)},g.subtract=function(f,v){return this.add(-1*f,v)},g.format=function(f){var v=this,_=this.$locale();if(!this.isValid())return _.invalidDate||P;var E=f||"YYYY-MM-DDTHH:mm:ssZ",w=A.z(this),k=this.$H,z=this.$m,L=this.$M,H=_.weekdays,K=_.months,re=_.meridiem,ne=function(T,$,b,B){return T&&(T[$]||T(v,E))||b[$].slice(0,B)},ee=function(T){return A.s(k%12||12,T,"0")},X=re||function(T,$,b){var B=T<12?"AM":"PM";return b?B.toLowerCase():B};return E.replace(N,function(T,$){return $||function(b){switch(b){case"YY":return String(v.$y).slice(-2);case"YYYY":return A.s(v.$y,4,"0");case"M":return L+1;case"MM":return A.s(L+1,2,"0");case"MMM":return ne(_.monthsShort,L,K,3);case"MMMM":return ne(K,L);case"D":return v.$D;case"DD":return A.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ne(_.weekdaysMin,v.$W,H,2);case"ddd":return ne(_.weekdaysShort,v.$W,H,3);case"dddd":return H[v.$W];case"H":return String(k);case"HH":return A.s(k,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return X(k,z,!0);case"A":return X(k,z,!1);case"m":return String(z);case"mm":return A.s(z,2,"0");case"s":return String(v.$s);case"ss":return A.s(v.$s,2,"0");case"SSS":return A.s(v.$ms,3,"0");case"Z":return w}return null}(T)||w.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(f,v,_){var E,w=this,k=A.p(v),z=D(f),L=(z.utcOffset()-this.utcOffset())*o,H=this-z,K=function(){return A.m(w,z)};switch(k){case m:E=K()/12;break;case h:E=K();break;case p:E=K()/3;break;case d:E=(H-L)/6048e5;break;case c:E=(H-L)/864e5;break;case l:E=H/s;break;case a:E=H/o;break;case n:E=H/e;break;default:E=H}return _?E:A.a(E)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return Z[this.$L]},g.locale=function(f,v){if(!f)return this.$L;var _=this.clone(),E=se(f,v,!0);return E&&(_.$L=E),_},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},x}(),ye=Q.prototype;return D.prototype=ye,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",c],["$M",h],["$y",m],["$D",y]].forEach(function(x){ye[x[1]]=function(g){return this.$g(g,x[0],x[1])}}),D.extend=function(x,g){return x.$i||(x(g,Q,D),x.$i=!0),D},D.locale=se,D.isDayjs=ie,D.unix=function(x){return D(1e3*x)},D.en=Z[U],D.Ls=Z,D.p={},D})})(sr);var qc=sr.exports;const mt=u.getDefaultExportFromCjs(qc);function zi(i,t){u.addMessages(i,t)}function Kc(i){u.$locale.set(i)}const Ii={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?"}};function Gc(i){u.append_styles(i,"svelte-1pt7zoa",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function Ni(i,t,e){const o=i.slice();return o[47]=t[e],o}function Jc(i){let t,e,o,s,r,n,a,l,c,d,h=i[18]("titleSelfExclusion")+"",p,m,y;return{c(){t=u.element("div"),e=u.svg_element("svg"),o=u.svg_element("defs"),s=u.svg_element("style"),r=u.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=u.svg_element("g"),a=u.svg_element("g"),l=u.svg_element("path"),c=u.space(),d=u.element("h2"),p=u.text(h),u.attr(l,"class","aaa"),u.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),u.attr(l,"transform","translate(15 15) rotate(180)"),u.attr(a,"transform","translate(20 158)"),u.attr(n,"transform","translate(-20 -158)"),u.attr(e,"xmlns","http://www.w3.org/2000/svg"),u.attr(e,"width","15"),u.attr(e,"height","15"),u.attr(e,"viewBox","0 0 15 15"),u.attr(d,"class","PlayerSelfExclusionTitleMobile"),u.attr(t,"class","MenuReturnButton")},m(P,O){u.insert(P,t,O),u.append(t,e),u.append(e,o),u.append(o,s),u.append(s,r),u.append(e,n),u.append(n,a),u.append(a,l),u.append(t,c),u.append(t,d),u.append(d,p),m||(y=u.listen(t,"click",i[28]),m=!0)},p(P,O){O[0]&262144&&h!==(h=P[18]("titleSelfExclusion")+"")&&u.set_data(p,h)},d(P){P&&u.detach(t),m=!1,y()}}}function Fi(i){let t,e=i[18](`${i[47].key}`)+"",o,s,r;function n(){return i[30](i[47])}return{c(){t=u.element("div"),o=u.text(e)},m(a,l){u.insert(a,t,l),u.append(t,o),s||(r=u.listen(t,"click",n),s=!0)},p(a,l){i=a,l[0]&262400&&e!==(e=i[18](`${i[47].key}`)+"")&&u.set_data(o,e)},d(a){a&&u.detach(t),s=!1,r()}}}function Li(i){let t,e,o=i[18]("duration")+"",s,r,n,a=i[18]("dateInstructions")+"",l,c,d,h,p;return{c(){t=u.element("div"),e=u.element("label"),s=u.text(o),r=u.space(),n=u.element("span"),l=u.text(a),c=u.space(),d=u.element("strong"),d.innerHTML="MM/DD/YYYY<strong></strong>",h=u.space(),p=u.element("vaadin-date-picker"),u.attr(e,"for","SelfExclusionDate"),u.attr(n,"class","SelfExclusionDateInstructions"),u.set_custom_element_data(p,"min",i[9]),u.set_custom_element_data(p,"max",i[10]),u.set_custom_element_data(p,"value",i[9]),u.attr(t,"class","SelfExclusionDateWrapper "+(i[19]?"SelfExclusionDateWrapperMobile":""))},m(m,y){u.insert(m,t,y),u.append(t,e),u.append(e,s),u.append(t,r),u.append(t,n),u.append(n,l),u.append(n,c),u.append(n,d),u.append(t,h),u.append(t,p),i[31](p)},p(m,y){y[0]&262144&&o!==(o=m[18]("duration")+"")&&u.set_data(s,o),y[0]&262144&&a!==(a=m[18]("dateInstructions")+"")&&u.set_data(l,a),y[0]&512&&u.set_custom_element_data(p,"min",m[9]),y[0]&1024&&u.set_custom_element_data(p,"max",m[10]),y[0]&512&&u.set_custom_element_data(p,"value",m[9])},d(m){m&&u.detach(t),i[31](null)}}}function Xc(i){let t,e,o=i[18]("temporarySelfExclusion",{values:{date:i[11]}})+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&264192&&o!==(o=r[18]("temporarySelfExclusion",{values:{date:r[11]}})+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function Zc(i){let t,e,o=i[18]("noPeriodSelected")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&262144&&o!==(o=r[18]("noPeriodSelected")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function Qc(i){let t,e,o=i[18]("permanentSelfExclusion")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&262144&&o!==(o=r[18]("permanentSelfExclusion")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function eu(i){let t,e,o,s;return{c(){t=u.element("player-account-modal"),e=u.element("player-account-general-confirmation-modal"),u.set_custom_element_data(e,"modaltitle",o=i[18]("confirmationModalTitle")),u.set_custom_element_data(e,"modaltext",i[13]),u.set_custom_element_data(e,"hascancelbutton",!1),u.set_custom_element_data(e,"modalconfirmevent",s={type:"SetSelfExclusion",selfExclusionPeriod:i[12],selfExclusionExpiryDate:i[11]}),u.set_custom_element_data(e,"lang",i[0]),u.set_custom_element_data(t,"clientstyling",i[4]),u.set_custom_element_data(t,"clientstylingurl",i[5]),u.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(r,n){u.insert(r,t,n),u.append(t,e)},p(r,n){n[0]&262144&&o!==(o=r[18]("confirmationModalTitle"))&&u.set_custom_element_data(e,"modaltitle",o),n[0]&8192&&u.set_custom_element_data(e,"modaltext",r[13]),n[0]&6144&&s!==(s={type:"SetSelfExclusion",selfExclusionPeriod:r[12],selfExclusionExpiryDate:r[11]})&&u.set_custom_element_data(e,"modalconfirmevent",s),n[0]&1&&u.set_custom_element_data(e,"lang",r[0]),n[0]&16&&u.set_custom_element_data(t,"clientstyling",r[4]),n[0]&32&&u.set_custom_element_data(t,"clientstylingurl",r[5])},d(r){r&&u.detach(t)}}}function tu(i){let t,e,o,s,r=i[18]("titleSelfExclusion")+"",n,a,l,c,d=i[18]("selfExclusionText",{values:{operatorname:i[1],baseurl:i[3],lang:i[0]}})+"",h,p,m=i[18]("selfExclusionEmailText")+"",y,P,O,N,F,Y,V,U,Z,le=i[18](`${i[12]}`)+"",ie,se,D,A,Q,ye,x,g,f,v,_,E,w,k=i[18]("save")+"",z,L,H,K,re,ne,ee=i[19]&&Jc(i),X=u.ensure_array_like(i[8]),T=[];for(let C=0;C<X.length;C+=1)T[C]=Fi(Ni(i,X,C));let $=i[15]&&Li(i);function b(C,j){return C[14]?Qc:C[16]?Xc:Zc}let B=b(i),I=B(i),ce=i[20]&&eu(i);return{c(){t=u.element("div"),e=u.element("form"),ee&&ee.c(),o=u.space(),s=u.element("h2"),n=u.text(r),a=u.space(),l=u.element("div"),c=u.element("p"),h=u.space(),p=u.element("p"),y=u.text(m),P=u.space(),O=u.element("a"),N=u.text(i[2]),Y=u.space(),V=u.element("div"),U=u.element("div"),Z=u.element("p"),ie=u.text(le),se=u.space(),D=u.svg_element("svg"),A=u.svg_element("g"),Q=u.svg_element("path"),ye=u.space(),x=u.element("div");for(let C=0;C<T.length;C+=1)T[C].c();g=u.space(),$&&$.c(),f=u.space(),v=u.element("div"),I.c(),_=u.space(),E=u.element("div"),w=u.element("button"),z=u.text(k),K=u.space(),ce&&ce.c(),u.attr(s,"class","PlayerSelfExclusionTitle "+(i[19]?"PlayerSelfExclusionTitleNone":"")),u.attr(c,"class","SelfExclusionDescriptionText"),u.attr(O,"href",F="mailto:"+i[2]),u.attr(p,"class","SelfExclusionDescriptionText"),u.attr(l,"class","SelfExclusionDescription "+(i[19]?"SelfExclusionDescriptionMobile":"")),u.attr(Q,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),u.attr(Q,"stroke-linecap","round"),u.attr(D,"xmlns","http://www.w3.org/2000/svg"),u.attr(D,"xmlns:xlink","http://www.w3.org/1999/xlink"),u.attr(D,"version","1.1"),u.attr(D,"viewBox","0 0 100 100"),u.attr(D,"xml:space","preserve"),u.attr(D,"class","SelfExclusionConfigIcon"),u.toggle_class(D,"active",i[17]),u.attr(U,"class","SelfExclusionConfigLabel"),u.attr(x,"class","SelfExclusionDropDown"),u.toggle_class(x,"active",i[17]),u.attr(V,"class","SelfExclusionConfigWrapper "+(i[19]?"SelfExclusionConfigWrapperMobile":"")),u.toggle_class(V,"active",i[17]),u.attr(v,"class","SelfExclusionDescription "+(i[19]?"SelfExclusionDescriptionMobile":"")),u.attr(w,"class",L="SelfExclusionSave "+(i[16]?"active":"")),w.disabled=H=!i[16],u.attr(E,"class","SelfExclusionActionButtons "+(i[19]?"SelfExclusionActionButtonsMobile":"")),u.attr(e,"class","SelfExclusionWrapper "+(i[19]?"SelfExclusionWrapperMobile":""))},m(C,j){u.insert(C,t,j),u.append(t,e),ee&&ee.m(e,null),u.append(e,o),u.append(e,s),u.append(s,n),u.append(e,a),u.append(e,l),u.append(l,c),c.innerHTML=d,u.append(l,h),u.append(l,p),u.append(p,y),u.append(p,P),u.append(p,O),u.append(O,N),u.append(e,Y),u.append(e,V),u.append(V,U),u.append(U,Z),u.append(Z,ie),u.append(U,se),u.append(U,D),u.append(D,A),u.append(A,Q),u.append(V,ye),u.append(V,x);for(let G=0;G<T.length;G+=1)T[G]&&T[G].m(x,null);u.append(e,g),$&&$.m(e,null),u.append(e,f),u.append(e,v),I.m(v,null),u.append(e,_),u.append(e,E),u.append(E,w),u.append(w,z),u.append(t,K),ce&&ce.m(t,null),i[33](t),re||(ne=[u.listen(U,"click",i[29]),u.listen(w,"click",i[32])],re=!0)},p(C,j){if(C[19]&&ee.p(C,j),j[0]&262144&&r!==(r=C[18]("titleSelfExclusion")+"")&&u.set_data(n,r),j[0]&262155&&d!==(d=C[18]("selfExclusionText",{values:{operatorname:C[1],baseurl:C[3],lang:C[0]}})+"")&&(c.innerHTML=d),j[0]&262144&&m!==(m=C[18]("selfExclusionEmailText")+"")&&u.set_data(y,m),j[0]&4&&u.set_data(N,C[2]),j[0]&4&&F!==(F="mailto:"+C[2])&&u.attr(O,"href",F),j[0]&266240&&le!==(le=C[18](`${C[12]}`)+"")&&u.set_data(ie,le),j[0]&131072&&u.toggle_class(D,"active",C[17]),j[0]&4456704){X=u.ensure_array_like(C[8]);let G;for(G=0;G<X.length;G+=1){const jo=Ni(C,X,G);T[G]?T[G].p(jo,j):(T[G]=Fi(jo),T[G].c(),T[G].m(x,null))}for(;G<T.length;G+=1)T[G].d(1);T.length=X.length}j[0]&131072&&u.toggle_class(x,"active",C[17]),j[0]&131072&&u.toggle_class(V,"active",C[17]),C[15]?$?$.p(C,j):($=Li(C),$.c(),$.m(e,f)):$&&($.d(1),$=null),B===(B=b(C))&&I?I.p(C,j):(I.d(1),I=B(C),I&&(I.c(),I.m(v,null))),j[0]&262144&&k!==(k=C[18]("save")+"")&&u.set_data(z,k),j[0]&65536&&L!==(L="SelfExclusionSave "+(C[16]?"active":""))&&u.attr(w,"class",L),j[0]&65536&&H!==(H=!C[16])&&(w.disabled=H),C[20]&&ce.p(C,j)},i:u.noop,o:u.noop,d(C){C&&u.detach(t),ee&&ee.d(),u.destroy_each(T,C),$&&$.d(),I.d(),ce&&ce.d(),i[33](null),re=!1,u.run_all(ne)}}}function ou(i,t,e){let o;u.component_subscribe(i,u.$format,b=>e(18,o=b));let{endpoint:s="",lang:r="en",operator:n="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:c="",clientstylingurl:d="",translationurl:h="",hasconfirmationmodal:p="false"}=t,m,y,P=[],O=window.navigator.userAgent,N,F,Y="",V="",U="selectAPeriod",Z="",le=u.getDevice(O)!=="PC",ie=!1,se=!1,D=!1,A=!1,Q=p==="true";const ye=()=>{fetch(h).then(B=>B.json()).then(B=>{Object.keys(B).forEach(I=>{zi(I,B[I])})}).catch(B=>{console.log(B)})};Object.keys(Ii).forEach(b=>{zi(b,Ii[b])});const x=()=>{let b=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(I=>g(I)).then(I=>{e(8,P=I.periods)}).catch(I=>{console.log(I)})},g=b=>{if(b.status>=300)throw new Error("There was an error fetching the config");return b.json()},f=()=>{e(17,A=!A)},v=b=>{switch(V=b.text,e(12,U=b.key),e(16,D=!0),e(17,A=!1),e(14,ie=!1),e(15,se=!1),V){case"Until":e(15,se=!0),e(9,N=mt().add(6,"months").format("YYYY-MM-DD")),e(10,F=mt().add(5,"years").format("YYYY-MM-DD")),e(11,Y=N);break;case"Permanent":e(14,ie=!ie);break;default:const[B,I]=V.split(" "),ce=I.includes("Day")?"days":I.includes("Month")?"months":I.includes("Year")?"years":null;if(!ce)return;e(11,Y=mt().add(Number(B),ce).format("YYYY-MM-DD"));break}Q&&_()},_=()=>{if(!Q){e(13,Z="");return}e(13,Z=se?o("confirmationModalTextUntil",{values:{date:Y}}):o("confirmationModalTextPeriod",{values:{period:o(V)}}))},E=b=>{b.preventDefault(),Q?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:U,selfExclusionExpiryDate:Y},window.location.href)},w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:le},window.location.href)},k=b=>{e(11,Y=b.target.value)},z=()=>{y.addEventListener("change",k,!1)},L=()=>{let b=document.createElement("style");b.innerHTML=c,m.appendChild(b)},H=()=>{let b=new URL(d),B=document.createElement("style");fetch(b.href).then(I=>I.text()).then(I=>{B.innerHTML=I,setTimeout(()=>{m.appendChild(B)},1)})};u.onMount(()=>()=>{y.removeEventListener("change",k)});const K=()=>{Kc(r)},re=()=>w(),ne=()=>f(),ee=b=>v(b);function X(b){u.binding_callbacks[b?"unshift":"push"](()=>{y=b,e(7,y)})}const T=b=>E(b);function $(b){u.binding_callbacks[b?"unshift":"push"](()=>{m=b,e(6,m)})}return i.$$set=b=>{"endpoint"in b&&e(25,s=b.endpoint),"lang"in b&&e(0,r=b.lang),"operator"in b&&e(1,n=b.operator),"supportemail"in b&&e(2,a=b.supportemail),"baseurl"in b&&e(3,l=b.baseurl),"clientstyling"in b&&e(4,c=b.clientstyling),"clientstylingurl"in b&&e(5,d=b.clientstylingurl),"translationurl"in b&&e(26,h=b.translationurl),"hasconfirmationmodal"in b&&e(27,p=b.hasconfirmationmodal)},i.$$.update=()=>{i.$$.dirty[0]&128&&y&&z(),i.$$.dirty[0]&33554432&&s&&x(),i.$$.dirty[0]&1&&r&&K(),i.$$.dirty[0]&96&&d&&m&&H(),i.$$.dirty[0]&80&&c&&m&&L(),i.$$.dirty[0]&67108864&&h&&ye()},Q&&_(),[r,n,a,l,c,d,m,y,P,N,F,Y,U,Z,ie,se,D,A,o,le,Q,f,v,E,w,s,h,p,re,ne,ee,X,T,$]}class rr extends u.SvelteComponent{constructor(t){super(),u.init(this,t,ou,tu,u.safe_not_equal,{endpoint:25,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,translationurl:26,hasconfirmationmodal:27},Gc,[-1,-1])}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),u.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),u.flush()}get operator(){return this.$$.ctx[1]}set operator(t){this.$$set({operator:t}),u.flush()}get supportemail(){return this.$$.ctx[2]}set supportemail(t){this.$$set({supportemail:t}),u.flush()}get baseurl(){return this.$$.ctx[3]}set baseurl(t){this.$$set({baseurl:t}),u.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[26]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}get hasconfirmationmodal(){return this.$$.ctx[27]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),u.flush()}}u.create_custom_element(rr,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);const iu=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountSelfExclusion_ce=iu;exports.dayjs=mt;