@everymatrix/player-account-controller 1.53.11 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/components/{GeneralLogout-Ddt-oH9k.js → GeneralLogout-CsWa2j6i.js} +1131 -1094
  2. package/components/GeneralLogout-DfI2_eQe.cjs +8 -0
  3. package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-D_8K8e-E.js} +35 -34
  4. package/components/PlayerAccountBettingHistory-ldAp8-yN.cjs +1 -0
  5. package/components/PlayerAccountBiometrics-Cft2jzuJ.cjs +1 -0
  6. package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-FWYyFKmB.js} +1 -1
  7. package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-BJP8eejl.js} +1 -1
  8. package/components/PlayerAccountClosure-DvHhtHhl.cjs +1 -0
  9. package/components/PlayerAccountController-DDLO4xVW.cjs +1 -0
  10. package/components/{PlayerAccountController-BZYAo3oo.js → PlayerAccountController-DQGj69Re.js} +353 -336
  11. package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-Dt8hOZzW.js} +3 -3
  12. package/components/PlayerAccountGamingLimits-EQC_UZag.cjs +1 -0
  13. package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-B6SPYMpk.js} +1 -1
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Ciz1fSFW.cjs +1 -0
  15. package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BG2VPqUz.js} +16 -16
  16. package/components/PlayerAccountGamingLimitsGroupEdit-CLjUmEQv.cjs +10 -0
  17. package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-65MLJ2rD.js} +132 -121
  18. package/components/PlayerAccountGamingLimitsHistory2-CG4RnfZE.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard-Au2vobro.cjs +1 -0
  20. package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-CqTAvCh7.js} +4 -4
  21. package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-C3dTjA-p.js} +768 -737
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-CMnCgRU1.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-BtbGIQFb.cjs +1 -0
  24. package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-diUVGesC.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BmDihzLr.js} +81 -75
  26. package/components/PlayerAccountGamingLimitsWrapper2-CW3N7E83.cjs +1 -0
  27. package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-D3tbAl7Q.js} +1 -1
  28. package/components/PlayerAccountGeneralConfirmationModal-xMxALug3.cjs +1 -0
  29. package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-CbXhpL1a.js} +67 -66
  30. package/components/PlayerAccountMenu-DHGBVm64.cjs +1 -0
  31. package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-5TJbkUF8.js} +1 -1
  32. package/components/PlayerAccountModal-BitbPM3Z.cjs +1 -0
  33. package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-BVY-SXyT.js} +1 -1
  34. package/components/PlayerAccountNotifications-DDu6ZWkh.cjs +1 -0
  35. package/components/PlayerAccountSelfExclusion-9vzbBY28.cjs +3828 -0
  36. package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-BGfuEA4r.js} +1572 -1488
  37. package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-BDDMm0XX.js} +4 -4
  38. package/components/PlayerAccountTimeout-f4vPyQE-.cjs +1 -0
  39. package/components/PlayerActiveBonuses-BVQwAh2z.cjs +1 -0
  40. package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-D0RUTvjl.js} +120 -119
  41. package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-CU67pLmG.js} +2 -2
  42. package/components/PlayerBonusCard-UTTIEBwb.cjs +1 -0
  43. package/components/{PlayerBonusHistory-BxBiQwQf.js → PlayerBonusHistory-BLedlLHg.js} +53 -53
  44. package/components/PlayerBonusHistory-EXOvKzDr.cjs +1 -0
  45. package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-8ZD6eOj-.js} +1 -1
  46. package/components/PlayerChangePassword-XpKJjnFu.cjs +3 -0
  47. package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-D5Xuk21T.js} +1 -1
  48. package/components/PlayerDeposit-Do7vb_4b.cjs +1 -0
  49. package/components/PlayerGamingHistory-OEU1L3Q2.cjs +1 -0
  50. package/components/{PlayerGamingHistory-BtQ73TId.js → PlayerGamingHistory-tb-rMGdz.js} +388 -375
  51. package/components/PlayerPendingWithdrawals-Bu2MOezw.cjs +1 -0
  52. package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-DuN3Qn3P.js} +1 -1
  53. package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-DmKFg0dn.js} +549 -532
  54. package/components/PlayerProfileInfo-lMeb2jBi.cjs +1 -0
  55. package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BUW8tvj3.js} +191 -175
  56. package/components/PlayerRealityCheck-CA0P_3BC.cjs +1 -0
  57. package/components/PlayerTransactionHistory-CvZcvyBx.cjs +1 -0
  58. package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-hGi2tOL2.js} +1 -1
  59. package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-CR3Xpytk.js} +1 -1
  60. package/components/PlayerWithdrawal-DxLwjX7x.cjs +1 -0
  61. package/es2015/player-account-controller.cjs +1 -0
  62. package/es2015/player-account-controller.js +16 -0
  63. package/package.json +33 -12
  64. package/stencil/active-mixin-59dfae2a-1hMz67mM.cjs +1519 -0
  65. package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → active-mixin-59dfae2a-CJN1Jc-g.js} +776 -745
  66. package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
  67. package/stencil/{checkbox-group-input_9-CMFoK7_E.js → checkbox-group-input_9-DQoOMgN8.js} +1942 -1873
  68. package/stencil/checkbox-group-input_9-DiXERGqn.cjs +4193 -0
  69. package/stencil/{general-input-DnFPstQP.js → general-input-bzWxIJkt.js} +1 -1
  70. package/stencil/general-input-fzGwoSoE.cjs +1 -0
  71. package/stencil/index-062e829b-CpXLBOEz.cjs +1 -0
  72. package/stencil/{index-062e829b-DAFsZs6D.js → index-062e829b-DPj_pEuI.js} +236 -220
  73. package/stencil/index-33f005e1-BS5PFnj3.cjs +1 -0
  74. package/stencil/{index-33f005e1-fFxPaeNy.js → index-33f005e1-DGGQe5wK.js} +239 -223
  75. package/stencil/{index-9b3245b3-rzHgwqlB.js → index-9b3245b3-3zj7bxxu.js} +193 -166
  76. package/stencil/index-9b3245b3-ByXtSZIM.cjs +1 -0
  77. package/stencil/{index-fc58390d-BSwfXuUs.js → index-fc58390d-DeoeGpBS.js} +294 -267
  78. package/stencil/index-fc58390d-DgBOSsU7.cjs +1 -0
  79. package/stencil/locale-B5abSHU_.cjs +1 -0
  80. package/stencil/password-input_2-DvDzz75b.cjs +1248 -0
  81. package/stencil/{password-input_2-Bb9Q6Fe0.js → password-input_2-Dx1lICIg.js} +154 -136
  82. package/stencil/player-change-password-gm2-98dcb7bc-CCEw2GA2.cjs +1 -0
  83. package/stencil/{player-change-password-gm2-98dcb7bc-gLcZhl3S.js → player-change-password-gm2-98dcb7bc-F9HM0T8d.js} +1 -1
  84. package/stencil/player-change-password-gm2-BEYcuzS-.cjs +1 -0
  85. package/stencil/player-change-password-gm2-NWnv4CCw.js +25 -0
  86. package/stencil/player-kyc-verification-_iT3bbO9.cjs +180 -0
  87. package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-o-RUWyY4.js} +83 -61
  88. package/stencil/{toggle-checkbox-input-CCLW6-uK.js → toggle-checkbox-input-BCrxxTpc.js} +1 -1
  89. package/stencil/toggle-checkbox-input-BYoIi-jG.cjs +1 -0
  90. package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
  91. package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-DEMVRyvk.js} +197 -175
  92. package/stencil/user-deposit-withdrawal-_jt0Ivg5.cjs +59 -0
  93. package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-CevHOCcm.js} +107 -81
  94. package/stencil/user-transaction-history-U0c__t1q.cjs +1 -0
  95. package/esnext/player-account-controller.js +0 -14
  96. package/stencil/player-change-password-gm2-DR3e2gh5.js +0 -7
@@ -0,0 +1,3828 @@
1
+ "use strict";var Za=Object.defineProperty,Xa=Object.defineProperties;var Qa=Object.getOwnPropertyDescriptors;var wn=Object.getOwnPropertySymbols;var el=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;var An=(n,t,e)=>t in n?Za(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Pi=(n,t)=>{for(var e in t||(t={}))el.call(t,e)&&An(n,e,t[e]);if(wn)for(var e of wn(t))tl.call(t,e)&&An(n,e,t[e]);return n},Ti=(n,t)=>Xa(n,Qa(t));var Ce=(n,t,e)=>new Promise((i,s)=>{var o=l=>{try{a(e.next(l))}catch(d){s(d)}},r=l=>{try{a(e.throw(l))}catch(d){s(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,r);a((e=e.apply(n,t)).next())});const c=require("./GeneralLogout-DfI2_eQe.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 ue(n){const t=customElements.get(n.is);if(!t)customElements.define(n.is,n);else{const e=t.version;e&&n.version&&e===n.version?console.warn(`The component ${n.is} has been loaded twice`):console.error(`Tried to define ${n.is} version ${n.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 il=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};ue(il);/**
10
+ * @license
11
+ * Copyright 2019 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const Kt=window,Vs=Kt.ShadowRoot&&(Kt.ShadyCSS===void 0||Kt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ys=Symbol(),En=new WeakMap;let Ws=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ys)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(Vs&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=En.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&En.set(e,t))}return t}toString(){return this.cssText}};const sl=n=>new Ws(typeof n=="string"?n:n+"",void 0,Ys),D=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Ws(e,n,Ys)},nl=(n,t)=>{Vs?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=Kt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},Sn=Vs?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return sl(e)})(n):n;/**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */var ki;const oi=window,Cn=oi.trustedTypes,ol=Cn?Cn.emptyScript:"",$n=oi.reactiveElementPolyfillSupport,hs={toAttribute(n,t){switch(t){case Boolean:n=n?ol:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch(i){e=null}}return e}},nr=(n,t)=>t!==n&&(t==t||n==n),Di={attribute:!0,type:String,converter:hs,reflect:!1,hasChanged:nr},ps="finalized";let We=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,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=Di){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Di}static finalize(){if(this.hasOwnProperty(ps))return!1;this[ps]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Sn(s))}else t!==void 0&&e.push(Sn(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return nl(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Di){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:hs).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:hs;this._$El=o,this[o]=a.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||nr)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}_$Ej(){return Ce(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,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};We[ps]=!0,We.elementProperties=new Map,We.elementStyles=[],We.shadowRootOptions={mode:"open"},$n==null||$n({ReactiveElement:We}),((ki=oi.reactiveElementVersions)!==null&&ki!==void 0?ki:oi.reactiveElementVersions=[]).push("1.6.3");/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */var Mi;const ri=window,Qe=ri.trustedTypes,Pn=Qe?Qe.createPolicy("lit-html",{createHTML:n=>n}):void 0,fs="$lit$",ge=`lit$${(Math.random()+"").slice(9)}$`,or="?"+ge,rl=`<${or}>`,Re=document,St=()=>Re.createComment(""),Ct=n=>n===null||typeof n!="object"&&typeof n!="function",rr=Array.isArray,al=n=>rr(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Oi=`[
22
+ \f\r]`,ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Tn=/-->/g,kn=/>/g,$e=RegExp(`>|${Oi}(?:([^\\s"'>=/]+)(${Oi}*=${Oi}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Mn=/"/g,ar=/^(?:script|style|textarea|title)$/i,et=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),On=new WeakMap,De=Re.createTreeWalker(Re,129,null,!1);function lr(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pn!==void 0?Pn.createHTML(t):t}const ll=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=ht;for(let a=0;a<e;a++){const l=n[a];let d,u,h=-1,p=0;for(;p<l.length&&(r.lastIndex=p,u=r.exec(l),u!==null);)p=r.lastIndex,r===ht?u[1]==="!--"?r=Tn:u[1]!==void 0?r=kn:u[2]!==void 0?(ar.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=$e):u[3]!==void 0&&(r=$e):r===$e?u[0]===">"?(r=s!=null?s:ht,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?$e:u[3]==='"'?Mn:Dn):r===Mn||r===Dn?r=$e:r===Tn||r===kn?r=ht:(r=$e,s=void 0);const f=r===$e&&n[a+1].startsWith("/>")?" ":"";o+=r===ht?l+rl:h>=0?(i.push(d),l.slice(0,h)+fs+l.slice(h)+ge+f):l+ge+(h===-2?(i.push(void 0),a):f)}return[lr(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};let ms=class dr{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const a=t.length-1,l=this.parts,[d,u]=ll(t,e);if(this.el=dr.createElement(d,i),De.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=De.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(fs)||p.startsWith(ge)){const f=u[r++];if(h.push(p),f!==void 0){const _=s.getAttribute(f.toLowerCase()+fs).split(ge),S=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:S[2],strings:_,ctor:S[1]==="."?ul:S[1]==="?"?hl:S[1]==="@"?pl:yi})}else l.push({type:6,index:o})}for(const p of h)s.removeAttribute(p)}if(ar.test(s.tagName)){const h=s.textContent.split(ge),p=h.length-1;if(p>0){s.textContent=Qe?Qe.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],St()),De.nextNode(),l.push({type:2,index:++o});s.append(h[p],St())}}}else if(s.nodeType===8)if(s.data===or)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(ge,h+1))!==-1;)l.push({type:7,index:o}),h+=ge.length-1}o++}}static createElement(t,e){const i=Re.createElement("template");return i.innerHTML=t,i}};function tt(n,t,e=n,i){var s,o,r,a;if(t===et)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const d=Ct(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==d&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),d===void 0?l=void 0:(l=new d(n),l._$AT(n,e,i)),i!==void 0?((r=(a=e)._$Co)!==null&&r!==void 0?r:a._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=tt(n,l._$AS(n,t.values),l,i)),t}let dl=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Re).importNode(i,!0);De.currentNode=o;let r=De.nextNode(),a=0,l=0,d=s[0];for(;d!==void 0;){if(a===d.index){let u;d.type===2?u=new qs(r,r.nextSibling,this,t):d.type===1?u=new d.ctor(r,d.name,d.strings,this,t):d.type===6&&(u=new fl(r,this,t)),this._$AV.push(u),d=s[++l]}a!==(d==null?void 0:d.index)&&(r=De.nextNode(),a++)}return De.currentNode=Re,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},qs=class ur{constructor(t,e,i,s){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}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=tt(this,t,e),Ct(t)?t===q||t==null||t===""?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==et&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):al(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&&Ct(this._$AH)?this._$AA.nextSibling.data=t:this.$(Re.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=ms.createElement(lr(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const r=new dl(o,this),a=r.u(this.options);r.v(i),this.$(a),this._$AH=r}}_$AC(t){let e=On.get(t.strings);return e===void 0&&On.set(t.strings,e=new ms(t)),e}T(t){rr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new ur(this.k(St()),this.k(St()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const 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))}},yi=class{constructor(t,e,i,s,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=tt(this,t,e,0),r=!Ct(t)||t!==this._$AH&&t!==et,r&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=tt(this,a[i+l],e,l),d===et&&(d=this._$AH[l]),r||(r=!Ct(d)||d!==this._$AH[l]),d===q?t=q:t!==q&&(t+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}r&&!s&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},ul=class extends yi{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}};const cl=Qe?Qe.emptyScript:"";let hl=class extends yi{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,cl):this.element.removeAttribute(this.name)}},pl=class extends yi{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=tt(this,t,e,0))!==null&&i!==void 0?i:q)===et)return;const s=this._$AH,o=t===q&&s!==q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==q&&(s===q||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},fl=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}};const Nn=ri.litHtmlPolyfillSupport;Nn==null||Nn(ms,qs),((Mi=ri.litHtmlVersions)!==null&&Mi!==void 0?Mi:ri.litHtmlVersions=[]).push("2.8.0");const ml=(n,t,e)=>{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new qs(t.insertBefore(St(),a),a,void 0,e!=null?e:{})}return r._$AI(n),r};/**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */var Ni,Ii;let Gt=class extends We{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ml(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 et}};Gt.finalized=!0,Gt._$litElement$=!0,(Ni=globalThis.litElementHydrateSupport)===null||Ni===void 0||Ni.call(globalThis,{LitElement:Gt});const In=globalThis.litElementPolyfillSupport;In==null||In({LitElement:Gt});((Ii=globalThis.litElementVersions)!==null&&Ii!==void 0?Ii: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 _l=n=>class extends n{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,s){super.attributeChangedCallback(e,i,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 cr=[];function hr(n){return n&&Object.prototype.hasOwnProperty.call(n,"__themes")}function gl(n){return hr(customElements.get(n))}function yl(n=[]){return[n].flat(1/0).filter(t=>t instanceof Ws?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function U(n,t,e={}){n&&gl(n)&&console.warn(`The custom element definition for "${n}"
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=yl(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(n,t,e):cr.push({themeFor:n,styles:t,include:e.include,moduleId:e.moduleId})}function _s(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():cr}function bl(n,t){return(n||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function vl(n=""){let t=0;return n.startsWith("lumo-")||n.startsWith("material-")?t=1:n.startsWith("vaadin-")&&(t=2),t}function pr(n){const t=[];return n.include&&[].concat(n.include).forEach(e=>{const i=_s().find(s=>s.moduleId===e);i?t.push(...pr(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},n.styles),t}function xl(n,t){const e=document.createElement("style");e.innerHTML=n.map(i=>i.cssText).join(`
39
+ `),t.content.appendChild(e)}function wl(n){const t=`${n}-default-theme`,e=_s().filter(i=>i.moduleId!==t&&bl(i.themeFor,n)).map(i=>Ti(Pi({},i),{styles:[...pr(i),...i.styles],includePriority:vl(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:_s().filter(i=>i.moduleId===t)}const Be=n=>class extends _l(n){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||hr(this)||xl(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...super.finalizeStyles(e),...i]:i}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),i=(e?e.constructor.__themes:[])||[];this.__themes=[...i,...wl(this.is)];const s=this.__themes.flatMap(o=>o.styles);return s.filter((o,r)=>r===s.lastIndexOf(o))}};/**
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 fr=(n,...t)=>{const e=document.createElement("style");e.id=n,e.textContent=t.map(i=>i.toString()).join(`
44
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},bi=(n,...t)=>{fr(`lumo-${n}`,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 Al=D`
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
+ `;bi("color-props",Al);const El=D`
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
+ `;U("",El,{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 Sl=D`
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
+ `;bi("sizing-props",Sl);/**
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 Cl=D`
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
+ `;D`
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
+ `;bi("style-props",Cl);/**
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 $l=D`
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
+ `,Pl=D`
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
+ `;U("",Pl,{moduleId:"lumo-typography"});bi("typography-props",$l);U("vaadin-input-container",D`
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(n,t){return n};/**
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 Tl=/(url\()([^)]*)(\))/g,kl=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Vt,oe;function wt(n,t){if(n&&kl.test(n)||n==="//")return n;if(Vt===void 0){Vt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Vt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),Vt)try{return new URL(n,t).href}catch(e){return n}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=n,oe.anchor.href||n}function Ks(n,t){return n.replace(Tl,function(e,i,s,o){return i+"'"+wt(s.replace(/["']/g,""),t)+"'"+o})}function Gs(n){return n.substring(0,n.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 mr=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Dl=mr&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const n=new CSSStyleSheet;n.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[n],t.shadowRoot.adoptedStyleSheets[0]===n}catch(n){return!1}})();let Ml=window.Polymer&&window.Polymer.rootPath||Gs(document.baseURI||window.location.href),ai=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let li=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ol=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,_r=window.Polymer&&window.Polymer.legacyOptimizations||!1,gr=window.Polymer&&window.Polymer.legacyWarnings||!1,Nl=window.Polymer&&window.Polymer.syncInitialRender||!1,gs=window.Polymer&&window.Polymer.legacyUndefined||!1,Il=window.Polymer&&window.Polymer.orderedComputed||!1,zn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,zl=window.Polymer&&window.Polymer.fastDomIf||!1,Ln=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Ll=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 Rl=0;const W=function(n){let t=n.__mixinApplications;t||(t=new WeakMap,n.__mixinApplications=t);let e=Rl++;function i(s){let o=s.__mixinSet;if(o&&o[e])return s;let r=t,a=r.get(s);if(!a){a=n(s),r.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
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 Js={},yr={};function Rn(n,t){Js[n]=yr[n.toLowerCase()]=t}function Hn(n){return Js[n]||yr[n.toLowerCase()]}function Hl(n){n.querySelector("style")&&console.warn("dom-module %s has style outside template",n.id)}class $t extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=Hn(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=wt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Gs(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(li&&Hn(t)!==void 0)throw Rn(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Rn(t,this),Hl(this)}}}$t.prototype.modules=Js;customElements.define("dom-module",$t);/**
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 Fl="link[rel=import][type~=css]",Ul="include",Fn="shady-unscoped";function br(n){return $t.import(n)}function Un(n){let t=n.body?n.body:n;const e=Ks(t.textContent,n.baseURI),i=document.createElement("style");return i.textContent=e,i}function Bl(n){const t=n.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...jl(t[i]));return e}function jl(n){const t=br(n);if(!t)return console.warn("Could not find style data in module named",n),[];if(t._styles===void 0){const e=[];e.push(...xr(t));const i=t.querySelector("template");i&&e.push(...vr(i,t.assetpath)),t._styles=e}return t._styles}function vr(n,t){if(!n._styles){const e=[],i=n.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let o=i[s],r=o.getAttribute(Ul);r&&e.push(...Bl(r).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(o.textContent=Ks(o.textContent,t)),e.push(o)}n._styles=e}return n._styles}function Vl(n){let t=br(n);return t?xr(t):[]}function xr(n){const t=[],e=n.querySelectorAll(Fl);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const o=s.import,r=s.hasAttribute(Fn);if(r&&!o._unscopedStyle){const a=Un(o);a.setAttribute(Fn,""),o._unscopedStyle=a}else o._style||(o._style=Un(o));t.push(r?o._unscopedStyle:o._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 Q=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?n=>ShadyDOM.patch(n):n=>n;/**
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 ys(n){return n.indexOf(".")>=0}function je(n){let t=n.indexOf(".");return t===-1?n:n.slice(0,t)}function wr(n,t){return n.indexOf(t+".")===0}function Pt(n,t){return t.indexOf(n+".")===0}function Tt(n,t,e){return t+e.slice(n.length)}function Yl(n,t){return n===t||wr(n,t)||Pt(n,t)}function vt(n){if(Array.isArray(n)){let t=[];for(let e=0;e<n.length;e++){let i=n[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return n}function Ar(n){return Array.isArray(n)?vt(n).split("."):n.toString().split(".")}function ne(n,t,e){let i=n,s=Ar(t);for(let o=0;o<s.length;o++){if(!i)return;let r=s[o];i=i[r]}return e&&(e.path=s.join(".")),i}function Bn(n,t,e){let i=n,s=Ar(t),o=s[s.length-1];if(s.length>1){for(let r=0;r<s.length-1;r++){let a=s[r];if(i=i[a],!i)return}i[o]=e}else i[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 di={},Wl=/-[a-z]/g,ql=/([A-Z])/g;function Er(n){return di[n]||(di[n]=n.indexOf("-")<0?n:n.replace(Wl,t=>t[1].toUpperCase()))}function vi(n){return di[n]||(di[n]=n.replace(ql,"-$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 Kl=0,Sr=0,Je=[],Gl=0,bs=!1,Cr=document.createTextNode("");new window.MutationObserver(Jl).observe(Cr,{characterData:!0});function Jl(){bs=!1;const n=Je.length;for(let t=0;t<n;t++){let e=Je[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Je.splice(0,n),Sr+=n}const Zl={after(n){return{run(t){return window.setTimeout(t,n)},cancel(t){window.clearTimeout(t)}}},run(n,t){return window.setTimeout(n,t)},cancel(n){window.clearTimeout(n)}},$r={run(n){return bs||(bs=!0,Cr.textContent=Gl++),Je.push(n),Kl++},cancel(n){const t=n-Sr;if(t>=0){if(!Je[t])throw new Error("invalid async handle: "+n);Je[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 Xl=$r,Pr=W(n=>{class t extends n{static createProperties(i){const s=this.prototype;for(let o in i)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(o){this._setPendingProperty(i,o,!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 i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,o){let r=this.__data[i],a=this._shouldPropertyChange(i,s,r);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=r),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Xl.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 i=this.__data,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(i,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,o)),this.__dataCounter--}_shouldPropertiesChange(i,s,o){return!!s}_propertiesChanged(i,s,o){}_shouldPropertyChange(i,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(i,s,o,r){s!==o&&this._attributeToProperty(i,o),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,o,r)}_attributeToProperty(i,s,o){if(!this.__serializing){const r=this.__dataAttributes,a=r&&r[i]||i;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,o){this.__serializing=!0,o=arguments.length<3?this[i]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,o){const r=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(i=Q(i)),r===void 0?i.removeAttribute(o):i.setAttribute(o,r===""&&window.trustedTypes?window.trustedTypes.emptyScript:r)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}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 Tr={};let Yt=HTMLElement.prototype;for(;Yt;){let n=Object.getOwnPropertyNames(Yt);for(let t=0;t<n.length;t++)Tr[n[t]]=!0;Yt=Object.getPrototypeOf(Yt)}const Ql=window.trustedTypes?n=>trustedTypes.isHTML(n)||trustedTypes.isScript(n)||trustedTypes.isScriptURL(n):()=>!1;function ed(n,t){if(!Tr[t]){let e=n[t];e!==void 0&&(n.__data?n._setPendingProperty(t,e):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[t]=e))}}const td=W(n=>{const t=Pr(n);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(Er(s[o]))}static attributeNameForProperty(s){return vi(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const r=this;r.hasAttribute(s)||this._valueToNodeAttribute(r,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Ql(s))return s;try{return JSON.stringify(s)}catch(o){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let r;switch(o){case Object:try{r=JSON.parse(s)}catch(a){r=s}break;case Array:try{r=JSON.parse(s)}catch(a){r=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:r=isNaN(s)?String(s):Number(s),r=new Date(r);break;default:r=super._deserializeValue(s,o);break}return r}_definePropertyAccessor(s,o){ed(this,s),super._definePropertyAccessor(s,o)}_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 id={"dom-if":!0,"dom-repeat":!0};let jn=!1,Vn=!1;function sd(){if(!jn){jn=!0;const n=document.createElement("textarea");n.placeholder="a",Vn=n.placeholder===n.textContent}return Vn}function nd(n){sd()&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null)}const od=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(n&&i.startsWith("on-")){t.setAttribute(i,n.createScript(s,i));return}t.setAttribute(i,s)}})();function rd(n){let t=n.getAttribute("is");if(t&&id[t]){let e=n;for(e.removeAttribute("is"),n=e.ownerDocument.createElement(t),e.parentNode.replaceChild(n,e),n.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];od(n,e,i),e.removeAttribute(i)}}return n}function kr(n,t){let e=t.parentInfo&&kr(n,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return n}function ad(n,t,e,i){i.id&&(t[i.id]=e)}function ld(n,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,o;i<s.length&&(o=s[i]);i++)n._addMethodEventListenerToNode(t,o.name,o.value,n)}function dd(n,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function ud(n,t,e){return n=n._methodHost||n,function(s){n[e]?n[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const cd=W(n=>{class t extends n{static _parseTemplate(i,s){if(!i._templateInfo){let o=i._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!s,o.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,o,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,o){return this._parseTemplateNode(i.content,s,o)}static _parseTemplateNode(i,s,o){let r=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?r=this._parseTemplateNestedTemplate(a,s,o)||r:a.localName==="slot"&&(s.hasInsertionPoint=!0),nd(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(r=this._parseTemplateNodeAttributes(a,s,o)||r),r||o.noted}static _parseTemplateChildNodes(i,s,o){if(!(i.localName==="script"||i.localName==="style"))for(let r=i.firstChild,a=0,l;r;r=l){if(r.localName=="template"&&(r=rd(r)),l=r.nextSibling,r.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)r.textContent+=u.textContent,l=u.nextSibling,i.removeChild(u),u=l;if(s.stripWhiteSpace&&!r.textContent.trim()){i.removeChild(r);continue}}let d={parentIndex:a,parentInfo:o};this._parseTemplateNode(r,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),r.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,o){let r=i,a=this._parseTemplate(r,s);return(a.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,o){let r=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)r=this._parseTemplateNodeAttribute(i,s,o,d.name,d.value)||r;return r}static _parseTemplateNodeAttribute(i,s,o,r,a){return r.slice(0,3)==="on-"?(i.removeAttribute(r),o.events=o.events||[],o.events.push({name:r.slice(3),value:a}),!0):r==="id"?(o.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let o=s.nodeInfoList,r=s.content||i.content,a=document.importNode(r,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let d=0,u=o.length,h;d<u&&(h=o[d]);d++){let p=l[d]=kr(a,h);ad(this,a.$,p,h),dd(this,p,h,s),ld(this,p,h)}return a=a,a}_addMethodEventListenerToNode(i,s,o,r){r=r||i;let a=ud(r,s,o);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,o){i.addEventListener(s,o)}_removeEventListenerFromNode(i,s,o){i.removeEventListener(s,o)}}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 kt=0;const Dt=[],k={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Dr="__computeInfo",hd=/[A-Z]/;function zi(n,t,e){let i=n[t];if(!i)i=n[t]={};else if(!n.hasOwnProperty(t)&&(i=n[t]=Object.create(n[t]),e))for(let s in i){let o=i[s],r=i[s]=Array(o.length);for(let a=0;a<o.length;a++)r[a]=o[a]}return i}function xt(n,t,e,i,s,o){if(t){let r=!1;const a=kt++;for(let l in e){let d=s?je(l):l,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||Zs(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(n,l,e,i,f.info,s,o),r=!0)}return r}return!1}function pd(n,t,e,i,s,o,r,a){let l=!1,d=r?je(i):i,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==e)&&(!r||Zs(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(n,i,s,o,f.info,r,a),l=!0);return l}function Zs(n,t){if(t){let e=t.name;return e==n||!!(t.structured&&wr(e,n))||!!(t.wildcard&&Pt(e,n))}else return!0}function Yn(n,t,e,i,s){let o=typeof s.method=="string"?n[s.method]:s.method,r=s.property;o?o.call(n,n.__data[r],i[r]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function fd(n,t,e,i,s){let o=n[k.NOTIFY],r,a=kt++;for(let d in t)t[d]&&(o&&pd(n,o,a,d,e,i,s)||s&&md(n,d,e))&&(r=!0);let l;r&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function md(n,t,e){let i=je(t);if(i!==t){let s=vi(i)+"-changed";return Mr(n,s,e[t],t),!0}return!1}function Mr(n,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),Q(n).dispatchEvent(new CustomEvent(t,{detail:s}))}function _d(n,t,e,i,s,o){let a=(o?je(t):t)!=t?t:null,l=a?ne(n,a):n.__data[t];a&&l===void 0&&(l=e[t]),Mr(n,s.eventName,l,a)}function gd(n,t,e,i,s){let o,r=n.detail,a=r&&r.path;a?(i=Tt(e,i,a),o=r&&r.value):o=n.currentTarget[e],o=s?!o:o,(!t[k.READ_ONLY]||!t[k.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,o,!0,!!a)&&(!r||!r.queueProperty)&&t._invalidateProperties()}function yd(n,t,e,i,s){let o=n.__data[t];ai&&(o=ai(o,s.attrName,"attribute",n)),n._propertyToAttribute(t,s.attrName,o)}function bd(n,t,e,i){let s=n[k.COMPUTE];if(s)if(Il){kt++;const o=xd(n),r=[];for(let l in t)Wn(l,s,r,o,i);let a;for(;a=r.shift();)Or(n,"",t,e,a)&&Wn(a.methodInfo,s,r,o,i);Object.assign(e,n.__dataOld),Object.assign(t,n.__dataPending),n.__dataPending=null}else{let o=t;for(;xt(n,s,o,e,i);)Object.assign(e,n.__dataOld),Object.assign(t,n.__dataPending),o=n.__dataPending,n.__dataPending=null}}const vd=(n,t,e)=>{let i=0,s=t.length-1,o=-1;for(;i<=s;){const r=i+s>>1,a=e.get(t[r].methodInfo)-e.get(n.methodInfo);if(a<0)i=r+1;else if(a>0)s=r-1;else{o=r;break}}o<0&&(o=s+1),t.splice(o,0,n)},Wn=(n,t,e,i,s)=>{const o=s?je(n):n,r=t[o];if(r)for(let a=0;a<r.length;a++){const l=r[a];l.info.lastRun!==kt&&(!s||Zs(n,l.trigger))&&(l.info.lastRun=kt,vd(l.info,e,i))}};function xd(n){let t=n.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=n[k.COMPUTE];let{counts:i,ready:s,total:o}=wd(n),r;for(;r=s.shift();){t.set(r,t.size);const a=e[r];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--i[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${n.localName} incomplete; circular?`),n.constructor.__orderedComputedDeps=t}return t}function wd(n){const t=n[Dr],e={},i=n[k.COMPUTE],s=[];let o=0;for(let r in t){const a=t[r];o+=e[r]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let r in i)t[r]||s.push(r);return{counts:e,ready:s,total:o}}function Or(n,t,e,i,s){let o=vs(n,t,e,i,s);if(o===Dt)return!1;let r=s.methodInfo;return n.__dataHasAccessor&&n.__dataHasAccessor[r]?n._setPendingProperty(r,o,!0):(n[r]=o,!1)}function Ad(n,t,e){let i=n.__dataLinkedPaths;if(i){let s;for(let o in i){let r=i[o];Pt(o,t)?(s=Tt(o,r,t),n._setPendingPropertyOrPath(s,e,!0,!0)):Pt(r,t)&&(s=Tt(r,o,t),n._setPendingPropertyOrPath(s,e,!0,!0))}}}function Li(n,t,e,i,s,o,r){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:o,literal:r,isCompound:o.length!==1};if(e.bindings.push(a),Pd(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||vi(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,Ed(n,t,a,u,l)}}function Ed(n,t,e,i,s){if(!i.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 o=i.dependencies,r={index:s,binding:e,part:i,evaluator:n};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Ir(l),l.wildcard=!0),n._addTemplatePropertyEffect(t,l.rootProperty,{fn:Sd,info:r,trigger:l})}}}function Sd(n,t,e,i,s,o,r){let a=r[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=Tt(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&n._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(n,d,t,e,i,o);u!==Dt&&Cd(n,a,l,d,u)}}function Cd(n,t,e,i,s){if(s=$d(t,s,e,i),ai&&(s=ai(s,e.target,e.kind,t)),e.kind=="attribute")n._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[k.READ_ONLY]||!t[k.READ_ONLY][o])&&t._setPendingProperty(o,s)&&n._enqueueClient(t):n._setUnmanagedPropertyToNode(t,o,s)}}function $d(n,t,e,i){if(e.isCompound){let s=n.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(n.localName==="input"||n.localName==="textarea"))&&(t=t==null?"":t),t}function Pd(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function Td(n,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],r=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];kd(r,d),Dd(r,n,d)}r.__dataHost=n}}function kd(n,t){if(t.isCompound){let e=n.__dataCompoundStorage||(n.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let r=0;r<i.length;r++)s[r]=i[r].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(n=Q(n)),n[o]=t.literal)}}function Dd(n,t,e){if(e.listenerEvent){let i=e.parts[0];n.addEventListener(e.listenerEvent,function(s){gd(s,t,e.target,i.source,i.negate)})}}function qn(n,t,e,i,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let r={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||n._addPropertyEffect(l.rootProperty,e,{fn:i,info:r,trigger:l});return o&&n._addPropertyEffect(t.methodName,e,{fn:i,info:r}),r}function vs(n,t,e,i,s){let o=n._methodHost||n,r=o[s.methodName];if(r){let a=n._marshalArgs(s.args,t,e);return a===Dt?Dt:r.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Md=[],Nr="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Od="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Nd="(?:'(?:[^'\\\\]|\\\\.)*')",Id='(?:"(?:[^"\\\\]|\\\\.)*")',zd="(?:"+Nd+"|"+Id+")",Kn="(?:("+Nr+"|"+Od+"|"+zd+")\\s*)",Ld="(?:"+Kn+"(?:,\\s*"+Kn+")*)",Rd="(?:\\(\\s*(?:"+Ld+"?)\\)\\s*)",Hd="("+Nr+"\\s*"+Rd+"?)",Fd="(\\[\\[|{{)\\s*",Ud="(?:]]|}})",Bd="(?:(!)\\s*)?",jd=Fd+Bd+Hd+Ud,Gn=new RegExp(jd,"g");function Jn(n){let t="";for(let e=0;e<n.length;e++){let i=n[e].literal;t+=i||""}return t}function Ri(n){let t=n.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Md};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return Vd(s,i)}else return i}return null}function Vd(n,t){return t.args=n.map(function(e){let i=Ir(e);return i.literal||(t.static=!1),i},this),t}function Ir(n){let t=n.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){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=je(t),e.structured=ys(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Zn(n,t,e){let i=ne(n,e);return i===void 0&&(i=t[e]),i}function zr(n,t,e,i){const s={indexSplices:i};gs&&!n._overrideLegacyUndefined&&(t.splices=s),n.notifyPath(e+".splices",s),n.notifyPath(e+".length",t.length),gs&&!n._overrideLegacyUndefined&&(s.indexSplices=[])}function pt(n,t,e,i,s,o){zr(n,t,e,[{index:i,addedCount:s,removed:o,object:t,type:"splice"}])}function Yd(n){return n[0].toUpperCase()+n.substring(1)}const Xs=W(n=>{const t=cd(td(n));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 k}_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(ft.length){let s=ft[ft.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 o=this[k.READ_ONLY];for(let r in s)(!o||!o[r])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[r]=this.__dataPending[r]=s[r])}_addPropertyEffect(s,o,r){this._createPropertyAccessor(s,o==k.READ_ONLY);let a=zi(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(r)}_removePropertyEffect(s,o,r){let a=zi(this,o,!0)[s],l=a.indexOf(r);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let r=this[o];return!!(r&&r[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,k.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,k.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,k.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,k.COMPUTE)}_setPendingPropertyOrPath(s,o,r,a){if(a||je(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ne(this,s);if(s=Bn(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,r))return Ad(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,r);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,r){(r!==s[o]||typeof r=="object")&&(o==="className"&&(s=Q(s)),s[o]=r)}_setPendingProperty(s,o,r){let a=this.__dataHasPaths&&ys(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[k.NOTIFY]&&this[k.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=r),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!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 o=0;o<s.length;o++){let r=s[o];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let r in s)(o||!this[k.READ_ONLY]||!this[k.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s[r],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,r){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;bd(this,o,r,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,r,a),this._flushClients(),xt(this,this[k.REFLECT],o,r,a),xt(this,this[k.OBSERVE],o,r,a),l&&fd(this,l,o,r,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,r){this[k.PROPAGATE]&&xt(this,this[k.PROPAGATE],s,o,r),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,r)}_runEffectsForTemplate(s,o,r,a){const l=(d,u)=>{xt(this,s.propertyEffects,d,r,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,r,u)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=vt(s),o=vt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=vt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let r={path:""},a=ne(this,s,r);zr(this,a,r.path,o)}get(s,o){return ne(o||this,s)}set(s,o,r){r?Bn(r,s,o):(!this[k.READ_ONLY]||!this[k.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let r={path:""},a=ne(this,s,r),l=a.length,d=a.push(...o);return o.length&&pt(this,a,r.path,l,o.length,[]),d}pop(s){let o={path:""},r=ne(this,s,o),a=!!r.length,l=r.pop();return a&&pt(this,r,o.path,r.length,0,[l]),l}splice(s,o,r,...a){let l={path:""},d=ne(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let u;return arguments.length===2?u=d.splice(o):u=d.splice(o,r,...a),(a.length||u.length)&&pt(this,d,l.path,o,a.length,u),u}shift(s){let o={path:""},r=ne(this,s,o),a=!!r.length,l=r.shift();return a&&pt(this,r,o.path,0,0,[l]),l}unshift(s,...o){let r={path:""},a=ne(this,s,r),l=a.unshift(...o);return o.length&&pt(this,a,r.path,0,o.length,[]),l}notifyPath(s,o){let r;if(arguments.length==1){let a={path:""};o=ne(this,s,a),r=a.path}else Array.isArray(s)?r=vt(s):r=s;this._setPendingPropertyOrPath(r,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,k.READ_ONLY),o&&(this["_set"+Yd(s)]=function(r){this._setProperty(s,r)})}_createPropertyObserver(s,o,r){let a={property:s,method:o,dynamicFn:!!r};this._addPropertyEffect(s,k.OBSERVE,{fn:Yn,info:a,trigger:{name:s}}),r&&this._addPropertyEffect(o,k.OBSERVE,{fn:Yn,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let r=Ri(s);if(!r)throw new Error("Malformed observer expression '"+s+"'");qn(this,r,k.OBSERVE,vs,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,k.NOTIFY,{fn:_d,info:{eventName:vi(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,k.REFLECT,{fn:yd,info:{attrName:o}})}_createComputedProperty(s,o,r){let a=Ri(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=qn(this,a,k.COMPUTE,Or,s,r);zi(this,Dr)[s]=l}_marshalArgs(s,o,r){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:f,value:_,literal:S}=s[d];if(!S)if(f){const M=Pt(h,o),I=Zn(a,r,M?o:h);_={path:M?o:h,value:I,base:M?ne(a,h):I}}else _=p?Zn(a,r,h):a[h];if(gs&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return Dt;l[d]=_}return l}static addPropertyEffect(s,o,r){this.prototype._addPropertyEffect(s,o,r)}static createPropertyObserver(s,o,r){this.prototype._createPropertyObserver(s,o,r)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,r){this.prototype._createComputedProperty(s,o,r)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let r=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==r;if(!a)for(let l in r.propertyEffects)this._createPropertyAccessor(l);if(o)if(r=Object.create(r),r.wasPreBound=a,!this.__templateInfo)this.__templateInfo=r;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;r.parent=l,l.lastChild=r,r.previousSibling=d,d?d.nextSibling=r:l.firstChild=r}else this.__preBoundTemplateInfo=r;return r}static _addTemplatePropertyEffect(s,o,r){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(r)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),ft.push(this);let r=super._stampTemplate(s,o);if(ft.pop(),o.nodeList=r.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=r.firstChild;l;l=l.nextSibling)a.push(l)}return r.templateInfo=o,Td(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),r}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:r,nextSibling:a,parent:l}=o;r?r.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=r:l&&(l.lastChild=r),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let u=0;u<d.length;u++){let h=d[u];Q(Q(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,o,r){let a=t._parseTemplateNode.call(this,s,o,r);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=Jn(l)||" ",Li(this,o,r,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,r,a,l){let d=this._parseBindings(l,o);if(d){let u=a,h="property";hd.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Jn(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=Er(a)),Li(this,o,r,h,a,d,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,r,a,l)}static _parseTemplateNestedTemplate(s,o,r){let a=t._parseTemplateNestedTemplate.call(this,s,o,r);const l=s.parentNode,d=r.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";zn&&(u||h)&&(l.removeChild(s),r=r.parentInfo,r.templateInfo=d,r.noted=!0,a=!1);let p=d.hostProps;if(zl&&u)p&&(o.hostProps=Object.assign(o.hostProps||{},p),zn||(r.parentInfo.noted=!0));else{let f="{";for(let _ in p){let S=[{mode:f,source:_,dependencies:[_],hostProp:!0}];Li(this,o,r,"property","_host_"+_,S)}}return a}static _parseBindings(s,o){let r=[],a=0,l;for(;(l=Gn.exec(s))!==null;){l.index>a&&r.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,f="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(f=h.substring(_+2),h=h.substring(0,_),p=!0);let S=Ri(h),M=[];if(S){let{args:I,methodName:z}=S;for(let Y=0;Y<I.length;Y++){let V=I[Y];V.literal||M.push(V)}let j=o.dynamicFns;(j&&j[z]||S.static)&&(M.push(z),S.dynamicFn=!0)}else M.push(h);r.push({source:h,mode:d,negate:u,customEvent:p,signature:S,dependencies:M,event:f}),a=Gn.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&r.push({literal:d})}return r.length?r:null}static _evaluateBinding(s,o,r,a,l,d){let u;return o.signature?u=vs(s,r,a,l,o.signature):r!=o.source?u=ne(s,o.source):d&&ys(r)?u=ne(s,r):u=s.__data[r],o.negate&&(u=!u),u}}return e}),ft=[];/**
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 Wd(n){const t={};for(let e in n){const i=n[e];t[e]=typeof i=="function"?{type:i}:i}return t}const qd=W(n=>{const t=Pr(n);function e(o){const r=Object.getPrototypeOf(o);return r.prototype instanceof s?r:null}function i(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let r=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(r=Wd(a))}o.__ownProperties=r}return o.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const r=this._properties;this.__observedAttributes=r?Object.keys(r).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const r=e(this);r&&r.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const r=i(this);r&&this.createProperties(r)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const r=e(this);this.__properties=Object.assign({},r&&r._properties,i(this))}return this.__properties}static typeForProperty(r){const a=this._properties[r];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 Kd="3.5.2",Xn=window.ShadyCSS&&window.ShadyCSS.cssBuild,Gd=W(n=>{const t=qd(Xs(n));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,u,h){if(!Xn){const p=d.content.querySelectorAll("style"),f=vr(d),_=Vl(u),S=d.content.firstElementChild;for(let I=0;I<_.length;I++){let z=_[I];z.textContent=l._processStyleText(z.textContent,h),d.content.insertBefore(z,S)}let M=0;for(let I=0;I<f.length;I++){let z=f[I],j=p[M];j!==z?(z=z.cloneNode(!0),j.parentNode.insertBefore(z,j)):M++,z.textContent=l._processStyleText(z.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),Ll&&Xn&&Dl){const p=d.content.querySelectorAll("style");if(p){let f="";Array.from(p).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function r(l){let d=null;if(l&&(!li||Ol)&&(d=$t.import(l,"template"),li&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Kd}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):_r||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&r(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Gs(d.url);else{const u=$t.import(this.is);this._importPath=u&&u.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=Ml,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return Ks(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?wt(h):"";o(this,u,d,p),this.prototype._bindTemplate(u)}}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(d){const u=Q(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Nl&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.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(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=wt(this.importPath)),wt(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return gr&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,u,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 Qn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:n=>n});class Lr{constructor(t,e){Hr(t,e);const i=e.reduce((s,o,r)=>s+Rr(o)+t[r+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Rr(n){if(n instanceof Lr)return n.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${n}`)}function Jd(n){if(n instanceof HTMLTemplateElement)return n.innerHTML;if(n instanceof Lr)return Rr(n);throw new Error(`non-template value passed to Polymer's html function: ${n}`)}const Ve=function(t,...e){Hr(t,e);const i=document.createElement("template");let s=e.reduce((o,r,a)=>o+Jd(r)+t[a+1],t[0]);return Qn&&(s=Qn.createHTML(s)),i.innerHTML=s,i},Hr=(n,t)=>{if(!Array.isArray(n)||!Array.isArray(n.raw)||t.length!==n.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 Ae=Gd(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 fe=[];function xs(n,t,e=n.getAttribute("dir")){t?n.setAttribute("dir",t):e!=null&&n.removeAttribute("dir")}function ws(){return document.documentElement.getAttribute("dir")}function Zd(){const n=ws();fe.forEach(t=>{xs(t,n)})}const Xd=new MutationObserver(Zd);Xd.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const xi=n=>class extends n{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(),xs(this,ws(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const o=ws(),r=s===o&&fe.indexOf(this)===-1,a=!s&&i&&fe.indexOf(this)===-1;r||a?(this.__subscribe(),xs(this,o,s)):s!==o&&i===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=fe.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){fe.includes(this)||fe.push(this)}__unsubscribe(){fe.includes(this)&&fe.splice(fe.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 Qd extends Be(xi(Ae)){static get is(){return"vaadin-input-container"}static get template(){return Ve`
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())})}}ue(Qd);/**
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
+ */class eu extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}ue(eu);const ut=(n,...t)=>{fr(`lumo-${n}`,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 tu=D`
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
+ `;ut("sizing-props",tu);/**
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 iu=D`
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
+ `;ut("spacing-props",iu);/**
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 su=D`
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
+ `;D`
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
+ `;ut("style-props",su);/**
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 nu=D`
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
+ `;ut("color-props",nu);const ou=D`
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
+ `;U("",ou,{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 ru=D`
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
+ `,au=D`
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
+ `;U("",au,{moduleId:"lumo-typography"});ut("typography-props",ru);/**
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 Fr=D`
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
+ `;U("",Fr,{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 Ur=D`
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
+ `;U("",Ur,{moduleId:"lumo-menu-overlay-core"});const lu=D`
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
+ `,Br=[Fr,Ur,lu];U("",Br,{moduleId:"lumo-menu-overlay"});const du=D`
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
+ `;U("vaadin-date-picker-overlay",[Br,du],{moduleId:"lumo-date-picker-overlay"});const uu=D`
1420
+ :host {
1421
+ /* Sizing */
1422
+ --lumo-button-size: var(--lumo-size-m);
1423
+ min-width: calc(var(--lumo-button-size) * 2);
1424
+ height: var(--lumo-button-size);
1425
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
1426
+ margin: var(--lumo-space-xs) 0;
1427
+ box-sizing: border-box;
1428
+ /* Style */
1429
+ font-family: var(--lumo-font-family);
1430
+ font-size: var(--lumo-font-size-m);
1431
+ font-weight: 500;
1432
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
1433
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
1434
+ border-radius: var(--lumo-border-radius-m);
1435
+ cursor: var(--lumo-clickable-cursor);
1436
+ -webkit-tap-highlight-color: transparent;
1437
+ -webkit-font-smoothing: antialiased;
1438
+ -moz-osx-font-smoothing: grayscale;
1439
+ flex-shrink: 0;
1440
+ }
1441
+
1442
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
1443
+ [part='label'],
1444
+ [part='prefix'],
1445
+ [part='suffix'] {
1446
+ line-height: var(--lumo-line-height-xs);
1447
+ }
1448
+
1449
+ [part='label'] {
1450
+ padding: calc(var(--lumo-button-size) / 6) 0;
1451
+ }
1452
+
1453
+ :host([theme~='small']) {
1454
+ font-size: var(--lumo-font-size-s);
1455
+ --lumo-button-size: var(--lumo-size-s);
1456
+ }
1457
+
1458
+ :host([theme~='large']) {
1459
+ font-size: var(--lumo-font-size-l);
1460
+ --lumo-button-size: var(--lumo-size-l);
1461
+ }
1462
+
1463
+ /* For interaction states */
1464
+ :host::before,
1465
+ :host::after {
1466
+ content: '';
1467
+ /* We rely on the host always being relative */
1468
+ position: absolute;
1469
+ z-index: 1;
1470
+ inset: 0;
1471
+ background-color: currentColor;
1472
+ border-radius: inherit;
1473
+ opacity: 0;
1474
+ pointer-events: none;
1475
+ }
1476
+
1477
+ /* Hover */
1478
+
1479
+ @media (any-hover: hover) {
1480
+ :host(:hover)::before {
1481
+ opacity: 0.02;
1482
+ }
1483
+ }
1484
+
1485
+ /* Active */
1486
+
1487
+ :host::after {
1488
+ transition: opacity 1.4s, transform 0.1s;
1489
+ filter: blur(8px);
1490
+ }
1491
+
1492
+ :host([active])::before {
1493
+ opacity: 0.05;
1494
+ transition-duration: 0s;
1495
+ }
1496
+
1497
+ :host([active])::after {
1498
+ opacity: 0.1;
1499
+ transition-duration: 0s, 0s;
1500
+ transform: scale(0);
1501
+ }
1502
+
1503
+ /* Keyboard focus */
1504
+
1505
+ :host([focus-ring]) {
1506
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1507
+ }
1508
+
1509
+ :host([theme~='primary'][focus-ring]) {
1510
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1511
+ }
1512
+
1513
+ /* Types (primary, tertiary, tertiary-inline */
1514
+
1515
+ :host([theme~='tertiary']),
1516
+ :host([theme~='tertiary-inline']) {
1517
+ background-color: transparent !important;
1518
+ min-width: 0;
1519
+ }
1520
+
1521
+ :host([theme~='tertiary']) {
1522
+ padding: 0 calc(var(--lumo-button-size) / 6);
1523
+ }
1524
+
1525
+ :host([theme~='tertiary-inline'])::before {
1526
+ display: none;
1527
+ }
1528
+
1529
+ :host([theme~='tertiary-inline']) {
1530
+ margin: 0;
1531
+ height: auto;
1532
+ padding: 0;
1533
+ line-height: inherit;
1534
+ font-size: inherit;
1535
+ }
1536
+
1537
+ :host([theme~='tertiary-inline']) [part='label'] {
1538
+ padding: 0;
1539
+ overflow: visible;
1540
+ line-height: inherit;
1541
+ }
1542
+
1543
+ :host([theme~='primary']) {
1544
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1545
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1546
+ font-weight: 600;
1547
+ min-width: calc(var(--lumo-button-size) * 2.5);
1548
+ }
1549
+
1550
+ :host([theme~='primary'])::before {
1551
+ background-color: black;
1552
+ }
1553
+
1554
+ @media (any-hover: hover) {
1555
+ :host([theme~='primary']:hover)::before {
1556
+ opacity: 0.05;
1557
+ }
1558
+ }
1559
+
1560
+ :host([theme~='primary'][active])::before {
1561
+ opacity: 0.1;
1562
+ }
1563
+
1564
+ :host([theme~='primary'][active])::after {
1565
+ opacity: 0.2;
1566
+ }
1567
+
1568
+ /* Colors (success, error, contrast) */
1569
+
1570
+ :host([theme~='success']) {
1571
+ color: var(--lumo-success-text-color);
1572
+ }
1573
+
1574
+ :host([theme~='success'][theme~='primary']) {
1575
+ background-color: var(--lumo-success-color);
1576
+ color: var(--lumo-success-contrast-color);
1577
+ }
1578
+
1579
+ :host([theme~='error']) {
1580
+ color: var(--lumo-error-text-color);
1581
+ }
1582
+
1583
+ :host([theme~='error'][theme~='primary']) {
1584
+ background-color: var(--lumo-error-color);
1585
+ color: var(--lumo-error-contrast-color);
1586
+ }
1587
+
1588
+ :host([theme~='contrast']) {
1589
+ color: var(--lumo-contrast);
1590
+ }
1591
+
1592
+ :host([theme~='contrast'][theme~='primary']) {
1593
+ background-color: var(--lumo-contrast);
1594
+ color: var(--lumo-base-color);
1595
+ }
1596
+
1597
+ /* Disabled state. Keep selectors after other color variants. */
1598
+
1599
+ :host([disabled]) {
1600
+ pointer-events: none;
1601
+ color: var(--lumo-disabled-text-color);
1602
+ }
1603
+
1604
+ :host([theme~='primary'][disabled]) {
1605
+ background-color: var(--lumo-contrast-30pct);
1606
+ color: var(--lumo-base-color);
1607
+ }
1608
+
1609
+ :host([theme~='primary'][disabled]) [part] {
1610
+ opacity: 0.7;
1611
+ }
1612
+
1613
+ /* Icons */
1614
+
1615
+ [part] ::slotted(vaadin-icon) {
1616
+ display: inline-block;
1617
+ width: var(--lumo-icon-size-m);
1618
+ height: var(--lumo-icon-size-m);
1619
+ }
1620
+
1621
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
1622
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
1623
+ padding: 0.25em;
1624
+ box-sizing: border-box !important;
1625
+ }
1626
+
1627
+ [part='prefix'] {
1628
+ margin-left: -0.25em;
1629
+ margin-right: 0.25em;
1630
+ }
1631
+
1632
+ [part='suffix'] {
1633
+ margin-left: 0.25em;
1634
+ margin-right: -0.25em;
1635
+ }
1636
+
1637
+ /* Icon-only */
1638
+
1639
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
1640
+ min-width: var(--lumo-button-size);
1641
+ padding-left: calc(var(--lumo-button-size) / 4);
1642
+ padding-right: calc(var(--lumo-button-size) / 4);
1643
+ }
1644
+
1645
+ :host([theme~='icon']) [part='prefix'],
1646
+ :host([theme~='icon']) [part='suffix'] {
1647
+ margin-left: 0;
1648
+ margin-right: 0;
1649
+ }
1650
+
1651
+ /* RTL specific styles */
1652
+
1653
+ :host([dir='rtl']) [part='prefix'] {
1654
+ margin-left: 0.25em;
1655
+ margin-right: -0.25em;
1656
+ }
1657
+
1658
+ :host([dir='rtl']) [part='suffix'] {
1659
+ margin-left: -0.25em;
1660
+ margin-right: 0.25em;
1661
+ }
1662
+
1663
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
1664
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
1665
+ margin-left: 0;
1666
+ margin-right: 0;
1667
+ }
1668
+ `;U("vaadin-button",uu,{moduleId:"lumo-button"});/**
1669
+ * @license
1670
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1671
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1672
+ */const ct=W(n=>typeof n.prototype.addController=="function"?n:class extends n{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)}}),cu=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Jt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function hu(){function n(){return!0}return jr(n)}function pu(){try{return fu()?!0:mu()?Jt?!_u():!hu():!1}catch(n){return!1}}function fu(){return localStorage.getItem("vaadin.developmentmode.force")}function mu(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function _u(){return!!(Jt&&Object.keys(Jt).map(t=>Jt[t]).filter(t=>t.productionMode).length>0)}function jr(n,t){if(typeof n!="function")return;const e=cu.exec(n.toString());if(e)try{n=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return n(t)}window.Vaadin=window.Vaadin||{};const eo=function(n,t){if(window.Vaadin.developmentMode)return jr(n,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=pu());function gu(){/*! vaadin-dev-mode:start
1673
+ (function () {
1674
+ 'use strict';
1675
+
1676
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
1677
+ return typeof obj;
1678
+ } : function (obj) {
1679
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1680
+ };
1681
+
1682
+ var classCallCheck = function (instance, Constructor) {
1683
+ if (!(instance instanceof Constructor)) {
1684
+ throw new TypeError("Cannot call a class as a function");
1685
+ }
1686
+ };
1687
+
1688
+ var createClass = function () {
1689
+ function defineProperties(target, props) {
1690
+ for (var i = 0; i < props.length; i++) {
1691
+ var descriptor = props[i];
1692
+ descriptor.enumerable = descriptor.enumerable || false;
1693
+ descriptor.configurable = true;
1694
+ if ("value" in descriptor) descriptor.writable = true;
1695
+ Object.defineProperty(target, descriptor.key, descriptor);
1696
+ }
1697
+ }
1698
+
1699
+ return function (Constructor, protoProps, staticProps) {
1700
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
1701
+ if (staticProps) defineProperties(Constructor, staticProps);
1702
+ return Constructor;
1703
+ };
1704
+ }();
1705
+
1706
+ var getPolymerVersion = function getPolymerVersion() {
1707
+ return window.Polymer && window.Polymer.version;
1708
+ };
1709
+
1710
+ var StatisticsGatherer = function () {
1711
+ function StatisticsGatherer(logger) {
1712
+ classCallCheck(this, StatisticsGatherer);
1713
+
1714
+ this.now = new Date().getTime();
1715
+ this.logger = logger;
1716
+ }
1717
+
1718
+ createClass(StatisticsGatherer, [{
1719
+ key: 'frameworkVersionDetectors',
1720
+ value: function frameworkVersionDetectors() {
1721
+ return {
1722
+ 'Flow': function Flow() {
1723
+ if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
1724
+ var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
1725
+ return window.Vaadin.Flow.clients[key];
1726
+ }).filter(function (client) {
1727
+ return client.getVersionInfo;
1728
+ }).map(function (client) {
1729
+ return client.getVersionInfo().flow;
1730
+ });
1731
+ if (flowVersions.length > 0) {
1732
+ return flowVersions[0];
1733
+ }
1734
+ }
1735
+ },
1736
+ 'Vaadin Framework': function VaadinFramework() {
1737
+ if (window.vaadin && window.vaadin.clients) {
1738
+ var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
1739
+ return client.getVersionInfo;
1740
+ }).map(function (client) {
1741
+ return client.getVersionInfo().vaadinVersion;
1742
+ });
1743
+ if (frameworkVersions.length > 0) {
1744
+ return frameworkVersions[0];
1745
+ }
1746
+ }
1747
+ },
1748
+ 'AngularJs': function AngularJs() {
1749
+ if (window.angular && window.angular.version && window.angular.version) {
1750
+ return window.angular.version.full;
1751
+ }
1752
+ },
1753
+ 'Angular': function Angular() {
1754
+ if (window.ng) {
1755
+ var tags = document.querySelectorAll("[ng-version]");
1756
+ if (tags.length > 0) {
1757
+ return tags[0].getAttribute("ng-version");
1758
+ }
1759
+ return "Unknown";
1760
+ }
1761
+ },
1762
+ 'Backbone.js': function BackboneJs() {
1763
+ if (window.Backbone) {
1764
+ return window.Backbone.VERSION;
1765
+ }
1766
+ },
1767
+ 'React': function React() {
1768
+ var reactSelector = '[data-reactroot], [data-reactid]';
1769
+ if (!!document.querySelector(reactSelector)) {
1770
+ // React does not publish the version by default
1771
+ return "unknown";
1772
+ }
1773
+ },
1774
+ 'Ember': function Ember() {
1775
+ if (window.Em && window.Em.VERSION) {
1776
+ return window.Em.VERSION;
1777
+ } else if (window.Ember && window.Ember.VERSION) {
1778
+ return window.Ember.VERSION;
1779
+ }
1780
+ },
1781
+ 'jQuery': function (_jQuery) {
1782
+ function jQuery() {
1783
+ return _jQuery.apply(this, arguments);
1784
+ }
1785
+
1786
+ jQuery.toString = function () {
1787
+ return _jQuery.toString();
1788
+ };
1789
+
1790
+ return jQuery;
1791
+ }(function () {
1792
+ if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
1793
+ return jQuery.prototype.jquery;
1794
+ }
1795
+ }),
1796
+ 'Polymer': function Polymer() {
1797
+ var version = getPolymerVersion();
1798
+ if (version) {
1799
+ return version;
1800
+ }
1801
+ },
1802
+ 'LitElement': function LitElement() {
1803
+ var version = window.litElementVersions && window.litElementVersions[0];
1804
+ if (version) {
1805
+ return version;
1806
+ }
1807
+ },
1808
+ 'LitHtml': function LitHtml() {
1809
+ var version = window.litHtmlVersions && window.litHtmlVersions[0];
1810
+ if (version) {
1811
+ return version;
1812
+ }
1813
+ },
1814
+ 'Vue.js': function VueJs() {
1815
+ if (window.Vue) {
1816
+ return window.Vue.version;
1817
+ }
1818
+ }
1819
+ };
1820
+ }
1821
+ }, {
1822
+ key: 'getUsedVaadinElements',
1823
+ value: function getUsedVaadinElements(elements) {
1824
+ var version = getPolymerVersion();
1825
+ var elementClasses = void 0;
1826
+ // NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
1827
+ // Check all locations calling the method getEntries() in
1828
+ // https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
1829
+ // Currently it is only used by BootstrapHandler.
1830
+ if (version && version.indexOf('2') === 0) {
1831
+ // Polymer 2: components classes are stored in window.Vaadin
1832
+ elementClasses = Object.keys(window.Vaadin).map(function (c) {
1833
+ return window.Vaadin[c];
1834
+ }).filter(function (c) {
1835
+ return c.is;
1836
+ });
1837
+ } else {
1838
+ // Polymer 3: components classes are stored in window.Vaadin.registrations
1839
+ elementClasses = window.Vaadin.registrations || [];
1840
+ }
1841
+ elementClasses.forEach(function (klass) {
1842
+ var version = klass.version ? klass.version : "0.0.0";
1843
+ elements[klass.is] = { version: version };
1844
+ });
1845
+ }
1846
+ }, {
1847
+ key: 'getUsedVaadinThemes',
1848
+ value: function getUsedVaadinThemes(themes) {
1849
+ ['Lumo', 'Material'].forEach(function (themeName) {
1850
+ var theme;
1851
+ var version = getPolymerVersion();
1852
+ if (version && version.indexOf('2') === 0) {
1853
+ // Polymer 2: themes are stored in window.Vaadin
1854
+ theme = window.Vaadin[themeName];
1855
+ } else {
1856
+ // Polymer 3: themes are stored in custom element registry
1857
+ theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
1858
+ }
1859
+ if (theme && theme.version) {
1860
+ themes[themeName] = { version: theme.version };
1861
+ }
1862
+ });
1863
+ }
1864
+ }, {
1865
+ key: 'getFrameworks',
1866
+ value: function getFrameworks(frameworks) {
1867
+ var detectors = this.frameworkVersionDetectors();
1868
+ Object.keys(detectors).forEach(function (framework) {
1869
+ var detector = detectors[framework];
1870
+ try {
1871
+ var version = detector();
1872
+ if (version) {
1873
+ frameworks[framework] = { version: version };
1874
+ }
1875
+ } catch (e) {}
1876
+ });
1877
+ }
1878
+ }, {
1879
+ key: 'gather',
1880
+ value: function gather(storage) {
1881
+ var storedStats = storage.read();
1882
+ var gatheredStats = {};
1883
+ var types = ["elements", "frameworks", "themes"];
1884
+
1885
+ types.forEach(function (type) {
1886
+ gatheredStats[type] = {};
1887
+ if (!storedStats[type]) {
1888
+ storedStats[type] = {};
1889
+ }
1890
+ });
1891
+
1892
+ var previousStats = JSON.stringify(storedStats);
1893
+
1894
+ this.getUsedVaadinElements(gatheredStats.elements);
1895
+ this.getFrameworks(gatheredStats.frameworks);
1896
+ this.getUsedVaadinThemes(gatheredStats.themes);
1897
+
1898
+ var now = this.now;
1899
+ types.forEach(function (type) {
1900
+ var keys = Object.keys(gatheredStats[type]);
1901
+ keys.forEach(function (key) {
1902
+ if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
1903
+ storedStats[type][key] = { firstUsed: now };
1904
+ }
1905
+ // Discards any previously logged version number
1906
+ storedStats[type][key].version = gatheredStats[type][key].version;
1907
+ storedStats[type][key].lastUsed = now;
1908
+ });
1909
+ });
1910
+
1911
+ var newStats = JSON.stringify(storedStats);
1912
+ storage.write(newStats);
1913
+ if (newStats != previousStats && Object.keys(storedStats).length > 0) {
1914
+ this.logger.debug("New stats: " + newStats);
1915
+ }
1916
+ }
1917
+ }]);
1918
+ return StatisticsGatherer;
1919
+ }();
1920
+
1921
+ var StatisticsStorage = function () {
1922
+ function StatisticsStorage(key) {
1923
+ classCallCheck(this, StatisticsStorage);
1924
+
1925
+ this.key = key;
1926
+ }
1927
+
1928
+ createClass(StatisticsStorage, [{
1929
+ key: 'read',
1930
+ value: function read() {
1931
+ var localStorageStatsString = localStorage.getItem(this.key);
1932
+ try {
1933
+ return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
1934
+ } catch (e) {
1935
+ return {};
1936
+ }
1937
+ }
1938
+ }, {
1939
+ key: 'write',
1940
+ value: function write(data) {
1941
+ localStorage.setItem(this.key, data);
1942
+ }
1943
+ }, {
1944
+ key: 'clear',
1945
+ value: function clear() {
1946
+ localStorage.removeItem(this.key);
1947
+ }
1948
+ }, {
1949
+ key: 'isEmpty',
1950
+ value: function isEmpty() {
1951
+ var storedStats = this.read();
1952
+ var empty = true;
1953
+ Object.keys(storedStats).forEach(function (key) {
1954
+ if (Object.keys(storedStats[key]).length > 0) {
1955
+ empty = false;
1956
+ }
1957
+ });
1958
+
1959
+ return empty;
1960
+ }
1961
+ }]);
1962
+ return StatisticsStorage;
1963
+ }();
1964
+
1965
+ var StatisticsSender = function () {
1966
+ function StatisticsSender(url, logger) {
1967
+ classCallCheck(this, StatisticsSender);
1968
+
1969
+ this.url = url;
1970
+ this.logger = logger;
1971
+ }
1972
+
1973
+ createClass(StatisticsSender, [{
1974
+ key: 'send',
1975
+ value: function send(data, errorHandler) {
1976
+ var logger = this.logger;
1977
+
1978
+ if (navigator.onLine === false) {
1979
+ logger.debug("Offline, can't send");
1980
+ errorHandler();
1981
+ return;
1982
+ }
1983
+ logger.debug("Sending data to " + this.url);
1984
+
1985
+ var req = new XMLHttpRequest();
1986
+ req.withCredentials = true;
1987
+ req.addEventListener("load", function () {
1988
+ // Stats sent, nothing more to do
1989
+ logger.debug("Response: " + req.responseText);
1990
+ });
1991
+ req.addEventListener("error", function () {
1992
+ logger.debug("Send failed");
1993
+ errorHandler();
1994
+ });
1995
+ req.addEventListener("abort", function () {
1996
+ logger.debug("Send aborted");
1997
+ errorHandler();
1998
+ });
1999
+ req.open("POST", this.url);
2000
+ req.setRequestHeader("Content-Type", "application/json");
2001
+ req.send(data);
2002
+ }
2003
+ }]);
2004
+ return StatisticsSender;
2005
+ }();
2006
+
2007
+ var StatisticsLogger = function () {
2008
+ function StatisticsLogger(id) {
2009
+ classCallCheck(this, StatisticsLogger);
2010
+
2011
+ this.id = id;
2012
+ }
2013
+
2014
+ createClass(StatisticsLogger, [{
2015
+ key: '_isDebug',
2016
+ value: function _isDebug() {
2017
+ return localStorage.getItem("vaadin." + this.id + ".debug");
2018
+ }
2019
+ }, {
2020
+ key: 'debug',
2021
+ value: function debug(msg) {
2022
+ if (this._isDebug()) {
2023
+ console.info(this.id + ": " + msg);
2024
+ }
2025
+ }
2026
+ }]);
2027
+ return StatisticsLogger;
2028
+ }();
2029
+
2030
+ var UsageStatistics = function () {
2031
+ function UsageStatistics() {
2032
+ classCallCheck(this, UsageStatistics);
2033
+
2034
+ this.now = new Date();
2035
+ this.timeNow = this.now.getTime();
2036
+ this.gatherDelay = 10; // Delay between loading this file and gathering stats
2037
+ this.initialDelay = 24 * 60 * 60;
2038
+
2039
+ this.logger = new StatisticsLogger("statistics");
2040
+ this.storage = new StatisticsStorage("vaadin.statistics.basket");
2041
+ this.gatherer = new StatisticsGatherer(this.logger);
2042
+ this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
2043
+ }
2044
+
2045
+ createClass(UsageStatistics, [{
2046
+ key: 'maybeGatherAndSend',
2047
+ value: function maybeGatherAndSend() {
2048
+ var _this = this;
2049
+
2050
+ if (localStorage.getItem(UsageStatistics.optOutKey)) {
2051
+ return;
2052
+ }
2053
+ this.gatherer.gather(this.storage);
2054
+ setTimeout(function () {
2055
+ _this.maybeSend();
2056
+ }, this.gatherDelay * 1000);
2057
+ }
2058
+ }, {
2059
+ key: 'lottery',
2060
+ value: function lottery() {
2061
+ return true;
2062
+ }
2063
+ }, {
2064
+ key: 'currentMonth',
2065
+ value: function currentMonth() {
2066
+ return this.now.getYear() * 12 + this.now.getMonth();
2067
+ }
2068
+ }, {
2069
+ key: 'maybeSend',
2070
+ value: function maybeSend() {
2071
+ var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2072
+ var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
2073
+
2074
+ if (!firstUse) {
2075
+ // Use a grace period to avoid interfering with tests, incognito mode etc
2076
+ firstUse = this.timeNow;
2077
+ localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
2078
+ }
2079
+
2080
+ if (this.timeNow < firstUse + this.initialDelay * 1000) {
2081
+ this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
2082
+ return;
2083
+ }
2084
+ if (this.currentMonth() <= monthProcessed) {
2085
+ this.logger.debug("This month has already been processed");
2086
+ return;
2087
+ }
2088
+ localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
2089
+ // Use random sampling
2090
+ if (this.lottery()) {
2091
+ this.logger.debug("Congratulations, we have a winner!");
2092
+ } else {
2093
+ this.logger.debug("Sorry, no stats from you this time");
2094
+ return;
2095
+ }
2096
+
2097
+ this.send();
2098
+ }
2099
+ }, {
2100
+ key: 'send',
2101
+ value: function send() {
2102
+ // Ensure we have the latest data
2103
+ this.gatherer.gather(this.storage);
2104
+
2105
+ // Read, send and clean up
2106
+ var data = this.storage.read();
2107
+ data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2108
+ data["usageStatisticsVersion"] = UsageStatistics.version;
2109
+ 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';
2110
+ var self = this;
2111
+ this.sender.send(info + JSON.stringify(data), function () {
2112
+ // Revert the 'month processed' flag
2113
+ localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
2114
+ });
2115
+ }
2116
+ }], [{
2117
+ key: 'version',
2118
+ get: function get$1() {
2119
+ return '2.1.2';
2120
+ }
2121
+ }, {
2122
+ key: 'firstUseKey',
2123
+ get: function get$1() {
2124
+ return 'vaadin.statistics.firstuse';
2125
+ }
2126
+ }, {
2127
+ key: 'monthProcessedKey',
2128
+ get: function get$1() {
2129
+ return 'vaadin.statistics.monthProcessed';
2130
+ }
2131
+ }, {
2132
+ key: 'optOutKey',
2133
+ get: function get$1() {
2134
+ return 'vaadin.statistics.optout';
2135
+ }
2136
+ }]);
2137
+ return UsageStatistics;
2138
+ }();
2139
+
2140
+ try {
2141
+ window.Vaadin = window.Vaadin || {};
2142
+ window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
2143
+ window.Vaadin.usageStatsChecker.maybeGatherAndSend();
2144
+ } catch (e) {
2145
+ // Intentionally ignored as this is not a problem in the app being developed
2146
+ }
2147
+
2148
+ }());
2149
+
2150
+ vaadin-dev-mode:end **/}const yu=function(){if(typeof eo=="function")return eo(gu)};/**
2151
+ * @license
2152
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2153
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2154
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2155
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2156
+ * Code distributed by Google as part of the polymer project is also
2157
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2158
+ */let to=0,Vr=0;const Ze=[];let As=!1;function bu(){As=!1;const n=Ze.length;for(let t=0;t<n;t++){const e=Ze[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Ze.splice(0,n),Vr+=n}const ui={after(n){return{run(t){return window.setTimeout(t,n)},cancel(t){window.clearTimeout(t)}}},run(n,t){return window.setTimeout(n,t)},cancel(n){window.clearTimeout(n)}},vu={run(n){return window.requestIdleCallback?window.requestIdleCallback(n):window.setTimeout(n,16)},cancel(n){window.cancelIdleCallback?window.cancelIdleCallback(n):window.clearTimeout(n)}},xu={run(n){As||(As=!0,queueMicrotask(()=>bu())),Ze.push(n);const t=to;return to+=1,t},cancel(n){const t=n-Vr;if(t>=0){if(!Ze[t])throw new Error(`invalid async handle: ${n}`);Ze[t]=null}}};/**
2159
+ @license
2160
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2161
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2162
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2163
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2164
+ Code distributed by Google as part of the polymer project is also
2165
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2166
+ */const Es=new Set;let Mt=class Ss{static debounce(t,e,i){return t instanceof Ss?t._cancelAsync():t=new Ss,t.setConfig(e,i),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,Es.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Es.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 wu(n){Es.add(n)}/**
2167
+ * @license
2168
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2169
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2170
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){yu()};let Hi;const io=new Set,Yr=n=>class extends xi(n){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!io.has(e)&&(window.Vaadin.registrations.push(this),io.add(e),window.Vaadin.developmentModeCallback&&(Hi=Mt.debounce(Hi,vu,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),wu(Hi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2171
+ * @license
2172
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2173
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2174
+ */function Au(n){const t=[];for(;n;){if(n.nodeType===Node.DOCUMENT_NODE){t.push(n);break}if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(n),n=n.host;continue}if(n.assignedSlot){n=n.assignedSlot;continue}n=n.parentNode}return t}function Qs(n){return n?new Set(n.split(" ")):new Set}function wi(n){return n?[...n].join(" "):""}function Wr(n,t,e){const i=Qs(n.getAttribute(t));i.add(e),n.setAttribute(t,wi(i))}function Eu(n,t,e){const i=Qs(n.getAttribute(t));if(i.delete(e),i.size===0){n.removeAttribute(t);return}n.setAttribute(t,wi(i))}function Su(n){return n.nodeType===Node.TEXT_NODE&&n.textContent.trim()===""}/**
2175
+ * @license
2176
+ * Copyright (c) 2023 Vaadin Ltd.
2177
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2178
+ */class Cu{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 i=[],s=[];t.length&&(e=t.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,r)=>{const a=t.indexOf(o);a===-1?i.push(o):a!==r&&s.push(o)}),(e.length||i.length||s.length)&&this.callback({addedNodes:e,movedNodes:s,removedNodes:i}),this._storedNodes=t}}/**
2179
+ * @license
2180
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2181
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2182
+ */let $u=0;function qr(){return $u++}/**
2183
+ * @license
2184
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2185
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2186
+ */class Me extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${qr()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:a,useUniqueId:l}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof r=="boolean"?r:!1,this.slotInitializer=o,r&&(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:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),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}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Cu(i,({addedNodes:s,removedNodes:o})=>{const r=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Su(l)&&!r.includes(l));o.length&&(this.nodes=r.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...r,...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)))})}}/**
2187
+ * @license
2188
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
2189
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2190
+ */class Kr extends Me{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}}))}}/**
2191
+ * @license
2192
+ * Copyright 2019 Google LLC
2193
+ * SPDX-License-Identifier: BSD-3-Clause
2194
+ */const Zt=window,en=Zt.ShadowRoot&&(Zt.ShadyCSS===void 0||Zt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tn=Symbol(),so=new WeakMap;let Gr=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==tn)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(en&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=so.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&so.set(e,t))}return t}toString(){return this.cssText}};const Pu=n=>new Gr(typeof n=="string"?n:n+"",void 0,tn),Bt=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Gr(e,n,tn)},Tu=(n,t)=>{en?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=Zt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},no=en?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Pu(e)})(n):n;/**
2195
+ * @license
2196
+ * Copyright 2017 Google LLC
2197
+ * SPDX-License-Identifier: BSD-3-Clause
2198
+ */var Fi;const ci=window,oo=ci.trustedTypes,ku=oo?oo.emptyScript:"",ro=ci.reactiveElementPolyfillSupport,Cs={toAttribute(n,t){switch(t){case Boolean:n=n?ku:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch(i){e=null}}return e}},Jr=(n,t)=>t!==n&&(t==t||n==n),Ui={attribute:!0,type:String,converter:Cs,reflect:!1,hasChanged:Jr},$s="finalized";let qe=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,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=Ui){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ui}static finalize(){if(this.hasOwnProperty($s))return!1;this[$s]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(no(s))}else t!==void 0&&e.push(no(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Tu(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Ui){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Cs).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:Cs;this._$El=o,this[o]=a.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Jr)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}_$Ej(){return Ce(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,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};qe[$s]=!0,qe.elementProperties=new Map,qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},ro==null||ro({ReactiveElement:qe}),((Fi=ci.reactiveElementVersions)!==null&&Fi!==void 0?Fi:ci.reactiveElementVersions=[]).push("1.6.3");/**
2199
+ * @license
2200
+ * Copyright 2017 Google LLC
2201
+ * SPDX-License-Identifier: BSD-3-Clause
2202
+ */var Bi;const hi=window,it=hi.trustedTypes,ao=it?it.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ps="$lit$",ye=`lit$${(Math.random()+"").slice(9)}$`,Zr="?"+ye,Du=`<${Zr}>`,He=document,Ot=()=>He.createComment(""),Nt=n=>n===null||typeof n!="object"&&typeof n!="function",Xr=Array.isArray,Mu=n=>Xr(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",ji=`[
2203
+ \f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lo=/-->/g,uo=/>/g,Pe=RegExp(`>|${ji}(?:([^\\s"'>=/]+)(${ji}*=${ji}*(?:[^
2204
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),co=/'/g,ho=/"/g,Qr=/^(?:script|style|textarea|title)$/i,st=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),po=new WeakMap,Oe=He.createTreeWalker(He,129,null,!1);function ea(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ao!==void 0?ao.createHTML(t):t}const Ou=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=mt;for(let a=0;a<e;a++){const l=n[a];let d,u,h=-1,p=0;for(;p<l.length&&(r.lastIndex=p,u=r.exec(l),u!==null);)p=r.lastIndex,r===mt?u[1]==="!--"?r=lo:u[1]!==void 0?r=uo:u[2]!==void 0?(Qr.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=Pe):u[3]!==void 0&&(r=Pe):r===Pe?u[0]===">"?(r=s!=null?s:mt,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?Pe:u[3]==='"'?ho:co):r===ho||r===co?r=Pe:r===lo||r===uo?r=mt:(r=Pe,s=void 0);const f=r===Pe&&n[a+1].startsWith("/>")?" ":"";o+=r===mt?l+Du:h>=0?(i.push(d),l.slice(0,h)+Ps+l.slice(h)+ye+f):l+ye+(h===-2?(i.push(void 0),a):f)}return[ea(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};let Ts=class ta{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const a=t.length-1,l=this.parts,[d,u]=Ou(t,e);if(this.el=ta.createElement(d,i),Oe.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=Oe.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(Ps)||p.startsWith(ye)){const f=u[r++];if(h.push(p),f!==void 0){const _=s.getAttribute(f.toLowerCase()+Ps).split(ye),S=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:S[2],strings:_,ctor:S[1]==="."?Iu:S[1]==="?"?Lu:S[1]==="@"?Ru:Ai})}else l.push({type:6,index:o})}for(const p of h)s.removeAttribute(p)}if(Qr.test(s.tagName)){const h=s.textContent.split(ye),p=h.length-1;if(p>0){s.textContent=it?it.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],Ot()),Oe.nextNode(),l.push({type:2,index:++o});s.append(h[p],Ot())}}}else if(s.nodeType===8)if(s.data===Zr)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(ye,h+1))!==-1;)l.push({type:7,index:o}),h+=ye.length-1}o++}}static createElement(t,e){const i=He.createElement("template");return i.innerHTML=t,i}};function nt(n,t,e=n,i){var s,o,r,a;if(t===st)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const d=Nt(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==d&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),d===void 0?l=void 0:(l=new d(n),l._$AT(n,e,i)),i!==void 0?((r=(a=e)._$Co)!==null&&r!==void 0?r:a._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=nt(n,l._$AS(n,t.values),l,i)),t}let Nu=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:He).importNode(i,!0);Oe.currentNode=o;let r=Oe.nextNode(),a=0,l=0,d=s[0];for(;d!==void 0;){if(a===d.index){let u;d.type===2?u=new sn(r,r.nextSibling,this,t):d.type===1?u=new d.ctor(r,d.name,d.strings,this,t):d.type===6&&(u=new Hu(r,this,t)),this._$AV.push(u),d=s[++l]}a!==(d==null?void 0:d.index)&&(r=Oe.nextNode(),a++)}return Oe.currentNode=He,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},sn=class ia{constructor(t,e,i,s){var o;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}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=nt(this,t,e),Nt(t)?t===K||t==null||t===""?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==st&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Mu(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!==K&&Nt(this._$AH)?this._$AA.nextSibling.data=t:this.$(He.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Ts.createElement(ea(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const r=new Nu(o,this),a=r.u(this.options);r.v(i),this.$(a),this._$AH=r}}_$AC(t){let e=po.get(t.strings);return e===void 0&&po.set(t.strings,e=new Ts(t)),e}T(t){Xr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new ia(this.k(Ot()),this.k(Ot()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const 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))}},Ai=class{constructor(t,e,i,s,o){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=nt(this,t,e,0),r=!Nt(t)||t!==this._$AH&&t!==st,r&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=nt(this,a[i+l],e,l),d===st&&(d=this._$AH[l]),r||(r=!Nt(d)||d!==this._$AH[l]),d===K?t=K:t!==K&&(t+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}r&&!s&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Iu=class extends Ai{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}};const zu=it?it.emptyScript:"";let Lu=class extends Ai{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,zu):this.element.removeAttribute(this.name)}},Ru=class extends Ai{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=nt(this,t,e,0))!==null&&i!==void 0?i:K)===st)return;const s=this._$AH,o=t===K&&s!==K||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==K&&(s===K||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},Hu=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}};const fo=hi.litHtmlPolyfillSupport;fo==null||fo(Ts,sn),((Bi=hi.litHtmlVersions)!==null&&Bi!==void 0?Bi:hi.litHtmlVersions=[]).push("2.8.0");const Fu=(n,t,e)=>{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new sn(t.insertBefore(Ot(),a),a,void 0,e!=null?e:{})}return r._$AI(n),r};/**
2205
+ * @license
2206
+ * Copyright 2017 Google LLC
2207
+ * SPDX-License-Identifier: BSD-3-Clause
2208
+ */var Vi,Yi;let Xt=class extends qe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fu(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 st}};Xt.finalized=!0,Xt._$litElement$=!0,(Vi=globalThis.litElementHydrateSupport)===null||Vi===void 0||Vi.call(globalThis,{LitElement:Xt});const mo=globalThis.litElementPolyfillSupport;mo==null||mo({LitElement:Xt});((Yi=globalThis.litElementVersions)!==null&&Yi!==void 0?Yi:globalThis.litElementVersions=[]).push("3.3.3");/**
2209
+ * @license
2210
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2211
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2212
+ */const Uu=Bt`
2213
+ :host {
2214
+ display: inline-block;
2215
+ position: relative;
2216
+ outline: none;
2217
+ white-space: nowrap;
2218
+ -webkit-user-select: none;
2219
+ -moz-user-select: none;
2220
+ user-select: none;
2221
+ }
2222
+
2223
+ :host([hidden]) {
2224
+ display: none !important;
2225
+ }
2226
+
2227
+ /* Aligns the button with form fields when placed on the same line.
2228
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
2229
+ .vaadin-button-container::before {
2230
+ content: '\\2003';
2231
+ display: inline-block;
2232
+ width: 0;
2233
+ max-height: 100%;
2234
+ }
2235
+
2236
+ .vaadin-button-container {
2237
+ display: inline-flex;
2238
+ align-items: center;
2239
+ justify-content: center;
2240
+ text-align: center;
2241
+ width: 100%;
2242
+ height: 100%;
2243
+ min-height: inherit;
2244
+ text-shadow: inherit;
2245
+ }
2246
+
2247
+ [part='prefix'],
2248
+ [part='suffix'] {
2249
+ flex: none;
2250
+ }
2251
+
2252
+ [part='label'] {
2253
+ white-space: nowrap;
2254
+ overflow: hidden;
2255
+ text-overflow: ellipsis;
2256
+ }
2257
+
2258
+ @media (forced-colors: active) {
2259
+ :host {
2260
+ outline: 1px solid;
2261
+ outline-offset: -1px;
2262
+ }
2263
+
2264
+ :host([focused]) {
2265
+ outline-width: 2px;
2266
+ }
2267
+
2268
+ :host([disabled]) {
2269
+ outline-color: GrayText;
2270
+ }
2271
+ }
2272
+ `,Bu=n=>n`
2273
+ <div class="vaadin-button-container">
2274
+ <span part="prefix" aria-hidden="true">
2275
+ <slot name="prefix"></slot>
2276
+ </span>
2277
+ <span part="label">
2278
+ <slot></slot>
2279
+ </span>
2280
+ <span part="suffix" aria-hidden="true">
2281
+ <slot name="suffix"></slot>
2282
+ </span>
2283
+ </div>
2284
+ <slot name="tooltip"></slot>
2285
+ `;/**
2286
+ @license
2287
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2288
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2289
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2290
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2291
+ Code distributed by Google as part of the polymer project is also
2292
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2293
+ */const ju=n=>n,sa=typeof document.head.style.touchAction=="string",ks="__polymerGestures",Wi="__polymerGesturesHandled",Ds="__polymerGesturesTouchAction",_o=25,go=5,Vu=2,Yu=["mousedown","mousemove","mouseup","click"],Wu=[0,1,4,2],qu=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(n){return!1}}();function nn(n){return Yu.indexOf(n)>-1}let Ku=!1;(function(){try{const n=Object.defineProperty({},"passive",{get(){Ku=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}})();function Gu(n){nn(n)}const Ju=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Zu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Le(n){const t=n.type;if(!nn(t))return!1;if(t==="mousemove"){let i=n.buttons===void 0?1:n.buttons;return n instanceof window.MouseEvent&&!qu&&(i=Wu[n.which]||0),!!(i&1)}return(n.button===void 0?0:n.button)===0}function Xu(n){if(n.type==="click"){if(n.detail===0)return!0;const t=xe(n);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=n.pageX,s=n.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const me={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Qu(n){let t="auto";const e=oa(n);for(let i=0,s;i<e.length;i++)if(s=e[i],s[Ds]){t=s[Ds];break}return t}function na(n,t,e){n.movefn=t,n.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Xe(n){document.removeEventListener("mousemove",n.movefn),document.removeEventListener("mouseup",n.upfn),n.movefn=null,n.upfn=null}const oa=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:n=>n.composedPath&&n.composedPath()||[],on={},Ne=[];function ec(n,t){let e=document.elementFromPoint(n,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(n,t),s===i)break;i&&(e=i)}return e}function xe(n){const t=oa(n);return t.length>0?t[0]:n.target}function tc(n){const t=n.type,i=n.currentTarget[ks];if(!i)return;const s=i[t];if(!s)return;if(!n[Wi]&&(n[Wi]={},t.startsWith("touch"))){const r=n.changedTouches[0];if(t==="touchstart"&&n.touches.length===1&&(me.touch.id=r.identifier),me.touch.id!==r.identifier)return;sa||(t==="touchstart"||t==="touchmove")&&ic(n)}const o=n[Wi];if(!o.skip){for(let r=0,a;r<Ne.length;r++)a=Ne[r],s[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(n.type)>-1&&a.reset&&a.reset();for(let r=0,a;r<Ne.length;r++)a=Ne[r],s[a.name]&&!o[a.name]&&(o[a.name]=!0,a[t](n))}}function ic(n){const t=n.changedTouches[0],e=n.type;if(e==="touchstart")me.touch.x=t.clientX,me.touch.y=t.clientY,me.touch.scrollDecided=!1;else if(e==="touchmove"){if(me.touch.scrollDecided)return;me.touch.scrollDecided=!0;const i=Qu(n);let s=!1;const o=Math.abs(me.touch.x-t.clientX),r=Math.abs(me.touch.y-t.clientY);n.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=r>o:i==="pan-y"&&(s=o>r)),s?n.preventDefault():pi("track")}}function pe(n,t,e){return on[t]?(sc(n,t,e),!0):!1}function sc(n,t,e){const i=on[t],s=i.deps,o=i.name;let r=n[ks];r||(n[ks]=r={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(Ju&&nn(l)&&l!=="click")&&(d=r[l],d||(r[l]=d={_count:0}),d._count===0&&n.addEventListener(l,tc,Gu(l)),d[o]=(d[o]||0)+1,d._count=(d._count||0)+1);n.addEventListener(t,e),i.touchAction&&ra(n,i.touchAction)}function rn(n){Ne.push(n),n.emits.forEach(t=>{on[t]=n})}function nc(n){for(let t=0,e;t<Ne.length;t++){e=Ne[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===n)return e}return null}function ra(n,t){sa&&n instanceof HTMLElement&&xu.run(()=>{n.style.touchAction=t}),n[Ds]=t}function an(n,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,ju(n).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function pi(n){const t=nc(n);t.info&&(t.info.prevent=!0)}rn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Xe(this.info)},mousedown(n){if(!Le(n))return;const t=xe(n),e=this,i=o=>{Le(o)||(_t("up",t,o),Xe(e.info))},s=o=>{Le(o)&&_t("up",t,o),Xe(e.info)};na(this.info,i,s),_t("down",t,n)},touchstart(n){_t("down",xe(n),n.changedTouches[0],n)},touchend(n){_t("up",xe(n),n.changedTouches[0],n)}});function _t(n,t,e,i){t&&an(t,n,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return pi(s)}})}rn({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(n){this.moves.length>Vu&&this.moves.shift(),this.moves.push(n)},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,Xe(this.info)},mousedown(n){if(!Le(n))return;const t=xe(n),e=this,i=o=>{const r=o.clientX,a=o.clientY;yo(e.info,r,a)&&(e.info.state=e.info.started?o.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&pi("tap"),e.info.addMove({x:r,y:a}),Le(o)||(e.info.state="end",Xe(e.info)),t&&qi(e.info,t,o),e.info.started=!0)},s=o=>{e.info.started&&i(o),Xe(e.info)};na(this.info,i,s),this.info.x=n.clientX,this.info.y=n.clientY},touchstart(n){const t=n.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(n){const t=xe(n),e=n.changedTouches[0],i=e.clientX,s=e.clientY;yo(this.info,i,s)&&(this.info.state==="start"&&pi("tap"),this.info.addMove({x:i,y:s}),qi(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(n){const t=xe(n),e=n.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),qi(this.info,t,e))}});function yo(n,t,e){if(n.prevent)return!1;if(n.started)return!0;const i=Math.abs(n.x-t),s=Math.abs(n.y-e);return i>=go||s>=go}function qi(n,t,e){if(!t)return;const i=n.moves[n.moves.length-2],s=n.moves[n.moves.length-1],o=s.x-n.x,r=s.y-n.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),an(t,"track",{state:n.state,x:e.clientX,y:e.clientY,dx:o,dy:r,ddx:a,ddy:l,sourceEvent:e,hover(){return ec(e.clientX,e.clientY)}})}rn({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(n){Le(n)&&(this.info.x=n.clientX,this.info.y=n.clientY)},click(n){Le(n)&&bo(this.info,n)},touchstart(n){const t=n.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(n){bo(this.info,n.changedTouches[0],n)}});function bo(n,t,e){const i=Math.abs(t.clientX-n.x),s=Math.abs(t.clientY-n.y),o=xe(e||t);!o||Zu[o.localName]&&o.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=_o&&s<=_o||Xu(t))&&(n.prevent||an(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2294
+ * @license
2295
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2296
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2297
+ */const aa=W(n=>class extends n{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()}});/**
2298
+ * @license
2299
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2300
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2301
+ */const Ei=W(n=>class extends n{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){}});/**
2302
+ * @license
2303
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2304
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2305
+ */const oc=n=>class extends aa(Ei(n)){get _activeKeys(){return[" "]}ready(){super.ready(),pe(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),pe(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",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2306
+ * @license
2307
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2308
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2309
+ */let ln=!1;window.addEventListener("keydown",()=>{ln=!0},{capture:!0});window.addEventListener("mousedown",()=>{ln=!1},{capture:!0});function Ms(){let n=document.activeElement||document.body;for(;n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function rc(){return ln}function ac(n){const t=n.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(n);return e.visibility==="hidden"||e.display==="none"}function lc(n,t){const e=Math.max(n.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function dc(n,t){const e=[];for(;n.length>0&&t.length>0;)lc(n[0],t[0])?e.push(t.shift()):e.push(n.shift());return e.concat(n,t)}function Os(n){const t=n.length;if(t<2)return n;const e=Math.ceil(t/2),i=Os(n.slice(0,e)),s=Os(n.slice(e));return dc(i,s)}function uc(n){return n.matches('[tabindex="-1"]')?!1:n.matches("input, select, textarea, button, object")?n.matches(":not([disabled])"):n.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function cc(n){return n.getRootNode().activeElement===n}function hc(n){if(!uc(n))return-1;const t=n.getAttribute("tabindex")||0;return Number(t)}function la(n,t){if(n.nodeType!==Node.ELEMENT_NODE||ac(n))return!1;const e=n,i=hc(e);let s=i>0;i>=0&&t.push(e);let o=[];return e.localName==="slot"?o=e.assignedNodes({flatten:!0}):o=(e.shadowRoot||e).children,[...o].forEach(r=>{s=la(r,t)||s}),s}function pc(n){const t=[];return la(n,t)?Os(t):t}/**
2310
+ * @license
2311
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2312
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2313
+ */const dn=W(n=>class extends n{get _keyboardActive(){return rc()}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}});/**
2314
+ * @license
2315
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2316
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2317
+ */const da=n=>class extends aa(n){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2318
+ * @license
2319
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2320
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2321
+ */const fc=n=>class extends oc(da(dn(n))){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())}};/**
2322
+ * @license
2323
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2324
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2325
+ */U("vaadin-button",Uu,{moduleId:"vaadin-button-styles"});class mc extends fc(Yr(Be(ct(Ae)))){static get is(){return"vaadin-button"}static get template(){return Bu(Ve)}ready(){super.ready(),this._tooltipController=new Kr(this),this.addController(this._tooltipController)}}ue(mc);U("vaadin-date-picker-year",D`
2326
+ :host([current]) [part='year-number'] {
2327
+ color: var(--lumo-primary-text-color);
2328
+ }
2329
+
2330
+ :host(:not([current])) [part='year-number'],
2331
+ [part='year-separator'] {
2332
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
2333
+ transition: 0.2s opacity;
2334
+ }
2335
+
2336
+ [part='year-number'],
2337
+ [part='year-separator'] {
2338
+ display: flex;
2339
+ align-items: center;
2340
+ justify-content: center;
2341
+ height: 50%;
2342
+ transform: translateY(-50%);
2343
+ }
2344
+
2345
+ [part='year-separator']::after {
2346
+ color: var(--lumo-disabled-text-color);
2347
+ content: '\\2022';
2348
+ }
2349
+ `,{moduleId:"lumo-date-picker-year"});U("vaadin-date-picker-overlay-content",D`
2350
+ :host {
2351
+ position: relative;
2352
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
2353
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
2354
+ background-size: 57px 100%;
2355
+ background-position: top right;
2356
+ background-repeat: no-repeat;
2357
+ cursor: default;
2358
+ }
2359
+
2360
+ ::slotted([slot='months']) {
2361
+ /* Month calendar height:
2362
+ header height + margin-bottom
2363
+ + weekdays height + margin-bottom
2364
+ + date cell heights
2365
+ + small margin between month calendars
2366
+ */
2367
+ /* prettier-ignore */
2368
+ --vaadin-infinite-scroller-item-height:
2369
+ calc(
2370
+ var(--lumo-font-size-l) + var(--lumo-space-m)
2371
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
2372
+ + var(--lumo-size-m) * 6
2373
+ + var(--lumo-space-s)
2374
+ );
2375
+ --vaadin-infinite-scroller-buffer-offset: 10%;
2376
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2377
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2378
+ position: relative;
2379
+ margin-right: 57px;
2380
+ }
2381
+
2382
+ ::slotted([slot='years']) {
2383
+ /* TODO get rid of fixed magic number */
2384
+ --vaadin-infinite-scroller-buffer-width: 97px;
2385
+ width: 57px;
2386
+ height: auto;
2387
+ top: 0;
2388
+ bottom: 0;
2389
+ font-size: var(--lumo-font-size-s);
2390
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
2391
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2392
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2393
+ cursor: var(--lumo-clickable-cursor);
2394
+ }
2395
+
2396
+ ::slotted([slot='years']:hover) {
2397
+ --_lumo-date-picker-year-opacity: 1;
2398
+ }
2399
+
2400
+ /* TODO unsupported selector */
2401
+ #scrollers {
2402
+ position: static;
2403
+ display: block;
2404
+ }
2405
+
2406
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
2407
+ :host([desktop]) ::slotted([slot='months']) {
2408
+ right: auto;
2409
+ }
2410
+
2411
+ /* Year scroller position indicator */
2412
+ ::slotted([slot='years'])::before {
2413
+ border: none;
2414
+ width: 1em;
2415
+ height: 1em;
2416
+ background-color: var(--lumo-base-color);
2417
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
2418
+ transform: translate(-75%, -50%) rotate(45deg);
2419
+ border-top-right-radius: var(--lumo-border-radius-s);
2420
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
2421
+ z-index: 1;
2422
+ }
2423
+
2424
+ [part='toolbar'] {
2425
+ padding: var(--lumo-space-s);
2426
+ border-bottom-left-radius: var(--lumo-border-radius-l);
2427
+ margin-right: 57px;
2428
+ }
2429
+
2430
+ [part='toolbar'] ::slotted(vaadin-button) {
2431
+ margin: 0;
2432
+ }
2433
+
2434
+ /* Narrow viewport mode (fullscreen) */
2435
+
2436
+ :host([fullscreen]) [part='toolbar'] {
2437
+ order: -1;
2438
+ background-color: var(--lumo-base-color);
2439
+ }
2440
+
2441
+ :host([fullscreen]) [part='overlay-header'] {
2442
+ order: -2;
2443
+ height: var(--lumo-size-m);
2444
+ padding: var(--lumo-space-s);
2445
+ position: absolute;
2446
+ left: 0;
2447
+ right: 0;
2448
+ justify-content: center;
2449
+ }
2450
+
2451
+ :host([fullscreen]) [part='toggle-button'],
2452
+ :host([fullscreen]) [part='clear-button'],
2453
+ [part='overlay-header'] [part='label'] {
2454
+ display: none;
2455
+ }
2456
+
2457
+ /* Very narrow screen (year scroller initially hidden) */
2458
+
2459
+ [part='years-toggle-button'] {
2460
+ display: flex;
2461
+ align-items: center;
2462
+ height: var(--lumo-size-s);
2463
+ padding: 0 0.5em;
2464
+ border-radius: var(--lumo-border-radius-m);
2465
+ z-index: 3;
2466
+ color: var(--lumo-primary-text-color);
2467
+ font-weight: 500;
2468
+ -webkit-font-smoothing: antialiased;
2469
+ -moz-osx-font-smoothing: grayscale;
2470
+ }
2471
+
2472
+ :host([years-visible]) [part='years-toggle-button'] {
2473
+ background-color: var(--lumo-primary-color);
2474
+ color: var(--lumo-primary-contrast-color);
2475
+ }
2476
+
2477
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
2478
+ @media screen and (max-width: 374px) {
2479
+ :host {
2480
+ background-image: none;
2481
+ }
2482
+
2483
+ [part='toolbar'],
2484
+ ::slotted([slot='months']) {
2485
+ margin-right: 0;
2486
+ }
2487
+
2488
+ /* TODO make date-picker adapt to the width of the years part */
2489
+ ::slotted([slot='years']) {
2490
+ --vaadin-infinite-scroller-buffer-width: 90px;
2491
+ width: 50px;
2492
+ background-color: var(--lumo-shade-5pct);
2493
+ }
2494
+
2495
+ :host([years-visible]) ::slotted([slot='months']) {
2496
+ padding-left: 50px;
2497
+ }
2498
+ }
2499
+ `,{moduleId:"lumo-date-picker-overlay-content"});U("vaadin-month-calendar",D`
2500
+ :host {
2501
+ -moz-user-select: none;
2502
+ -webkit-user-select: none;
2503
+ -webkit-tap-highlight-color: transparent;
2504
+ user-select: none;
2505
+ font-size: var(--lumo-font-size-m);
2506
+ color: var(--lumo-body-text-color);
2507
+ text-align: center;
2508
+ padding: 0 var(--lumo-space-xs);
2509
+ }
2510
+
2511
+ /* Month header */
2512
+
2513
+ [part='month-header'] {
2514
+ color: var(--lumo-header-text-color);
2515
+ font-size: var(--lumo-font-size-l);
2516
+ line-height: 1;
2517
+ font-weight: 500;
2518
+ margin-bottom: var(--lumo-space-m);
2519
+ }
2520
+
2521
+ /* Week days and numbers */
2522
+
2523
+ [part='weekdays'],
2524
+ [part='weekday'],
2525
+ [part='week-number'] {
2526
+ font-size: var(--lumo-font-size-xxs);
2527
+ line-height: 1;
2528
+ color: var(--lumo-secondary-text-color);
2529
+ }
2530
+
2531
+ [part='weekdays'] {
2532
+ margin-bottom: var(--lumo-space-s);
2533
+ }
2534
+
2535
+ [part='weekday']:empty,
2536
+ [part='week-number'] {
2537
+ width: var(--lumo-size-xs);
2538
+ }
2539
+
2540
+ /* Date and week number cells */
2541
+
2542
+ [part~='date'],
2543
+ [part='week-number'] {
2544
+ box-sizing: border-box;
2545
+ display: inline-flex;
2546
+ align-items: center;
2547
+ justify-content: center;
2548
+ height: var(--lumo-size-m);
2549
+ position: relative;
2550
+ }
2551
+
2552
+ [part~='date'] {
2553
+ transition: color 0.1s;
2554
+ }
2555
+
2556
+ [part~='date']:not(:empty) {
2557
+ cursor: var(--lumo-clickable-cursor);
2558
+ }
2559
+
2560
+ :host([week-numbers]) [part='weekday']:not(:empty),
2561
+ :host([week-numbers]) [part~='date'] {
2562
+ width: calc((100% - var(--lumo-size-xs)) / 7);
2563
+ }
2564
+
2565
+ /* Today date */
2566
+
2567
+ [part~='date'][part~='today'] {
2568
+ color: var(--lumo-primary-text-color);
2569
+ }
2570
+
2571
+ /* Focused date */
2572
+
2573
+ [part~='date']::before {
2574
+ content: '';
2575
+ position: absolute;
2576
+ z-index: -1;
2577
+ top: 50%;
2578
+ left: 50%;
2579
+ transform: translate(-50%, -50%);
2580
+ min-width: 2em;
2581
+ min-height: 2em;
2582
+ width: 80%;
2583
+ height: 80%;
2584
+ max-height: 100%;
2585
+ max-width: 100%;
2586
+ border-radius: var(--lumo-border-radius-m);
2587
+ }
2588
+
2589
+ [part~='date'][part~='focused']::before {
2590
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
2591
+ }
2592
+
2593
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
2594
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
2595
+ }
2596
+
2597
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2598
+ 50% {
2599
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
2600
+ }
2601
+ }
2602
+
2603
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
2604
+ background-color: var(--lumo-primary-color-10pct);
2605
+ }
2606
+
2607
+ [part~='date'][part~='selected'] {
2608
+ color: var(--lumo-primary-contrast-color);
2609
+ }
2610
+
2611
+ [part~='date'][part~='selected']::before {
2612
+ background-color: var(--lumo-primary-color);
2613
+ }
2614
+
2615
+ [part~='date'][part~='disabled'] {
2616
+ color: var(--lumo-disabled-text-color);
2617
+ }
2618
+
2619
+ @media (pointer: coarse) {
2620
+ [part~='date']:hover:not([part~='selected'])::before,
2621
+ [part~='focused']:not([part~='selected'])::before {
2622
+ display: none;
2623
+ }
2624
+
2625
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
2626
+ display: block;
2627
+ }
2628
+
2629
+ [part~='date'][part~='selected']::before {
2630
+ box-shadow: none;
2631
+ }
2632
+ }
2633
+
2634
+ /* Disabled */
2635
+
2636
+ :host([disabled]) * {
2637
+ color: var(--lumo-disabled-text-color) !important;
2638
+ }
2639
+ `,{moduleId:"lumo-month-calendar"});const ua=document.createElement("template");ua.innerHTML=`
2640
+ <style>
2641
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2642
+ 50% {
2643
+ box-shadow: 0 0 0 2px transparent;
2644
+ }
2645
+ }
2646
+ </style>
2647
+ `;document.head.appendChild(ua.content);/**
2648
+ * @license
2649
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2650
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2651
+ */const _c=D`
2652
+ @font-face {
2653
+ font-family: 'lumo-icons';
2654
+ 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==)
2655
+ format('woff');
2656
+ font-weight: normal;
2657
+ font-style: normal;
2658
+ }
2659
+
2660
+ html {
2661
+ --lumo-icons-align-center: '\\ea01';
2662
+ --lumo-icons-align-left: '\\ea02';
2663
+ --lumo-icons-align-right: '\\ea03';
2664
+ --lumo-icons-angle-down: '\\ea04';
2665
+ --lumo-icons-angle-left: '\\ea05';
2666
+ --lumo-icons-angle-right: '\\ea06';
2667
+ --lumo-icons-angle-up: '\\ea07';
2668
+ --lumo-icons-arrow-down: '\\ea08';
2669
+ --lumo-icons-arrow-left: '\\ea09';
2670
+ --lumo-icons-arrow-right: '\\ea0a';
2671
+ --lumo-icons-arrow-up: '\\ea0b';
2672
+ --lumo-icons-bar-chart: '\\ea0c';
2673
+ --lumo-icons-bell: '\\ea0d';
2674
+ --lumo-icons-calendar: '\\ea0e';
2675
+ --lumo-icons-checkmark: '\\ea0f';
2676
+ --lumo-icons-chevron-down: '\\ea10';
2677
+ --lumo-icons-chevron-left: '\\ea11';
2678
+ --lumo-icons-chevron-right: '\\ea12';
2679
+ --lumo-icons-chevron-up: '\\ea13';
2680
+ --lumo-icons-clock: '\\ea14';
2681
+ --lumo-icons-cog: '\\ea15';
2682
+ --lumo-icons-cross: '\\ea16';
2683
+ --lumo-icons-download: '\\ea17';
2684
+ --lumo-icons-dropdown: '\\ea18';
2685
+ --lumo-icons-edit: '\\ea19';
2686
+ --lumo-icons-error: '\\ea1a';
2687
+ --lumo-icons-eye: '\\ea1b';
2688
+ --lumo-icons-eye-disabled: '\\ea1c';
2689
+ --lumo-icons-menu: '\\ea1d';
2690
+ --lumo-icons-minus: '\\ea1e';
2691
+ --lumo-icons-ordered-list: '\\ea1f';
2692
+ --lumo-icons-phone: '\\ea20';
2693
+ --lumo-icons-photo: '\\ea21';
2694
+ --lumo-icons-play: '\\ea22';
2695
+ --lumo-icons-plus: '\\ea23';
2696
+ --lumo-icons-redo: '\\ea24';
2697
+ --lumo-icons-reload: '\\ea25';
2698
+ --lumo-icons-search: '\\ea26';
2699
+ --lumo-icons-undo: '\\ea27';
2700
+ --lumo-icons-unordered-list: '\\ea28';
2701
+ --lumo-icons-upload: '\\ea29';
2702
+ --lumo-icons-user: '\\ea2a';
2703
+ }
2704
+ `;ut("font-icons",_c);/**
2705
+ * @license
2706
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2707
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2708
+ */const ca=D`
2709
+ [part$='button'] {
2710
+ flex: none;
2711
+ width: 1em;
2712
+ height: 1em;
2713
+ line-height: 1;
2714
+ font-size: var(--lumo-icon-size-m);
2715
+ text-align: center;
2716
+ color: var(--lumo-contrast-60pct);
2717
+ transition: 0.2s color;
2718
+ cursor: var(--lumo-clickable-cursor);
2719
+ }
2720
+
2721
+ [part$='button']:hover {
2722
+ color: var(--lumo-contrast-90pct);
2723
+ }
2724
+
2725
+ :host([disabled]) [part$='button'],
2726
+ :host([readonly]) [part$='button'] {
2727
+ color: var(--lumo-contrast-20pct);
2728
+ cursor: default;
2729
+ }
2730
+
2731
+ [part$='button']::before {
2732
+ font-family: 'lumo-icons';
2733
+ display: block;
2734
+ }
2735
+ `;U("",ca,{moduleId:"lumo-field-button"});/**
2736
+ * @license
2737
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2738
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2739
+ */const gc=D`
2740
+ :host([has-helper]) [part='helper-text']::before {
2741
+ content: '';
2742
+ display: block;
2743
+ height: 0.4em;
2744
+ }
2745
+
2746
+ [part='helper-text'] {
2747
+ display: block;
2748
+ color: var(--lumo-secondary-text-color);
2749
+ font-size: var(--lumo-font-size-xs);
2750
+ line-height: var(--lumo-line-height-xs);
2751
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2752
+ transition: color 0.2s;
2753
+ }
2754
+
2755
+ :host(:hover:not([readonly])) [part='helper-text'] {
2756
+ color: var(--lumo-body-text-color);
2757
+ }
2758
+
2759
+ :host([disabled]) [part='helper-text'] {
2760
+ color: var(--lumo-disabled-text-color);
2761
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2762
+ }
2763
+
2764
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
2765
+ display: none;
2766
+ }
2767
+
2768
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
2769
+ content: '';
2770
+ display: block;
2771
+ height: 0.4em;
2772
+ }
2773
+
2774
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
2775
+ order: 0;
2776
+ padding-bottom: 0.4em;
2777
+ }
2778
+
2779
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
2780
+ order: 1;
2781
+ }
2782
+
2783
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
2784
+ order: 2;
2785
+ }
2786
+
2787
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
2788
+ order: 3;
2789
+ }
2790
+ `;/**
2791
+ * @license
2792
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2793
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2794
+ */const ha=D`
2795
+ [part='label'] {
2796
+ align-self: flex-start;
2797
+ color: var(--lumo-secondary-text-color);
2798
+ font-weight: 500;
2799
+ font-size: var(--lumo-font-size-s);
2800
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2801
+ transition: color 0.2s;
2802
+ line-height: 1;
2803
+ padding-right: 1em;
2804
+ padding-bottom: 0.5em;
2805
+ /* As a workaround for diacritics being cut off, add a top padding and a
2806
+ negative margin to compensate */
2807
+ padding-top: 0.25em;
2808
+ margin-top: -0.25em;
2809
+ overflow: hidden;
2810
+ white-space: nowrap;
2811
+ text-overflow: ellipsis;
2812
+ position: relative;
2813
+ max-width: 100%;
2814
+ box-sizing: border-box;
2815
+ }
2816
+
2817
+ :host([has-label])::before {
2818
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
2819
+ }
2820
+
2821
+ :host([has-label][theme~='small'])::before {
2822
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
2823
+ }
2824
+
2825
+ :host([has-label]) {
2826
+ padding-top: var(--lumo-space-m);
2827
+ }
2828
+
2829
+ :host([has-label]) ::slotted([slot='tooltip']) {
2830
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
2831
+ }
2832
+
2833
+ :host([required]) [part='required-indicator']::after {
2834
+ content: var(--lumo-required-field-indicator, '\\2022');
2835
+ transition: opacity 0.2s;
2836
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
2837
+ position: absolute;
2838
+ right: 0;
2839
+ width: 1em;
2840
+ text-align: center;
2841
+ }
2842
+
2843
+ :host([invalid]) [part='required-indicator']::after {
2844
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
2845
+ }
2846
+
2847
+ [part='error-message'] {
2848
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2849
+ font-size: var(--lumo-font-size-xs);
2850
+ line-height: var(--lumo-line-height-xs);
2851
+ color: var(--lumo-error-text-color);
2852
+ will-change: max-height;
2853
+ transition: 0.4s max-height;
2854
+ max-height: 5em;
2855
+ }
2856
+
2857
+ :host([has-error-message]) [part='error-message']::before,
2858
+ :host([has-error-message]) [part='error-message']::after {
2859
+ content: '';
2860
+ display: block;
2861
+ height: 0.4em;
2862
+ }
2863
+
2864
+ :host(:not([invalid])) [part='error-message'] {
2865
+ max-height: 0;
2866
+ overflow: hidden;
2867
+ }
2868
+
2869
+ /* RTL specific styles */
2870
+
2871
+ :host([dir='rtl']) [part='label'] {
2872
+ margin-left: 0;
2873
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2874
+ }
2875
+
2876
+ :host([dir='rtl']) [part='label'] {
2877
+ padding-left: 1em;
2878
+ padding-right: 0;
2879
+ }
2880
+
2881
+ :host([dir='rtl']) [part='required-indicator']::after {
2882
+ right: auto;
2883
+ left: 0;
2884
+ }
2885
+
2886
+ :host([dir='rtl']) [part='error-message'] {
2887
+ margin-left: 0;
2888
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2889
+ }
2890
+ `;U("",ha,{moduleId:"lumo-required-field"});/**
2891
+ * @license
2892
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2893
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2894
+ */const yc=D`
2895
+ :host {
2896
+ --lumo-text-field-size: var(--lumo-size-m);
2897
+ color: var(--lumo-body-text-color);
2898
+ font-size: var(--lumo-font-size-m);
2899
+ font-family: var(--lumo-font-family);
2900
+ -webkit-font-smoothing: antialiased;
2901
+ -moz-osx-font-smoothing: grayscale;
2902
+ -webkit-tap-highlight-color: transparent;
2903
+ padding: var(--lumo-space-xs) 0;
2904
+ }
2905
+
2906
+ :host::before {
2907
+ height: var(--lumo-text-field-size);
2908
+ box-sizing: border-box;
2909
+ display: inline-flex;
2910
+ align-items: center;
2911
+ }
2912
+
2913
+ :host([focused]:not([readonly])) [part='label'] {
2914
+ color: var(--lumo-primary-text-color);
2915
+ }
2916
+
2917
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
2918
+ -webkit-mask-image: none;
2919
+ mask-image: none;
2920
+ }
2921
+
2922
+ ::slotted(:is(input, textarea):placeholder-shown) {
2923
+ color: var(--lumo-secondary-text-color);
2924
+ }
2925
+
2926
+ /* Hover */
2927
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2928
+ color: var(--lumo-body-text-color);
2929
+ }
2930
+
2931
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2932
+ opacity: 0.1;
2933
+ }
2934
+
2935
+ /* Touch device adjustment */
2936
+ @media (pointer: coarse) {
2937
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2938
+ color: var(--lumo-secondary-text-color);
2939
+ }
2940
+
2941
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2942
+ opacity: 0;
2943
+ }
2944
+
2945
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
2946
+ opacity: 0.2;
2947
+ }
2948
+ }
2949
+
2950
+ /* Trigger when not focusing using the keyboard */
2951
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
2952
+ transform: scaleX(0);
2953
+ transition-duration: 0.15s, 1s;
2954
+ }
2955
+
2956
+ /* Focus-ring */
2957
+ :host([focus-ring]) [part='input-field'] {
2958
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
2959
+ }
2960
+
2961
+ /* Read-only and disabled */
2962
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
2963
+ opacity: 0;
2964
+ }
2965
+
2966
+ /* Read-only style */
2967
+ :host([readonly]) {
2968
+ --vaadin-input-field-border-color: transparent;
2969
+ }
2970
+
2971
+ /* Disabled style */
2972
+ :host([disabled]) {
2973
+ pointer-events: none;
2974
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
2975
+ }
2976
+
2977
+ :host([disabled]) [part='label'],
2978
+ :host([disabled]) [part='input-field'] ::slotted(*) {
2979
+ color: var(--lumo-disabled-text-color);
2980
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2981
+ }
2982
+
2983
+ /* Invalid style */
2984
+ :host([invalid]) {
2985
+ --vaadin-input-field-border-color: var(--lumo-error-color);
2986
+ }
2987
+
2988
+ :host([invalid][focus-ring]) [part='input-field'] {
2989
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
2990
+ }
2991
+
2992
+ :host([input-prevented]) [part='input-field'] {
2993
+ animation: shake 0.15s infinite;
2994
+ }
2995
+
2996
+ @keyframes shake {
2997
+ 25% {
2998
+ transform: translateX(4px);
2999
+ }
3000
+ 75% {
3001
+ transform: translateX(-4px);
3002
+ }
3003
+ }
3004
+
3005
+ /* Small theme */
3006
+ :host([theme~='small']) {
3007
+ font-size: var(--lumo-font-size-s);
3008
+ --lumo-text-field-size: var(--lumo-size-s);
3009
+ }
3010
+
3011
+ :host([theme~='small']) [part='label'] {
3012
+ font-size: var(--lumo-font-size-xs);
3013
+ }
3014
+
3015
+ :host([theme~='small']) [part='error-message'] {
3016
+ font-size: var(--lumo-font-size-xxs);
3017
+ }
3018
+
3019
+ /* Slotted content */
3020
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
3021
+ color: var(--lumo-secondary-text-color);
3022
+ font-weight: 400;
3023
+ }
3024
+
3025
+ [part='clear-button']::before {
3026
+ content: var(--lumo-icons-cross);
3027
+ }
3028
+ `,pa=[ha,ca,gc,yc];U("",pa,{moduleId:"lumo-input-field-shared-styles"});const bc=D`
3029
+ :host {
3030
+ outline: none;
3031
+ }
3032
+
3033
+ [part='toggle-button']::before {
3034
+ content: var(--lumo-icons-calendar);
3035
+ }
3036
+
3037
+ [part='clear-button']::before {
3038
+ content: var(--lumo-icons-cross);
3039
+ }
3040
+
3041
+ @media (max-width: 420px), (max-height: 420px) {
3042
+ [part='overlay-content'] {
3043
+ height: 70vh;
3044
+ }
3045
+ }
3046
+
3047
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
3048
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
3049
+ }
3050
+
3051
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3052
+ --_lumo-text-field-overflow-mask-image: none;
3053
+ }
3054
+ `;U("vaadin-date-picker",[pa,bc],{moduleId:"lumo-date-picker"});/**
3055
+ @license
3056
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3057
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3058
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3059
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3060
+ Code distributed by Google as part of the polymer project is also
3061
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3062
+ */let Ns=!1,vc=[],fa=[];function xc(){Ns=!0,requestAnimationFrame(function(){Ns=!1,wc(vc),setTimeout(function(){Ac(fa)})})}function wc(n){for(;n.length;)ma(n.shift())}function Ac(n){for(let t=0,e=n.length;t<e;t++)ma(n.shift())}function ma(n){const t=n[0],e=n[1],i=n[2];try{e.apply(t,i)}catch(s){setTimeout(()=>{throw s})}}function _a(n,t,e){Ns||xc(),fa.push([n,t,e])}/**
3063
+ * @license
3064
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3065
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3066
+ */const Si=n=>n.test(navigator.userAgent),Is=n=>n.test(navigator.platform),Ec=n=>n.test(navigator.vendor);Si(/Android/u);Si(/Chrome/u)&&Ec(/Google Inc/u);const Sc=Si(/Firefox/u),Cc=Is(/^iPad/u)||Is(/^Mac/u)&&navigator.maxTouchPoints>1,$c=Is(/^iPhone/u),ga=$c||Cc;Si(/^((?!chrome|android).)*safari/iu);const Pc=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}})();/**
3067
+ * @license
3068
+ * Copyright (c) 2017 Anton Korzunov
3069
+ * SPDX-License-Identifier: MIT
3070
+ */let Ye=new WeakMap,Wt=new WeakMap,qt={},Ki=0;const vo=n=>n&&n.nodeType===Node.ELEMENT_NODE,Gi=(...n)=>{console.error(`Error: ${n.join(" ")}. Skip setting aria-hidden.`)},Tc=(n,t)=>vo(n)?t.map(e=>{if(!vo(e))return Gi(e,"is not a valid element"),null;let i=e;for(;i&&i!==n;){if(n.contains(i))return e;i=i.getRootNode().host}return Gi(e,"is not contained inside",n),null}).filter(e=>!!e):(Gi(n,"is not a valid element"),[]),kc=(n,t,e,i)=>{const s=Tc(t,Array.isArray(n)?n:[n]);qt[e]||(qt[e]=new WeakMap);const o=qt[e],r=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))u(_);else{const S=_.getAttribute(i),M=S!==null&&S!=="false",I=(Ye.get(_)||0)+1,z=(o.get(_)||0)+1;Ye.set(_,I),o.set(_,z),r.push(_),I===1&&M&&Wt.set(_,!0),z===1&&_.setAttribute(e,"true"),M||_.setAttribute(i,"true")}})};return u(t),a.clear(),Ki+=1,()=>{r.forEach(h=>{const p=Ye.get(h)-1,f=o.get(h)-1;Ye.set(h,p),o.set(h,f),p||(Wt.has(h)?Wt.delete(h):h.removeAttribute(i)),f||h.removeAttribute(e)}),Ki-=1,Ki||(Ye=new WeakMap,Ye=new WeakMap,Wt=new WeakMap,qt={})}},ya=(n,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(n)?n:[n]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),kc(i,t,e,"aria-hidden")};/**
3071
+ * @license
3072
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3073
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3074
+ */class Dc{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=ya(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3075
+ * @license
3076
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3077
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3078
+ */class Mc{saveFocus(t){this.focusNode=t||Ms()}restoreFocus(){const t=this.focusNode;t&&(Ms()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
3079
+ * @license
3080
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3081
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3082
+ */const Ji=[];class Oc{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return pc(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(cc).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.");Ji.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ji.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Ji).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,s=this.__focusedElementIndex,o=(e.length+s+i)%e.length,r=e[o];r.focus(),r.localName==="input"&&r.select()}}/**
3083
+ * @license
3084
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3085
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3086
+ */const Nc=n=>class extends ct(n){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Dc(this),this.__focusTrapController=new Oc(this),this.__focusRestorationController=new Mc}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=Ms();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const s=e.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
3087
+ * @license
3088
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3089
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3090
+ */const Qt=()=>Array.from(document.body.children).filter(n=>n instanceof HTMLElement&&n._hasOverlayStackMixin&&!n.hasAttribute("closing")).sort((n,t)=>n.__zIndex-t.__zIndex||0),Ic=n=>n===Qt().pop(),zc=n=>class extends n{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Ic(this)}bringToFront(){let e="";const i=Qt().filter(s=>s!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Qt().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=Qt();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
3091
+ * @license
3092
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3093
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3094
+ */const Lc=n=>class extends Nc(zc(n)){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),ga&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,o=document.documentElement.clientHeight;s&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,i,s,o){const r=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,a&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||l||r)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),_a(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const s=`__${e}Handler`,o=r=>{r&&r.target!==this||(i(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}}};/**
3095
+ * @license
3096
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3097
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3098
+ */const Zi={start:"top",end:"bottom"},Xi={start:"left",end:"right"},xo=new ResizeObserver(n=>{setTimeout(()=>{n.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Rc=n=>class extends n{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=Au(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,xo.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,xo.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(s[o],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(),i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,s),r=!s&&o||s&&!o;this.style.alignItems=r?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Zi,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Xi,this,o);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,o,this.__margins,r,this.noHorizontalOverlap,Xi)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,o,this.noVerticalOverlap,Zi)}__shouldAlignStart(e,i,s,o,r,a,l){const d=s-e[a?l.end:l.start]-o[l.end],u=e[a?l.start:l.end]-o[l.start],h=r?d:u,f=h>(r?u:d)||h>i;return r===f}__adjustBottomProperty(e,i,s){let o;if(e===i.end){if(i.end===Zi.end){const r=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>r&&this.__oldViewportHeight){const a=this.__oldViewportHeight-r;o=s-a}this.__oldViewportHeight=r}if(i.end===Xi.end){const r=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>r&&this.__oldViewportWidth){const a=this.__oldViewportWidth-r;o=s-a}this.__oldViewportWidth=r}}return o}__calculatePositionInOneDimension(e,i,s,o,r,a){const l=a?o.start:o.end,d=a?o.end:o.start,u=parseFloat(r.style[l]||getComputedStyle(r)[l]),h=this.__adjustBottomProperty(l,o,u),p=i[a?o.start:o.end]-e[s===a?o.end:o.start],f=h?`${h}px`:`${u+p*(a?-1:1)}px`;return{[l]:f,[d]:""}}};/**
3099
+ * @license
3100
+ * Copyright 2019 Google LLC
3101
+ * SPDX-License-Identifier: BSD-3-Clause
3102
+ */const ei=globalThis,un=ei.ShadowRoot&&(ei.ShadyCSS===void 0||ei.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cn=Symbol(),wo=new WeakMap;let ba=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==cn)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(un&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=wo.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&wo.set(e,t))}return t}toString(){return this.cssText}};const Hc=n=>new ba(typeof n=="string"?n:n+"",void 0,cn),Fc=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new ba(e,n,cn)},Uc=(n,t)=>{if(un)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=ei.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)}},Ao=un?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Hc(e)})(n):n;/**
3103
+ * @license
3104
+ * Copyright 2017 Google LLC
3105
+ * SPDX-License-Identifier: BSD-3-Clause
3106
+ */const{is:Bc,defineProperty:jc,getOwnPropertyDescriptor:Vc,getOwnPropertyNames:Yc,getOwnPropertySymbols:Wc,getPrototypeOf:qc}=Object,we=globalThis,Eo=we.trustedTypes,Kc=Eo?Eo.emptyScript:"",Qi=we.reactiveElementPolyfillSupport,At=(n,t)=>n,zs={toAttribute(n,t){switch(t){case Boolean:n=n?Kc:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch(i){e=null}}return e}},va=(n,t)=>!Bc(n,t),So={attribute:!0,type:String,converter:zs,reflect:!1,hasChanged:va};var Xo,Qo;(Xo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Qo=we.litPropertyMetadata)!=null||(we.litPropertyMetadata=new WeakMap);class Ke extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=So){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&jc(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var r;const{get:s,set:o}=(r=Vc(this.prototype,t))!=null?r:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){const l=s==null?void 0:s.call(this);o.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:So}static _$Ei(){if(this.hasOwnProperty(At("elementProperties")))return;const t=qc(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(At("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(At("properties"))){const e=this.properties,i=[...Yc(e),...Wc(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Ao(s))}else t!==void 0&&e.push(Ao(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Uc(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:zs).toAttribute(e,i.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var o;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:zs;this._$Em=s,this[s]=a.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,i){var s;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((s=i.hasChanged)!=null?s:va)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){var s;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}_$ET(){return Ce(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,a]of this._$Ep)this[r]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[r,a]of o)a.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],a)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(e)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}var er;Ke.elementStyles=[],Ke.shadowRootOptions={mode:"open"},Ke[At("elementProperties")]=new Map,Ke[At("finalized")]=new Map,Qi==null||Qi({ReactiveElement:Ke}),((er=we.reactiveElementVersions)!=null?er:we.reactiveElementVersions=[]).push("2.0.4");/**
3107
+ * @license
3108
+ * Copyright 2017 Google LLC
3109
+ * SPDX-License-Identifier: BSD-3-Clause
3110
+ */const Et=globalThis,fi=Et.trustedTypes,Co=fi?fi.createPolicy("lit-html",{createHTML:n=>n}):void 0,xa="$lit$",be=`lit$${Math.random().toFixed(9).slice(2)}$`,wa="?"+be,Gc=`<${wa}>`,Fe=document,It=()=>Fe.createComment(""),zt=n=>n===null||typeof n!="object"&&typeof n!="function",hn=Array.isArray,Jc=n=>hn(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",es=`[
3111
+ \f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$o=/-->/g,Po=/>/g,Te=RegExp(`>|${es}(?:([^\\s"'>=/]+)(${es}*=${es}*(?:[^
3112
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),To=/'/g,ko=/"/g,Aa=/^(?:script|style|textarea|title)$/i,ot=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Do=new WeakMap,Ie=Fe.createTreeWalker(Fe,129);function Ea(n,t){if(!hn(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Co!==void 0?Co.createHTML(t):t}const Zc=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":t===3?"<math>":"",r=gt;for(let a=0;a<e;a++){const l=n[a];let d,u,h=-1,p=0;for(;p<l.length&&(r.lastIndex=p,u=r.exec(l),u!==null);)p=r.lastIndex,r===gt?u[1]==="!--"?r=$o:u[1]!==void 0?r=Po:u[2]!==void 0?(Aa.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=Te):u[3]!==void 0&&(r=Te):r===Te?u[0]===">"?(r=s!=null?s:gt,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?Te:u[3]==='"'?ko:To):r===ko||r===To?r=Te:r===$o||r===Po?r=gt:(r=Te,s=void 0);const f=r===Te&&n[a+1].startsWith("/>")?" ":"";o+=r===gt?l+Gc:h>=0?(i.push(d),l.slice(0,h)+xa+l.slice(h)+be+f):l+be+(h===-2?a:f)}return[Ea(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let Ls=class Sa{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const a=t.length-1,l=this.parts,[d,u]=Zc(t,e);if(this.el=Sa.createElement(d,i),Ie.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Ie.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(xa)){const p=u[r++],f=s.getAttribute(h).split(be),_=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:_[2],strings:f,ctor:_[1]==="."?Qc:_[1]==="?"?eh:_[1]==="@"?th:Ci}),s.removeAttribute(h)}else h.startsWith(be)&&(l.push({type:6,index:o}),s.removeAttribute(h));if(Aa.test(s.tagName)){const h=s.textContent.split(be),p=h.length-1;if(p>0){s.textContent=fi?fi.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],It()),Ie.nextNode(),l.push({type:2,index:++o});s.append(h[p],It())}}}else if(s.nodeType===8)if(s.data===wa)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(be,h+1))!==-1;)l.push({type:7,index:o}),h+=be.length-1}o++}}static createElement(t,e){const i=Fe.createElement("template");return i.innerHTML=t,i}};function rt(n,t,e=n,i){var r,a,l;if(t===ot)return t;let s=i!==void 0?(r=e._$Co)==null?void 0:r[i]:e._$Cl;const o=zt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=rt(n,s._$AS(n,t.values),s,i)),t}let Xc=class{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 d;const{el:{content:e},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:Fe).importNode(e,!0);Ie.currentNode=s;let o=Ie.nextNode(),r=0,a=0,l=i[0];for(;l!==void 0;){if(r===l.index){let u;l.type===2?u=new pn(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new ih(o,this,t)),this._$AV.push(u),l=i[++a]}r!==(l==null?void 0:l.index)&&(o=Ie.nextNode(),r++)}return Ie.currentNode=Fe,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},pn=class Ca{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=rt(this,t,e),zt(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==ot&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==G&&zt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Fe.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ls.createElement(Ea(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const r=new Xc(s,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=Do.get(t.strings);return e===void 0&&Do.set(t.strings,e=new Ls(t)),e}k(t){hn(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new Ca(this.O(It()),this.O(It()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},Ci=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=rt(this,t,e,0),r=!zt(t)||t!==this._$AH&&t!==ot,r&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=rt(this,a[i+l],e,l),d===ot&&(d=this._$AH[l]),r||(r=!zt(d)||d!==this._$AH[l]),d===G?t=G:t!==G&&(t+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}r&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Qc=class extends Ci{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},eh=class extends Ci{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==G)}},th=class extends Ci{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var r;if((t=(r=rt(this,t,e,0))!=null?r:G)===ot)return;const i=this._$AH,s=t===G&&i!==G||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==G&&(i===G||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}},ih=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}};const ts=Et.litHtmlPolyfillSupport;var tr;ts==null||ts(Ls,pn),((tr=Et.litHtmlVersions)!=null?tr:Et.litHtmlVersions=[]).push("3.2.1");const sh=(n,t,e)=>{var o,r;const i=(o=e==null?void 0:e.renderBefore)!=null?o:t;let s=i._$litPart$;if(s===void 0){const a=(r=e==null?void 0:e.renderBefore)!=null?r:null;i._$litPart$=s=new pn(t.insertBefore(It(),a),a,void 0,e!=null?e:{})}return s._$AI(n),s};/**
3113
+ * @license
3114
+ * Copyright 2017 Google LLC
3115
+ * SPDX-License-Identifier: BSD-3-Clause
3116
+ */let ti=class extends Ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=sh(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return ot}};var ir;ti._$litElement$=!0,ti.finalized=!0,(ir=globalThis.litElementHydrateSupport)==null||ir.call(globalThis,{LitElement:ti});const is=globalThis.litElementPolyfillSupport;is==null||is({LitElement:ti});var sr;((sr=globalThis.litElementVersions)!=null?sr:globalThis.litElementVersions=[]).push("4.1.1");/**
3117
+ * @license
3118
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3119
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3120
+ */const nh=Fc`
3121
+ :host {
3122
+ z-index: 200;
3123
+ position: fixed;
3124
+
3125
+ /* Despite of what the names say, <vaadin-overlay> is just a container
3126
+ for position/sizing/alignment. The actual overlay is the overlay part. */
3127
+
3128
+ /* Default position constraints: the entire viewport. Note: themes can
3129
+ override this to introduce gaps between the overlay and the viewport. */
3130
+ inset: 0;
3131
+ bottom: var(--vaadin-overlay-viewport-bottom);
3132
+
3133
+ /* Use flexbox alignment for the overlay part. */
3134
+ display: flex;
3135
+ flex-direction: column; /* makes dropdowns sizing easier */
3136
+ /* Align to center by default. */
3137
+ align-items: center;
3138
+ justify-content: center;
3139
+
3140
+ /* Allow centering when max-width/max-height applies. */
3141
+ margin: auto;
3142
+
3143
+ /* The host is not clickable, only the overlay part is. */
3144
+ pointer-events: none;
3145
+
3146
+ /* Remove tap highlight on touch devices. */
3147
+ -webkit-tap-highlight-color: transparent;
3148
+
3149
+ /* CSS API for host */
3150
+ --vaadin-overlay-viewport-bottom: 0;
3151
+ }
3152
+
3153
+ :host([hidden]),
3154
+ :host(:not([opened]):not([closing])) {
3155
+ display: none !important;
3156
+ }
3157
+
3158
+ [part='overlay'] {
3159
+ -webkit-overflow-scrolling: touch;
3160
+ overflow: auto;
3161
+ pointer-events: auto;
3162
+
3163
+ /* Prevent overflowing the host */
3164
+ max-width: 100%;
3165
+ box-sizing: border-box;
3166
+
3167
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
3168
+ }
3169
+
3170
+ [part='backdrop'] {
3171
+ z-index: -1;
3172
+ content: '';
3173
+ background: rgba(0, 0, 0, 0.5);
3174
+ position: fixed;
3175
+ inset: 0;
3176
+ pointer-events: auto;
3177
+ }
3178
+ `;/**
3179
+ * @license
3180
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3181
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3182
+ */const oh=Bt`
3183
+ [part='overlay'] {
3184
+ display: flex;
3185
+ flex: auto;
3186
+ }
3187
+
3188
+ [part~='content'] {
3189
+ flex: auto;
3190
+ }
3191
+
3192
+ @media (forced-colors: active) {
3193
+ [part='overlay'] {
3194
+ outline: 3px solid;
3195
+ }
3196
+ }
3197
+ `;/**
3198
+ * @license
3199
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3200
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3201
+ */U("vaadin-date-picker-overlay",[nh,oh],{moduleId:"vaadin-date-picker-overlay-styles"});class rh extends Rc(Lc(xi(Be(Ae)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ve`
3202
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3203
+ <div part="overlay" id="overlay">
3204
+ <div part="content" id="content">
3205
+ <slot></slot>
3206
+ </div>
3207
+ </div>
3208
+ `}}ue(rh);/**
3209
+ * @license
3210
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3211
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3212
+ */function ah(n){let t=n.getDay();t===0&&(t=7);const e=4-t,i=new Date(n.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const o=i.getTime()-s.getTime(),r=Math.round(o/(24*3600*1e3));return Math.floor(r/7+1)}function _e(n,t){return n instanceof Date&&t instanceof Date&&n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}function Lt(n,t,e){return(!t||n>=t)&&(!e||n<=e)}function $a(n,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const s=Math.abs(n.getTime()-i.getTime()),o=Math.abs(e.getTime()-n.getTime());return s<o?i:e})}function Pa(n){return{day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}}function Ta(n){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(n)+t.getMonth()),e}function lh(n,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(n.getFullYear()/100)*100;return n<new Date(s-50,e,i)?s-=100:n>new Date(s+50,e,i)&&(s+=100),s}function yt(n){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(n);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}/**
3213
+ * @license
3214
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3215
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3216
+ */const ka=document.createElement("template");ka.innerHTML=`
3217
+ <style>
3218
+ :host {
3219
+ display: block;
3220
+ overflow: hidden;
3221
+ height: 500px;
3222
+ }
3223
+
3224
+ #scroller {
3225
+ position: relative;
3226
+ height: 100%;
3227
+ overflow: auto;
3228
+ outline: none;
3229
+ margin-right: -40px;
3230
+ -webkit-overflow-scrolling: touch;
3231
+ overflow-x: hidden;
3232
+ }
3233
+
3234
+ #scroller.notouchscroll {
3235
+ -webkit-overflow-scrolling: auto;
3236
+ }
3237
+
3238
+ #scroller::-webkit-scrollbar {
3239
+ display: none;
3240
+ }
3241
+
3242
+ .buffer {
3243
+ position: absolute;
3244
+ width: var(--vaadin-infinite-scroller-buffer-width, 100%);
3245
+ box-sizing: border-box;
3246
+ padding-right: 40px;
3247
+ top: var(--vaadin-infinite-scroller-buffer-offset, 0);
3248
+ animation: fadein 0.2s;
3249
+ }
3250
+
3251
+ @keyframes fadein {
3252
+ from {
3253
+ opacity: 0;
3254
+ }
3255
+ to {
3256
+ opacity: 1;
3257
+ }
3258
+ }
3259
+ </style>
3260
+
3261
+ <div id="scroller">
3262
+ <div class="buffer"></div>
3263
+ <div class="buffer"></div>
3264
+ <div id="fullHeight"></div>
3265
+ </div>
3266
+ `;class Da extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ka.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,Sc&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(i||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=Mt.debounce(this._debouncerScrollFinish,ui.after(200),()=>{const o=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],o)&&!this._isVisible(this._buffers[1],o)&&(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=Mt.debounce(this._debouncerUpdateClones,ui.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const o=`vaadin-infinite-scroller-item-content-${qr()}`,r=document.createElement("slot");r.setAttribute("name",o),r._itemWrapper=s,e.appendChild(r),s.setAttribute("slot",o),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(i=>{t.instance[i]=e[i]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,s)=>{if(!i.updated){const o=this._firstIndex+this.bufferSize*s;[...i.children].forEach((r,a)=>{const l=r._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,o+a)}),i.updated=!0}})}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
3267
+ * @license
3268
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3269
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3270
+ */const Ma=document.createElement("template");Ma.innerHTML=`
3271
+ <style>
3272
+ :host {
3273
+ --vaadin-infinite-scroller-item-height: 270px;
3274
+ position: absolute;
3275
+ top: 0;
3276
+ left: 0;
3277
+ right: 0;
3278
+ bottom: 0;
3279
+ height: 100%;
3280
+ }
3281
+ </style>
3282
+ `;class dh extends Da{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ma.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Ta(e)}}ue(dh);/**
3283
+ * @license
3284
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3285
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3286
+ */const Oa=document.createElement("template");Oa.innerHTML=`
3287
+ <style>
3288
+ :host {
3289
+ --vaadin-infinite-scroller-item-height: 80px;
3290
+ width: 50px;
3291
+ display: block;
3292
+ height: 100%;
3293
+ position: absolute;
3294
+ right: 0;
3295
+ transform: translateX(100%);
3296
+ -webkit-tap-highlight-color: transparent;
3297
+ -webkit-user-select: none;
3298
+ -moz-user-select: none;
3299
+ user-select: none;
3300
+ /* Center the year scroller position. */
3301
+ --vaadin-infinite-scroller-buffer-offset: 50%;
3302
+ }
3303
+
3304
+ :host::before {
3305
+ content: '';
3306
+ display: block;
3307
+ background: transparent;
3308
+ width: 0;
3309
+ height: 0;
3310
+ position: absolute;
3311
+ left: 0;
3312
+ top: 50%;
3313
+ transform: translateY(-50%);
3314
+ border-width: 6px;
3315
+ border-style: solid;
3316
+ border-color: transparent;
3317
+ border-left-color: #000;
3318
+ }
3319
+ </style>
3320
+ `;class uh extends Da{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Oa.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}ue(uh);/**
3321
+ * @license
3322
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3323
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3324
+ */class ch extends Be(Ae){static get is(){return"vaadin-date-picker-year"}static get template(){return Ve`
3325
+ <style>
3326
+ :host {
3327
+ display: block;
3328
+ height: 100%;
3329
+ }
3330
+ </style>
3331
+ <div part="year-number">[[year]]</div>
3332
+ <div part="year-separator" aria-hidden="true"></div>
3333
+ `}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())}}ue(ch);/**
3334
+ @license
3335
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3336
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3337
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3338
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3339
+ Code distributed by Google as part of the polymer project is also
3340
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3341
+ */function fn(n,t,e,i,s){let o;s&&(o=typeof e=="object"&&e!==null,o&&(i=n.__dataTemp[t]));let r=i!==e&&(i===i||e===e);return o&&r&&(n.__dataTemp[t]=e),r}const mn=W(n=>{class t extends n{_shouldPropertyChange(i,s,o){return fn(this,i,s,o,!0)}}return t}),hh=W(n=>{class t extends n{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,o){return fn(this,i,s,o,this.mutableData)}}return t});mn._mutablePropertyChange=fn;/**
3342
+ @license
3343
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3344
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3345
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3346
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3347
+ Code distributed by Google as part of the polymer project is also
3348
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3349
+ */let Rs=null;function Hs(){return Rs}Hs.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Hs,writable:!0}});const Na=Xs(Hs),ph=mn(Na);function fh(n,t){Rs=n,Object.setPrototypeOf(n,t.prototype),new t,Rs=null}const mh=Xs(class{});function _h(n,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!n!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)n?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(n)i.__polymerReplaced__=document.createComment("hidden-slot"),Q(Q(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&Q(Q(s).parentNode).replaceChild(i,s)}else i.style&&(n?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=n,i._showHideChildren&&i._showHideChildren(n)}}class Ee extends mh{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 i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){_h(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Ee.prototype.__dataHost;Ee.prototype.__templatizeOptions;Ee.prototype._methodHost;Ee.prototype.__templatizeOwner;Ee.prototype.__hostProps;const gh=mn(Ee);function Mo(n){let t=n.__dataHost;return t&&t._methodHost||t}function yh(n,t,e){let i=e.mutableData?gh:Ee;Fs.mixin&&(i=Fs.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(n),xh(s,n,t,e),s}function bh(n,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const o=n.localName=="template";let r=t.templatizeTemplateClass;if(!r){if(o){let l=e.mutableData?ph:Na;class d extends l{}r=t.templatizeTemplateClass=d}else{const l=n.constructor;class d extends l{}r=t.templatizeTemplateClass=d}let a=t.hostProps;for(let l in a)r.prototype._addPropertyEffect("_host_"+l,r.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:vh(l,s)}),r.prototype._createNotifyingProperty("_host_"+l);gr&&i&&Eh(t,e,i)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),o)fh(n,r),n.__dataTemp={},n.__dataPending=null,n.__dataOld=null,n._enableProperties();else{Object.setPrototypeOf(n,r.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in n){const d=n[l];delete n[l],n.__data[l]=d}}}}function vh(n,t){return function(i,s,o){t.call(i.__templatizeOwner,s.substring(6),o[s])}}function xh(n,t,e,i){let s=e.hostProps||{};for(let o in i.instanceProps){delete s[o];let r=i.notifyInstanceProp;r&&n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wh(o,r)})}if(i.forwardHostProp&&t.__dataHost)for(let o in s)e.hasHostProps||(e.hasHostProps=!0),n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ah()})}function wh(n,t){return function(i,s,o){t.call(i.__templatizeOwner,i,s,o[s])}}function Ah(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function Fs(n,t,e){if(li&&!Mo(n))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},n.__templatizeOwner)throw new Error("A <template> can only be templatized once");n.__templatizeOwner=t;let s=(t?t.constructor:Ee)._parseTemplate(n),o=s.templatizeInstanceClass;o||(o=yh(n,s,e),s.templatizeInstanceClass=o);const r=Mo(n);bh(n,s,e,r);let a=class extends o{};return a.prototype._methodHost=r,a.prototype.__dataHost=n,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function Eh(n,t,e){const i=e.constructor._properties,{propertyEffects:s}=n,{instanceProps:o}=t;for(let r in s)if(!i[r]&&!(o&&o[r])){const a=s[r];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${r}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Sh(n,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=n)t=e.__dataHost;else return e;else t=Q(t).parentNode;return null}/**
3350
+ @license
3351
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3352
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3353
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3354
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3355
+ Code distributed by Google as part of the polymer project is also
3356
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3357
+ */class mi{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,Rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof mi?t._cancelAsync():t=new mi,t.setConfig(e,i),t}}let Rt=new Set;const Ch=function(n){Rt.add(n)},$h=function(){const n=!!Rt.size;return Rt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),n};/**
3358
+ @license
3359
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3360
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3361
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3362
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3363
+ Code distributed by Google as part of the polymer project is also
3364
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3365
+ */const Ia=function(){let n,t;do n=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=$h();while(n||t)};/**
3366
+ @license
3367
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3368
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3369
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3370
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3371
+ Code distributed by Google as part of the polymer project is also
3372
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3373
+ */let Oo=!1;function Ph(){if(_r&&!mr){if(!Oo){Oo=!0;const n=document.createElement("style");n.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(n)}return!0}return!1}/**
3374
+ @license
3375
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3376
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3377
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3378
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3379
+ Code distributed by Google as part of the polymer project is also
3380
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3381
+ */const Th=hh(Ae);class No extends Th{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:!Ln,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(),Ph()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Q(Q(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 i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Fs(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,o){let r=this.__instances;for(let a=0,l;a<r.length&&(l=r[a]);a++)l.forwardHostProp(s,o)},notifyInstanceProp:function(s,o,r){if(Yl(this.as,o)){let a=s[this.itemsIndexAs];o==this.as&&(this.items[a]=r);let l=Tt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,r)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=mi.debounce(this.__renderDebouncer,e>0?Zl.after(e):$r,t.bind(this)),Ch(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ia()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Ln||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,o)=>this.__filterFn(t[i],s,o))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+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,i){const s=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let r=this.__instances[o],a=i[o],l=t[a];s[a]=o,r?(r._setPendingProperty(this.as,l),r._setPendingProperty(this.indexAs,o),r._setPendingProperty(this.itemsIndexAs,a),r._flushProperties()):this.__insertInstance(l,o,a)}for(let r=this.__instances.length-1;r>=o;r--)this.__detachAndRemoveInstance(r)}__detachInstance(t){let e=this.__instances[t];const i=Q(e.root);for(let s=0;s<e.children.length;s++){let o=e.children[s];i.appendChild(o)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let o=this.__instances[e+1],r=o?o.children[0]:this;return Q(Q(this).parentNode).insertBefore(s.root,r),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 i=t.slice(6),s=i.indexOf("."),o=s<0?i:i.substring(0,s);if(o==parseInt(o,10)){let r=s<0?"":i.substring(s+1);this.__handleObservedPaths(r);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let d=this.as+(r?"."+r:"");l._setPendingPropertyOrPath(d,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 Sh(this.template,t)}}customElements.define(No.is,No);/**
3382
+ * @license
3383
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3384
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3385
+ */const kh=n=>class extends dn(n){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=>_e(e.date,this.focusedDate))}ready(){super.ready(),pe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,i,s){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()+1),r.setDate(0),i&&s&&i.getMonth()===s.getMonth()&&i.getMonth()===e.getMonth()&&s.getDate()-i.getDate()>=0?!1:!Lt(o,i,s)&&!Lt(r,i,s)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,i){e.setDate(e.getDate()+i)}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return[];const{weekdays:s,weekdaysShort:o,firstDayOfWeek:r}=e,a=this._applyFirstDayOfWeek(o,r);return this._applyFirstDayOfWeek(s,r).map((d,u)=>({weekDay:d,weekDayShort:a[u]}))}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(s=>_e(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return _e(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==i.firstDayOfWeek;)this._dateAdd(s,-1);const o=[],r=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===r;)o.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return o}_getWeeks(e){return e.reduce((i,s,o)=>(o%7===0&&i.push([]),i[i.length-1].push(s),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const i=e.reduce((s,o)=>!s&&o?o:s);return ah(i)}__getDayAriaLabel(e){if(!e)return"";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
3386
+ * @license
3387
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3388
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3389
+ */const Dh=Bt`
3390
+ :host {
3391
+ display: block;
3392
+ }
3393
+
3394
+ #monthGrid {
3395
+ width: 100%;
3396
+ border-collapse: collapse;
3397
+ }
3398
+
3399
+ #days-container tr,
3400
+ #weekdays-container tr {
3401
+ display: flex;
3402
+ }
3403
+
3404
+ [part~='date'] {
3405
+ outline: none;
3406
+ }
3407
+
3408
+ [part~='disabled'] {
3409
+ pointer-events: none;
3410
+ }
3411
+
3412
+ [part='week-number'][hidden],
3413
+ [part='weekday'][hidden] {
3414
+ display: none;
3415
+ }
3416
+
3417
+ [part='weekday'],
3418
+ [part~='date'] {
3419
+ width: calc(100% / 7);
3420
+ padding: 0;
3421
+ font-weight: normal;
3422
+ }
3423
+
3424
+ [part='weekday']:empty,
3425
+ [part='week-number'] {
3426
+ width: 12.5%;
3427
+ flex-shrink: 0;
3428
+ padding: 0;
3429
+ }
3430
+
3431
+ :host([week-numbers]) [part='weekday']:not(:empty),
3432
+ :host([week-numbers]) [part~='date'] {
3433
+ width: 12.5%;
3434
+ }
3435
+
3436
+ @media (forced-colors: active) {
3437
+ [part~='date'][part~='focused'] {
3438
+ outline: 1px solid;
3439
+ }
3440
+
3441
+ [part~='date'][part~='selected'] {
3442
+ outline: 3px solid;
3443
+ }
3444
+ }
3445
+ `;/**
3446
+ * @license
3447
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3448
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3449
+ */U("vaadin-month-calendar",Dh,{moduleId:"vaadin-month-calendar-styles"});class Mh extends kh(Be(Ae)){static get template(){return Ve`
3450
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3451
+ <table
3452
+ id="monthGrid"
3453
+ role="grid"
3454
+ aria-labelledby="month-header"
3455
+ on-touchend="_preventDefault"
3456
+ on-touchstart="_onMonthGridTouchStart"
3457
+ >
3458
+ <thead id="weekdays-container">
3459
+ <tr role="row" part="weekdays">
3460
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
3461
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
3462
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
3463
+ [[item.weekDayShort]]
3464
+ </th>
3465
+ </template>
3466
+ </tr>
3467
+ </thead>
3468
+ <tbody id="days-container">
3469
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
3470
+ <tr role="row">
3471
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
3472
+ [[__getWeekNumber(week)]]
3473
+ </td>
3474
+ <template is="dom-repeat" items="[[week]]">
3475
+ <td
3476
+ role="gridcell"
3477
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
3478
+ date="[[item]]"
3479
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
3480
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
3481
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
3482
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
3483
+ aria-label$="[[__getDayAriaLabel(item)]]"
3484
+ >[[_getDate(item)]]</td
3485
+ >
3486
+ </template>
3487
+ </tr>
3488
+ </template>
3489
+ </tbody>
3490
+ </table>
3491
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,o){const r=["date"];return this.__isDayDisabled(t,s,o)&&r.push("disabled"),this.__isDayFocused(t,e)&&r.push("focused"),this.__isDaySelected(t,i)&&r.push("selected"),this._isToday(t)&&r.push("today"),r.join(" ")}__isDayFocused(t,e){return _e(t,e)}__isDaySelected(t,e){return _e(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i){return!Lt(t,e,i)}__getDayAriaDisabled(t,e,i){if(!(t===void 0||e===void 0||i===void 0)&&this.__isDayDisabled(t,e,i))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}ue(Mh);/**
3492
+ * @license
3493
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3494
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3495
+ */class za{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)}}/**
3496
+ * @license
3497
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3498
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3499
+ */const Oh=n=>class extends n{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(){ra(this.$.scrollers,"pan-y"),pe(this.$.scrollers,"track",this._track.bind(this)),pe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),pe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),pe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new za(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Me(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),pe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Me(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),pe(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Me(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Me(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),pe(e,"tap",i=>{this._onYearTap(i)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,o){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,o))}__updateCalendars(e,i,s,o,r,a,l,d,u){e&&e.length&&e.forEach(h=>{h.i18n=i,h.minDate=s,h.maxDate=o,h.focusedDate=a,h.selectedDate=r,h.showWeekNumbers=l,h.ignoreTaps=d,u?h.setAttribute("theme",u):h.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(o=>{o.selectedDate=i,s?o.setAttribute("theme",s):o.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const o=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;o?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.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=Mt.debounce(this._debouncer,ui.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Pa(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,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(d=>{s=d});const o=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let r=0;const a=this._monthScroller.position,l=d=>{r||(r=d);const u=d-r;if(u<this.scrollDuration){const h=o(u,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,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ta(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){_e(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),i=!0;break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&_e(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return Ce(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ce(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{_a(this,()=>{Ia(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate($a(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="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[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate){return(!i||e>=i)&&(!s||e<=s)}_isTodayAllowed(e,i){const s=new Date,o=new Date(0,0);return o.setFullYear(s.getFullYear()),o.setMonth(s.getMonth()),o.setDate(s.getDate()),this._dateAllowed(o,e,i)}};/**
3500
+ * @license
3501
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3502
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3503
+ */const Nh=Bt`
3504
+ :host {
3505
+ display: flex;
3506
+ flex-direction: column;
3507
+ height: 100%;
3508
+ width: 100%;
3509
+ outline: none;
3510
+ }
3511
+
3512
+ [part='overlay-header'] {
3513
+ display: flex;
3514
+ flex-shrink: 0;
3515
+ flex-wrap: nowrap;
3516
+ align-items: center;
3517
+ }
3518
+
3519
+ :host(:not([fullscreen])) [part='overlay-header'] {
3520
+ display: none;
3521
+ }
3522
+
3523
+ [part='label'] {
3524
+ flex-grow: 1;
3525
+ }
3526
+
3527
+ [hidden] {
3528
+ display: none !important;
3529
+ }
3530
+
3531
+ [part='years-toggle-button'] {
3532
+ display: flex;
3533
+ }
3534
+
3535
+ #scrollers {
3536
+ display: flex;
3537
+ height: 100%;
3538
+ width: 100%;
3539
+ position: relative;
3540
+ overflow: hidden;
3541
+ }
3542
+
3543
+ :host([desktop]) ::slotted([slot='months']) {
3544
+ right: 50px;
3545
+ transform: none !important;
3546
+ }
3547
+
3548
+ :host([desktop]) ::slotted([slot='years']) {
3549
+ transform: none !important;
3550
+ }
3551
+
3552
+ :host(.animate) ::slotted([slot='months']),
3553
+ :host(.animate) ::slotted([slot='years']) {
3554
+ transition: all 200ms;
3555
+ }
3556
+
3557
+ [part='toolbar'] {
3558
+ display: flex;
3559
+ justify-content: space-between;
3560
+ z-index: 2;
3561
+ flex-shrink: 0;
3562
+ }
3563
+ `;/**
3564
+ * @license
3565
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3566
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3567
+ */U("vaadin-date-picker-overlay-content",Nh,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ih extends Oh(ct(Be(xi(Ae)))){static get template(){return Ve`
3568
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3569
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3570
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
3571
+ <div part="toggle-button"></div>
3572
+
3573
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
3574
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
3575
+ </div>
3576
+ </div>
3577
+
3578
+ <div id="scrollers">
3579
+ <slot name="months"></slot>
3580
+ <slot name="years"></slot>
3581
+ </div>
3582
+
3583
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
3584
+ <slot name="today-button"></slot>
3585
+ <slot name="cancel-button"></slot>
3586
+ </div>
3587
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ue(Ih);/**
3588
+ * @license
3589
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3590
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3591
+ */const La=W(n=>class extends dn(da(n)){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,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_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,i){super._disabledChanged(e,i),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)}});/**
3592
+ * @license
3593
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3594
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3595
+ */const ss=new WeakMap;function zh(n){return ss.has(n)||ss.set(n,new Set),ss.get(n)}function Lh(n,t){const e=document.createElement("style");e.textContent=n,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Rh=W(n=>class extends n{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=zh(e);this.slotStyles.forEach(s=>{i.has(s)||(Lh(s,e),i.add(s))})}});/**
3596
+ * @license
3597
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3598
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3599
+ */const Ra=W(n=>class extends n{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,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
3600
+ * @license
3601
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3602
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3603
+ */const Hh=n=>class extends Ra(Ei(n)){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(),Pc||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}))}};/**
3604
+ * @license
3605
+ * Copyright (c) 2023 Vaadin Ltd.
3606
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3607
+ */const ns=new Map;function _n(n){return ns.has(n)||ns.set(n,new WeakMap),ns.get(n)}function Ha(n,t){n&&n.removeAttribute(t)}function Fa(n,t){if(!n||!t)return;const e=_n(t);if(e.has(n))return;const i=Qs(n.getAttribute(t));e.set(n,new Set(i))}function Fh(n,t){if(!n)return;const e=_n(t),i=e.get(n);!i||i.size===0?n.removeAttribute(t):Wr(n,t,wi(i)),e.delete(n)}function os(n,t,e={newId:null,oldId:null,fromUser:!1}){if(!n||!t)return;const{newId:i,oldId:s,fromUser:o}=e,r=_n(t),a=r.get(n);if(!o&&a){s&&a.delete(s),i&&a.add(i);return}o&&(a?i||r.delete(n):Fa(n,t),Ha(n,t)),Eu(n,t,s);const l=i||wi(a);l&&Wr(n,t,l)}function Uh(n,t){Fa(n,t),Ha(n,t)}/**
3608
+ * @license
3609
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3610
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3611
+ */class Bh{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 i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,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?(Uh(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Fh(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){os(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){os(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){os(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")))}}/**
3612
+ * @license
3613
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
3614
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3615
+ */class gn extends Me{constructor(t,e,i,s={}){super(t,e,i,Ti(Pi({},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(i=>{const s=i.target,o=s===this.node;i.type==="attributes"?o&&this.__updateNodeId(s):(o||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)}}/**
3616
+ * @license
3617
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3618
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3619
+ */class jh extends gn{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:i}=this,s=!!(i&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
3620
+ * @license
3621
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3622
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3623
+ */class Vh extends gn{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)}}/**
3624
+ * @license
3625
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3626
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3627
+ */class Yh extends gn{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)}}/**
3628
+ * @license
3629
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3630
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3631
+ */const Wh=W(n=>class extends ct(n){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Yh(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)}});/**
3632
+ * @license
3633
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3634
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3635
+ */const Ua=W(n=>class extends n{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}});/**
3636
+ * @license
3637
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3638
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3639
+ */const qh=n=>class extends Ua(Wh(ct(n))){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 Bh(this),this._helperController=new Vh(this),this._errorController=new jh(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:i,node:s}=e.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,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,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.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 i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3640
+ * @license
3641
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3642
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3643
+ */const Kh=W(n=>class extends n{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((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
3644
+ * @license
3645
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3646
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3647
+ */const Ba=W(n=>class extends Kh(Ua(Ra(n))){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(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),o=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():o&&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}});/**
3648
+ * @license
3649
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3650
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3651
+ */const Gh=n=>class extends Rh(La(Ba(qh(Hh(Ei(n)))))){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[`
3652
+ :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3653
+ font: inherit;
3654
+ color: inherit;
3655
+ }
3656
+ `]}_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=Mt.debounce(this._preventInputDebouncer,ui.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 i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(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(i){console.error(i)}}};/**
3657
+ * @license
3658
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3659
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3660
+ */class Jh extends Me{constructor(t,e){super(t,"input","input",{initializer:(i,s)=>{s.value&&(i.value=s.value),s.type&&i.setAttribute("type",s.type),i.id=this.defaultId,typeof e=="function"&&e(i)},useUniqueId:!0})}}/**
3661
+ * @license
3662
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3663
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3664
+ */class Zh{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.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)}}/**
3665
+ * @license
3666
+ * Copyright 2019 Google LLC
3667
+ * SPDX-License-Identifier: BSD-3-Clause
3668
+ */const ii=window,yn=ii.ShadowRoot&&(ii.ShadyCSS===void 0||ii.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bn=Symbol(),Io=new WeakMap;let ja=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==bn)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(yn&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Io.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Io.set(e,t))}return t}toString(){return this.cssText}};const Xh=n=>new ja(typeof n=="string"?n:n+"",void 0,bn),vn=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new ja(e,n,bn)},Qh=(n,t)=>{yn?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=ii.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},zo=yn?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Xh(e)})(n):n;/**
3669
+ * @license
3670
+ * Copyright 2017 Google LLC
3671
+ * SPDX-License-Identifier: BSD-3-Clause
3672
+ */var rs;const _i=window,Lo=_i.trustedTypes,ep=Lo?Lo.emptyScript:"",Ro=_i.reactiveElementPolyfillSupport,Us={toAttribute(n,t){switch(t){case Boolean:n=n?ep:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch(i){e=null}}return e}},Va=(n,t)=>t!==n&&(t==t||n==n),as={attribute:!0,type:String,converter:Us,reflect:!1,hasChanged:Va},Bs="finalized";let Ge=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,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=as){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||as}static finalize(){if(this.hasOwnProperty(Bs))return!1;this[Bs]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(zo(s))}else t!==void 0&&e.push(zo(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Qh(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=as){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Us).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:Us;this._$El=o,this[o]=a.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Va)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}_$Ej(){return Ce(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,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Ge[Bs]=!0,Ge.elementProperties=new Map,Ge.elementStyles=[],Ge.shadowRootOptions={mode:"open"},Ro==null||Ro({ReactiveElement:Ge}),((rs=_i.reactiveElementVersions)!==null&&rs!==void 0?rs:_i.reactiveElementVersions=[]).push("1.6.3");/**
3673
+ * @license
3674
+ * Copyright 2017 Google LLC
3675
+ * SPDX-License-Identifier: BSD-3-Clause
3676
+ */var ls;const gi=window,at=gi.trustedTypes,Ho=at?at.createPolicy("lit-html",{createHTML:n=>n}):void 0,js="$lit$",ve=`lit$${(Math.random()+"").slice(9)}$`,Ya="?"+ve,tp=`<${Ya}>`,Ue=document,Ht=()=>Ue.createComment(""),Ft=n=>n===null||typeof n!="object"&&typeof n!="function",Wa=Array.isArray,ip=n=>Wa(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",ds=`[
3677
+ \f\r]`,bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fo=/-->/g,Uo=/>/g,ke=RegExp(`>|${ds}(?:([^\\s"'>=/]+)(${ds}*=${ds}*(?:[^
3678
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Bo=/'/g,jo=/"/g,qa=/^(?:script|style|textarea|title)$/i,lt=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Vo=new WeakMap,ze=Ue.createTreeWalker(Ue,129,null,!1);function Ka(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ho!==void 0?Ho.createHTML(t):t}const sp=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=bt;for(let a=0;a<e;a++){const l=n[a];let d,u,h=-1,p=0;for(;p<l.length&&(r.lastIndex=p,u=r.exec(l),u!==null);)p=r.lastIndex,r===bt?u[1]==="!--"?r=Fo:u[1]!==void 0?r=Uo:u[2]!==void 0?(qa.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=ke):u[3]!==void 0&&(r=ke):r===ke?u[0]===">"?(r=s!=null?s:bt,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?ke:u[3]==='"'?jo:Bo):r===jo||r===Bo?r=ke:r===Fo||r===Uo?r=bt:(r=ke,s=void 0);const f=r===ke&&n[a+1].startsWith("/>")?" ":"";o+=r===bt?l+tp:h>=0?(i.push(d),l.slice(0,h)+js+l.slice(h)+ve+f):l+ve+(h===-2?(i.push(void 0),a):f)}return[Ka(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class Ut{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const a=t.length-1,l=this.parts,[d,u]=sp(t,e);if(this.el=Ut.createElement(d,i),ze.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=ze.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(js)||p.startsWith(ve)){const f=u[r++];if(h.push(p),f!==void 0){const _=s.getAttribute(f.toLowerCase()+js).split(ve),S=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:S[2],strings:_,ctor:S[1]==="."?op:S[1]==="?"?ap:S[1]==="@"?lp:$i})}else l.push({type:6,index:o})}for(const p of h)s.removeAttribute(p)}if(qa.test(s.tagName)){const h=s.textContent.split(ve),p=h.length-1;if(p>0){s.textContent=at?at.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],Ht()),ze.nextNode(),l.push({type:2,index:++o});s.append(h[p],Ht())}}}else if(s.nodeType===8)if(s.data===Ya)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(ve,h+1))!==-1;)l.push({type:7,index:o}),h+=ve.length-1}o++}}static createElement(t,e){const i=Ue.createElement("template");return i.innerHTML=t,i}}function dt(n,t,e=n,i){var s,o,r,a;if(t===lt)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const d=Ft(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==d&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),d===void 0?l=void 0:(l=new d(n),l._$AT(n,e,i)),i!==void 0?((r=(a=e)._$Co)!==null&&r!==void 0?r:a._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=dt(n,l._$AS(n,t.values),l,i)),t}class np{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Ue).importNode(i,!0);ze.currentNode=o;let r=ze.nextNode(),a=0,l=0,d=s[0];for(;d!==void 0;){if(a===d.index){let u;d.type===2?u=new jt(r,r.nextSibling,this,t):d.type===1?u=new d.ctor(r,d.name,d.strings,this,t):d.type===6&&(u=new dp(r,this,t)),this._$AV.push(u),d=s[++l]}a!==(d==null?void 0:d.index)&&(r=ze.nextNode(),a++)}return ze.currentNode=Ue,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class jt{constructor(t,e,i,s){var o;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}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=dt(this,t,e),Ft(t)?t===J||t==null||t===""?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==lt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ip(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!==J&&Ft(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ue.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Ut.createElement(Ka(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const r=new np(o,this),a=r.u(this.options);r.v(i),this.$(a),this._$AH=r}}_$AC(t){let e=Vo.get(t.strings);return e===void 0&&Vo.set(t.strings,e=new Ut(t)),e}T(t){Wa(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new jt(this.k(Ht()),this.k(Ht()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const 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 $i{constructor(t,e,i,s,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=dt(this,t,e,0),r=!Ft(t)||t!==this._$AH&&t!==lt,r&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=dt(this,a[i+l],e,l),d===lt&&(d=this._$AH[l]),r||(r=!Ft(d)||d!==this._$AH[l]),d===J?t=J:t!==J&&(t+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}r&&!s&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class op extends $i{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const rp=at?at.emptyScript:"";class ap extends $i{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,rp):this.element.removeAttribute(this.name)}}class lp extends $i{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=dt(this,t,e,0))!==null&&i!==void 0?i:J)===lt)return;const s=this._$AH,o=t===J&&s!==J||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==J&&(s===J||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class dp{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}}const Yo=gi.litHtmlPolyfillSupport;Yo==null||Yo(Ut,jt),((ls=gi.litHtmlVersions)!==null&&ls!==void 0?ls:gi.litHtmlVersions=[]).push("2.8.0");const up=(n,t,e)=>{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new jt(t.insertBefore(Ht(),a),a,void 0,e!=null?e:{})}return r._$AI(n),r};/**
3679
+ * @license
3680
+ * Copyright 2017 Google LLC
3681
+ * SPDX-License-Identifier: BSD-3-Clause
3682
+ */var us,cs;class si extends Ge{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=up(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 lt}}si.finalized=!0,si._$litElement$=!0,(us=globalThis.litElementHydrateSupport)===null||us===void 0||us.call(globalThis,{LitElement:si});const Wo=globalThis.litElementPolyfillSupport;Wo==null||Wo({LitElement:si});((cs=globalThis.litElementVersions)!==null&&cs!==void 0?cs:globalThis.litElementVersions=[]).push("3.3.3");/**
3683
+ * @license
3684
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3685
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3686
+ */const cp=vn`
3687
+ [part='clear-button'] {
3688
+ display: none;
3689
+ cursor: default;
3690
+ }
3691
+
3692
+ [part='clear-button']::before {
3693
+ content: '\\2715';
3694
+ }
3695
+
3696
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
3697
+ display: block;
3698
+ }
3699
+ `;/**
3700
+ * @license
3701
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3702
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3703
+ */const hp=vn`
3704
+ :host {
3705
+ display: inline-flex;
3706
+ outline: none;
3707
+ }
3708
+
3709
+ :host::before {
3710
+ content: '\\2003';
3711
+ width: 0;
3712
+ display: inline-block;
3713
+ /* Size and position this element on the same vertical position as the input-field element
3714
+ to make vertical align for the host element work as expected */
3715
+ }
3716
+
3717
+ :host([hidden]) {
3718
+ display: none !important;
3719
+ }
3720
+
3721
+ :host(:not([has-label])) [part='label'] {
3722
+ display: none;
3723
+ }
3724
+
3725
+ @media (forced-colors: active) {
3726
+ :host(:not([readonly])) [part='input-field'] {
3727
+ outline: 1px solid;
3728
+ outline-offset: -1px;
3729
+ }
3730
+ :host([focused]) [part='input-field'] {
3731
+ outline-width: 2px;
3732
+ }
3733
+ :host([disabled]) [part='input-field'] {
3734
+ outline-color: GrayText;
3735
+ }
3736
+ }
3737
+ `;/**
3738
+ * @license
3739
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3740
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3741
+ */const pp=vn`
3742
+ [class$='container'] {
3743
+ display: flex;
3744
+ flex-direction: column;
3745
+ min-width: 100%;
3746
+ max-width: 100%;
3747
+ width: var(--vaadin-field-default-width, 12em);
3748
+ }
3749
+ `;/**
3750
+ * @license
3751
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3752
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3753
+ */const fp=[hp,pp,cp];/**
3754
+ * @license
3755
+ * Copyright (c) 2023 Vaadin Ltd.
3756
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3757
+ */const mp=n=>class extends n{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const r=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));r.length>0&&s.remove(...r)}const o=typeof e=="string"?e.split(" "):[];o.length>0&&s.add(...o),this.__previousClasses=o}};/**
3758
+ * @license
3759
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3760
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3761
+ */class _p{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")}}/**
3762
+ * @license
3763
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3764
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3765
+ */const gp=n=>class extends mp(ct(La(Ba(Ei(n))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),s=new Date;let o,r=s.getMonth(),a=s.getFullYear();if(i.length===3){if(r=parseInt(i[0])-1,o=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?yt(this.referenceDate):new Date;a=lh(l,a,r,o)}}else i.length===2?(r=parseInt(i[0])-1,o=parseInt(i[1])):i.length===1&&(o=parseInt(i[0]));if(o!==void 0)return{day:o,month:r,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:ga},_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 za(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new _p(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",s=>{this.__userConfirmedDate=!0,this._selectDate(s.detail.date),this._close()}),i.addEventListener("date-selected",s=>{this.__userConfirmedDate=!!s.detail.date,this._selectDate(s.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=yt(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Pa(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||Lt(this._selectedDate,this._minDate,this._maxDate);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),i&&s&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const i=this.value;this._selectedDate=e,i!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,i,s,o,r,a){return!e||i&&(!a||r)||s&&r||!o.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const i=(u,h="00")=>(h+u).substr((h+u).length-h.length);let s="",o="0000",r=e.getFullYear();r<0?(r=-r,s="-",o="000000"):e.getFullYear()>=1e4&&(s="+",o="000000");const a=s+i(r,o),l=i(e.getMonth()+1),d=i(e.getDate());return[a,l,d].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const s=yt(e);if(e&&!s){this.value=i;return}e?_e(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,s,o,r,a,l,d){e&&(e.i18n=i,e.label=s,e.minDate=o,e.maxDate=r,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const s=e.focusedDate||i;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 o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const r=this._noInput?e:[o,e];this.__showOthers=ya(r)}_getInitialPosition(){const e=yt(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Lt(i,this._minDate,this._maxDate)?i:$a(i,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this._selectDate(i):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const i=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),i===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,_e(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return yt(e)}};/**
3766
+ * @license
3767
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3768
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3769
+ */const yp=Bt`
3770
+ :host([opened]) {
3771
+ pointer-events: auto;
3772
+ }
3773
+
3774
+ :host([dir='rtl']) [part='input-field'] {
3775
+ direction: ltr;
3776
+ }
3777
+
3778
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
3779
+ direction: rtl;
3780
+ text-align: left;
3781
+ }
3782
+ `;/**
3783
+ * @license
3784
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3785
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3786
+ */U("vaadin-date-picker",[fp,yp],{moduleId:"vaadin-date-picker-styles"});class bp extends gp(Gh(Be(Yr(Ae)))){static get is(){return"vaadin-date-picker"}static get template(){return Ve`
3787
+ <div class="vaadin-date-picker-container">
3788
+ <div part="label">
3789
+ <slot name="label"></slot>
3790
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
3791
+ </div>
3792
+
3793
+ <vaadin-input-container
3794
+ part="input-field"
3795
+ readonly="[[readonly]]"
3796
+ disabled="[[disabled]]"
3797
+ invalid="[[invalid]]"
3798
+ theme$="[[_theme]]"
3799
+ >
3800
+ <slot name="prefix" slot="prefix"></slot>
3801
+ <slot name="input"></slot>
3802
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
3803
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
3804
+ </vaadin-input-container>
3805
+
3806
+ <div part="helper-text">
3807
+ <slot name="helper"></slot>
3808
+ </div>
3809
+
3810
+ <div part="error-message">
3811
+ <slot name="error-message"></slot>
3812
+ </div>
3813
+ </div>
3814
+
3815
+ <vaadin-date-picker-overlay
3816
+ id="overlay"
3817
+ fullscreen$="[[_fullscreen]]"
3818
+ theme$="[[_theme]]"
3819
+ opened="{{opened}}"
3820
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
3821
+ on-vaadin-overlay-open="_onOverlayOpened"
3822
+ on-vaadin-overlay-closing="_onOverlayClosed"
3823
+ restore-focus-on-close
3824
+ restore-focus-node="[[inputElement]]"
3825
+ ></vaadin-date-picker-overlay>
3826
+
3827
+ <slot name="tooltip"></slot>
3828
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Jh(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Zh(this.inputElement,this._labelController)),this._tooltipController=new Kr(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}}ue(bp);var Ga={exports:{}};(function(n,t){(function(e,i){n.exports=i()})(c.commonjsGlobal,function(){var e=1e3,i=6e4,s=36e5,o="millisecond",r="second",a="minute",l="hour",d="day",u="week",h="month",p="quarter",f="year",_="date",S="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,z={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 y=["th","st","nd","rd"],m=x%100;return"["+x+(y[(m-20)%10]||y[m]||y[0])+"]"}},j=function(x,y,m){var b=String(x);return!b||b.length>=y?x:""+Array(y+1-b.length).join(m)+x},Y={s:j,z:function(x){var y=-x.utcOffset(),m=Math.abs(y),b=Math.floor(m/60),g=m%60;return(y<=0?"+":"-")+j(b,2,"0")+":"+j(g,2,"0")},m:function x(y,m){if(y.date()<m.date())return-x(m,y);var b=12*(m.year()-y.year())+(m.month()-y.month()),g=y.clone().add(b,h),A=m-g<0,w=y.clone().add(b+(A?-1:1),h);return+(-(b+(m-g)/(A?g-w:w-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:f,w:u,d,D:_,h:l,m:a,s:r,ms:o,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},V="en",te={};te[V]=z;var ce="$isDayjsObject",re=function(x){return x instanceof ie||!(!x||!x[ce])},ae=function x(y,m,b){var g;if(!y)return V;if(typeof y=="string"){var A=y.toLowerCase();te[A]&&(g=A),m&&(te[A]=m,g=A);var w=y.split("-");if(!g&&w.length>1)return x(w[0])}else{var $=y.name;te[$]=y,g=$}return!b&&g&&(V=g),g||!b&&V},P=function(x,y){if(re(x))return x.clone();var m=typeof y=="object"?y:{};return m.date=x,m.args=arguments,new ie(m)},C=Y;C.l=ae,C.i=re,C.w=function(x,y){return P(x,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var ie=function(){function x(m){this.$L=ae(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[ce]=!0}var y=x.prototype;return y.parse=function(m){this.$d=function(b){var g=b.date,A=b.utc;if(g===null)return new Date(NaN);if(C.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var w=g.match(M);if(w){var $=w[2]-1||0,O=(w[7]||"0").substring(0,3);return A?new Date(Date.UTC(w[1],$,w[3]||1,w[4]||0,w[5]||0,w[6]||0,O)):new Date(w[1],$,w[3]||1,w[4]||0,w[5]||0,w[6]||0,O)}}return new Date(g)}(m),this.init()},y.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},y.$utils=function(){return C},y.isValid=function(){return this.$d.toString()!==S},y.isSame=function(m,b){var g=P(m);return this.startOf(b)<=g&&g<=this.endOf(b)},y.isAfter=function(m,b){return P(m)<this.startOf(b)},y.isBefore=function(m,b){return this.endOf(b)<P(m)},y.$g=function(m,b,g){return C.u(m)?this[b]:this.set(g,m)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(m,b){var g=this,A=!!C.u(b)||b,w=C.p(m),$=function(ee,T){var R=C.w(g.$u?Date.UTC(g.$y,T,ee):new Date(g.$y,T,ee),g);return A?R:R.endOf(d)},O=function(ee,T){return C.w(g.toDate()[ee].apply(g.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(T)),g)},L=this.$W,H=this.$M,Z=this.$D,le="set"+(this.$u?"UTC":"");switch(w){case f:return A?$(1,0):$(31,11);case h:return A?$(1,H):$(0,H+1);case u:var de=this.$locale().weekStart||0,se=(L<de?L+7:L)-de;return $(A?Z-se:Z+(6-se),H);case d:case _:return O(le+"Hours",0);case l:return O(le+"Minutes",1);case a:return O(le+"Seconds",2);case r:return O(le+"Milliseconds",3);default:return this.clone()}},y.endOf=function(m){return this.startOf(m,!1)},y.$set=function(m,b){var g,A=C.p(m),w="set"+(this.$u?"UTC":""),$=(g={},g[d]=w+"Date",g[_]=w+"Date",g[h]=w+"Month",g[f]=w+"FullYear",g[l]=w+"Hours",g[a]=w+"Minutes",g[r]=w+"Seconds",g[o]=w+"Milliseconds",g)[A],O=A===d?this.$D+(b-this.$W):b;if(A===h||A===f){var L=this.clone().set(_,1);L.$d[$](O),L.init(),this.$d=L.set(_,Math.min(this.$D,L.daysInMonth())).$d}else $&&this.$d[$](O);return this.init(),this},y.set=function(m,b){return this.clone().$set(m,b)},y.get=function(m){return this[C.p(m)]()},y.add=function(m,b){var g,A=this;m=Number(m);var w=C.p(b),$=function(H){var Z=P(A);return C.w(Z.date(Z.date()+Math.round(H*m)),A)};if(w===h)return this.set(h,this.$M+m);if(w===f)return this.set(f,this.$y+m);if(w===d)return $(1);if(w===u)return $(7);var O=(g={},g[a]=i,g[l]=s,g[r]=e,g)[w]||1,L=this.$d.getTime()+m*O;return C.w(L,this)},y.subtract=function(m,b){return this.add(-1*m,b)},y.format=function(m){var b=this,g=this.$locale();if(!this.isValid())return g.invalidDate||S;var A=m||"YYYY-MM-DDTHH:mm:ssZ",w=C.z(this),$=this.$H,O=this.$m,L=this.$M,H=g.weekdays,Z=g.months,le=g.meridiem,de=function(T,R,v,F){return T&&(T[R]||T(b,A))||v[R].slice(0,F)},se=function(T){return C.s($%12||12,T,"0")},ee=le||function(T,R,v){var F=T<12?"AM":"PM";return v?F.toLowerCase():F};return A.replace(I,function(T,R){return R||function(v){switch(v){case"YY":return String(b.$y).slice(-2);case"YYYY":return C.s(b.$y,4,"0");case"M":return L+1;case"MM":return C.s(L+1,2,"0");case"MMM":return de(g.monthsShort,L,Z,3);case"MMMM":return de(Z,L);case"D":return b.$D;case"DD":return C.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return de(g.weekdaysMin,b.$W,H,2);case"ddd":return de(g.weekdaysShort,b.$W,H,3);case"dddd":return H[b.$W];case"H":return String($);case"HH":return C.s($,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return ee($,O,!0);case"A":return ee($,O,!1);case"m":return String(O);case"mm":return C.s(O,2,"0");case"s":return String(b.$s);case"ss":return C.s(b.$s,2,"0");case"SSS":return C.s(b.$ms,3,"0");case"Z":return w}return null}(T)||w.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(m,b,g){var A,w=this,$=C.p(b),O=P(m),L=(O.utcOffset()-this.utcOffset())*i,H=this-O,Z=function(){return C.m(w,O)};switch($){case f:A=Z()/12;break;case h:A=Z();break;case p:A=Z()/3;break;case u:A=(H-L)/6048e5;break;case d:A=(H-L)/864e5;break;case l:A=H/s;break;case a:A=H/i;break;case r:A=H/e;break;default:A=H}return g?A:C.a(A)},y.daysInMonth=function(){return this.endOf(h).$D},y.$locale=function(){return te[this.$L]},y.locale=function(m,b){if(!m)return this.$L;var g=this.clone(),A=ae(m,b,!0);return A&&(g.$L=A),g},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},x}(),Se=ie.prototype;return P.prototype=Se,[["$ms",o],["$s",r],["$m",a],["$H",l],["$W",d],["$M",h],["$y",f],["$D",_]].forEach(function(x){Se[x[1]]=function(y){return this.$g(y,x[0],x[1])}}),P.extend=function(x,y){return x.$i||(x(y,ie,P),x.$i=!0),P},P.locale=ae,P.isDayjs=re,P.unix=function(x){return P(1e3*x)},P.en=te[V],P.Ls=te,P.p={},P})})(Ga);var vp=Ga.exports;const ni=c.getDefaultExportFromCjs(vp);function qo(n,t){c.addMessages(n,t)}function xp(n){c.$locale.set(n)}const Ko={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 wp(n){c.append_styles(n,"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 Go(n,t,e){const i=n.slice();return i[47]=t[e],i}function Ap(n){let t,e,i,s,o,r,a,l,d,u,h=n[18]("titleSelfExclusion")+"",p,f,_;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),o=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),r=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.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"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(r,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(u,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(S,M){c.insert(S,t,M),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,o),c.append(e,r),c.append(r,a),c.append(a,l),c.append(t,d),c.append(t,u),c.append(u,p),f||(_=c.listen(t,"click",n[28]),f=!0)},p(S,M){M[0]&262144&&h!==(h=S[18]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(S){S&&c.detach(t),f=!1,_()}}}function Jo(n){let t,e=n[18](`${n[47].key}`)+"",i,s,o;function r(){return n[30](n[47])}return{c(){t=c.element("div"),i=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,i),s||(o=c.listen(t,"click",r),s=!0)},p(a,l){n=a,l[0]&262400&&e!==(e=n[18](`${n[47].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,o()}}}function Zo(n){let t,e,i=n[18]("duration")+"",s,o,r,a=n[18]("dateInstructions")+"",l,d,u,h,p;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),o=c.space(),r=c.element("span"),l=c.text(a),d=c.space(),u=c.element("strong"),u.innerHTML="MM/DD/YYYY<strong></strong>",h=c.space(),p=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(r,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(p,"min",n[9]),c.set_custom_element_data(p,"max",n[10]),c.set_custom_element_data(p,"value",n[9]),c.attr(t,"class","SelfExclusionDateWrapper "+(n[19]?"SelfExclusionDateWrapperMobile":""))},m(f,_){c.insert(f,t,_),c.append(t,e),c.append(e,s),c.append(t,o),c.append(t,r),c.append(r,l),c.append(r,d),c.append(r,u),c.append(t,h),c.append(t,p),n[31](p)},p(f,_){_[0]&262144&&i!==(i=f[18]("duration")+"")&&c.set_data(s,i),_[0]&262144&&a!==(a=f[18]("dateInstructions")+"")&&c.set_data(l,a),_[0]&512&&c.set_custom_element_data(p,"min",f[9]),_[0]&1024&&c.set_custom_element_data(p,"max",f[10]),_[0]&512&&c.set_custom_element_data(p,"value",f[9])},d(f){f&&c.detach(t),n[31](null)}}}function Ep(n){let t,e,i=n[18]("temporarySelfExclusion",{values:{date:n[11]}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(o,r){c.insert(o,t,r),c.append(t,e),c.append(e,s)},p(o,r){r[0]&264192&&i!==(i=o[18]("temporarySelfExclusion",{values:{date:o[11]}})+"")&&c.set_data(s,i)},d(o){o&&c.detach(t)}}}function Sp(n){let t,e,i=n[18]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(o,r){c.insert(o,t,r),c.append(t,e),c.append(e,s)},p(o,r){r[0]&262144&&i!==(i=o[18]("noPeriodSelected")+"")&&c.set_data(s,i)},d(o){o&&c.detach(t)}}}function Cp(n){let t,e,i=n[18]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(o,r){c.insert(o,t,r),c.append(t,e),c.append(e,s)},p(o,r){r[0]&262144&&i!==(i=o[18]("permanentSelfExclusion")+"")&&c.set_data(s,i)},d(o){o&&c.detach(t)}}}function $p(n){let t,e,i,s;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",i=n[18]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",n[13]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",s={type:"SetSelfExclusion",selfExclusionPeriod:n[12],selfExclusionExpiryDate:n[11]}),c.set_custom_element_data(e,"lang",n[0]),c.set_custom_element_data(t,"clientstyling",n[4]),c.set_custom_element_data(t,"clientstylingurl",n[5]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(o,r){c.insert(o,t,r),c.append(t,e)},p(o,r){r[0]&262144&&i!==(i=o[18]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),r[0]&8192&&c.set_custom_element_data(e,"modaltext",o[13]),r[0]&6144&&s!==(s={type:"SetSelfExclusion",selfExclusionPeriod:o[12],selfExclusionExpiryDate:o[11]})&&c.set_custom_element_data(e,"modalconfirmevent",s),r[0]&1&&c.set_custom_element_data(e,"lang",o[0]),r[0]&16&&c.set_custom_element_data(t,"clientstyling",o[4]),r[0]&32&&c.set_custom_element_data(t,"clientstylingurl",o[5])},d(o){o&&c.detach(t)}}}function Pp(n){let t,e,i,s,o=n[18]("titleSelfExclusion")+"",r,a,l,d,u=n[18]("selfExclusionText",{values:{operatorname:n[1],baseurl:n[3],lang:n[0]}})+"",h,p,f=n[18]("selfExclusionEmailText")+"",_,S,M,I,z,j,Y,V,te,ce=n[18](`${n[12]}`)+"",re,ae,P,C,ie,Se,x,y,m,b,g,A,w,$=n[18]("save")+"",O,L,H,Z,le,de,se=n[19]&&Ap(n),ee=c.ensure_array_like(n[8]),T=[];for(let E=0;E<ee.length;E+=1)T[E]=Jo(Go(n,ee,E));let R=n[15]&&Zo(n);function v(E,B){return E[14]?Cp:E[16]?Ep:Sp}let F=v(n),N=F(n),he=n[20]&&$p(n);return{c(){t=c.element("div"),e=c.element("form"),se&&se.c(),i=c.space(),s=c.element("h2"),r=c.text(o),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),p=c.element("p"),_=c.text(f),S=c.space(),M=c.element("a"),I=c.text(n[2]),j=c.space(),Y=c.element("div"),V=c.element("div"),te=c.element("p"),re=c.text(ce),ae=c.space(),P=c.svg_element("svg"),C=c.svg_element("g"),ie=c.svg_element("path"),Se=c.space(),x=c.element("div");for(let E=0;E<T.length;E+=1)T[E].c();y=c.space(),R&&R.c(),m=c.space(),b=c.element("div"),N.c(),g=c.space(),A=c.element("div"),w=c.element("button"),O=c.text($),Z=c.space(),he&&he.c(),c.attr(s,"class","PlayerSelfExclusionTitle "+(n[19]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(M,"href",z="mailto:"+n[2]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(n[19]?"SelfExclusionDescriptionMobile":"")),c.attr(ie,"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"),c.attr(ie,"stroke-linecap","round"),c.attr(P,"xmlns","http://www.w3.org/2000/svg"),c.attr(P,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(P,"version","1.1"),c.attr(P,"viewBox","0 0 100 100"),c.attr(P,"xml:space","preserve"),c.attr(P,"class","SelfExclusionConfigIcon"),c.toggle_class(P,"active",n[17]),c.attr(V,"class","SelfExclusionConfigLabel"),c.attr(x,"class","SelfExclusionDropDown"),c.toggle_class(x,"active",n[17]),c.attr(Y,"class","SelfExclusionConfigWrapper "+(n[19]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(Y,"active",n[17]),c.attr(b,"class","SelfExclusionDescription "+(n[19]?"SelfExclusionDescriptionMobile":"")),c.attr(w,"class",L="SelfExclusionSave "+(n[16]?"active":"")),w.disabled=H=!n[16],c.attr(A,"class","SelfExclusionActionButtons "+(n[19]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(n[19]?"SelfExclusionWrapperMobile":""))},m(E,B){c.insert(E,t,B),c.append(t,e),se&&se.m(e,null),c.append(e,i),c.append(e,s),c.append(s,r),c.append(e,a),c.append(e,l),c.append(l,d),d.innerHTML=u,c.append(l,h),c.append(l,p),c.append(p,_),c.append(p,S),c.append(p,M),c.append(M,I),c.append(e,j),c.append(e,Y),c.append(Y,V),c.append(V,te),c.append(te,re),c.append(V,ae),c.append(V,P),c.append(P,C),c.append(C,ie),c.append(Y,Se),c.append(Y,x);for(let X=0;X<T.length;X+=1)T[X]&&T[X].m(x,null);c.append(e,y),R&&R.m(e,null),c.append(e,m),c.append(e,b),N.m(b,null),c.append(e,g),c.append(e,A),c.append(A,w),c.append(w,O),c.append(t,Z),he&&he.m(t,null),n[33](t),le||(de=[c.listen(V,"click",n[29]),c.listen(w,"click",n[32])],le=!0)},p(E,B){if(E[19]&&se.p(E,B),B[0]&262144&&o!==(o=E[18]("titleSelfExclusion")+"")&&c.set_data(r,o),B[0]&262155&&u!==(u=E[18]("selfExclusionText",{values:{operatorname:E[1],baseurl:E[3],lang:E[0]}})+"")&&(d.innerHTML=u),B[0]&262144&&f!==(f=E[18]("selfExclusionEmailText")+"")&&c.set_data(_,f),B[0]&4&&c.set_data(I,E[2]),B[0]&4&&z!==(z="mailto:"+E[2])&&c.attr(M,"href",z),B[0]&266240&&ce!==(ce=E[18](`${E[12]}`)+"")&&c.set_data(re,ce),B[0]&131072&&c.toggle_class(P,"active",E[17]),B[0]&4456704){ee=c.ensure_array_like(E[8]);let X;for(X=0;X<ee.length;X+=1){const xn=Go(E,ee,X);T[X]?T[X].p(xn,B):(T[X]=Jo(xn),T[X].c(),T[X].m(x,null))}for(;X<T.length;X+=1)T[X].d(1);T.length=ee.length}B[0]&131072&&c.toggle_class(x,"active",E[17]),B[0]&131072&&c.toggle_class(Y,"active",E[17]),E[15]?R?R.p(E,B):(R=Zo(E),R.c(),R.m(e,m)):R&&(R.d(1),R=null),F===(F=v(E))&&N?N.p(E,B):(N.d(1),N=F(E),N&&(N.c(),N.m(b,null))),B[0]&262144&&$!==($=E[18]("save")+"")&&c.set_data(O,$),B[0]&65536&&L!==(L="SelfExclusionSave "+(E[16]?"active":""))&&c.attr(w,"class",L),B[0]&65536&&H!==(H=!E[16])&&(w.disabled=H),E[20]&&he.p(E,B)},i:c.noop,o:c.noop,d(E){E&&c.detach(t),se&&se.d(),c.destroy_each(T,E),R&&R.d(),N.d(),he&&he.d(),n[33](null),le=!1,c.run_all(de)}}}function Tp(n,t,e){let i;c.component_subscribe(n,c.$format,v=>e(18,i=v));let{endpoint:s="",lang:o="en",operator:r="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:d="",clientstylingurl:u="",translationurl:h="",hasconfirmationmodal:p="false"}=t,f,_,S=[],M=window.navigator.userAgent,I,z,j="",Y="",V="selectAPeriod",te="",ce=c.getDevice(M)!=="PC",re=!1,ae=!1,P=!1,C=!1,ie=p==="true";const Se=()=>{fetch(h).then(F=>F.json()).then(F=>{Object.keys(F).forEach(N=>{qo(N,F[N])})}).catch(F=>{console.log(F)})};Object.keys(Ko).forEach(v=>{qo(v,Ko[v])});const x=()=>{let v=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(v,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(N=>y(N)).then(N=>{e(8,S=N.periods)}).catch(N=>{console.log(N)})},y=v=>{if(v.status>=300)throw new Error("There was an error fetching the config");return v.json()},m=()=>{e(17,C=!C)},b=v=>{switch(Y=v.text,e(12,V=v.key),e(16,P=!0),e(17,C=!1),e(14,re=!1),e(15,ae=!1),Y){case"Until":e(15,ae=!0),e(9,I=ni().add(6,"months").format("YYYY-MM-DD")),e(10,z=ni().add(5,"years").format("YYYY-MM-DD")),e(11,j=I);break;case"Permanent":e(14,re=!re);break;default:const[F,N]=Y.split(" "),he=N.includes("Day")?"days":N.includes("Month")?"months":N.includes("Year")?"years":null;if(!he)return;e(11,j=ni().add(Number(F),he).format("YYYY-MM-DD"));break}ie&&g()},g=()=>{if(!ie){e(13,te="");return}e(13,te=ae?i("confirmationModalTextUntil",{values:{date:j}}):i("confirmationModalTextPeriod",{values:{period:i(Y)}}))},A=v=>{v.preventDefault(),ie?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:V,selfExclusionExpiryDate:j},window.location.href)},w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:ce},window.location.href)},$=v=>{e(11,j=v.target.value)},O=()=>{_.addEventListener("change",$,!1)},L=()=>{let v=document.createElement("style");v.innerHTML=d,f.appendChild(v)},H=()=>{let v=new URL(u),F=document.createElement("style");fetch(v.href).then(N=>N.text()).then(N=>{F.innerHTML=N,setTimeout(()=>{f.appendChild(F)},1)})};c.onMount(()=>()=>{_.removeEventListener("change",$)});const Z=()=>{xp(o)},le=()=>w(),de=()=>m(),se=v=>b(v);function ee(v){c.binding_callbacks[v?"unshift":"push"](()=>{_=v,e(7,_)})}const T=v=>A(v);function R(v){c.binding_callbacks[v?"unshift":"push"](()=>{f=v,e(6,f)})}return n.$$set=v=>{"endpoint"in v&&e(25,s=v.endpoint),"lang"in v&&e(0,o=v.lang),"operator"in v&&e(1,r=v.operator),"supportemail"in v&&e(2,a=v.supportemail),"baseurl"in v&&e(3,l=v.baseurl),"clientstyling"in v&&e(4,d=v.clientstyling),"clientstylingurl"in v&&e(5,u=v.clientstylingurl),"translationurl"in v&&e(26,h=v.translationurl),"hasconfirmationmodal"in v&&e(27,p=v.hasconfirmationmodal)},n.$$.update=()=>{n.$$.dirty[0]&128&&_&&O(),n.$$.dirty[0]&33554432&&s&&x(),n.$$.dirty[0]&1&&o&&Z(),n.$$.dirty[0]&96&&u&&f&&H(),n.$$.dirty[0]&80&&d&&f&&L(),n.$$.dirty[0]&67108864&&h&&Se()},ie&&g(),[o,r,a,l,d,u,f,_,S,I,z,j,V,te,re,ae,P,C,i,ce,ie,m,b,A,w,s,h,p,le,de,se,ee,T,R]}class Ja extends c.SvelteComponent{constructor(t){super(),c.init(this,t,Tp,Pp,c.safe_not_equal,{endpoint:25,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,translationurl:26,hasconfirmationmodal:27},wp,[-1,-1])}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),c.flush()}get operator(){return this.$$.ctx[1]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[2]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[3]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get translationurl(){return this.$$.ctx[26]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[27]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}}c.create_custom_element(Ja,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);const kp=Object.freeze(Object.defineProperty({__proto__:null,default:Ja},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountSelfExclusion_ce=kp;exports.dayjs=ni;