@everymatrix/lottery-game-page 1.22.0 → 1.22.1

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.
@@ -0,0 +1,3110 @@
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]};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */function a(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.`)}}}
7
+ /**
8
+ * @license
9
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
10
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11
+ */class l extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.3"}}a(l);
12
+ /**
13
+ * @license
14
+ * Copyright 2019 Google LLC
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
17
+ /**
18
+ * @license
19
+ * Copyright 2017 Google LLC
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");
22
+ /**
23
+ * @license
24
+ * Copyright 2017 Google LLC
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
27
+ /**
28
+ * @license
29
+ * Copyright 2017 Google LLC
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");
32
+ /**
33
+ * @license
34
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
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)}}
37
+ /**
38
+ * @license
39
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
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)};
42
+ /**
43
+ * @license
44
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
45
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
+ */const _t=m`
47
+ :host {
48
+ /* Base (background) */
49
+ --lumo-base-color: #fff;
50
+
51
+ /* Tint */
52
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
53
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
54
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
55
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
56
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
57
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
58
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
59
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
60
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
61
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
62
+ --lumo-tint: #fff;
63
+
64
+ /* Shade */
65
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
66
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
67
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
68
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
69
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
70
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
71
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
72
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
73
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
74
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
75
+ --lumo-shade: hsl(214, 35%, 15%);
76
+
77
+ /* Contrast */
78
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
79
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
80
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
81
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
82
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
83
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
84
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
85
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
86
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
87
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
88
+ --lumo-contrast: var(--lumo-shade);
89
+
90
+ /* Text */
91
+ --lumo-header-text-color: var(--lumo-contrast);
92
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
93
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
94
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
95
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
96
+
97
+ /* Primary */
98
+ --lumo-primary-color: hsl(214, 100%, 48%);
99
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
100
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
101
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
102
+ --lumo-primary-contrast-color: #fff;
103
+
104
+ /* Error */
105
+ --lumo-error-color: hsl(3, 85%, 48%);
106
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
107
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
108
+ --lumo-error-text-color: hsl(3, 89%, 42%);
109
+ --lumo-error-contrast-color: #fff;
110
+
111
+ /* Success */
112
+ --lumo-success-color: hsl(145, 72%, 30%);
113
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
114
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
115
+ --lumo-success-text-color: hsl(145, 85%, 25%);
116
+ --lumo-success-contrast-color: #fff;
117
+
118
+ /* Warning */
119
+ --lumo-warning-color: hsl(48, 100%, 50%);
120
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
121
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
122
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
123
+ }
124
+
125
+ /* forced-colors mode adjustments */
126
+ @media (forced-colors: active) {
127
+ html {
128
+ --lumo-disabled-text-color: GrayText;
129
+ }
130
+ }
131
+ `;xt("color-props",_t);const kt=m`
132
+ [theme~='dark'] {
133
+ /* Base (background) */
134
+ --lumo-base-color: hsl(214, 35%, 21%);
135
+
136
+ /* Tint */
137
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
138
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
139
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
140
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
141
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
142
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
143
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
144
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
145
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
146
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
147
+ --lumo-tint: hsl(214, 100%, 98%);
148
+
149
+ /* Shade */
150
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
151
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
152
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
153
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
154
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
155
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
156
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
157
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
158
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
159
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
160
+ --lumo-shade: hsl(214, 33%, 13%);
161
+
162
+ /* Contrast */
163
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
164
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
165
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
166
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
167
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
168
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
169
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
170
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
171
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
172
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
173
+ --lumo-contrast: var(--lumo-tint);
174
+
175
+ /* Text */
176
+ --lumo-header-text-color: var(--lumo-contrast);
177
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
178
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
179
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
180
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
181
+
182
+ /* Primary */
183
+ --lumo-primary-color: hsl(214, 90%, 48%);
184
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
185
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
186
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
187
+ --lumo-primary-contrast-color: #fff;
188
+
189
+ /* Error */
190
+ --lumo-error-color: hsl(3, 79%, 49%);
191
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
192
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
193
+ --lumo-error-text-color: hsl(3, 100%, 80%);
194
+
195
+ /* Success */
196
+ --lumo-success-color: hsl(145, 72%, 30%);
197
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
198
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
199
+ --lumo-success-text-color: hsl(145, 85%, 46%);
200
+
201
+ /* Warning */
202
+ --lumo-warning-color: hsl(43, 100%, 48%);
203
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
204
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
205
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
206
+ }
207
+
208
+ html {
209
+ color: var(--lumo-body-text-color);
210
+ background-color: var(--lumo-base-color);
211
+ color-scheme: light;
212
+ }
213
+
214
+ [theme~='dark'] {
215
+ color: var(--lumo-body-text-color);
216
+ background-color: var(--lumo-base-color);
217
+ color-scheme: dark;
218
+ }
219
+
220
+ h1,
221
+ h2,
222
+ h3,
223
+ h4,
224
+ h5,
225
+ h6 {
226
+ color: var(--lumo-header-text-color);
227
+ }
228
+
229
+ a:where(:any-link) {
230
+ color: var(--lumo-primary-text-color);
231
+ }
232
+
233
+ a:not(:any-link) {
234
+ color: var(--lumo-disabled-text-color);
235
+ }
236
+
237
+ blockquote {
238
+ color: var(--lumo-secondary-text-color);
239
+ }
240
+
241
+ code,
242
+ pre {
243
+ background-color: var(--lumo-contrast-10pct);
244
+ border-radius: var(--lumo-border-radius-m);
245
+ }
246
+ `;yt("",kt,{moduleId:"lumo-color"});
247
+ /**
248
+ * @license
249
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
250
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
251
+ */const At=m`
252
+ :host {
253
+ --lumo-size-xs: 1.625rem;
254
+ --lumo-size-s: 1.875rem;
255
+ --lumo-size-m: 2.25rem;
256
+ --lumo-size-l: 2.75rem;
257
+ --lumo-size-xl: 3.5rem;
258
+
259
+ /* Icons */
260
+ --lumo-icon-size-s: 1.25em;
261
+ --lumo-icon-size-m: 1.5em;
262
+ --lumo-icon-size-l: 2.25em;
263
+ /* For backwards compatibility */
264
+ --lumo-icon-size: var(--lumo-icon-size-m);
265
+ }
266
+ `;xt("sizing-props",At);
267
+ /**
268
+ * @license
269
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
270
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
271
+ */const Ct=m`
272
+ :host {
273
+ /* Border radius */
274
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
275
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
276
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
277
+
278
+ /* Shadow */
279
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
280
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
281
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
282
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
283
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
284
+
285
+ /* Clickable element cursor */
286
+ --lumo-clickable-cursor: default;
287
+ }
288
+ `;m`
289
+ html {
290
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
291
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
292
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
293
+ }
294
+ `;xt("style-props",Ct);
295
+ /**
296
+ * @license
297
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
298
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
299
+ */const Dt=m`
300
+ :host {
301
+ /* prettier-ignore */
302
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
303
+
304
+ /* Font sizes */
305
+ --lumo-font-size-xxs: 0.75rem;
306
+ --lumo-font-size-xs: 0.8125rem;
307
+ --lumo-font-size-s: 0.875rem;
308
+ --lumo-font-size-m: 1rem;
309
+ --lumo-font-size-l: 1.125rem;
310
+ --lumo-font-size-xl: 1.375rem;
311
+ --lumo-font-size-xxl: 1.75rem;
312
+ --lumo-font-size-xxxl: 2.5rem;
313
+
314
+ /* Line heights */
315
+ --lumo-line-height-xs: 1.25;
316
+ --lumo-line-height-s: 1.375;
317
+ --lumo-line-height-m: 1.625;
318
+ }
319
+ `;const Tt=m`
320
+ body,
321
+ :host {
322
+ font-family: var(--lumo-font-family);
323
+ font-size: var(--lumo-font-size-m);
324
+ line-height: var(--lumo-line-height-m);
325
+ -webkit-text-size-adjust: 100%;
326
+ -webkit-font-smoothing: antialiased;
327
+ -moz-osx-font-smoothing: grayscale;
328
+ }
329
+
330
+ small,
331
+ [theme~='font-size-s'] {
332
+ font-size: var(--lumo-font-size-s);
333
+ line-height: var(--lumo-line-height-s);
334
+ }
335
+
336
+ [theme~='font-size-xs'] {
337
+ font-size: var(--lumo-font-size-xs);
338
+ line-height: var(--lumo-line-height-xs);
339
+ }
340
+
341
+ :where(h1, h2, h3, h4, h5, h6) {
342
+ font-weight: 600;
343
+ line-height: var(--lumo-line-height-xs);
344
+ margin-block: 0;
345
+ }
346
+
347
+ :where(h1) {
348
+ font-size: var(--lumo-font-size-xxxl);
349
+ }
350
+
351
+ :where(h2) {
352
+ font-size: var(--lumo-font-size-xxl);
353
+ }
354
+
355
+ :where(h3) {
356
+ font-size: var(--lumo-font-size-xl);
357
+ }
358
+
359
+ :where(h4) {
360
+ font-size: var(--lumo-font-size-l);
361
+ }
362
+
363
+ :where(h5) {
364
+ font-size: var(--lumo-font-size-m);
365
+ }
366
+
367
+ :where(h6) {
368
+ font-size: var(--lumo-font-size-xs);
369
+ text-transform: uppercase;
370
+ letter-spacing: 0.03em;
371
+ }
372
+
373
+ p,
374
+ blockquote {
375
+ margin-top: 0.5em;
376
+ margin-bottom: 0.75em;
377
+ }
378
+
379
+ a {
380
+ text-decoration: none;
381
+ }
382
+
383
+ a:where(:any-link):hover {
384
+ text-decoration: underline;
385
+ }
386
+
387
+ hr {
388
+ display: block;
389
+ align-self: stretch;
390
+ height: 1px;
391
+ border: 0;
392
+ padding: 0;
393
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
394
+ background-color: var(--lumo-contrast-10pct);
395
+ }
396
+
397
+ blockquote {
398
+ border-left: 2px solid var(--lumo-contrast-30pct);
399
+ }
400
+
401
+ b,
402
+ strong {
403
+ font-weight: 600;
404
+ }
405
+
406
+ /* RTL specific styles */
407
+ blockquote[dir='rtl'] {
408
+ border-left: none;
409
+ border-right: 2px solid var(--lumo-contrast-30pct);
410
+ }
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`
422
+ :host {
423
+ background-color: var(--lumo-contrast-10pct);
424
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
425
+ font-weight: 500;
426
+ line-height: 1;
427
+ position: relative;
428
+ cursor: text;
429
+ box-sizing: border-box;
430
+ border-radius:
431
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
432
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
433
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
434
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
435
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
436
+ /* Fallback */
437
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
438
+ /* Default field border color */
439
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
440
+ }
441
+
442
+ :host([dir='rtl']) {
443
+ border-radius:
444
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
445
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
446
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
447
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
448
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
449
+ }
450
+
451
+ /* Used for hover and activation effects */
452
+ :host::after {
453
+ content: '';
454
+ position: absolute;
455
+ inset: 0;
456
+ border-radius: inherit;
457
+ pointer-events: none;
458
+ background-color: var(--lumo-contrast-50pct);
459
+ opacity: 0;
460
+ transition: transform 0.15s, opacity 0.2s;
461
+ transform-origin: 100% 0;
462
+ }
463
+
464
+ ::slotted(:not([slot$='fix'])) {
465
+ cursor: inherit;
466
+ min-height: var(--lumo-text-field-size, var(--lumo-size-m));
467
+ padding: 0 0.25em;
468
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
469
+ -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
470
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
471
+ }
472
+
473
+ /* Read-only */
474
+ :host([readonly]) {
475
+ color: var(--lumo-secondary-text-color);
476
+ background-color: transparent;
477
+ cursor: default;
478
+ }
479
+
480
+ :host([readonly])::after {
481
+ background-color: transparent;
482
+ opacity: 1;
483
+ border: 1px dashed var(--lumo-contrast-30pct);
484
+ }
485
+
486
+ /* Disabled */
487
+ :host([disabled]) {
488
+ background-color: var(--lumo-contrast-5pct);
489
+ }
490
+
491
+ :host([disabled]) ::slotted(*) {
492
+ color: var(--lumo-disabled-text-color);
493
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
494
+ }
495
+
496
+ /* Invalid */
497
+ :host([invalid]) {
498
+ background-color: var(--lumo-error-color-10pct);
499
+ }
500
+
501
+ :host([invalid])::after {
502
+ background-color: var(--lumo-error-color-50pct);
503
+ }
504
+
505
+ /* Slotted icons */
506
+ ::slotted(vaadin-icon) {
507
+ color: var(--lumo-contrast-60pct);
508
+ width: var(--lumo-icon-size-m);
509
+ height: var(--lumo-icon-size-m);
510
+ }
511
+
512
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
513
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
514
+ padding: 0.25em;
515
+ box-sizing: border-box !important;
516
+ }
517
+
518
+ /* Text align */
519
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
520
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
521
+ }
522
+
523
+ @-moz-document url-prefix() {
524
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
525
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
526
+ }
527
+ }
528
+
529
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
530
+ text-align: start;
531
+ --_lumo-text-field-overflow-mask-image: none;
532
+ }
533
+
534
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
535
+ text-align: center;
536
+ --_lumo-text-field-overflow-mask-image: none;
537
+ }
538
+
539
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
540
+ text-align: end;
541
+ --_lumo-text-field-overflow-mask-image: none;
542
+ }
543
+
544
+ @-moz-document url-prefix() {
545
+ /* Firefox is smart enough to align overflowing text to right */
546
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
547
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
548
+ }
549
+ }
550
+
551
+ @-moz-document url-prefix() {
552
+ /* Firefox is smart enough to align overflowing text to right */
553
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
554
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
555
+ }
556
+ }
557
+
558
+ /* RTL specific styles */
559
+ :host([dir='rtl'])::after {
560
+ transform-origin: 0% 0;
561
+ }
562
+
563
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
564
+ --_lumo-text-field-overflow-mask-image: none;
565
+ }
566
+
567
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
568
+ --_lumo-text-field-overflow-mask-image: none;
569
+ }
570
+
571
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
572
+ --_lumo-text-field-overflow-mask-image: none;
573
+ }
574
+
575
+ @-moz-document url-prefix() {
576
+ /* Firefox is smart enough to align overflowing text to right */
577
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
578
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
579
+ }
580
+ }
581
+
582
+ @-moz-document url-prefix() {
583
+ /* Firefox is smart enough to align overflowing text to right */
584
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
585
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
586
+ }
587
+ }
588
+ `,{moduleId:"lumo-input-container"});
589
+ /**
590
+ @license
591
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
592
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
593
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
594
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
595
+ Code distributed by Google as part of the polymer project is also
596
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
597
+ */window.JSCompiler_renameProperty=function(t,e){return t};
598
+ /**
599
+ @license
600
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
601
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
602
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
603
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
604
+ Code distributed by Google as part of the polymer project is also
605
+ 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)}
607
+ /**
608
+ @license
609
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
610
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
611
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
612
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
613
+ Code distributed by Google as part of the polymer project is also
614
+ 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;
616
+ /**
617
+ @license
618
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
619
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
620
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
621
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
622
+ Code distributed by Google as part of the polymer project is also
623
+ 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};
625
+ /**
626
+ @license
627
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
628
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
629
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
630
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
631
+ Code distributed by Google as part of the polymer project is also
632
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
633
+ */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);
634
+ /**
635
+ @license
636
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
637
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
638
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
639
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
640
+ Code distributed by Google as part of the polymer project is also
641
+ 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}
643
+ /**
644
+ @license
645
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
646
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
647
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
648
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
649
+ Code distributed by Google as part of the polymer project is also
650
+ 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;
652
+ /**
653
+ @license
654
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
655
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
656
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
657
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
658
+ Code distributed by Google as part of the polymer project is also
659
+ 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(".")}
661
+ /**
662
+ @license
663
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
664
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
665
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
666
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
667
+ Code distributed by Google as part of the polymer project is also
668
+ 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())}
670
+ /**
671
+ @license
672
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
673
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
674
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
675
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
676
+ Code distributed by Google as part of the polymer project is also
677
+ 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}}};
679
+ /**
680
+ @license
681
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
682
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
683
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
684
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
685
+ Code distributed by Google as part of the polymer project is also
686
+ 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}));
688
+ /**
689
+ @license
690
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
691
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
692
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
693
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
694
+ Code distributed by Google as part of the polymer project is also
695
+ 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}));
697
+ /**
698
+ @license
699
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
700
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
701
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
702
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
703
+ Code distributed by Google as part of the polymer project is also
704
+ 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}));
706
+ /**
707
+ * @fileoverview
708
+ * @suppress {checkPrototypalTypes}
709
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
710
+ * This code may only be used under the BSD style license found at
711
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
712
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
713
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
714
+ * Google as part of the polymer project is also subject to an additional IP
715
+ * 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=[];
717
+ /**
718
+ @license
719
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
720
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
721
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
722
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
723
+ Code distributed by Google as part of the polymer project is also
724
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
725
+ */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}));
726
+ /**
727
+ * @fileoverview
728
+ * @suppress {checkPrototypalTypes}
729
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
730
+ * This code may only be used under the BSD style license found at
731
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
732
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
733
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
734
+ * Google as part of the polymer project is also subject to an additional IP
735
+ * 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}));
737
+ /**
738
+ @license
739
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
740
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
741
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
742
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
743
+ Code distributed by Google as part of the polymer project is also
744
+ 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")}};
746
+ /**
747
+ @license
748
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
749
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
750
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
751
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
752
+ Code distributed by Google as part of the polymer project is also
753
+ 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.`)}}}
760
+ /**
761
+ * @license
762
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
763
+ * 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)}}}
765
+ /**
766
+ * @license
767
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
768
+ * 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`
770
+ <style>
771
+ :host {
772
+ display: flex;
773
+ align-items: center;
774
+ flex: 0 1 auto;
775
+ border-radius:
776
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
777
+ var(--vaadin-input-field-top-start-radius, var(--__border-radius))
778
+ var(--vaadin-input-field-top-end-radius, var(--__border-radius))
779
+ var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
780
+ var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
781
+ --_border-radius: var(--vaadin-input-field-border-radius, 0px);
782
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
783
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
784
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
785
+ }
786
+
787
+ :host([dir='rtl']) {
788
+ border-radius:
789
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
790
+ var(--vaadin-input-field-top-end-radius, var(--_border-radius))
791
+ var(--vaadin-input-field-top-start-radius, var(--_border-radius))
792
+ var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
793
+ var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
794
+ }
795
+
796
+ :host([hidden]) {
797
+ display: none !important;
798
+ }
799
+
800
+ /* Reset the native input styles */
801
+ ::slotted(input) {
802
+ -webkit-appearance: none;
803
+ -moz-appearance: none;
804
+ flex: auto;
805
+ white-space: nowrap;
806
+ overflow: hidden;
807
+ width: 100%;
808
+ height: 100%;
809
+ outline: none;
810
+ margin: 0;
811
+ padding: 0;
812
+ border: 0;
813
+ border-radius: 0;
814
+ min-width: 0;
815
+ font: inherit;
816
+ line-height: normal;
817
+ color: inherit;
818
+ background-color: transparent;
819
+ /* Disable default invalid style in Firefox */
820
+ box-shadow: none;
821
+ }
822
+
823
+ ::slotted(*) {
824
+ flex: none;
825
+ }
826
+
827
+ ::slotted(:is(input, textarea))::placeholder {
828
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
829
+ /* because ::slotted(...)::placeholder does not work in Safari. */
830
+ font: inherit;
831
+ color: inherit;
832
+ /* Override default opacity in Firefox */
833
+ opacity: 1;
834
+ }
835
+ </style>
836
+ <slot name="prefix"></slot>
837
+ <slot></slot>
838
+ <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);
840
+ /**
841
+ * @license
842
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
843
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
844
+ */const Us=m`
845
+ :host {
846
+ /* Square */
847
+ --lumo-space-xs: 0.25rem;
848
+ --lumo-space-s: 0.5rem;
849
+ --lumo-space-m: 1rem;
850
+ --lumo-space-l: 1.5rem;
851
+ --lumo-space-xl: 2.5rem;
852
+
853
+ /* Wide */
854
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
855
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
856
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
857
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
858
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
859
+
860
+ /* Tall */
861
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
862
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
863
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
864
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
865
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
866
+ }
867
+ `;xt("spacing-props",Us);
868
+ /**
869
+ * @license
870
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
871
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
872
+ */const Hs=m`
873
+ :host {
874
+ top: var(--lumo-space-m);
875
+ right: var(--lumo-space-m);
876
+ bottom: var(--lumo-space-m);
877
+ left: var(--lumo-space-m);
878
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
879
+ /* stylelint-disable-next-line */
880
+ outline: 0px solid transparent;
881
+ }
882
+
883
+ [part='overlay'] {
884
+ background-color: var(--lumo-base-color);
885
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
886
+ border-radius: var(--lumo-border-radius-m);
887
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
888
+ color: var(--lumo-body-text-color);
889
+ font-family: var(--lumo-font-family);
890
+ font-size: var(--lumo-font-size-m);
891
+ font-weight: 400;
892
+ line-height: var(--lumo-line-height-m);
893
+ letter-spacing: 0;
894
+ text-transform: none;
895
+ -webkit-text-size-adjust: 100%;
896
+ -webkit-font-smoothing: antialiased;
897
+ -moz-osx-font-smoothing: grayscale;
898
+ }
899
+
900
+ [part='content'] {
901
+ padding: var(--lumo-space-xs);
902
+ }
903
+
904
+ [part='backdrop'] {
905
+ background-color: var(--lumo-shade-20pct);
906
+ animation: 0.2s lumo-overlay-backdrop-enter both;
907
+ will-change: opacity;
908
+ }
909
+
910
+ @keyframes lumo-overlay-backdrop-enter {
911
+ 0% {
912
+ opacity: 0;
913
+ }
914
+ }
915
+
916
+ :host([closing]) [part='backdrop'] {
917
+ animation: 0.2s lumo-overlay-backdrop-exit both;
918
+ }
919
+
920
+ @keyframes lumo-overlay-backdrop-exit {
921
+ 100% {
922
+ opacity: 0;
923
+ }
924
+ }
925
+
926
+ @keyframes lumo-overlay-dummy-animation {
927
+ 0% {
928
+ opacity: 1;
929
+ }
930
+
931
+ 100% {
932
+ opacity: 1;
933
+ }
934
+ }
935
+ `;yt("",Hs,{moduleId:"lumo-overlay"});
936
+ /**
937
+ * @license
938
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
939
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
940
+ */const Gs=m`
941
+ :host([opening]),
942
+ :host([closing]) {
943
+ animation: 0.14s lumo-overlay-dummy-animation;
944
+ }
945
+
946
+ [part='overlay'] {
947
+ will-change: opacity, transform;
948
+ }
949
+
950
+ :host([opening]) [part='overlay'] {
951
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
952
+ }
953
+
954
+ @keyframes lumo-menu-overlay-enter {
955
+ 0% {
956
+ opacity: 0;
957
+ transform: translateY(-4px);
958
+ }
959
+ }
960
+
961
+ :host([closing]) [part='overlay'] {
962
+ animation: 0.1s lumo-menu-overlay-exit both;
963
+ }
964
+
965
+ @keyframes lumo-menu-overlay-exit {
966
+ 100% {
967
+ opacity: 0;
968
+ }
969
+ }
970
+ `;yt("",Gs,{moduleId:"lumo-menu-overlay-core"});const qs=m`
971
+ /* Small viewport (bottom sheet) styles */
972
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
973
+ @media (max-width: 420px), (max-height: 420px) {
974
+ :host {
975
+ top: 0 !important;
976
+ right: 0 !important;
977
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
978
+ left: 0 !important;
979
+ align-items: stretch !important;
980
+ justify-content: flex-end !important;
981
+ }
982
+
983
+ [part='overlay'] {
984
+ max-height: 50vh;
985
+ width: 100vw;
986
+ border-radius: 0;
987
+ box-shadow: var(--lumo-box-shadow-xl);
988
+ }
989
+
990
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
991
+ [part='content'] {
992
+ padding: 30px var(--lumo-space-m);
993
+ max-height: inherit;
994
+ box-sizing: border-box;
995
+ -webkit-overflow-scrolling: touch;
996
+ overflow: auto;
997
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
998
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
999
+ }
1000
+
1001
+ [part='backdrop'] {
1002
+ display: block;
1003
+ }
1004
+
1005
+ /* Animations */
1006
+
1007
+ :host([opening]) [part='overlay'] {
1008
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
1009
+ }
1010
+
1011
+ :host([closing]),
1012
+ :host([closing]) [part='backdrop'] {
1013
+ animation-delay: 0.14s;
1014
+ }
1015
+
1016
+ :host([closing]) [part='overlay'] {
1017
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
1018
+ }
1019
+ }
1020
+
1021
+ @keyframes lumo-mobile-menu-overlay-enter {
1022
+ 0% {
1023
+ transform: translateY(150%);
1024
+ }
1025
+ }
1026
+
1027
+ @keyframes lumo-mobile-menu-overlay-exit {
1028
+ 100% {
1029
+ transform: translateY(150%);
1030
+ }
1031
+ }
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`
1043
+ [part='overlay'] {
1044
+ /*
1045
+ Width:
1046
+ date cell widths
1047
+ + month calendar side padding
1048
+ + year scroller width
1049
+ */
1050
+ /* prettier-ignore */
1051
+ width:
1052
+ calc(
1053
+ var(--lumo-size-m) * 7
1054
+ + var(--lumo-space-xs) * 2
1055
+ + 57px
1056
+ );
1057
+ height: 100%;
1058
+ max-height: calc(var(--lumo-size-m) * 14);
1059
+ overflow: hidden;
1060
+ -webkit-tap-highlight-color: transparent;
1061
+ }
1062
+
1063
+ [part='overlay'] {
1064
+ flex-direction: column;
1065
+ }
1066
+
1067
+ [part='content'] {
1068
+ padding: 0;
1069
+ height: 100%;
1070
+ overflow: hidden;
1071
+ -webkit-mask-image: none;
1072
+ mask-image: none;
1073
+ }
1074
+
1075
+ :host([top-aligned]) [part~='overlay'] {
1076
+ margin-top: var(--lumo-space-xs);
1077
+ }
1078
+
1079
+ :host([bottom-aligned]) [part~='overlay'] {
1080
+ margin-bottom: var(--lumo-space-xs);
1081
+ }
1082
+
1083
+ @media (max-width: 420px), (max-height: 420px) {
1084
+ [part='overlay'] {
1085
+ width: 100vw;
1086
+ height: 70vh;
1087
+ max-height: 70vh;
1088
+ }
1089
+ }
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`
1101
+ :host {
1102
+ /* Sizing */
1103
+ --lumo-button-size: var(--lumo-size-m);
1104
+ min-width: calc(var(--lumo-button-size) * 2);
1105
+ height: var(--lumo-button-size);
1106
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
1107
+ margin: var(--lumo-space-xs) 0;
1108
+ box-sizing: border-box;
1109
+ /* Style */
1110
+ font-family: var(--lumo-font-family);
1111
+ font-size: var(--lumo-font-size-m);
1112
+ font-weight: 500;
1113
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
1114
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
1115
+ border-radius: var(--lumo-border-radius-m);
1116
+ cursor: var(--lumo-clickable-cursor);
1117
+ -webkit-tap-highlight-color: transparent;
1118
+ -webkit-font-smoothing: antialiased;
1119
+ -moz-osx-font-smoothing: grayscale;
1120
+ flex-shrink: 0;
1121
+ }
1122
+
1123
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
1124
+ [part='label'],
1125
+ [part='prefix'],
1126
+ [part='suffix'] {
1127
+ line-height: var(--lumo-line-height-xs);
1128
+ }
1129
+
1130
+ [part='label'] {
1131
+ padding: calc(var(--lumo-button-size) / 6) 0;
1132
+ }
1133
+
1134
+ :host([theme~='small']) {
1135
+ font-size: var(--lumo-font-size-s);
1136
+ --lumo-button-size: var(--lumo-size-s);
1137
+ }
1138
+
1139
+ :host([theme~='large']) {
1140
+ font-size: var(--lumo-font-size-l);
1141
+ --lumo-button-size: var(--lumo-size-l);
1142
+ }
1143
+
1144
+ /* For interaction states */
1145
+ :host::before,
1146
+ :host::after {
1147
+ content: '';
1148
+ /* We rely on the host always being relative */
1149
+ position: absolute;
1150
+ z-index: 1;
1151
+ inset: 0;
1152
+ background-color: currentColor;
1153
+ border-radius: inherit;
1154
+ opacity: 0;
1155
+ pointer-events: none;
1156
+ }
1157
+
1158
+ /* Hover */
1159
+
1160
+ @media (any-hover: hover) {
1161
+ :host(:hover)::before {
1162
+ opacity: 0.02;
1163
+ }
1164
+ }
1165
+
1166
+ /* Active */
1167
+
1168
+ :host::after {
1169
+ transition: opacity 1.4s, transform 0.1s;
1170
+ filter: blur(8px);
1171
+ }
1172
+
1173
+ :host([active])::before {
1174
+ opacity: 0.05;
1175
+ transition-duration: 0s;
1176
+ }
1177
+
1178
+ :host([active])::after {
1179
+ opacity: 0.1;
1180
+ transition-duration: 0s, 0s;
1181
+ transform: scale(0);
1182
+ }
1183
+
1184
+ /* Keyboard focus */
1185
+
1186
+ :host([focus-ring]) {
1187
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1188
+ }
1189
+
1190
+ :host([theme~='primary'][focus-ring]) {
1191
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1192
+ }
1193
+
1194
+ /* Types (primary, tertiary, tertiary-inline */
1195
+
1196
+ :host([theme~='tertiary']),
1197
+ :host([theme~='tertiary-inline']) {
1198
+ background-color: transparent !important;
1199
+ min-width: 0;
1200
+ }
1201
+
1202
+ :host([theme~='tertiary']) {
1203
+ padding: 0 calc(var(--lumo-button-size) / 6);
1204
+ }
1205
+
1206
+ :host([theme~='tertiary-inline'])::before {
1207
+ display: none;
1208
+ }
1209
+
1210
+ :host([theme~='tertiary-inline']) {
1211
+ margin: 0;
1212
+ height: auto;
1213
+ padding: 0;
1214
+ line-height: inherit;
1215
+ font-size: inherit;
1216
+ }
1217
+
1218
+ :host([theme~='tertiary-inline']) [part='label'] {
1219
+ padding: 0;
1220
+ overflow: visible;
1221
+ line-height: inherit;
1222
+ }
1223
+
1224
+ :host([theme~='primary']) {
1225
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1226
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1227
+ font-weight: 600;
1228
+ min-width: calc(var(--lumo-button-size) * 2.5);
1229
+ }
1230
+
1231
+ :host([theme~='primary'])::before {
1232
+ background-color: black;
1233
+ }
1234
+
1235
+ @media (any-hover: hover) {
1236
+ :host([theme~='primary']:hover)::before {
1237
+ opacity: 0.05;
1238
+ }
1239
+ }
1240
+
1241
+ :host([theme~='primary'][active])::before {
1242
+ opacity: 0.1;
1243
+ }
1244
+
1245
+ :host([theme~='primary'][active])::after {
1246
+ opacity: 0.2;
1247
+ }
1248
+
1249
+ /* Colors (success, error, contrast) */
1250
+
1251
+ :host([theme~='success']) {
1252
+ color: var(--lumo-success-text-color);
1253
+ }
1254
+
1255
+ :host([theme~='success'][theme~='primary']) {
1256
+ background-color: var(--lumo-success-color);
1257
+ color: var(--lumo-success-contrast-color);
1258
+ }
1259
+
1260
+ :host([theme~='error']) {
1261
+ color: var(--lumo-error-text-color);
1262
+ }
1263
+
1264
+ :host([theme~='error'][theme~='primary']) {
1265
+ background-color: var(--lumo-error-color);
1266
+ color: var(--lumo-error-contrast-color);
1267
+ }
1268
+
1269
+ :host([theme~='contrast']) {
1270
+ color: var(--lumo-contrast);
1271
+ }
1272
+
1273
+ :host([theme~='contrast'][theme~='primary']) {
1274
+ background-color: var(--lumo-contrast);
1275
+ color: var(--lumo-base-color);
1276
+ }
1277
+
1278
+ /* Disabled state. Keep selectors after other color variants. */
1279
+
1280
+ :host([disabled]) {
1281
+ pointer-events: none;
1282
+ color: var(--lumo-disabled-text-color);
1283
+ }
1284
+
1285
+ :host([theme~='primary'][disabled]) {
1286
+ background-color: var(--lumo-contrast-30pct);
1287
+ color: var(--lumo-base-color);
1288
+ }
1289
+
1290
+ :host([theme~='primary'][disabled]) [part] {
1291
+ opacity: 0.7;
1292
+ }
1293
+
1294
+ /* Icons */
1295
+
1296
+ [part] ::slotted(vaadin-icon) {
1297
+ display: inline-block;
1298
+ width: var(--lumo-icon-size-m);
1299
+ height: var(--lumo-icon-size-m);
1300
+ }
1301
+
1302
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
1303
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
1304
+ padding: 0.25em;
1305
+ box-sizing: border-box !important;
1306
+ }
1307
+
1308
+ [part='prefix'] {
1309
+ margin-left: -0.25em;
1310
+ margin-right: 0.25em;
1311
+ }
1312
+
1313
+ [part='suffix'] {
1314
+ margin-left: 0.25em;
1315
+ margin-right: -0.25em;
1316
+ }
1317
+
1318
+ /* Icon-only */
1319
+
1320
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
1321
+ min-width: var(--lumo-button-size);
1322
+ padding-left: calc(var(--lumo-button-size) / 4);
1323
+ padding-right: calc(var(--lumo-button-size) / 4);
1324
+ }
1325
+
1326
+ :host([theme~='icon']) [part='prefix'],
1327
+ :host([theme~='icon']) [part='suffix'] {
1328
+ margin-left: 0;
1329
+ margin-right: 0;
1330
+ }
1331
+
1332
+ /* RTL specific styles */
1333
+
1334
+ :host([dir='rtl']) [part='prefix'] {
1335
+ margin-left: 0.25em;
1336
+ margin-right: -0.25em;
1337
+ }
1338
+
1339
+ :host([dir='rtl']) [part='suffix'] {
1340
+ margin-left: -0.25em;
1341
+ margin-right: 0.25em;
1342
+ }
1343
+
1344
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
1345
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
1346
+ margin-left: 0;
1347
+ margin-right: 0;
1348
+ }
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)}}}));
1355
+ /**
1356
+ * @license
1357
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1358
+ * 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)}};
1360
+ /**
1361
+ * @license
1362
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1363
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1364
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1365
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1366
+ * Code distributed by Google as part of the polymer project is also
1367
+ * 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)}}};
1369
+ /**
1370
+ @license
1371
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1372
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1373
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1374
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1375
+ Code distributed by Google as part of the polymer project is also
1376
+ 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)}
1378
+ /**
1379
+ * @license
1380
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1381
+ * 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)}}}
1383
+ /**
1384
+ * @license
1385
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1386
+ * 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()===""}
1393
+ /**
1394
+ * @license
1395
+ * Copyright (c) 2023 Vaadin Ltd.
1396
+ * 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}}
1398
+ /**
1399
+ * @license
1400
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1401
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1402
+ */let Zo=0;function Qo(){return Zo++}
1403
+ /**
1404
+ * @license
1405
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1406
+ * 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)}}}))}}
1408
+ /**
1409
+ * @license
1410
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
1411
+ * 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}}))}}
1413
+ /**
1414
+ * @license
1415
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1416
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1417
+ */const er=m`
1418
+ :host {
1419
+ display: inline-block;
1420
+ position: relative;
1421
+ outline: none;
1422
+ white-space: nowrap;
1423
+ -webkit-user-select: none;
1424
+ -moz-user-select: none;
1425
+ user-select: none;
1426
+ }
1427
+
1428
+ :host([hidden]) {
1429
+ display: none !important;
1430
+ }
1431
+
1432
+ /* Aligns the button with form fields when placed on the same line.
1433
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
1434
+ .vaadin-button-container::before {
1435
+ content: '\\2003';
1436
+ display: inline-block;
1437
+ width: 0;
1438
+ max-height: 100%;
1439
+ }
1440
+
1441
+ .vaadin-button-container {
1442
+ display: inline-flex;
1443
+ align-items: center;
1444
+ justify-content: center;
1445
+ text-align: center;
1446
+ width: 100%;
1447
+ height: 100%;
1448
+ min-height: inherit;
1449
+ text-shadow: inherit;
1450
+ }
1451
+
1452
+ [part='prefix'],
1453
+ [part='suffix'] {
1454
+ flex: none;
1455
+ }
1456
+
1457
+ [part='label'] {
1458
+ white-space: nowrap;
1459
+ overflow: hidden;
1460
+ text-overflow: ellipsis;
1461
+ }
1462
+
1463
+ @media (forced-colors: active) {
1464
+ :host {
1465
+ outline: 1px solid;
1466
+ outline-offset: -1px;
1467
+ }
1468
+
1469
+ :host([focused]) {
1470
+ outline-width: 2px;
1471
+ }
1472
+
1473
+ :host([disabled]) {
1474
+ outline-color: GrayText;
1475
+ }
1476
+ }
1477
+ `;const ir=t=>t`
1478
+ <div class="vaadin-button-container">
1479
+ <span part="prefix" aria-hidden="true">
1480
+ <slot name="prefix"></slot>
1481
+ </span>
1482
+ <span part="label">
1483
+ <slot></slot>
1484
+ </span>
1485
+ <span part="suffix" aria-hidden="true">
1486
+ <slot name="suffix"></slot>
1487
+ </span>
1488
+ </div>
1489
+ <slot name="tooltip"></slot>
1490
+ `
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
+ /**
1501
+ @license
1502
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1503
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1504
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1505
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1506
+ Code distributed by Google as part of the polymer project is also
1507
+ 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})}}}
1509
+ /**
1510
+ * @license
1511
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1512
+ * 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()}}}));
1514
+ /**
1515
+ * @license
1516
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1517
+ * 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){}}));
1519
+ /**
1520
+ * @license
1521
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1522
+ * 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)}}
1524
+ /**
1525
+ * @license
1526
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1527
+ * 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}
1529
+ /**
1530
+ * @license
1531
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1532
+ * 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}}));
1534
+ /**
1535
+ * @license
1536
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1537
+ * 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}}}
1539
+ /**
1540
+ * @license
1541
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1542
+ * 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()}}}
1544
+ /**
1545
+ * @license
1546
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1547
+ * 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`
1549
+ :host([current]) [part='year-number'] {
1550
+ color: var(--lumo-primary-text-color);
1551
+ }
1552
+
1553
+ :host(:not([current])) [part='year-number'],
1554
+ [part='year-separator'] {
1555
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
1556
+ transition: 0.2s opacity;
1557
+ }
1558
+
1559
+ [part='year-number'],
1560
+ [part='year-separator'] {
1561
+ display: flex;
1562
+ align-items: center;
1563
+ justify-content: center;
1564
+ height: 50%;
1565
+ transform: translateY(-50%);
1566
+ }
1567
+
1568
+ [part='year-separator']::after {
1569
+ color: var(--lumo-disabled-text-color);
1570
+ content: '\\2022';
1571
+ }
1572
+ `,{moduleId:"lumo-date-picker-year"});Xs("vaadin-date-picker-overlay-content",m`
1573
+ :host {
1574
+ position: relative;
1575
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
1576
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
1577
+ background-size: 57px 100%;
1578
+ background-position: top right;
1579
+ background-repeat: no-repeat;
1580
+ cursor: default;
1581
+ }
1582
+
1583
+ ::slotted([slot='months']) {
1584
+ /* Month calendar height:
1585
+ header height + margin-bottom
1586
+ + weekdays height + margin-bottom
1587
+ + date cell heights
1588
+ + small margin between month calendars
1589
+ */
1590
+ /* prettier-ignore */
1591
+ --vaadin-infinite-scroller-item-height:
1592
+ calc(
1593
+ var(--lumo-font-size-l) + var(--lumo-space-m)
1594
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
1595
+ + var(--lumo-size-m) * 6
1596
+ + var(--lumo-space-s)
1597
+ );
1598
+ --vaadin-infinite-scroller-buffer-offset: 10%;
1599
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1600
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1601
+ position: relative;
1602
+ margin-right: 57px;
1603
+ }
1604
+
1605
+ ::slotted([slot='years']) {
1606
+ /* TODO get rid of fixed magic number */
1607
+ --vaadin-infinite-scroller-buffer-width: 97px;
1608
+ width: 57px;
1609
+ height: auto;
1610
+ top: 0;
1611
+ bottom: 0;
1612
+ font-size: var(--lumo-font-size-s);
1613
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
1614
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1615
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1616
+ cursor: var(--lumo-clickable-cursor);
1617
+ }
1618
+
1619
+ ::slotted([slot='years']:hover) {
1620
+ --_lumo-date-picker-year-opacity: 1;
1621
+ }
1622
+
1623
+ /* TODO unsupported selector */
1624
+ #scrollers {
1625
+ position: static;
1626
+ display: block;
1627
+ }
1628
+
1629
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
1630
+ :host([desktop]) ::slotted([slot='months']) {
1631
+ right: auto;
1632
+ }
1633
+
1634
+ /* Year scroller position indicator */
1635
+ ::slotted([slot='years'])::before {
1636
+ border: none;
1637
+ width: 1em;
1638
+ height: 1em;
1639
+ background-color: var(--lumo-base-color);
1640
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1641
+ transform: translate(-75%, -50%) rotate(45deg);
1642
+ border-top-right-radius: var(--lumo-border-radius-s);
1643
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
1644
+ z-index: 1;
1645
+ }
1646
+
1647
+ [part='toolbar'] {
1648
+ padding: var(--lumo-space-s);
1649
+ border-bottom-left-radius: var(--lumo-border-radius-l);
1650
+ margin-right: 57px;
1651
+ }
1652
+
1653
+ [part='toolbar'] ::slotted(vaadin-button) {
1654
+ margin: 0;
1655
+ }
1656
+
1657
+ /* Narrow viewport mode (fullscreen) */
1658
+
1659
+ :host([fullscreen]) [part='toolbar'] {
1660
+ order: -1;
1661
+ background-color: var(--lumo-base-color);
1662
+ }
1663
+
1664
+ :host([fullscreen]) [part='overlay-header'] {
1665
+ order: -2;
1666
+ height: var(--lumo-size-m);
1667
+ padding: var(--lumo-space-s);
1668
+ position: absolute;
1669
+ left: 0;
1670
+ right: 0;
1671
+ justify-content: center;
1672
+ }
1673
+
1674
+ :host([fullscreen]) [part='toggle-button'],
1675
+ :host([fullscreen]) [part='clear-button'],
1676
+ [part='overlay-header'] [part='label'] {
1677
+ display: none;
1678
+ }
1679
+
1680
+ /* Very narrow screen (year scroller initially hidden) */
1681
+
1682
+ [part='years-toggle-button'] {
1683
+ display: flex;
1684
+ align-items: center;
1685
+ height: var(--lumo-size-s);
1686
+ padding: 0 0.5em;
1687
+ border-radius: var(--lumo-border-radius-m);
1688
+ z-index: 3;
1689
+ color: var(--lumo-primary-text-color);
1690
+ font-weight: 500;
1691
+ -webkit-font-smoothing: antialiased;
1692
+ -moz-osx-font-smoothing: grayscale;
1693
+ }
1694
+
1695
+ :host([years-visible]) [part='years-toggle-button'] {
1696
+ background-color: var(--lumo-primary-color);
1697
+ color: var(--lumo-primary-contrast-color);
1698
+ }
1699
+
1700
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
1701
+ @media screen and (max-width: 374px) {
1702
+ :host {
1703
+ background-image: none;
1704
+ }
1705
+
1706
+ [part='toolbar'],
1707
+ ::slotted([slot='months']) {
1708
+ margin-right: 0;
1709
+ }
1710
+
1711
+ /* TODO make date-picker adapt to the width of the years part */
1712
+ ::slotted([slot='years']) {
1713
+ --vaadin-infinite-scroller-buffer-width: 90px;
1714
+ width: 50px;
1715
+ background-color: var(--lumo-shade-5pct);
1716
+ }
1717
+
1718
+ :host([years-visible]) ::slotted([slot='months']) {
1719
+ padding-left: 50px;
1720
+ }
1721
+ }
1722
+ `,{moduleId:"lumo-date-picker-overlay-content"});Xs("vaadin-month-calendar",m`
1723
+ :host {
1724
+ -moz-user-select: none;
1725
+ -webkit-user-select: none;
1726
+ -webkit-tap-highlight-color: transparent;
1727
+ user-select: none;
1728
+ font-size: var(--lumo-font-size-m);
1729
+ color: var(--lumo-body-text-color);
1730
+ text-align: center;
1731
+ padding: 0 var(--lumo-space-xs);
1732
+ }
1733
+
1734
+ /* Month header */
1735
+
1736
+ [part='month-header'] {
1737
+ color: var(--lumo-header-text-color);
1738
+ font-size: var(--lumo-font-size-l);
1739
+ line-height: 1;
1740
+ font-weight: 500;
1741
+ margin-bottom: var(--lumo-space-m);
1742
+ }
1743
+
1744
+ /* Week days and numbers */
1745
+
1746
+ [part='weekdays'],
1747
+ [part='weekday'],
1748
+ [part='week-number'] {
1749
+ font-size: var(--lumo-font-size-xxs);
1750
+ line-height: 1;
1751
+ color: var(--lumo-secondary-text-color);
1752
+ }
1753
+
1754
+ [part='weekdays'] {
1755
+ margin-bottom: var(--lumo-space-s);
1756
+ }
1757
+
1758
+ [part='weekday']:empty,
1759
+ [part='week-number'] {
1760
+ width: var(--lumo-size-xs);
1761
+ }
1762
+
1763
+ /* Date and week number cells */
1764
+
1765
+ [part~='date'],
1766
+ [part='week-number'] {
1767
+ box-sizing: border-box;
1768
+ display: inline-flex;
1769
+ align-items: center;
1770
+ justify-content: center;
1771
+ height: var(--lumo-size-m);
1772
+ position: relative;
1773
+ }
1774
+
1775
+ [part~='date'] {
1776
+ transition: color 0.1s;
1777
+ }
1778
+
1779
+ [part~='date']:not(:empty) {
1780
+ cursor: var(--lumo-clickable-cursor);
1781
+ }
1782
+
1783
+ :host([week-numbers]) [part='weekday']:not(:empty),
1784
+ :host([week-numbers]) [part~='date'] {
1785
+ width: calc((100% - var(--lumo-size-xs)) / 7);
1786
+ }
1787
+
1788
+ /* Today date */
1789
+
1790
+ [part~='date'][part~='today'] {
1791
+ color: var(--lumo-primary-text-color);
1792
+ }
1793
+
1794
+ /* Focused date */
1795
+
1796
+ [part~='date']::before {
1797
+ content: '';
1798
+ position: absolute;
1799
+ z-index: -1;
1800
+ top: 50%;
1801
+ left: 50%;
1802
+ transform: translate(-50%, -50%);
1803
+ min-width: 2em;
1804
+ min-height: 2em;
1805
+ width: 80%;
1806
+ height: 80%;
1807
+ max-height: 100%;
1808
+ max-width: 100%;
1809
+ border-radius: var(--lumo-border-radius-m);
1810
+ }
1811
+
1812
+ [part~='date'][part~='focused']::before {
1813
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1814
+ }
1815
+
1816
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
1817
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
1818
+ }
1819
+
1820
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
1821
+ 50% {
1822
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
1823
+ }
1824
+ }
1825
+
1826
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
1827
+ background-color: var(--lumo-primary-color-10pct);
1828
+ }
1829
+
1830
+ [part~='date'][part~='selected'] {
1831
+ color: var(--lumo-primary-contrast-color);
1832
+ }
1833
+
1834
+ [part~='date'][part~='selected']::before {
1835
+ background-color: var(--lumo-primary-color);
1836
+ }
1837
+
1838
+ [part~='date'][part~='disabled'] {
1839
+ color: var(--lumo-disabled-text-color);
1840
+ }
1841
+
1842
+ @media (pointer: coarse) {
1843
+ [part~='date']:hover:not([part~='selected'])::before,
1844
+ [part~='focused']:not([part~='selected'])::before {
1845
+ display: none;
1846
+ }
1847
+
1848
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
1849
+ display: block;
1850
+ }
1851
+
1852
+ [part~='date'][part~='selected']::before {
1853
+ box-shadow: none;
1854
+ }
1855
+ }
1856
+
1857
+ /* Disabled */
1858
+
1859
+ :host([disabled]) * {
1860
+ color: var(--lumo-disabled-text-color) !important;
1861
+ }
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);
1863
+ /**
1864
+ * @license
1865
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1866
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1867
+ */const vn=m`
1868
+ @font-face {
1869
+ font-family: 'lumo-icons';
1870
+ 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==)
1871
+ format('woff');
1872
+ font-weight: normal;
1873
+ font-style: normal;
1874
+ }
1875
+
1876
+ html {
1877
+ --lumo-icons-align-center: '\\ea01';
1878
+ --lumo-icons-align-left: '\\ea02';
1879
+ --lumo-icons-align-right: '\\ea03';
1880
+ --lumo-icons-angle-down: '\\ea04';
1881
+ --lumo-icons-angle-left: '\\ea05';
1882
+ --lumo-icons-angle-right: '\\ea06';
1883
+ --lumo-icons-angle-up: '\\ea07';
1884
+ --lumo-icons-arrow-down: '\\ea08';
1885
+ --lumo-icons-arrow-left: '\\ea09';
1886
+ --lumo-icons-arrow-right: '\\ea0a';
1887
+ --lumo-icons-arrow-up: '\\ea0b';
1888
+ --lumo-icons-bar-chart: '\\ea0c';
1889
+ --lumo-icons-bell: '\\ea0d';
1890
+ --lumo-icons-calendar: '\\ea0e';
1891
+ --lumo-icons-checkmark: '\\ea0f';
1892
+ --lumo-icons-chevron-down: '\\ea10';
1893
+ --lumo-icons-chevron-left: '\\ea11';
1894
+ --lumo-icons-chevron-right: '\\ea12';
1895
+ --lumo-icons-chevron-up: '\\ea13';
1896
+ --lumo-icons-clock: '\\ea14';
1897
+ --lumo-icons-cog: '\\ea15';
1898
+ --lumo-icons-cross: '\\ea16';
1899
+ --lumo-icons-download: '\\ea17';
1900
+ --lumo-icons-dropdown: '\\ea18';
1901
+ --lumo-icons-edit: '\\ea19';
1902
+ --lumo-icons-error: '\\ea1a';
1903
+ --lumo-icons-eye: '\\ea1b';
1904
+ --lumo-icons-eye-disabled: '\\ea1c';
1905
+ --lumo-icons-menu: '\\ea1d';
1906
+ --lumo-icons-minus: '\\ea1e';
1907
+ --lumo-icons-ordered-list: '\\ea1f';
1908
+ --lumo-icons-phone: '\\ea20';
1909
+ --lumo-icons-photo: '\\ea21';
1910
+ --lumo-icons-play: '\\ea22';
1911
+ --lumo-icons-plus: '\\ea23';
1912
+ --lumo-icons-redo: '\\ea24';
1913
+ --lumo-icons-reload: '\\ea25';
1914
+ --lumo-icons-search: '\\ea26';
1915
+ --lumo-icons-undo: '\\ea27';
1916
+ --lumo-icons-unordered-list: '\\ea28';
1917
+ --lumo-icons-upload: '\\ea29';
1918
+ --lumo-icons-user: '\\ea2a';
1919
+ }
1920
+ `;xt("font-icons",vn);
1921
+ /**
1922
+ * @license
1923
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1924
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1925
+ */const gn=m`
1926
+ [part$='button'] {
1927
+ flex: none;
1928
+ width: 1em;
1929
+ height: 1em;
1930
+ line-height: 1;
1931
+ font-size: var(--lumo-icon-size-m);
1932
+ text-align: center;
1933
+ color: var(--lumo-contrast-60pct);
1934
+ transition: 0.2s color;
1935
+ cursor: var(--lumo-clickable-cursor);
1936
+ }
1937
+
1938
+ [part$='button']:hover {
1939
+ color: var(--lumo-contrast-90pct);
1940
+ }
1941
+
1942
+ :host([disabled]) [part$='button'],
1943
+ :host([readonly]) [part$='button'] {
1944
+ color: var(--lumo-contrast-20pct);
1945
+ cursor: default;
1946
+ }
1947
+
1948
+ [part$='button']::before {
1949
+ font-family: 'lumo-icons';
1950
+ display: block;
1951
+ }
1952
+ `;yt("",gn,{moduleId:"lumo-field-button"});
1953
+ /**
1954
+ * @license
1955
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1956
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1957
+ */const yn=m`
1958
+ :host([has-helper]) [part='helper-text']::before {
1959
+ content: '';
1960
+ display: block;
1961
+ height: 0.4em;
1962
+ }
1963
+
1964
+ [part='helper-text'] {
1965
+ display: block;
1966
+ color: var(--lumo-secondary-text-color);
1967
+ font-size: var(--lumo-font-size-xs);
1968
+ line-height: var(--lumo-line-height-xs);
1969
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
1970
+ transition: color 0.2s;
1971
+ }
1972
+
1973
+ :host(:hover:not([readonly])) [part='helper-text'] {
1974
+ color: var(--lumo-body-text-color);
1975
+ }
1976
+
1977
+ :host([disabled]) [part='helper-text'] {
1978
+ color: var(--lumo-disabled-text-color);
1979
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
1980
+ }
1981
+
1982
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
1983
+ display: none;
1984
+ }
1985
+
1986
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
1987
+ content: '';
1988
+ display: block;
1989
+ height: 0.4em;
1990
+ }
1991
+
1992
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
1993
+ order: 0;
1994
+ padding-bottom: 0.4em;
1995
+ }
1996
+
1997
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
1998
+ order: 1;
1999
+ }
2000
+
2001
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
2002
+ order: 2;
2003
+ }
2004
+
2005
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
2006
+ order: 3;
2007
+ }
2008
+ `
2009
+ /**
2010
+ * @license
2011
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2012
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2013
+ */;const wn=m`
2014
+ [part='label'] {
2015
+ align-self: flex-start;
2016
+ color: var(--lumo-secondary-text-color);
2017
+ font-weight: 500;
2018
+ font-size: var(--lumo-font-size-s);
2019
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2020
+ transition: color 0.2s;
2021
+ line-height: 1;
2022
+ padding-right: 1em;
2023
+ padding-bottom: 0.5em;
2024
+ /* As a workaround for diacritics being cut off, add a top padding and a
2025
+ negative margin to compensate */
2026
+ padding-top: 0.25em;
2027
+ margin-top: -0.25em;
2028
+ overflow: hidden;
2029
+ white-space: nowrap;
2030
+ text-overflow: ellipsis;
2031
+ position: relative;
2032
+ max-width: 100%;
2033
+ box-sizing: border-box;
2034
+ }
2035
+
2036
+ :host([has-label])::before {
2037
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
2038
+ }
2039
+
2040
+ :host([has-label][theme~='small'])::before {
2041
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
2042
+ }
2043
+
2044
+ :host([has-label]) {
2045
+ padding-top: var(--lumo-space-m);
2046
+ }
2047
+
2048
+ :host([has-label]) ::slotted([slot='tooltip']) {
2049
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
2050
+ }
2051
+
2052
+ :host([required]) [part='required-indicator']::after {
2053
+ content: var(--lumo-required-field-indicator, '\\2022');
2054
+ transition: opacity 0.2s;
2055
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
2056
+ position: absolute;
2057
+ right: 0;
2058
+ width: 1em;
2059
+ text-align: center;
2060
+ }
2061
+
2062
+ :host([invalid]) [part='required-indicator']::after {
2063
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
2064
+ }
2065
+
2066
+ [part='error-message'] {
2067
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2068
+ font-size: var(--lumo-font-size-xs);
2069
+ line-height: var(--lumo-line-height-xs);
2070
+ color: var(--lumo-error-text-color);
2071
+ will-change: max-height;
2072
+ transition: 0.4s max-height;
2073
+ max-height: 5em;
2074
+ }
2075
+
2076
+ :host([has-error-message]) [part='error-message']::before,
2077
+ :host([has-error-message]) [part='error-message']::after {
2078
+ content: '';
2079
+ display: block;
2080
+ height: 0.4em;
2081
+ }
2082
+
2083
+ :host(:not([invalid])) [part='error-message'] {
2084
+ max-height: 0;
2085
+ overflow: hidden;
2086
+ }
2087
+
2088
+ /* RTL specific styles */
2089
+
2090
+ :host([dir='rtl']) [part='label'] {
2091
+ margin-left: 0;
2092
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2093
+ }
2094
+
2095
+ :host([dir='rtl']) [part='label'] {
2096
+ padding-left: 1em;
2097
+ padding-right: 0;
2098
+ }
2099
+
2100
+ :host([dir='rtl']) [part='required-indicator']::after {
2101
+ right: auto;
2102
+ left: 0;
2103
+ }
2104
+
2105
+ :host([dir='rtl']) [part='error-message'] {
2106
+ margin-left: 0;
2107
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2108
+ }
2109
+ `;yt("",wn,{moduleId:"lumo-required-field"});
2110
+ /**
2111
+ * @license
2112
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2113
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2114
+ */const xn=m`
2115
+ :host {
2116
+ --lumo-text-field-size: var(--lumo-size-m);
2117
+ color: var(--lumo-body-text-color);
2118
+ font-size: var(--lumo-font-size-m);
2119
+ font-family: var(--lumo-font-family);
2120
+ -webkit-font-smoothing: antialiased;
2121
+ -moz-osx-font-smoothing: grayscale;
2122
+ -webkit-tap-highlight-color: transparent;
2123
+ padding: var(--lumo-space-xs) 0;
2124
+ }
2125
+
2126
+ :host::before {
2127
+ height: var(--lumo-text-field-size);
2128
+ box-sizing: border-box;
2129
+ display: inline-flex;
2130
+ align-items: center;
2131
+ }
2132
+
2133
+ :host([focused]:not([readonly])) [part='label'] {
2134
+ color: var(--lumo-primary-text-color);
2135
+ }
2136
+
2137
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
2138
+ -webkit-mask-image: none;
2139
+ mask-image: none;
2140
+ }
2141
+
2142
+ ::slotted(:is(input, textarea):placeholder-shown) {
2143
+ color: var(--lumo-secondary-text-color);
2144
+ }
2145
+
2146
+ /* Hover */
2147
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2148
+ color: var(--lumo-body-text-color);
2149
+ }
2150
+
2151
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2152
+ opacity: 0.1;
2153
+ }
2154
+
2155
+ /* Touch device adjustment */
2156
+ @media (pointer: coarse) {
2157
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2158
+ color: var(--lumo-secondary-text-color);
2159
+ }
2160
+
2161
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2162
+ opacity: 0;
2163
+ }
2164
+
2165
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
2166
+ opacity: 0.2;
2167
+ }
2168
+ }
2169
+
2170
+ /* Trigger when not focusing using the keyboard */
2171
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
2172
+ transform: scaleX(0);
2173
+ transition-duration: 0.15s, 1s;
2174
+ }
2175
+
2176
+ /* Focus-ring */
2177
+ :host([focus-ring]) [part='input-field'] {
2178
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
2179
+ }
2180
+
2181
+ /* Read-only and disabled */
2182
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
2183
+ opacity: 0;
2184
+ }
2185
+
2186
+ /* Read-only style */
2187
+ :host([readonly]) {
2188
+ --vaadin-input-field-border-color: transparent;
2189
+ }
2190
+
2191
+ /* Disabled style */
2192
+ :host([disabled]) {
2193
+ pointer-events: none;
2194
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
2195
+ }
2196
+
2197
+ :host([disabled]) [part='label'],
2198
+ :host([disabled]) [part='input-field'] ::slotted(*) {
2199
+ color: var(--lumo-disabled-text-color);
2200
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2201
+ }
2202
+
2203
+ /* Invalid style */
2204
+ :host([invalid]) {
2205
+ --vaadin-input-field-border-color: var(--lumo-error-color);
2206
+ }
2207
+
2208
+ :host([invalid][focus-ring]) [part='input-field'] {
2209
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
2210
+ }
2211
+
2212
+ :host([input-prevented]) [part='input-field'] {
2213
+ animation: shake 0.15s infinite;
2214
+ }
2215
+
2216
+ @keyframes shake {
2217
+ 25% {
2218
+ transform: translateX(4px);
2219
+ }
2220
+ 75% {
2221
+ transform: translateX(-4px);
2222
+ }
2223
+ }
2224
+
2225
+ /* Small theme */
2226
+ :host([theme~='small']) {
2227
+ font-size: var(--lumo-font-size-s);
2228
+ --lumo-text-field-size: var(--lumo-size-s);
2229
+ }
2230
+
2231
+ :host([theme~='small']) [part='label'] {
2232
+ font-size: var(--lumo-font-size-xs);
2233
+ }
2234
+
2235
+ :host([theme~='small']) [part='error-message'] {
2236
+ font-size: var(--lumo-font-size-xxs);
2237
+ }
2238
+
2239
+ /* Slotted content */
2240
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
2241
+ color: var(--lumo-secondary-text-color);
2242
+ font-weight: 400;
2243
+ }
2244
+
2245
+ [part='clear-button']::before {
2246
+ content: var(--lumo-icons-cross);
2247
+ }
2248
+ `;const _n=[wn,gn,yn,xn];yt("",_n,{moduleId:"lumo-input-field-shared-styles"});const kn=m`
2249
+ :host {
2250
+ outline: none;
2251
+ }
2252
+
2253
+ [part='toggle-button']::before {
2254
+ content: var(--lumo-icons-calendar);
2255
+ }
2256
+
2257
+ [part='clear-button']::before {
2258
+ content: var(--lumo-icons-cross);
2259
+ }
2260
+
2261
+ @media (max-width: 420px), (max-height: 420px) {
2262
+ [part='overlay-content'] {
2263
+ height: 70vh;
2264
+ }
2265
+ }
2266
+
2267
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
2268
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
2269
+ }
2270
+
2271
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2272
+ --_lumo-text-field-overflow-mask-image: none;
2273
+ }
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)}}}
2285
+ /**
2286
+ @license
2287
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2288
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2289
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2290
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2291
+ Code distributed by Google as part of the polymer project is also
2292
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2293
+ */;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])}
2294
+ /**
2295
+ * @license
2296
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2297
+ * 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}})();
2299
+ /**
2300
+ * @license
2301
+ * Copyright (c) 2017 Anton Korzunov
2302
+ * 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}}}
2309
+ /**
2310
+ * @license
2311
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2312
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2313
+ */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}}
2314
+ /**
2315
+ * @license
2316
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2317
+ * 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()}}}
2319
+ /**
2320
+ * @license
2321
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2322
+ * 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)}}}));
2324
+ /**
2325
+ * @license
2326
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2327
+ * 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}}
2329
+ /**
2330
+ * @license
2331
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2332
+ * 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}}}}
2334
+ /**
2335
+ * @license
2336
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2337
+ * 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}
2344
+ /**
2345
+ * @license
2346
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2347
+ * 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]:""}}}
2349
+ /**
2350
+ * @license
2351
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2352
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2353
+ */;const ma=m`
2354
+ :host {
2355
+ z-index: 200;
2356
+ position: fixed;
2357
+
2358
+ /* Despite of what the names say, <vaadin-overlay> is just a container
2359
+ for position/sizing/alignment. The actual overlay is the overlay part. */
2360
+
2361
+ /* Default position constraints: the entire viewport. Note: themes can
2362
+ override this to introduce gaps between the overlay and the viewport. */
2363
+ inset: 0;
2364
+ bottom: var(--vaadin-overlay-viewport-bottom);
2365
+
2366
+ /* Use flexbox alignment for the overlay part. */
2367
+ display: flex;
2368
+ flex-direction: column; /* makes dropdowns sizing easier */
2369
+ /* Align to center by default. */
2370
+ align-items: center;
2371
+ justify-content: center;
2372
+
2373
+ /* Allow centering when max-width/max-height applies. */
2374
+ margin: auto;
2375
+
2376
+ /* The host is not clickable, only the overlay part is. */
2377
+ pointer-events: none;
2378
+
2379
+ /* Remove tap highlight on touch devices. */
2380
+ -webkit-tap-highlight-color: transparent;
2381
+
2382
+ /* CSS API for host */
2383
+ --vaadin-overlay-viewport-bottom: 0;
2384
+ }
2385
+
2386
+ :host([hidden]),
2387
+ :host(:not([opened]):not([closing])) {
2388
+ display: none !important;
2389
+ }
2390
+
2391
+ [part='overlay'] {
2392
+ -webkit-overflow-scrolling: touch;
2393
+ overflow: auto;
2394
+ pointer-events: auto;
2395
+
2396
+ /* Prevent overflowing the host */
2397
+ max-width: 100%;
2398
+ box-sizing: border-box;
2399
+
2400
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
2401
+ }
2402
+
2403
+ [part='backdrop'] {
2404
+ z-index: -1;
2405
+ content: '';
2406
+ background: rgba(0, 0, 0, 0.5);
2407
+ position: fixed;
2408
+ inset: 0;
2409
+ pointer-events: auto;
2410
+ }
2411
+ `
2412
+ /**
2413
+ * @license
2414
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2415
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2416
+ */;const ba=m`
2417
+ [part='overlay'] {
2418
+ display: flex;
2419
+ flex: auto;
2420
+ }
2421
+
2422
+ [part~='content'] {
2423
+ flex: auto;
2424
+ }
2425
+
2426
+ @media (forced-colors: active) {
2427
+ [part='overlay'] {
2428
+ outline: 3px solid;
2429
+ }
2430
+ }
2431
+ `
2432
+ /**
2433
+ * @license
2434
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2435
+ * 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`
2437
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2438
+ <div part="overlay" id="overlay">
2439
+ <div part="content" id="content">
2440
+ <slot></slot>
2441
+ </div>
2442
+ </div>
2443
+ `}}An(va);
2444
+ /**
2445
+ * @license
2446
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2447
+ * 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++}
2477
+ /**
2478
+ * @license
2479
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2480
+ * 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}}
2482
+ /**
2483
+ * @license
2484
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2485
+ * 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);
2487
+ /**
2488
+ * @license
2489
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2490
+ * 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);
2492
+ /**
2493
+ * @license
2494
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2495
+ * 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`
2497
+ <style>
2498
+ :host {
2499
+ display: block;
2500
+ height: 100%;
2501
+ }
2502
+ </style>
2503
+ <div part="year-number">[[year]]</div>
2504
+ <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);
2506
+ /**
2507
+ @license
2508
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2509
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2510
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2511
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2512
+ Code distributed by Google as part of the polymer project is also
2513
+ 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;
2515
+ /**
2516
+ @license
2517
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2518
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2519
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2520
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2521
+ Code distributed by Google as part of the polymer project is also
2522
+ 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}
2524
+ /**
2525
+ @license
2526
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2527
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2528
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2529
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2530
+ Code distributed by Google as part of the polymer project is also
2531
+ 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};
2533
+ /**
2534
+ @license
2535
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2536
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2537
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2538
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2539
+ Code distributed by Google as part of the polymer project is also
2540
+ 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)};
2542
+ /**
2543
+ @license
2544
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2545
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2546
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2547
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2548
+ Code distributed by Google as part of the polymer project is also
2549
+ 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}
2551
+ /**
2552
+ @license
2553
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2554
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2555
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2556
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2557
+ Code distributed by Google as part of the polymer project is also
2558
+ 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})}}}
2569
+ /**
2570
+ * @license
2571
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2572
+ * 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}}
2574
+ /**
2575
+ * @license
2576
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2577
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2578
+ */;const gh=m`
2579
+ :host {
2580
+ display: block;
2581
+ }
2582
+
2583
+ #monthGrid {
2584
+ width: 100%;
2585
+ border-collapse: collapse;
2586
+ }
2587
+
2588
+ #days-container tr,
2589
+ #weekdays-container tr {
2590
+ display: flex;
2591
+ }
2592
+
2593
+ [part~='date'] {
2594
+ outline: none;
2595
+ }
2596
+
2597
+ [part~='disabled'] {
2598
+ pointer-events: none;
2599
+ }
2600
+
2601
+ [part='week-number'][hidden],
2602
+ [part='weekday'][hidden] {
2603
+ display: none;
2604
+ }
2605
+
2606
+ [part='weekday'],
2607
+ [part~='date'] {
2608
+ width: calc(100% / 7);
2609
+ padding: 0;
2610
+ font-weight: normal;
2611
+ }
2612
+
2613
+ [part='weekday']:empty,
2614
+ [part='week-number'] {
2615
+ width: 12.5%;
2616
+ flex-shrink: 0;
2617
+ padding: 0;
2618
+ }
2619
+
2620
+ :host([week-numbers]) [part='weekday']:not(:empty),
2621
+ :host([week-numbers]) [part~='date'] {
2622
+ width: 12.5%;
2623
+ }
2624
+
2625
+ @media (forced-colors: active) {
2626
+ [part~='date'][part~='focused'] {
2627
+ outline: 1px solid;
2628
+ }
2629
+
2630
+ [part~='date'][part~='selected'] {
2631
+ outline: 3px solid;
2632
+ }
2633
+ }
2634
+ `
2635
+ /**
2636
+ * @license
2637
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2638
+ * 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`
2640
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
2641
+ <table
2642
+ id="monthGrid"
2643
+ role="grid"
2644
+ aria-labelledby="month-header"
2645
+ on-touchend="_preventDefault"
2646
+ on-touchstart="_onMonthGridTouchStart"
2647
+ >
2648
+ <thead id="weekdays-container">
2649
+ <tr role="row" part="weekdays">
2650
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
2651
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
2652
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
2653
+ [[item.weekDayShort]]
2654
+ </th>
2655
+ </template>
2656
+ </tr>
2657
+ </thead>
2658
+ <tbody id="days-container">
2659
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
2660
+ <tr role="row">
2661
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
2662
+ [[__getWeekNumber(week)]]
2663
+ </td>
2664
+ <template is="dom-repeat" items="[[week]]">
2665
+ <td
2666
+ role="gridcell"
2667
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
2668
+ date="[[item]]"
2669
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
2670
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
2671
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
2672
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
2673
+ aria-label$="[[__getDayAriaLabel(item)]]"
2674
+ >[[_getDate(item)]]</td
2675
+ >
2676
+ </template>
2677
+ </tr>
2678
+ </template>
2679
+ </tbody>
2680
+ </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)}}}));
2687
+ /**
2688
+ * @license
2689
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2690
+ * 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)}}}))}}
2707
+ /**
2708
+ * @license
2709
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2710
+ * 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)}}
2712
+ /**
2713
+ * @license
2714
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2715
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2716
+ */;const Dh=m`
2717
+ :host {
2718
+ display: flex;
2719
+ flex-direction: column;
2720
+ height: 100%;
2721
+ width: 100%;
2722
+ outline: none;
2723
+ }
2724
+
2725
+ [part='overlay-header'] {
2726
+ display: flex;
2727
+ flex-shrink: 0;
2728
+ flex-wrap: nowrap;
2729
+ align-items: center;
2730
+ }
2731
+
2732
+ :host(:not([fullscreen])) [part='overlay-header'] {
2733
+ display: none;
2734
+ }
2735
+
2736
+ [part='label'] {
2737
+ flex-grow: 1;
2738
+ }
2739
+
2740
+ [hidden] {
2741
+ display: none !important;
2742
+ }
2743
+
2744
+ [part='years-toggle-button'] {
2745
+ display: flex;
2746
+ }
2747
+
2748
+ #scrollers {
2749
+ display: flex;
2750
+ height: 100%;
2751
+ width: 100%;
2752
+ position: relative;
2753
+ overflow: hidden;
2754
+ }
2755
+
2756
+ :host([desktop]) ::slotted([slot='months']) {
2757
+ right: 50px;
2758
+ transform: none !important;
2759
+ }
2760
+
2761
+ :host([desktop]) ::slotted([slot='years']) {
2762
+ transform: none !important;
2763
+ }
2764
+
2765
+ :host(.animate) ::slotted([slot='months']),
2766
+ :host(.animate) ::slotted([slot='years']) {
2767
+ transition: all 200ms;
2768
+ }
2769
+
2770
+ [part='toolbar'] {
2771
+ display: flex;
2772
+ justify-content: space-between;
2773
+ z-index: 2;
2774
+ flex-shrink: 0;
2775
+ }
2776
+ `
2777
+ /**
2778
+ * @license
2779
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2780
+ * 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`
2782
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
2783
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
2784
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
2785
+ <div part="toggle-button"></div>
2786
+
2787
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
2788
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
2789
+ </div>
2790
+ </div>
2791
+
2792
+ <div id="scrollers">
2793
+ <slot name="months"></slot>
2794
+ <slot name="years"></slot>
2795
+ </div>
2796
+
2797
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
2798
+ <slot name="today-button"></slot>
2799
+ <slot name="cancel-button"></slot>
2800
+ </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)}}))}}));
2840
+ /**
2841
+ * @license
2842
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2843
+ * 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}})();
2845
+ /**
2846
+ * @license
2847
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2848
+ * 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}}));
2850
+ /**
2851
+ * @license
2852
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2853
+ * 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}))}}
2855
+ /**
2856
+ * @license
2857
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2858
+ * 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))}
2860
+ /**
2861
+ * @license
2862
+ * Copyright (c) 2023 Vaadin Ltd.
2863
+ * 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++}
2890
+ /**
2891
+ * @license
2892
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2893
+ * 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)}}}))}}
2895
+ /**
2896
+ * @license
2897
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
2898
+ * 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}}}
2900
+ /**
2901
+ * @license
2902
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2903
+ * 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)}}
2905
+ /**
2906
+ * @license
2907
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2908
+ * 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)}}
2910
+ /**
2911
+ * @license
2912
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2913
+ * 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)}}
2915
+ /**
2916
+ * @license
2917
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2918
+ * 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)}}));
2920
+ /**
2921
+ * @license
2922
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2923
+ * 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}}));
2925
+ /**
2926
+ * @license
2927
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2928
+ * 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)}}))}}
2930
+ /**
2931
+ * @license
2932
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2933
+ * 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}}));
2935
+ /**
2936
+ * @license
2937
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2938
+ * 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}}));
2940
+ /**
2941
+ * @license
2942
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2943
+ * 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)}}}}
2945
+ /**
2946
+ * @license
2947
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2948
+ * 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})}}
2950
+ /**
2951
+ * @license
2952
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2953
+ * 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)}}
2955
+ /**
2956
+ * @license
2957
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
2958
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2959
+ */const _c=m`
2960
+ [part='clear-button'] {
2961
+ display: none;
2962
+ cursor: default;
2963
+ }
2964
+
2965
+ [part='clear-button']::before {
2966
+ content: '\\2715';
2967
+ }
2968
+
2969
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
2970
+ display: block;
2971
+ }
2972
+ `
2973
+ /**
2974
+ * @license
2975
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
2976
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2977
+ */;const kc=m`
2978
+ :host {
2979
+ display: inline-flex;
2980
+ outline: none;
2981
+ }
2982
+
2983
+ :host::before {
2984
+ content: '\\2003';
2985
+ width: 0;
2986
+ display: inline-block;
2987
+ /* Size and position this element on the same vertical position as the input-field element
2988
+ to make vertical align for the host element work as expected */
2989
+ }
2990
+
2991
+ :host([hidden]) {
2992
+ display: none !important;
2993
+ }
2994
+
2995
+ :host(:not([has-label])) [part='label'] {
2996
+ display: none;
2997
+ }
2998
+
2999
+ @media (forced-colors: active) {
3000
+ :host(:not([readonly])) [part='input-field'] {
3001
+ outline: 1px solid;
3002
+ outline-offset: -1px;
3003
+ }
3004
+ :host([focused]) [part='input-field'] {
3005
+ outline-width: 2px;
3006
+ }
3007
+ :host([disabled]) [part='input-field'] {
3008
+ outline-color: GrayText;
3009
+ }
3010
+ }
3011
+ `
3012
+ /**
3013
+ * @license
3014
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3015
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3016
+ */;const Ac=m`
3017
+ [class$='container'] {
3018
+ display: flex;
3019
+ flex-direction: column;
3020
+ min-width: 100%;
3021
+ max-width: 100%;
3022
+ width: var(--vaadin-field-default-width, 12em);
3023
+ }
3024
+ `
3025
+ /**
3026
+ * @license
3027
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3028
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3029
+ */;const Cc=[kc,Ac,_c];
3030
+ /**
3031
+ * @license
3032
+ * Copyright (c) 2023 Vaadin Ltd.
3033
+ * 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}}
3035
+ /**
3036
+ * @license
3037
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3038
+ * 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"}}}
3040
+ /**
3041
+ * @license
3042
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3043
+ * 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)}}
3045
+ /**
3046
+ * @license
3047
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3048
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3049
+ */;const Mc=m`
3050
+ :host([opened]) {
3051
+ pointer-events: auto;
3052
+ }
3053
+
3054
+ :host([dir='rtl']) [part='input-field'] {
3055
+ direction: ltr;
3056
+ }
3057
+
3058
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
3059
+ direction: rtl;
3060
+ text-align: left;
3061
+ }
3062
+ `
3063
+ /**
3064
+ * @license
3065
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3066
+ * 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`
3068
+ <div class="vaadin-date-picker-container">
3069
+ <div part="label">
3070
+ <slot name="label"></slot>
3071
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
3072
+ </div>
3073
+
3074
+ <vaadin-input-container
3075
+ part="input-field"
3076
+ readonly="[[readonly]]"
3077
+ disabled="[[disabled]]"
3078
+ invalid="[[invalid]]"
3079
+ theme$="[[_theme]]"
3080
+ >
3081
+ <slot name="prefix" slot="prefix"></slot>
3082
+ <slot name="input"></slot>
3083
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
3084
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
3085
+ </vaadin-input-container>
3086
+
3087
+ <div part="helper-text">
3088
+ <slot name="helper"></slot>
3089
+ </div>
3090
+
3091
+ <div part="error-message">
3092
+ <slot name="error-message"></slot>
3093
+ </div>
3094
+ </div>
3095
+
3096
+ <vaadin-date-picker-overlay
3097
+ id="overlay"
3098
+ fullscreen$="[[_fullscreen]]"
3099
+ theme$="[[_theme]]"
3100
+ opened="{{opened}}"
3101
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
3102
+ on-vaadin-overlay-open="_onOverlayOpened"
3103
+ on-vaadin-overlay-closing="_onOverlayClosed"
3104
+ restore-focus-on-close
3105
+ restore-focus-node="[[inputElement]]"
3106
+ ></vaadin-date-picker-overlay>
3107
+
3108
+ <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