@everymatrix/lottery-game-page 1.22.1 → 1.22.2

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.
@@ -1,4 +1,4 @@
1
- import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en"];const r={en:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ro:{filterOpen:"Filtrare",filterClear:"Stergere",filterModalTicketTitle:"Rezultatele biletelor",filterModalDrawTitle:"Rezultatele draw-urilor",filterTicketPlaceholder:"Cauta ID bilet",filterDrawPlaceholder:"Cauta ID draw",filterDateRangePlaceholder:"Perioada",filterModalButton:"Cauta",filterOrDate:"sau cauta dupa data"},fr:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ar:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"}};const n=(t,e)=>{const i=e;return r[i!==undefined&&o.includes(i)?i:s][t]};
1
+ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en"];const o={en:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ro:{filterOpen:"Filtrare",filterClear:"Stergere",filterModalTicketTitle:"Rezultatele biletelor",filterModalDrawTitle:"Rezultatele draw-urilor",filterTicketPlaceholder:"Cauta ID bilet",filterDrawPlaceholder:"Cauta ID draw",filterDateRangePlaceholder:"Perioada",filterModalButton:"Cauta",filterOrDate:"sau cauta dupa data"},fr:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ar:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"}};const n=(t,e)=>{const i=e;return o[i!==undefined&&r.includes(i)?i:s][t]};
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -13,37 +13,42 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en
13
13
  * @license
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
- */const h=window,c=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),d=new WeakMap;class f{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)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(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const p=t=>new f("string"==typeof t?t:t+"",void 0,u),m=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new f(i,t,u)},b=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),s=h.litNonce;void 0!==s&&i.setAttribute("nonce",s),i.textContent=e.cssText,t.appendChild(i)}))},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return p(e)})(t):t
16
+ */const h=window,c=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),d=new WeakMap;class f{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)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(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const p=t=>new f("string"==typeof t?t:t+"",void 0,u),m=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new f(i,t,u)},v=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),s=h.litNonce;void 0!==s&&i.setAttribute("nonce",s),i.textContent=e.cssText,t.appendChild(i)}))},b=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return p(e)})(t):t
17
17
  /**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */;var g;const y=window,w=y.trustedTypes,x=w?w.emptyScript:"",_=y.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},A=(t,e)=>e!==t&&(e==e||t==t),C={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:A},D="finalized";class T extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))})),t}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&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)||C}static finalize(){if(this.hasOwnProperty(D))return!1;this[D]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}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 t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||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=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=C){var s;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:k).toAttribute(e,i.type);this._$El=t,null==r?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(void 0!==o&&this._$El!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:k;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||A)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),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){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}T[D]=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},null==_||_({ReactiveElement:T}),(null!==(g=y.reactiveElementVersions)&&void 0!==g?g:y.reactiveElementVersions=[]).push("1.6.2");
21
+ */;var g;const y=window,w=y.trustedTypes,x=w?w.emptyScript:"",_=y.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},A=(t,e)=>e!==t&&(e==e||t==t),C={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:A},D="finalized";class T 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(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))})),t}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}static finalize(){if(this.hasOwnProperty(D))return!1;this[D]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}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 t of i)e.unshift(b(t))}else void 0!==t&&e.push(b(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||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=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return v(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=C){var s;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:k).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=s.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:k;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||A)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),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){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}T[D]=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},null==_||_({ReactiveElement:T}),(null!==(g=y.reactiveElementVersions)&&void 0!==g?g:y.reactiveElementVersions=[]).push("1.6.3");
22
22
  /**
23
23
  * @license
24
24
  * Copyright 2017 Google LLC
25
25
  * SPDX-License-Identifier: BSD-3-Clause
26
- */var S;const M=window,N=M.trustedTypes,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,F="?"+P,O=`<${F}>`,I=document,B=()=>I.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,W=t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L="[ \t\n\f\r]",$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,H=/>/g,G=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,Y=/"/g,V=/^(?:script|style|textarea|title)$/i,J=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),X=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=$;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===$?"!--"===l[1]?n=U:void 0!==l[1]?n=H:void 0!==l[2]?(V.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=G):void 0!==l[3]&&(n=G):n===G?">"===l[0]?(n=null!=o?o:$,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?G:'"'===l[3]?Y:q):n===Y||n===q?n=G:n===U||n===H?n=$:(n=G,o=void 0);const u=n===G&&t[e+1].startsWith("/>")?" ":"";r+=n===$?i+O:h>=0?(s.push(a),i.slice(0,h)+z+i.slice(h)+P+u):i+P+(-2===h?(s.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(a):a,s]};class tt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=X(t,e);if(this.el=tt.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=Q.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(z)||e.startsWith(P)){const i=h[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+z).split(P),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?at:"@"===e[1]?lt:ot})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(V.test(s.tagName)){const t=s.textContent.split(P),e=t.length-1;if(e>0){s.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],B()),Q.nextNode(),a.push({type:2,index:++o});s.append(t[e],B())}}}else if(8===s.nodeType)if(s.data===F)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(P,t+1));)a.push({type:7,index:o}),t+=P.length-1}o++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,s){var o,r,n,a;if(e===J)return e;let l=void 0!==s?null===(o=i._$Co)||void 0===o?void 0:o[s]:i._$Cl;const h=R(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=et(t,l._$AS(t,e.values),l,s)),e}class it{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=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);Q.currentNode=o;let r=Q.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new st(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ht(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=Q.nextNode(),n++)}return Q.currentNode=I,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{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=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),R(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):W(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&&R(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=tt.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new it(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new tt(t)),e}T(t){j(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 st(this.k(B()),this.k(B()),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(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{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(void 0===o)t=et(this,t,e,0),r=!R(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=et(this,s[i+n],e,n),a===J&&(a=this._$AH[n]),r||(r=!R(a)||a!==this._$AH[n]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}const nt=N?N.emptyScript:"";class at extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=et(this,t,e,0))&&void 0!==i?i:K)===J)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;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ht{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){et(this,t)}}const ct=M.litHtmlPolyfillSupport;null==ct||ct(tt,st),(null!==(S=M.litHtmlVersions)&&void 0!==S?S:M.litHtmlVersions=[]).push("2.7.4");const ut=(t,e,i)=>{var s,o;const r=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=r._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=n=new st(e.insertBefore(B(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
26
+ */var S;const M=window,z=M.trustedTypes,E=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,N="?"+F,O=`<${N}>`,B=document,I=()=>B.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,W=t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,G=/>/g,$=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,Y=/"/g,V=/^(?:script|style|textarea|title)$/i,J=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,Q=B.createTreeWalker(B,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==E?E.createHTML(e):e}const tt=(t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"<svg>":"",n=U;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===U?"!--"===l[1]?n=H:void 0!==l[1]?n=G:void 0!==l[2]?(V.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=$):void 0!==l[3]&&(n=$):n===$?">"===l[0]?(n=null!=r?r:U,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?$:'"'===l[3]?Y:q):n===Y||n===q?n=$:n===H||n===G?n=U:(n=$,r=void 0);const u=n===$&&t[e+1].startsWith("/>")?" ":"";o+=n===U?i+O:h>=0?(s.push(a),i.slice(0,h)+P+i.slice(h)+F+u):i+F+(-2===h?(s.push(void 0),e):u)}return[X(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class et{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const n=t.length-1,a=this.parts,[l,h]=tt(t,e);if(this.el=et.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=Q.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(P)||e.startsWith(F)){const i=h[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+P).split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?lt:"@"===e[1]?ht:ot})}else a.push({type:6,index:r})}for(const e of t)s.removeAttribute(e)}if(V.test(s.tagName)){const t=s.textContent.split(F),e=t.length-1;if(e>0){s.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],I()),Q.nextNode(),a.push({type:2,index:++r});s.append(t[e],I())}}}else if(8===s.nodeType)if(s.data===N)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(F,t+1));)a.push({type:7,index:r}),t+=F.length-1}r++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,s){var r,o,n,a;if(e===J)return e;let l=void 0!==s?null===(r=i._$Co)||void 0===r?void 0:r[s]:i._$Cl;const h=R(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=it(t,l._$AS(t,e.values),l,s)),e}class st{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,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);Q.currentNode=r;let o=Q.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new rt(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new ct(o,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(o=Q.nextNode(),n++)}return Q.currentNode=B,r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class rt{constructor(t,e,i,s){var r;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(r=null==s?void 0:s.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),R(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):W(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&&R(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=et.createElement(X(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new st(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new et(t)),e}T(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new rt(this.k(I()),this.k(I()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{constructor(t,e,i,s,r){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,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 r=this.strings;let o=!1;if(void 0===r)t=it(this,t,e,0),o=!R(t)||t!==this._$AH&&t!==J,o&&(this._$AH=t);else{const s=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=it(this,s[i+n],e,n),a===J&&(a=this._$AH[n]),o||(o=!R(a)||a!==this._$AH[n]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}o&&!s&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}const at=z?z.emptyScript:"";class lt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends ot{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:K)===J)return;const s=this._$AH,r=t===K&&s!==K||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==K&&(s===K||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{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){it(this,t)}}const ut=M.litHtmlPolyfillSupport;null==ut||ut(et,rt),(null!==(S=M.litHtmlVersions)&&void 0!==S?S:M.litHtmlVersions=[]).push("2.8.0");const dt=(t,e,i)=>{var s,r;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=o._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=n=new rt(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
27
27
  /**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */};var dt,ft;class pt extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ut(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}pt.finalized=!0,pt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:pt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:pt});(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");
31
+ */};var ft,pt;class mt extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=dt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}mt.finalized=!0,mt._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:mt});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:mt});(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.3.3");
32
32
  /**
33
33
  * @license
34
34
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
35
35
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
- */function bt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function vt(t){return bt(customElements.get(t))}function gt(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof f){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function yt(t,e,i={}){if(t){if(vt(t)){console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`)}}e=gt(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}}
36
+ */const bt=t=>class e extends t{static get properties(){return{_theme:{type:String,readOnly:true}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t==="theme"){this._set_theme(i)}}}
37
37
  /**
38
38
  * @license
39
39
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
40
40
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
41
- */const wt=(t,...e)=>{const i=document.createElement("style");i.id=t;i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html");document.head.insertAdjacentElement("afterbegin",i)};const xt=(t,...e)=>{wt(`lumo-${t}`,e)};
41
+ */;const gt=[];function yt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function wt(t){return yt(customElements.get(t))}function xt(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof f){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function _t(t,e,i={}){if(t){if(wt(t)){console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`)}}e=xt(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}else{gt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}}function kt(){if(window.Vaadin&&window.Vaadin.styleModules){return window.Vaadin.styleModules.getAllThemes()}return gt}function At(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Ct(t=""){let e=0;if(t.startsWith("lumo-")||t.startsWith("material-")){e=1}else if(t.startsWith("vaadin-")){e=2}return e}function Dt(t){const e=[];if(t.include){[].concat(t.include).forEach((t=>{const i=kt().find((e=>e.moduleId===t));if(i){e.push(...Dt(i),...i.styles)}else{console.warn(`Included moduleId ${t} not found in style registry`)}}),t.styles)}return e}function Tt(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n");e.content.appendChild(i)}function St(t){const e=`${t}-default-theme`;const i=kt().filter((i=>i.moduleId!==e&&At(i.themeFor,t))).map((t=>({...t,styles:[...Dt(t),...t.styles],includePriority:Ct(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));if(i.length>0){return i}return kt().filter((t=>t.moduleId===e))}const Mt=t=>class e extends(bt(t)){static finalize(){super.finalize();if(this.elementStyles){return}const t=this.prototype._template;if(!t||yt(this)){return}Tt(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);const e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...St(this.is)];const i=this.__themes.flatMap((t=>t.styles));return i.filter(((t,e)=>e===i.lastIndexOf(t)))}}
42
42
  /**
43
43
  * @license
44
44
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
45
45
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
- */const _t=m`
46
+ */;const zt=(t,...e)=>{const i=document.createElement("style");i.id=t;i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html");document.head.insertAdjacentElement("afterbegin",i)};const Et=(t,...e)=>{zt(`lumo-${t}`,e)};
47
+ /**
48
+ * @license
49
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
50
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
51
+ */const Pt=m`
47
52
  :host {
48
53
  /* Base (background) */
49
54
  --lumo-base-color: #fff;
@@ -128,7 +133,7 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en
128
133
  --lumo-disabled-text-color: GrayText;
129
134
  }
130
135
  }
131
- `;xt("color-props",_t);const kt=m`
136
+ `;Et("color-props",Pt);const Ft=m`
132
137
  [theme~='dark'] {
133
138
  /* Base (background) */
134
139
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -243,12 +248,12 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en
243
248
  background-color: var(--lumo-contrast-10pct);
244
249
  border-radius: var(--lumo-border-radius-m);
245
250
  }
246
- `;yt("",kt,{moduleId:"lumo-color"});
251
+ `;_t("",Ft,{moduleId:"lumo-color"});
247
252
  /**
248
253
  * @license
249
254
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
250
255
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
251
- */const At=m`
256
+ */const Nt=m`
252
257
  :host {
253
258
  --lumo-size-xs: 1.625rem;
254
259
  --lumo-size-s: 1.875rem;
@@ -263,12 +268,12 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en
263
268
  /* For backwards compatibility */
264
269
  --lumo-icon-size: var(--lumo-icon-size-m);
265
270
  }
266
- `;xt("sizing-props",At);
271
+ `;Et("sizing-props",Nt);
267
272
  /**
268
273
  * @license
269
274
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
270
275
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
271
- */const Ct=m`
276
+ */const Ot=m`
272
277
  :host {
273
278
  /* Border radius */
274
279
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -291,12 +296,12 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en
291
296
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
292
297
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
293
298
  }
294
- `;xt("style-props",Ct);
299
+ `;Et("style-props",Ot);
295
300
  /**
296
301
  * @license
297
302
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
298
303
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
299
- */const Dt=m`
304
+ */const Bt=m`
300
305
  :host {
301
306
  /* prettier-ignore */
302
307
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -316,7 +321,7 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en
316
321
  --lumo-line-height-s: 1.375;
317
322
  --lumo-line-height-m: 1.625;
318
323
  }
319
- `;const Tt=m`
324
+ `;const It=m`
320
325
  body,
321
326
  :host {
322
327
  font-family: var(--lumo-font-family);
@@ -408,17 +413,7 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const o=["ro","en
408
413
  border-left: none;
409
414
  border-right: 2px solid var(--lumo-contrast-30pct);
410
415
  }
411
- `;yt("",Tt,{moduleId:"lumo-typography"});xt("typography-props",Dt);
412
- /**
413
- * @license
414
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
415
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
416
- */const St=t=>class e extends t{static get properties(){return{_theme:{type:String,readOnly:true}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t==="theme"){this._set_theme(i)}}}
417
- /**
418
- * @license
419
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
420
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
421
- */;const Mt=[];function Nt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Et(t){return Nt(customElements.get(t))}function zt(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof f){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function Pt(t,e,i={}){if(t){if(Et(t)){console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`)}}e=zt(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}else{Mt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}}function Ft(){if(window.Vaadin&&window.Vaadin.styleModules){return window.Vaadin.styleModules.getAllThemes()}return Mt}function Ot(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function It(t=""){let e=0;if(t.startsWith("lumo-")||t.startsWith("material-")){e=1}else if(t.startsWith("vaadin-")){e=2}return e}function Bt(t){const e=[];if(t.include){[].concat(t.include).forEach((t=>{const i=Ft().find((e=>e.moduleId===t));if(i){e.push(...Bt(i),...i.styles)}else{console.warn(`Included moduleId ${t} not found in style registry`)}}),t.styles)}return e}function Rt(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n");e.content.appendChild(i)}function jt(t){const e=`${t}-default-theme`;const i=Ft().filter((i=>i.moduleId!==e&&Ot(i.themeFor,t))).map((t=>({...t,styles:[...Bt(t),...t.styles],includePriority:It(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));if(i.length>0){return i}return Ft().filter((t=>t.moduleId===e))}const Wt=t=>class e extends(St(t)){static finalize(){super.finalize();if(this.elementStyles){return}const t=this.prototype._template;if(!t||Nt(this)){return}Rt(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);const e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...jt(this.is)];const i=this.__themes.flatMap((t=>t.styles));return i.filter(((t,e)=>e===i.lastIndexOf(t)))}};Pt("vaadin-input-container",m`
416
+ `;_t("",It,{moduleId:"lumo-typography"});Et("typography-props",Bt);_t("vaadin-input-container",m`
422
417
  :host {
423
418
  background-color: var(--lumo-contrast-10pct);
424
419
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -603,7 +598,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
603
598
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
604
599
  Code distributed by Google as part of the polymer project is also
605
600
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
606
- */let Lt=/(url\()([^)]*)(\))/g;let $t=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;let Ut;let Ht;function Gt(t,e){if(t&&$t.test(t)){return t}if(t==="//"){return t}if(Ut===undefined){Ut=false;try{const t=new URL("b","http://a");t.pathname="c%20d";Ut=t.href==="http://a/c%20d"}catch(t){}}if(!e){e=document.baseURI||window.location.href}if(Ut){try{return new URL(t,e).href}catch(e){return t}}if(!Ht){Ht=document.implementation.createHTMLDocument("temp");Ht.base=Ht.createElement("base");Ht.head.appendChild(Ht.base);Ht.anchor=Ht.createElement("a");Ht.body.appendChild(Ht.anchor)}Ht.base.href=e;Ht.anchor.href=t;return Ht.anchor.href||t}function qt(t,e){return t.replace(Lt,(function(t,i,s,o){return i+"'"+Gt(s.replace(/["']/g,""),e)+"'"+o}))}function Yt(t){return t.substring(0,t.lastIndexOf("/")+1)}
601
+ */let Rt=/(url\()([^)]*)(\))/g;let jt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;let Wt;let Lt;function Ut(t,e){if(t&&jt.test(t)){return t}if(t==="//"){return t}if(Wt===undefined){Wt=false;try{const t=new URL("b","http://a");t.pathname="c%20d";Wt=t.href==="http://a/c%20d"}catch(t){}}if(!e){e=document.baseURI||window.location.href}if(Wt){try{return new URL(t,e).href}catch(e){return t}}if(!Lt){Lt=document.implementation.createHTMLDocument("temp");Lt.base=Lt.createElement("base");Lt.head.appendChild(Lt.base);Lt.anchor=Lt.createElement("a");Lt.body.appendChild(Lt.anchor)}Lt.base.href=e;Lt.anchor.href=t;return Lt.anchor.href||t}function Ht(t,e){return t.replace(Rt,(function(t,i,s,r){return i+"'"+Ut(s.replace(/["']/g,""),e)+"'"+r}))}function Gt(t){return t.substring(0,t.lastIndexOf("/")+1)}
607
602
  /**
608
603
  @license
609
604
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -612,7 +607,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
612
607
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
613
608
  Code distributed by Google as part of the polymer project is also
614
609
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
615
- */const Vt=!window.ShadyDOM||!window.ShadyDOM.inUse;const Jt=Vt&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");e.attachShadow({mode:"open"});e.shadowRoot.adoptedStyleSheets=[t];return e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return false}})();let Kt=window.Polymer&&window.Polymer.rootPath||Yt(document.baseURI||window.location.href);let Zt=window.Polymer&&window.Polymer.sanitizeDOMValue||undefined;let Qt=window.Polymer&&window.Polymer.strictTemplatePolicy||false;let Xt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||false;let te=window.Polymer&&window.Polymer.legacyOptimizations||false;let ee=window.Polymer&&window.Polymer.legacyWarnings||false;let ie=window.Polymer&&window.Polymer.syncInitialRender||false;let se=window.Polymer&&window.Polymer.legacyUndefined||false;let oe=window.Polymer&&window.Polymer.orderedComputed||false;let re=window.Polymer&&window.Polymer.removeNestedTemplates||false;let ne=window.Polymer&&window.Polymer.fastDomIf||false;let ae=window.Polymer&&window.Polymer.suppressTemplateNotifications||false;let le=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||false;
610
+ */const $t=!window.ShadyDOM||!window.ShadyDOM.inUse;const qt=$t&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");e.attachShadow({mode:"open"});e.shadowRoot.adoptedStyleSheets=[t];return e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return false}})();let Yt=window.Polymer&&window.Polymer.rootPath||Gt(document.baseURI||window.location.href);let Vt=window.Polymer&&window.Polymer.sanitizeDOMValue||undefined;let Jt=window.Polymer&&window.Polymer.strictTemplatePolicy||false;let Kt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||false;let Zt=window.Polymer&&window.Polymer.legacyOptimizations||false;let Qt=window.Polymer&&window.Polymer.legacyWarnings||false;let Xt=window.Polymer&&window.Polymer.syncInitialRender||false;let te=window.Polymer&&window.Polymer.legacyUndefined||false;let ee=window.Polymer&&window.Polymer.orderedComputed||false;let ie=window.Polymer&&window.Polymer.removeNestedTemplates||false;let se=window.Polymer&&window.Polymer.fastDomIf||false;let re=window.Polymer&&window.Polymer.suppressTemplateNotifications||false;let oe=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||false;
616
611
  /**
617
612
  @license
618
613
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -621,7 +616,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
621
616
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
622
617
  Code distributed by Google as part of the polymer project is also
623
618
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
624
- */let he=0;const ce=function(t){let e=t.__mixinApplications;if(!e){e=new WeakMap;t.__mixinApplications=e}let i=he++;function s(s){let o=s.__mixinSet;if(o&&o[i]){return s}let r=e;let n=r.get(s);if(!n){n=t(s);r.set(s,n);let e=Object.create(n.__mixinSet||o||null);e[i]=true;n.__mixinSet=e}return n}return s};
619
+ */let ne=0;const ae=function(t){let e=t.__mixinApplications;if(!e){e=new WeakMap;t.__mixinApplications=e}let i=ne++;function s(s){let r=s.__mixinSet;if(r&&r[i]){return s}let o=e;let n=o.get(s);if(!n){n=t(s);o.set(s,n);let e=Object.create(n.__mixinSet||r||null);e[i]=true;n.__mixinSet=e}return n}return s};
625
620
  /**
626
621
  @license
627
622
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -630,7 +625,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
630
625
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
631
626
  Code distributed by Google as part of the polymer project is also
632
627
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
633
- */let ue={};let de={};function fe(t,e){ue[t]=de[t.toLowerCase()]=e}function pe(t){return ue[t]||de[t.toLowerCase()]}function me(t){if(t.querySelector("style")){console.warn("dom-module %s has style outside template",t.id)}}class be extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=pe(t);if(i&&e){return i.querySelector(e)}return i}return null}attributeChangedCallback(t,e,i,s){if(e!==i){this.register()}}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;const e=Gt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Yt(e)}return this.__assetpath}register(t){t=t||this.id;if(t){if(Qt&&pe(t)!==undefined){fe(t,null);throw new Error(`strictTemplatePolicy: dom-module ${t} re-registered`)}this.id=t;fe(t,this);me(this)}}}be.prototype["modules"]=ue;customElements.define("dom-module",be);
628
+ */let le={};let he={};function ce(t,e){le[t]=he[t.toLowerCase()]=e}function ue(t){return le[t]||he[t.toLowerCase()]}function de(t){if(t.querySelector("style")){console.warn("dom-module %s has style outside template",t.id)}}class fe extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ue(t);if(i&&e){return i.querySelector(e)}return i}return null}attributeChangedCallback(t,e,i,s){if(e!==i){this.register()}}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;const e=Ut(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Gt(e)}return this.__assetpath}register(t){t=t||this.id;if(t){if(Jt&&ue(t)!==undefined){ce(t,null);throw new Error(`strictTemplatePolicy: dom-module ${t} re-registered`)}this.id=t;ce(t,this);de(this)}}}fe.prototype["modules"]=le;customElements.define("dom-module",fe);
634
629
  /**
635
630
  @license
636
631
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -639,7 +634,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
639
634
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
640
635
  Code distributed by Google as part of the polymer project is also
641
636
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
642
- */const ve="link[rel=import][type~=css]";const ge="include";const ye="shady-unscoped";function we(t){return be.import(t)}function xe(t){let e=t.body?t.body:t;const i=qt(e.textContent,t.baseURI);const s=document.createElement("style");s.textContent=i;return s}function _e(t){const e=t.trim().split(/\s+/);const i=[];for(let t=0;t<e.length;t++){i.push(...ke(e[t]))}return i}function ke(t){const e=we(t);if(!e){console.warn("Could not find style data in module named",t);return[]}if(e._styles===undefined){const t=[];t.push(...De(e));const i=e.querySelector("template");if(i){t.push(...Ae(i,e.assetpath))}e._styles=t}return e._styles}function Ae(t,e){if(!t._styles){const i=[];const s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let o=s[t];let r=o.getAttribute(ge);if(r){i.push(..._e(r).filter((function(t,e,i){return i.indexOf(t)===e})))}if(e){o.textContent=qt(o.textContent,e)}i.push(o)}t._styles=i}return t._styles}function Ce(t){let e=we(t);return e?De(e):[]}function De(t){const e=[];const i=t.querySelectorAll(ve);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import;const i=s.hasAttribute(ye);if(i&&!t._unscopedStyle){const e=xe(t);e.setAttribute(ye,"");t._unscopedStyle=e}else if(!t._style){t._style=xe(t)}e.push(i?t._unscopedStyle:t._style)}}return e}
637
+ */const pe="link[rel=import][type~=css]";const me="include";const ve="shady-unscoped";function be(t){return fe.import(t)}function ge(t){let e=t.body?t.body:t;const i=Ht(e.textContent,t.baseURI);const s=document.createElement("style");s.textContent=i;return s}function ye(t){const e=t.trim().split(/\s+/);const i=[];for(let t=0;t<e.length;t++){i.push(...we(e[t]))}return i}function we(t){const e=be(t);if(!e){console.warn("Could not find style data in module named",t);return[]}if(e._styles===undefined){const t=[];t.push(...ke(e));const i=e.querySelector("template");if(i){t.push(...xe(i,e.assetpath))}e._styles=t}return e._styles}function xe(t,e){if(!t._styles){const i=[];const s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let r=s[t];let o=r.getAttribute(me);if(o){i.push(...ye(o).filter((function(t,e,i){return i.indexOf(t)===e})))}if(e){r.textContent=Ht(r.textContent,e)}i.push(r)}t._styles=i}return t._styles}function _e(t){let e=be(t);return e?ke(e):[]}function ke(t){const e=[];const i=t.querySelectorAll(pe);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import;const i=s.hasAttribute(ve);if(i&&!t._unscopedStyle){const e=ge(t);e.setAttribute(ve,"");t._unscopedStyle=e}else if(!t._style){t._style=ge(t)}e.push(i?t._unscopedStyle:t._style)}}return e}
643
638
  /**
644
639
  @license
645
640
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -648,7 +643,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
648
643
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
649
644
  Code distributed by Google as part of the polymer project is also
650
645
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
651
- */const Te=window["ShadyDOM"]&&window["ShadyDOM"]["noPatch"]&&window["ShadyDOM"]["wrap"]?window["ShadyDOM"]["wrap"]:window["ShadyDOM"]?t=>ShadyDOM["patch"](t):t=>t;
646
+ */const Ae=window["ShadyDOM"]&&window["ShadyDOM"]["noPatch"]&&window["ShadyDOM"]["wrap"]?window["ShadyDOM"]["wrap"]:window["ShadyDOM"]?t=>ShadyDOM["patch"](t):t=>t;
652
647
  /**
653
648
  @license
654
649
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -657,7 +652,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
657
652
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
658
653
  Code distributed by Google as part of the polymer project is also
659
654
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
660
- */function Se(t){return t.indexOf(".")>=0}function Me(t){let e=t.indexOf(".");if(e===-1){return t}return t.slice(0,e)}function Ne(t,e){return t.indexOf(e+".")===0}function Ee(t,e){return e.indexOf(t+".")===0}function ze(t,e,i){return e+i.slice(t.length)}function Pe(t,e){return t===e||Ne(t,e)||Ee(t,e)}function Fe(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++){e.push(s[t])}}return e.join(".")}else{return t}}function Oe(t){if(Array.isArray(t)){return Fe(t).split(".")}return t.toString().split(".")}function Ie(t,e,i){let s=t;let o=Oe(e);for(let t=0;t<o.length;t++){if(!s){return}let e=o[t];s=s[e]}if(i){i.path=o.join(".")}return s}function Be(t,e,i){let s=t;let o=Oe(e);let r=o[o.length-1];if(o.length>1){for(let t=0;t<o.length-1;t++){let e=o[t];s=s[e];if(!s){return}}s[r]=i}else{s[e]=i}return o.join(".")}
655
+ */function Ce(t){return t.indexOf(".")>=0}function De(t){let e=t.indexOf(".");if(e===-1){return t}return t.slice(0,e)}function Te(t,e){return t.indexOf(e+".")===0}function Se(t,e){return e.indexOf(t+".")===0}function Me(t,e,i){return e+i.slice(t.length)}function ze(t,e){return t===e||Te(t,e)||Se(t,e)}function Ee(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++){e.push(s[t])}}return e.join(".")}else{return t}}function Pe(t){if(Array.isArray(t)){return Ee(t).split(".")}return t.toString().split(".")}function Fe(t,e,i){let s=t;let r=Pe(e);for(let t=0;t<r.length;t++){if(!s){return}let e=r[t];s=s[e]}if(i){i.path=r.join(".")}return s}function Ne(t,e,i){let s=t;let r=Pe(e);let o=r[r.length-1];if(r.length>1){for(let t=0;t<r.length-1;t++){let e=r[t];s=s[e];if(!s){return}}s[o]=i}else{s[e]=i}return r.join(".")}
661
656
  /**
662
657
  @license
663
658
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -666,7 +661,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
666
661
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
667
662
  Code distributed by Google as part of the polymer project is also
668
663
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
669
- */const Re={};const je=/-[a-z]/g;const We=/([A-Z])/g;function Le(t){return Re[t]||(Re[t]=t.indexOf("-")<0?t:t.replace(je,(t=>t[1].toUpperCase())))}function $e(t){return Re[t]||(Re[t]=t.replace(We,"-$1").toLowerCase())}
664
+ */const Oe={};const Be=/-[a-z]/g;const Ie=/([A-Z])/g;function Re(t){return Oe[t]||(Oe[t]=t.indexOf("-")<0?t:t.replace(Be,(t=>t[1].toUpperCase())))}function je(t){return Oe[t]||(Oe[t]=t.replace(Ie,"-$1").toLowerCase())}
670
665
  /**
671
666
  @license
672
667
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -675,7 +670,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
675
670
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
676
671
  Code distributed by Google as part of the polymer project is also
677
672
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
678
- */let Ue=0;let He=0;let Ge=[];let qe=0;let Ye=false;let Ve=document.createTextNode("");new window.MutationObserver(Je).observe(Ve,{characterData:true});function Je(){Ye=false;const t=Ge.length;for(let e=0;e<t;e++){let t=Ge[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}Ge.splice(0,t);He+=t}const Ke={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const Ze={run(t){if(!Ye){Ye=true;Ve.textContent=qe++}Ge.push(t);return Ue++},cancel(t){const e=t-He;if(e>=0){if(!Ge[e]){throw new Error("invalid async handle: "+t)}Ge[e]=null}}};
673
+ */let We=0;let Le=0;let Ue=[];let He=0;let Ge=false;let $e=document.createTextNode("");new window.MutationObserver(qe).observe($e,{characterData:true});function qe(){Ge=false;const t=Ue.length;for(let e=0;e<t;e++){let t=Ue[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}Ue.splice(0,t);Le+=t}const Ye={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const Ve={run(t){if(!Ge){Ge=true;$e.textContent=He++}Ue.push(t);return We++},cancel(t){const e=t-Le;if(e>=0){if(!Ue[e]){throw new Error("invalid async handle: "+t)}Ue[e]=null}}};
679
674
  /**
680
675
  @license
681
676
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -684,7 +679,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
684
679
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
685
680
  Code distributed by Google as part of the polymer project is also
686
681
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
687
- */const Qe=Ze;const Xe=ce((t=>{class e extends t{static createProperties(t){const e=this.prototype;for(let i in t){if(!(i in e)){e._createPropertyAccessor(i)}}}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t);if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))){this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)}if(!this.__dataHasAccessor[t]){this.__dataHasAccessor[t]=true;this._definePropertyAccessor(t,e)}}_addPropertyToAttributeMap(t){if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))){this.__dataAttributes=Object.assign({},this.__dataAttributes)}let e=this.__dataAttributes[t];if(!e){e=this.constructor.attributeNameForProperty(t);this.__dataAttributes[e]=t}return e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}})}constructor(){super();this.__dataEnabled=false;this.__dataReady=false;this.__dataInvalid=false;this.__data={};this.__dataPending=null;this.__dataOld=null;this.__dataInstanceProps=null;this.__dataCounter=0;this.__serializing=false;this._initializeProperties()}ready(){this.__dataReady=true;this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor){if(this.hasOwnProperty(t)){this.__dataInstanceProps=this.__dataInstanceProps||{};this.__dataInstanceProps[t]=this[t];delete this[t]}}}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){if(this._setPendingProperty(t,e)){this._invalidateProperties()}}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t];let o=this._shouldPropertyChange(t,e,s);if(o){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(this.__dataOld&&!(t in this.__dataOld)){this.__dataOld[t]=s}this.__data[t]=e;this.__dataPending[t]=e}return o}_isPropertyPending(t){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){if(!this.__dataInvalid&&this.__dataReady){this.__dataInvalid=true;Qe.run((()=>{if(this.__dataInvalid){this.__dataInvalid=false;this._flushProperties()}}))}}_enableProperties(){if(!this.__dataEnabled){this.__dataEnabled=true;if(this.__dataInstanceProps){this._initializeInstanceProperties(this.__dataInstanceProps);this.__dataInstanceProps=null}this.ready()}}_flushProperties(){this.__dataCounter++;const t=this.__data;const e=this.__dataPending;const i=this.__dataOld;if(this._shouldPropertiesChange(t,e,i)){this.__dataPending=null;this.__dataOld=null;this._propertiesChanged(t,e,i)}this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i===i||e===e)}attributeChangedCallback(t,e,i,s){if(e!==i){this._attributeToProperty(t,i)}if(super.attributeChangedCallback){super.attributeChangedCallback(t,e,i,s)}}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes;const o=s&&s[t]||t;this[o]=this._deserializeValue(e,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(t,e,i){this.__serializing=true;i=arguments.length<3?this[t]:i;this._valueToNodeAttribute(this,i,e||this.constructor.attributeNameForProperty(t));this.__serializing=false}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);if(i==="class"||i==="name"||i==="slot"){t=Te(t)}if(s===undefined){t.removeAttribute(i)}else{t.setAttribute(i,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}}_serializeValue(t){switch(typeof t){case"boolean":return t?"":undefined;default:return t!=null?t.toString():undefined}}_deserializeValue(t,e){switch(e){case Boolean:return t!==null;case Number:return Number(t);default:return t}}}return e}));
682
+ */const Je=Ve;const Ke=ae((t=>{class e extends t{static createProperties(t){const e=this.prototype;for(let i in t){if(!(i in e)){e._createPropertyAccessor(i)}}}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t);if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))){this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)}if(!this.__dataHasAccessor[t]){this.__dataHasAccessor[t]=true;this._definePropertyAccessor(t,e)}}_addPropertyToAttributeMap(t){if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))){this.__dataAttributes=Object.assign({},this.__dataAttributes)}let e=this.__dataAttributes[t];if(!e){e=this.constructor.attributeNameForProperty(t);this.__dataAttributes[e]=t}return e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}})}constructor(){super();this.__dataEnabled=false;this.__dataReady=false;this.__dataInvalid=false;this.__data={};this.__dataPending=null;this.__dataOld=null;this.__dataInstanceProps=null;this.__dataCounter=0;this.__serializing=false;this._initializeProperties()}ready(){this.__dataReady=true;this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor){if(this.hasOwnProperty(t)){this.__dataInstanceProps=this.__dataInstanceProps||{};this.__dataInstanceProps[t]=this[t];delete this[t]}}}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){if(this._setPendingProperty(t,e)){this._invalidateProperties()}}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t];let r=this._shouldPropertyChange(t,e,s);if(r){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(this.__dataOld&&!(t in this.__dataOld)){this.__dataOld[t]=s}this.__data[t]=e;this.__dataPending[t]=e}return r}_isPropertyPending(t){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){if(!this.__dataInvalid&&this.__dataReady){this.__dataInvalid=true;Je.run((()=>{if(this.__dataInvalid){this.__dataInvalid=false;this._flushProperties()}}))}}_enableProperties(){if(!this.__dataEnabled){this.__dataEnabled=true;if(this.__dataInstanceProps){this._initializeInstanceProperties(this.__dataInstanceProps);this.__dataInstanceProps=null}this.ready()}}_flushProperties(){this.__dataCounter++;const t=this.__data;const e=this.__dataPending;const i=this.__dataOld;if(this._shouldPropertiesChange(t,e,i)){this.__dataPending=null;this.__dataOld=null;this._propertiesChanged(t,e,i)}this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i===i||e===e)}attributeChangedCallback(t,e,i,s){if(e!==i){this._attributeToProperty(t,i)}if(super.attributeChangedCallback){super.attributeChangedCallback(t,e,i,s)}}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes;const r=s&&s[t]||t;this[r]=this._deserializeValue(e,i||this.constructor.typeForProperty(r))}}_propertyToAttribute(t,e,i){this.__serializing=true;i=arguments.length<3?this[t]:i;this._valueToNodeAttribute(this,i,e||this.constructor.attributeNameForProperty(t));this.__serializing=false}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);if(i==="class"||i==="name"||i==="slot"){t=Ae(t)}if(s===undefined){t.removeAttribute(i)}else{t.setAttribute(i,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}}_serializeValue(t){switch(typeof t){case"boolean":return t?"":undefined;default:return t!=null?t.toString():undefined}}_deserializeValue(t,e){switch(e){case Boolean:return t!==null;case Number:return Number(t);default:return t}}}return e}));
688
683
  /**
689
684
  @license
690
685
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -693,7 +688,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
693
688
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
694
689
  Code distributed by Google as part of the polymer project is also
695
690
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
696
- */const ti={};let ei=HTMLElement.prototype;while(ei){let t=Object.getOwnPropertyNames(ei);for(let e=0;e<t.length;e++){ti[t[e]]=true}ei=Object.getPrototypeOf(ei)}const ii=(()=>{if(!window.trustedTypes){return()=>false}return t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)})();function si(t,e){if(!ti[e]){let i=t[e];if(i!==undefined){if(t.__data){t._setPendingProperty(e,i)}else{if(!t.__dataProto){t.__dataProto={}}else if(!t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))){t.__dataProto=Object.create(t.__dataProto)}t.__dataProto[e]=i}}}}const oi=ce((t=>{const e=Xe(t);class i extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++){this.prototype._createPropertyAccessor(Le(t[e]))}}static attributeNameForProperty(t){return $e(t)}_initializeProperties(){if(this.__dataProto){this._initializeProtoProperties(this.__dataProto);this.__dataProto=null}super._initializeProperties()}_initializeProtoProperties(t){for(let e in t){this._setProperty(e,t[e])}}_ensureAttribute(t,e){const i=this;if(!i.hasAttribute(t)){this._valueToNodeAttribute(i,e,t)}}_serializeValue(t){switch(typeof t){case"object":if(t instanceof Date){return t.toString()}else if(t){if(ii(t)){return t}try{return JSON.stringify(t)}catch(t){return""}}default:return super._serializeValue(t)}}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null;console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t);i=new Date(i);break;default:i=super._deserializeValue(t,e);break}return i}_definePropertyAccessor(t,e){si(this,t);super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}return i}));
691
+ */const Ze={};let Qe=HTMLElement.prototype;while(Qe){let t=Object.getOwnPropertyNames(Qe);for(let e=0;e<t.length;e++){Ze[t[e]]=true}Qe=Object.getPrototypeOf(Qe)}const Xe=(()=>{if(!window.trustedTypes){return()=>false}return t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)})();function ti(t,e){if(!Ze[e]){let i=t[e];if(i!==undefined){if(t.__data){t._setPendingProperty(e,i)}else{if(!t.__dataProto){t.__dataProto={}}else if(!t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))){t.__dataProto=Object.create(t.__dataProto)}t.__dataProto[e]=i}}}}const ei=ae((t=>{const e=Ke(t);class i extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++){this.prototype._createPropertyAccessor(Re(t[e]))}}static attributeNameForProperty(t){return je(t)}_initializeProperties(){if(this.__dataProto){this._initializeProtoProperties(this.__dataProto);this.__dataProto=null}super._initializeProperties()}_initializeProtoProperties(t){for(let e in t){this._setProperty(e,t[e])}}_ensureAttribute(t,e){const i=this;if(!i.hasAttribute(t)){this._valueToNodeAttribute(i,e,t)}}_serializeValue(t){switch(typeof t){case"object":if(t instanceof Date){return t.toString()}else if(t){if(Xe(t)){return t}try{return JSON.stringify(t)}catch(t){return""}}default:return super._serializeValue(t)}}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null;console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t);i=new Date(i);break;default:i=super._deserializeValue(t,e);break}return i}_definePropertyAccessor(t,e){ti(this,t);super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}return i}));
697
692
  /**
698
693
  @license
699
694
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -702,7 +697,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
702
697
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
703
698
  Code distributed by Google as part of the polymer project is also
704
699
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
705
- */const ri={"dom-if":true,"dom-repeat":true};let ni=false;let ai=false;function li(){if(!ni){ni=true;const t=document.createElement("textarea");t.placeholder="a";ai=t.placeholder===t.textContent}return ai}function hi(t){if(li()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent){t.textContent=null}}const ci=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const o=i.getAttribute(s);if(t&&s.startsWith("on-")){e.setAttribute(s,t.createScript(o,s));return}e.setAttribute(s,o)}})();function ui(t){let e=t.getAttribute("is");if(e&&ri[e]){let i=t;i.removeAttribute("is");t=i.ownerDocument.createElement(e);i.parentNode.replaceChild(t,i);t.appendChild(i);while(i.attributes.length){const{name:e}=i.attributes[0];ci(t,i,e);i.removeAttribute(e)}}return t}function di(t,e){let i=e.parentInfo&&di(t,e.parentInfo);if(i){for(let t=i.firstChild,s=0;t;t=t.nextSibling){if(e.parentIndex===s++){return t}}}else{return t}}function fi(t,e,i,s){if(s.id){e[s.id]=i}}function pi(t,e,i){if(i.events&&i.events.length){for(let s=0,o=i.events,r;s<o.length&&(r=o[s]);s++){t._addMethodEventListenerToNode(e,r.name,r.value,t)}}}function mi(t,e,i,s){if(i.templateInfo){e._templateInfo=i.templateInfo;e._parentTemplateInfo=s}}function bi(t,e,i){t=t._methodHost||t;let s=function(e){if(t[i]){t[i](e,e.detail)}else{console.warn("listener method `"+i+"` not defined")}};return s}const vi=ce((t=>{class e extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[];i.nestedTemplate=Boolean(e);i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace");this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let s=false;let o=t;if(o.localName=="template"&&!o.hasAttribute("preserve-content")){s=this._parseTemplateNestedTemplate(o,e,i)||s}else if(o.localName==="slot"){e.hasInsertionPoint=true}hi(o);if(o.firstChild){this._parseTemplateChildNodes(o,e,i)}if(o.hasAttributes&&o.hasAttributes()){s=this._parseTemplateNodeAttributes(o,e,i)||s}return s||i.noted}static _parseTemplateChildNodes(t,e,i){if(t.localName==="script"||t.localName==="style"){return}for(let s=t.firstChild,o=0,r;s;s=r){if(s.localName=="template"){s=ui(s)}r=s.nextSibling;if(s.nodeType===Node.TEXT_NODE){let i=r;while(i&&i.nodeType===Node.TEXT_NODE){s.textContent+=i.textContent;r=i.nextSibling;t.removeChild(i);i=r}if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let n={parentIndex:o,parentInfo:i};if(this._parseTemplateNode(s,e,n)){n.infoIndex=e.nodeInfoList.push(n)-1}if(s.parentNode){o++}}}static _parseTemplateNestedTemplate(t,e,i){let s=t;let o=this._parseTemplate(s,e);let r=o.content=s.content.ownerDocument.createDocumentFragment();r.appendChild(s.content);i.templateInfo=o;return true}static _parseTemplateNodeAttributes(t,e,i){let s=false;let o=Array.from(t.attributes);for(let r=o.length-1,n;n=o[r];r--){s=this._parseTemplateNodeAttribute(t,e,i,n.name,n.value)||s}return s}static _parseTemplateNodeAttribute(t,e,i,s,o){if(s.slice(0,3)==="on-"){t.removeAttribute(s);i.events=i.events||[];i.events.push({name:s.slice(3),value:o});return true}else if(s==="id"){i.id=o;return true}return false}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){if(t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate){HTMLTemplateElement.decorate(t)}e=e||this.constructor._parseTemplate(t);let i=e.nodeInfoList;let s=e.content||t.content;let o=document.importNode(s,true);o.__noInsertionPoint=!e.hasInsertionPoint;let r=o.nodeList=new Array(i.length);o.$={};for(let t=0,s=i.length,n;t<s&&(n=i[t]);t++){let i=r[t]=di(o,n);fi(this,o.$,i,n);mi(this,i,n,e);pi(this,i,n)}o=o;return o}_addMethodEventListenerToNode(t,e,i,s){s=s||t;let o=bi(s,e,i);this._addEventListenerToNode(t,e,o);return o}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}return e}));
700
+ */const ii={"dom-if":true,"dom-repeat":true};let si=false;let ri=false;function oi(){if(!si){si=true;const t=document.createElement("textarea");t.placeholder="a";ri=t.placeholder===t.textContent}return ri}function ni(t){if(oi()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent){t.textContent=null}}const ai=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const r=i.getAttribute(s);if(t&&s.startsWith("on-")){e.setAttribute(s,t.createScript(r,s));return}e.setAttribute(s,r)}})();function li(t){let e=t.getAttribute("is");if(e&&ii[e]){let i=t;i.removeAttribute("is");t=i.ownerDocument.createElement(e);i.parentNode.replaceChild(t,i);t.appendChild(i);while(i.attributes.length){const{name:e}=i.attributes[0];ai(t,i,e);i.removeAttribute(e)}}return t}function hi(t,e){let i=e.parentInfo&&hi(t,e.parentInfo);if(i){for(let t=i.firstChild,s=0;t;t=t.nextSibling){if(e.parentIndex===s++){return t}}}else{return t}}function ci(t,e,i,s){if(s.id){e[s.id]=i}}function ui(t,e,i){if(i.events&&i.events.length){for(let s=0,r=i.events,o;s<r.length&&(o=r[s]);s++){t._addMethodEventListenerToNode(e,o.name,o.value,t)}}}function di(t,e,i,s){if(i.templateInfo){e._templateInfo=i.templateInfo;e._parentTemplateInfo=s}}function fi(t,e,i){t=t._methodHost||t;let s=function(e){if(t[i]){t[i](e,e.detail)}else{console.warn("listener method `"+i+"` not defined")}};return s}const pi=ae((t=>{class e extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[];i.nestedTemplate=Boolean(e);i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace");this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let s=false;let r=t;if(r.localName=="template"&&!r.hasAttribute("preserve-content")){s=this._parseTemplateNestedTemplate(r,e,i)||s}else if(r.localName==="slot"){e.hasInsertionPoint=true}ni(r);if(r.firstChild){this._parseTemplateChildNodes(r,e,i)}if(r.hasAttributes&&r.hasAttributes()){s=this._parseTemplateNodeAttributes(r,e,i)||s}return s||i.noted}static _parseTemplateChildNodes(t,e,i){if(t.localName==="script"||t.localName==="style"){return}for(let s=t.firstChild,r=0,o;s;s=o){if(s.localName=="template"){s=li(s)}o=s.nextSibling;if(s.nodeType===Node.TEXT_NODE){let i=o;while(i&&i.nodeType===Node.TEXT_NODE){s.textContent+=i.textContent;o=i.nextSibling;t.removeChild(i);i=o}if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let n={parentIndex:r,parentInfo:i};if(this._parseTemplateNode(s,e,n)){n.infoIndex=e.nodeInfoList.push(n)-1}if(s.parentNode){r++}}}static _parseTemplateNestedTemplate(t,e,i){let s=t;let r=this._parseTemplate(s,e);let o=r.content=s.content.ownerDocument.createDocumentFragment();o.appendChild(s.content);i.templateInfo=r;return true}static _parseTemplateNodeAttributes(t,e,i){let s=false;let r=Array.from(t.attributes);for(let o=r.length-1,n;n=r[o];o--){s=this._parseTemplateNodeAttribute(t,e,i,n.name,n.value)||s}return s}static _parseTemplateNodeAttribute(t,e,i,s,r){if(s.slice(0,3)==="on-"){t.removeAttribute(s);i.events=i.events||[];i.events.push({name:s.slice(3),value:r});return true}else if(s==="id"){i.id=r;return true}return false}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){if(t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate){HTMLTemplateElement.decorate(t)}e=e||this.constructor._parseTemplate(t);let i=e.nodeInfoList;let s=e.content||t.content;let r=document.importNode(s,true);r.__noInsertionPoint=!e.hasInsertionPoint;let o=r.nodeList=new Array(i.length);r.$={};for(let t=0,s=i.length,n;t<s&&(n=i[t]);t++){let i=o[t]=hi(r,n);ci(this,r.$,i,n);di(this,i,n,e);ui(this,i,n)}r=r;return r}_addMethodEventListenerToNode(t,e,i,s){s=s||t;let r=fi(s,e,i);this._addEventListenerToNode(t,e,r);return r}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}return e}));
706
701
  /**
707
702
  * @fileoverview
708
703
  * @suppress {checkPrototypalTypes}
@@ -713,7 +708,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
713
708
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
714
709
  * Google as part of the polymer project is also subject to an additional IP
715
710
  * rights grant found at http://polymer.github.io/PATENTS.txt
716
- */let gi=0;const yi=[];const wi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"};const xi="__computeInfo";const _i=/[A-Z]/;function ki(t,e,i){let s=t[e];if(!s){s=t[e]={}}else if(!t.hasOwnProperty(e)){s=t[e]=Object.create(t[e]);if(i){for(let t in s){let e=s[t];let i=s[t]=Array(e.length);for(let t=0;t<e.length;t++){i[t]=e[t]}}}}return s}function Ai(t,e,i,s,o,r){if(e){let n=false;const a=gi++;for(let l in i){let h=o?Me(l):l;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==a)&&(!o||Di(l,u.trigger))){if(u.info){u.info.lastRun=a}u.fn(t,l,i,s,u.info,o,r);n=true}}}}return n}return false}function Ci(t,e,i,s,o,r,n,a){let l=false;let h=n?Me(s):s;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==i)&&(!n||Di(s,u.trigger))){if(u.info){u.info.lastRun=i}u.fn(t,s,o,r,u.info,n,a);l=true}}}return l}function Di(t,e){if(e){let i=e.name;return i==t||!!(e.structured&&Ne(i,t))||!!(e.wildcard&&Ee(i,t))}else{return true}}function Ti(t,e,i,s,o){let r=typeof o.method==="string"?t[o.method]:o.method;let n=o.property;if(r){r.call(t,t.__data[n],s[n])}else if(!o.dynamicFn){console.warn("observer method `"+o.method+"` not defined")}}function Si(t,e,i,s,o){let r=t[wi.NOTIFY];let n;let a=gi++;for(let l in e){if(e[l]){if(r&&Ci(t,r,a,l,i,s,o)){n=true}else if(o&&Mi(t,l,i)){n=true}}}let l;if(n&&(l=t.__dataHost)&&l._invalidateProperties){l._invalidateProperties()}}function Mi(t,e,i){let s=Me(e);if(s!==e){let o=$e(s)+"-changed";Ni(t,o,i[e],e);return true}return false}function Ni(t,e,i,s){let o={value:i,queueProperty:true};if(s){o.path=s}Te(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function Ei(t,e,i,s,o,r){let n=r?Me(e):e;let a=n!=e?e:null;let l=a?Ie(t,a):t.__data[e];if(a&&l===undefined){l=i[e]}Ni(t,o.eventName,l,a)}function zi(t,e,i,s,o){let r;let n=t.detail;let a=n&&n.path;if(a){s=ze(i,s,a);r=n&&n.value}else{r=t.currentTarget[i]}r=o?!r:r;if(!e[wi.READ_ONLY]||!e[wi.READ_ONLY][s]){if(e._setPendingPropertyOrPath(s,r,true,Boolean(a))&&(!n||!n.queueProperty)){e._invalidateProperties()}}}function Pi(t,e,i,s,o){let r=t.__data[e];if(Zt){r=Zt(r,o.attrName,"attribute",t)}t._propertyToAttribute(e,o.attrName,r)}function Fi(t,e,i,s){let o=t[wi.COMPUTE];if(o){if(oe){gi++;const r=Bi(t);const n=[];for(let t in e){Ii(t,o,n,r,s)}let a;while(a=n.shift()){if(ji(t,"",e,i,a)){Ii(a.methodInfo,o,n,r,s)}}Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);t.__dataPending=null}else{let r=e;while(Ai(t,o,r,i,s)){Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);r=t.__dataPending;t.__dataPending=null}}}}const Oi=(t,e,i)=>{let s=0;let o=e.length-1;let r=-1;while(s<=o){const n=s+o>>1;const a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0){s=n+1}else if(a>0){o=n-1}else{r=n;break}}if(r<0){r=o+1}e.splice(r,0,t)};const Ii=(t,e,i,s,o)=>{const r=o?Me(t):t;const n=e[r];if(n){for(let e=0;e<n.length;e++){const r=n[e];if(r.info.lastRun!==gi&&(!o||Di(t,r.trigger))){r.info.lastRun=gi;Oi(r.info,i,s)}}}};function Bi(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[wi.COMPUTE];let{counts:s,ready:o,total:r}=Ri(t);let n;while(n=o.shift()){e.set(n,e.size);const t=i[n];if(t){t.forEach((t=>{const e=t.info.methodInfo;--r;if(--s[e]===0){o.push(e)}}))}}if(r!==0){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}function Ri(t){const e=t[xi];const i={};const s=t[wi.COMPUTE];const o=[];let r=0;for(let t in e){const s=e[t];r+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s){if(!e[t]){o.push(t)}}return{counts:i,ready:o,total:r}}function ji(t,e,i,s,o){let r=Zi(t,e,i,s,o);if(r===yi){return false}let n=o.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[n]){return t._setPendingProperty(n,r,true)}else{t[n]=r;return false}}function Wi(t,e,i){let s=t.__dataLinkedPaths;if(s){let o;for(let r in s){let n=s[r];if(Ee(r,e)){o=ze(r,n,e);t._setPendingPropertyOrPath(o,i,true,true)}else if(Ee(n,e)){o=ze(n,r,e);t._setPendingPropertyOrPath(o,i,true,true)}}}}function Li(t,e,i,s,o,r,n){i.bindings=i.bindings||[];let a={kind:s,target:o,parts:r,literal:n,isCompound:r.length!==1};i.bindings.push(a);if(qi(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||$e(o)+"-changed";a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i;$i(t,e,a,s,l)}}function $i(t,e,i,s,o){if(!s.literal){if(i.kind==="attribute"&&i.target[0]==="-"){console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character')}else{let r=s.dependencies;let n={index:o,binding:i,part:s,evaluator:t};for(let i=0;i<r.length;i++){let s=r[i];if(typeof s=="string"){s=bs(s);s.wildcard=true}t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Ui,info:n,trigger:s})}}}}function Ui(t,e,i,s,o,r,n){let a=n[o.index];let l=o.binding;let h=o.part;if(r&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=ze(h.source,l.target,e);if(a._setPendingPropertyOrPath(e,s,false,true)){t._enqueueClient(a)}}else{let n=o.evaluator._evaluateBinding(t,h,e,i,s,r);if(n!==yi){Hi(t,a,l,h,n)}}}function Hi(t,e,i,s,o){o=Gi(e,o,i,s);if(Zt){o=Zt(o,i.target,i.kind,e)}if(i.kind=="attribute"){t._valueToNodeAttribute(e,o,i.target)}else{let s=i.target;if(e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]){if(!e[wi.READ_ONLY]||!e[wi.READ_ONLY][s]){if(e._setPendingProperty(s,o)){t._enqueueClient(e)}}}else{t._setUnmanagedPropertyToNode(e,s,o)}}}function Gi(t,e,i,s){if(i.isCompound){let o=t.__dataCompoundStorage[i.target];o[s.compoundIndex]=e;e=o.join("")}if(i.kind!=="attribute"){if(i.target==="textContent"||i.target==="value"&&(t.localName==="input"||t.localName==="textarea")){e=e==undefined?"":e}}return e}function qi(t){return Boolean(t.target)&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Yi(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length){for(let e=0;e<s.length;e++){let o=s[e];let r=i[e];let n=o.bindings;if(n){for(let e=0;e<n.length;e++){let i=n[e];Vi(r,i);Ji(r,t,i)}}r.__dataHost=t}}}function Vi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={});let s=e.parts;let o=new Array(s.length);for(let t=0;t<s.length;t++){o[t]=s[t].literal}let r=e.target;i[r]=o;if(e.literal&&e.kind=="property"){if(r==="className"){t=Te(t)}t[r]=e.literal}}}function Ji(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){zi(t,e,i.target,s.source,s.negate)}))}}function Ki(t,e,i,s,o,r){r=e.static||r&&(typeof r!=="object"||r[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:r};for(let o=0,r;o<e.args.length&&(r=e.args[o]);o++){if(!r.literal){t._addPropertyEffect(r.rootProperty,i,{fn:s,info:n,trigger:r})}}if(r){t._addPropertyEffect(e.methodName,i,{fn:s,info:n})}return n}function Zi(t,e,i,s,o){let r=t._methodHost||t;let n=r[o.methodName];if(n){let s=t._marshalArgs(o.args,e,i);return s===yi?yi:n.apply(r,s)}else if(!o.dynamicFn){console.warn("method `"+o.methodName+"` not defined")}}const Qi=[];const Xi="(?:"+"[a-zA-Z_$][\\w.:$\\-*]*"+")";const ts="(?:"+"[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?"+")";const es="(?:"+"'(?:[^'\\\\]|\\\\.)*'"+")";const is="(?:"+'"(?:[^"\\\\]|\\\\.)*"'+")";const ss="(?:"+es+"|"+is+")";const os="(?:("+Xi+"|"+ts+"|"+ss+")\\s*"+")";const rs="(?:"+os+"(?:,\\s*"+os+")*"+")";const ns="(?:"+"\\(\\s*"+"(?:"+rs+"?"+")"+"\\)\\s*"+")";const as="("+Xi+"\\s*"+ns+"?"+")";const ls="(\\[\\[|{{)"+"\\s*";const hs="(?:]]|}})";const cs="(?:(!)\\s*)?";const us=ls+cs+as+hs;const ds=new RegExp(us,"g");function fs(t){let e="";for(let i=0;i<t.length;i++){let s=t[i].literal;e+=s||""}return e}function ps(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t=e[1];let i={methodName:t,static:true,args:Qi};if(e[2].trim()){let t=e[2].replace(/\\,/g,"&comma;").split(",");return ms(t,i)}else{return i}}return null}function ms(t,e){e.args=t.map((function(t){let i=bs(t);if(!i.literal){e.static=false}return i}),this);return e}function bs(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");let i={name:e,value:"",literal:false};let s=e[0];if(s==="-"){s=e[1]}if(s>="0"&&s<="9"){s="#"}switch(s){case"'":case'"':i.value=e.slice(1,-1);i.literal=true;break;case"#":i.value=Number(e);i.literal=true;break}if(!i.literal){i.rootProperty=Me(e);i.structured=Se(e);if(i.structured){i.wildcard=e.slice(-2)==".*";if(i.wildcard){i.name=e.slice(0,-2)}}}return i}function vs(t,e,i){let s=Ie(t,i);if(s===undefined){s=e[i]}return s}function gs(t,e,i,s){const o={indexSplices:s};if(se&&!t._overrideLegacyUndefined){e.splices=o}t.notifyPath(i+".splices",o);t.notifyPath(i+".length",e.length);if(se&&!t._overrideLegacyUndefined){o.indexSplices=[]}}function ys(t,e,i,s,o,r){gs(t,e,i,[{index:s,addedCount:o,removed:r,object:e,type:"splice"}])}function ws(t){return t[0].toUpperCase()+t.substring(1)}const xs=ce((t=>{const e=vi(oi(t));class i extends e{constructor(){super();this.__isPropertyEffectsClient=true}get PROPERTY_EFFECT_TYPES(){return wi}_initializeProperties(){super._initializeProperties();this._registerHost();this.__dataClientsReady=false;this.__dataPendingClients=null;this.__dataToNotify=null;this.__dataLinkedPaths=null;this.__dataHasPaths=false;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=false}_registerHost(){if(_s.length){let t=_s[_s.length-1];t._enqueueClient(this);this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t);this.__dataPending=Object.create(t);this.__dataOld={}}_initializeInstanceProperties(t){let e=this[wi.READ_ONLY];for(let i in t){if(!e||!e[i]){this.__dataPending=this.__dataPending||{};this.__dataOld=this.__dataOld||{};this.__data[i]=this.__dataPending[i]=t[i]}}}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==wi.READ_ONLY);let s=ki(this,e,true)[t];if(!s){s=this[e][t]=[]}s.push(i)}_removePropertyEffect(t,e,i){let s=ki(this,e,true)[t];let o=s.indexOf(i);if(o>=0){s.splice(o,1)}}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,wi.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,wi.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,wi.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,wi.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Me(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Ie(this,t);t=Be(this,t,e);if(!t||!super._shouldPropertyChange(t,e,i)){return false}}this.__dataHasPaths=true;if(this._setPendingProperty(t,e,i)){Wi(this,t,e);return true}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t]){return this._setPendingProperty(t,e,i)}else{this[t]=e}}return false}_setUnmanagedPropertyToNode(t,e,i){if(i!==t[e]||typeof i=="object"){if(e==="className"){t=Te(t)}t[e]=i}}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Se(t);let o=s?this.__dataTemp:this.__data;if(this._shouldPropertyChange(t,e,o[t])){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(!(t in this.__dataOld)){this.__dataOld[t]=this.__data[t]}if(s){this.__dataTemp[t]=e}else{this.__data[t]=e}this.__dataPending[t]=e;if(s||this[wi.NOTIFY]&&this[wi.NOTIFY][t]){this.__dataToNotify=this.__dataToNotify||{};this.__dataToNotify[t]=i}return true}return false}_setProperty(t,e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}_invalidateProperties(){if(this.__dataReady){this._flushProperties()}}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[];if(t!==this){this.__dataPendingClients.push(t)}}_flushClients(){if(!this.__dataClientsReady){this.__dataClientsReady=true;this._readyClients();this.__dataReady=true}else{this.__enableOrFlushClients()}}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];if(!i.__dataEnabled){i._enableProperties()}else if(i.__dataPending){i._flushProperties()}}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t){if(e||!this[wi.READ_ONLY]||!this[wi.READ_ONLY][i]){this._setPendingPropertyOrPath(i,t[i],true)}}this._invalidateProperties()}ready(){this._flushProperties();if(!this.__dataClientsReady){this._flushClients()}if(this.__dataPending){this._flushProperties()}}_propertiesChanged(t,e,i){let s=this.__dataHasPaths;this.__dataHasPaths=false;let o;Fi(this,e,i,s);o=this.__dataToNotify;this.__dataToNotify=null;this._propagatePropertyChanges(e,i,s);this._flushClients();Ai(this,this[wi.REFLECT],e,i,s);Ai(this,this[wi.OBSERVE],e,i,s);if(o){Si(this,o,e,i,s)}if(this.__dataCounter==1){this.__dataTemp={}}}_propagatePropertyChanges(t,e,i){if(this[wi.PROPAGATE]){Ai(this,this[wi.PROPAGATE],t,e,i)}if(this.__templateInfo){this._runEffectsForTemplate(this.__templateInfo,t,e,i)}}_runEffectsForTemplate(t,e,i,s){const o=(e,s)=>{Ai(this,t.propertyEffects,e,i,s,t.nodeList);for(let o=t.firstChild;o;o=o.nextSibling){this._runEffectsForTemplate(o,e,i,s)}};if(t.runEffects){t.runEffects(o,e,s)}else{o(e,s)}}linkPaths(t,e){t=Fe(t);e=Fe(e);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Fe(t);if(this.__dataLinkedPaths){delete this.__dataLinkedPaths[t]}}notifySplices(t,e){let i={path:""};let s=Ie(this,t,i);gs(this,s,i.path,e)}get(t,e){return Ie(e||this,t)}set(t,e,i){if(i){Be(i,t,e)}else{if(!this[wi.READ_ONLY]||!this[wi.READ_ONLY][t]){if(this._setPendingPropertyOrPath(t,e,true)){this._invalidateProperties()}}}}push(t,...e){let i={path:""};let s=Ie(this,t,i);let o=s.length;let r=s.push(...e);if(e.length){ys(this,s,i.path,o,e.length,[])}return r}pop(t){let e={path:""};let i=Ie(this,t,e);let s=Boolean(i.length);let o=i.pop();if(s){ys(this,i,e.path,i.length,0,[o])}return o}splice(t,e,i,...s){let o={path:""};let r=Ie(this,t,o);if(e<0){e=r.length-Math.floor(-e)}else if(e){e=Math.floor(e)}let n;if(arguments.length===2){n=r.splice(e)}else{n=r.splice(e,i,...s)}if(s.length||n.length){ys(this,r,o.path,e,s.length,n)}return n}shift(t){let e={path:""};let i=Ie(this,t,e);let s=Boolean(i.length);let o=i.shift();if(s){ys(this,i,e.path,0,0,[o])}return o}unshift(t,...e){let i={path:""};let s=Ie(this,t,i);let o=s.unshift(...e);if(e.length){ys(this,s,i.path,0,e.length,[])}return o}notifyPath(t,e){let i;if(arguments.length==1){let s={path:""};e=Ie(this,t,s);i=s.path}else if(Array.isArray(t)){i=Fe(t)}else{i=t}if(this._setPendingPropertyOrPath(i,e,true,true)){this._invalidateProperties()}}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,wi.READ_ONLY);if(e){this["_set"+ws(t)]=function(e){this._setProperty(t,e)}}}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,wi.OBSERVE,{fn:Ti,info:s,trigger:{name:t}});if(i){this._addPropertyEffect(e,wi.OBSERVE,{fn:Ti,info:s,trigger:{name:e}})}}_createMethodObserver(t,e){let i=ps(t);if(!i){throw new Error("Malformed observer expression '"+t+"'")}Ki(this,i,wi.OBSERVE,Zi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,wi.NOTIFY,{fn:Ei,info:{eventName:$e(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);if(e[0]==="-"){console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.')}else{this._addPropertyEffect(t,wi.REFLECT,{fn:Pi,info:{attrName:e}})}}_createComputedProperty(t,e,i){let s=ps(e);if(!s){throw new Error("Malformed computed expression '"+e+"'")}const o=Ki(this,s,wi.COMPUTE,ji,t,i);ki(this,xi)[t]=o}_marshalArgs(t,e,i){const s=this.__data;const o=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[r];if(!c){if(l){const t=Ee(n,e);const o=vs(s,i,t?e:n);h={path:t?e:n,value:o,base:t?Ie(s,n):o}}else{h=a?vs(s,i,n):s[n]}}if(se&&!this._overrideLegacyUndefined&&h===undefined&&t.length>1){return yi}o[r]=h}return o}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t);let s=this.__preBoundTemplateInfo==i;if(!s){for(let t in i.propertyEffects){this._createPropertyAccessor(t)}}if(e){i=Object.create(i);i.wasPreBound=s;if(!this.__templateInfo){this.__templateInfo=i}else{const e=t._parentTemplateInfo||this.__templateInfo;const s=e.lastChild;i.parent=e;e.lastChild=i;i.previousSibling=s;if(s){s.nextSibling=i}else{e.firstChild=i}}}else{this.__preBoundTemplateInfo=i}return i}static _addTemplatePropertyEffect(t,e,i){let s=t.hostProps=t.hostProps||{};s[e]=true;let o=t.propertyEffects=t.propertyEffects||{};let r=o[e]=o[e]||[];r.push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,true);_s.push(this);let i=super._stampTemplate(t,e);_s.pop();e.nodeList=i.nodeList;if(!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling){t.push(e)}}i.templateInfo=e;Yi(this,e);if(this.__dataClientsReady){this._runEffectsForTemplate(e,this.__data,null,false);this._flushClients()}return i}_removeBoundDom(t){const e=t.templateInfo;const{previousSibling:i,nextSibling:s,parent:o}=e;if(i){i.nextSibling=s}else if(o){o.firstChild=s}if(s){s.previousSibling=i}else if(o){o.lastChild=i}e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];Te(Te(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let o=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);if(e){t.textContent=fs(e)||" ";Li(this,i,s,"text","textContent",e);o=true}}return o}static _parseTemplateNodeAttribute(t,i,s,o,r){let n=this._parseBindings(r,i);if(n){let e=o;let r="property";if(_i.test(o)){r="attribute"}else if(o[o.length-1]=="$"){o=o.slice(0,-1);r="attribute"}let a=fs(n);if(a&&r=="attribute"){if(o=="class"&&t.hasAttribute("class")){a+=" "+t.getAttribute(o)}t.setAttribute(o,a)}if(r=="attribute"&&e=="disable-upgrade$"){t.setAttribute(o,"")}if(t.localName==="input"&&e==="value"){t.setAttribute(e,"")}t.removeAttribute(e);if(r==="property"){o=Le(o)}Li(this,i,s,r,o,n,a);return true}else{return e._parseTemplateNodeAttribute.call(this,t,i,s,o,r)}}static _parseTemplateNestedTemplate(t,i,s){let o=e._parseTemplateNestedTemplate.call(this,t,i,s);const r=t.parentNode;const n=s.templateInfo;const a=r.localName==="dom-if";const l=r.localName==="dom-repeat";if(re&&(a||l)){r.removeChild(t);s=s.parentInfo;s.templateInfo=n;s.noted=true;o=false}let h=n.hostProps;if(ne&&a){if(h){i.hostProps=Object.assign(i.hostProps||{},h);if(!re){s.parentInfo.noted=true}}}else{let t="{";for(let e in h){let o=[{mode:t,source:e,dependencies:[e],hostProp:true}];Li(this,i,s,"property","_host_"+e,o)}}return o}static _parseBindings(t,e){let i=[];let s=0;let o;while((o=ds.exec(t))!==null){if(o.index>s){i.push({literal:t.slice(s,o.index)})}let r=o[1][0];let n=Boolean(o[2]);let a=o[3].trim();let l=false,h="",c=-1;if(r=="{"&&(c=a.indexOf("::"))>0){h=a.substring(c+2);a=a.substring(0,c);l=true}let u=ps(a);let d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];if(!i.literal){d.push(i)}}let s=e.dynamicFns;if(s&&s[i]||u.static){d.push(i);u.dynamicFn=true}}else{d.push(a)}i.push({source:a,mode:r,negate:n,customEvent:l,signature:u,dependencies:d,event:h});s=ds.lastIndex}if(s&&s<t.length){let e=t.substring(s);if(e){i.push({literal:e})}}if(i.length){return i}else{return null}}static _evaluateBinding(t,e,i,s,o,r){let n;if(e.signature){n=Zi(t,i,s,o,e.signature)}else if(i!=e.source){n=Ie(t,e.source)}else{if(r&&Se(i)){n=Ie(t,i)}else{n=t.__data[i]}}if(e.negate){n=!n}return n}}return i}));const _s=[];
711
+ */let mi=0;const vi=[];const bi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"};const gi="__computeInfo";const yi=/[A-Z]/;function wi(t,e,i){let s=t[e];if(!s){s=t[e]={}}else if(!t.hasOwnProperty(e)){s=t[e]=Object.create(t[e]);if(i){for(let t in s){let e=s[t];let i=s[t]=Array(e.length);for(let t=0;t<e.length;t++){i[t]=e[t]}}}}return s}function xi(t,e,i,s,r,o){if(e){let n=false;const a=mi++;for(let l in i){let h=r?De(l):l;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==a)&&(!r||ki(l,u.trigger))){if(u.info){u.info.lastRun=a}u.fn(t,l,i,s,u.info,r,o);n=true}}}}return n}return false}function _i(t,e,i,s,r,o,n,a){let l=false;let h=n?De(s):s;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==i)&&(!n||ki(s,u.trigger))){if(u.info){u.info.lastRun=i}u.fn(t,s,r,o,u.info,n,a);l=true}}}return l}function ki(t,e){if(e){let i=e.name;return i==t||!!(e.structured&&Te(i,t))||!!(e.wildcard&&Se(i,t))}else{return true}}function Ai(t,e,i,s,r){let o=typeof r.method==="string"?t[r.method]:r.method;let n=r.property;if(o){o.call(t,t.__data[n],s[n])}else if(!r.dynamicFn){console.warn("observer method `"+r.method+"` not defined")}}function Ci(t,e,i,s,r){let o=t[bi.NOTIFY];let n;let a=mi++;for(let l in e){if(e[l]){if(o&&_i(t,o,a,l,i,s,r)){n=true}else if(r&&Di(t,l,i)){n=true}}}let l;if(n&&(l=t.__dataHost)&&l._invalidateProperties){l._invalidateProperties()}}function Di(t,e,i){let s=De(e);if(s!==e){let r=je(s)+"-changed";Ti(t,r,i[e],e);return true}return false}function Ti(t,e,i,s){let r={value:i,queueProperty:true};if(s){r.path=s}Ae(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Si(t,e,i,s,r,o){let n=o?De(e):e;let a=n!=e?e:null;let l=a?Fe(t,a):t.__data[e];if(a&&l===undefined){l=i[e]}Ti(t,r.eventName,l,a)}function Mi(t,e,i,s,r){let o;let n=t.detail;let a=n&&n.path;if(a){s=Me(i,s,a);o=n&&n.value}else{o=t.currentTarget[i]}o=r?!o:o;if(!e[bi.READ_ONLY]||!e[bi.READ_ONLY][s]){if(e._setPendingPropertyOrPath(s,o,true,Boolean(a))&&(!n||!n.queueProperty)){e._invalidateProperties()}}}function zi(t,e,i,s,r){let o=t.__data[e];if(Vt){o=Vt(o,r.attrName,"attribute",t)}t._propertyToAttribute(e,r.attrName,o)}function Ei(t,e,i,s){let r=t[bi.COMPUTE];if(r){if(ee){mi++;const o=Ni(t);const n=[];for(let t in e){Fi(t,r,n,o,s)}let a;while(a=n.shift()){if(Bi(t,"",e,i,a)){Fi(a.methodInfo,r,n,o,s)}}Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);t.__dataPending=null}else{let o=e;while(xi(t,r,o,i,s)){Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);o=t.__dataPending;t.__dataPending=null}}}}const Pi=(t,e,i)=>{let s=0;let r=e.length-1;let o=-1;while(s<=r){const n=s+r>>1;const a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0){s=n+1}else if(a>0){r=n-1}else{o=n;break}}if(o<0){o=r+1}e.splice(o,0,t)};const Fi=(t,e,i,s,r)=>{const o=r?De(t):t;const n=e[o];if(n){for(let e=0;e<n.length;e++){const o=n[e];if(o.info.lastRun!==mi&&(!r||ki(t,o.trigger))){o.info.lastRun=mi;Pi(o.info,i,s)}}}};function Ni(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[bi.COMPUTE];let{counts:s,ready:r,total:o}=Oi(t);let n;while(n=r.shift()){e.set(n,e.size);const t=i[n];if(t){t.forEach((t=>{const e=t.info.methodInfo;--o;if(--s[e]===0){r.push(e)}}))}}if(o!==0){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}function Oi(t){const e=t[gi];const i={};const s=t[bi.COMPUTE];const r=[];let o=0;for(let t in e){const s=e[t];o+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s){if(!e[t]){r.push(t)}}return{counts:i,ready:r,total:o}}function Bi(t,e,i,s,r){let o=Vi(t,e,i,s,r);if(o===vi){return false}let n=r.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[n]){return t._setPendingProperty(n,o,true)}else{t[n]=o;return false}}function Ii(t,e,i){let s=t.__dataLinkedPaths;if(s){let r;for(let o in s){let n=s[o];if(Se(o,e)){r=Me(o,n,e);t._setPendingPropertyOrPath(r,i,true,true)}else if(Se(n,e)){r=Me(n,o,e);t._setPendingPropertyOrPath(r,i,true,true)}}}}function Ri(t,e,i,s,r,o,n){i.bindings=i.bindings||[];let a={kind:s,target:r,parts:o,literal:n,isCompound:o.length!==1};i.bindings.push(a);if(Hi(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||je(r)+"-changed";a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i;ji(t,e,a,s,l)}}function ji(t,e,i,s,r){if(!s.literal){if(i.kind==="attribute"&&i.target[0]==="-"){console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character')}else{let o=s.dependencies;let n={index:r,binding:i,part:s,evaluator:t};for(let i=0;i<o.length;i++){let s=o[i];if(typeof s=="string"){s=fs(s);s.wildcard=true}t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Wi,info:n,trigger:s})}}}}function Wi(t,e,i,s,r,o,n){let a=n[r.index];let l=r.binding;let h=r.part;if(o&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=Me(h.source,l.target,e);if(a._setPendingPropertyOrPath(e,s,false,true)){t._enqueueClient(a)}}else{let n=r.evaluator._evaluateBinding(t,h,e,i,s,o);if(n!==vi){Li(t,a,l,h,n)}}}function Li(t,e,i,s,r){r=Ui(e,r,i,s);if(Vt){r=Vt(r,i.target,i.kind,e)}if(i.kind=="attribute"){t._valueToNodeAttribute(e,r,i.target)}else{let s=i.target;if(e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]){if(!e[bi.READ_ONLY]||!e[bi.READ_ONLY][s]){if(e._setPendingProperty(s,r)){t._enqueueClient(e)}}}else{t._setUnmanagedPropertyToNode(e,s,r)}}}function Ui(t,e,i,s){if(i.isCompound){let r=t.__dataCompoundStorage[i.target];r[s.compoundIndex]=e;e=r.join("")}if(i.kind!=="attribute"){if(i.target==="textContent"||i.target==="value"&&(t.localName==="input"||t.localName==="textarea")){e=e==undefined?"":e}}return e}function Hi(t){return Boolean(t.target)&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Gi(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length){for(let e=0;e<s.length;e++){let r=s[e];let o=i[e];let n=r.bindings;if(n){for(let e=0;e<n.length;e++){let i=n[e];$i(o,i);qi(o,t,i)}}o.__dataHost=t}}}function $i(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={});let s=e.parts;let r=new Array(s.length);for(let t=0;t<s.length;t++){r[t]=s[t].literal}let o=e.target;i[o]=r;if(e.literal&&e.kind=="property"){if(o==="className"){t=Ae(t)}t[o]=e.literal}}}function qi(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){Mi(t,e,i.target,s.source,s.negate)}))}}function Yi(t,e,i,s,r,o){o=e.static||o&&(typeof o!=="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:o};for(let r=0,o;r<e.args.length&&(o=e.args[r]);r++){if(!o.literal){t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o})}}if(o){t._addPropertyEffect(e.methodName,i,{fn:s,info:n})}return n}function Vi(t,e,i,s,r){let o=t._methodHost||t;let n=o[r.methodName];if(n){let s=t._marshalArgs(r.args,e,i);return s===vi?vi:n.apply(o,s)}else if(!r.dynamicFn){console.warn("method `"+r.methodName+"` not defined")}}const Ji=[];const Ki="(?:"+"[a-zA-Z_$][\\w.:$\\-*]*"+")";const Zi="(?:"+"[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?"+")";const Qi="(?:"+"'(?:[^'\\\\]|\\\\.)*'"+")";const Xi="(?:"+'"(?:[^"\\\\]|\\\\.)*"'+")";const ts="(?:"+Qi+"|"+Xi+")";const es="(?:("+Ki+"|"+Zi+"|"+ts+")\\s*"+")";const is="(?:"+es+"(?:,\\s*"+es+")*"+")";const ss="(?:"+"\\(\\s*"+"(?:"+is+"?"+")"+"\\)\\s*"+")";const rs="("+Ki+"\\s*"+ss+"?"+")";const os="(\\[\\[|{{)"+"\\s*";const ns="(?:]]|}})";const as="(?:(!)\\s*)?";const ls=os+as+rs+ns;const hs=new RegExp(ls,"g");function cs(t){let e="";for(let i=0;i<t.length;i++){let s=t[i].literal;e+=s||""}return e}function us(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t=e[1];let i={methodName:t,static:true,args:Ji};if(e[2].trim()){let t=e[2].replace(/\\,/g,"&comma;").split(",");return ds(t,i)}else{return i}}return null}function ds(t,e){e.args=t.map((function(t){let i=fs(t);if(!i.literal){e.static=false}return i}),this);return e}function fs(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");let i={name:e,value:"",literal:false};let s=e[0];if(s==="-"){s=e[1]}if(s>="0"&&s<="9"){s="#"}switch(s){case"'":case'"':i.value=e.slice(1,-1);i.literal=true;break;case"#":i.value=Number(e);i.literal=true;break}if(!i.literal){i.rootProperty=De(e);i.structured=Ce(e);if(i.structured){i.wildcard=e.slice(-2)==".*";if(i.wildcard){i.name=e.slice(0,-2)}}}return i}function ps(t,e,i){let s=Fe(t,i);if(s===undefined){s=e[i]}return s}function ms(t,e,i,s){const r={indexSplices:s};if(te&&!t._overrideLegacyUndefined){e.splices=r}t.notifyPath(i+".splices",r);t.notifyPath(i+".length",e.length);if(te&&!t._overrideLegacyUndefined){r.indexSplices=[]}}function vs(t,e,i,s,r,o){ms(t,e,i,[{index:s,addedCount:r,removed:o,object:e,type:"splice"}])}function bs(t){return t[0].toUpperCase()+t.substring(1)}const gs=ae((t=>{const e=pi(ei(t));class i extends e{constructor(){super();this.__isPropertyEffectsClient=true}get PROPERTY_EFFECT_TYPES(){return bi}_initializeProperties(){super._initializeProperties();this._registerHost();this.__dataClientsReady=false;this.__dataPendingClients=null;this.__dataToNotify=null;this.__dataLinkedPaths=null;this.__dataHasPaths=false;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=false}_registerHost(){if(ys.length){let t=ys[ys.length-1];t._enqueueClient(this);this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t);this.__dataPending=Object.create(t);this.__dataOld={}}_initializeInstanceProperties(t){let e=this[bi.READ_ONLY];for(let i in t){if(!e||!e[i]){this.__dataPending=this.__dataPending||{};this.__dataOld=this.__dataOld||{};this.__data[i]=this.__dataPending[i]=t[i]}}}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==bi.READ_ONLY);let s=wi(this,e,true)[t];if(!s){s=this[e][t]=[]}s.push(i)}_removePropertyEffect(t,e,i){let s=wi(this,e,true)[t];let r=s.indexOf(i);if(r>=0){s.splice(r,1)}}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,bi.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,bi.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,bi.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,bi.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||De(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Fe(this,t);t=Ne(this,t,e);if(!t||!super._shouldPropertyChange(t,e,i)){return false}}this.__dataHasPaths=true;if(this._setPendingProperty(t,e,i)){Ii(this,t,e);return true}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t]){return this._setPendingProperty(t,e,i)}else{this[t]=e}}return false}_setUnmanagedPropertyToNode(t,e,i){if(i!==t[e]||typeof i=="object"){if(e==="className"){t=Ae(t)}t[e]=i}}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Ce(t);let r=s?this.__dataTemp:this.__data;if(this._shouldPropertyChange(t,e,r[t])){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(!(t in this.__dataOld)){this.__dataOld[t]=this.__data[t]}if(s){this.__dataTemp[t]=e}else{this.__data[t]=e}this.__dataPending[t]=e;if(s||this[bi.NOTIFY]&&this[bi.NOTIFY][t]){this.__dataToNotify=this.__dataToNotify||{};this.__dataToNotify[t]=i}return true}return false}_setProperty(t,e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}_invalidateProperties(){if(this.__dataReady){this._flushProperties()}}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[];if(t!==this){this.__dataPendingClients.push(t)}}_flushClients(){if(!this.__dataClientsReady){this.__dataClientsReady=true;this._readyClients();this.__dataReady=true}else{this.__enableOrFlushClients()}}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];if(!i.__dataEnabled){i._enableProperties()}else if(i.__dataPending){i._flushProperties()}}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t){if(e||!this[bi.READ_ONLY]||!this[bi.READ_ONLY][i]){this._setPendingPropertyOrPath(i,t[i],true)}}this._invalidateProperties()}ready(){this._flushProperties();if(!this.__dataClientsReady){this._flushClients()}if(this.__dataPending){this._flushProperties()}}_propertiesChanged(t,e,i){let s=this.__dataHasPaths;this.__dataHasPaths=false;let r;Ei(this,e,i,s);r=this.__dataToNotify;this.__dataToNotify=null;this._propagatePropertyChanges(e,i,s);this._flushClients();xi(this,this[bi.REFLECT],e,i,s);xi(this,this[bi.OBSERVE],e,i,s);if(r){Ci(this,r,e,i,s)}if(this.__dataCounter==1){this.__dataTemp={}}}_propagatePropertyChanges(t,e,i){if(this[bi.PROPAGATE]){xi(this,this[bi.PROPAGATE],t,e,i)}if(this.__templateInfo){this._runEffectsForTemplate(this.__templateInfo,t,e,i)}}_runEffectsForTemplate(t,e,i,s){const r=(e,s)=>{xi(this,t.propertyEffects,e,i,s,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling){this._runEffectsForTemplate(r,e,i,s)}};if(t.runEffects){t.runEffects(r,e,s)}else{r(e,s)}}linkPaths(t,e){t=Ee(t);e=Ee(e);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ee(t);if(this.__dataLinkedPaths){delete this.__dataLinkedPaths[t]}}notifySplices(t,e){let i={path:""};let s=Fe(this,t,i);ms(this,s,i.path,e)}get(t,e){return Fe(e||this,t)}set(t,e,i){if(i){Ne(i,t,e)}else{if(!this[bi.READ_ONLY]||!this[bi.READ_ONLY][t]){if(this._setPendingPropertyOrPath(t,e,true)){this._invalidateProperties()}}}}push(t,...e){let i={path:""};let s=Fe(this,t,i);let r=s.length;let o=s.push(...e);if(e.length){vs(this,s,i.path,r,e.length,[])}return o}pop(t){let e={path:""};let i=Fe(this,t,e);let s=Boolean(i.length);let r=i.pop();if(s){vs(this,i,e.path,i.length,0,[r])}return r}splice(t,e,i,...s){let r={path:""};let o=Fe(this,t,r);if(e<0){e=o.length-Math.floor(-e)}else if(e){e=Math.floor(e)}let n;if(arguments.length===2){n=o.splice(e)}else{n=o.splice(e,i,...s)}if(s.length||n.length){vs(this,o,r.path,e,s.length,n)}return n}shift(t){let e={path:""};let i=Fe(this,t,e);let s=Boolean(i.length);let r=i.shift();if(s){vs(this,i,e.path,0,0,[r])}return r}unshift(t,...e){let i={path:""};let s=Fe(this,t,i);let r=s.unshift(...e);if(e.length){vs(this,s,i.path,0,e.length,[])}return r}notifyPath(t,e){let i;if(arguments.length==1){let s={path:""};e=Fe(this,t,s);i=s.path}else if(Array.isArray(t)){i=Ee(t)}else{i=t}if(this._setPendingPropertyOrPath(i,e,true,true)){this._invalidateProperties()}}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,bi.READ_ONLY);if(e){this["_set"+bs(t)]=function(e){this._setProperty(t,e)}}}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,bi.OBSERVE,{fn:Ai,info:s,trigger:{name:t}});if(i){this._addPropertyEffect(e,bi.OBSERVE,{fn:Ai,info:s,trigger:{name:e}})}}_createMethodObserver(t,e){let i=us(t);if(!i){throw new Error("Malformed observer expression '"+t+"'")}Yi(this,i,bi.OBSERVE,Vi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,bi.NOTIFY,{fn:Si,info:{eventName:je(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);if(e[0]==="-"){console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.')}else{this._addPropertyEffect(t,bi.REFLECT,{fn:zi,info:{attrName:e}})}}_createComputedProperty(t,e,i){let s=us(e);if(!s){throw new Error("Malformed computed expression '"+e+"'")}const r=Yi(this,s,bi.COMPUTE,Bi,t,i);wi(this,gi)[t]=r}_marshalArgs(t,e,i){const s=this.__data;const r=[];for(let o=0,n=t.length;o<n;o++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[o];if(!c){if(l){const t=Se(n,e);const r=ps(s,i,t?e:n);h={path:t?e:n,value:r,base:t?Fe(s,n):r}}else{h=a?ps(s,i,n):s[n]}}if(te&&!this._overrideLegacyUndefined&&h===undefined&&t.length>1){return vi}r[o]=h}return r}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t);let s=this.__preBoundTemplateInfo==i;if(!s){for(let t in i.propertyEffects){this._createPropertyAccessor(t)}}if(e){i=Object.create(i);i.wasPreBound=s;if(!this.__templateInfo){this.__templateInfo=i}else{const e=t._parentTemplateInfo||this.__templateInfo;const s=e.lastChild;i.parent=e;e.lastChild=i;i.previousSibling=s;if(s){s.nextSibling=i}else{e.firstChild=i}}}else{this.__preBoundTemplateInfo=i}return i}static _addTemplatePropertyEffect(t,e,i){let s=t.hostProps=t.hostProps||{};s[e]=true;let r=t.propertyEffects=t.propertyEffects||{};let o=r[e]=r[e]||[];o.push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,true);ys.push(this);let i=super._stampTemplate(t,e);ys.pop();e.nodeList=i.nodeList;if(!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling){t.push(e)}}i.templateInfo=e;Gi(this,e);if(this.__dataClientsReady){this._runEffectsForTemplate(e,this.__data,null,false);this._flushClients()}return i}_removeBoundDom(t){const e=t.templateInfo;const{previousSibling:i,nextSibling:s,parent:r}=e;if(i){i.nextSibling=s}else if(r){r.firstChild=s}if(s){s.previousSibling=i}else if(r){r.lastChild=i}e.nextSibling=e.previousSibling=null;let o=e.childNodes;for(let t=0;t<o.length;t++){let e=o[t];Ae(Ae(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let r=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);if(e){t.textContent=cs(e)||" ";Ri(this,i,s,"text","textContent",e);r=true}}return r}static _parseTemplateNodeAttribute(t,i,s,r,o){let n=this._parseBindings(o,i);if(n){let e=r;let o="property";if(yi.test(r)){o="attribute"}else if(r[r.length-1]=="$"){r=r.slice(0,-1);o="attribute"}let a=cs(n);if(a&&o=="attribute"){if(r=="class"&&t.hasAttribute("class")){a+=" "+t.getAttribute(r)}t.setAttribute(r,a)}if(o=="attribute"&&e=="disable-upgrade$"){t.setAttribute(r,"")}if(t.localName==="input"&&e==="value"){t.setAttribute(e,"")}t.removeAttribute(e);if(o==="property"){r=Re(r)}Ri(this,i,s,o,r,n,a);return true}else{return e._parseTemplateNodeAttribute.call(this,t,i,s,r,o)}}static _parseTemplateNestedTemplate(t,i,s){let r=e._parseTemplateNestedTemplate.call(this,t,i,s);const o=t.parentNode;const n=s.templateInfo;const a=o.localName==="dom-if";const l=o.localName==="dom-repeat";if(ie&&(a||l)){o.removeChild(t);s=s.parentInfo;s.templateInfo=n;s.noted=true;r=false}let h=n.hostProps;if(se&&a){if(h){i.hostProps=Object.assign(i.hostProps||{},h);if(!ie){s.parentInfo.noted=true}}}else{let t="{";for(let e in h){let r=[{mode:t,source:e,dependencies:[e],hostProp:true}];Ri(this,i,s,"property","_host_"+e,r)}}return r}static _parseBindings(t,e){let i=[];let s=0;let r;while((r=hs.exec(t))!==null){if(r.index>s){i.push({literal:t.slice(s,r.index)})}let o=r[1][0];let n=Boolean(r[2]);let a=r[3].trim();let l=false,h="",c=-1;if(o=="{"&&(c=a.indexOf("::"))>0){h=a.substring(c+2);a=a.substring(0,c);l=true}let u=us(a);let d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];if(!i.literal){d.push(i)}}let s=e.dynamicFns;if(s&&s[i]||u.static){d.push(i);u.dynamicFn=true}}else{d.push(a)}i.push({source:a,mode:o,negate:n,customEvent:l,signature:u,dependencies:d,event:h});s=hs.lastIndex}if(s&&s<t.length){let e=t.substring(s);if(e){i.push({literal:e})}}if(i.length){return i}else{return null}}static _evaluateBinding(t,e,i,s,r,o){let n;if(e.signature){n=Vi(t,i,s,r,e.signature)}else if(i!=e.source){n=Fe(t,e.source)}else{if(o&&Ce(i)){n=Fe(t,i)}else{n=t.__data[i]}}if(e.negate){n=!n}return n}}return i}));const ys=[];
717
712
  /**
718
713
  @license
719
714
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -722,7 +717,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
722
717
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
723
718
  Code distributed by Google as part of the polymer project is also
724
719
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
725
- */function ks(t){const e={};for(let i in t){const s=t[i];e[i]=typeof s==="function"?{type:s}:s}return e}const As=ce((t=>{const e=Xe(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof o?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;if(i){e=ks(i)}}t.__ownProperties=e}return t.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);if(t){t.finalize()}this.__finalized=true;this._finalizeClass()}}static _finalizeClass(){const t=s(this);if(t){this.createProperties(t)}}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize();super._initializeProperties()}connectedCallback(){if(super.connectedCallback){super.connectedCallback()}this._enableProperties()}disconnectedCallback(){if(super.disconnectedCallback){super.disconnectedCallback()}}}return o}));
720
+ */function ws(t){const e={};for(let i in t){const s=t[i];e[i]=typeof s==="function"?{type:s}:s}return e}const xs=ae((t=>{const e=Ke(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;if(i){e=ws(i)}}t.__ownProperties=e}return t.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);if(t){t.finalize()}this.__finalized=true;this._finalizeClass()}}static _finalizeClass(){const t=s(this);if(t){this.createProperties(t)}}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize();super._initializeProperties()}connectedCallback(){if(super.connectedCallback){super.connectedCallback()}this._enableProperties()}disconnectedCallback(){if(super.disconnectedCallback){super.disconnectedCallback()}}}return r}));
726
721
  /**
727
722
  * @fileoverview
728
723
  * @suppress {checkPrototypalTypes}
@@ -733,7 +728,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
733
728
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
734
729
  * Google as part of the polymer project is also subject to an additional IP
735
730
  * rights grant found at http://polymer.github.io/PATENTS.txt
736
- */const Cs="3.5.1";const Ds=window.ShadyCSS&&window.ShadyCSS["cssBuild"];const Ts=ce((t=>{const e=As(xs(t));function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];if("value"in s){t.__propertyDefaults=t.__propertyDefaults||{};t.__propertyDefaults[i]=s}}}return t.__propertyDefaults}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",t))){t.__ownObservers=t.hasOwnProperty(JSCompiler_renameProperty("observers",t))?t.observers:null}return t.__ownObservers}function o(t,e,i,s){if(i.computed){i.readOnly=true}if(i.computed){if(t._hasReadOnlyEffect(e)){console.warn(`Cannot redefine computed property '${e}'.`)}else{t._createComputedProperty(e,i.computed,s)}}if(i.readOnly&&!t._hasReadOnlyEffect(e)){t._createReadOnlyProperty(e,!i.computed)}else if(i.readOnly===false&&t._hasReadOnlyEffect(e)){console.warn(`Cannot make readOnly property '${e}' non-readOnly.`)}if(i.reflectToAttribute&&!t._hasReflectEffect(e)){t._createReflectedProperty(e)}else if(i.reflectToAttribute===false&&t._hasReflectEffect(e)){console.warn(`Cannot make reflected property '${e}' non-reflected.`)}if(i.notify&&!t._hasNotifyEffect(e)){t._createNotifyingProperty(e)}else if(i.notify===false&&t._hasNotifyEffect(e)){console.warn(`Cannot make notify property '${e}' non-notify.`)}if(i.observer){t._createPropertyObserver(e,i.observer,s[i.observer])}t._addPropertyToAttributeMap(e)}function r(t,e,i,s){if(!Ds){const o=e.content.querySelectorAll("style");const r=Ae(e);const n=Ce(i);const a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let o=n[i];o.textContent=t._processStyleText(o.textContent,s);e.content.insertBefore(o,a)}let l=0;for(let e=0;e<r.length;e++){let i=r[e];let n=o[l];if(n!==i){i=i.cloneNode(true);n.parentNode.insertBefore(i,n)}else{l++}i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS){window.ShadyCSS.prepareTemplate(e,i)}if(le&&Ds&&Jt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent;t.parentNode.removeChild(t)}));t._styleSheet=new CSSStyleSheet;t._styleSheet.replaceSync(e)}}}function n(t){let e=null;if(t&&(!Qt||Xt)){e=be.import(t,"template");if(Qt&&!e){throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`)}}return e}class a extends e{static get polymerElementVersion(){return Cs}static _finalizeClass(){e._finalizeClass.call(this);const t=s(this);if(t){this.createObservers(t,this._properties)}this._prepareTemplate()}static _prepareTemplate(){let t=this.template;if(t){if(typeof t==="string"){console.error("template getter must return HTMLTemplateElement");t=null}else if(!te){t=t.cloneNode(true)}}this.prototype._template=t}static createProperties(t){for(let e in t){o(this.prototype,e,t[e],t)}}static createObservers(t,e){const i=this.prototype;for(let s=0;s<t.length;s++){i._createMethodObserver(t[s],e)}}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:undefined;if(typeof t==="function"){t=t()}this._template=t!==undefined?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t){this._importPath=Yt(t.url)}else{const t=be.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);super._initializeProperties();this.rootPath=Kt;this.importPath=this.constructor.importPath;let t=i(this.constructor);if(!t){return}for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t=typeof i.value=="function"?i.value.call(this):i.value;if(this._hasAccessor(e)){this._setPendingProperty(e,t,true)}else{this[e]=t}}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return qt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=true;const i=this.importPath;const s=i?Gt(i):"";r(this,e,t,s);this.prototype._bindTemplate(e)}}connectedCallback(){if(window.ShadyCSS&&this._template){window.ShadyCSS.styleElement(this)}super.connectedCallback()}ready(){if(this._template){this.root=this._stampTemplate(this._template);this.$=this.root.$}super.ready()}_readyClients(){if(this._template){this.root=this._attachDom(this.root)}super._readyClients()}_attachDom(t){const e=Te(this);if(e.attachShadow){if(t){if(!e.shadowRoot){e.attachShadow({mode:"open",shadyUpgradeFragment:t});e.shadowRoot.appendChild(t);if(this.constructor._styleSheet){e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet]}}if(ie&&window.ShadyDOM){window.ShadyDOM.flushInitial(e.shadowRoot)}return e.shadowRoot}return null}else{throw new Error("ShadowDOM not available. "+"PolymerElement can create dom as children instead of in "+"ShadowDOM by setting `this.root = this;` before `ready`.")}}updateStyles(t){if(window.ShadyCSS){window.ShadyCSS.styleSubtree(this,t)}}resolveUrl(t,e){if(!e&&this.importPath){e=Gt(this.importPath)}return Gt(t,e)}static _parseTemplateContent(t,i,s){i.dynamicFns=i.dynamicFns||this._properties;return e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){if(ee&&!(i in this._properties)&&!(s.info.part.signature&&s.info.part.signature.static)&&!s.info.part.hostProp&&!t.nestedTemplate){console.warn(`Property '${i}' used in template but not declared in 'properties'; `+`attribute will not be observed.`)}return e._addTemplatePropertyEffect.call(this,t,i,s)}}return a}));
731
+ */const _s="3.5.1";const ks=window.ShadyCSS&&window.ShadyCSS["cssBuild"];const As=ae((t=>{const e=xs(gs(t));function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];if("value"in s){t.__propertyDefaults=t.__propertyDefaults||{};t.__propertyDefaults[i]=s}}}return t.__propertyDefaults}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",t))){t.__ownObservers=t.hasOwnProperty(JSCompiler_renameProperty("observers",t))?t.observers:null}return t.__ownObservers}function r(t,e,i,s){if(i.computed){i.readOnly=true}if(i.computed){if(t._hasReadOnlyEffect(e)){console.warn(`Cannot redefine computed property '${e}'.`)}else{t._createComputedProperty(e,i.computed,s)}}if(i.readOnly&&!t._hasReadOnlyEffect(e)){t._createReadOnlyProperty(e,!i.computed)}else if(i.readOnly===false&&t._hasReadOnlyEffect(e)){console.warn(`Cannot make readOnly property '${e}' non-readOnly.`)}if(i.reflectToAttribute&&!t._hasReflectEffect(e)){t._createReflectedProperty(e)}else if(i.reflectToAttribute===false&&t._hasReflectEffect(e)){console.warn(`Cannot make reflected property '${e}' non-reflected.`)}if(i.notify&&!t._hasNotifyEffect(e)){t._createNotifyingProperty(e)}else if(i.notify===false&&t._hasNotifyEffect(e)){console.warn(`Cannot make notify property '${e}' non-notify.`)}if(i.observer){t._createPropertyObserver(e,i.observer,s[i.observer])}t._addPropertyToAttributeMap(e)}function o(t,e,i,s){if(!ks){const r=e.content.querySelectorAll("style");const o=xe(e);const n=_e(i);const a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let r=n[i];r.textContent=t._processStyleText(r.textContent,s);e.content.insertBefore(r,a)}let l=0;for(let e=0;e<o.length;e++){let i=o[e];let n=r[l];if(n!==i){i=i.cloneNode(true);n.parentNode.insertBefore(i,n)}else{l++}i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS){window.ShadyCSS.prepareTemplate(e,i)}if(oe&&ks&&qt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent;t.parentNode.removeChild(t)}));t._styleSheet=new CSSStyleSheet;t._styleSheet.replaceSync(e)}}}function n(t){let e=null;if(t&&(!Jt||Kt)){e=fe.import(t,"template");if(Jt&&!e){throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`)}}return e}class a extends e{static get polymerElementVersion(){return _s}static _finalizeClass(){e._finalizeClass.call(this);const t=s(this);if(t){this.createObservers(t,this._properties)}this._prepareTemplate()}static _prepareTemplate(){let t=this.template;if(t){if(typeof t==="string"){console.error("template getter must return HTMLTemplateElement");t=null}else if(!Zt){t=t.cloneNode(true)}}this.prototype._template=t}static createProperties(t){for(let e in t){r(this.prototype,e,t[e],t)}}static createObservers(t,e){const i=this.prototype;for(let s=0;s<t.length;s++){i._createMethodObserver(t[s],e)}}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:undefined;if(typeof t==="function"){t=t()}this._template=t!==undefined?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t){this._importPath=Gt(t.url)}else{const t=fe.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);super._initializeProperties();this.rootPath=Yt;this.importPath=this.constructor.importPath;let t=i(this.constructor);if(!t){return}for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t=typeof i.value=="function"?i.value.call(this):i.value;if(this._hasAccessor(e)){this._setPendingProperty(e,t,true)}else{this[e]=t}}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Ht(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=true;const i=this.importPath;const s=i?Ut(i):"";o(this,e,t,s);this.prototype._bindTemplate(e)}}connectedCallback(){if(window.ShadyCSS&&this._template){window.ShadyCSS.styleElement(this)}super.connectedCallback()}ready(){if(this._template){this.root=this._stampTemplate(this._template);this.$=this.root.$}super.ready()}_readyClients(){if(this._template){this.root=this._attachDom(this.root)}super._readyClients()}_attachDom(t){const e=Ae(this);if(e.attachShadow){if(t){if(!e.shadowRoot){e.attachShadow({mode:"open",shadyUpgradeFragment:t});e.shadowRoot.appendChild(t);if(this.constructor._styleSheet){e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet]}}if(Xt&&window.ShadyDOM){window.ShadyDOM.flushInitial(e.shadowRoot)}return e.shadowRoot}return null}else{throw new Error("ShadowDOM not available. "+"PolymerElement can create dom as children instead of in "+"ShadowDOM by setting `this.root = this;` before `ready`.")}}updateStyles(t){if(window.ShadyCSS){window.ShadyCSS.styleSubtree(this,t)}}resolveUrl(t,e){if(!e&&this.importPath){e=Ut(this.importPath)}return Ut(t,e)}static _parseTemplateContent(t,i,s){i.dynamicFns=i.dynamicFns||this._properties;return e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){if(Qt&&!(i in this._properties)&&!(s.info.part.signature&&s.info.part.signature.static)&&!s.info.part.hostProp&&!t.nestedTemplate){console.warn(`Property '${i}' used in template but not declared in 'properties'; `+`attribute will not be observed.`)}return e._addTemplatePropertyEffect.call(this,t,i,s)}}return a}));
737
732
  /**
738
733
  @license
739
734
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -742,7 +737,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
742
737
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
743
738
  Code distributed by Google as part of the polymer project is also
744
739
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
745
- */const Ss=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Ms{constructor(t,e){Ps(t,e);const i=e.reduce(((e,i,s)=>e+Ns(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Ns(t){if(t instanceof Ms){return t.value}else{throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}}function Es(t){if(t instanceof HTMLTemplateElement){return t.innerHTML}else if(t instanceof Ms){return Ns(t)}else{throw new Error(`non-template value passed to Polymer's html function: ${t}`)}}const zs=function t(e,...i){Ps(e,i);const s=document.createElement("template");let o=i.reduce(((t,i,s)=>t+Es(i)+e[s+1]),e[0]);if(Ss){o=Ss.createHTML(o)}s.innerHTML=o;return s};const Ps=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1){throw new TypeError("Invalid call to the html template tag")}};
740
+ */const Cs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Ds{constructor(t,e){zs(t,e);const i=e.reduce(((e,i,s)=>e+Ts(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Ts(t){if(t instanceof Ds){return t.value}else{throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}}function Ss(t){if(t instanceof HTMLTemplateElement){return t.innerHTML}else if(t instanceof Ds){return Ts(t)}else{throw new Error(`non-template value passed to Polymer's html function: ${t}`)}}const Ms=function t(e,...i){zs(e,i);const s=document.createElement("template");let r=i.reduce(((t,i,s)=>t+Ss(i)+e[s+1]),e[0]);if(Cs){r=Cs.createHTML(r)}s.innerHTML=r;return s};const zs=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1){throw new TypeError("Invalid call to the html template tag")}};
746
741
  /**
747
742
  @license
748
743
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -751,22 +746,17 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
751
746
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
752
747
  Code distributed by Google as part of the polymer project is also
753
748
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
754
- */const Fs=Ts(HTMLElement);
755
- /**
756
- * @license
757
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
758
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
759
- */function Os(t){const e=customElements.get(t.is);if(!e){customElements.define(t.is,t)}else{const i=e.version;if(i&&t.version&&i===t.version){console.warn(`The component ${t.is} has been loaded twice`)}else{console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}}
749
+ */const Es=As(HTMLElement);
760
750
  /**
761
751
  * @license
762
752
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
763
753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
764
- */const Is=[];function Bs(t,e,i=t.getAttribute("dir")){if(e){t.setAttribute("dir",e)}else if(i!=null){t.removeAttribute("dir")}}function Rs(){return document.documentElement.getAttribute("dir")}function js(){const t=Rs();Is.forEach((e=>{Bs(e,t)}))}const Ws=new MutationObserver(js);Ws.observe(document.documentElement,{attributes:true,attributeFilter:["dir"]});const Ls=t=>class e extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:true,converter:{fromAttribute:t=>!t?"":t,toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback();if(!this.hasAttribute("dir")||this.__restoreSubscription){this.__subscribe();Bs(this,Rs(),null)}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t!=="dir"){return}const s=Rs();const o=i===s&&Is.indexOf(this)===-1;const r=!i&&e&&Is.indexOf(this)===-1;const n=i!==s&&e===s;if(o||r){this.__subscribe();Bs(this,s,i)}else if(n){this.__unsubscribe()}}disconnectedCallback(){super.disconnectedCallback();this.__restoreSubscription=Is.includes(this);this.__unsubscribe()}_valueToNodeAttribute(t,e,i){if(i==="dir"&&e===""&&!t.hasAttribute("dir")){return}super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){if(t==="dir"&&!e){this.dir=""}else{super._attributeToProperty(t,e,i)}}__subscribe(){if(!Is.includes(this)){Is.push(this)}}__unsubscribe(){if(Is.includes(this)){Is.splice(Is.indexOf(this),1)}}}
754
+ */const Ps=[];function Fs(t,e,i=t.getAttribute("dir")){if(e){t.setAttribute("dir",e)}else if(i!=null){t.removeAttribute("dir")}}function Ns(){return document.documentElement.getAttribute("dir")}function Os(){const t=Ns();Ps.forEach((e=>{Fs(e,t)}))}const Bs=new MutationObserver(Os);Bs.observe(document.documentElement,{attributes:true,attributeFilter:["dir"]});const Is=t=>class e extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:true,converter:{fromAttribute:t=>!t?"":t,toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback();if(!this.hasAttribute("dir")||this.__restoreSubscription){this.__subscribe();Fs(this,Ns(),null)}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t!=="dir"){return}const s=Ns();const r=i===s&&Ps.indexOf(this)===-1;const o=!i&&e&&Ps.indexOf(this)===-1;const n=i!==s&&e===s;if(r||o){this.__subscribe();Fs(this,s,i)}else if(n){this.__unsubscribe()}}disconnectedCallback(){super.disconnectedCallback();this.__restoreSubscription=Ps.includes(this);this.__unsubscribe()}_valueToNodeAttribute(t,e,i){if(i==="dir"&&e===""&&!t.hasAttribute("dir")){return}super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){if(t==="dir"&&!e){this.dir=""}else{super._attributeToProperty(t,e,i)}}__subscribe(){if(!Ps.includes(this)){Ps.push(this)}}__unsubscribe(){if(Ps.includes(this)){Ps.splice(Ps.indexOf(this),1)}}}
765
755
  /**
766
756
  * @license
767
757
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
768
758
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
769
- */;class $s extends(Wt(Ls(Fs))){static get is(){return"vaadin-input-container"}static get template(){return zs`
759
+ */;class Rs extends(Mt(Is(Es))){static get is(){return"vaadin-input-container"}static get template(){return Ms`
770
760
  <style>
771
761
  :host {
772
762
  display: flex;
@@ -836,12 +826,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
836
826
  <slot name="prefix"></slot>
837
827
  <slot></slot>
838
828
  <slot name="suffix"></slot>
839
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:true},readonly:{type:Boolean,reflectToAttribute:true},invalid:{type:Boolean,reflectToAttribute:true}}}ready(){super.ready();this.addEventListener("pointerdown",(t=>{if(t.target===this){t.preventDefault()}}));this.addEventListener("click",(t=>{if(t.target===this){this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:true}).forEach((t=>t.focus&&t.focus()))}}))}}Os($s);
829
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:true},readonly:{type:Boolean,reflectToAttribute:true},invalid:{type:Boolean,reflectToAttribute:true}}}ready(){super.ready();this.addEventListener("pointerdown",(t=>{if(t.target===this){t.preventDefault()}}));this.addEventListener("click",(t=>{if(t.target===this){this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:true}).forEach((t=>t.focus&&t.focus()))}}))}}a(Rs);
840
830
  /**
841
831
  * @license
842
832
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
843
833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
844
- */const Us=m`
834
+ */const js=m`
845
835
  :host {
846
836
  /* Square */
847
837
  --lumo-space-xs: 0.25rem;
@@ -864,12 +854,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
864
854
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
865
855
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
866
856
  }
867
- `;xt("spacing-props",Us);
857
+ `;Et("spacing-props",js);
868
858
  /**
869
859
  * @license
870
860
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
871
861
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
872
- */const Hs=m`
862
+ */const Ws=m`
873
863
  :host {
874
864
  top: var(--lumo-space-m);
875
865
  right: var(--lumo-space-m);
@@ -932,12 +922,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
932
922
  opacity: 1;
933
923
  }
934
924
  }
935
- `;yt("",Hs,{moduleId:"lumo-overlay"});
925
+ `;_t("",Ws,{moduleId:"lumo-overlay"});
936
926
  /**
937
927
  * @license
938
928
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
939
929
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
940
- */const Gs=m`
930
+ */const Ls=m`
941
931
  :host([opening]),
942
932
  :host([closing]) {
943
933
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -967,7 +957,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
967
957
  opacity: 0;
968
958
  }
969
959
  }
970
- `;yt("",Gs,{moduleId:"lumo-menu-overlay-core"});const qs=m`
960
+ `;_t("",Ls,{moduleId:"lumo-menu-overlay-core"});const Us=m`
971
961
  /* Small viewport (bottom sheet) styles */
972
962
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
973
963
  @media (max-width: 420px), (max-height: 420px) {
@@ -1029,17 +1019,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1029
1019
  transform: translateY(150%);
1030
1020
  }
1031
1021
  }
1032
- `;const Ys=[Hs,Gs,qs];yt("",Ys,{moduleId:"lumo-menu-overlay"});
1033
- /**
1034
- * @license
1035
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1036
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1037
- */const Vs=t=>class e extends t{static get properties(){return{_theme:{type:String,readOnly:true}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t==="theme"){this._set_theme(i)}}}
1038
- /**
1039
- * @license
1040
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1041
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1042
- */;const Js=[];function Ks(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Zs(t){return Ks(customElements.get(t))}function Qs(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof f){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function Xs(t,e,i={}){if(t){if(Zs(t)){console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`)}}e=Qs(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}else{Js.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}}function to(){if(window.Vaadin&&window.Vaadin.styleModules){return window.Vaadin.styleModules.getAllThemes()}return Js}function eo(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function io(t=""){let e=0;if(t.startsWith("lumo-")||t.startsWith("material-")){e=1}else if(t.startsWith("vaadin-")){e=2}return e}function so(t){const e=[];if(t.include){[].concat(t.include).forEach((t=>{const i=to().find((e=>e.moduleId===t));if(i){e.push(...so(i),...i.styles)}else{console.warn(`Included moduleId ${t} not found in style registry`)}}),t.styles)}return e}function oo(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n");e.content.appendChild(i)}function ro(t){const e=`${t}-default-theme`;const i=to().filter((i=>i.moduleId!==e&&eo(i.themeFor,t))).map((t=>({...t,styles:[...so(t),...t.styles],includePriority:io(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));if(i.length>0){return i}return to().filter((t=>t.moduleId===e))}const no=t=>class e extends(Vs(t)){static finalize(){super.finalize();if(this.elementStyles){return}const t=this.prototype._template;if(!t||Ks(this)){return}oo(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);const e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...ro(this.is)];const i=this.__themes.flatMap((t=>t.styles));return i.filter(((t,e)=>e===i.lastIndexOf(t)))}};const ao=m`
1022
+ `;const Hs=[Ws,Ls,Us];_t("",Hs,{moduleId:"lumo-menu-overlay"});const Gs=m`
1043
1023
  [part='overlay'] {
1044
1024
  /*
1045
1025
  Width:
@@ -1087,17 +1067,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1087
1067
  max-height: 70vh;
1088
1068
  }
1089
1069
  }
1090
- `;Xs("vaadin-date-picker-overlay",[Ys,ao],{moduleId:"lumo-date-picker-overlay"});
1091
- /**
1092
- * @license
1093
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1094
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1095
- */const lo=t=>class e extends t{static get properties(){return{_theme:{type:String,readOnly:true}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t==="theme"){this._set_theme(i)}}}
1096
- /**
1097
- * @license
1098
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1099
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1100
- */;const ho=[];function co(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function uo(t){return co(customElements.get(t))}function fo(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof f){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function po(t,e,i={}){if(t){if(uo(t)){console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`)}}e=fo(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}else{ho.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}}function mo(){if(window.Vaadin&&window.Vaadin.styleModules){return window.Vaadin.styleModules.getAllThemes()}return ho}function bo(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function vo(t=""){let e=0;if(t.startsWith("lumo-")||t.startsWith("material-")){e=1}else if(t.startsWith("vaadin-")){e=2}return e}function go(t){const e=[];if(t.include){[].concat(t.include).forEach((t=>{const i=mo().find((e=>e.moduleId===t));if(i){e.push(...go(i),...i.styles)}else{console.warn(`Included moduleId ${t} not found in style registry`)}}),t.styles)}return e}function yo(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n");e.content.appendChild(i)}function wo(t){const e=`${t}-default-theme`;const i=mo().filter((i=>i.moduleId!==e&&bo(i.themeFor,t))).map((t=>({...t,styles:[...go(t),...t.styles],includePriority:vo(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));if(i.length>0){return i}return mo().filter((t=>t.moduleId===e))}const xo=t=>class e extends(lo(t)){static finalize(){super.finalize();if(this.elementStyles){return}const t=this.prototype._template;if(!t||co(this)){return}yo(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);const e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...wo(this.is)];const i=this.__themes.flatMap((t=>t.styles));return i.filter(((t,e)=>e===i.lastIndexOf(t)))}};const _o=m`
1070
+ `;_t("vaadin-date-picker-overlay",[Hs,Gs],{moduleId:"lumo-date-picker-overlay"});const $s=m`
1101
1071
  :host {
1102
1072
  /* Sizing */
1103
1073
  --lumo-button-size: var(--lumo-size-m);
@@ -1346,17 +1316,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1346
1316
  margin-left: 0;
1347
1317
  margin-right: 0;
1348
1318
  }
1349
- `;po("vaadin-button",_o,{moduleId:"lumo-button"});
1350
- /**
1351
- * @license
1352
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1353
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1354
- */const ko=ce((t=>{if(typeof t.prototype.addController==="function"){return t}return class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}}));
1319
+ `;_t("vaadin-button",$s,{moduleId:"lumo-button"});
1355
1320
  /**
1356
1321
  * @license
1357
1322
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1358
1323
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1359
- */function Ao(t){const e=customElements.get(t.is);if(!e){customElements.define(t.is,t)}else{const i=e.version;if(i&&t.version&&i===t.version){console.warn(`The component ${t.is} has been loaded twice`)}else{console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}}const Co=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i;const Do=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function To(){function t(){return true}return zo(t)}function So(){try{if(Mo()){return true}if(!No()){return false}if(Do){return!Eo()}return!To()}catch(t){return false}}function Mo(){return localStorage.getItem("vaadin.developmentmode.force")}function No(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Eo(){if(Do){const t=Object.keys(Do).map((t=>Do[t])).filter((t=>t.productionMode));if(t.length>0){return true}}return false}function zo(t,e){if(typeof t!=="function"){return}const i=Co.exec(t.toString());if(i){try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}}return t(e)}window["Vaadin"]=window["Vaadin"]||{};const Po=function(t,e){if(window.Vaadin.developmentMode){return zo(t,e)}};if(window.Vaadin.developmentMode===undefined){window.Vaadin.developmentMode=So()}function Fo(){}const Oo=function(){if(typeof Po==="function"){return Po(Fo)}};
1324
+ */const qs=ae((t=>{if(typeof t.prototype.addController==="function"){return t}return class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}}));const Ys=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i;const Vs=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Js(){function t(){return true}return tr(t)}function Ks(){try{if(Zs()){return true}if(!Qs()){return false}if(Vs){return!Xs()}return!Js()}catch(t){return false}}function Zs(){return localStorage.getItem("vaadin.developmentmode.force")}function Qs(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Xs(){if(Vs){const t=Object.keys(Vs).map((t=>Vs[t])).filter((t=>t.productionMode));if(t.length>0){return true}}return false}function tr(t,e){if(typeof t!=="function"){return}const i=Ys.exec(t.toString());if(i){try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}}return t(e)}window["Vaadin"]=window["Vaadin"]||{};const er=function(t,e){if(window.Vaadin.developmentMode){return tr(t,e)}};if(window.Vaadin.developmentMode===undefined){window.Vaadin.developmentMode=Ks()}function ir(){}const sr=function(){if(typeof er==="function"){return er(ir)}};
1360
1325
  /**
1361
1326
  * @license
1362
1327
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1365,7 +1330,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1365
1330
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1366
1331
  * Code distributed by Google as part of the polymer project is also
1367
1332
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1368
- */const Io={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){if(window.cancelIdleCallback){window.cancelIdleCallback(t)}else{window.clearTimeout(t)}}};
1333
+ */let rr=0;let or=0;const nr=[];let ar=false;function lr(){ar=false;const t=nr.length;for(let e=0;e<t;e++){const t=nr[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}nr.splice(0,t);or+=t}const hr={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const cr={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){if(window.cancelIdleCallback){window.cancelIdleCallback(t)}else{window.clearTimeout(t)}}};const ur={run(t){if(!ar){ar=true;queueMicrotask((()=>lr()))}nr.push(t);const e=rr;rr+=1;return e},cancel(t){const e=t-or;if(e>=0){if(!nr[e]){throw new Error(`invalid async handle: ${t}`)}nr[e]=null}}};
1369
1334
  /**
1370
1335
  @license
1371
1336
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1374,47 +1339,42 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1374
1339
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1375
1340
  Code distributed by Google as part of the polymer project is also
1376
1341
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1377
- */const Bo=new Set;class Ro{static debounce(t,e,i){if(t instanceof Ro){t._cancelAsync()}else{t=new Ro}t.setConfig(e,i);return 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;Bo.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();Bo.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}}function jo(t){Bo.add(t)}
1342
+ */const dr=new Set;class fr{static debounce(t,e,i){if(t instanceof fr){t._cancelAsync()}else{t=new fr}t.setConfig(e,i);return 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;dr.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();dr.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}}function pr(t){dr.add(t)}
1378
1343
  /**
1379
1344
  * @license
1380
1345
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1381
1346
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1382
- */const Wo=[];function Lo(t,e,i=t.getAttribute("dir")){if(e){t.setAttribute("dir",e)}else if(i!=null){t.removeAttribute("dir")}}function $o(){return document.documentElement.getAttribute("dir")}function Uo(){const t=$o();Wo.forEach((e=>{Lo(e,t)}))}const Ho=new MutationObserver(Uo);Ho.observe(document.documentElement,{attributes:true,attributeFilter:["dir"]});const Go=t=>class e extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:true,converter:{fromAttribute:t=>!t?"":t,toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback();if(!this.hasAttribute("dir")||this.__restoreSubscription){this.__subscribe();Lo(this,$o(),null)}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t!=="dir"){return}const s=$o();const o=i===s&&Wo.indexOf(this)===-1;const r=!i&&e&&Wo.indexOf(this)===-1;const n=i!==s&&e===s;if(o||r){this.__subscribe();Lo(this,s,i)}else if(n){this.__unsubscribe()}}disconnectedCallback(){super.disconnectedCallback();this.__restoreSubscription=Wo.includes(this);this.__unsubscribe()}_valueToNodeAttribute(t,e,i){if(i==="dir"&&e===""&&!t.hasAttribute("dir")){return}super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){if(t==="dir"&&!e){this.dir=""}else{super._attributeToProperty(t,e,i)}}__subscribe(){if(!Wo.includes(this)){Wo.push(this)}}__unsubscribe(){if(Wo.includes(this)){Wo.splice(Wo.indexOf(this),1)}}}
1347
+ */if(!window.Vaadin){window.Vaadin={}}if(!window.Vaadin.registrations){window.Vaadin.registrations=[]}if(!window.Vaadin.developmentModeCallback){window.Vaadin.developmentModeCallback={}}window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){sr()};let mr;const vr=new Set;const br=t=>class e extends(Is(t)){static get version(){return"24.2.3"}static finalize(){super.finalize();const{is:t}=this;if(t&&!vr.has(t)){window.Vaadin.registrations.push(this);vr.add(t);if(window.Vaadin.developmentModeCallback){mr=fr.debounce(mr,cr,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}));pr(mr)}}}constructor(){super();if(document.doctype===null){console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}}
1383
1348
  /**
1384
1349
  * @license
1385
1350
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1386
1351
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1387
- */;if(!window.Vaadin){window.Vaadin={}}if(!window.Vaadin.registrations){window.Vaadin.registrations=[]}if(!window.Vaadin.developmentModeCallback){window.Vaadin.developmentModeCallback={}}window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Oo()};let qo;const Yo=new Set;const Vo=t=>class e extends(Go(t)){static get version(){return"24.2.3"}static finalize(){super.finalize();const{is:t}=this;if(t&&!Yo.has(t)){window.Vaadin.registrations.push(this);Yo.add(t);if(window.Vaadin.developmentModeCallback){qo=Ro.debounce(qo,Io,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}));jo(qo)}}}constructor(){super();if(document.doctype===null){console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}}
1388
- /**
1389
- * @license
1390
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1391
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1392
- */;function Jo(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}
1352
+ */;function gr(t){const e=[];while(t){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t);t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function yr(t){if(!t){return new Set}return new Set(t.split(" "))}function wr(t){return t?[...t].join(" "):""}function xr(t,e,i){const s=yr(t.getAttribute(e));s.add(i);t.setAttribute(e,wr(s))}function _r(t,e,i){const s=yr(t.getAttribute(e));s.delete(i);if(s.size===0){t.removeAttribute(e);return}t.setAttribute(e,wr(s))}function kr(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}
1393
1353
  /**
1394
1354
  * @license
1395
1355
  * Copyright (c) 2023 Vaadin Ltd.
1396
1356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1397
- */class Ko{constructor(t,e){this.slot=t;this.callback=e;this._storedNodes=[];this._connected=false;this._scheduled=false;this._boundSchedule=()=>{this._schedule()};this.connect();this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule);this._connected=true}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule);this._connected=false}_schedule(){if(!this._scheduled){this._scheduled=true;queueMicrotask((()=>{this.flush()}))}}flush(){if(!this._connected){return}this._scheduled=false;this._processNodes()}_processNodes(){const t=this.slot.assignedNodes({flatten:true});let e=[];const i=[];const s=[];if(t.length){e=t.filter((t=>!this._storedNodes.includes(t)))}if(this._storedNodes.length){this._storedNodes.forEach(((e,o)=>{const r=t.indexOf(e);if(r===-1){i.push(e)}else if(r!==o){s.push(e)}}))}if(e.length||i.length||s.length){this.callback({addedNodes:e,movedNodes:s,removedNodes:i})}this._storedNodes=t}}
1357
+ */class Ar{constructor(t,e){this.slot=t;this.callback=e;this._storedNodes=[];this._connected=false;this._scheduled=false;this._boundSchedule=()=>{this._schedule()};this.connect();this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule);this._connected=true}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule);this._connected=false}_schedule(){if(!this._scheduled){this._scheduled=true;queueMicrotask((()=>{this.flush()}))}}flush(){if(!this._connected){return}this._scheduled=false;this._processNodes()}_processNodes(){const t=this.slot.assignedNodes({flatten:true});let e=[];const i=[];const s=[];if(t.length){e=t.filter((t=>!this._storedNodes.includes(t)))}if(this._storedNodes.length){this._storedNodes.forEach(((e,r)=>{const o=t.indexOf(e);if(o===-1){i.push(e)}else if(o!==r){s.push(e)}}))}if(e.length||i.length||s.length){this.callback({addedNodes:e,movedNodes:s,removedNodes:i})}this._storedNodes=t}}
1398
1358
  /**
1399
1359
  * @license
1400
1360
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1401
1361
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1402
- */let Zo=0;function Qo(){return Zo++}
1362
+ */let Cr=0;function Dr(){return Cr++}
1403
1363
  /**
1404
1364
  * @license
1405
1365
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1406
1366
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1407
- */class Xo extends EventTarget{static generateId(t,e){const i=e||"default";return`${i}-${t.localName}-${Qo()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:n,useUniqueId:a}=s;this.host=t;this.slotName=e;this.tagName=i;this.observe=typeof n==="boolean"?n:true;this.multiple=typeof r==="boolean"?r:false;this.slotInitializer=o;if(r){this.nodes=[]}if(a){this.defaultId=this.constructor.generateId(t,e)}}hostConnected(){if(!this.initialized){if(this.multiple){this.initMultiple()}else{this.initSingle()}if(this.observe){this.observeSlot()}this.initialized=true}}initSingle(){let t=this.getSlotChild();if(!t){t=this.attachDefaultNode();this.initNode(t)}else{this.node=t;this.initAddedNode(t)}}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const t=this.attachDefaultNode();if(t){this.nodes=[t];this.initNode(t)}}else{this.nodes=t;t.forEach((t=>{this.initAddedNode(t)}))}}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;if(!s&&i){s=document.createElement(i);if(s instanceof Element){if(e!==""){s.setAttribute("slot",e)}this.node=s;this.defaultNode=s}}if(s){t.appendChild(s)}return 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;if(e){e(t,this.host)}}initCustomNode(t){}teardownNode(t){}initAddedNode(t){if(t!==this.defaultNode){this.initCustomNode(t);this.initNode(t)}}observeSlot(){const{slotName:t}=this;const e=t===""?"slot:not([name])":`slot[name=${t}]`;const i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ko(i,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node];const s=t.filter((t=>!Jo(t)&&!i.includes(t)));if(e.length){this.nodes=i.filter((t=>!e.includes(t)));e.forEach((t=>{this.teardownNode(t)}))}if(s&&s.length>0){if(this.multiple){if(this.defaultNode){this.defaultNode.remove()}this.nodes=[...i,...s].filter((t=>t!==this.defaultNode));s.forEach((t=>{this.initAddedNode(t)}))}else{if(this.node){this.node.remove()}this.node=s[0];this.initAddedNode(this.node)}}}))}}
1367
+ */class Tr extends EventTarget{static generateId(t,e){const i=e||"default";return`${i}-${t.localName}-${Dr()}`}constructor(t,e,i,s={}){super();const{initializer:r,multiple:o,observe:n,useUniqueId:a}=s;this.host=t;this.slotName=e;this.tagName=i;this.observe=typeof n==="boolean"?n:true;this.multiple=typeof o==="boolean"?o:false;this.slotInitializer=r;if(o){this.nodes=[]}if(a){this.defaultId=this.constructor.generateId(t,e)}}hostConnected(){if(!this.initialized){if(this.multiple){this.initMultiple()}else{this.initSingle()}if(this.observe){this.observeSlot()}this.initialized=true}}initSingle(){let t=this.getSlotChild();if(!t){t=this.attachDefaultNode();this.initNode(t)}else{this.node=t;this.initAddedNode(t)}}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const t=this.attachDefaultNode();if(t){this.nodes=[t];this.initNode(t)}}else{this.nodes=t;t.forEach((t=>{this.initAddedNode(t)}))}}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;if(!s&&i){s=document.createElement(i);if(s instanceof Element){if(e!==""){s.setAttribute("slot",e)}this.node=s;this.defaultNode=s}}if(s){t.appendChild(s)}return 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;if(e){e(t,this.host)}}initCustomNode(t){}teardownNode(t){}initAddedNode(t){if(t!==this.defaultNode){this.initCustomNode(t);this.initNode(t)}}observeSlot(){const{slotName:t}=this;const e=t===""?"slot:not([name])":`slot[name=${t}]`;const i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ar(i,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node];const s=t.filter((t=>!kr(t)&&!i.includes(t)));if(e.length){this.nodes=i.filter((t=>!e.includes(t)));e.forEach((t=>{this.teardownNode(t)}))}if(s&&s.length>0){if(this.multiple){if(this.defaultNode){this.defaultNode.remove()}this.nodes=[...i,...s].filter((t=>t!==this.defaultNode));s.forEach((t=>{this.initAddedNode(t)}))}else{if(this.node){this.node.remove()}this.node=s[0];this.initAddedNode(this.node)}}}))}}
1408
1368
  /**
1409
1369
  * @license
1410
1370
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
1411
1371
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1412
- */class tr extends Xo{constructor(t){super(t,"tooltip");this.setTarget(t)}initCustomNode(t){t.target=this.target;if(this.ariaTarget!==undefined){t.ariaTarget=this.ariaTarget}if(this.context!==undefined){t.context=this.context}if(this.manual!==undefined){t.manual=this.manual}if(this.opened!==undefined){t.opened=this.opened}if(this.position!==undefined){t._position=this.position}if(this.shouldShow!==undefined){t.shouldShow=this.shouldShow}this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;if(e){e.ariaTarget=t}}setContext(t){this.context=t;const e=this.node;if(e){e.context=t}}setManual(t){this.manual=t;const e=this.node;if(e){e.manual=t}}setOpened(t){this.opened=t;const e=this.node;if(e){e.opened=t}}setPosition(t){this.position=t;const e=this.node;if(e){e._position=t}}setShouldShow(t){this.shouldShow=t;const e=this.node;if(e){e.shouldShow=t}}setTarget(t){this.target=t;const e=this.node;if(e){e.target=t}}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
1372
+ */class Sr extends Tr{constructor(t){super(t,"tooltip");this.setTarget(t)}initCustomNode(t){t.target=this.target;if(this.ariaTarget!==undefined){t.ariaTarget=this.ariaTarget}if(this.context!==undefined){t.context=this.context}if(this.manual!==undefined){t.manual=this.manual}if(this.opened!==undefined){t.opened=this.opened}if(this.position!==undefined){t._position=this.position}if(this.shouldShow!==undefined){t.shouldShow=this.shouldShow}this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;if(e){e.ariaTarget=t}}setContext(t){this.context=t;const e=this.node;if(e){e.context=t}}setManual(t){this.manual=t;const e=this.node;if(e){e.manual=t}}setOpened(t){this.opened=t;const e=this.node;if(e){e.opened=t}}setPosition(t){this.position=t;const e=this.node;if(e){e._position=t}}setShouldShow(t){this.shouldShow=t;const e=this.node;if(e){e.shouldShow=t}}setTarget(t){this.target=t;const e=this.node;if(e){e.target=t}}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
1413
1373
  /**
1414
1374
  * @license
1415
1375
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1416
1376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1417
- */const er=m`
1377
+ */const Mr=m`
1418
1378
  :host {
1419
1379
  display: inline-block;
1420
1380
  position: relative;
@@ -1474,7 +1434,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1474
1434
  outline-color: GrayText;
1475
1435
  }
1476
1436
  }
1477
- `;const ir=t=>t`
1437
+ `;const zr=t=>t`
1478
1438
  <div class="vaadin-button-container">
1479
1439
  <span part="prefix" aria-hidden="true">
1480
1440
  <slot name="prefix"></slot>
@@ -1488,15 +1448,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1488
1448
  </div>
1489
1449
  <slot name="tooltip"></slot>
1490
1450
  `
1491
- /**
1492
- * @license
1493
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1494
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1495
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1496
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1497
- * Code distributed by Google as part of the polymer project is also
1498
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1499
- */;let sr=0;let or=0;const rr=[];let nr=false;function ar(){nr=false;const t=rr.length;for(let e=0;e<t;e++){const t=rr[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}rr.splice(0,t);or+=t}const lr={run(t){if(!nr){nr=true;queueMicrotask((()=>ar()))}rr.push(t);const e=sr;sr+=1;return e},cancel(t){const e=t-or;if(e>=0){if(!rr[e]){throw new Error(`invalid async handle: ${t}`)}rr[e]=null}}};
1500
1451
  /**
1501
1452
  @license
1502
1453
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1505,47 +1456,47 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1505
1456
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1506
1457
  Code distributed by Google as part of the polymer project is also
1507
1458
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1508
- */const hr=false;const cr=t=>t;const ur=typeof document.head.style.touchAction==="string";const dr="__polymerGestures";const fr="__polymerGesturesHandled";const pr="__polymerGesturesTouchAction";const mr=25;const br=5;const vr=2;const gr=["mousedown","mousemove","mouseup","click"];const yr=[0,1,4,2];const wr=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return false}}();function xr(t){return gr.indexOf(t)>-1}let _r=false;(function(){try{const t=Object.defineProperty({},"passive",{get(){_r=true}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(t){}})();function kr(t){if(xr(t)||t==="touchend"){return}if(ur&&_r&&hr){return{passive:true}}}const Ar=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u);const Cr={button:true,command:true,fieldset:true,input:true,keygen:true,optgroup:true,option:true,select:true,textarea:true};function Dr(t){const e=t.type;if(!xr(e)){return false}if(e==="mousemove"){let e=t.buttons===undefined?1:t.buttons;if(t instanceof window.MouseEvent&&!wr){e=yr[t.which]||0}return Boolean(e&1)}const i=t.button===undefined?0:t.button;return i===0}function Tr(t){if(t.type==="click"){if(t.detail===0){return true}const e=Ir(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE){return true}const i=e.getBoundingClientRect();const s=t.pageX,o=t.pageY;return!(s>=i.left&&s<=i.right&&o>=i.top&&o<=i.bottom)}return false}const Sr={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:false}};function Mr(t){let e="auto";const i=zr(t);for(let t=0,s;t<i.length;t++){s=i[t];if(s[pr]){e=s[pr];break}}return e}function Nr(t,e,i){t.movefn=e;t.upfn=i;document.addEventListener("mousemove",e);document.addEventListener("mouseup",i)}function Er(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null}const zr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[];const Pr={};const Fr=[];function Or(t,e){let i=document.elementFromPoint(t,e);let s=i;while(s&&s.shadowRoot&&!window.ShadyDOM){const o=s;s=s.shadowRoot.elementFromPoint(t,e);if(o===s){break}if(s){i=s}}return i}function Ir(t){const e=zr(t);return e.length>0?e[0]:t.target}function Br(t){const e=t.type;const i=t.currentTarget;const s=i[dr];if(!s){return}const o=s[e];if(!o){return}if(!t[fr]){t[fr]={};if(e.startsWith("touch")){const i=t.changedTouches[0];if(e==="touchstart"){if(t.touches.length===1){Sr.touch.id=i.identifier}}if(Sr.touch.id!==i.identifier){return}if(!ur){if(e==="touchstart"||e==="touchmove"){Rr(t)}}}}const r=t[fr];if(r.skip){return}for(let e=0,i;e<Fr.length;e++){i=Fr[e];if(o[i.name]&&!r[i.name]){if(i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset){i.reset()}}}for(let i=0,s;i<Fr.length;i++){s=Fr[i];if(o[s.name]&&!r[s.name]){r[s.name]=true;s[e](t)}}}function Rr(t){const e=t.changedTouches[0];const i=t.type;if(i==="touchstart"){Sr.touch.x=e.clientX;Sr.touch.y=e.clientY;Sr.touch.scrollDecided=false}else if(i==="touchmove"){if(Sr.touch.scrollDecided){return}Sr.touch.scrollDecided=true;const i=Mr(t);let s=false;const o=Math.abs(Sr.touch.x-e.clientX);const r=Math.abs(Sr.touch.y-e.clientY);if(!t.cancelable);else if(i==="none"){s=true}else if(i==="pan-x"){s=r>o}else if(i==="pan-y"){s=o>r}if(s){t.preventDefault()}else{Gr("track")}}}function jr(t,e,i){if(Pr[e]){Wr(t,e,i);return true}return false}function Wr(t,e,i){const s=Pr[e];const o=s.deps;const r=s.name;let n=t[dr];if(!n){t[dr]=n={}}for(let e=0,i,s;e<o.length;e++){i=o[e];if(Ar&&xr(i)&&i!=="click"){continue}s=n[i];if(!s){n[i]=s={_count:0}}if(s._count===0){t.addEventListener(i,Br,kr(i))}s[r]=(s[r]||0)+1;s._count=(s._count||0)+1}t.addEventListener(e,i);if(s.touchAction){Ur(t,s.touchAction)}}function Lr(t){Fr.push(t);t.emits.forEach((e=>{Pr[e]=t}))}function $r(t){for(let e=0,i;e<Fr.length;e++){i=Fr[e];for(let e=0,s;e<i.emits.length;e++){s=i.emits[e];if(s===t){return i}}}return null}function Ur(t,e){if(ur&&t instanceof HTMLElement){lr.run((()=>{t.style.touchAction=e}))}t[pr]=e}function Hr(t,e,i){const s=new Event(e,{bubbles:true,cancelable:true,composed:true});s.detail=i;cr(t).dispatchEvent(s);if(s.defaultPrevented){const t=i.preventer||i.sourceEvent;if(t&&t.preventDefault){t.preventDefault()}}}function Gr(t){const e=$r(t);if(e.info){e.info.prevent=true}}Lr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Er(this.info)},mousedown(t){if(!Dr(t)){return}const e=Ir(t);const i=this;const s=t=>{if(!Dr(t)){qr("up",e,t);Er(i.info)}};const o=t=>{if(Dr(t)){qr("up",e,t)}Er(i.info)};Nr(this.info,s,o);qr("down",e,t)},touchstart(t){qr("down",Ir(t),t.changedTouches[0],t)},touchend(t){qr("up",Ir(t),t.changedTouches[0],t)}});function qr(t,e,i,s){if(!e){return}Hr(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent(t){return Gr(t)}})}Lr({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:false,moves:[],addMove(t){if(this.moves.length>vr){this.moves.shift()}this.moves.push(t)},movefn:null,upfn:null,prevent:false},reset(){this.info.state="start";this.info.started=false;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=false;Er(this.info)},mousedown(t){if(!Dr(t)){return}const e=Ir(t);const i=this;const s=t=>{const s=t.clientX,o=t.clientY;if(Yr(i.info,s,o)){i.info.state=i.info.started?t.type==="mouseup"?"end":"track":"start";if(i.info.state==="start"){Gr("tap")}i.info.addMove({x:s,y:o});if(!Dr(t)){i.info.state="end";Er(i.info)}if(e){Vr(i.info,e,t)}i.info.started=true}};const o=t=>{if(i.info.started){s(t)}Er(i.info)};Nr(this.info,s,o);this.info.x=t.clientX;this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchmove(t){const e=Ir(t);const i=t.changedTouches[0];const s=i.clientX,o=i.clientY;if(Yr(this.info,s,o)){if(this.info.state==="start"){Gr("tap")}this.info.addMove({x:s,y:o});Vr(this.info,e,i);this.info.state="track";this.info.started=true}},touchend(t){const e=Ir(t);const i=t.changedTouches[0];if(this.info.started){this.info.state="end";this.info.addMove({x:i.clientX,y:i.clientY});Vr(this.info,e,i)}}});function Yr(t,e,i){if(t.prevent){return false}if(t.started){return true}const s=Math.abs(t.x-e);const o=Math.abs(t.y-i);return s>=br||o>=br}function Vr(t,e,i){if(!e){return}const s=t.moves[t.moves.length-2];const o=t.moves[t.moves.length-1];const r=o.x-t.x;const n=o.y-t.y;let a,l=0;if(s){a=o.x-s.x;l=o.y-s.y}Hr(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:i,hover(){return Or(i.clientX,i.clientY)}})}Lr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:false},reset(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=false},mousedown(t){if(Dr(t)){this.info.x=t.clientX;this.info.y=t.clientY}},click(t){if(Dr(t)){Jr(this.info,t)}},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchend(t){Jr(this.info,t.changedTouches[0],t)}});function Jr(t,e,i){const s=Math.abs(e.clientX-t.x);const o=Math.abs(e.clientY-t.y);const r=Ir(i||e);if(!r||Cr[r.localName]&&r.hasAttribute("disabled")){return}if(isNaN(s)||isNaN(o)||s<=mr&&o<=mr||Tr(e)){if(!t.prevent){Hr(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}}}
1459
+ */;const Er=false;const Pr=t=>t;const Fr=typeof document.head.style.touchAction==="string";const Nr="__polymerGestures";const Or="__polymerGesturesHandled";const Br="__polymerGesturesTouchAction";const Ir=25;const Rr=5;const jr=2;const Wr=["mousedown","mousemove","mouseup","click"];const Lr=[0,1,4,2];const Ur=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return false}}();function Hr(t){return Wr.indexOf(t)>-1}let Gr=false;(function(){try{const t=Object.defineProperty({},"passive",{get(){Gr=true}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(t){}})();function $r(t){if(Hr(t)||t==="touchend"){return}if(Fr&&Gr&&Er){return{passive:true}}}const qr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u);const Yr={button:true,command:true,fieldset:true,input:true,keygen:true,optgroup:true,option:true,select:true,textarea:true};function Vr(t){const e=t.type;if(!Hr(e)){return false}if(e==="mousemove"){let e=t.buttons===undefined?1:t.buttons;if(t instanceof window.MouseEvent&&!Ur){e=Lr[t.which]||0}return Boolean(e&1)}const i=t.button===undefined?0:t.button;return i===0}function Jr(t){if(t.type==="click"){if(t.detail===0){return true}const e=ro(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE){return true}const i=e.getBoundingClientRect();const s=t.pageX,r=t.pageY;return!(s>=i.left&&s<=i.right&&r>=i.top&&r<=i.bottom)}return false}const Kr={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:false}};function Zr(t){let e="auto";const i=to(t);for(let t=0,s;t<i.length;t++){s=i[t];if(s[Br]){e=s[Br];break}}return e}function Qr(t,e,i){t.movefn=e;t.upfn=i;document.addEventListener("mousemove",e);document.addEventListener("mouseup",i)}function Xr(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null}const to=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[];const eo={};const io=[];function so(t,e){let i=document.elementFromPoint(t,e);let s=i;while(s&&s.shadowRoot&&!window.ShadyDOM){const r=s;s=s.shadowRoot.elementFromPoint(t,e);if(r===s){break}if(s){i=s}}return i}function ro(t){const e=to(t);return e.length>0?e[0]:t.target}function oo(t){const e=t.type;const i=t.currentTarget;const s=i[Nr];if(!s){return}const r=s[e];if(!r){return}if(!t[Or]){t[Or]={};if(e.startsWith("touch")){const i=t.changedTouches[0];if(e==="touchstart"){if(t.touches.length===1){Kr.touch.id=i.identifier}}if(Kr.touch.id!==i.identifier){return}if(!Fr){if(e==="touchstart"||e==="touchmove"){no(t)}}}}const o=t[Or];if(o.skip){return}for(let e=0,i;e<io.length;e++){i=io[e];if(r[i.name]&&!o[i.name]){if(i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset){i.reset()}}}for(let i=0,s;i<io.length;i++){s=io[i];if(r[s.name]&&!o[s.name]){o[s.name]=true;s[e](t)}}}function no(t){const e=t.changedTouches[0];const i=t.type;if(i==="touchstart"){Kr.touch.x=e.clientX;Kr.touch.y=e.clientY;Kr.touch.scrollDecided=false}else if(i==="touchmove"){if(Kr.touch.scrollDecided){return}Kr.touch.scrollDecided=true;const i=Zr(t);let s=false;const r=Math.abs(Kr.touch.x-e.clientX);const o=Math.abs(Kr.touch.y-e.clientY);if(!t.cancelable);else if(i==="none"){s=true}else if(i==="pan-x"){s=o>r}else if(i==="pan-y"){s=r>o}if(s){t.preventDefault()}else{po("track")}}}function ao(t,e,i){if(eo[e]){lo(t,e,i);return true}return false}function lo(t,e,i){const s=eo[e];const r=s.deps;const o=s.name;let n=t[Nr];if(!n){t[Nr]=n={}}for(let e=0,i,s;e<r.length;e++){i=r[e];if(qr&&Hr(i)&&i!=="click"){continue}s=n[i];if(!s){n[i]=s={_count:0}}if(s._count===0){t.addEventListener(i,oo,$r(i))}s[o]=(s[o]||0)+1;s._count=(s._count||0)+1}t.addEventListener(e,i);if(s.touchAction){uo(t,s.touchAction)}}function ho(t){io.push(t);t.emits.forEach((e=>{eo[e]=t}))}function co(t){for(let e=0,i;e<io.length;e++){i=io[e];for(let e=0,s;e<i.emits.length;e++){s=i.emits[e];if(s===t){return i}}}return null}function uo(t,e){if(Fr&&t instanceof HTMLElement){ur.run((()=>{t.style.touchAction=e}))}t[Br]=e}function fo(t,e,i){const s=new Event(e,{bubbles:true,cancelable:true,composed:true});s.detail=i;Pr(t).dispatchEvent(s);if(s.defaultPrevented){const t=i.preventer||i.sourceEvent;if(t&&t.preventDefault){t.preventDefault()}}}function po(t){const e=co(t);if(e.info){e.info.prevent=true}}ho({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Xr(this.info)},mousedown(t){if(!Vr(t)){return}const e=ro(t);const i=this;const s=t=>{if(!Vr(t)){mo("up",e,t);Xr(i.info)}};const r=t=>{if(Vr(t)){mo("up",e,t)}Xr(i.info)};Qr(this.info,s,r);mo("down",e,t)},touchstart(t){mo("down",ro(t),t.changedTouches[0],t)},touchend(t){mo("up",ro(t),t.changedTouches[0],t)}});function mo(t,e,i,s){if(!e){return}fo(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent(t){return po(t)}})}ho({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:false,moves:[],addMove(t){if(this.moves.length>jr){this.moves.shift()}this.moves.push(t)},movefn:null,upfn:null,prevent:false},reset(){this.info.state="start";this.info.started=false;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=false;Xr(this.info)},mousedown(t){if(!Vr(t)){return}const e=ro(t);const i=this;const s=t=>{const s=t.clientX,r=t.clientY;if(vo(i.info,s,r)){i.info.state=i.info.started?t.type==="mouseup"?"end":"track":"start";if(i.info.state==="start"){po("tap")}i.info.addMove({x:s,y:r});if(!Vr(t)){i.info.state="end";Xr(i.info)}if(e){bo(i.info,e,t)}i.info.started=true}};const r=t=>{if(i.info.started){s(t)}Xr(i.info)};Qr(this.info,s,r);this.info.x=t.clientX;this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchmove(t){const e=ro(t);const i=t.changedTouches[0];const s=i.clientX,r=i.clientY;if(vo(this.info,s,r)){if(this.info.state==="start"){po("tap")}this.info.addMove({x:s,y:r});bo(this.info,e,i);this.info.state="track";this.info.started=true}},touchend(t){const e=ro(t);const i=t.changedTouches[0];if(this.info.started){this.info.state="end";this.info.addMove({x:i.clientX,y:i.clientY});bo(this.info,e,i)}}});function vo(t,e,i){if(t.prevent){return false}if(t.started){return true}const s=Math.abs(t.x-e);const r=Math.abs(t.y-i);return s>=Rr||r>=Rr}function bo(t,e,i){if(!e){return}const s=t.moves[t.moves.length-2];const r=t.moves[t.moves.length-1];const o=r.x-t.x;const n=r.y-t.y;let a,l=0;if(s){a=r.x-s.x;l=r.y-s.y}fo(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o,dy:n,ddx:a,ddy:l,sourceEvent:i,hover(){return so(i.clientX,i.clientY)}})}ho({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:false},reset(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=false},mousedown(t){if(Vr(t)){this.info.x=t.clientX;this.info.y=t.clientY}},click(t){if(Vr(t)){go(this.info,t)}},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchend(t){go(this.info,t.changedTouches[0],t)}});function go(t,e,i){const s=Math.abs(e.clientX-t.x);const r=Math.abs(e.clientY-t.y);const o=ro(i||e);if(!o||Yr[o.localName]&&o.hasAttribute("disabled")){return}if(isNaN(s)||isNaN(r)||s<=Ir&&r<=Ir||Jr(e)){if(!t.prevent){fo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}}}
1509
1460
  /**
1510
1461
  * @license
1511
1462
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1512
1463
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1513
- */const Kr=ce((t=>class e extends t{static get properties(){return{disabled:{type:Boolean,value:false,observer:"_disabledChanged",reflectToAttribute:true}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){if(t){this.setAttribute("aria-disabled","true")}else{this.removeAttribute("aria-disabled")}}click(){if(!this.disabled){super.click()}}}));
1464
+ */const yo=ae((t=>class e extends t{static get properties(){return{disabled:{type:Boolean,value:false,observer:"_disabledChanged",reflectToAttribute:true}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){if(t){this.setAttribute("aria-disabled","true")}else{this.removeAttribute("aria-disabled")}}click(){if(!this.disabled){super.click()}}}));
1514
1465
  /**
1515
1466
  * @license
1516
1467
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1517
1468
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1518
- */const Zr=ce((t=>class e extends t{ready(){super.ready();this.addEventListener("keydown",(t=>{this._onKeyDown(t)}));this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}));
1469
+ */const wo=ae((t=>class e extends t{ready(){super.ready();this.addEventListener("keydown",(t=>{this._onKeyDown(t)}));this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}));
1519
1470
  /**
1520
1471
  * @license
1521
1472
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1522
1473
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1523
- */const Qr=t=>class e extends(Kr(Zr(t))){get _activeKeys(){return[" "]}ready(){super.ready();jr(this,"down",(t=>{if(this._shouldSetActive(t)){this._setActive(true)}}));jr(this,"up",(()=>{this._setActive(false)}))}disconnectedCallback(){super.disconnectedCallback();this._setActive(false)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t);if(this._shouldSetActive(t)&&this._activeKeys.includes(t.key)){this._setActive(true);document.addEventListener("keyup",(t=>{if(this._activeKeys.includes(t.key)){this._setActive(false)}}),{once:true})}}_setActive(t){this.toggleAttribute("active",t)}}
1474
+ */const xo=t=>class e extends(yo(wo(t))){get _activeKeys(){return[" "]}ready(){super.ready();ao(this,"down",(t=>{if(this._shouldSetActive(t)){this._setActive(true)}}));ao(this,"up",(()=>{this._setActive(false)}))}disconnectedCallback(){super.disconnectedCallback();this._setActive(false)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t);if(this._shouldSetActive(t)&&this._activeKeys.includes(t.key)){this._setActive(true);document.addEventListener("keyup",(t=>{if(this._activeKeys.includes(t.key)){this._setActive(false)}}),{once:true})}}_setActive(t){this.toggleAttribute("active",t)}}
1524
1475
  /**
1525
1476
  * @license
1526
1477
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1527
1478
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1528
- */;let Xr=false;window.addEventListener("keydown",(()=>{Xr=true}),{capture:true});window.addEventListener("mousedown",(()=>{Xr=false}),{capture:true});function tn(){let t=document.activeElement||document.body;while(t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}return t}function en(){return Xr}function sn(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none"){return true}const i=window.getComputedStyle(t);if(i.visibility==="hidden"||i.display==="none"){return true}return false}function on(t,e){const i=Math.max(t.tabIndex,0);const s=Math.max(e.tabIndex,0);return i===0||s===0?s>i:i>s}function rn(t,e){const i=[];while(t.length>0&&e.length>0){if(on(t[0],e[0])){i.push(e.shift())}else{i.push(t.shift())}}return i.concat(t,e)}function nn(t){const e=t.length;if(e<2){return t}const i=Math.ceil(e/2);const s=nn(t.slice(0,i));const o=nn(t.slice(i));return rn(s,o)}function an(t){if(t.matches('[tabindex="-1"]')){return false}if(t.matches("input, select, textarea, button, object")){return t.matches(":not([disabled])")}return t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function ln(t){return t.getRootNode().activeElement===t}function hn(t){if(!an(t)){return-1}const e=t.getAttribute("tabindex")||0;return Number(e)}function cn(t,e){if(t.nodeType!==Node.ELEMENT_NODE||sn(t)){return false}const i=t;const s=hn(i);let o=s>0;if(s>=0){e.push(i)}let r=[];if(i.localName==="slot"){r=i.assignedNodes({flatten:true})}else{r=(i.shadowRoot||i).children}[...r].forEach((t=>{o=cn(t,e)||o}));return o}function un(t){const e=[];const i=cn(t,e);if(i){return nn(e)}return e}
1479
+ */;let _o=false;window.addEventListener("keydown",(()=>{_o=true}),{capture:true});window.addEventListener("mousedown",(()=>{_o=false}),{capture:true});function ko(){let t=document.activeElement||document.body;while(t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}return t}function Ao(){return _o}function Co(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none"){return true}const i=window.getComputedStyle(t);if(i.visibility==="hidden"||i.display==="none"){return true}return false}function Do(t,e){const i=Math.max(t.tabIndex,0);const s=Math.max(e.tabIndex,0);return i===0||s===0?s>i:i>s}function To(t,e){const i=[];while(t.length>0&&e.length>0){if(Do(t[0],e[0])){i.push(e.shift())}else{i.push(t.shift())}}return i.concat(t,e)}function So(t){const e=t.length;if(e<2){return t}const i=Math.ceil(e/2);const s=So(t.slice(0,i));const r=So(t.slice(i));return To(s,r)}function Mo(t){if(t.matches('[tabindex="-1"]')){return false}if(t.matches("input, select, textarea, button, object")){return t.matches(":not([disabled])")}return t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function zo(t){return t.getRootNode().activeElement===t}function Eo(t){if(!Mo(t)){return-1}const e=t.getAttribute("tabindex")||0;return Number(e)}function Po(t,e){if(t.nodeType!==Node.ELEMENT_NODE||Co(t)){return false}const i=t;const s=Eo(i);let r=s>0;if(s>=0){e.push(i)}let o=[];if(i.localName==="slot"){o=i.assignedNodes({flatten:true})}else{o=(i.shadowRoot||i).children}[...o].forEach((t=>{r=Po(t,e)||r}));return r}function Fo(t){const e=[];const i=Po(t,e);if(i){return So(e)}return e}
1529
1480
  /**
1530
1481
  * @license
1531
1482
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1532
1483
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1533
- */const dn=ce((t=>class e extends t{get _keyboardActive(){return en()}ready(){this.addEventListener("focusin",(t=>{if(this._shouldSetFocus(t)){this._setFocused(true)}}));this.addEventListener("focusout",(t=>{if(this._shouldRemoveFocus(t)){this._setFocused(false)}}));super.ready()}disconnectedCallback(){super.disconnectedCallback();if(this.hasAttribute("focused")){this._setFocused(false)}}_setFocused(t){this.toggleAttribute("focused",t);this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return true}_shouldRemoveFocus(t){return true}}));
1484
+ */const No=ae((t=>class e extends t{get _keyboardActive(){return Ao()}ready(){this.addEventListener("focusin",(t=>{if(this._shouldSetFocus(t)){this._setFocused(true)}}));this.addEventListener("focusout",(t=>{if(this._shouldRemoveFocus(t)){this._setFocused(false)}}));super.ready()}disconnectedCallback(){super.disconnectedCallback();if(this.hasAttribute("focused")){this._setFocused(false)}}_setFocused(t){this.toggleAttribute("focused",t);this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return true}_shouldRemoveFocus(t){return true}}));
1534
1485
  /**
1535
1486
  * @license
1536
1487
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1537
1488
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1538
- */const fn=t=>class e extends(Kr(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:true,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e);if(t){if(this.tabindex!==undefined){this._lastTabIndex=this.tabindex}this.tabindex=-1}else if(e){this.tabindex=this._lastTabIndex}}_tabindexChanged(t){if(this.disabled&&t!==-1){this._lastTabIndex=t;this.tabindex=-1}}}
1489
+ */const Oo=t=>class e extends(yo(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:true,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e);if(t){if(this.tabindex!==undefined){this._lastTabIndex=this.tabindex}this.tabindex=-1}else if(e){this.tabindex=this._lastTabIndex}}_tabindexChanged(t){if(this.disabled&&t!==-1){this._lastTabIndex=t;this.tabindex=-1}}}
1539
1490
  /**
1540
1491
  * @license
1541
1492
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1542
1493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1543
- */;const pn=t=>class e extends(Qr(fn(dn(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:true}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready();if(!this.hasAttribute("role")){this.setAttribute("role","button")}}_onKeyDown(t){super._onKeyDown(t);if(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey){return}if(this._activeKeys.includes(t.key)){t.preventDefault();this.click()}}}
1494
+ */;const Bo=t=>class e extends(xo(Oo(No(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:true}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready();if(!this.hasAttribute("role")){this.setAttribute("role","button")}}_onKeyDown(t){super._onKeyDown(t);if(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey){return}if(this._activeKeys.includes(t.key)){t.preventDefault();this.click()}}}
1544
1495
  /**
1545
1496
  * @license
1546
1497
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1547
1498
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1548
- */;po("vaadin-button",er,{moduleId:"vaadin-button-styles"});class mn extends(pn(Vo(xo(ko(Fs))))){static get is(){return"vaadin-button"}static get template(){return ir(zs)}ready(){super.ready();this._tooltipController=new tr(this);this.addController(this._tooltipController)}}Ao(mn);Xs("vaadin-date-picker-year",m`
1499
+ */;_t("vaadin-button",Mr,{moduleId:"vaadin-button-styles"});class Io extends(Bo(br(Mt(qs(Es))))){static get is(){return"vaadin-button"}static get template(){return zr(Ms)}ready(){super.ready();this._tooltipController=new Sr(this);this.addController(this._tooltipController)}}a(Io);_t("vaadin-date-picker-year",m`
1549
1500
  :host([current]) [part='year-number'] {
1550
1501
  color: var(--lumo-primary-text-color);
1551
1502
  }
@@ -1569,7 +1520,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1569
1520
  color: var(--lumo-disabled-text-color);
1570
1521
  content: '\\2022';
1571
1522
  }
1572
- `,{moduleId:"lumo-date-picker-year"});Xs("vaadin-date-picker-overlay-content",m`
1523
+ `,{moduleId:"lumo-date-picker-year"});_t("vaadin-date-picker-overlay-content",m`
1573
1524
  :host {
1574
1525
  position: relative;
1575
1526
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -1719,7 +1670,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1719
1670
  padding-left: 50px;
1720
1671
  }
1721
1672
  }
1722
- `,{moduleId:"lumo-date-picker-overlay-content"});Xs("vaadin-month-calendar",m`
1673
+ `,{moduleId:"lumo-date-picker-overlay-content"});_t("vaadin-month-calendar",m`
1723
1674
  :host {
1724
1675
  -moz-user-select: none;
1725
1676
  -webkit-user-select: none;
@@ -1859,12 +1810,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1859
1810
  :host([disabled]) * {
1860
1811
  color: var(--lumo-disabled-text-color) !important;
1861
1812
  }
1862
- `,{moduleId:"lumo-month-calendar"});const bn=document.createElement("template");bn.innerHTML=`\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n`;document.head.appendChild(bn.content);
1813
+ `,{moduleId:"lumo-month-calendar"});const Ro=document.createElement("template");Ro.innerHTML=`\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n`;document.head.appendChild(Ro.content);
1863
1814
  /**
1864
1815
  * @license
1865
1816
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1866
1817
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1867
- */const vn=m`
1818
+ */const jo=m`
1868
1819
  @font-face {
1869
1820
  font-family: 'lumo-icons';
1870
1821
  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==)
@@ -1917,12 +1868,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1917
1868
  --lumo-icons-upload: '\\ea29';
1918
1869
  --lumo-icons-user: '\\ea2a';
1919
1870
  }
1920
- `;xt("font-icons",vn);
1871
+ `;Et("font-icons",jo);
1921
1872
  /**
1922
1873
  * @license
1923
1874
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1924
1875
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1925
- */const gn=m`
1876
+ */const Wo=m`
1926
1877
  [part$='button'] {
1927
1878
  flex: none;
1928
1879
  width: 1em;
@@ -1949,12 +1900,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1949
1900
  font-family: 'lumo-icons';
1950
1901
  display: block;
1951
1902
  }
1952
- `;yt("",gn,{moduleId:"lumo-field-button"});
1903
+ `;_t("",Wo,{moduleId:"lumo-field-button"});
1953
1904
  /**
1954
1905
  * @license
1955
1906
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1956
1907
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1957
- */const yn=m`
1908
+ */const Lo=m`
1958
1909
  :host([has-helper]) [part='helper-text']::before {
1959
1910
  content: '';
1960
1911
  display: block;
@@ -2010,7 +1961,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2010
1961
  * @license
2011
1962
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2012
1963
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2013
- */;const wn=m`
1964
+ */;const Uo=m`
2014
1965
  [part='label'] {
2015
1966
  align-self: flex-start;
2016
1967
  color: var(--lumo-secondary-text-color);
@@ -2106,12 +2057,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2106
2057
  margin-left: 0;
2107
2058
  margin-right: calc(var(--lumo-border-radius-m) / 4);
2108
2059
  }
2109
- `;yt("",wn,{moduleId:"lumo-required-field"});
2060
+ `;_t("",Uo,{moduleId:"lumo-required-field"});
2110
2061
  /**
2111
2062
  * @license
2112
2063
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2113
2064
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2114
- */const xn=m`
2065
+ */const Ho=m`
2115
2066
  :host {
2116
2067
  --lumo-text-field-size: var(--lumo-size-m);
2117
2068
  color: var(--lumo-body-text-color);
@@ -2245,7 +2196,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2245
2196
  [part='clear-button']::before {
2246
2197
  content: var(--lumo-icons-cross);
2247
2198
  }
2248
- `;const _n=[wn,gn,yn,xn];yt("",_n,{moduleId:"lumo-input-field-shared-styles"});const kn=m`
2199
+ `;const Go=[Uo,Wo,Lo,Ho];_t("",Go,{moduleId:"lumo-input-field-shared-styles"});const $o=m`
2249
2200
  :host {
2250
2201
  outline: none;
2251
2202
  }
@@ -2271,17 +2222,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2271
2222
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2272
2223
  --_lumo-text-field-overflow-mask-image: none;
2273
2224
  }
2274
- `;Xs("vaadin-date-picker",[_n,kn],{moduleId:"lumo-date-picker"});
2275
- /**
2276
- * @license
2277
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2278
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2279
- */function An(t){const e=customElements.get(t.is);if(!e){customElements.define(t.is,t)}else{const i=e.version;if(i&&t.version&&i===t.version){console.warn(`The component ${t.is} has been loaded twice`)}else{console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}}
2280
- /**
2281
- * @license
2282
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2283
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2284
- */const Cn=[];function Dn(t,e,i=t.getAttribute("dir")){if(e){t.setAttribute("dir",e)}else if(i!=null){t.removeAttribute("dir")}}function Tn(){return document.documentElement.getAttribute("dir")}function Sn(){const t=Tn();Cn.forEach((e=>{Dn(e,t)}))}const Mn=new MutationObserver(Sn);Mn.observe(document.documentElement,{attributes:true,attributeFilter:["dir"]});const Nn=t=>class e extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:true,converter:{fromAttribute:t=>!t?"":t,toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback();if(!this.hasAttribute("dir")||this.__restoreSubscription){this.__subscribe();Dn(this,Tn(),null)}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t!=="dir"){return}const s=Tn();const o=i===s&&Cn.indexOf(this)===-1;const r=!i&&e&&Cn.indexOf(this)===-1;const n=i!==s&&e===s;if(o||r){this.__subscribe();Dn(this,s,i)}else if(n){this.__unsubscribe()}}disconnectedCallback(){super.disconnectedCallback();this.__restoreSubscription=Cn.includes(this);this.__unsubscribe()}_valueToNodeAttribute(t,e,i){if(i==="dir"&&e===""&&!t.hasAttribute("dir")){return}super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){if(t==="dir"&&!e){this.dir=""}else{super._attributeToProperty(t,e,i)}}__subscribe(){if(!Cn.includes(this)){Cn.push(this)}}__unsubscribe(){if(Cn.includes(this)){Cn.splice(Cn.indexOf(this),1)}}}
2225
+ `;_t("vaadin-date-picker",[Go,$o],{moduleId:"lumo-date-picker"});
2285
2226
  /**
2286
2227
  @license
2287
2228
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2290,67 +2231,57 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2290
2231
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2291
2232
  Code distributed by Google as part of the polymer project is also
2292
2233
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2293
- */;let En=false;let zn=[];let Pn=[];function Fn(){En=true;requestAnimationFrame((function(){En=false;On(zn);setTimeout((function(){In(Pn)}))}))}function On(t){while(t.length){Bn(t.shift())}}function In(t){for(let e=0,i=t.length;e<i;e++){Bn(t.shift())}}function Bn(t){const e=t[0];const i=t[1];const s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}function Rn(t,e,i){if(!En){Fn()}Pn.push([t,e,i])}
2234
+ */let qo=false;let Yo=[];let Vo=[];function Jo(){qo=true;requestAnimationFrame((function(){qo=false;Ko(Yo);setTimeout((function(){Zo(Vo)}))}))}function Ko(t){while(t.length){Qo(t.shift())}}function Zo(t){for(let e=0,i=t.length;e<i;e++){Qo(t.shift())}}function Qo(t){const e=t[0];const i=t[1];const s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}function Xo(t,e,i){if(!qo){Jo()}Vo.push([t,e,i])}
2294
2235
  /**
2295
2236
  * @license
2296
2237
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2297
2238
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2298
- */const jn=t=>t.test(navigator.userAgent);const Wn=t=>t.test(navigator.platform);const Ln=t=>t.test(navigator.vendor);jn(/Android/u);jn(/Chrome/u)&&Ln(/Google Inc/u);jn(/Firefox/u);const $n=Wn(/^iPad/u)||Wn(/^Mac/u)&&navigator.maxTouchPoints>1;const Un=Wn(/^iPhone/u);const Hn=Un||$n;jn(/^((?!chrome|android).)*safari/iu);(()=>{try{document.createEvent("TouchEvent");return true}catch(t){return false}})();
2239
+ */const tn=t=>t.test(navigator.userAgent);const en=t=>t.test(navigator.platform);const sn=t=>t.test(navigator.vendor);tn(/Android/u);tn(/Chrome/u)&&sn(/Google Inc/u);const rn=tn(/Firefox/u);const on=en(/^iPad/u)||en(/^Mac/u)&&navigator.maxTouchPoints>1;const nn=en(/^iPhone/u);const an=nn||on;tn(/^((?!chrome|android).)*safari/iu);const ln=(()=>{try{document.createEvent("TouchEvent");return true}catch(t){return false}})();
2299
2240
  /**
2300
2241
  * @license
2301
2242
  * Copyright (c) 2017 Anton Korzunov
2302
2243
  * SPDX-License-Identifier: MIT
2303
- */let Gn=new WeakMap;let qn=new WeakMap;let Yn={};let Vn=0;const Jn=t=>t&&t.nodeType===Node.ELEMENT_NODE;const Kn=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};const Zn=(t,e)=>{if(!Jn(t)){Kn(t,"is not a valid element");return[]}return e.map((e=>{if(!Jn(e)){Kn(e,"is not a valid element");return null}let i=e;while(i&&i!==t){if(t.contains(i)){return e}i=i.getRootNode().host}Kn(e,"is not contained inside",t);return null})).filter((t=>Boolean(t)))};const Qn=(t,e,i,s)=>{const o=Zn(e,Array.isArray(t)?t:[t]);if(!Yn[i]){Yn[i]=new WeakMap}const r=Yn[i];const n=[];const a=new Set;const l=new Set(o);const h=t=>{if(!t||a.has(t)){return}a.add(t);const e=t.assignedSlot;if(e){h(e)}h(t.parentNode||t.host)};o.forEach(h);const c=t=>{if(!t||l.has(t)){return}const e=t.shadowRoot;const o=e?[...t.children,...e.children]:[...t.children];o.forEach((t=>{if(["template","script","style"].includes(t.localName)){return}if(a.has(t)){c(t)}else{const e=t.getAttribute(s);const o=e!==null&&e!=="false";const a=(Gn.get(t)||0)+1;const l=(r.get(t)||0)+1;Gn.set(t,a);r.set(t,l);n.push(t);if(a===1&&o){qn.set(t,true)}if(l===1){t.setAttribute(i,"true")}if(!o){t.setAttribute(s,"true")}}}))};c(e);a.clear();Vn+=1;return()=>{n.forEach((t=>{const e=Gn.get(t)-1;const o=r.get(t)-1;Gn.set(t,e);r.set(t,o);if(!e){if(qn.has(t)){qn.delete(t)}else{t.removeAttribute(s)}}if(!o){t.removeAttribute(i)}}));Vn-=1;if(!Vn){Gn=new WeakMap;Gn=new WeakMap;qn=new WeakMap;Yn={}}}};const Xn=(t,e=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);if(e){s.push(...Array.from(e.querySelectorAll("[aria-live]")))}return Qn(s,e,i,"aria-hidden")};
2304
- /**
2305
- * @license
2306
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2307
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2308
- */class ta{constructor(t,e){this.host=t;this.callback=typeof e==="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Xn(t)}close(){if(this.__showOthers){this.__showOthers();this.__showOthers=null}}}
2244
+ */let hn=new WeakMap;let cn=new WeakMap;let un={};let dn=0;const fn=t=>t&&t.nodeType===Node.ELEMENT_NODE;const pn=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};const mn=(t,e)=>{if(!fn(t)){pn(t,"is not a valid element");return[]}return e.map((e=>{if(!fn(e)){pn(e,"is not a valid element");return null}let i=e;while(i&&i!==t){if(t.contains(i)){return e}i=i.getRootNode().host}pn(e,"is not contained inside",t);return null})).filter((t=>Boolean(t)))};const vn=(t,e,i,s)=>{const r=mn(e,Array.isArray(t)?t:[t]);if(!un[i]){un[i]=new WeakMap}const o=un[i];const n=[];const a=new Set;const l=new Set(r);const h=t=>{if(!t||a.has(t)){return}a.add(t);const e=t.assignedSlot;if(e){h(e)}h(t.parentNode||t.host)};r.forEach(h);const c=t=>{if(!t||l.has(t)){return}const e=t.shadowRoot;const r=e?[...t.children,...e.children]:[...t.children];r.forEach((t=>{if(["template","script","style"].includes(t.localName)){return}if(a.has(t)){c(t)}else{const e=t.getAttribute(s);const r=e!==null&&e!=="false";const a=(hn.get(t)||0)+1;const l=(o.get(t)||0)+1;hn.set(t,a);o.set(t,l);n.push(t);if(a===1&&r){cn.set(t,true)}if(l===1){t.setAttribute(i,"true")}if(!r){t.setAttribute(s,"true")}}}))};c(e);a.clear();dn+=1;return()=>{n.forEach((t=>{const e=hn.get(t)-1;const r=o.get(t)-1;hn.set(t,e);o.set(t,r);if(!e){if(cn.has(t)){cn.delete(t)}else{t.removeAttribute(s)}}if(!r){t.removeAttribute(i)}}));dn-=1;if(!dn){hn=new WeakMap;hn=new WeakMap;cn=new WeakMap;un={}}}};const bn=(t,e=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);if(e){s.push(...Array.from(e.querySelectorAll("[aria-live]")))}return vn(s,e,i,"aria-hidden")};
2309
2245
  /**
2310
2246
  * @license
2311
2247
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2312
2248
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2313
- */class ea{saveFocus(t){this.focusNode=t||tn()}restoreFocus(){const t=this.focusNode;if(!t){return}if(tn()===document.body){setTimeout((()=>t.focus()))}else{t.focus()}this.focusNode=null}}
2249
+ */class gn{constructor(t,e){this.host=t;this.callback=typeof e==="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=bn(t)}close(){if(this.__showOthers){this.__showOthers();this.__showOthers=null}}}
2314
2250
  /**
2315
2251
  * @license
2316
2252
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2317
2253
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2318
- */const ia=[];class sa{constructor(t){this.host=t;this.__trapNode=null;this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return un(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(ln).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){this.__trapNode=t;if(this.__focusableElements.length===0){this.__trapNode=null;throw new Error("The trap node should have at least one focusable descendant or be focusable itself.")}ia.push(this);if(this.__focusedElementIndex===-1){this.__focusableElements[0].focus()}}releaseFocus(){this.__trapNode=null;ia.pop()}__onKeyDown(t){if(!this.__trapNode){return}if(this!==Array.from(ia).pop()){return}if(t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=false){const e=this.__focusableElements;const i=t?-1:1;const s=this.__focusedElementIndex;const o=(e.length+s+i)%e.length;const r=e[o];r.focus();if(r.localName==="input"){r.select()}}}
2254
+ */class yn{saveFocus(t){this.focusNode=t||ko()}restoreFocus(){const t=this.focusNode;if(!t){return}if(ko()===document.body){setTimeout((()=>t.focus()))}else{t.focus()}this.focusNode=null}}
2319
2255
  /**
2320
2256
  * @license
2321
2257
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2322
2258
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2323
- */const oa=ce((t=>{if(typeof t.prototype.addController==="function"){return t}return class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}}));
2259
+ */const wn=[];class xn{constructor(t){this.host=t;this.__trapNode=null;this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Fo(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(zo).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){this.__trapNode=t;if(this.__focusableElements.length===0){this.__trapNode=null;throw new Error("The trap node should have at least one focusable descendant or be focusable itself.")}wn.push(this);if(this.__focusedElementIndex===-1){this.__focusableElements[0].focus()}}releaseFocus(){this.__trapNode=null;wn.pop()}__onKeyDown(t){if(!this.__trapNode){return}if(this!==Array.from(wn).pop()){return}if(t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=false){const e=this.__focusableElements;const i=t?-1:1;const s=this.__focusedElementIndex;const r=(e.length+s+i)%e.length;const o=e[r];o.focus();if(o.localName==="input"){o.select()}}}
2324
2260
  /**
2325
2261
  * @license
2326
2262
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2327
2263
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2328
- */const ra=t=>class e extends(oa(t)){static get properties(){return{focusTrap:{type:Boolean,value:false},restoreFocusOnClose:{type:Boolean,value:false},restoreFocusNode:{type:HTMLElement}}}constructor(){super();this.__ariaModalController=new ta(this);this.__focusTrapController=new sa(this);this.__focusRestorationController=new ea}ready(){super.ready();this.addController(this.__ariaModalController);this.addController(this.__focusTrapController);this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap){this.__ariaModalController.close();this.__focusTrapController.releaseFocus()}if(this.restoreFocusOnClose&&this._shouldRestoreFocus()){this.__focusRestorationController.restoreFocus()}}_saveFocus(){if(this.restoreFocusOnClose){this.__focusRestorationController.saveFocus(this.restoreFocusNode)}}_trapFocus(){if(this.focusTrap){this.__ariaModalController.showModal();this.__focusTrapController.trapFocus(this.$.overlay)}}_shouldRestoreFocus(){const t=tn();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t)){return true}let e=t;const i=t.ownerDocument;while(e&&e!==i&&e!==this){e=e.parentNode||e.host}return e===this}}
2264
+ */const _n=t=>class e extends(qs(t)){static get properties(){return{focusTrap:{type:Boolean,value:false},restoreFocusOnClose:{type:Boolean,value:false},restoreFocusNode:{type:HTMLElement}}}constructor(){super();this.__ariaModalController=new gn(this);this.__focusTrapController=new xn(this);this.__focusRestorationController=new yn}ready(){super.ready();this.addController(this.__ariaModalController);this.addController(this.__focusTrapController);this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap){this.__ariaModalController.close();this.__focusTrapController.releaseFocus()}if(this.restoreFocusOnClose&&this._shouldRestoreFocus()){this.__focusRestorationController.restoreFocus()}}_saveFocus(){if(this.restoreFocusOnClose){this.__focusRestorationController.saveFocus(this.restoreFocusNode)}}_trapFocus(){if(this.focusTrap){this.__ariaModalController.showModal();this.__focusTrapController.trapFocus(this.$.overlay)}}_shouldRestoreFocus(){const t=ko();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t)){return true}let e=t;const i=t.ownerDocument;while(e&&e!==i&&e!==this){e=e.parentNode||e.host}return e===this}}
2329
2265
  /**
2330
2266
  * @license
2331
2267
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2332
2268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2333
- */;const na=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0));const aa=t=>t===na().pop();const la=t=>class e extends t{constructor(){super();this._hasOverlayStackMixin=true}get _last(){return aa(this)}bringToFront(){let t="";const e=na().filter((t=>t!==this)).pop();if(e){const i=e.__zIndex;t=i+1}this.style.zIndex=t;this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){if(document.body.style.pointerEvents!=="none"){this._previousDocumentPointerEvents=document.body.style.pointerEvents;document.body.style.pointerEvents="none"}na().forEach((t=>{if(t!==this){t.$.overlay.style.pointerEvents="none"}}))}_exitModalState(){if(this._previousDocumentPointerEvents!==undefined){document.body.style.pointerEvents=this._previousDocumentPointerEvents;delete this._previousDocumentPointerEvents}const t=na();let e;while(e=t.pop()){if(e===this){continue}e.$.overlay.style.removeProperty("pointer-events");if(!e.modeless){break}}}}
2269
+ */;const kn=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0));const An=t=>t===kn().pop();const Cn=t=>class e extends t{constructor(){super();this._hasOverlayStackMixin=true}get _last(){return An(this)}bringToFront(){let t="";const e=kn().filter((t=>t!==this)).pop();if(e){const i=e.__zIndex;t=i+1}this.style.zIndex=t;this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){if(document.body.style.pointerEvents!=="none"){this._previousDocumentPointerEvents=document.body.style.pointerEvents;document.body.style.pointerEvents="none"}kn().forEach((t=>{if(t!==this){t.$.overlay.style.pointerEvents="none"}}))}_exitModalState(){if(this._previousDocumentPointerEvents!==undefined){document.body.style.pointerEvents=this._previousDocumentPointerEvents;delete this._previousDocumentPointerEvents}const t=kn();let e;while(e=t.pop()){if(e===this){continue}e.$.overlay.style.removeProperty("pointer-events");if(!e.modeless){break}}}}
2334
2270
  /**
2335
2271
  * @license
2336
2272
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2337
2273
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2338
- */;const ha=t=>class e extends(ra(la(t))){static get properties(){return{opened:{type:Boolean,notify:true,observer:"_openedChanged",reflectToAttribute:true},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:false,reflectToAttribute:true,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:true,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:false,reflectToAttribute:true}}}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);if(Hn){this._boundIosResizeListener=()=>this._detectIosNavbar()}}ready(){super.ready();this.addEventListener("click",(()=>{}));this.$.backdrop.addEventListener("click",(()=>{}))}connectedCallback(){super.connectedCallback();if(this._boundIosResizeListener){this._detectIosNavbar();window.addEventListener("resize",this._boundIosResizeListener)}}disconnectedCallback(){super.disconnectedCallback();if(this._boundIosResizeListener){window.removeEventListener("resize",this._boundIosResizeListener)}}requestContentUpdate(){if(this.renderer){this.renderer.call(this.owner,this,this.owner,this.model)}}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(!e.defaultPrevented){this.opened=false}}_detectIosNavbar(){if(!this.opened){return}const t=window.innerHeight;const e=window.innerWidth;const i=e>t;const s=document.documentElement.clientHeight;if(i&&s>t){this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-t}px`)}else{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,true)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener);document.removeEventListener("mouseup",this._boundMouseUpListener);document.documentElement.removeEventListener("click",this._boundOutsideClickListener,true)}_rendererOrDataChanged(t,e,i,s){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i;this._oldOwner=e;const r=this._oldRenderer!==t;this._oldRenderer=t;const n=this._oldOpened!==s;this._oldOpened=s;if(r){this.innerHTML="";delete this._$litPart$}if(s&&t&&(r||n||o)){this.requestContentUpdate()}}_modelessChanged(t){if(!t){if(this.opened){this._addGlobalListeners();this._enterModalState()}}else{this._removeGlobalListeners();this._exitModalState()}}_openedChanged(t,e){if(t){this._saveFocus();this._animatedOpening();Rn(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:true});this.dispatchEvent(t)}));document.addEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._addGlobalListeners()}}else if(e){this._resetFocus();this._animatedClosing();document.removeEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._removeGlobalListeners()}}}_hiddenChanged(t){if(t&&this.hasAttribute("closing")){this._flushAnimation("closing")}}_shouldAnimate(){const t=getComputedStyle(this);const e=t.getPropertyValue("animation-name");const i=t.getPropertyValue("display")==="none";return!i&&e&&e!=="none"}_enqueueAnimation(t,e){const i=`__${t}Handler`;const s=t=>{if(t&&t.target!==this){return}e();this.removeEventListener("animationend",s);delete this[i]};this[i]=s;this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;if(typeof this[e]==="function"){this[e]()}}_animatedOpening(){if(this.parentNode===document.body&&this.hasAttribute("closing")){this._flushAnimation("closing")}this._attachOverlay();if(!this.modeless){this._enterModalState()}this.setAttribute("opening","");if(this._shouldAnimate()){this._enqueueAnimation("opening",(()=>{this._finishOpening()}))}else{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(){if(this.hasAttribute("opening")){this._flushAnimation("opening")}if(this._placeholder){this._exitModalState();this.setAttribute("closing","");this.dispatchEvent(new CustomEvent("vaadin-overlay-closing"));if(this._shouldAnimate()){this._enqueueAnimation("closing",(()=>{this._finishClosing()}))}else{this._finishClosing()}}}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder);this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=false;this._mouseUpInside=false;return}if(!this._shouldCloseOnOutsideClick(t)){return}const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}_keydownListener(t){if(!this._last){return}if(this.modeless&&!t.composedPath().includes(this.$.overlay)){return}if(t.key==="Escape"){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}}}
2339
- /**
2340
- * @license
2341
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2342
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2343
- */;function ca(t){const e=[];while(t){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t);t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}
2274
+ */;const Dn=t=>class e extends(_n(Cn(t))){static get properties(){return{opened:{type:Boolean,notify:true,observer:"_openedChanged",reflectToAttribute:true},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:false,reflectToAttribute:true,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:true,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:false,reflectToAttribute:true}}}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);if(an){this._boundIosResizeListener=()=>this._detectIosNavbar()}}ready(){super.ready();this.addEventListener("click",(()=>{}));this.$.backdrop.addEventListener("click",(()=>{}))}connectedCallback(){super.connectedCallback();if(this._boundIosResizeListener){this._detectIosNavbar();window.addEventListener("resize",this._boundIosResizeListener)}}disconnectedCallback(){super.disconnectedCallback();if(this._boundIosResizeListener){window.removeEventListener("resize",this._boundIosResizeListener)}}requestContentUpdate(){if(this.renderer){this.renderer.call(this.owner,this,this.owner,this.model)}}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(!e.defaultPrevented){this.opened=false}}_detectIosNavbar(){if(!this.opened){return}const t=window.innerHeight;const e=window.innerWidth;const i=e>t;const s=document.documentElement.clientHeight;if(i&&s>t){this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-t}px`)}else{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,true)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener);document.removeEventListener("mouseup",this._boundMouseUpListener);document.documentElement.removeEventListener("click",this._boundOutsideClickListener,true)}_rendererOrDataChanged(t,e,i,s){const r=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i;this._oldOwner=e;const o=this._oldRenderer!==t;this._oldRenderer=t;const n=this._oldOpened!==s;this._oldOpened=s;if(o){this.innerHTML="";delete this._$litPart$}if(s&&t&&(o||n||r)){this.requestContentUpdate()}}_modelessChanged(t){if(!t){if(this.opened){this._addGlobalListeners();this._enterModalState()}}else{this._removeGlobalListeners();this._exitModalState()}}_openedChanged(t,e){if(t){this._saveFocus();this._animatedOpening();Xo(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:true});this.dispatchEvent(t)}));document.addEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._addGlobalListeners()}}else if(e){this._resetFocus();this._animatedClosing();document.removeEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._removeGlobalListeners()}}}_hiddenChanged(t){if(t&&this.hasAttribute("closing")){this._flushAnimation("closing")}}_shouldAnimate(){const t=getComputedStyle(this);const e=t.getPropertyValue("animation-name");const i=t.getPropertyValue("display")==="none";return!i&&e&&e!=="none"}_enqueueAnimation(t,e){const i=`__${t}Handler`;const s=t=>{if(t&&t.target!==this){return}e();this.removeEventListener("animationend",s);delete this[i]};this[i]=s;this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;if(typeof this[e]==="function"){this[e]()}}_animatedOpening(){if(this.parentNode===document.body&&this.hasAttribute("closing")){this._flushAnimation("closing")}this._attachOverlay();if(!this.modeless){this._enterModalState()}this.setAttribute("opening","");if(this._shouldAnimate()){this._enqueueAnimation("opening",(()=>{this._finishOpening()}))}else{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(){if(this.hasAttribute("opening")){this._flushAnimation("opening")}if(this._placeholder){this._exitModalState();this.setAttribute("closing","");this.dispatchEvent(new CustomEvent("vaadin-overlay-closing"));if(this._shouldAnimate()){this._enqueueAnimation("closing",(()=>{this._finishClosing()}))}else{this._finishClosing()}}}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder);this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=false;this._mouseUpInside=false;return}if(!this._shouldCloseOnOutsideClick(t)){return}const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}_keydownListener(t){if(!this._last){return}if(this.modeless&&!t.composedPath().includes(this.$.overlay)){return}if(t.key==="Escape"){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}}}
2344
2275
  /**
2345
2276
  * @license
2346
2277
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2347
2278
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2348
- */const ua={start:"top",end:"bottom"};const da={start:"left",end:"right"};const fa=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{if(t.target.__overlay){t.target.__overlay._updatePosition()}}))}))}));const pa=t=>class e extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:false},noVerticalOverlap:{type:Boolean,value:false},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();if(this.opened){this.__addUpdatePositionEventListeners()}}disconnectedCallback(){super.disconnectedCallback();this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition);this.__positionTargetAncestorRootNodes=ca(this.positionTarget);this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,true)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition);if(this.__positionTargetAncestorRootNodes){this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,true)}));this.__positionTargetAncestorRootNodes=null}}__overlayOpenedChanged(t,e){this.__removeUpdatePositionEventListeners();if(e){e.__overlay=null;fa.unobserve(e);if(t){this.__addUpdatePositionEventListeners();e.__overlay=this;fa.observe(e)}}if(t){const t=getComputedStyle(this);if(!this.__margins){this.__margins={};["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))}this.setAttribute("dir",t.direction);this._updatePosition();requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){if(!this.contains(t.target)){this._updatePosition()}}_updatePosition(){if(!this.positionTarget||!this.opened){return}const t=this.positionTarget.getBoundingClientRect();const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL;const s=this.__shouldAlignStartHorizontally(t,i);const o=!i&&s||i&&!s;this.style.alignItems=o?"flex-start":"flex-end";const r=this.getBoundingClientRect();const n=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,ua,this,e);const a=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,da,this,s);Object.assign(this.style,n,a);this.toggleAttribute("bottom-aligned",!e);this.toggleAttribute("top-aligned",e);this.toggleAttribute("end-aligned",!o);this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);const o=!e&&this.horizontalAlign==="start"||e&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,s,this.__margins,o,this.noHorizontalOverlap,da)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);const s=this.verticalAlign==="top";return this.__shouldAlignStart(t,e,i,this.__margins,s,this.noVerticalOverlap,ua)}__shouldAlignStart(t,e,i,s,o,r,n){const a=i-t[r?n.end:n.start]-s[n.end];const l=t[r?n.start:n.end]-s[n.start];const h=o?a:l;const c=o?l:a;const u=h>c||h>e;return o===u}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===ua.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>t&&this.__oldViewportHeight){const e=this.__oldViewportHeight-t;s=i-e}this.__oldViewportHeight=t}if(e.end===da.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>t&&this.__oldViewportWidth){const e=this.__oldViewportWidth-t;s=i-e}this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,o,r){const n=r?s.start:s.end;const a=r?s.end:s.start;const l=parseFloat(o.style[n]||getComputedStyle(o)[n]);const h=this.__adjustBottomProperty(n,s,l);const c=e[r?s.start:s.end]-t[i===r?s.end:s.start];const u=h?`${h}px`:`${l+c*(r?-1:1)}px`;return{[n]:u,[a]:""}}}
2279
+ */;const Tn={start:"top",end:"bottom"};const Sn={start:"left",end:"right"};const Mn=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{if(t.target.__overlay){t.target.__overlay._updatePosition()}}))}))}));const zn=t=>class e extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:false},noVerticalOverlap:{type:Boolean,value:false},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();if(this.opened){this.__addUpdatePositionEventListeners()}}disconnectedCallback(){super.disconnectedCallback();this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition);this.__positionTargetAncestorRootNodes=gr(this.positionTarget);this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,true)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition);if(this.__positionTargetAncestorRootNodes){this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,true)}));this.__positionTargetAncestorRootNodes=null}}__overlayOpenedChanged(t,e){this.__removeUpdatePositionEventListeners();if(e){e.__overlay=null;Mn.unobserve(e);if(t){this.__addUpdatePositionEventListeners();e.__overlay=this;Mn.observe(e)}}if(t){const t=getComputedStyle(this);if(!this.__margins){this.__margins={};["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))}this.setAttribute("dir",t.direction);this._updatePosition();requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){if(!this.contains(t.target)){this._updatePosition()}}_updatePosition(){if(!this.positionTarget||!this.opened){return}const t=this.positionTarget.getBoundingClientRect();const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL;const s=this.__shouldAlignStartHorizontally(t,i);const r=!i&&s||i&&!s;this.style.alignItems=r?"flex-start":"flex-end";const o=this.getBoundingClientRect();const n=this.__calculatePositionInOneDimension(t,o,this.noVerticalOverlap,Tn,this,e);const a=this.__calculatePositionInOneDimension(t,o,this.noHorizontalOverlap,Sn,this,s);Object.assign(this.style,n,a);this.toggleAttribute("bottom-aligned",!e);this.toggleAttribute("top-aligned",e);this.toggleAttribute("end-aligned",!r);this.toggleAttribute("start-aligned",r)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);const r=!e&&this.horizontalAlign==="start"||e&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,s,this.__margins,r,this.noHorizontalOverlap,Sn)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);const s=this.verticalAlign==="top";return this.__shouldAlignStart(t,e,i,this.__margins,s,this.noVerticalOverlap,Tn)}__shouldAlignStart(t,e,i,s,r,o,n){const a=i-t[o?n.end:n.start]-s[n.end];const l=t[o?n.start:n.end]-s[n.start];const h=r?a:l;const c=r?l:a;const u=h>c||h>e;return r===u}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Tn.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>t&&this.__oldViewportHeight){const e=this.__oldViewportHeight-t;s=i-e}this.__oldViewportHeight=t}if(e.end===Sn.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>t&&this.__oldViewportWidth){const e=this.__oldViewportWidth-t;s=i-e}this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,r,o){const n=o?s.start:s.end;const a=o?s.end:s.start;const l=parseFloat(r.style[n]||getComputedStyle(r)[n]);const h=this.__adjustBottomProperty(n,s,l);const c=e[o?s.start:s.end]-t[i===o?s.end:s.start];const u=h?`${h}px`:`${l+c*(o?-1:1)}px`;return{[n]:u,[a]:""}}}
2349
2280
  /**
2350
2281
  * @license
2351
2282
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2352
2283
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2353
- */;const ma=m`
2284
+ */;const En=m`
2354
2285
  :host {
2355
2286
  z-index: 200;
2356
2287
  position: fixed;
@@ -2413,7 +2344,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2413
2344
  * @license
2414
2345
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2415
2346
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2416
- */;const ba=m`
2347
+ */;const Pn=m`
2417
2348
  [part='overlay'] {
2418
2349
  display: flex;
2419
2350
  flex: auto;
@@ -2433,67 +2364,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2433
2364
  * @license
2434
2365
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2435
2366
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2436
- */;Xs("vaadin-date-picker-overlay",[ma,ba],{moduleId:"vaadin-date-picker-overlay-styles"});class va extends(pa(ha(Nn(no(Fs))))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return zs`
2367
+ */;_t("vaadin-date-picker-overlay",[En,Pn],{moduleId:"vaadin-date-picker-overlay-styles"});class Fn extends(zn(Dn(Is(Mt(Es))))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ms`
2437
2368
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2438
2369
  <div part="overlay" id="overlay">
2439
2370
  <div part="content" id="content">
2440
2371
  <slot></slot>
2441
2372
  </div>
2442
2373
  </div>
2443
- `}}An(va);
2374
+ `}}a(Fn);
2444
2375
  /**
2445
2376
  * @license
2446
2377
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2447
2378
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2448
- */function ga(t){let e=t.getDay();if(e===0){e=7}const i=4-e;const s=new Date(t.getTime()+i*24*3600*1e3);const o=new Date(0,0);o.setFullYear(s.getFullYear());const r=s.getTime()-o.getTime();const n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function ya(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function wa(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function xa(t,e){return e.filter((t=>t!==undefined)).reduce(((e,i)=>{if(!i){return e}if(!e){return i}const s=Math.abs(t.getTime()-i.getTime());const o=Math.abs(e.getTime()-t.getTime());return s<o?i:e}))}function _a(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function ka(t){const e=new Date;const i=new Date(e);i.setDate(1);i.setMonth(parseInt(t)+e.getMonth());return i}function Aa(t,e,i=0,s=1){if(e>99){throw new Error("The provided year cannot have more than 2 digits.")}if(e<0){throw new Error("The provided year cannot be negative.")}let o=e+Math.floor(t.getFullYear()/100)*100;if(t<new Date(o-50,i,s)){o-=100}else if(t>new Date(o+50,i,s)){o+=100}return o}function Ca(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e){return undefined}const i=new Date(0,0);i.setFullYear(parseInt(e[1],10));i.setMonth(parseInt(e[2],10)-1);i.setDate(parseInt(e[3],10));return i}
2449
- /**
2450
- * @license
2451
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2452
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2453
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2454
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2455
- * Code distributed by Google as part of the polymer project is also
2456
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2457
- */let Da=0;let Ta=0;const Sa=[];let Ma=false;function Na(){Ma=false;const t=Sa.length;for(let e=0;e<t;e++){const t=Sa[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}Sa.splice(0,t);Ta+=t}const Ea={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const za={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){if(window.cancelIdleCallback){window.cancelIdleCallback(t)}else{window.clearTimeout(t)}}};const Pa={run(t){if(!Ma){Ma=true;queueMicrotask((()=>Na()))}Sa.push(t);const e=Da;Da+=1;return e},cancel(t){const e=t-Ta;if(e>=0){if(!Sa[e]){throw new Error(`invalid async handle: ${t}`)}Sa[e]=null}}};
2458
- /**
2459
- * @license
2460
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2461
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2462
- */const Fa=t=>t.test(navigator.userAgent);const Oa=t=>t.test(navigator.platform);const Ia=t=>t.test(navigator.vendor);Fa(/Android/u);Fa(/Chrome/u)&&Ia(/Google Inc/u);const Ba=Fa(/Firefox/u);const Ra=Oa(/^iPad/u)||Oa(/^Mac/u)&&navigator.maxTouchPoints>1;const ja=Oa(/^iPhone/u);const Wa=ja||Ra;Fa(/^((?!chrome|android).)*safari/iu);(()=>{try{document.createEvent("TouchEvent");return true}catch(t){return false}})();
2463
- /**
2464
- @license
2465
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2466
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2467
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2468
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2469
- Code distributed by Google as part of the polymer project is also
2470
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2471
- */const La=new Set;class $a{static debounce(t,e,i){if(t instanceof $a){t._cancelAsync()}else{t=new $a}t.setConfig(e,i);return 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;La.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();La.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}}function Ua(t){La.add(t)}
2472
- /**
2473
- * @license
2474
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2475
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2476
- */let Ha=0;function Ga(){return Ha++}
2379
+ */function Nn(t){let e=t.getDay();if(e===0){e=7}const i=4-e;const s=new Date(t.getTime()+i*24*3600*1e3);const r=new Date(0,0);r.setFullYear(s.getFullYear());const o=s.getTime()-r.getTime();const n=Math.round(o/(24*3600*1e3));return Math.floor(n/7+1)}function On(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function Bn(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function In(t,e){return e.filter((t=>t!==undefined)).reduce(((e,i)=>{if(!i){return e}if(!e){return i}const s=Math.abs(t.getTime()-i.getTime());const r=Math.abs(e.getTime()-t.getTime());return s<r?i:e}))}function Rn(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function jn(t){const e=new Date;const i=new Date(e);i.setDate(1);i.setMonth(parseInt(t)+e.getMonth());return i}function Wn(t,e,i=0,s=1){if(e>99){throw new Error("The provided year cannot have more than 2 digits.")}if(e<0){throw new Error("The provided year cannot be negative.")}let r=e+Math.floor(t.getFullYear()/100)*100;if(t<new Date(r-50,i,s)){r-=100}else if(t>new Date(r+50,i,s)){r+=100}return r}function Ln(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e){return undefined}const i=new Date(0,0);i.setFullYear(parseInt(e[1],10));i.setMonth(parseInt(e[2],10)-1);i.setDate(parseInt(e[3],10));return i}
2477
2380
  /**
2478
2381
  * @license
2479
2382
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2480
2383
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2481
- */const qa=document.createElement("template");qa.innerHTML=`\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n`;class Ya extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"});t.appendChild(qa.content.cloneNode(true));this.bufferSize=20;this._initialScroll=5e5;this._initialIndex=0;this._activated=false}get active(){return this._activated}set active(t){if(t&&!this._activated){this._createPool();this._activated=true}}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height");const 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=true;if(t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2){this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY}else{this._initialIndex=~~t;this._reset();this._scrollDisabled=true;this.$.scroller.scrollTop+=t%1*this.itemHeight;this._scrollDisabled=false}if(this._mayHaveMomentum){this.$.scroller.classList.add("notouchscroll");this._mayHaveMomentum=false;setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10)}}connectedCallback(){if(!this._ready){this._ready=true;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`;if(Ba){this.$.scroller.tabIndex=-1}}}forceUpdate(){if(this._debouncerUpdateClones){this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones();this._debouncerUpdateClones.cancel()}}_createElement(){}_updateElement(t,e){}_finishInit(){if(!this._initDone){this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))}));if(!this._buffers[0].translateY){this._reset()}this._initDone=true;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=false;this._buffers.reverse()}_scroll(){if(this._scrollDisabled){return}const t=this.$.scroller.scrollTop;if(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight){this._initialIndex=~~this.position;this._reset()}const e=this.itemHeight+this.bufferOffset;const i=t>this._buffers[1].translateY+e;const s=t<this._buffers[0].translateY+e;if(i||s){this._translateBuffer(s);this._updateClones()}if(!this._preventScrollEvent){this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:false,composed:true}));this._mayHaveMomentum=true}this._preventScrollEvent=false;this._debouncerScrollFinish=$a.debounce(this._debouncerScrollFinish,Ea.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();if(!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)){this.position=this.position}}))}_reset(){this._scrollDisabled=true;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=false;this._updateClones(true);this._debouncerUpdateClones=$a.debounce(this._debouncerUpdateClones,Ea.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones()}));this._scrollDisabled=false}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`;i.instance={};const s=`vaadin-infinite-scroller-item-content-${Ga()}`;const o=document.createElement("slot");o.setAttribute("name",s);o._itemWrapper=i;e.appendChild(o);i.setAttribute("slot",s);this.appendChild(i);if(this._isVisible(i,t)){this._ensureStampedInstance(i)}}}));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():undefined;this._buffers.forEach(((i,s)=>{if(!i.updated){const o=this._firstIndex+this.bufferSize*s;[...i.children].forEach(((i,s)=>{const r=i._itemWrapper;if(!t||this._isVisible(r,e)){this._updateElement(r.instance,o+s)}}));i.updated=true}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
2384
+ */const Un=document.createElement("template");Un.innerHTML=`\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n`;class Hn extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"});t.appendChild(Un.content.cloneNode(true));this.bufferSize=20;this._initialScroll=5e5;this._initialIndex=0;this._activated=false}get active(){return this._activated}set active(t){if(t&&!this._activated){this._createPool();this._activated=true}}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height");const 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=true;if(t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2){this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY}else{this._initialIndex=~~t;this._reset();this._scrollDisabled=true;this.$.scroller.scrollTop+=t%1*this.itemHeight;this._scrollDisabled=false}if(this._mayHaveMomentum){this.$.scroller.classList.add("notouchscroll");this._mayHaveMomentum=false;setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10)}}connectedCallback(){if(!this._ready){this._ready=true;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`;if(rn){this.$.scroller.tabIndex=-1}}}forceUpdate(){if(this._debouncerUpdateClones){this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones();this._debouncerUpdateClones.cancel()}}_createElement(){}_updateElement(t,e){}_finishInit(){if(!this._initDone){this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))}));if(!this._buffers[0].translateY){this._reset()}this._initDone=true;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=false;this._buffers.reverse()}_scroll(){if(this._scrollDisabled){return}const t=this.$.scroller.scrollTop;if(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight){this._initialIndex=~~this.position;this._reset()}const e=this.itemHeight+this.bufferOffset;const i=t>this._buffers[1].translateY+e;const s=t<this._buffers[0].translateY+e;if(i||s){this._translateBuffer(s);this._updateClones()}if(!this._preventScrollEvent){this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:false,composed:true}));this._mayHaveMomentum=true}this._preventScrollEvent=false;this._debouncerScrollFinish=fr.debounce(this._debouncerScrollFinish,hr.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();if(!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)){this.position=this.position}}))}_reset(){this._scrollDisabled=true;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=false;this._updateClones(true);this._debouncerUpdateClones=fr.debounce(this._debouncerUpdateClones,hr.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones()}));this._scrollDisabled=false}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`;i.instance={};const s=`vaadin-infinite-scroller-item-content-${Dr()}`;const r=document.createElement("slot");r.setAttribute("name",s);r._itemWrapper=i;e.appendChild(r);i.setAttribute("slot",s);this.appendChild(i);if(this._isVisible(i,t)){this._ensureStampedInstance(i)}}}));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():undefined;this._buffers.forEach(((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach(((i,s)=>{const o=i._itemWrapper;if(!t||this._isVisible(o,e)){this._updateElement(o.instance,r+s)}}));i.updated=true}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
2482
2385
  /**
2483
2386
  * @license
2484
2387
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2485
2388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2486
- */const Va=document.createElement("template");Va.innerHTML=`\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n`;class Ja extends Ya{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super();this.bufferSize=3;this.shadowRoot.appendChild(Va.content.cloneNode(true))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=ka(e)}}An(Ja);
2389
+ */const Gn=document.createElement("template");Gn.innerHTML=`\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n`;class $n extends Hn{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super();this.bufferSize=3;this.shadowRoot.appendChild(Gn.content.cloneNode(true))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=jn(e)}}a($n);
2487
2390
  /**
2488
2391
  * @license
2489
2392
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2490
2393
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2491
- */const Ka=document.createElement("template");Ka.innerHTML=`\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n`;class Za extends Ya{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super();this.bufferSize=12;this.shadowRoot.appendChild(Ka.content.cloneNode(true))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date;const i=new Date(e);i.setFullYear(parseInt(t)+e.getFullYear());return i.getFullYear()}}An(Za);
2394
+ */const qn=document.createElement("template");qn.innerHTML=`\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n`;class Yn extends Hn{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super();this.bufferSize=12;this.shadowRoot.appendChild(qn.content.cloneNode(true))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date;const i=new Date(e);i.setFullYear(parseInt(t)+e.getFullYear());return i.getFullYear()}}a(Yn);
2492
2395
  /**
2493
2396
  * @license
2494
2397
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2495
2398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2496
- */class Qa extends(no(Fs)){static get is(){return"vaadin-date-picker-year"}static get template(){return zs`
2399
+ */class Vn extends(Mt(Es)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ms`
2497
2400
  <style>
2498
2401
  :host {
2499
2402
  display: block;
@@ -2502,7 +2405,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2502
2405
  </style>
2503
2406
  <div part="year-number">[[year]]</div>
2504
2407
  <div part="year-separator" aria-hidden="true"></div>
2505
- `}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())}}An(Qa);
2408
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t);this.toggleAttribute("current",t===(new Date).getFullYear())}}a(Vn);
2506
2409
  /**
2507
2410
  @license
2508
2411
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2511,7 +2414,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2511
2414
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2512
2415
  Code distributed by Google as part of the polymer project is also
2513
2416
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2514
- */function Xa(t,e,i,s,o){let r;if(o){r=typeof i==="object"&&i!==null;if(r){s=t.__dataTemp[e]}}let n=s!==i&&(s===s||i===i);if(r&&n){t.__dataTemp[e]=i}return n}const tl=ce((t=>{class e extends t{_shouldPropertyChange(t,e,i){return Xa(this,t,e,i,true)}}return e}));const el=ce((t=>{class e extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return Xa(this,t,e,i,this.mutableData)}}return e}));tl._mutablePropertyChange=Xa;
2417
+ */function Jn(t,e,i,s,r){let o;if(r){o=typeof i==="object"&&i!==null;if(o){s=t.__dataTemp[e]}}let n=s!==i&&(s===s||i===i);if(o&&n){t.__dataTemp[e]=i}return n}const Kn=ae((t=>{class e extends t{_shouldPropertyChange(t,e,i){return Jn(this,t,e,i,true)}}return e}));const Zn=ae((t=>{class e extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return Jn(this,t,e,i,this.mutableData)}}return e}));Kn._mutablePropertyChange=Jn;
2515
2418
  /**
2516
2419
  @license
2517
2420
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2520,7 +2423,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2520
2423
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2521
2424
  Code distributed by Google as part of the polymer project is also
2522
2425
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2523
- */let il=null;function sl(){return il}sl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:sl,writable:true}});const ol=xs(sl);const rl=tl(ol);function nl(t,e){il=t;Object.setPrototypeOf(t,e.prototype);new e;il=null}const al=xs(class{});function ll(t,e){for(let i=0;i<e.length;i++){let s=e[i];if(Boolean(t)!=Boolean(s.__hideTemplateChildren__)){if(s.nodeType===Node.TEXT_NODE){if(t){s.__polymerTextContent__=s.textContent;s.textContent=""}else{s.textContent=s.__polymerTextContent__}}else if(s.localName==="slot"){if(t){s.__polymerReplaced__=document.createComment("hidden-slot");Te(Te(s).parentNode).replaceChild(s.__polymerReplaced__,s)}else{const t=s.__polymerReplaced__;if(t){Te(Te(t).parentNode).replaceChild(s,t)}}}else if(s.style){if(t){s.__polymerDisplay__=s.style.display;s.style.display="none"}else{s.style.display=s.__polymerDisplay__}}}s.__hideTemplateChildren__=t;if(s._showHideChildren){s._showHideChildren(t)}}}class hl extends al{constructor(t){super();this._configureProperties(t);this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling){e.push(t);t.__templatizeInstance=this}if(this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__){this._showHideChildren(true)}let i=this.__templatizeOptions;if(t&&i.instanceProps||!i.instanceProps){this._enableProperties()}}_configureProperties(t){let e=this.__templatizeOptions;if(e.forwardHostProp){for(let t in this.__hostProps){this._setPendingProperty(t,this.__dataHost["_host_"+t])}}for(let e in t){this._setPendingProperty(e,t[e])}}forwardHostProp(t,e){if(this._setPendingPropertyOrPath(t,e,false,true)){this.__dataHost._enqueueClient(this)}}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel){this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this;i(t)}))}else{let s=this.__dataHost.__dataHost;if(s){s._addEventListenerToNode(t,e,i)}}}_showHideChildren(t){ll(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){if(t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"){t.__polymerTextContent__=i}else{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 true}}const cl=tl(hl);function ul(t){let e=t.__dataHost;return e&&e._methodHost||e}function dl(t,e,i){let s=i.mutableData?cl:hl;if(gl.mixin){s=gl.mixin(s)}let o=class extends s{};o.prototype.__templatizeOptions=i;o.prototype._bindTemplate(t);ml(o,t,e,i);return o}function fl(t,e,i,s){let o=i.forwardHostProp;if(o&&e.hasHostProps){const r=t.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(r){let t=i.mutableData?rl:ol;class s extends t{}n=e.templatizeTemplateClass=s}else{const i=t.constructor;class s extends i{}n=e.templatizeTemplateClass=s}let a=e.hostProps;for(let t in a){n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:pl(t,o)});n.prototype._createNotifyingProperty("_host_"+t)}if(ee&&s){yl(e,i,s)}}if(t.__dataProto){Object.assign(t.__data,t.__dataProto)}if(r){nl(t,n);t.__dataTemp={};t.__dataPending=null;t.__dataOld=null;t._enableProperties()}else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i){e="_host_"+e;if(e in t){const i=t[e];delete t[e];t.__data[e]=i}}}}}function pl(t,e){return function t(i,s,o){e.call(i.__templatizeOwner,s.substring("_host_".length),o[s])}}function ml(t,e,i,s){let o=i.hostProps||{};for(let e in s.instanceProps){delete o[e];let i=s.notifyInstanceProp;if(i){t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bl(e,i)})}}if(s.forwardHostProp&&e.__dataHost){for(let e in o){if(!i.hasHostProps){i.hasHostProps=true}t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vl()})}}}function bl(t,e){return function t(i,s,o){e.call(i.__templatizeOwner,i,s,o[s])}}function vl(){return function t(e,i,s){e.__dataHost._setPendingPropertyOrPath("_host_"+i,s[i],true,true)}}function gl(t,e,i){if(Qt&&!ul(t)){throw new Error("strictTemplatePolicy: template owner not trusted")}i=i||{};if(t.__templatizeOwner){throw new Error("A <template> can only be templatized once")}t.__templatizeOwner=e;const s=e?e.constructor:hl;let o=s._parseTemplate(t);let r=o.templatizeInstanceClass;if(!r){r=dl(t,o,i);o.templatizeInstanceClass=r}const n=ul(t);fl(t,o,i,n);let a=class t extends r{};a.prototype._methodHost=n;a.prototype.__dataHost=t;a.prototype.__templatizeOwner=e;a.prototype.__hostProps=o.hostProps;a=a;return a}function yl(t,e,i){const s=i.constructor._properties;const{propertyEffects:o}=t;const{instanceProps:r}=e;for(let t in o){if(!s[t]&&!(r&&r[t])){const e=o[t];for(let i=0;i<e.length;i++){const{part:s}=e[i].info;if(!(s.signature&&s.signature.static)){console.warn(`Property '${t}' used in template but not `+`declared in 'properties'; attribute will not be observed.`);break}}}}}function wl(t,e){let i;while(e){if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost!=t){e=i.__dataHost}else{return i}}else{e=Te(e).parentNode}}return null}
2426
+ */let Qn=null;function Xn(){return Qn}Xn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Xn,writable:true}});const ta=gs(Xn);const ea=Kn(ta);function ia(t,e){Qn=t;Object.setPrototypeOf(t,e.prototype);new e;Qn=null}const sa=gs(class{});function ra(t,e){for(let i=0;i<e.length;i++){let s=e[i];if(Boolean(t)!=Boolean(s.__hideTemplateChildren__)){if(s.nodeType===Node.TEXT_NODE){if(t){s.__polymerTextContent__=s.textContent;s.textContent=""}else{s.textContent=s.__polymerTextContent__}}else if(s.localName==="slot"){if(t){s.__polymerReplaced__=document.createComment("hidden-slot");Ae(Ae(s).parentNode).replaceChild(s.__polymerReplaced__,s)}else{const t=s.__polymerReplaced__;if(t){Ae(Ae(t).parentNode).replaceChild(s,t)}}}else if(s.style){if(t){s.__polymerDisplay__=s.style.display;s.style.display="none"}else{s.style.display=s.__polymerDisplay__}}}s.__hideTemplateChildren__=t;if(s._showHideChildren){s._showHideChildren(t)}}}class oa extends sa{constructor(t){super();this._configureProperties(t);this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling){e.push(t);t.__templatizeInstance=this}if(this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__){this._showHideChildren(true)}let i=this.__templatizeOptions;if(t&&i.instanceProps||!i.instanceProps){this._enableProperties()}}_configureProperties(t){let e=this.__templatizeOptions;if(e.forwardHostProp){for(let t in this.__hostProps){this._setPendingProperty(t,this.__dataHost["_host_"+t])}}for(let e in t){this._setPendingProperty(e,t[e])}}forwardHostProp(t,e){if(this._setPendingPropertyOrPath(t,e,false,true)){this.__dataHost._enqueueClient(this)}}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel){this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this;i(t)}))}else{let s=this.__dataHost.__dataHost;if(s){s._addEventListenerToNode(t,e,i)}}}_showHideChildren(t){ra(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){if(t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"){t.__polymerTextContent__=i}else{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 true}}const na=Kn(oa);function aa(t){let e=t.__dataHost;return e&&e._methodHost||e}function la(t,e,i){let s=i.mutableData?na:oa;if(pa.mixin){s=pa.mixin(s)}let r=class extends s{};r.prototype.__templatizeOptions=i;r.prototype._bindTemplate(t);ua(r,t,e,i);return r}function ha(t,e,i,s){let r=i.forwardHostProp;if(r&&e.hasHostProps){const o=t.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(o){let t=i.mutableData?ea:ta;class s extends t{}n=e.templatizeTemplateClass=s}else{const i=t.constructor;class s extends i{}n=e.templatizeTemplateClass=s}let a=e.hostProps;for(let t in a){n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:ca(t,r)});n.prototype._createNotifyingProperty("_host_"+t)}if(Qt&&s){ma(e,i,s)}}if(t.__dataProto){Object.assign(t.__data,t.__dataProto)}if(o){ia(t,n);t.__dataTemp={};t.__dataPending=null;t.__dataOld=null;t._enableProperties()}else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i){e="_host_"+e;if(e in t){const i=t[e];delete t[e];t.__data[e]=i}}}}}function ca(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,s.substring("_host_".length),r[s])}}function ua(t,e,i,s){let r=i.hostProps||{};for(let e in s.instanceProps){delete r[e];let i=s.notifyInstanceProp;if(i){t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:da(e,i)})}}if(s.forwardHostProp&&e.__dataHost){for(let e in r){if(!i.hasHostProps){i.hasHostProps=true}t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:fa()})}}}function da(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,i,s,r[s])}}function fa(){return function t(e,i,s){e.__dataHost._setPendingPropertyOrPath("_host_"+i,s[i],true,true)}}function pa(t,e,i){if(Jt&&!aa(t)){throw new Error("strictTemplatePolicy: template owner not trusted")}i=i||{};if(t.__templatizeOwner){throw new Error("A <template> can only be templatized once")}t.__templatizeOwner=e;const s=e?e.constructor:oa;let r=s._parseTemplate(t);let o=r.templatizeInstanceClass;if(!o){o=la(t,r,i);r.templatizeInstanceClass=o}const n=aa(t);ha(t,r,i,n);let a=class t extends o{};a.prototype._methodHost=n;a.prototype.__dataHost=t;a.prototype.__templatizeOwner=e;a.prototype.__hostProps=r.hostProps;a=a;return a}function ma(t,e,i){const s=i.constructor._properties;const{propertyEffects:r}=t;const{instanceProps:o}=e;for(let t in r){if(!s[t]&&!(o&&o[t])){const e=r[t];for(let i=0;i<e.length;i++){const{part:s}=e[i].info;if(!(s.signature&&s.signature.static)){console.warn(`Property '${t}' used in template but not `+`declared in 'properties'; attribute will not be observed.`);break}}}}}function va(t,e){let i;while(e){if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost!=t){e=i.__dataHost}else{return i}}else{e=Ae(e).parentNode}}return null}
2524
2427
  /**
2525
2428
  @license
2526
2429
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2529,7 +2432,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2529
2432
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2530
2433
  Code distributed by Google as part of the polymer project is also
2531
2434
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2532
- */class xl{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;_l.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();_l.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}static debounce(t,e,i){if(t instanceof xl){t._cancelAsync()}else{t=new xl}t.setConfig(e,i);return t}}let _l=new Set;const kl=function(t){_l.add(t)};const Al=function(){const t=Boolean(_l.size);_l.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}}));return t};
2435
+ */class ba{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;ga.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();ga.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}static debounce(t,e,i){if(t instanceof ba){t._cancelAsync()}else{t=new ba}t.setConfig(e,i);return t}}let ga=new Set;const ya=function(t){ga.add(t)};const wa=function(){const t=Boolean(ga.size);ga.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}}));return t};
2533
2436
  /**
2534
2437
  @license
2535
2438
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2538,7 +2441,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2538
2441
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2539
2442
  Code distributed by Google as part of the polymer project is also
2540
2443
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2541
- */const Cl=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush();if(window.ShadyCSS&&window.ShadyCSS.ScopingShim){window.ShadyCSS.ScopingShim.flush()}e=Al()}while(t||e)};
2444
+ */const xa=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush();if(window.ShadyCSS&&window.ShadyCSS.ScopingShim){window.ShadyCSS.ScopingShim.flush()}e=wa()}while(t||e)};
2542
2445
  /**
2543
2446
  @license
2544
2447
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2547,7 +2450,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2547
2450
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2548
2451
  Code distributed by Google as part of the polymer project is also
2549
2452
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2550
- */let Dl=false;function Tl(){if(te&&!Vt){if(!Dl){Dl=true;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return true}return false}
2453
+ */let _a=false;function ka(){if(Zt&&!$t){if(!_a){_a=true;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return true}return false}
2551
2454
  /**
2552
2455
  @license
2553
2456
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2556,26 +2459,17 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2556
2459
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2557
2460
  Code distributed by Google as part of the polymer project is also
2558
2461
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2559
- */const Sl=el(Fs);class Ml extends Sl{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:!ae,readOnly:true},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=false;this.__shouldMeasureChunk=false;this.__shouldContinueChunking=false;this.__chunkingId=0;this.__sortFn=null;this.__filterFn=null;this.__observePaths=null;this.__ctor=null;this.__isDetached=true;this.template=null}disconnectedCallback(){super.disconnectedCallback();this.__isDetached=true;for(let t=0;t<this.__instances.length;t++){this.__detachInstance(t)}if(this.__chunkingId){cancelAnimationFrame(this.__chunkingId)}}connectedCallback(){super.connectedCallback();if(!Tl()){this.style.display="none"}if(this.__isDetached){this.__isDetached=false;let t=Te(Te(this).parentNode);for(let e=0;e<this.__instances.length;e++){this.__attachInstance(e,t)}if(this.__chunkingId){this.__render()}}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(this.querySelector("template")){t.disconnect();this.__render()}else{throw new Error("dom-repeat requires a <template> child")}}));t.observe(this,{childList:true});return false}let i={};i[this.as]=true;i[this.indexAs]=true;i[this.itemsIndexAs]=true;this.__ctor=gl(e,this,{mutableData:this.mutableData,parentModel:true,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s=0,o;s<i.length&&(o=i[s]);s++){o.forwardHostProp(t,e)}},notifyInstanceProp:function(t,e,i){if(Pe(this.as,e)){let s=t[this.itemsIndexAs];if(e==this.as){this.items[s]=i}let o=ze(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(o,i)}}})}return true}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t==="string"){let e=t;let i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t);if(this.items){this.__debounceRender(this.__render)}}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t);if(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++){if(t.indexOf(e[i])===0){this.__debounceRender(this.__render,this.delay)}}}}}__itemsChanged(t){if(this.items&&!Array.isArray(this.items)){console.warn("dom-repeat expected array for `items`, found",this.items)}if(!this.__handleItemPath(t.path,t.value)){if(t.path==="items"){this.__itemsArrayChanged=true}this.__debounceRender(this.__render)}}__debounceRender(t,e=0){this.__renderDebouncer=xl.debounce(this.__renderDebouncer,e>0?Ke.after(e):Ze,t.bind(this));kl(this.__renderDebouncer)}render(){this.__debounceRender(this.__render);Cl()}__render(){if(!this.__ensureTemplatized()){return}let t=this.items||[];const e=this.__sortAndFilterItems(t);const i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e);if(this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)){cancelAnimationFrame(this.__chunkingId);this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null;this.__continueChunking()}))}this._setRenderedItemCount(this.__instances.length);if(!ae||this.notifyDomChange){this.dispatchEvent(new CustomEvent("dom-change",{bubbles:true,composed:true}))}}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++){e[i]=i}if(this.__filterFn){e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))}if(this.__sortFn){e.sort(((e,i)=>this.__sortFn(t[e],t[i])))}return e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;if(!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances){e=Math.min(t,this.initialCount);s=Math.max(e-i,0);this.__chunkCount=s||1}else{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()}this.__itemsArrayChanged=false;return e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;const e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}if(this.__shouldContinueChunking){this.__debounceRender(this.__render)}}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o];let r=i[o];let n=t[r];s[r]=o;if(e){e._setPendingProperty(this.as,n);e._setPendingProperty(this.indexAs,o);e._setPendingProperty(this.itemsIndexAs,r);e._flushProperties()}else{this.__insertInstance(n,o,r)}}for(let t=this.__instances.length-1;t>=o;t--){this.__detachAndRemoveInstance(t)}}__detachInstance(t){let e=this.__instances[t];const i=Te(e.root);for(let t=0;t<e.children.length;t++){let s=e.children[t];i.appendChild(s)}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={};s[this.as]=t;s[this.indexAs]=e;s[this.itemsIndexAs]=i;return new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let o=this.__instances[e+1];let r=o?o.children[0]:this;Te(Te(this).parentNode).insertBefore(s.root,r);this.__instances[e]=s;return 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);let s=i.indexOf(".");let o=s<0?i:i.substring(0,s);if(o==parseInt(o,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let r=this.__itemsIdxToInstIdx[o];let n=this.__instances[r];if(n){let i=this.as+(t?"."+t:"");n._setPendingPropertyOrPath(i,e,false,true);n._flushProperties()}return true}}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 wl(this.template,t)}}customElements.define(Ml.is,Ml);
2560
- /**
2561
- @license
2562
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2563
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2564
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2565
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2566
- Code distributed by Google as part of the polymer project is also
2567
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2568
- */const Nl=false;const El=t=>t;const zl=typeof document.head.style.touchAction==="string";const Pl="__polymerGestures";const Fl="__polymerGesturesHandled";const Ol="__polymerGesturesTouchAction";const Il=25;const Bl=5;const Rl=2;const jl=["mousedown","mousemove","mouseup","click"];const Wl=[0,1,4,2];const Ll=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return false}}();function $l(t){return jl.indexOf(t)>-1}let Ul=false;(function(){try{const t=Object.defineProperty({},"passive",{get(){Ul=true}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(t){}})();function Hl(t){if($l(t)||t==="touchend"){return}if(zl&&Ul&&Nl){return{passive:true}}}const Gl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u);const ql={button:true,command:true,fieldset:true,input:true,keygen:true,optgroup:true,option:true,select:true,textarea:true};function Yl(t){const e=t.type;if(!$l(e)){return false}if(e==="mousemove"){let e=t.buttons===undefined?1:t.buttons;if(t instanceof window.MouseEvent&&!Ll){e=Wl[t.which]||0}return Boolean(e&1)}const i=t.button===undefined?0:t.button;return i===0}function Vl(t){if(t.type==="click"){if(t.detail===0){return true}const e=sh(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE){return true}const i=e.getBoundingClientRect();const s=t.pageX,o=t.pageY;return!(s>=i.left&&s<=i.right&&o>=i.top&&o<=i.bottom)}return false}const Jl={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:false}};function Kl(t){let e="auto";const i=Xl(t);for(let t=0,s;t<i.length;t++){s=i[t];if(s[Ol]){e=s[Ol];break}}return e}function Zl(t,e,i){t.movefn=e;t.upfn=i;document.addEventListener("mousemove",e);document.addEventListener("mouseup",i)}function Ql(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null}const Xl=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[];const th={};const eh=[];function ih(t,e){let i=document.elementFromPoint(t,e);let s=i;while(s&&s.shadowRoot&&!window.ShadyDOM){const o=s;s=s.shadowRoot.elementFromPoint(t,e);if(o===s){break}if(s){i=s}}return i}function sh(t){const e=Xl(t);return e.length>0?e[0]:t.target}function oh(t){const e=t.type;const i=t.currentTarget;const s=i[Pl];if(!s){return}const o=s[e];if(!o){return}if(!t[Fl]){t[Fl]={};if(e.startsWith("touch")){const i=t.changedTouches[0];if(e==="touchstart"){if(t.touches.length===1){Jl.touch.id=i.identifier}}if(Jl.touch.id!==i.identifier){return}if(!zl){if(e==="touchstart"||e==="touchmove"){rh(t)}}}}const r=t[Fl];if(r.skip){return}for(let e=0,i;e<eh.length;e++){i=eh[e];if(o[i.name]&&!r[i.name]){if(i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset){i.reset()}}}for(let i=0,s;i<eh.length;i++){s=eh[i];if(o[s.name]&&!r[s.name]){r[s.name]=true;s[e](t)}}}function rh(t){const e=t.changedTouches[0];const i=t.type;if(i==="touchstart"){Jl.touch.x=e.clientX;Jl.touch.y=e.clientY;Jl.touch.scrollDecided=false}else if(i==="touchmove"){if(Jl.touch.scrollDecided){return}Jl.touch.scrollDecided=true;const i=Kl(t);let s=false;const o=Math.abs(Jl.touch.x-e.clientX);const r=Math.abs(Jl.touch.y-e.clientY);if(!t.cancelable);else if(i==="none"){s=true}else if(i==="pan-x"){s=r>o}else if(i==="pan-y"){s=o>r}if(s){t.preventDefault()}else{dh("track")}}}function nh(t,e,i){if(th[e]){ah(t,e,i);return true}return false}function ah(t,e,i){const s=th[e];const o=s.deps;const r=s.name;let n=t[Pl];if(!n){t[Pl]=n={}}for(let e=0,i,s;e<o.length;e++){i=o[e];if(Gl&&$l(i)&&i!=="click"){continue}s=n[i];if(!s){n[i]=s={_count:0}}if(s._count===0){t.addEventListener(i,oh,Hl(i))}s[r]=(s[r]||0)+1;s._count=(s._count||0)+1}t.addEventListener(e,i);if(s.touchAction){ch(t,s.touchAction)}}function lh(t){eh.push(t);t.emits.forEach((e=>{th[e]=t}))}function hh(t){for(let e=0,i;e<eh.length;e++){i=eh[e];for(let e=0,s;e<i.emits.length;e++){s=i.emits[e];if(s===t){return i}}}return null}function ch(t,e){if(zl&&t instanceof HTMLElement){Pa.run((()=>{t.style.touchAction=e}))}t[Ol]=e}function uh(t,e,i){const s=new Event(e,{bubbles:true,cancelable:true,composed:true});s.detail=i;El(t).dispatchEvent(s);if(s.defaultPrevented){const t=i.preventer||i.sourceEvent;if(t&&t.preventDefault){t.preventDefault()}}}function dh(t){const e=hh(t);if(e.info){e.info.prevent=true}}lh({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ql(this.info)},mousedown(t){if(!Yl(t)){return}const e=sh(t);const i=this;const s=t=>{if(!Yl(t)){fh("up",e,t);Ql(i.info)}};const o=t=>{if(Yl(t)){fh("up",e,t)}Ql(i.info)};Zl(this.info,s,o);fh("down",e,t)},touchstart(t){fh("down",sh(t),t.changedTouches[0],t)},touchend(t){fh("up",sh(t),t.changedTouches[0],t)}});function fh(t,e,i,s){if(!e){return}uh(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent(t){return dh(t)}})}lh({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:false,moves:[],addMove(t){if(this.moves.length>Rl){this.moves.shift()}this.moves.push(t)},movefn:null,upfn:null,prevent:false},reset(){this.info.state="start";this.info.started=false;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=false;Ql(this.info)},mousedown(t){if(!Yl(t)){return}const e=sh(t);const i=this;const s=t=>{const s=t.clientX,o=t.clientY;if(ph(i.info,s,o)){i.info.state=i.info.started?t.type==="mouseup"?"end":"track":"start";if(i.info.state==="start"){dh("tap")}i.info.addMove({x:s,y:o});if(!Yl(t)){i.info.state="end";Ql(i.info)}if(e){mh(i.info,e,t)}i.info.started=true}};const o=t=>{if(i.info.started){s(t)}Ql(i.info)};Zl(this.info,s,o);this.info.x=t.clientX;this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchmove(t){const e=sh(t);const i=t.changedTouches[0];const s=i.clientX,o=i.clientY;if(ph(this.info,s,o)){if(this.info.state==="start"){dh("tap")}this.info.addMove({x:s,y:o});mh(this.info,e,i);this.info.state="track";this.info.started=true}},touchend(t){const e=sh(t);const i=t.changedTouches[0];if(this.info.started){this.info.state="end";this.info.addMove({x:i.clientX,y:i.clientY});mh(this.info,e,i)}}});function ph(t,e,i){if(t.prevent){return false}if(t.started){return true}const s=Math.abs(t.x-e);const o=Math.abs(t.y-i);return s>=Bl||o>=Bl}function mh(t,e,i){if(!e){return}const s=t.moves[t.moves.length-2];const o=t.moves[t.moves.length-1];const r=o.x-t.x;const n=o.y-t.y;let a,l=0;if(s){a=o.x-s.x;l=o.y-s.y}uh(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:i,hover(){return ih(i.clientX,i.clientY)}})}lh({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:false},reset(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=false},mousedown(t){if(Yl(t)){this.info.x=t.clientX;this.info.y=t.clientY}},click(t){if(Yl(t)){bh(this.info,t)}},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchend(t){bh(this.info,t.changedTouches[0],t)}});function bh(t,e,i){const s=Math.abs(e.clientX-t.x);const o=Math.abs(e.clientY-t.y);const r=sh(i||e);if(!r||ql[r.localName]&&r.hasAttribute("disabled")){return}if(isNaN(s)||isNaN(o)||s<=Il&&o<=Il||Vl(e)){if(!t.prevent){uh(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}}}
2462
+ */const Aa=Zn(Es);class Ca extends Aa{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:!re,readOnly:true},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=false;this.__shouldMeasureChunk=false;this.__shouldContinueChunking=false;this.__chunkingId=0;this.__sortFn=null;this.__filterFn=null;this.__observePaths=null;this.__ctor=null;this.__isDetached=true;this.template=null}disconnectedCallback(){super.disconnectedCallback();this.__isDetached=true;for(let t=0;t<this.__instances.length;t++){this.__detachInstance(t)}if(this.__chunkingId){cancelAnimationFrame(this.__chunkingId)}}connectedCallback(){super.connectedCallback();if(!ka()){this.style.display="none"}if(this.__isDetached){this.__isDetached=false;let t=Ae(Ae(this).parentNode);for(let e=0;e<this.__instances.length;e++){this.__attachInstance(e,t)}if(this.__chunkingId){this.__render()}}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(this.querySelector("template")){t.disconnect();this.__render()}else{throw new Error("dom-repeat requires a <template> child")}}));t.observe(this,{childList:true});return false}let i={};i[this.as]=true;i[this.indexAs]=true;i[this.itemsIndexAs]=true;this.__ctor=pa(e,this,{mutableData:this.mutableData,parentModel:true,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s=0,r;s<i.length&&(r=i[s]);s++){r.forwardHostProp(t,e)}},notifyInstanceProp:function(t,e,i){if(ze(this.as,e)){let s=t[this.itemsIndexAs];if(e==this.as){this.items[s]=i}let r=Me(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(r,i)}}})}return true}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t==="string"){let e=t;let i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t);if(this.items){this.__debounceRender(this.__render)}}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t);if(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++){if(t.indexOf(e[i])===0){this.__debounceRender(this.__render,this.delay)}}}}}__itemsChanged(t){if(this.items&&!Array.isArray(this.items)){console.warn("dom-repeat expected array for `items`, found",this.items)}if(!this.__handleItemPath(t.path,t.value)){if(t.path==="items"){this.__itemsArrayChanged=true}this.__debounceRender(this.__render)}}__debounceRender(t,e=0){this.__renderDebouncer=ba.debounce(this.__renderDebouncer,e>0?Ye.after(e):Ve,t.bind(this));ya(this.__renderDebouncer)}render(){this.__debounceRender(this.__render);xa()}__render(){if(!this.__ensureTemplatized()){return}let t=this.items||[];const e=this.__sortAndFilterItems(t);const i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e);if(this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)){cancelAnimationFrame(this.__chunkingId);this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null;this.__continueChunking()}))}this._setRenderedItemCount(this.__instances.length);if(!re||this.notifyDomChange){this.dispatchEvent(new CustomEvent("dom-change",{bubbles:true,composed:true}))}}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++){e[i]=i}if(this.__filterFn){e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))}if(this.__sortFn){e.sort(((e,i)=>this.__sortFn(t[e],t[i])))}return e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;if(!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances){e=Math.min(t,this.initialCount);s=Math.max(e-i,0);this.__chunkCount=s||1}else{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()}this.__itemsArrayChanged=false;return e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;const e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}if(this.__shouldContinueChunking){this.__debounceRender(this.__render)}}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let e=this.__instances[r];let o=i[r];let n=t[o];s[o]=r;if(e){e._setPendingProperty(this.as,n);e._setPendingProperty(this.indexAs,r);e._setPendingProperty(this.itemsIndexAs,o);e._flushProperties()}else{this.__insertInstance(n,r,o)}}for(let t=this.__instances.length-1;t>=r;t--){this.__detachAndRemoveInstance(t)}}__detachInstance(t){let e=this.__instances[t];const i=Ae(e.root);for(let t=0;t<e.children.length;t++){let s=e.children[t];i.appendChild(s)}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={};s[this.as]=t;s[this.indexAs]=e;s[this.itemsIndexAs]=i;return new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1];let o=r?r.children[0]:this;Ae(Ae(this).parentNode).insertBefore(s.root,o);this.__instances[e]=s;return 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);let s=i.indexOf(".");let r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let o=this.__itemsIdxToInstIdx[r];let n=this.__instances[o];if(n){let i=this.as+(t?"."+t:"");n._setPendingPropertyOrPath(i,e,false,true);n._flushProperties()}return true}}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 va(this.template,t)}}customElements.define(Ca.is,Ca);
2569
2463
  /**
2570
2464
  * @license
2571
2465
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2572
2466
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2573
- */const vh=t=>class e extends(dn(t)){static get properties(){return{month:{type:Object,value:new Date,sync:true},selectedDate:{type:Object,notify:true,sync:true},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:false},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:true},maxDate:{type:Date,value:null,sync:true},disabled:{type:Boolean,reflectToAttribute:true},_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((t=>ya(t.date,this.focusedDate)))}ready(){super.ready();nh(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const s=new Date(0,0);s.setFullYear(t.getFullYear());s.setMonth(t.getMonth());s.setDate(1);const o=new Date(0,0);o.setFullYear(t.getFullYear());o.setMonth(t.getMonth()+1);o.setDate(0);if(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0){return false}return!wa(s,e,i)&&!wa(o,e,i)}_getTitle(t,e){if(t===undefined||e===undefined){return}return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(t===undefined||e===undefined){return}return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(t===undefined||e===undefined){return[]}const{weekdays:i,weekdaysShort:s,firstDayOfWeek:o}=t;const r=this._applyFirstDayOfWeek(s,o);const n=this._applyFirstDayOfWeek(i,o);return n.map(((t,e)=>({weekDay:t,weekDayShort:r[e]})))}__focusedDateChanged(t,e){if(Array.isArray(e)&&e.some((e=>ya(e,t)))){this.removeAttribute("aria-hidden")}else{this.setAttribute("aria-hidden","true")}}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&e.firstDayOfWeek===1}_isToday(t){return ya(new Date,t)}_getDays(t,e){if(t===undefined||e===undefined){return[]}const i=new Date(0,0);i.setFullYear(t.getFullYear());i.setMonth(t.getMonth());i.setDate(1);while(i.getDay()!==e.firstDayOfWeek){this._dateAdd(i,-1)}const s=[];const o=i.getMonth();const r=t.getMonth();while(i.getMonth()===r||i.getMonth()===o){s.push(i.getMonth()===r?new Date(i.getTime()):null);this._dateAdd(i,1)}return s}_getWeeks(t){return t.reduce(((t,e,i)=>{if(i%7===0){t.push([])}t[t.length-1].push(e);return t}),[])}_handleTap(t){if(!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")){this.selectedDate=t.target.date;this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:true,composed:true}))}}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));return ga(e)}__getDayAriaLabel(t){if(!t){return""}let e=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;if(this._isToday(t)){e+=`, ${this.i18n.today}`}return e}}
2467
+ */const Da=t=>class e extends(No(t)){static get properties(){return{month:{type:Object,value:new Date,sync:true},selectedDate:{type:Object,notify:true,sync:true},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:false},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:true},maxDate:{type:Date,value:null,sync:true},disabled:{type:Boolean,reflectToAttribute:true},_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((t=>On(t.date,this.focusedDate)))}ready(){super.ready();ao(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const s=new Date(0,0);s.setFullYear(t.getFullYear());s.setMonth(t.getMonth());s.setDate(1);const r=new Date(0,0);r.setFullYear(t.getFullYear());r.setMonth(t.getMonth()+1);r.setDate(0);if(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0){return false}return!Bn(s,e,i)&&!Bn(r,e,i)}_getTitle(t,e){if(t===undefined||e===undefined){return}return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(t===undefined||e===undefined){return}return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(t===undefined||e===undefined){return[]}const{weekdays:i,weekdaysShort:s,firstDayOfWeek:r}=t;const o=this._applyFirstDayOfWeek(s,r);const n=this._applyFirstDayOfWeek(i,r);return n.map(((t,e)=>({weekDay:t,weekDayShort:o[e]})))}__focusedDateChanged(t,e){if(Array.isArray(e)&&e.some((e=>On(e,t)))){this.removeAttribute("aria-hidden")}else{this.setAttribute("aria-hidden","true")}}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&e.firstDayOfWeek===1}_isToday(t){return On(new Date,t)}_getDays(t,e){if(t===undefined||e===undefined){return[]}const i=new Date(0,0);i.setFullYear(t.getFullYear());i.setMonth(t.getMonth());i.setDate(1);while(i.getDay()!==e.firstDayOfWeek){this._dateAdd(i,-1)}const s=[];const r=i.getMonth();const o=t.getMonth();while(i.getMonth()===o||i.getMonth()===r){s.push(i.getMonth()===o?new Date(i.getTime()):null);this._dateAdd(i,1)}return s}_getWeeks(t){return t.reduce(((t,e,i)=>{if(i%7===0){t.push([])}t[t.length-1].push(e);return t}),[])}_handleTap(t){if(!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")){this.selectedDate=t.target.date;this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:true,composed:true}))}}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));return Nn(e)}__getDayAriaLabel(t){if(!t){return""}let e=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;if(this._isToday(t)){e+=`, ${this.i18n.today}`}return e}}
2574
2468
  /**
2575
2469
  * @license
2576
2470
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2577
2471
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2578
- */;const gh=m`
2472
+ */;const Ta=m`
2579
2473
  :host {
2580
2474
  display: block;
2581
2475
  }
@@ -2636,7 +2530,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2636
2530
  * @license
2637
2531
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2638
2532
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2639
- */;Xs("vaadin-month-calendar",gh,{moduleId:"vaadin-month-calendar-styles"});class yh extends(vh(no(Fs))){static get template(){return zs`
2533
+ */;_t("vaadin-month-calendar",Ta,{moduleId:"vaadin-month-calendar-styles"});class Sa extends(Da(Mt(Es))){static get template(){return Ms`
2640
2534
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
2641
2535
  <table
2642
2536
  id="monthGrid"
@@ -2678,42 +2572,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2678
2572
  </template>
2679
2573
  </tbody>
2680
2574
  </table>
2681
- `}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:true,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){if(t&&e&&e.firstDayOfWeek===1){this.setAttribute("week-numbers","")}else{this.removeAttribute("week-numbers")}}__getDatePart(t,e,i,s,o){const r=["date"];if(this.__isDayDisabled(t,s,o)){r.push("disabled")}if(this.__isDayFocused(t,e)){r.push("focused")}if(this.__isDaySelected(t,i)){r.push("selected")}if(this._isToday(t)){r.push("today")}return r.join(" ")}__isDayFocused(t,e){return ya(t,e)}__isDaySelected(t,e){return ya(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e)){return"true"}}__isDayDisabled(t,e,i){return!wa(t,e,i)}__getDayAriaDisabled(t,e,i){if(t===undefined||e===undefined||i===undefined){return}if(this.__isDayDisabled(t,e,i)){return"true"}}__getDayTabindex(t,e){if(this.__isDayFocused(t,e)){return"0"}return"-1"}}An(yh);
2682
- /**
2683
- * @license
2684
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2685
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2686
- */const wh=ce((t=>{if(typeof t.prototype.addController==="function"){return t}return class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}}));
2575
+ `}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:true,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){if(t&&e&&e.firstDayOfWeek===1){this.setAttribute("week-numbers","")}else{this.removeAttribute("week-numbers")}}__getDatePart(t,e,i,s,r){const o=["date"];if(this.__isDayDisabled(t,s,r)){o.push("disabled")}if(this.__isDayFocused(t,e)){o.push("focused")}if(this.__isDaySelected(t,i)){o.push("selected")}if(this._isToday(t)){o.push("today")}return o.join(" ")}__isDayFocused(t,e){return On(t,e)}__isDaySelected(t,e){return On(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e)){return"true"}}__isDayDisabled(t,e,i){return!Bn(t,e,i)}__getDayAriaDisabled(t,e,i){if(t===undefined||e===undefined||i===undefined){return}if(this.__isDayDisabled(t,e,i)){return"true"}}__getDayTabindex(t,e){if(this.__isDayFocused(t,e)){return"0"}return"-1"}}a(Sa);
2687
2576
  /**
2688
2577
  * @license
2689
2578
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2690
2579
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2691
- */class xh{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(){if(this._mediaQuery){this._mediaQuery.addListener(this._boundQueryHandler)}}_removeListener(){if(this._mediaQuery){this._mediaQuery.removeListener(this._boundQueryHandler)}this._mediaQuery=null}_queryHandler(t){if(typeof this.callback==="function"){this.callback(t.matches)}}}
2692
- /**
2693
- * @license
2694
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2695
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2696
- */function _h(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}
2697
- /**
2698
- * @license
2699
- * Copyright (c) 2023 Vaadin Ltd.
2700
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2701
- */class kh{constructor(t,e){this.slot=t;this.callback=e;this._storedNodes=[];this._connected=false;this._scheduled=false;this._boundSchedule=()=>{this._schedule()};this.connect();this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule);this._connected=true}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule);this._connected=false}_schedule(){if(!this._scheduled){this._scheduled=true;queueMicrotask((()=>{this.flush()}))}}flush(){if(!this._connected){return}this._scheduled=false;this._processNodes()}_processNodes(){const t=this.slot.assignedNodes({flatten:true});let e=[];const i=[];const s=[];if(t.length){e=t.filter((t=>!this._storedNodes.includes(t)))}if(this._storedNodes.length){this._storedNodes.forEach(((e,o)=>{const r=t.indexOf(e);if(r===-1){i.push(e)}else if(r!==o){s.push(e)}}))}if(e.length||i.length||s.length){this.callback({addedNodes:e,movedNodes:s,removedNodes:i})}this._storedNodes=t}}
2702
- /**
2703
- * @license
2704
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2705
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2706
- */class Ah extends EventTarget{static generateId(t,e){const i=e||"default";return`${i}-${t.localName}-${Ga()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:n,useUniqueId:a}=s;this.host=t;this.slotName=e;this.tagName=i;this.observe=typeof n==="boolean"?n:true;this.multiple=typeof r==="boolean"?r:false;this.slotInitializer=o;if(r){this.nodes=[]}if(a){this.defaultId=this.constructor.generateId(t,e)}}hostConnected(){if(!this.initialized){if(this.multiple){this.initMultiple()}else{this.initSingle()}if(this.observe){this.observeSlot()}this.initialized=true}}initSingle(){let t=this.getSlotChild();if(!t){t=this.attachDefaultNode();this.initNode(t)}else{this.node=t;this.initAddedNode(t)}}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const t=this.attachDefaultNode();if(t){this.nodes=[t];this.initNode(t)}}else{this.nodes=t;t.forEach((t=>{this.initAddedNode(t)}))}}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;if(!s&&i){s=document.createElement(i);if(s instanceof Element){if(e!==""){s.setAttribute("slot",e)}this.node=s;this.defaultNode=s}}if(s){t.appendChild(s)}return 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;if(e){e(t,this.host)}}initCustomNode(t){}teardownNode(t){}initAddedNode(t){if(t!==this.defaultNode){this.initCustomNode(t);this.initNode(t)}}observeSlot(){const{slotName:t}=this;const e=t===""?"slot:not([name])":`slot[name=${t}]`;const i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new kh(i,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node];const s=t.filter((t=>!_h(t)&&!i.includes(t)));if(e.length){this.nodes=i.filter((t=>!e.includes(t)));e.forEach((t=>{this.teardownNode(t)}))}if(s&&s.length>0){if(this.multiple){if(this.defaultNode){this.defaultNode.remove()}this.nodes=[...i,...s].filter((t=>t!==this.defaultNode));s.forEach((t=>{this.initAddedNode(t)}))}else{if(this.node){this.node.remove()}this.node=s[0];this.initAddedNode(this.node)}}}))}}
2580
+ */class Ma{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(){if(this._mediaQuery){this._mediaQuery.addListener(this._boundQueryHandler)}}_removeListener(){if(this._mediaQuery){this._mediaQuery.removeListener(this._boundQueryHandler)}this._mediaQuery=null}_queryHandler(t){if(typeof this.callback==="function"){this.callback(t.matches)}}}
2707
2581
  /**
2708
2582
  * @license
2709
2583
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2710
2584
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2711
- */const Ch=t=>class e extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:true},focusedDate:{type:Object,notify:true,observer:"_focusedDateChanged",sync:true},_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:false},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:true},maxDate:{type:Object,sync:true},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((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){ch(this.$.scrollers,"pan-y");nh(this.$.scrollers,"track",this._track.bind(this));nh(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this));nh(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this));nh(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new xh(this._desktopMediaQuery,(t=>{this._desktopMode=t})));this.addController(new Ah(this,"today-button","vaadin-button",{observe:false,initializer:t=>{t.setAttribute("theme","tertiary");t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t)));nh(t,"tap",this._onTodayTap.bind(this));this._todayButton=t}}));this.addController(new Ah(this,"cancel-button","vaadin-button",{observe:false,initializer:t=>{t.setAttribute("theme","tertiary");t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t)));nh(t,"tap",this._cancel.bind(this));this._cancelButton=t}}));this.__initMonthScroller();this.__initYearScroller()}reset(){this._closeYearScroller();this._toggleAnimateClass(true)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e);this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ah(this,"months","vaadin-date-picker-month-scroller",{observe:false,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()}));t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()}));t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)}));t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))}));this.calendars=t}));this._monthScroller=t}}))}__initYearScroller(){this.addController(new Ah(this,"years","vaadin-date-picker-year-scroller",{observe:false,initializer:t=>{t.setAttribute("aria-hidden","true");nh(t,"tap",(t=>{this._onYearTap(t)}));t.addEventListener("custom-scroll",(()=>{this._onYearScroll()}));t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()}));t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}));this._yearScroller=t}}))}__updateCancelButton(t,e){if(t){t.textContent=e&&e.cancel}}__updateTodayButton(t,e,i,s){if(t){t.textContent=e&&e.today;t.disabled=!this._isTodayAllowed(i,s)}}__updateCalendars(t,e,i,s,o,r,n,a,l){if(t&&t.length){t.forEach((t=>{t.i18n=e;t.minDate=i;t.maxDate=s;t.focusedDate=r;t.selectedDate=o;t.showWeekNumbers=n;t.ignoreTaps=a;if(l){t.setAttribute("theme",l)}else{t.removeAttribute("theme")}}))}}__updateYears(t,e,i){if(t&&t.length){t.forEach((t=>{t.selectedDate=e;if(i){t.setAttribute("theme",i)}else{t.removeAttribute("theme")}}))}}_selectDate(t){this.selectedDate=t;this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:true,composed:true}))}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=true){if(!t){return}const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+s,e);return}const s=this._monthScroller.position>i;const o=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2);const r=o/this._monthScroller.itemHeight;const n=this._monthScroller.position+r-1<i;if(s){this._scrollToPosition(i,e)}else if(n){this._scrollToPosition(i-r+1,e)}}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear());e.setMonth(t.getMonth());e.setDate(1);let i=0;while(e.getDate()<t.getDate()){e.setDate(e.getDate()+1);if(e.getDay()===this.i18n.firstDayOfWeek){i+=1}}return i/6}_initialPositionChanged(t){if(this._monthScroller&&this._yearScroller){this._monthScroller.active=true;this._yearScroller.active=true}this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t);this._yearScroller.position=(t+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=false;setTimeout((()=>{this._notTapping=true}),300);this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=true;this._debouncer=$a.debounce(this._debouncer,Ea.after(300),(()=>{this._ignoreTaps=false}))}_formatDisplayed(t,e,i){if(t&&e&&typeof e.formatDate==="function"){return e.formatDate(_a(t))}return i}_onTodayTap(){const t=new Date;if(Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001){this._selectDate(t);this._close()}else{this._scrollToCurrentMonth()}}_scrollToCurrentMonth(){if(this.focusedDate){this.focusedDate=new Date}this.scrollToDate(new Date,true)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2);const i=e/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,true)}}_scrollToPosition(t,e){if(this._targetPosition!==undefined){this._targetPosition=t;return}if(!e){this._monthScroller.position=t;this._targetPosition=undefined;this._repositionYearScroller();this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise((t=>{i=t}));const s=(t,e,i,s)=>{t/=s/2;if(t<1){return i/2*t*t+e}t-=1;return-i/2*(t*(t-2)-1)+e};let o=0;const r=this._monthScroller.position;const n=t=>{if(!o){o=t}const e=t-o;if(e<this.scrollDuration){const t=s(e,r,this._targetPosition-r,this.scrollDuration);this._monthScroller.position=t;window.requestAnimationFrame(n)}else{this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:true,composed:true,detail:{position:this._targetPosition,oldPosition:r}}));this._monthScroller.position=this._targetPosition;this._targetPosition=undefined;i();this._revealPromise=undefined}setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(n)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10){return}if(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3){this._toggleAnimateClass(true)}const e=this._translateX+t.detail.ddx;this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth})}_track(t){if(this._desktopMode){return}switch(t.detail.state){case"start":this._toggleAnimateClass(false);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(true);if(this._translateX>=this._yearScrollerWidth/2){this._closeYearScroller()}else{this._openYearScroller()}break}}_toggleAnimateClass(t){if(t){this.classList.add("animate")}else{this.classList.remove("animate")}}_toggleYearScroller(){if(this._isYearScrollerVisible()){this._closeYearScroller()}else{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(t){if(!this._desktopMode){this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`;this._yearScroller.style.transform=`translateX(${t}px)`}}_yearAfterXMonths(t){return ka(t).getFullYear()}_differenceInMonths(t,e){const i=(t.getFullYear()-e.getFullYear())*12;return i-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:true,composed:true}))}_cancel(){this.focusedDate=this.selectedDate;this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){if(ya(t,this.selectedDate)){this._clear();this.focusedDate=t}else{this._selectDate(t)}}__onMonthCalendarKeyDown(t){let e=false;switch(t.key){case"ArrowDown":this._moveFocusByDays(7);e=true;break;case"ArrowUp":this._moveFocusByDays(-7);e=true;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1);e=true;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1);e=true;break;case"Enter":this._selectDate(this.focusedDate);this._close();e=true;break;case" ":this.__toggleDate(this.focusedDate);e=true;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate");e=true;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate");e=true;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1);e=true;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1);e=true;break;case"Tab":this._onTabKeyDown(t,"calendar");break}if(e){t.preventDefault();t.stopPropagation()}}_onTabKeyDown(t,e){t.stopPropagation();switch(e){case"calendar":if(t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusCancel()}else{this.__focusInput()}}break;case"today":if(t.shiftKey){t.preventDefault();this.focusDateElement()}break;case"cancel":if(!t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusDateElement()}else{this.__focusInput()}}break}}__onTodayButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"today")}}__onCancelButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"cancel")}}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:true,composed:true}))}__tryFocusDate(){const t=this.__pendingDateFocus;if(t){const t=this.focusableDateElement;if(t&&ya(t.date,this.__pendingDateFocus)){delete this.__pendingDateFocus;t.focus()}}}async focusDate(t,e){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i;if(!e){this._focusedMonthDate=i.getDate()}await this.focusDateElement(false)}async focusDateElement(t=true){this.__pendingDateFocus=this.focusedDate;if(!this.calendars.length){await new Promise((t=>{Rn(this,(()=>{Cl();t()}))}))}if(t){this.revealDate(this.focusedDate)}if(this._revealPromise){await this._revealPromise}this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(xa(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){if(this._dateAllowed(t)){this.focusDate(t,i)}else if(this._dateAllowed(this.focusedDate)){if(e>0){this.focusDate(this.maxDate)}else{this.focusDate(this.minDate)}}else{this._focusClosestDate(this.focusedDate)}}_getDateDiff(t,e){const i=new Date(0,0);i.setFullYear(this.focusedDate.getFullYear());i.setMonth(this.focusedDate.getMonth()+t);if(e){i.setDate(this.focusedDate.getDate()+e)}return i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,false)}_moveFocusByMonths(t){const e=this._getDateDiff(t);const i=e.getMonth();if(!this._focusedMonthDate){this._focusedMonthDate=this.focusedDate.getDate()}e.setDate(this._focusedMonthDate);if(e.getMonth()!==i){e.setDate(0)}this._focusAllowedDate(e,t,true)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear());if(e==="minDate"){i.setMonth(t.getMonth());i.setDate(1)}else{i.setMonth(t.getMonth()+1);i.setDate(0)}if(this._dateAllowed(i)){this.focusDate(i)}else if(this._dateAllowed(t)){this.focusDate(this[e])}else{this._focusClosestDate(t)}}_dateAllowed(t,e=this.minDate,i=this.maxDate){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date;const s=new Date(0,0);s.setFullYear(i.getFullYear());s.setMonth(i.getMonth());s.setDate(i.getDate());return this._dateAllowed(s,t,e)}}
2585
+ */const za=t=>class e extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:true},focusedDate:{type:Object,notify:true,observer:"_focusedDateChanged",sync:true},_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:false},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:true},maxDate:{type:Object,sync:true},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((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){uo(this.$.scrollers,"pan-y");ao(this.$.scrollers,"track",this._track.bind(this));ao(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this));ao(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this));ao(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ma(this._desktopMediaQuery,(t=>{this._desktopMode=t})));this.addController(new Tr(this,"today-button","vaadin-button",{observe:false,initializer:t=>{t.setAttribute("theme","tertiary");t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t)));ao(t,"tap",this._onTodayTap.bind(this));this._todayButton=t}}));this.addController(new Tr(this,"cancel-button","vaadin-button",{observe:false,initializer:t=>{t.setAttribute("theme","tertiary");t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t)));ao(t,"tap",this._cancel.bind(this));this._cancelButton=t}}));this.__initMonthScroller();this.__initYearScroller()}reset(){this._closeYearScroller();this._toggleAnimateClass(true)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e);this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Tr(this,"months","vaadin-date-picker-month-scroller",{observe:false,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()}));t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()}));t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)}));t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))}));this.calendars=t}));this._monthScroller=t}}))}__initYearScroller(){this.addController(new Tr(this,"years","vaadin-date-picker-year-scroller",{observe:false,initializer:t=>{t.setAttribute("aria-hidden","true");ao(t,"tap",(t=>{this._onYearTap(t)}));t.addEventListener("custom-scroll",(()=>{this._onYearScroll()}));t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()}));t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}));this._yearScroller=t}}))}__updateCancelButton(t,e){if(t){t.textContent=e&&e.cancel}}__updateTodayButton(t,e,i,s){if(t){t.textContent=e&&e.today;t.disabled=!this._isTodayAllowed(i,s)}}__updateCalendars(t,e,i,s,r,o,n,a,l){if(t&&t.length){t.forEach((t=>{t.i18n=e;t.minDate=i;t.maxDate=s;t.focusedDate=o;t.selectedDate=r;t.showWeekNumbers=n;t.ignoreTaps=a;if(l){t.setAttribute("theme",l)}else{t.removeAttribute("theme")}}))}}__updateYears(t,e,i){if(t&&t.length){t.forEach((t=>{t.selectedDate=e;if(i){t.setAttribute("theme",i)}else{t.removeAttribute("theme")}}))}}_selectDate(t){this.selectedDate=t;this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:true,composed:true}))}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=true){if(!t){return}const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+s,e);return}const s=this._monthScroller.position>i;const r=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2);const o=r/this._monthScroller.itemHeight;const n=this._monthScroller.position+o-1<i;if(s){this._scrollToPosition(i,e)}else if(n){this._scrollToPosition(i-o+1,e)}}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear());e.setMonth(t.getMonth());e.setDate(1);let i=0;while(e.getDate()<t.getDate()){e.setDate(e.getDate()+1);if(e.getDay()===this.i18n.firstDayOfWeek){i+=1}}return i/6}_initialPositionChanged(t){if(this._monthScroller&&this._yearScroller){this._monthScroller.active=true;this._yearScroller.active=true}this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t);this._yearScroller.position=(t+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=false;setTimeout((()=>{this._notTapping=true}),300);this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=true;this._debouncer=fr.debounce(this._debouncer,hr.after(300),(()=>{this._ignoreTaps=false}))}_formatDisplayed(t,e,i){if(t&&e&&typeof e.formatDate==="function"){return e.formatDate(Rn(t))}return i}_onTodayTap(){const t=new Date;if(Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001){this._selectDate(t);this._close()}else{this._scrollToCurrentMonth()}}_scrollToCurrentMonth(){if(this.focusedDate){this.focusedDate=new Date}this.scrollToDate(new Date,true)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2);const i=e/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,true)}}_scrollToPosition(t,e){if(this._targetPosition!==undefined){this._targetPosition=t;return}if(!e){this._monthScroller.position=t;this._targetPosition=undefined;this._repositionYearScroller();this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise((t=>{i=t}));const s=(t,e,i,s)=>{t/=s/2;if(t<1){return i/2*t*t+e}t-=1;return-i/2*(t*(t-2)-1)+e};let r=0;const o=this._monthScroller.position;const n=t=>{if(!r){r=t}const e=t-r;if(e<this.scrollDuration){const t=s(e,o,this._targetPosition-o,this.scrollDuration);this._monthScroller.position=t;window.requestAnimationFrame(n)}else{this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:true,composed:true,detail:{position:this._targetPosition,oldPosition:o}}));this._monthScroller.position=this._targetPosition;this._targetPosition=undefined;i();this._revealPromise=undefined}setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(n)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10){return}if(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3){this._toggleAnimateClass(true)}const e=this._translateX+t.detail.ddx;this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth})}_track(t){if(this._desktopMode){return}switch(t.detail.state){case"start":this._toggleAnimateClass(false);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(true);if(this._translateX>=this._yearScrollerWidth/2){this._closeYearScroller()}else{this._openYearScroller()}break}}_toggleAnimateClass(t){if(t){this.classList.add("animate")}else{this.classList.remove("animate")}}_toggleYearScroller(){if(this._isYearScrollerVisible()){this._closeYearScroller()}else{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(t){if(!this._desktopMode){this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`;this._yearScroller.style.transform=`translateX(${t}px)`}}_yearAfterXMonths(t){return jn(t).getFullYear()}_differenceInMonths(t,e){const i=(t.getFullYear()-e.getFullYear())*12;return i-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:true,composed:true}))}_cancel(){this.focusedDate=this.selectedDate;this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){if(On(t,this.selectedDate)){this._clear();this.focusedDate=t}else{this._selectDate(t)}}__onMonthCalendarKeyDown(t){let e=false;switch(t.key){case"ArrowDown":this._moveFocusByDays(7);e=true;break;case"ArrowUp":this._moveFocusByDays(-7);e=true;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1);e=true;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1);e=true;break;case"Enter":this._selectDate(this.focusedDate);this._close();e=true;break;case" ":this.__toggleDate(this.focusedDate);e=true;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate");e=true;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate");e=true;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1);e=true;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1);e=true;break;case"Tab":this._onTabKeyDown(t,"calendar");break}if(e){t.preventDefault();t.stopPropagation()}}_onTabKeyDown(t,e){t.stopPropagation();switch(e){case"calendar":if(t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusCancel()}else{this.__focusInput()}}break;case"today":if(t.shiftKey){t.preventDefault();this.focusDateElement()}break;case"cancel":if(!t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusDateElement()}else{this.__focusInput()}}break}}__onTodayButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"today")}}__onCancelButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"cancel")}}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:true,composed:true}))}__tryFocusDate(){const t=this.__pendingDateFocus;if(t){const t=this.focusableDateElement;if(t&&On(t.date,this.__pendingDateFocus)){delete this.__pendingDateFocus;t.focus()}}}async focusDate(t,e){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i;if(!e){this._focusedMonthDate=i.getDate()}await this.focusDateElement(false)}async focusDateElement(t=true){this.__pendingDateFocus=this.focusedDate;if(!this.calendars.length){await new Promise((t=>{Xo(this,(()=>{xa();t()}))}))}if(t){this.revealDate(this.focusedDate)}if(this._revealPromise){await this._revealPromise}this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(In(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){if(this._dateAllowed(t)){this.focusDate(t,i)}else if(this._dateAllowed(this.focusedDate)){if(e>0){this.focusDate(this.maxDate)}else{this.focusDate(this.minDate)}}else{this._focusClosestDate(this.focusedDate)}}_getDateDiff(t,e){const i=new Date(0,0);i.setFullYear(this.focusedDate.getFullYear());i.setMonth(this.focusedDate.getMonth()+t);if(e){i.setDate(this.focusedDate.getDate()+e)}return i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,false)}_moveFocusByMonths(t){const e=this._getDateDiff(t);const i=e.getMonth();if(!this._focusedMonthDate){this._focusedMonthDate=this.focusedDate.getDate()}e.setDate(this._focusedMonthDate);if(e.getMonth()!==i){e.setDate(0)}this._focusAllowedDate(e,t,true)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear());if(e==="minDate"){i.setMonth(t.getMonth());i.setDate(1)}else{i.setMonth(t.getMonth()+1);i.setDate(0)}if(this._dateAllowed(i)){this.focusDate(i)}else if(this._dateAllowed(t)){this.focusDate(this[e])}else{this._focusClosestDate(t)}}_dateAllowed(t,e=this.minDate,i=this.maxDate){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date;const s=new Date(0,0);s.setFullYear(i.getFullYear());s.setMonth(i.getMonth());s.setDate(i.getDate());return this._dateAllowed(s,t,e)}}
2712
2586
  /**
2713
2587
  * @license
2714
2588
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2715
2589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2716
- */;const Dh=m`
2590
+ */;const Ea=m`
2717
2591
  :host {
2718
2592
  display: flex;
2719
2593
  flex-direction: column;
@@ -2778,7 +2652,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2778
2652
  * @license
2779
2653
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
2780
2654
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2781
- */;Xs("vaadin-date-picker-overlay-content",Dh,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Th extends(Ch(wh(no(Nn(Fs))))){static get template(){return zs`
2655
+ */;_t("vaadin-date-picker-overlay-content",Ea,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Pa extends(za(qs(Mt(Is(Es))))){static get template(){return Ms`
2782
2656
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
2783
2657
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
2784
2658
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -2798,165 +2672,102 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2798
2672
  <slot name="today-button"></slot>
2799
2673
  <slot name="cancel-button"></slot>
2800
2674
  </div>
2801
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready();this.setAttribute("role","dialog");this._addListeners();this._initControllers()}}An(Th);
2802
- /**
2803
- * @license
2804
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2805
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2806
- */if(!window.Vaadin){window.Vaadin={}}if(!window.Vaadin.registrations){window.Vaadin.registrations=[]}if(!window.Vaadin.developmentModeCallback){window.Vaadin.developmentModeCallback={}}window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Oo()};let Sh;const Mh=new Set;const Nh=t=>class e extends(Nn(t)){static get version(){return"24.2.3"}static finalize(){super.finalize();const{is:t}=this;if(t&&!Mh.has(t)){window.Vaadin.registrations.push(this);Mh.add(t);if(window.Vaadin.developmentModeCallback){Sh=$a.debounce(Sh,za,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}));Ua(Sh)}}}constructor(){super();if(document.doctype===null){console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}}
2807
- /**
2808
- * @license
2809
- * Copyright (c) 2022 - 2023 Vaadin Ltd.
2810
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2811
- */;class Eh extends Ah{constructor(t){super(t,"tooltip");this.setTarget(t)}initCustomNode(t){t.target=this.target;if(this.ariaTarget!==undefined){t.ariaTarget=this.ariaTarget}if(this.context!==undefined){t.context=this.context}if(this.manual!==undefined){t.manual=this.manual}if(this.opened!==undefined){t.opened=this.opened}if(this.position!==undefined){t._position=this.position}if(this.shouldShow!==undefined){t.shouldShow=this.shouldShow}this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;if(e){e.ariaTarget=t}}setContext(t){this.context=t;const e=this.node;if(e){e.context=t}}setManual(t){this.manual=t;const e=this.node;if(e){e.manual=t}}setOpened(t){this.opened=t;const e=this.node;if(e){e.opened=t}}setPosition(t){this.position=t;const e=this.node;if(e){e._position=t}}setShouldShow(t){this.shouldShow=t;const e=this.node;if(e){e.shouldShow=t}}setTarget(t){this.target=t;const e=this.node;if(e){e.target=t}}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
2812
- /**
2813
- * @license
2814
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2815
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2816
- */const zh=ce((t=>class e extends(dn(fn(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:true,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super();this._boundOnBlur=this._onBlur.bind(this);this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready();if(this.autofocus&&!this.disabled){requestAnimationFrame((()=>{this.focus();this.setAttribute("focus-ring","")}))}}focus(){if(this.focusElement&&!this.disabled){this.focusElement.focus()}}blur(){if(this.focusElement){this.focusElement.blur()}}click(){if(this.focusElement&&!this.disabled){this.focusElement.click()}}_focusElementChanged(t,e){if(t){t.disabled=this.disabled;this._addFocusListeners(t);this.__forwardTabIndex(this.tabindex)}else if(e){this._removeFocusListeners(e)}}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur);t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur);t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation();this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation();this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e);if(this.focusElement){this.focusElement.disabled=t}if(t){this.blur()}}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){if(t!==undefined&&this.focusElement){this.focusElement.tabIndex=t;if(t!==-1){this.tabindex=undefined}}if(this.disabled&&t){if(t!==-1){this._lastTabIndex=t}this.tabindex=undefined}}}));
2817
- /**
2818
- * @license
2819
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2820
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2821
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2822
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2823
- * Code distributed by Google as part of the polymer project is also
2824
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2825
- */const Ph={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};
2826
- /**
2827
- @license
2828
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2829
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2830
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2831
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2832
- Code distributed by Google as part of the polymer project is also
2833
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2834
- */const Fh=new Set;class Oh{static debounce(t,e,i){if(t instanceof Oh){t._cancelAsync()}else{t=new Oh}t.setConfig(e,i);return 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;Fh.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();Fh.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}}
2835
- /**
2836
- * @license
2837
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2838
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2839
- */const Ih=new WeakMap;function Bh(t){if(!Ih.has(t)){Ih.set(t,new Set)}return Ih.get(t)}function Rh(t,e){const i=document.createElement("style");i.textContent=t;if(e===document){document.head.appendChild(i)}else{e.insertBefore(i,e.firstChild)}}const jh=ce((t=>class e extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback();this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode();const e=Bh(t);this.slotStyles.forEach((i=>{if(!e.has(i)){Rh(i,t);e.add(i)}}))}}));
2675
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready();this.setAttribute("role","dialog");this._addListeners();this._initControllers()}}a(Pa);
2840
2676
  /**
2841
2677
  * @license
2842
2678
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2843
2679
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2844
- */const Wh=t=>t.test(navigator.userAgent);const Lh=t=>t.test(navigator.platform);const $h=t=>t.test(navigator.vendor);Wh(/Android/u);Wh(/Chrome/u)&&$h(/Google Inc/u);Wh(/Firefox/u);Lh(/^iPad/u)||Lh(/^Mac/u)&&navigator.maxTouchPoints>1;Lh(/^iPhone/u);Wh(/^((?!chrome|android).)*safari/iu);const Uh=(()=>{try{document.createEvent("TouchEvent");return true}catch(t){return false}})();
2680
+ */const Fa=ae((t=>class e extends(No(Oo(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:true,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super();this._boundOnBlur=this._onBlur.bind(this);this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready();if(this.autofocus&&!this.disabled){requestAnimationFrame((()=>{this.focus();this.setAttribute("focus-ring","")}))}}focus(){if(this.focusElement&&!this.disabled){this.focusElement.focus()}}blur(){if(this.focusElement){this.focusElement.blur()}}click(){if(this.focusElement&&!this.disabled){this.focusElement.click()}}_focusElementChanged(t,e){if(t){t.disabled=this.disabled;this._addFocusListeners(t);this.__forwardTabIndex(this.tabindex)}else if(e){this._removeFocusListeners(e)}}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur);t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur);t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation();this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation();this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e);if(this.focusElement){this.focusElement.disabled=t}if(t){this.blur()}}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){if(t!==undefined&&this.focusElement){this.focusElement.tabIndex=t;if(t!==-1){this.tabindex=undefined}}if(this.disabled&&t){if(t!==-1){this._lastTabIndex=t}this.tabindex=undefined}}}));
2845
2681
  /**
2846
2682
  * @license
2847
2683
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2848
2684
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2849
- */const Hh=ce((t=>class e extends t{static get properties(){return{inputElement:{type:Object,readOnly:true,observer:"_inputElementChanged"},type:{type:String,readOnly:true},value:{type:String,value:"",observer:"_valueChanged",notify:true,sync:true},_hasInputValue:{type:Boolean,value:false,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]:undefined}set _inputElementValue(t){if(this.inputElement){this.inputElement[this._inputElementValueProperty]=t}}clear(){this._hasInputValue=false;this.value="";this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput);t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput);t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){if(!this.inputElement){return}this._inputElementValue=t!=null?t:""}_inputElementChanged(t,e){if(t){this._addInputListeners(t)}else if(e){this._removeInputListeners(e)}}_hasInputValueChanged(t,e){if(t||e){this.dispatchEvent(new CustomEvent("has-input-value-changed"))}}__onInput(t){this._setHasInputValue(t);this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted;this.value=e.value;this.__userInput=false}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue);if(t===""&&e===undefined){return}if(this.__userInput){return}this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}}));
2685
+ */const Na=new WeakMap;function Oa(t){if(!Na.has(t)){Na.set(t,new Set)}return Na.get(t)}function Ba(t,e){const i=document.createElement("style");i.textContent=t;if(e===document){document.head.appendChild(i)}else{e.insertBefore(i,e.firstChild)}}const Ia=ae((t=>class e extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback();this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode();const e=Oa(t);this.slotStyles.forEach((i=>{if(!e.has(i)){Ba(i,t);e.add(i)}}))}}));
2850
2686
  /**
2851
2687
  * @license
2852
2688
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2853
2689
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2854
- */const Gh=t=>class e extends(Hh(Zr(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:true,value:false}}}get clearElement(){console.warn(`Please implement the 'clearElement' property in <${this.localName}>`);return null}ready(){super.ready();if(this.clearElement){this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t)));this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t)))}}_onClearButtonClick(t){t.preventDefault();this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault();if(!Uh){this.inputElement.focus()}}_onEscape(t){super._onEscape(t);if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearAction()}}_onClearAction(){this.clear();this.inputElement.dispatchEvent(new Event("input",{bubbles:true,composed:true}));this.inputElement.dispatchEvent(new Event("change",{bubbles:true}))}}
2690
+ */const Ra=ae((t=>class e extends t{static get properties(){return{inputElement:{type:Object,readOnly:true,observer:"_inputElementChanged"},type:{type:String,readOnly:true},value:{type:String,value:"",observer:"_valueChanged",notify:true,sync:true},_hasInputValue:{type:Boolean,value:false,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]:undefined}set _inputElementValue(t){if(this.inputElement){this.inputElement[this._inputElementValueProperty]=t}}clear(){this._hasInputValue=false;this.value="";this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput);t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput);t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){if(!this.inputElement){return}this._inputElementValue=t!=null?t:""}_inputElementChanged(t,e){if(t){this._addInputListeners(t)}else if(e){this._removeInputListeners(e)}}_hasInputValueChanged(t,e){if(t||e){this.dispatchEvent(new CustomEvent("has-input-value-changed"))}}__onInput(t){this._setHasInputValue(t);this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted;this.value=e.value;this.__userInput=false}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue);if(t===""&&e===undefined){return}if(this.__userInput){return}this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}}));
2855
2691
  /**
2856
2692
  * @license
2857
2693
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2858
2694
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2859
- */;function qh(t){if(!t){return new Set}return new Set(t.split(" "))}function Yh(t){return t?[...t].join(" "):""}function Vh(t,e,i){const s=qh(t.getAttribute(e));s.add(i);t.setAttribute(e,Yh(s))}function Jh(t,e,i){const s=qh(t.getAttribute(e));s.delete(i);if(s.size===0){t.removeAttribute(e);return}t.setAttribute(e,Yh(s))}
2695
+ */const ja=t=>class e extends(Ra(wo(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:true,value:false}}}get clearElement(){console.warn(`Please implement the 'clearElement' property in <${this.localName}>`);return null}ready(){super.ready();if(this.clearElement){this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t)));this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t)))}}_onClearButtonClick(t){t.preventDefault();this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault();if(!ln){this.inputElement.focus()}}_onEscape(t){super._onEscape(t);if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearAction()}}_onClearAction(){this.clear();this.inputElement.dispatchEvent(new Event("input",{bubbles:true,composed:true}));this.inputElement.dispatchEvent(new Event("change",{bubbles:true}))}}
2860
2696
  /**
2861
2697
  * @license
2862
2698
  * Copyright (c) 2023 Vaadin Ltd.
2863
2699
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2864
- */const Kh=new Map;function Zh(t){if(!Kh.has(t)){Kh.set(t,new WeakMap)}return Kh.get(t)}function Qh(t,e){if(!t){return}t.removeAttribute(e)}function Xh(t,e){if(!t||!e){return}const i=Zh(e);if(i.has(t)){return}const s=qh(t.getAttribute(e));i.set(t,new Set(s))}function tc(t,e){if(!t||!e){return}const i=Zh(e);const s=i.get(t);if(!s||s.size===0){t.removeAttribute(e)}else{Vh(t,e,Yh(s))}i.delete(t)}function ec(t,e,i={newId:null,oldId:null,fromUser:false}){if(!t||!e){return}const{newId:s,oldId:o,fromUser:r}=i;const n=Zh(e);const a=n.get(t);if(!r&&!!a){o&&a.delete(o);s&&a.add(s);return}if(r){if(!a){Xh(t,e)}else if(!s){n.delete(t)}Qh(t,e)}Jh(t,e,o);const l=!s?Yh(a):s;if(l){Vh(t,e,l)}}function ic(t,e){Xh(t,e);Qh(t,e)}
2865
- /**
2866
- * @license
2867
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2868
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2869
- */class sc{constructor(t){this.host=t;this.__required=false}setTarget(t){this.__target=t;this.__setAriaRequiredAttribute(this.__required);this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId);if(this.__labelIdFromUser!=null){this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,true)}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=false){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e);if(e){this.__labelIdFromUser=t}else{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){if(!this.__target){return}if(t){ic(this.__target,"aria-labelledby");this.__target.setAttribute("aria-label",t)}else if(this.__label){tc(this.__target,"aria-labelledby");this.__target.removeAttribute("aria-label")}}__setLabelIdToAriaAttribute(t,e,i){ec(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){ec(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:false})}__setHelperIdToAriaAttribute(t,e){ec(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:false})}__setAriaRequiredAttribute(t){if(!this.__target){return}if(["input","textarea"].includes(this.__target.localName)){return}if(t){this.__target.setAttribute("aria-required","true")}else{this.__target.removeAttribute("aria-required")}}}
2870
- /**
2871
- * @license
2872
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2873
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2874
- */const oc=ce((t=>{if(typeof t.prototype.addController==="function"){return t}return class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}}));
2875
- /**
2876
- * @license
2877
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2878
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2879
- */function rc(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}
2880
- /**
2881
- * @license
2882
- * Copyright (c) 2023 Vaadin Ltd.
2883
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2884
- */class nc{constructor(t,e){this.slot=t;this.callback=e;this._storedNodes=[];this._connected=false;this._scheduled=false;this._boundSchedule=()=>{this._schedule()};this.connect();this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule);this._connected=true}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule);this._connected=false}_schedule(){if(!this._scheduled){this._scheduled=true;queueMicrotask((()=>{this.flush()}))}}flush(){if(!this._connected){return}this._scheduled=false;this._processNodes()}_processNodes(){const t=this.slot.assignedNodes({flatten:true});let e=[];const i=[];const s=[];if(t.length){e=t.filter((t=>!this._storedNodes.includes(t)))}if(this._storedNodes.length){this._storedNodes.forEach(((e,o)=>{const r=t.indexOf(e);if(r===-1){i.push(e)}else if(r!==o){s.push(e)}}))}if(e.length||i.length||s.length){this.callback({addedNodes:e,movedNodes:s,removedNodes:i})}this._storedNodes=t}}
2885
- /**
2886
- * @license
2887
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2888
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2889
- */let ac=0;function lc(){return ac++}
2700
+ */;const Wa=new Map;function La(t){if(!Wa.has(t)){Wa.set(t,new WeakMap)}return Wa.get(t)}function Ua(t,e){if(!t){return}t.removeAttribute(e)}function Ha(t,e){if(!t||!e){return}const i=La(e);if(i.has(t)){return}const s=yr(t.getAttribute(e));i.set(t,new Set(s))}function Ga(t,e){if(!t||!e){return}const i=La(e);const s=i.get(t);if(!s||s.size===0){t.removeAttribute(e)}else{xr(t,e,wr(s))}i.delete(t)}function $a(t,e,i={newId:null,oldId:null,fromUser:false}){if(!t||!e){return}const{newId:s,oldId:r,fromUser:o}=i;const n=La(e);const a=n.get(t);if(!o&&!!a){r&&a.delete(r);s&&a.add(s);return}if(o){if(!a){Ha(t,e)}else if(!s){n.delete(t)}Ua(t,e)}_r(t,e,r);const l=!s?wr(a):s;if(l){xr(t,e,l)}}function qa(t,e){Ha(t,e);Ua(t,e)}
2890
2701
  /**
2891
2702
  * @license
2892
2703
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2893
2704
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2894
- */class hc extends EventTarget{static generateId(t,e){const i=e||"default";return`${i}-${t.localName}-${lc()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:n,useUniqueId:a}=s;this.host=t;this.slotName=e;this.tagName=i;this.observe=typeof n==="boolean"?n:true;this.multiple=typeof r==="boolean"?r:false;this.slotInitializer=o;if(r){this.nodes=[]}if(a){this.defaultId=this.constructor.generateId(t,e)}}hostConnected(){if(!this.initialized){if(this.multiple){this.initMultiple()}else{this.initSingle()}if(this.observe){this.observeSlot()}this.initialized=true}}initSingle(){let t=this.getSlotChild();if(!t){t=this.attachDefaultNode();this.initNode(t)}else{this.node=t;this.initAddedNode(t)}}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const t=this.attachDefaultNode();if(t){this.nodes=[t];this.initNode(t)}}else{this.nodes=t;t.forEach((t=>{this.initAddedNode(t)}))}}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;if(!s&&i){s=document.createElement(i);if(s instanceof Element){if(e!==""){s.setAttribute("slot",e)}this.node=s;this.defaultNode=s}}if(s){t.appendChild(s)}return 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;if(e){e(t,this.host)}}initCustomNode(t){}teardownNode(t){}initAddedNode(t){if(t!==this.defaultNode){this.initCustomNode(t);this.initNode(t)}}observeSlot(){const{slotName:t}=this;const e=t===""?"slot:not([name])":`slot[name=${t}]`;const i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new nc(i,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node];const s=t.filter((t=>!rc(t)&&!i.includes(t)));if(e.length){this.nodes=i.filter((t=>!e.includes(t)));e.forEach((t=>{this.teardownNode(t)}))}if(s&&s.length>0){if(this.multiple){if(this.defaultNode){this.defaultNode.remove()}this.nodes=[...i,...s].filter((t=>t!==this.defaultNode));s.forEach((t=>{this.initAddedNode(t)}))}else{if(this.node){this.node.remove()}this.node=s[0];this.initAddedNode(this.node)}}}))}}
2705
+ */class Ya{constructor(t){this.host=t;this.__required=false}setTarget(t){this.__target=t;this.__setAriaRequiredAttribute(this.__required);this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId);if(this.__labelIdFromUser!=null){this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,true)}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=false){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e);if(e){this.__labelIdFromUser=t}else{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){if(!this.__target){return}if(t){qa(this.__target,"aria-labelledby");this.__target.setAttribute("aria-label",t)}else if(this.__label){Ga(this.__target,"aria-labelledby");this.__target.removeAttribute("aria-label")}}__setLabelIdToAriaAttribute(t,e,i){$a(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){$a(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:false})}__setHelperIdToAriaAttribute(t,e){$a(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:false})}__setAriaRequiredAttribute(t){if(!this.__target){return}if(["input","textarea"].includes(this.__target.localName)){return}if(t){this.__target.setAttribute("aria-required","true")}else{this.__target.removeAttribute("aria-required")}}}
2895
2706
  /**
2896
2707
  * @license
2897
2708
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
2898
2709
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2899
- */class cc extends hc{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:true})}initCustomNode(t){this.__updateNodeId(t);this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();if(e&&e!==this.defaultNode){this.__notifyChange(e)}else{this.restoreDefaultNode();this.updateDefaultNode(this.node)}}attachDefaultNode(){const t=super.attachDefaultNode();if(t){this.__updateNodeId(t)}return t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){if(this.__nodeObserver){this.__nodeObserver.disconnect()}this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target;const i=e===this.node;if(t.type==="attributes"){if(i){this.__updateNodeId(e)}}else if(i||e.parentElement===this.node){this.__notifyChange(this.node)}}))}));this.__nodeObserver.observe(t,{attributes:true,attributeFilter:["id"],childList:true,subtree:true,characterData:true})}__hasContent(t){if(!t){return false}return t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!==""}__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];if(t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id){t.id=this.defaultId}}}
2710
+ */class Va extends Tr{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:true})}initCustomNode(t){this.__updateNodeId(t);this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();if(e&&e!==this.defaultNode){this.__notifyChange(e)}else{this.restoreDefaultNode();this.updateDefaultNode(this.node)}}attachDefaultNode(){const t=super.attachDefaultNode();if(t){this.__updateNodeId(t)}return t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){if(this.__nodeObserver){this.__nodeObserver.disconnect()}this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target;const i=e===this.node;if(t.type==="attributes"){if(i){this.__updateNodeId(e)}}else if(i||e.parentElement===this.node){this.__notifyChange(this.node)}}))}));this.__nodeObserver.observe(t,{attributes:true,attributeFilter:["id"],childList:true,subtree:true,characterData:true})}__hasContent(t){if(!t){return false}return t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!==""}__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];if(t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id){t.id=this.defaultId}}}
2900
2711
  /**
2901
2712
  * @license
2902
2713
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2903
2714
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2904
- */class uc extends cc{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){if(t!==this.defaultNode){this.initCustomNode(t)}}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){if(t.textContent&&!this.errorMessage){this.errorMessage=t.textContent.trim()}super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this;const s=Boolean(i&&e&&e.trim()!=="");if(t){t.textContent=s?e:"";t.hidden=!s;if(s){t.setAttribute("role","alert")}else{t.removeAttribute("role")}}super.updateDefaultNode(t)}}
2715
+ */class Ja extends Va{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){if(t!==this.defaultNode){this.initCustomNode(t)}}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){if(t.textContent&&!this.errorMessage){this.errorMessage=t.textContent.trim()}super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this;const s=Boolean(i&&e&&e.trim()!=="");if(t){t.textContent=s?e:"";t.hidden=!s;if(s){t.setAttribute("role","alert")}else{t.removeAttribute("role")}}super.updateDefaultNode(t)}}
2905
2716
  /**
2906
2717
  * @license
2907
2718
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2908
2719
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2909
- */class dc extends cc{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t;const e=this.getSlotChild();if(!e){this.restoreDefaultNode()}if(this.node===this.defaultNode){this.updateDefaultNode(this.node)}}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){if(t){t.textContent=this.helperText}super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t);this.observeNode(t)}}
2720
+ */class Ka extends Va{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t;const e=this.getSlotChild();if(!e){this.restoreDefaultNode()}if(this.node===this.defaultNode){this.updateDefaultNode(this.node)}}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){if(t){t.textContent=this.helperText}super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t);this.observeNode(t)}}
2910
2721
  /**
2911
2722
  * @license
2912
2723
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2913
2724
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2914
- */class fc extends cc{constructor(t){super(t,"label","label")}setLabel(t){this.label=t;const e=this.getSlotChild();if(!e){this.restoreDefaultNode()}if(this.node===this.defaultNode){this.updateDefaultNode(this.node)}}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){if(t){t.textContent=this.label}super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t);this.observeNode(t)}}
2725
+ */class Za extends Va{constructor(t){super(t,"label","label")}setLabel(t){this.label=t;const e=this.getSlotChild();if(!e){this.restoreDefaultNode()}if(this.node===this.defaultNode){this.updateDefaultNode(this.node)}}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){if(t){t.textContent=this.label}super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t);this.observeNode(t)}}
2915
2726
  /**
2916
2727
  * @license
2917
2728
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2918
2729
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2919
- */const pc=ce((t=>class e extends(oc(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super();this._labelController=new fc(this);this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready();this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}}));
2730
+ */const Qa=ae((t=>class e extends(qs(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super();this._labelController=new Za(this);this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready();this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}}));
2920
2731
  /**
2921
2732
  * @license
2922
2733
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2923
2734
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2924
- */const mc=ce((t=>class e extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:true,notify:true,value:false},required:{type:Boolean,reflectToAttribute:true}}}validate(){const t=this.checkValidity();this._setInvalid(!t);this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}}));return t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){if(this._shouldSetInvalid(t)){this.invalid=t}}_shouldSetInvalid(t){return true}}));
2735
+ */const Xa=ae((t=>class e extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:true,notify:true,value:false},required:{type:Boolean,reflectToAttribute:true}}}validate(){const t=this.checkValidity();this._setInvalid(!t);this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}}));return t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){if(this._shouldSetInvalid(t)){this.invalid=t}}_shouldSetInvalid(t){return true}}));
2925
2736
  /**
2926
2737
  * @license
2927
2738
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2928
2739
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2929
- */const bc=t=>class e extends(mc(pc(oc(t)))){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 sc(this);this._helperController=new dc(this);this._errorController=new uc(this);this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}));this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)}));this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e);this.__helperChanged(e,i)}))}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(t,e){if(t){this._fieldAriaController.setHelperId(e.id)}else{this._fieldAriaController.setHelperId(null)}}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,true)}__labelChanged(t,e){if(t){this._fieldAriaController.setLabelId(e.id)}else{this._fieldAriaController.setLabelId(null)}}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){if(t){this._fieldAriaController.setTarget(t)}}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t);setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else{this._fieldAriaController.setErrorId(null)}}))}}
2740
+ */const tl=t=>class e extends(Xa(Qa(qs(t)))){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 Ya(this);this._helperController=new Ka(this);this._errorController=new Ja(this);this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}));this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)}));this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e);this.__helperChanged(e,i)}))}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(t,e){if(t){this._fieldAriaController.setHelperId(e.id)}else{this._fieldAriaController.setHelperId(null)}}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,true)}__labelChanged(t,e){if(t){this._fieldAriaController.setLabelId(e.id)}else{this._fieldAriaController.setLabelId(null)}}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){if(t){this._fieldAriaController.setTarget(t)}}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t);setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else{this._fieldAriaController.setErrorId(null)}}))}}
2930
2741
  /**
2931
2742
  * @license
2932
2743
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2933
2744
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2934
- */;const vc=ce((t=>class e extends t{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(t){if(t){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((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){if(!this.stateTarget){return}if(t==="invalid"){this._delegateAttribute("aria-invalid",e?"true":false)}if(typeof e==="boolean"){this.stateTarget.toggleAttribute(t,e)}else if(e){this.stateTarget.setAttribute(t,e)}else{this.stateTarget.removeAttribute(t)}}_delegateProperty(t,e){if(!this.stateTarget){return}this.stateTarget[t]=e}}));
2745
+ */;const el=ae((t=>class e extends t{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(t){if(t){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((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){if(!this.stateTarget){return}if(t==="invalid"){this._delegateAttribute("aria-invalid",e?"true":false)}if(typeof e==="boolean"){this.stateTarget.toggleAttribute(t,e)}else if(e){this.stateTarget.setAttribute(t,e)}else{this.stateTarget.removeAttribute(t)}}_delegateProperty(t,e){if(!this.stateTarget){return}this.stateTarget[t]=e}}));
2935
2746
  /**
2936
2747
  * @license
2937
2748
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2938
2749
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2939
- */const gc=ce((t=>class e extends(vc(mc(Hh(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready();this._createConstraintsObserver()}checkValidity(){if(this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))){return this.inputElement.checkValidity()}return!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t){return}const i=this._hasValidConstraints(e);const s=this.__previousHasConstraints&&!i;if((this._hasValue||this.invalid)&&i){this.validate()}else if(s){this._setInvalid(false)}this.__previousHasConstraints=i}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||t===0}}));
2750
+ */const il=ae((t=>class e extends(el(Xa(Ra(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready();this._createConstraintsObserver()}checkValidity(){if(this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))){return this.inputElement.checkValidity()}return!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t){return}const i=this._hasValidConstraints(e);const s=this.__previousHasConstraints&&!i;if((this._hasValue||this.invalid)&&i){this.validate()}else if(s){this._setInvalid(false)}this.__previousHasConstraints=i}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||t===0}}));
2940
2751
  /**
2941
2752
  * @license
2942
2753
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2943
2754
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2944
- */const yc=t=>class e extends(jh(zh(gc(bc(Gh(Zr(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:false},name:{type:String,reflectToAttribute:true},placeholder:{type:String,reflectToAttribute:true},readonly:{type:Boolean,value:false,reflectToAttribute:true},title:{type:String,reflectToAttribute:true}}}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[`\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n `]}_onFocus(t){super._onFocus(t);if(this.autoselect&&this.inputElement){this.inputElement.select()}}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t);t.addEventListener("paste",this._boundOnPaste);t.addEventListener("drop",this._boundOnDrop);t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t);t.removeEventListener("paste",this._boundOnPaste);t.removeEventListener("drop",this._boundOnDrop);t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t);if(this.allowedCharPattern&&!this.__shouldAcceptKey(t)){t.preventDefault();this._markInputPrevented()}}_markInputPrevented(){this.setAttribute("input-prevented","");this._preventInputDebouncer=Oh.debounce(this._preventInputDebouncer,Ph.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onBeforeInput(t){if(this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)){t.preventDefault();this._markInputPrevented()}}_allowedCharPatternChanged(t){if(t){try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u");this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}}
2755
+ */const sl=t=>class e extends(Ia(Fa(il(tl(ja(wo(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:false},name:{type:String,reflectToAttribute:true},placeholder:{type:String,reflectToAttribute:true},readonly:{type:Boolean,value:false,reflectToAttribute:true},title:{type:String,reflectToAttribute:true}}}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[`\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n `]}_onFocus(t){super._onFocus(t);if(this.autoselect&&this.inputElement){this.inputElement.select()}}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t);t.addEventListener("paste",this._boundOnPaste);t.addEventListener("drop",this._boundOnDrop);t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t);t.removeEventListener("paste",this._boundOnPaste);t.removeEventListener("drop",this._boundOnDrop);t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t);if(this.allowedCharPattern&&!this.__shouldAcceptKey(t)){t.preventDefault();this._markInputPrevented()}}_markInputPrevented(){this.setAttribute("input-prevented","");this._preventInputDebouncer=fr.debounce(this._preventInputDebouncer,hr.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onBeforeInput(t){if(this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)){t.preventDefault();this._markInputPrevented()}}_allowedCharPatternChanged(t){if(t){try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u");this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}}
2945
2756
  /**
2946
2757
  * @license
2947
2758
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2948
2759
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2949
- */;class wc extends hc{constructor(t,e){super(t,"input","input",{initializer:(t,i)=>{if(i.value){t.value=i.value}if(i.type){t.setAttribute("type",i.type)}t.id=this.defaultId;if(typeof e==="function"){e(t)}},useUniqueId:true})}}
2760
+ */;class rl extends Tr{constructor(t,e){super(t,"input","input",{initializer:(t,i)=>{if(i.value){t.value=i.value}if(i.type){t.setAttribute("type",i.type)}t.id=this.defaultId;if(typeof e==="function"){e(t)}},useUniqueId:true})}}
2950
2761
  /**
2951
2762
  * @license
2952
2763
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2953
2764
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2954
- */class xc{constructor(t,e){this.input=t;this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this);e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)}));this.__initLabel(e.node)}__initLabel(t){if(t){t.addEventListener("click",this.__preventDuplicateLabelClick);if(this.input){t.setAttribute("for",this.input.id)}}}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation();this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2765
+ */class ol{constructor(t,e){this.input=t;this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this);e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)}));this.__initLabel(e.node)}__initLabel(t){if(t){t.addEventListener("click",this.__preventDuplicateLabelClick);if(this.input){t.setAttribute("for",this.input.id)}}}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation();this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2955
2766
  /**
2956
2767
  * @license
2957
2768
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
2958
2769
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2959
- */const _c=m`
2770
+ */const nl=m`
2960
2771
  [part='clear-button'] {
2961
2772
  display: none;
2962
2773
  cursor: default;
@@ -2974,7 +2785,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2974
2785
  * @license
2975
2786
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
2976
2787
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2977
- */;const kc=m`
2788
+ */;const al=m`
2978
2789
  :host {
2979
2790
  display: inline-flex;
2980
2791
  outline: none;
@@ -3013,7 +2824,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3013
2824
  * @license
3014
2825
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
3015
2826
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3016
- */;const Ac=m`
2827
+ */;const ll=m`
3017
2828
  [class$='container'] {
3018
2829
  display: flex;
3019
2830
  flex-direction: column;
@@ -3026,27 +2837,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3026
2837
  * @license
3027
2838
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
3028
2839
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3029
- */;const Cc=[kc,Ac,_c];
2840
+ */;const hl=[al,ll,nl];
3030
2841
  /**
3031
2842
  * @license
3032
2843
  * Copyright (c) 2023 Vaadin Ltd.
3033
2844
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3034
- */const Dc=t=>class e extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e){return}if(t===undefined){return}const{classList:i}=e;if(!this.__initialClasses){this.__initialClasses=new Set(i)}if(Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));if(t.length>0){i.remove(...t)}}const s=typeof t==="string"?t.split(" "):[];if(s.length>0){i.add(...s)}this.__previousClasses=s}}
2845
+ */const cl=t=>class e extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e){return}if(t===undefined){return}const{classList:i}=e;if(!this.__initialClasses){this.__initialClasses=new Set(i)}if(Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));if(t.length>0){i.remove(...t)}}const s=typeof t==="string"?t.split(" "):[];if(s.length>0){i.add(...s)}this.__previousClasses=s}}
3035
2846
  /**
3036
2847
  * @license
3037
2848
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3038
2849
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3039
- */;class Tc{constructor(t){this.host=t;t.addEventListener("opened-changed",(()=>{if(!t.opened){this.__setVirtualKeyboardEnabled(false)}}));t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(true)));t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(true)))}__setVirtualKeyboardEnabled(t){if(this.host.inputElement){this.host.inputElement.inputMode=t?"":"none"}}}
2850
+ */;class ul{constructor(t){this.host=t;t.addEventListener("opened-changed",(()=>{if(!t.opened){this.__setVirtualKeyboardEnabled(false)}}));t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(true)));t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(true)))}__setVirtualKeyboardEnabled(t){if(this.host.inputElement){this.host.inputElement.inputMode=t?"":"none"}}}
3040
2851
  /**
3041
2852
  * @license
3042
2853
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3043
2854
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3044
- */const Sc=t=>class e extends(Dc(wh(zh(gc(Zr(t)))))){static get properties(){return{_selectedDate:{type:Object,sync:true},_focusedDate:{type:Object,sync:true},value:{type:String,notify:true,value:"",sync:true},initialPosition:String,opened:{type:Boolean,reflectToAttribute:true,notify:true,observer:"_openedChanged",sync:true},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:false,sync:true},_fullscreen:{type:Boolean,value:false,sync:true},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:true,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(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/");const i=new Date;let s,o=i.getMonth(),r=i.getFullYear();if(e.length===3){o=parseInt(e[0])-1;s=parseInt(e[1]);r=parseInt(e[2]);if(e[2].length<3&&r>=0){const t=this.referenceDate?Ca(this.referenceDate):new Date;r=Aa(t,r,o,s)}}else if(e.length===2){o=parseInt(e[0])-1;s=parseInt(e[1])}else if(e.length===1){s=parseInt(e[0])}if(s!==undefined){return{day:s,month:o,year:r}}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:true},max:{type:String,sync:true},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:true},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:true},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Wa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:true},_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(t){super._inputElementValue=t;this._hasInputValue=false}get clearElement(){return null}get _nativeInput(){if(this.inputElement){return this.inputElement.focusElement||this.inputElement}return null}_onFocus(t){super._onFocus(t);if(this._noInput){t.target.blur()}}_onBlur(t){super._onBlur(t);if(!this.opened){this._selectParsedOrFocusedDate();if(document.hasFocus()){this.validate()}}}ready(){super.ready();this.addEventListener("click",this._boundOnClick);this.addController(new xh(this._fullscreenMediaQuery,(t=>{this._fullscreen=t})));this.addController(new Tc(this));const t=this.$.overlay;this._overlayElement=t;t.renderer=this._boundOverlayRenderer;this.addEventListener("mousedown",(()=>this.__bringToFront()));this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback();this.opened=false}open(){if(!this.disabled&&!this.readonly){this.opened=true}}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild){return}const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e);this._overlayContent=e;e.addEventListener("close",(()=>{this._close()}));e.addEventListener("focus-input",this._focusAndSelect.bind(this));e.addEventListener("date-tap",(t=>{this.__userConfirmedDate=true;this._selectDate(t.detail.date);this._close()}));e.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date;this._selectDate(t.detail.date)}));e.addEventListener("focusin",(()=>{if(this._keyboardActive){this._setFocused(true)}}));e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value}))}__parseDate(t){if(!this.i18n.parseDate){return}let e=this.i18n.parseDate(t);if(e){e=Ca(`${e.year}-${e.month+1}-${e.day}`)}if(e&&!isNaN(e.getTime())){return e}}__formatDate(t){if(this.i18n.formatDate){return this.i18n.formatDate(_a(t))}}checkValidity(){const t=this._inputElementValue;const e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate);const i=!this._selectedDate||wa(this._selectedDate,this._minDate,this._maxDate);let s=true;if(this.inputElement){if(this.inputElement.checkValidity){s=this.inputElement.checkValidity()}else if(this.inputElement.validate){s=this.inputElement.validate()}}return e&&i&&s}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t);this._shouldKeepFocusRing=t&&this._keyboardActive}__dispatchChange(){this.validate();this.dispatchEvent(new CustomEvent("change",{bubbles:true}))}_selectDate(t){const e=this.value;this._selectedDate=t;if(e!==this.value){this.__dispatchChange()}}_close(){this._focus();this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,s,o,r){const n=e&&(!r||o);const a=i&&o;return!t||n||a||!s.parseDate}_formatISO(t){if(!(t instanceof Date)){return""}const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="";let s="0000";let o=t.getFullYear();if(o<0){o=-o;i="-";s="000000"}else if(t.getFullYear()>=1e4){i="+";s="000000"}const r=i+e(o,s);const n=e(t.getMonth()+1);const a=e(t.getDate());return[r,n,a].join("-")}_inputElementChanged(t){super._inputElementChanged(t);if(t){t.autocomplete="off";t.setAttribute("role","combobox");t.setAttribute("aria-haspopup","dialog");t.setAttribute("aria-expanded",!!this.opened);this._applyInputValue(this._selectedDate)}}_openedChanged(t){if(this.inputElement){this.inputElement.setAttribute("aria-expanded",t)}}_selectedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this.__keepInputValue){this._applyInputValue(t)}this.value=this._formatISO(t);this._ignoreFocusedDateChange=true;this._focusedDate=t;this._ignoreFocusedDateChange=false}_focusedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this._ignoreFocusedDateChange&&!this._noInput){this._applyInputValue(t)}}_valueChanged(t,e){const i=Ca(t);if(t&&!i){this.value=e;return}if(t){if(!ya(this._selectedDate,i)){this._selectedDate=i;if(e!==undefined){this.validate()}}}else{this._selectedDate=null}this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,e,i,s,o,r,n,a){if(t){t.i18n=e;t.label=i;t.minDate=s;t.maxDate=o;t.focusedDate=r;t.selectedDate=n;t.showWeekNumbers=a}}__updateOverlayContentTheme(t,e){if(t){if(e){t.setAttribute("theme",e)}else{t.removeAttribute("theme")}}}__updateOverlayContentFullScreen(t,e){if(t){t.toggleAttribute("fullscreen",e)}}_onOverlayEscapePress(){this._focusedDate=this._selectedDate;this._close()}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i);this._ignoreFocusedDateChange=true;t.focusedDate=i;this._ignoreFocusedDateChange=false;window.addEventListener("scroll",this._boundOnScroll,true);if(this._focusOverlayOnOpen){t.focusDateElement();this._focusOverlayOnOpen=false}else{this._focus()}const s=this._nativeInput;if(this._noInput&&s){s.blur();this._overlayContent.focusDateElement()}const o=this._noInput?t:[s,t];this.__showOthers=Xn(o)}_getInitialPosition(){const t=Ca(this.initialPosition);const e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||wa(e,this._minDate,this._maxDate)?e:xa(e,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){this._ignoreFocusedDateChange=true;if(this.i18n.parseDate){const t=this._inputElementValue||"";const e=this.__parseDate(t);if(e){this._selectDate(e)}else{this.__keepInputValue=true;this._selectDate(null);this._selectedDate=null;this.__keepInputValue=false}}else if(this._focusedDate){this._selectDate(this._focusedDate)}this._ignoreFocusedDateChange=false}_onOverlayClosed(){if(this.__showOthers){this.__showOthers();this.__showOthers=null}window.removeEventListener("scroll",this._boundOnScroll,true);if(this.__userConfirmedDate){this.__userConfirmedDate=false}else{this._selectParsedOrFocusedDate()}if(this._nativeInput&&this._nativeInput.selectionStart){this._nativeInput.selectionStart=this._nativeInput.selectionEnd}if(!this.value&&!this._keyboardActive){this.validate()}}_onScroll(t){if(t.target===window||!this._overlayContent.contains(t.target)){this._overlayContent._repositionYearScroller()}}_focus(){if(!this._noInput){this.inputElement.focus()}}_focusAndSelect(){this._focus();this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){if(this._nativeInput&&this._nativeInput.setSelectionRange){this._nativeInput.setSelectionRange(t,e)}}_onChange(t){t.stopPropagation()}_onClick(t){if(!this._isClearButton(t)){this._onHostClick(t)}}_onHostClick(t){if(!this.autoOpenDisabled||this._noInput){t.preventDefault();this.open()}}_onClearButtonClick(t){t.preventDefault();this._inputElementValue="";this.value="";this.__dispatchChange()}_onKeyDown(t){super._onKeyDown(t);if(this._noInput){const e=[9];if(e.indexOf(t.keyCode)===-1){t.preventDefault()}}switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault();if(this.opened){this._overlayContent.focusDateElement()}else{this._focusOverlayOnOpen=true;this.open()}break;case"Tab":if(this.opened){t.preventDefault();t.stopPropagation();this._setSelectionRange(0,0);if(t.shiftKey){this._overlayContent.focusCancel()}else{this._overlayContent.focusDateElement()}}break}}_onEnter(t){const e=this.value;if(this.opened){this.close()}else{this._selectParsedOrFocusedDate()}if(e===this.value){this.validate()}}_onEscape(t){if(this.opened){return}if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearButtonClick(t);return}if(this.autoOpenDisabled){if(this.inputElement.value===""){this._selectDate(null)}this._applyInputValue(this._selectedDate)}else{this._focusedDate=this._selectedDate;this._selectParsedOrFocusedDate()}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled){this.open()}if(this._inputElementValue){const t=this.__parseDate(this._inputElementValue);if(t){this._ignoreFocusedDateChange=true;if(!ya(t,this._focusedDate)){this._focusedDate=t}this._ignoreFocusedDateChange=false}}}__computeMinOrMaxDate(t){return Ca(t)}}
2855
+ */const dl=t=>class e extends(cl(qs(Fa(il(wo(t)))))){static get properties(){return{_selectedDate:{type:Object,sync:true},_focusedDate:{type:Object,sync:true},value:{type:String,notify:true,value:"",sync:true},initialPosition:String,opened:{type:Boolean,reflectToAttribute:true,notify:true,observer:"_openedChanged",sync:true},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:false,sync:true},_fullscreen:{type:Boolean,value:false,sync:true},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:true,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(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/");const i=new Date;let s,r=i.getMonth(),o=i.getFullYear();if(e.length===3){r=parseInt(e[0])-1;s=parseInt(e[1]);o=parseInt(e[2]);if(e[2].length<3&&o>=0){const t=this.referenceDate?Ln(this.referenceDate):new Date;o=Wn(t,o,r,s)}}else if(e.length===2){r=parseInt(e[0])-1;s=parseInt(e[1])}else if(e.length===1){s=parseInt(e[0])}if(s!==undefined){return{day:s,month:r,year:o}}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:true},max:{type:String,sync:true},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:true},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:true},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:an},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:true},_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(t){super._inputElementValue=t;this._hasInputValue=false}get clearElement(){return null}get _nativeInput(){if(this.inputElement){return this.inputElement.focusElement||this.inputElement}return null}_onFocus(t){super._onFocus(t);if(this._noInput){t.target.blur()}}_onBlur(t){super._onBlur(t);if(!this.opened){this._selectParsedOrFocusedDate();if(document.hasFocus()){this.validate()}}}ready(){super.ready();this.addEventListener("click",this._boundOnClick);this.addController(new Ma(this._fullscreenMediaQuery,(t=>{this._fullscreen=t})));this.addController(new ul(this));const t=this.$.overlay;this._overlayElement=t;t.renderer=this._boundOverlayRenderer;this.addEventListener("mousedown",(()=>this.__bringToFront()));this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback();this.opened=false}open(){if(!this.disabled&&!this.readonly){this.opened=true}}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild){return}const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e);this._overlayContent=e;e.addEventListener("close",(()=>{this._close()}));e.addEventListener("focus-input",this._focusAndSelect.bind(this));e.addEventListener("date-tap",(t=>{this.__userConfirmedDate=true;this._selectDate(t.detail.date);this._close()}));e.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date;this._selectDate(t.detail.date)}));e.addEventListener("focusin",(()=>{if(this._keyboardActive){this._setFocused(true)}}));e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value}))}__parseDate(t){if(!this.i18n.parseDate){return}let e=this.i18n.parseDate(t);if(e){e=Ln(`${e.year}-${e.month+1}-${e.day}`)}if(e&&!isNaN(e.getTime())){return e}}__formatDate(t){if(this.i18n.formatDate){return this.i18n.formatDate(Rn(t))}}checkValidity(){const t=this._inputElementValue;const e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate);const i=!this._selectedDate||Bn(this._selectedDate,this._minDate,this._maxDate);let s=true;if(this.inputElement){if(this.inputElement.checkValidity){s=this.inputElement.checkValidity()}else if(this.inputElement.validate){s=this.inputElement.validate()}}return e&&i&&s}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t);this._shouldKeepFocusRing=t&&this._keyboardActive}__dispatchChange(){this.validate();this.dispatchEvent(new CustomEvent("change",{bubbles:true}))}_selectDate(t){const e=this.value;this._selectedDate=t;if(e!==this.value){this.__dispatchChange()}}_close(){this._focus();this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,s,r,o){const n=e&&(!o||r);const a=i&&r;return!t||n||a||!s.parseDate}_formatISO(t){if(!(t instanceof Date)){return""}const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="";let s="0000";let r=t.getFullYear();if(r<0){r=-r;i="-";s="000000"}else if(t.getFullYear()>=1e4){i="+";s="000000"}const o=i+e(r,s);const n=e(t.getMonth()+1);const a=e(t.getDate());return[o,n,a].join("-")}_inputElementChanged(t){super._inputElementChanged(t);if(t){t.autocomplete="off";t.setAttribute("role","combobox");t.setAttribute("aria-haspopup","dialog");t.setAttribute("aria-expanded",!!this.opened);this._applyInputValue(this._selectedDate)}}_openedChanged(t){if(this.inputElement){this.inputElement.setAttribute("aria-expanded",t)}}_selectedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this.__keepInputValue){this._applyInputValue(t)}this.value=this._formatISO(t);this._ignoreFocusedDateChange=true;this._focusedDate=t;this._ignoreFocusedDateChange=false}_focusedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this._ignoreFocusedDateChange&&!this._noInput){this._applyInputValue(t)}}_valueChanged(t,e){const i=Ln(t);if(t&&!i){this.value=e;return}if(t){if(!On(this._selectedDate,i)){this._selectedDate=i;if(e!==undefined){this.validate()}}}else{this._selectedDate=null}this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,e,i,s,r,o,n,a){if(t){t.i18n=e;t.label=i;t.minDate=s;t.maxDate=r;t.focusedDate=o;t.selectedDate=n;t.showWeekNumbers=a}}__updateOverlayContentTheme(t,e){if(t){if(e){t.setAttribute("theme",e)}else{t.removeAttribute("theme")}}}__updateOverlayContentFullScreen(t,e){if(t){t.toggleAttribute("fullscreen",e)}}_onOverlayEscapePress(){this._focusedDate=this._selectedDate;this._close()}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i);this._ignoreFocusedDateChange=true;t.focusedDate=i;this._ignoreFocusedDateChange=false;window.addEventListener("scroll",this._boundOnScroll,true);if(this._focusOverlayOnOpen){t.focusDateElement();this._focusOverlayOnOpen=false}else{this._focus()}const s=this._nativeInput;if(this._noInput&&s){s.blur();this._overlayContent.focusDateElement()}const r=this._noInput?t:[s,t];this.__showOthers=bn(r)}_getInitialPosition(){const t=Ln(this.initialPosition);const e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||Bn(e,this._minDate,this._maxDate)?e:In(e,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){this._ignoreFocusedDateChange=true;if(this.i18n.parseDate){const t=this._inputElementValue||"";const e=this.__parseDate(t);if(e){this._selectDate(e)}else{this.__keepInputValue=true;this._selectDate(null);this._selectedDate=null;this.__keepInputValue=false}}else if(this._focusedDate){this._selectDate(this._focusedDate)}this._ignoreFocusedDateChange=false}_onOverlayClosed(){if(this.__showOthers){this.__showOthers();this.__showOthers=null}window.removeEventListener("scroll",this._boundOnScroll,true);if(this.__userConfirmedDate){this.__userConfirmedDate=false}else{this._selectParsedOrFocusedDate()}if(this._nativeInput&&this._nativeInput.selectionStart){this._nativeInput.selectionStart=this._nativeInput.selectionEnd}if(!this.value&&!this._keyboardActive){this.validate()}}_onScroll(t){if(t.target===window||!this._overlayContent.contains(t.target)){this._overlayContent._repositionYearScroller()}}_focus(){if(!this._noInput){this.inputElement.focus()}}_focusAndSelect(){this._focus();this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){if(this._nativeInput&&this._nativeInput.setSelectionRange){this._nativeInput.setSelectionRange(t,e)}}_onChange(t){t.stopPropagation()}_onClick(t){if(!this._isClearButton(t)){this._onHostClick(t)}}_onHostClick(t){if(!this.autoOpenDisabled||this._noInput){t.preventDefault();this.open()}}_onClearButtonClick(t){t.preventDefault();this._inputElementValue="";this.value="";this.__dispatchChange()}_onKeyDown(t){super._onKeyDown(t);if(this._noInput){const e=[9];if(e.indexOf(t.keyCode)===-1){t.preventDefault()}}switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault();if(this.opened){this._overlayContent.focusDateElement()}else{this._focusOverlayOnOpen=true;this.open()}break;case"Tab":if(this.opened){t.preventDefault();t.stopPropagation();this._setSelectionRange(0,0);if(t.shiftKey){this._overlayContent.focusCancel()}else{this._overlayContent.focusDateElement()}}break}}_onEnter(t){const e=this.value;if(this.opened){this.close()}else{this._selectParsedOrFocusedDate()}if(e===this.value){this.validate()}}_onEscape(t){if(this.opened){return}if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearButtonClick(t);return}if(this.autoOpenDisabled){if(this.inputElement.value===""){this._selectDate(null)}this._applyInputValue(this._selectedDate)}else{this._focusedDate=this._selectedDate;this._selectParsedOrFocusedDate()}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled){this.open()}if(this._inputElementValue){const t=this.__parseDate(this._inputElementValue);if(t){this._ignoreFocusedDateChange=true;if(!On(t,this._focusedDate)){this._focusedDate=t}this._ignoreFocusedDateChange=false}}}__computeMinOrMaxDate(t){return Ln(t)}}
3045
2856
  /**
3046
2857
  * @license
3047
2858
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3048
2859
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3049
- */;const Mc=m`
2860
+ */;const fl=m`
3050
2861
  :host([opened]) {
3051
2862
  pointer-events: auto;
3052
2863
  }
@@ -3064,7 +2875,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3064
2875
  * @license
3065
2876
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3066
2877
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3067
- */;Xs("vaadin-date-picker",[Cc,Mc],{moduleId:"vaadin-date-picker-styles"});class Nc extends(Sc(yc(no(Nh(Fs))))){static get is(){return"vaadin-date-picker"}static get template(){return zs`
2878
+ */;_t("vaadin-date-picker",[hl,fl],{moduleId:"vaadin-date-picker-styles"});class pl extends(dl(sl(Mt(br(Es))))){static get is(){return"vaadin-date-picker"}static get template(){return Ms`
3068
2879
  <div class="vaadin-date-picker-container">
3069
2880
  <div part="label">
3070
2881
  <slot name="label"></slot>
@@ -3106,5 +2917,5 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3106
2917
  ></vaadin-date-picker-overlay>
3107
2918
 
3108
2919
  <slot name="tooltip"></slot>
3109
- `}get clearElement(){return this.$.clearButton}ready(){super.ready();this.addController(new wc(this,(t=>{this._setInputElement(t);this._setFocusElement(t);this.stateTarget=t;this.ariaTarget=t})));this.addController(new xc(this.inputElement,this._labelController));this._tooltipController=new Eh(this);this.addController(this._tooltipController);this._tooltipController.setPosition("top");this._tooltipController.setAriaTarget(this.inputElement);this._tooltipController.setShouldShow((t=>!t.opened));const t=this.shadowRoot.querySelector('[part="toggle-button"]');t.addEventListener("mousedown",(t=>t.preventDefault()));this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){if(t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)){t.preventDefault()}}_toggle(t){t.stopPropagation();if(this.$.overlay.opened){this.close()}else{this.open()}}_openedChanged(t){super._openedChanged(t);this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]');this.$.overlay.noVerticalOverlap=true}}An(Nc);const Ec='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.FilterButtonsWrapper{display:flex;justify-content:flex-end;gap:5px}.FilterButtonsWrapper .FilterOpen{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterOpen:hover{background:#00958f;color:#FFF}.FilterButtonsWrapper .FilterClear{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterClear:hover{background:#00958f;color:#FFF}.FilterModalHeader,.FilterModalBody,.FilterModalFooter{display:flex;flex-direction:column;gap:5px;align-items:center;margin:20px 0}.FilterModalHeader .FilterModalTitle,.FilterModalBody .FilterModalTitle,.FilterModalFooter .FilterModalTitle{margin:0;padding:0;font-weight:700;font-size:16px;color:#009993;text-transform:uppercase}.FilterModalHeader .FilterModalSearch,.FilterModalBody .FilterModalSearch,.FilterModalFooter .FilterModalSearch{border-radius:4px;background:#e8ebef;color:#263445;width:100%;height:26px;max-width:280px;padding:5px;font-size:15px;border:none;outline:#009993}.FilterModalHeader .FilterCalendarWrapper,.FilterModalBody .FilterCalendarWrapper,.FilterModalFooter .FilterCalendarWrapper{display:flex;gap:5px}.FilterModalHeader .FilterCalendarWrapper .VaadinDatePicker,.FilterModalBody .FilterCalendarWrapper .VaadinDatePicker,.FilterModalFooter .FilterCalendarWrapper .VaadinDatePicker{width:50%;max-width:143px}.FilterModalHeader .FilterModalButton,.FilterModalBody .FilterModalButton,.FilterModalFooter .FilterModalButton{cursor:pointer;border-radius:4px;padding:8px 60px;width:max-content;margin:5px;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.FilterModalHeader .FilterModalButton:hover,.FilterModalBody .FilterModalButton:hover,.FilterModalFooter .FilterModalButton:hover{background:#00958f;color:#FFF}.FilterModalHeader p,.FilterModalBody p,.FilterModalFooter p{margin:5px 0}';const zc=class{constructor(i){t(this,i);this.filterDraw=e(this,"filterDraw",7);this.filterSelection=e(this,"filterSelection",7);this.filterSelectionReset=e(this,"filterSelectionReset",7);this.showFilterId=true;this.activateTicketSearch=false;this.gameId="";this.playerId="";this.session="";this.postMessage=false;this.language="en";this.quickFiltersActive=false;this.clientStyling="";this.clientStylingUrlContent="";this.showFilterModal=false;this.showClearButton=false;this.filterData={};this.filterDataReset={ticketDrawId:"",filterFromCalendar:"",filterToCalendar:""};this.limitStylingAppends=false;this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling;this.stylingContainer.prepend(t)};this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent;this.stylingContainer.prepend(t)}),1)}}componentDidRender(){if(document.getElementById("#FilterById"))document.getElementById("#FilterById").value="";if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}filterSelectionHandler(t){if(this.postMessage)window.postMessage({type:"filterSelection",event:t},window.location.href);if(this.filterData.ticketDrawId||this.filterData.filterFromCalendar||this.filterData.filterToCalendar)this.filterSelection.emit(t)}filterSelectionResetHandler(t){if(this.postMessage)window.postMessage({type:"filterSelectionReset",event:t},window.location.href);this.filterSelectionReset.emit(t)}modalCloseEvent(){this.showFilterModal=false}toggleFilterModal(){this.showFilterModal=true}filterSearch(){this.modalCloseEvent();this.showClearButton=true;this.filterSelectionHandler(this.filterData);console.log(this.showClearButton)}resetSearch(){this.showClearButton=false;this.filterSelectionResetHandler(this.filterDataReset);this.filterData={}}handleTicketDrawId(t){this.filterData.ticketDrawId=t.target.value}handleFilterFrom(t){this.filterData.filterFromCalendar=new Date(t.target.value).toISOString()}handleFilterTo(t){this.filterData.filterToCalendar=new Date(t.target.value).toISOString()}render(){return i("div",{class:"HelperFilters",ref:t=>this.stylingContainer=t},i("div",{class:"FilterButtonsWrapper"},i("button",{class:"FilterOpen",onClick:()=>this.toggleFilterModal()},n("filterOpen",this.language)),console.log("in filter Open",this.showClearButton,this.quickFiltersActive),this.showClearButton||this.quickFiltersActive?i("button",{class:"FilterClear",onClick:()=>this.resetSearch()},n("filterClear",this.language)):null),i("helper-modal",{"title-modal":"Filter Modal",visible:this.showFilterModal,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent},i("div",{class:"FilterModalHeader"},i("h3",{class:"FilterModalTitle"},this.activateTicketSearch?n("filterModalTicketTitle",this.language):n("filterModalDrawTitle",this.language))),i("div",{class:"FilterModalBody"},i("input",{id:"FilterById",type:"text",value:this.filterData.ticketDrawId,onInput:t=>this.handleTicketDrawId(t),class:"FilterModalSearch",placeholder:this.activateTicketSearch?n("filterTicketPlaceholder",this.language):n("filterDrawPlaceholder",this.language)}),i("p",null,n("filterOrDate",this.language)),i("div",{class:"FilterCalendarWrapper"},i("vaadin-date-picker",{value:this.filterData.filterFromCalendar,onChange:t=>this.handleFilterFrom(t),placeholder:n("filterFromCalendar",this.language),class:"VaadinDatePicker"}),i("vaadin-date-picker",{value:this.filterData.filterToCalendar,onChange:t=>this.handleFilterTo(t),placeholder:n("filterToCalendar",this.language),class:"VaadinDatePicker"}))),i("div",{class:"FilterModalFooter"},i("button",{class:"FilterModalButton",onClick:()=>this.filterSearch()},n("filterModalButton",this.language)))))}};zc.style=Ec;const Pc="en";const Fc=["ro","en"];const Oc={en:{drawResultsHeader:"Last draw results",drawId:"Draw ID",drawName:"Game name",drawDate:"Draw Date",drawNumbersGridDraw:"Draw numbers Grid ",drawNumbersGridTicket:"Draw numbers Grid ",ticketResult:"Ticket result",amountWon:"Amount won",numberOfDraws:"Number of draws",multiplier:"Multiplier:",ticketPurchaseDate:"Ticket Purchase Date",ticketStatus:"Ticket Status",ticketId:"Ticket ID",ticketAmount:"Ticket Amount",winUpTo:"Win up to"},ro:{drawResultsHeader:"Ultimele rezultate extragere",drawId:"Id extragere",drawName:"Numele jocului",drawDate:"Data extragerii",drawNumbersGridDraw:"Numerele extrase Grid",drawNumbersGridTicket:"Numerele extrase Grid",ticketResult:"Rezultatul biletului",amountWon:"Suma castigata",numberOfDraws:"Numarul de extrageri",multiplier:"Multiplicator:",ticketPurchaseDate:"Data achizitionarii biletului",ticketStatus:"Statusul biletului",ticketId:"Id biletul",ticketAmount:"Valoarea biletului",winUpTo:"Poti castiga"},fr:{drawResultsHeader:"Résultats du dernier tirage",drawId:"ID de tirage",drawName:"Nom du jeu",drawDate:"Date du tirage",drawNumbersGridDraw:"Tirage des numéros Grille",drawNumbersGridTicket:"Tirage des numéros Grille",ticketResult:"Résultat du ticket",amountWon:"Montant gagné",numberOfDraws:"Nombre de tirages",multiplier:"Multiplicateur",ticketPurchaseDate:"Date d'achat du billet",ticketStatus:"Statut du ticket",ticketId:"ID de billets",ticketAmount:"Montant du billet",winUpTo:"Gagnez jusqu'à"},ar:{drawResultsHeader:"نتائج آخر سحب",drawId:"معرّف السحب",drawName:"اسم اللعبة",drawDate:"تاريخ السحب",drawNumbersGridDraw:"شبكة أرقام السحب",drawNumbersGridTicket:"شبكة أرقام السحب",ticketResult:"نتيجة التذكرة",amountWon:"المبلغ الذي تم ربحه",numberOfDraws:"عدد السحوبات",multiplier:"مضاعف",ticketPurchaseDate:"تاريخ شراء التذكرة",ticketStatus:"حالة التذكرة",ticketId:"معرّف التذكرة",ticketAmount:"مبلغ التذكرة",winUpTo:"ربح يصل إلى"}};const Ic=(t,e)=>{const i=e;return Oc[i!==undefined&&Fc.includes(i)?i:Pc][t]};const Bc='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.TicketInfo{display:flex;flex-direction:row;gap:15px;background-color:#009993;color:#fff;padding:12px;font-size:14px}.DrawResultsArea{margin-top:15px}.DrawResultsArea.TicketDraws .Content{padding:0;border:0}.DrawResultsArea.TicketDraws .DrawResultsBody{padding:0;margin-bottom:5px;border-radius:0;border:0}.DrawResultsSection{max-width:600px;margin:0px auto;border-radius:4px}.DrawResultsHeader{display:flex;justify-content:space-between;padding:10px 20px;background-color:#009993;color:#fff;font-size:14px;border-radius:4px 4px 0 0}.DrawResultsHeader h4{text-transform:uppercase;font-weight:400;margin:0;padding-top:15px}.DrawResultsBody{padding:20px;margin-bottom:5px;border-radius:0 0 4px 4px;border:1px solid #009993}.DrawResultsBody>div{margin:10px 0}.DrawResultsBody .NumberOfDrawsContainer{display:table;width:100%}.DrawNumbersGrid{display:flex;flex-direction:column;gap:5px}.DrawNumbersGrid label{display:block;margin-bottom:7px}.Toggle{cursor:pointer;display:inline-block}.ToggleSwitch{display:inline-block;background:#ccc;border-radius:16px;width:58px;height:24px;position:relative;vertical-align:middle;transition:background 0.25s}.ToggleSwitch:before,.ToggleSwitch:after{content:""}.ToggleSwitch:before{display:block;background:linear-gradient(to bottom, #fff 0%, #eee 100%);border-radius:50%;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.25);width:16px;height:16px;position:absolute;top:4px;left:4px;transition:left 0.25s}.Toggle:hover .ToggleSwitch:before{background:linear-gradient(to bottom, #fff 0%, #fff 100%);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.5)}.ToggleCheckbox:checked+.ToggleSwitch{background:#56c080}.ToggleCheckbox:checked+.ToggleSwitch:before{left:38px}.ToggleCheckbox{position:absolute;visibility:hidden}.Label{position:relative}.DrawTicketsContainer{display:flex;flex-direction:column;margin:20px auto 0}.DrawMultipler{margin-top:15px}.ExpandableBoxes{position:relative;display:flex;flex-direction:column;border:1px solid #ccc;border-radius:5px;background-color:white}.ExpandableBox{border-bottom:1px solid #ccc;transition:height 300ms ease-in-out;overflow:hidden;height:80px}.ExpandableBox:last-child{border-bottom:0}.ExpandableBoxHeader{position:relative;list-style:none;outline:0;cursor:pointer;text-transform:uppercase;transition:color 300ms ease-in-out;margin-bottom:24px;margin-left:5px}.ShowBox>.ExpandableBoxHeader{color:#009993}.ExpandableBoxHeader::-webkit-details-marker{display:none}.ExpandableBoxHeader:before,.ExpandableBoxHeader:after{content:"";position:absolute}.ExpandableBoxHeader:before{right:21px;top:50%;height:2px;margin-top:-1px;width:16px;background:#009993}.ExpandableBoxHeader:after{right:28px;top:50%;height:16px;margin-top:-8px;width:2px;margin-left:-1px;background:#009993;transition:all 300ms ease-in-out}.ShowBox .ExpandableBoxHeader:after{opacity:0;transform:translateY(25%)}.ExpandableBoxBody{padding-top:0;font-weight:lighter;margin-left:5px}.ExpandableBox.ShowBox{height:300px}';const Rc=class{constructor(e){t(this,e);this.language="en";this.drawMode=false;this.drawId="";this.gameName="";this.ticketDate="";this.ticketStatus="";this.ticketId="";this.ticketAmount="";this.ticketMultiplier=false;this.ticketDrawCount=0;this.ticketNumbers="";this.sessionId="";this.clientStyling="";this.clientStylingUrlContent="";this.ticketDrawData="";this.multiplier=3;this.isLoading=true;this.hasErrors=false;this.errorText="";this.ticketData=[];this.ticketDataLoaded=false;this.ticketDraws=[];this.toggleDrawer=[false];this.limitStylingAppends=false;this.ticketDrawDetails=[];this.ticketDrawDetailsFlag=true;this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling;this.stylingContainer.prepend(t)};this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent;this.stylingContainer.prepend(t)}),1)}}connectedCallback(){let t=[];if(this.ticketNumbers){this.gridNumbers=JSON.parse(this.ticketNumbers)}if(this.drawId){t.push(this.getDrawData())}Promise.all(t).then((()=>{this.isLoading=false})).catch((t=>{console.log("error ",t);this.isLoading=false}))}componentWillRender(){if(this.ticketDrawData&&this.ticketDrawDetailsFlag){this.ticketDrawDetails=JSON.parse(this.ticketDrawData);this.ticketDrawDetails.forEach((t=>{this.getDrawData(t.drawId).then((e=>t.drawData=e))}));this.ticketDrawDetailsFlag=false}}componentDidRender(){if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}getDrawData(t){this.isLoading=true;return new Promise(((e,i)=>{let s=new URL(`${this.endpoint}/games/${this.gameId}/draws/${t?t:this.drawId}`);fetch(s.href).then((t=>t.json())).then((i=>{if(t){e(i)}else{this.drawData=i;e(true)}this.isLoading=false})).catch((t=>{i(t);this.isLoading=false}))}))}drawerToggle(t){this.toggleDrawer=this.toggleDrawer.map(((e,i)=>{if(i==t){return!e}return e}));if(t>=this.toggleDrawer.length){this.toggleDrawer.push(true)}}render(){if(this.isLoading){return i("p",null,"Loading, please wait ...")}else if(this.hasErrors){i("p",null,this.errorText)}else{return i("section",{class:"DrawResultsSection",ref:t=>this.stylingContainer=t},this.drawMode?i("div",{class:"DrawResultsArea"},this.drawData&&i("div",null,i("div",{class:"DrawResultsHeader"},i("span",null,Ic("drawId",this.language),": ",this.drawData.id),i("span",null,Ic("drawDate",this.language),": ",this.drawData.date.slice(0,10))),i("div",{class:"DrawResultsBody"},i("div",{class:"DrawNumbersGrid"},i("p",null,Ic("drawNumbersGridDraw",this.language),"0:"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":this.drawData.winningNumbers.join(","),"display-selected":true,selectable:false,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},Ic("multiplier",this.language)," ",this.multiplier)))))):i("div",{class:"DrawResultsArea TicketDraws"},i("div",{class:"DrawResultsBody"},i("div",{class:"TicketIdContainer"},i("label",{class:"Label"},Ic("ticketId",this.language),": ",i("span",null,this.ticketId))),i("div",{class:"TicketAmountContainer"},i("label",{class:"Label"},Ic("ticketAmount",this.language)," ",i("span",null,this.ticketAmount))),i("div",{class:"DrawNumbersGrid"},this.gridNumbers.map(((t,e)=>i("div",null,i("label",{class:"Label"},Ic("drawNumbersGridTicket",this.language)," ",String.fromCharCode(e+65),":"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":t.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},Ic("multiplier",this.language)," ",JSON.stringify(this.ticketMultiplier))),i("div",{class:"NumberOfDrawsContainer"},i("label",{class:"Label"},Ic("numberOfDraws",this.language),": ",this.ticketDrawCount),i("div",{class:"DrawTicketsContainer"},this.ticketDrawDetails&&this.ticketDrawDetails.length>0&&i("div",{class:"ExpandableBoxes"},this.ticketDrawDetails.map(((t,e)=>{var s,o,r,n,a;return i("div",{class:{ExpandableBox:true,ShowBox:this.toggleDrawer[e]},onClick:()=>this.drawerToggle(e)},i("div",{class:"ExpandableBoxHeader"},i("div",{class:"TicketResultContainer"},i("p",null,Ic("ticketResult",this.language),": ",t.state)),t.state=="won"&&i("div",{class:"AmountWonContainer"},i("p",null,Ic("amountWon",this.language),": ",Number(t.amount).toLocaleString("en")," ",t.currency)),t.state=="lost"&&i("div",{class:"DrawIdContainer"},i("p",null,Ic("drawId",this.language),": ",t.drawId))),i("div",{class:"ExpandableBoxBody"},i("div",{class:"DrawIdContainer"},i("p",null,Ic("drawId",this.language),": ",t.drawId)),i("div",{class:"DrawDateContainer"},i("p",null,Ic("drawDate",this.language),": ",(s=t.drawData)===null||s===void 0?void 0:s.date.slice(0,10)," | ",(o=t.drawData)===null||o===void 0?void 0:o.date.slice(11,19))),i("div",{class:"DrawNumbersGrid"},t.drawData&&i("div",{class:"BulletContainer"},i("label",{class:"Label"},Ic("drawNumbersGridDraw",this.language)," ",String.fromCharCode(e+10),":"),i("lottery-grid",{"selected-numbers":(n=(r=t.drawData)===null||r===void 0?void 0:r.winningNumbers)===null||n===void 0?void 0:n.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent}))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},Ic("multiplier",this.language)," ",(a=t.drawData)===null||a===void 0?void 0:a.multiplier))))}))))))))}}};Rc.style=Bc;export{zc as helper_filters,Rc as lottery_draw_results};
3110
- //# sourceMappingURL=p-51117afe.entry.js.map
2920
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready();this.addController(new rl(this,(t=>{this._setInputElement(t);this._setFocusElement(t);this.stateTarget=t;this.ariaTarget=t})));this.addController(new ol(this.inputElement,this._labelController));this._tooltipController=new Sr(this);this.addController(this._tooltipController);this._tooltipController.setPosition("top");this._tooltipController.setAriaTarget(this.inputElement);this._tooltipController.setShouldShow((t=>!t.opened));const t=this.shadowRoot.querySelector('[part="toggle-button"]');t.addEventListener("mousedown",(t=>t.preventDefault()));this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){if(t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)){t.preventDefault()}}_toggle(t){t.stopPropagation();if(this.$.overlay.opened){this.close()}else{this.open()}}_openedChanged(t){super._openedChanged(t);this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]');this.$.overlay.noVerticalOverlap=true}}a(pl);const ml='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.FilterButtonsWrapper{display:flex;justify-content:flex-end;gap:5px}.FilterButtonsWrapper .FilterOpen{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterOpen:hover{background:#00958f;color:#FFF}.FilterButtonsWrapper .FilterClear{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterClear:hover{background:#00958f;color:#FFF}.FilterModalHeader,.FilterModalBody,.FilterModalFooter{display:flex;flex-direction:column;gap:5px;align-items:center;margin:20px 0}.FilterModalHeader .FilterModalTitle,.FilterModalBody .FilterModalTitle,.FilterModalFooter .FilterModalTitle{margin:0;padding:0;font-weight:700;font-size:16px;color:#009993;text-transform:uppercase}.FilterModalHeader .FilterModalSearch,.FilterModalBody .FilterModalSearch,.FilterModalFooter .FilterModalSearch{border-radius:4px;background:#e8ebef;color:#263445;width:100%;height:26px;max-width:280px;padding:5px;font-size:15px;border:none;outline:#009993}.FilterModalHeader .FilterCalendarWrapper,.FilterModalBody .FilterCalendarWrapper,.FilterModalFooter .FilterCalendarWrapper{display:flex;gap:5px}.FilterModalHeader .FilterCalendarWrapper .VaadinDatePicker,.FilterModalBody .FilterCalendarWrapper .VaadinDatePicker,.FilterModalFooter .FilterCalendarWrapper .VaadinDatePicker{width:50%;max-width:143px}.FilterModalHeader .FilterModalButton,.FilterModalBody .FilterModalButton,.FilterModalFooter .FilterModalButton{cursor:pointer;border-radius:4px;padding:8px 60px;width:max-content;margin:5px;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.FilterModalHeader .FilterModalButton:hover,.FilterModalBody .FilterModalButton:hover,.FilterModalFooter .FilterModalButton:hover{background:#00958f;color:#FFF}.FilterModalHeader p,.FilterModalBody p,.FilterModalFooter p{margin:5px 0}';const vl=class{constructor(i){t(this,i);this.filterDraw=e(this,"filterDraw",7);this.filterSelection=e(this,"filterSelection",7);this.filterSelectionReset=e(this,"filterSelectionReset",7);this.showFilterId=true;this.activateTicketSearch=false;this.gameId="";this.playerId="";this.session="";this.postMessage=false;this.language="en";this.quickFiltersActive=false;this.clientStyling="";this.clientStylingUrlContent="";this.showFilterModal=false;this.showClearButton=false;this.filterData={};this.filterDataReset={ticketDrawId:"",filterFromCalendar:"",filterToCalendar:""};this.limitStylingAppends=false;this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling;this.stylingContainer.prepend(t)};this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent;this.stylingContainer.prepend(t)}),1)}}componentDidRender(){if(document.getElementById("#FilterById"))document.getElementById("#FilterById").value="";if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}filterSelectionHandler(t){if(this.postMessage)window.postMessage({type:"filterSelection",event:t},window.location.href);if(this.filterData.ticketDrawId||this.filterData.filterFromCalendar||this.filterData.filterToCalendar)this.filterSelection.emit(t)}filterSelectionResetHandler(t){if(this.postMessage)window.postMessage({type:"filterSelectionReset",event:t},window.location.href);this.filterSelectionReset.emit(t)}modalCloseEvent(){this.showFilterModal=false}toggleFilterModal(){this.showFilterModal=true}filterSearch(){this.modalCloseEvent();this.showClearButton=true;this.filterSelectionHandler(this.filterData);console.log(this.showClearButton)}resetSearch(){this.showClearButton=false;this.filterSelectionResetHandler(this.filterDataReset);this.filterData={}}handleTicketDrawId(t){this.filterData.ticketDrawId=t.target.value}handleFilterFrom(t){this.filterData.filterFromCalendar=new Date(t.target.value).toISOString()}handleFilterTo(t){this.filterData.filterToCalendar=new Date(t.target.value).toISOString()}render(){return i("div",{class:"HelperFilters",ref:t=>this.stylingContainer=t},i("div",{class:"FilterButtonsWrapper"},i("button",{class:"FilterOpen",onClick:()=>this.toggleFilterModal()},n("filterOpen",this.language)),console.log("in filter Open",this.showClearButton,this.quickFiltersActive),this.showClearButton||this.quickFiltersActive?i("button",{class:"FilterClear",onClick:()=>this.resetSearch()},n("filterClear",this.language)):null),i("helper-modal",{"title-modal":"Filter Modal",visible:this.showFilterModal,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent},i("div",{class:"FilterModalHeader"},i("h3",{class:"FilterModalTitle"},this.activateTicketSearch?n("filterModalTicketTitle",this.language):n("filterModalDrawTitle",this.language))),i("div",{class:"FilterModalBody"},i("input",{id:"FilterById",type:"text",value:this.filterData.ticketDrawId,onInput:t=>this.handleTicketDrawId(t),class:"FilterModalSearch",placeholder:this.activateTicketSearch?n("filterTicketPlaceholder",this.language):n("filterDrawPlaceholder",this.language)}),i("p",null,n("filterOrDate",this.language)),i("div",{class:"FilterCalendarWrapper"},i("vaadin-date-picker",{value:this.filterData.filterFromCalendar,onChange:t=>this.handleFilterFrom(t),placeholder:n("filterFromCalendar",this.language),class:"VaadinDatePicker"}),i("vaadin-date-picker",{value:this.filterData.filterToCalendar,onChange:t=>this.handleFilterTo(t),placeholder:n("filterToCalendar",this.language),class:"VaadinDatePicker"}))),i("div",{class:"FilterModalFooter"},i("button",{class:"FilterModalButton",onClick:()=>this.filterSearch()},n("filterModalButton",this.language)))))}};vl.style=ml;const bl="en";const gl=["ro","en"];const yl={en:{drawResultsHeader:"Last draw results",drawId:"Draw ID",drawName:"Game name",drawDate:"Draw Date",drawNumbersGridDraw:"Draw numbers Grid ",drawNumbersGridTicket:"Draw numbers Grid ",ticketResult:"Ticket result",amountWon:"Amount won",numberOfDraws:"Number of draws",multiplier:"Multiplier:",ticketPurchaseDate:"Ticket Purchase Date",ticketStatus:"Ticket Status",ticketId:"Ticket ID",ticketAmount:"Ticket Amount",winUpTo:"Win up to"},ro:{drawResultsHeader:"Ultimele rezultate extragere",drawId:"Id extragere",drawName:"Numele jocului",drawDate:"Data extragerii",drawNumbersGridDraw:"Numerele extrase Grid",drawNumbersGridTicket:"Numerele extrase Grid",ticketResult:"Rezultatul biletului",amountWon:"Suma castigata",numberOfDraws:"Numarul de extrageri",multiplier:"Multiplicator:",ticketPurchaseDate:"Data achizitionarii biletului",ticketStatus:"Statusul biletului",ticketId:"Id biletul",ticketAmount:"Valoarea biletului",winUpTo:"Poti castiga"},fr:{drawResultsHeader:"Résultats du dernier tirage",drawId:"ID de tirage",drawName:"Nom du jeu",drawDate:"Date du tirage",drawNumbersGridDraw:"Tirage des numéros Grille",drawNumbersGridTicket:"Tirage des numéros Grille",ticketResult:"Résultat du ticket",amountWon:"Montant gagné",numberOfDraws:"Nombre de tirages",multiplier:"Multiplicateur",ticketPurchaseDate:"Date d'achat du billet",ticketStatus:"Statut du ticket",ticketId:"ID de billets",ticketAmount:"Montant du billet",winUpTo:"Gagnez jusqu'à"},ar:{drawResultsHeader:"نتائج آخر سحب",drawId:"معرّف السحب",drawName:"اسم اللعبة",drawDate:"تاريخ السحب",drawNumbersGridDraw:"شبكة أرقام السحب",drawNumbersGridTicket:"شبكة أرقام السحب",ticketResult:"نتيجة التذكرة",amountWon:"المبلغ الذي تم ربحه",numberOfDraws:"عدد السحوبات",multiplier:"مضاعف",ticketPurchaseDate:"تاريخ شراء التذكرة",ticketStatus:"حالة التذكرة",ticketId:"معرّف التذكرة",ticketAmount:"مبلغ التذكرة",winUpTo:"ربح يصل إلى"}};const wl=(t,e)=>{const i=e;return yl[i!==undefined&&gl.includes(i)?i:bl][t]};const xl='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.TicketInfo{display:flex;flex-direction:row;gap:15px;background-color:#009993;color:#fff;padding:12px;font-size:14px}.DrawResultsArea{margin-top:15px}.DrawResultsArea.TicketDraws .Content{padding:0;border:0}.DrawResultsArea.TicketDraws .DrawResultsBody{padding:0;margin-bottom:5px;border-radius:0;border:0}.DrawResultsSection{max-width:600px;margin:0px auto;border-radius:4px}.DrawResultsHeader{display:flex;justify-content:space-between;padding:10px 20px;background-color:#009993;color:#fff;font-size:14px;border-radius:4px 4px 0 0}.DrawResultsHeader h4{text-transform:uppercase;font-weight:400;margin:0;padding-top:15px}.DrawResultsBody{padding:20px;margin-bottom:5px;border-radius:0 0 4px 4px;border:1px solid #009993}.DrawResultsBody>div{margin:10px 0}.DrawResultsBody .NumberOfDrawsContainer{display:table;width:100%}.DrawNumbersGrid{display:flex;flex-direction:column;gap:5px}.DrawNumbersGrid label{display:block;margin-bottom:7px}.Toggle{cursor:pointer;display:inline-block}.ToggleSwitch{display:inline-block;background:#ccc;border-radius:16px;width:58px;height:24px;position:relative;vertical-align:middle;transition:background 0.25s}.ToggleSwitch:before,.ToggleSwitch:after{content:""}.ToggleSwitch:before{display:block;background:linear-gradient(to bottom, #fff 0%, #eee 100%);border-radius:50%;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.25);width:16px;height:16px;position:absolute;top:4px;left:4px;transition:left 0.25s}.Toggle:hover .ToggleSwitch:before{background:linear-gradient(to bottom, #fff 0%, #fff 100%);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.5)}.ToggleCheckbox:checked+.ToggleSwitch{background:#56c080}.ToggleCheckbox:checked+.ToggleSwitch:before{left:38px}.ToggleCheckbox{position:absolute;visibility:hidden}.Label{position:relative}.DrawTicketsContainer{display:flex;flex-direction:column;margin:20px auto 0}.DrawMultipler{margin-top:15px}.ExpandableBoxes{position:relative;display:flex;flex-direction:column;border:1px solid #ccc;border-radius:5px;background-color:white}.ExpandableBox{border-bottom:1px solid #ccc;transition:height 300ms ease-in-out;overflow:hidden;height:80px}.ExpandableBox:last-child{border-bottom:0}.ExpandableBoxHeader{position:relative;list-style:none;outline:0;cursor:pointer;text-transform:uppercase;transition:color 300ms ease-in-out;margin-bottom:24px;margin-left:5px}.ShowBox>.ExpandableBoxHeader{color:#009993}.ExpandableBoxHeader::-webkit-details-marker{display:none}.ExpandableBoxHeader:before,.ExpandableBoxHeader:after{content:"";position:absolute}.ExpandableBoxHeader:before{right:21px;top:50%;height:2px;margin-top:-1px;width:16px;background:#009993}.ExpandableBoxHeader:after{right:28px;top:50%;height:16px;margin-top:-8px;width:2px;margin-left:-1px;background:#009993;transition:all 300ms ease-in-out}.ShowBox .ExpandableBoxHeader:after{opacity:0;transform:translateY(25%)}.ExpandableBoxBody{padding-top:0;font-weight:lighter;margin-left:5px}.ExpandableBox.ShowBox{height:300px}';const _l=class{constructor(e){t(this,e);this.language="en";this.drawMode=false;this.drawId="";this.gameName="";this.ticketDate="";this.ticketStatus="";this.ticketId="";this.ticketAmount="";this.ticketMultiplier=false;this.ticketDrawCount=0;this.ticketNumbers="";this.sessionId="";this.clientStyling="";this.clientStylingUrlContent="";this.ticketDrawData="";this.multiplier=3;this.isLoading=true;this.hasErrors=false;this.errorText="";this.ticketData=[];this.ticketDataLoaded=false;this.ticketDraws=[];this.toggleDrawer=[false];this.limitStylingAppends=false;this.ticketDrawDetails=[];this.ticketDrawDetailsFlag=true;this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling;this.stylingContainer.prepend(t)};this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent;this.stylingContainer.prepend(t)}),1)}}connectedCallback(){let t=[];if(this.ticketNumbers){this.gridNumbers=JSON.parse(this.ticketNumbers)}if(this.drawId){t.push(this.getDrawData())}Promise.all(t).then((()=>{this.isLoading=false})).catch((t=>{console.log("error ",t);this.isLoading=false}))}componentWillRender(){if(this.ticketDrawData&&this.ticketDrawDetailsFlag){this.ticketDrawDetails=JSON.parse(this.ticketDrawData);this.ticketDrawDetails.forEach((t=>{this.getDrawData(t.drawId).then((e=>t.drawData=e))}));this.ticketDrawDetailsFlag=false}}componentDidRender(){if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}getDrawData(t){this.isLoading=true;return new Promise(((e,i)=>{let s=new URL(`${this.endpoint}/games/${this.gameId}/draws/${t?t:this.drawId}`);fetch(s.href).then((t=>t.json())).then((i=>{if(t){e(i)}else{this.drawData=i;e(true)}this.isLoading=false})).catch((t=>{i(t);this.isLoading=false}))}))}drawerToggle(t){this.toggleDrawer=this.toggleDrawer.map(((e,i)=>{if(i==t){return!e}return e}));if(t>=this.toggleDrawer.length){this.toggleDrawer.push(true)}}render(){if(this.isLoading){return i("p",null,"Loading, please wait ...")}else if(this.hasErrors){i("p",null,this.errorText)}else{return i("section",{class:"DrawResultsSection",ref:t=>this.stylingContainer=t},this.drawMode?i("div",{class:"DrawResultsArea"},this.drawData&&i("div",null,i("div",{class:"DrawResultsHeader"},i("span",null,wl("drawId",this.language),": ",this.drawData.id),i("span",null,wl("drawDate",this.language),": ",this.drawData.date.slice(0,10))),i("div",{class:"DrawResultsBody"},i("div",{class:"DrawNumbersGrid"},i("p",null,wl("drawNumbersGridDraw",this.language),"0:"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":this.drawData.winningNumbers.join(","),"display-selected":true,selectable:false,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},wl("multiplier",this.language)," ",this.multiplier)))))):i("div",{class:"DrawResultsArea TicketDraws"},i("div",{class:"DrawResultsBody"},i("div",{class:"TicketIdContainer"},i("label",{class:"Label"},wl("ticketId",this.language),": ",i("span",null,this.ticketId))),i("div",{class:"TicketAmountContainer"},i("label",{class:"Label"},wl("ticketAmount",this.language)," ",i("span",null,this.ticketAmount))),i("div",{class:"DrawNumbersGrid"},this.gridNumbers.map(((t,e)=>i("div",null,i("label",{class:"Label"},wl("drawNumbersGridTicket",this.language)," ",String.fromCharCode(e+65),":"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":t.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},wl("multiplier",this.language)," ",JSON.stringify(this.ticketMultiplier))),i("div",{class:"NumberOfDrawsContainer"},i("label",{class:"Label"},wl("numberOfDraws",this.language),": ",this.ticketDrawCount),i("div",{class:"DrawTicketsContainer"},this.ticketDrawDetails&&this.ticketDrawDetails.length>0&&i("div",{class:"ExpandableBoxes"},this.ticketDrawDetails.map(((t,e)=>{var s,r,o,n,a;return i("div",{class:{ExpandableBox:true,ShowBox:this.toggleDrawer[e]},onClick:()=>this.drawerToggle(e)},i("div",{class:"ExpandableBoxHeader"},i("div",{class:"TicketResultContainer"},i("p",null,wl("ticketResult",this.language),": ",t.state)),t.state=="won"&&i("div",{class:"AmountWonContainer"},i("p",null,wl("amountWon",this.language),": ",Number(t.amount).toLocaleString("en")," ",t.currency)),t.state=="lost"&&i("div",{class:"DrawIdContainer"},i("p",null,wl("drawId",this.language),": ",t.drawId))),i("div",{class:"ExpandableBoxBody"},i("div",{class:"DrawIdContainer"},i("p",null,wl("drawId",this.language),": ",t.drawId)),i("div",{class:"DrawDateContainer"},i("p",null,wl("drawDate",this.language),": ",(s=t.drawData)===null||s===void 0?void 0:s.date.slice(0,10)," | ",(r=t.drawData)===null||r===void 0?void 0:r.date.slice(11,19))),i("div",{class:"DrawNumbersGrid"},t.drawData&&i("div",{class:"BulletContainer"},i("label",{class:"Label"},wl("drawNumbersGridDraw",this.language)," ",String.fromCharCode(e+10),":"),i("lottery-grid",{"selected-numbers":(n=(o=t.drawData)===null||o===void 0?void 0:o.winningNumbers)===null||n===void 0?void 0:n.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent}))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},wl("multiplier",this.language)," ",(a=t.drawData)===null||a===void 0?void 0:a.multiplier))))}))))))))}}};_l.style=xl;export{vl as helper_filters,_l as lottery_draw_results};
2921
+ //# sourceMappingURL=p-003afa71.entry.js.map