@everymatrix/player-bonus-history 1.45.0 → 1.45.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,30 +1,30 @@
1
- "use strict";var ur=Object.defineProperty,hr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var Is=Object.getOwnPropertySymbols;var mr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var Ns=(o,t,e)=>t in o?ur(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,vt=(o,t)=>{for(var e in t||(t={}))mr.call(t,e)&&Ns(o,e,t[e]);if(Is)for(var e of Is(t))fr.call(t,e)&&Ns(o,e,t[e]);return o},wt=(o,t)=>hr(o,pr(t));var Ke=(o,t,e)=>new Promise((s,i)=>{var r=l=>{try{a(e.next(l))}catch(c){i(c)}},n=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./PlayerBonusCard-D5BnmRTU.cjs");if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerBonusCard-D5BnmRTU.cjs")).then(t=>t.PlayerBonusCard_ce).then(({default:t})=>{!customElements.get("player-bonus-card")&&customElements.define("player-bonus-card",t.element)})}/**
1
+ "use strict";var ur=Object.defineProperty,hr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var Is=Object.getOwnPropertySymbols;var mr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var Ns=(o,t,e)=>t in o?ur(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,vt=(o,t)=>{for(var e in t||(t={}))mr.call(t,e)&&Ns(o,e,t[e]);if(Is)for(var e of Is(t))fr.call(t,e)&&Ns(o,e,t[e]);return o},wt=(o,t)=>hr(o,pr(t));var Ke=(o,t,e)=>new Promise((s,i)=>{var r=l=>{try{a(e.next(l))}catch(c){i(c)}},n=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./PlayerBonusCard-BHtjhHA4.cjs");if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerBonusCard-BHtjhHA4.cjs")).then(t=>t.PlayerBonusCard_ce).then(({default:t})=>{!customElements.get("player-bonus-card")&&customElements.define("player-bonus-card",t.element)})}/**
2
2
  * @license
3
3
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */function R(o){const t=customElements.get(o.is);if(!t)customElements.define(o.is,o);else{const e=t.version;e&&o.version&&e===o.version?console.warn(`The component ${o.is} has been loaded twice`):console.error(`Tried to define ${o.is} version ${o.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
5
+ */function H(o){const t=customElements.get(o.is);if(!t)customElements.define(o.is,o);else{const e=t.version;e&&o.version&&e===o.version?console.warn(`The component ${o.is} has been loaded twice`):console.error(`Tried to define ${o.is} version ${o.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
6
6
  * @license
7
7
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
8
8
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
- */let _r=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};R(_r);/**
9
+ */let _r=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};H(_r);/**
10
10
  * @license
11
11
  * Copyright 2019 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Ze=window,ds=Ze.ShadowRoot&&(Ze.ShadyCSS===void 0||Ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,us=Symbol(),zs=new WeakMap;let hs=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==us)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(ds&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=zs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&zs.set(e,t))}return t}toString(){return this.cssText}};const gr=o=>new hs(typeof o=="string"?o:o+"",void 0,us),g=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new hs(e,o,us)},br=(o,t)=>{ds?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=Ze.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)})},Fs=ds?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return gr(e)})(o):o;/**
13
+ */const Ze=window,ds=Ze.ShadowRoot&&(Ze.ShadyCSS===void 0||Ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,us=Symbol(),zs=new WeakMap;let hs=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==us)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(ds&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=zs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&zs.set(e,t))}return t}toString(){return this.cssText}};const gr=o=>new hs(typeof o=="string"?o:o+"",void 0,us),g=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new hs(e,o,us)},yr=(o,t)=>{ds?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=Ze.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)})},Bs=ds?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return gr(e)})(o):o;/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */var xt;const ot=window,Bs=ot.trustedTypes,yr=Bs?Bs.emptyScript:"",Ls=ot.reactiveElementPolyfillSupport,$t={toAttribute(o,t){switch(t){case Boolean:o=o?yr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(s){e=null}}return e}},Oo=(o,t)=>t!==o&&(t==t||o==o),Ct={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Oo},Vt="finalized";let fe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=Ct){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ct}static finalize(){if(this.hasOwnProperty(Vt))return!1;this[Vt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(Fs(i))}else t!==void 0&&e.push(Fs(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return br(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Ct){var i;const r=this.constructor._$Ep(t,s);if(r!==void 0&&s.reflect===!0){const n=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:$t).toAttribute(e,s.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,r=i._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=i.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:$t;this._$El=r,this[r]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Oo)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return Ke(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,r)=>this[r]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdate)===null||r===void 0?void 0:r.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};fe[Vt]=!0,fe.elementProperties=new Map,fe.elementStyles=[],fe.shadowRootOptions={mode:"open"},Ls==null||Ls({ReactiveElement:fe}),((xt=ot.reactiveElementVersions)!==null&&xt!==void 0?xt:ot.reactiveElementVersions=[]).push("1.6.3");/**
17
+ */var xt;const ot=window,Fs=ot.trustedTypes,br=Fs?Fs.emptyScript:"",Ls=ot.reactiveElementPolyfillSupport,Vt={toAttribute(o,t){switch(t){case Boolean:o=o?br:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(s){e=null}}return e}},Oo=(o,t)=>t!==o&&(t==t||o==o),Ct={attribute:!0,type:String,converter:Vt,reflect:!1,hasChanged:Oo},Yt="finalized";let fe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=Ct){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ct}static finalize(){if(this.hasOwnProperty(Yt))return!1;this[Yt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(Bs(i))}else t!==void 0&&e.push(Bs(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return yr(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Ct){var i;const r=this.constructor._$Ep(t,s);if(r!==void 0&&s.reflect===!0){const n=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:Vt).toAttribute(e,s.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,r=i._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=i.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:Vt;this._$El=r,this[r]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Oo)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return Ke(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,r)=>this[r]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdate)===null||r===void 0?void 0:r.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};fe[Yt]=!0,fe.elementProperties=new Map,fe.elementStyles=[],fe.shadowRootOptions={mode:"open"},Ls==null||Ls({ReactiveElement:fe}),((xt=ot.reactiveElementVersions)!==null&&xt!==void 0?xt:ot.reactiveElementVersions=[]).push("1.6.3");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var At;const it=window,ye=it.trustedTypes,qs=ye?ye.createPolicy("lit-html",{createHTML:o=>o}):void 0,Yt="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,Mo="?"+Q,vr=`<${Mo}>`,le=document,Ne=()=>le.createComment(""),ze=o=>o===null||typeof o!="object"&&typeof o!="function",Io=Array.isArray,wr=o=>Io(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Et=`[
22
- \f\r]`,Pe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rs=/-->/g,Hs=/>/g,oe=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),$s=/'/g,Vs=/"/g,No=/^(?:script|style|textarea|title)$/i,ve=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Ys=new WeakMap,ie=le.createTreeWalker(le,129,null,!1);function zo(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return qs!==void 0?qs.createHTML(t):t}const xr=(o,t)=>{const e=o.length-1,s=[];let i,r=t===2?"<svg>":"",n=Pe;for(let a=0;a<e;a++){const l=o[a];let c,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Pe?u[1]==="!--"?n=Rs:u[1]!==void 0?n=Hs:u[2]!==void 0?(No.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=oe):u[3]!==void 0&&(n=oe):n===oe?u[0]===">"?(n=i!=null?i:Pe,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?oe:u[3]==='"'?Vs:$s):n===Vs||n===$s?n=oe:n===Rs||n===Hs?n=Pe:(n=oe,i=void 0);const m=n===oe&&o[a+1].startsWith("/>")?" ":"";r+=n===Pe?l+vr:h>=0?(s.push(c),l.slice(0,h)+Yt+l.slice(h)+Q+m):l+Q+(h===-2?(s.push(void 0),a):m)}return[zo(o,r+(o[e]||"<?>")+(t===2?"</svg>":"")),s]};class Fe{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[c,u]=xr(t,e);if(this.el=Fe.createElement(c,s),ie.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(i=ie.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){const h=[];for(const p of i.getAttributeNames())if(p.endsWith(Yt)||p.startsWith(Q)){const m=u[n++];if(h.push(p),m!==void 0){const f=i.getAttribute(m.toLowerCase()+Yt).split(Q),b=/([.?@])?(.*)/.exec(m);l.push({type:1,index:r,name:b[2],strings:f,ctor:b[1]==="."?Ar:b[1]==="?"?Pr:b[1]==="@"?kr:ut})}else l.push({type:6,index:r})}for(const p of h)i.removeAttribute(p)}if(No.test(i.tagName)){const h=i.textContent.split(Q),p=h.length-1;if(p>0){i.textContent=ye?ye.emptyScript:"";for(let m=0;m<p;m++)i.append(h[m],Ne()),ie.nextNode(),l.push({type:2,index:++r});i.append(h[p],Ne())}}}else if(i.nodeType===8)if(i.data===Mo)l.push({type:2,index:r});else{let h=-1;for(;(h=i.data.indexOf(Q,h+1))!==-1;)l.push({type:7,index:r}),h+=Q.length-1}r++}}static createElement(t,e){const s=le.createElement("template");return s.innerHTML=t,s}}function we(o,t,e=o,s){var i,r,n,a;if(t===ve)return t;let l=s!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[s]:e._$Cl;const c=ze(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(o),l._$AT(o,e,s)),s!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[s]=l:e._$Cl=l),l!==void 0&&(t=we(o,l._$AS(o,t.values),l,s)),t}class Cr{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:s},parts:i}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:le).importNode(s,!0);ie.currentNode=r;let n=ie.nextNode(),a=0,l=0,c=i[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new Ue(n,n.nextSibling,this,t):c.type===1?u=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(u=new Tr(n,this,t)),this._$AV.push(u),c=i[++l]}a!==(c==null?void 0:c.index)&&(n=ie.nextNode(),a++)}return ie.currentNode=le,r}v(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Ue{constructor(t,e,s,i){var r;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cp=(r=i==null?void 0:i.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=we(this,t,e),ze(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==ve&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):wr(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!==S&&ze(this._$AH)?this._$AA.nextSibling.data=t:this.$(le.createTextNode(t)),this._$AH=t}g(t){var e;const{values:s,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Fe.createElement(zo(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(s);else{const n=new Cr(r,this),a=n.u(this.options);n.v(s),this.$(a),this._$AH=n}}_$AC(t){let e=Ys.get(t.strings);return e===void 0&&Ys.set(t.strings,e=new Fe(t)),e}T(t){Io(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new Ue(this.k(Ne()),this.k(Ne()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class ut{constructor(t,e,s,i,r){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(r===void 0)t=we(this,t,e,0),n=!ze(t)||t!==this._$AH&&t!==ve,n&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=we(this,a[s+l],e,l),c===ve&&(c=this._$AH[l]),n||(n=!ze(c)||c!==this._$AH[l]),c===S?t=S:t!==S&&(t+=(c!=null?c:"")+r[l+1]),this._$AH[l]=c}n&&!i&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Ar extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}const Er=ye?ye.emptyScript:"";class Pr extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==S?this.element.setAttribute(this.name,Er):this.element.removeAttribute(this.name)}}class kr extends ut{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=we(this,t,e,0))!==null&&s!==void 0?s:S)===ve)return;const i=this._$AH,r=t===S&&i!==S||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==S&&(i===S||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class Tr{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){we(this,t)}}const Us=it.litHtmlPolyfillSupport;Us==null||Us(Fe,Ue),((At=it.litHtmlVersions)!==null&&At!==void 0?At:it.litHtmlVersions=[]).push("2.8.0");const Dr=(o,t,e)=>{var s,i;const r=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:t;let n=r._$litPart$;if(n===void 0){const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=n=new Ue(t.insertBefore(Ne(),a),a,void 0,e!=null?e:{})}return n._$AI(o),n};/**
21
+ */var At;const it=window,be=it.trustedTypes,Rs=be?be.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ut="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,Mo="?"+Q,vr=`<${Mo}>`,le=document,Ne=()=>le.createComment(""),ze=o=>o===null||typeof o!="object"&&typeof o!="function",Io=Array.isArray,wr=o=>Io(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Et=`[
22
+ \f\r]`,Pe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,$s=/>/g,oe=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Vs=/'/g,Ys=/"/g,No=/^(?:script|style|textarea|title)$/i,ve=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Us=new WeakMap,ie=le.createTreeWalker(le,129,null,!1);function zo(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rs!==void 0?Rs.createHTML(t):t}const xr=(o,t)=>{const e=o.length-1,s=[];let i,r=t===2?"<svg>":"",n=Pe;for(let a=0;a<e;a++){const l=o[a];let c,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Pe?u[1]==="!--"?n=Hs:u[1]!==void 0?n=$s:u[2]!==void 0?(No.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=oe):u[3]!==void 0&&(n=oe):n===oe?u[0]===">"?(n=i!=null?i:Pe,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?oe:u[3]==='"'?Ys:Vs):n===Ys||n===Vs?n=oe:n===Hs||n===$s?n=Pe:(n=oe,i=void 0);const m=n===oe&&o[a+1].startsWith("/>")?" ":"";r+=n===Pe?l+vr:h>=0?(s.push(c),l.slice(0,h)+Ut+l.slice(h)+Q+m):l+Q+(h===-2?(s.push(void 0),a):m)}return[zo(o,r+(o[e]||"<?>")+(t===2?"</svg>":"")),s]};class Be{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[c,u]=xr(t,e);if(this.el=Be.createElement(c,s),ie.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(i=ie.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){const h=[];for(const p of i.getAttributeNames())if(p.endsWith(Ut)||p.startsWith(Q)){const m=u[n++];if(h.push(p),m!==void 0){const f=i.getAttribute(m.toLowerCase()+Ut).split(Q),y=/([.?@])?(.*)/.exec(m);l.push({type:1,index:r,name:y[2],strings:f,ctor:y[1]==="."?Ar:y[1]==="?"?Pr:y[1]==="@"?kr:ut})}else l.push({type:6,index:r})}for(const p of h)i.removeAttribute(p)}if(No.test(i.tagName)){const h=i.textContent.split(Q),p=h.length-1;if(p>0){i.textContent=be?be.emptyScript:"";for(let m=0;m<p;m++)i.append(h[m],Ne()),ie.nextNode(),l.push({type:2,index:++r});i.append(h[p],Ne())}}}else if(i.nodeType===8)if(i.data===Mo)l.push({type:2,index:r});else{let h=-1;for(;(h=i.data.indexOf(Q,h+1))!==-1;)l.push({type:7,index:r}),h+=Q.length-1}r++}}static createElement(t,e){const s=le.createElement("template");return s.innerHTML=t,s}}function we(o,t,e=o,s){var i,r,n,a;if(t===ve)return t;let l=s!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[s]:e._$Cl;const c=ze(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(o),l._$AT(o,e,s)),s!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[s]=l:e._$Cl=l),l!==void 0&&(t=we(o,l._$AS(o,t.values),l,s)),t}class Cr{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:s},parts:i}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:le).importNode(s,!0);ie.currentNode=r;let n=ie.nextNode(),a=0,l=0,c=i[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new We(n,n.nextSibling,this,t):c.type===1?u=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(u=new Tr(n,this,t)),this._$AV.push(u),c=i[++l]}a!==(c==null?void 0:c.index)&&(n=ie.nextNode(),a++)}return ie.currentNode=le,r}v(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class We{constructor(t,e,s,i){var r;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cp=(r=i==null?void 0:i.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=we(this,t,e),ze(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==ve&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):wr(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!==S&&ze(this._$AH)?this._$AA.nextSibling.data=t:this.$(le.createTextNode(t)),this._$AH=t}g(t){var e;const{values:s,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Be.createElement(zo(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(s);else{const n=new Cr(r,this),a=n.u(this.options);n.v(s),this.$(a),this._$AH=n}}_$AC(t){let e=Us.get(t.strings);return e===void 0&&Us.set(t.strings,e=new Be(t)),e}T(t){Io(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new We(this.k(Ne()),this.k(Ne()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class ut{constructor(t,e,s,i,r){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(r===void 0)t=we(this,t,e,0),n=!ze(t)||t!==this._$AH&&t!==ve,n&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=we(this,a[s+l],e,l),c===ve&&(c=this._$AH[l]),n||(n=!ze(c)||c!==this._$AH[l]),c===S?t=S:t!==S&&(t+=(c!=null?c:"")+r[l+1]),this._$AH[l]=c}n&&!i&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Ar extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}const Er=be?be.emptyScript:"";class Pr extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==S?this.element.setAttribute(this.name,Er):this.element.removeAttribute(this.name)}}class kr extends ut{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=we(this,t,e,0))!==null&&s!==void 0?s:S)===ve)return;const i=this._$AH,r=t===S&&i!==S||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==S&&(i===S||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class Tr{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){we(this,t)}}const Ws=it.litHtmlPolyfillSupport;Ws==null||Ws(Be,We),((At=it.litHtmlVersions)!==null&&At!==void 0?At:it.litHtmlVersions=[]).push("2.8.0");const Dr=(o,t,e)=>{var s,i;const r=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:t;let n=r._$litPart$;if(n===void 0){const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=n=new We(t.insertBefore(Ne(),a),a,void 0,e!=null?e:{})}return n._$AI(o),n};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */var Pt,kt;class et extends fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Dr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return ve}}et.finalized=!0,et._$litElement$=!0,(Pt=globalThis.litElementHydrateSupport)===null||Pt===void 0||Pt.call(globalThis,{LitElement:et});const Ws=globalThis.litElementPolyfillSupport;Ws==null||Ws({LitElement:et});((kt=globalThis.litElementVersions)!==null&&kt!==void 0?kt:globalThis.litElementVersions=[]).push("3.3.3");/**
27
+ */var Pt,kt;class et extends fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Dr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return ve}}et.finalized=!0,et._$litElement$=!0,(Pt=globalThis.litElementHydrateSupport)===null||Pt===void 0||Pt.call(globalThis,{LitElement:et});const js=globalThis.litElementPolyfillSupport;js==null||js({LitElement:et});((kt=globalThis.litElementVersions)!==null&&kt!==void 0?kt:globalThis.litElementVersions=[]).push("3.3.3");/**
28
28
  * @license
29
29
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
30
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -32,11 +32,11 @@
32
32
  * @license
33
33
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
34
34
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
- */const Fo=[];function Bo(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Or(o){return Bo(customElements.get(o))}function Mr(o=[]){return[o].flat(1/0).filter(t=>t instanceof hs?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function k(o,t,e={}){o&&Or(o)&&console.warn(`The custom element definition for "${o}"
35
+ */const Bo=[];function Fo(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Or(o){return Fo(customElements.get(o))}function Mr(o=[]){return[o].flat(1/0).filter(t=>t instanceof hs?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function k(o,t,e={}){o&&Or(o)&&console.warn(`The custom element definition for "${o}"
36
36
  was finalized before a style module was registered.
37
37
  Make sure to add component specific style modules before
38
- importing the corresponding custom element.`),t=Mr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):Fo.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId})}function Ut(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Fo}function Ir(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Nr(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function Lo(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const s=Ut().find(i=>i.moduleId===e);s?t.push(...Lo(s),...s.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function zr(o,t){const e=document.createElement("style");e.innerHTML=o.map(s=>s.cssText).join(`
39
- `),t.content.appendChild(e)}function Fr(o){const t=`${o}-default-theme`,e=Ut().filter(s=>s.moduleId!==t&&Ir(s.themeFor,o)).map(s=>wt(vt({},s),{styles:[...Lo(s),...s.styles],includePriority:Nr(s.moduleId)})).sort((s,i)=>i.includePriority-s.includePriority);return e.length>0?e:Ut().filter(s=>s.moduleId===t)}const ce=o=>class extends Sr(o){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Bo(this)||zr(this.getStylesForThis(),e)}static finalizeStyles(e){const s=this.getStylesForThis();return e?[...super.finalizeStyles(e),...s]:s}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),s=(e?e.constructor.__themes:[])||[];this.__themes=[...s,...Fr(this.is)];const i=this.__themes.flatMap(r=>r.styles);return i.filter((r,n)=>n===i.lastIndexOf(r))}};/**
38
+ importing the corresponding custom element.`),t=Mr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):Bo.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId})}function Wt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Bo}function Ir(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Nr(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function Lo(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const s=Wt().find(i=>i.moduleId===e);s?t.push(...Lo(s),...s.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function zr(o,t){const e=document.createElement("style");e.innerHTML=o.map(s=>s.cssText).join(`
39
+ `),t.content.appendChild(e)}function Br(o){const t=`${o}-default-theme`,e=Wt().filter(s=>s.moduleId!==t&&Ir(s.themeFor,o)).map(s=>wt(vt({},s),{styles:[...Lo(s),...s.styles],includePriority:Nr(s.moduleId)})).sort((s,i)=>i.includePriority-s.includePriority);return e.length>0?e:Wt().filter(s=>s.moduleId===t)}const ce=o=>class extends Sr(o){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Fo(this)||zr(this.getStylesForThis(),e)}static finalizeStyles(e){const s=this.getStylesForThis();return e?[...super.finalizeStyles(e),...s]:s}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),s=(e?e.constructor.__themes:[])||[];this.__themes=[...s,...Br(this.is)];const i=this.__themes.flatMap(r=>r.styles);return i.filter((r,n)=>n===i.lastIndexOf(r))}};/**
40
40
  * @license
41
41
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
42
42
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -45,7 +45,7 @@
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
- */const Br=g`
48
+ */const Fr=g`
49
49
  :host {
50
50
  /* Base (background) */
51
51
  --lumo-base-color: #fff;
@@ -130,7 +130,7 @@
130
130
  --lumo-disabled-text-color: GrayText;
131
131
  }
132
132
  }
133
- `;ht("color-props",Br);const Lr=g`
133
+ `;ht("color-props",Fr);const Lr=g`
134
134
  [theme~='dark'] {
135
135
  /* Base (background) */
136
136
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -249,7 +249,7 @@
249
249
  * @license
250
250
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
251
251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
252
- */const qr=g`
252
+ */const Rr=g`
253
253
  :host {
254
254
  --lumo-size-xs: 1.625rem;
255
255
  --lumo-size-s: 1.875rem;
@@ -264,11 +264,11 @@
264
264
  /* For backwards compatibility */
265
265
  --lumo-icon-size: var(--lumo-icon-size-m);
266
266
  }
267
- `;ht("sizing-props",qr);/**
267
+ `;ht("sizing-props",Rr);/**
268
268
  * @license
269
269
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
270
270
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
271
- */const Rr=g`
271
+ */const Hr=g`
272
272
  :host {
273
273
  /* Border radius */
274
274
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -291,11 +291,11 @@
291
291
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
292
292
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
293
293
  }
294
- `;ht("style-props",Rr);/**
294
+ `;ht("style-props",Hr);/**
295
295
  * @license
296
296
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
297
297
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
298
- */const Hr=g`
298
+ */const $r=g`
299
299
  :host {
300
300
  /* prettier-ignore */
301
301
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -315,7 +315,7 @@
315
315
  --lumo-line-height-s: 1.375;
316
316
  --lumo-line-height-m: 1.625;
317
317
  }
318
- `,$r=g`
318
+ `,Vr=g`
319
319
  body,
320
320
  :host {
321
321
  font-family: var(--lumo-font-family);
@@ -407,7 +407,7 @@
407
407
  border-left: none;
408
408
  border-right: 2px solid var(--lumo-contrast-30pct);
409
409
  }
410
- `;k("",$r,{moduleId:"lumo-typography"});ht("typography-props",Hr);k("vaadin-input-container",g`
410
+ `;k("",Vr,{moduleId:"lumo-typography"});ht("typography-props",$r);k("vaadin-input-container",g`
411
411
  :host {
412
412
  background-color: var(--lumo-contrast-10pct);
413
413
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -590,7 +590,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
590
590
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
591
591
  Code distributed by Google as part of the polymer project is also
592
592
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
593
- */let Vr=/(url\()([^)]*)(\))/g,Yr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ge,B;function Ie(o,t){if(o&&Yr.test(o)||o==="//")return o;if(Ge===void 0){Ge=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ge=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),Ge)try{return new URL(o,t).href}catch(e){return o}return B||(B=document.implementation.createHTMLDocument("temp"),B.base=B.createElement("base"),B.head.appendChild(B.base),B.anchor=B.createElement("a"),B.body.appendChild(B.anchor)),B.base.href=t,B.anchor.href=o,B.anchor.href||o}function ms(o,t){return o.replace(Vr,function(e,s,i,r){return s+"'"+Ie(i.replace(/["']/g,""),t)+"'"+r})}function fs(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
593
+ */let Yr=/(url\()([^)]*)(\))/g,Ur=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ge,F;function Ie(o,t){if(o&&Ur.test(o)||o==="//")return o;if(Ge===void 0){Ge=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ge=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),Ge)try{return new URL(o,t).href}catch(e){return o}return F||(F=document.implementation.createHTMLDocument("temp"),F.base=F.createElement("base"),F.head.appendChild(F.base),F.anchor=F.createElement("a"),F.body.appendChild(F.anchor)),F.base.href=t,F.anchor.href=o,F.anchor.href||o}function ms(o,t){return o.replace(Yr,function(e,s,i,r){return s+"'"+Ie(i.replace(/["']/g,""),t)+"'"+r})}function fs(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
594
594
  @license
595
595
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
596
596
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -598,7 +598,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
598
598
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
599
599
  Code distributed by Google as part of the polymer project is also
600
600
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
601
- */const qo=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Ur=qo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let Wr=window.Polymer&&window.Polymer.rootPath||fs(document.baseURI||window.location.href),rt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let nt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,jr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ro=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ho=window.Polymer&&window.Polymer.legacyWarnings||!1,Kr=window.Polymer&&window.Polymer.syncInitialRender||!1,Wt=window.Polymer&&window.Polymer.legacyUndefined||!1,Gr=window.Polymer&&window.Polymer.orderedComputed||!1,js=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Xr=window.Polymer&&window.Polymer.fastDomIf||!1,Ks=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Jr=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
601
+ */const Ro=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Wr=Ro&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let jr=window.Polymer&&window.Polymer.rootPath||fs(document.baseURI||window.location.href),rt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let nt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,qr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ho=window.Polymer&&window.Polymer.legacyOptimizations||!1,$o=window.Polymer&&window.Polymer.legacyWarnings||!1,Kr=window.Polymer&&window.Polymer.syncInitialRender||!1,jt=window.Polymer&&window.Polymer.legacyUndefined||!1,Gr=window.Polymer&&window.Polymer.orderedComputed||!1,qs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Xr=window.Polymer&&window.Polymer.fastDomIf||!1,Ks=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Jr=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
602
602
  @license
603
603
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
604
604
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -614,7 +614,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
614
614
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
615
615
  Code distributed by Google as part of the polymer project is also
616
616
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
617
- */let _s={},$o={};function Gs(o,t){_s[o]=$o[o.toLowerCase()]=t}function Xs(o){return _s[o]||$o[o.toLowerCase()]}function Zr(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class Be extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let s=Xs(t);return s&&e?s.querySelector(e):s}return null}attributeChangedCallback(t,e,s,i){e!==s&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ie(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=fs(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(nt&&Xs(t)!==void 0)throw Gs(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Gs(t,this),Zr(this)}}}Be.prototype.modules=_s;customElements.define("dom-module",Be);/**
617
+ */let _s={},Vo={};function Gs(o,t){_s[o]=Vo[o.toLowerCase()]=t}function Xs(o){return _s[o]||Vo[o.toLowerCase()]}function Zr(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class Fe extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let s=Xs(t);return s&&e?s.querySelector(e):s}return null}attributeChangedCallback(t,e,s,i){e!==s&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ie(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=fs(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(nt&&Xs(t)!==void 0)throw Gs(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Gs(t,this),Zr(this)}}}Fe.prototype.modules=_s;customElements.define("dom-module",Fe);/**
618
618
  @license
619
619
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
620
620
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -622,7 +622,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
622
622
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
623
623
  Code distributed by Google as part of the polymer project is also
624
624
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
625
- */const en="link[rel=import][type~=css]",tn="include",Js="shady-unscoped";function Vo(o){return Be.import(o)}function Qs(o){let t=o.body?o.body:o;const e=ms(t.textContent,o.baseURI),s=document.createElement("style");return s.textContent=e,s}function sn(o){const t=o.trim().split(/\s+/),e=[];for(let s=0;s<t.length;s++)e.push(...on(t[s]));return e}function on(o){const t=Vo(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...Uo(t));const s=t.querySelector("template");s&&e.push(...Yo(s,t.assetpath)),t._styles=e}return t._styles}function Yo(o,t){if(!o._styles){const e=[],s=o.content.querySelectorAll("style");for(let i=0;i<s.length;i++){let r=s[i],n=r.getAttribute(tn);n&&e.push(...sn(n).filter(function(a,l,c){return c.indexOf(a)===l})),t&&(r.textContent=ms(r.textContent,t)),e.push(r)}o._styles=e}return o._styles}function rn(o){let t=Vo(o);return t?Uo(t):[]}function Uo(o){const t=[],e=o.querySelectorAll(en);for(let s=0;s<e.length;s++){let i=e[s];if(i.import){const r=i.import,n=i.hasAttribute(Js);if(n&&!r._unscopedStyle){const a=Qs(r);a.setAttribute(Js,""),r._unscopedStyle=a}else r._style||(r._style=Qs(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
625
+ */const en="link[rel=import][type~=css]",tn="include",Js="shady-unscoped";function Yo(o){return Fe.import(o)}function Qs(o){let t=o.body?o.body:o;const e=ms(t.textContent,o.baseURI),s=document.createElement("style");return s.textContent=e,s}function sn(o){const t=o.trim().split(/\s+/),e=[];for(let s=0;s<t.length;s++)e.push(...on(t[s]));return e}function on(o){const t=Yo(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...Wo(t));const s=t.querySelector("template");s&&e.push(...Uo(s,t.assetpath)),t._styles=e}return t._styles}function Uo(o,t){if(!o._styles){const e=[],s=o.content.querySelectorAll("style");for(let i=0;i<s.length;i++){let r=s[i],n=r.getAttribute(tn);n&&e.push(...sn(n).filter(function(a,l,c){return c.indexOf(a)===l})),t&&(r.textContent=ms(r.textContent,t)),e.push(r)}o._styles=e}return o._styles}function rn(o){let t=Yo(o);return t?Wo(t):[]}function Wo(o){const t=[],e=o.querySelectorAll(en);for(let s=0;s<e.length;s++){let i=e[s];if(i.import){const r=i.import,n=i.hasAttribute(Js);if(n&&!r._unscopedStyle){const a=Qs(r);a.setAttribute(Js,""),r._unscopedStyle=a}else r._style||(r._style=Qs(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
626
626
  @license
627
627
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
628
628
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -638,7 +638,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
638
638
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
639
639
  Code distributed by Google as part of the polymer project is also
640
640
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
641
- */function jt(o){return o.indexOf(".")>=0}function de(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function Wo(o,t){return o.indexOf(t+".")===0}function Le(o,t){return t.indexOf(o+".")===0}function qe(o,t,e){return t+e.slice(o.length)}function nn(o,t){return o===t||Wo(o,t)||Le(o,t)}function Oe(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let s=o[e].toString().split(".");for(let i=0;i<s.length;i++)t.push(s[i])}return t.join(".")}else return o}function jo(o){return Array.isArray(o)?Oe(o).split("."):o.toString().split(".")}function F(o,t,e){let s=o,i=jo(t);for(let r=0;r<i.length;r++){if(!s)return;let n=i[r];s=s[n]}return e&&(e.path=i.join(".")),s}function Zs(o,t,e){let s=o,i=jo(t),r=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let a=i[n];if(s=s[a],!s)return}s[r]=e}else s[t]=e;return i.join(".")}/**
641
+ */function qt(o){return o.indexOf(".")>=0}function de(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function jo(o,t){return o.indexOf(t+".")===0}function Le(o,t){return t.indexOf(o+".")===0}function Re(o,t,e){return t+e.slice(o.length)}function nn(o,t){return o===t||jo(o,t)||Le(o,t)}function Oe(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let s=o[e].toString().split(".");for(let i=0;i<s.length;i++)t.push(s[i])}return t.join(".")}else return o}function qo(o){return Array.isArray(o)?Oe(o).split("."):o.toString().split(".")}function B(o,t,e){let s=o,i=qo(t);for(let r=0;r<i.length;r++){if(!s)return;let n=i[r];s=s[n]}return e&&(e.path=i.join(".")),s}function Zs(o,t,e){let s=o,i=qo(t),r=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let a=i[n];if(s=s[a],!s)return}s[r]=e}else s[t]=e;return i.join(".")}/**
642
642
  @license
643
643
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
644
644
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -678,7 +678,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
678
678
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
679
679
  Code distributed by Google as part of the polymer project is also
680
680
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
681
- */const gn={"dom-if":!0,"dom-repeat":!0};let eo=!1,to=!1;function bn(){if(!eo){eo=!0;const o=document.createElement("textarea");o.placeholder="a",to=o.placeholder===o.textContent}return to}function yn(o){bn()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const vn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,s)=>{const i=e.getAttribute(s);if(o&&s.startsWith("on-")){t.setAttribute(s,o.createScript(i,s));return}t.setAttribute(s,i)}})();function wn(o){let t=o.getAttribute("is");if(t&&gn[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:s}=e.attributes[0];vn(o,e,s),e.removeAttribute(s)}}return o}function ei(o,t){let e=t.parentInfo&&ei(o,t.parentInfo);if(e){for(let s=e.firstChild,i=0;s;s=s.nextSibling)if(t.parentIndex===i++)return s}else return o}function xn(o,t,e,s){s.id&&(t[s.id]=e)}function Cn(o,t,e){if(e.events&&e.events.length)for(let s=0,i=e.events,r;s<i.length&&(r=i[s]);s++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function An(o,t,e,s){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=s)}function En(o,t,e){return o=o._methodHost||o,function(i){o[e]?o[e](i,i.detail):console.warn("listener method `"+e+"` not defined")}}const Pn=T(o=>{class t extends o{static _parseTemplate(s,i){if(!s._templateInfo){let r=s._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!i,r.stripWhiteSpace=i&&i.stripWhiteSpace||s.hasAttribute&&s.hasAttribute("strip-whitespace"),this._parseTemplateContent(s,r,{parent:null})}return s._templateInfo}static _parseTemplateContent(s,i,r){return this._parseTemplateNode(s.content,i,r)}static _parseTemplateNode(s,i,r){let n=!1,a=s;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,i,r)||n:a.localName==="slot"&&(i.hasInsertionPoint=!0),yn(a),a.firstChild&&this._parseTemplateChildNodes(a,i,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,i,r)||n),n||r.noted}static _parseTemplateChildNodes(s,i,r){if(!(s.localName==="script"||s.localName==="style"))for(let n=s.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=wn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,s.removeChild(u),u=l;if(i.stripWhiteSpace&&!n.textContent.trim()){s.removeChild(n);continue}}let c={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,i,c)&&(c.infoIndex=i.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(s,i,r){let n=s,a=this._parseTemplate(n,i);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(s,i,r){let n=!1,a=Array.from(s.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(s,i,r,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(s,i,r,n,a){return n.slice(0,3)==="on-"?(s.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(s){let i=s._templateInfo;return i&&i.content||s.content}_stampTemplate(s,i){s&&!s.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(s),i=i||this.constructor._parseTemplate(s);let r=i.nodeInfoList,n=i.content||s.content,a=document.importNode(n,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let c=0,u=r.length,h;c<u&&(h=r[c]);c++){let p=l[c]=ei(a,h);xn(this,a.$,p,h),An(this,p,h,i),Cn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(s,i,r,n){n=n||s;let a=En(n,i,r);return this._addEventListenerToNode(s,i,a),a}_addEventListenerToNode(s,i,r){s.addEventListener(i,r)}_removeEventListenerFromNode(s,i,r){s.removeEventListener(i,r)}}return t});/**
681
+ */const gn={"dom-if":!0,"dom-repeat":!0};let eo=!1,to=!1;function yn(){if(!eo){eo=!0;const o=document.createElement("textarea");o.placeholder="a",to=o.placeholder===o.textContent}return to}function bn(o){yn()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const vn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,s)=>{const i=e.getAttribute(s);if(o&&s.startsWith("on-")){t.setAttribute(s,o.createScript(i,s));return}t.setAttribute(s,i)}})();function wn(o){let t=o.getAttribute("is");if(t&&gn[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:s}=e.attributes[0];vn(o,e,s),e.removeAttribute(s)}}return o}function ei(o,t){let e=t.parentInfo&&ei(o,t.parentInfo);if(e){for(let s=e.firstChild,i=0;s;s=s.nextSibling)if(t.parentIndex===i++)return s}else return o}function xn(o,t,e,s){s.id&&(t[s.id]=e)}function Cn(o,t,e){if(e.events&&e.events.length)for(let s=0,i=e.events,r;s<i.length&&(r=i[s]);s++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function An(o,t,e,s){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=s)}function En(o,t,e){return o=o._methodHost||o,function(i){o[e]?o[e](i,i.detail):console.warn("listener method `"+e+"` not defined")}}const Pn=T(o=>{class t extends o{static _parseTemplate(s,i){if(!s._templateInfo){let r=s._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!i,r.stripWhiteSpace=i&&i.stripWhiteSpace||s.hasAttribute&&s.hasAttribute("strip-whitespace"),this._parseTemplateContent(s,r,{parent:null})}return s._templateInfo}static _parseTemplateContent(s,i,r){return this._parseTemplateNode(s.content,i,r)}static _parseTemplateNode(s,i,r){let n=!1,a=s;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,i,r)||n:a.localName==="slot"&&(i.hasInsertionPoint=!0),bn(a),a.firstChild&&this._parseTemplateChildNodes(a,i,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,i,r)||n),n||r.noted}static _parseTemplateChildNodes(s,i,r){if(!(s.localName==="script"||s.localName==="style"))for(let n=s.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=wn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,s.removeChild(u),u=l;if(i.stripWhiteSpace&&!n.textContent.trim()){s.removeChild(n);continue}}let c={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,i,c)&&(c.infoIndex=i.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(s,i,r){let n=s,a=this._parseTemplate(n,i);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(s,i,r){let n=!1,a=Array.from(s.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(s,i,r,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(s,i,r,n,a){return n.slice(0,3)==="on-"?(s.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(s){let i=s._templateInfo;return i&&i.content||s.content}_stampTemplate(s,i){s&&!s.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(s),i=i||this.constructor._parseTemplate(s);let r=i.nodeInfoList,n=i.content||s.content,a=document.importNode(n,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let c=0,u=r.length,h;c<u&&(h=r[c]);c++){let p=l[c]=ei(a,h);xn(this,a.$,p,h),An(this,p,h,i),Cn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(s,i,r,n){n=n||s;let a=En(n,i,r);return this._addEventListenerToNode(s,i,a),a}_addEventListenerToNode(s,i,r){s.addEventListener(i,r)}_removeEventListenerFromNode(s,i,r){s.removeEventListener(i,r)}}return t});/**
682
682
  * @fileoverview
683
683
  * @suppress {checkPrototypalTypes}
684
684
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -688,7 +688,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
688
688
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
689
689
  * Google as part of the polymer project is also subject to an additional IP
690
690
  * rights grant found at http://polymer.github.io/PATENTS.txt
691
- */let Re=0;const He=[],w={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ti="__computeInfo",kn=/[A-Z]/;function Tt(o,t,e){let s=o[t];if(!s)s=o[t]={};else if(!o.hasOwnProperty(t)&&(s=o[t]=Object.create(o[t]),e))for(let i in s){let r=s[i],n=s[i]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return s}function Me(o,t,e,s,i,r){if(t){let n=!1;const a=Re++;for(let l in e){let c=i?de(l):l,u=t[c];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!i||gs(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(o,l,e,s,m.info,i,r),n=!0)}return n}return!1}function Tn(o,t,e,s,i,r,n,a){let l=!1,c=n?de(s):s,u=t[c];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||gs(s,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(o,s,i,r,m.info,n,a),l=!0);return l}function gs(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&Wo(e,o))||!!(t.wildcard&&Le(e,o))}else return!0}function so(o,t,e,s,i){let r=typeof i.method=="string"?o[i.method]:i.method,n=i.property;r?r.call(o,o.__data[n],s[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Dn(o,t,e,s,i){let r=o[w.NOTIFY],n,a=Re++;for(let c in t)t[c]&&(r&&Tn(o,r,a,c,e,s,i)||i&&Sn(o,c,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Sn(o,t,e){let s=de(t);if(s!==t){let i=pt(s)+"-changed";return si(o,i,e[t],t),!0}return!1}function si(o,t,e,s){let i={value:e,queueProperty:!0};s&&(i.path=s),M(o).dispatchEvent(new CustomEvent(t,{detail:i}))}function On(o,t,e,s,i,r){let a=(r?de(t):t)!=t?t:null,l=a?F(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),si(o,i.eventName,l,a)}function Mn(o,t,e,s,i){let r,n=o.detail,a=n&&n.path;a?(s=qe(e,s,a),r=n&&n.value):r=o.currentTarget[e],r=i?!r:r,(!t[w.READ_ONLY]||!t[w.READ_ONLY][s])&&t._setPendingPropertyOrPath(s,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function In(o,t,e,s,i){let r=o.__data[t];rt&&(r=rt(r,i.attrName,"attribute",o)),o._propertyToAttribute(t,i.attrName,r)}function Nn(o,t,e,s){let i=o[w.COMPUTE];if(i)if(Gr){Re++;const r=Fn(o),n=[];for(let l in t)oo(l,i,n,r,s);let a;for(;a=n.shift();)oi(o,"",t,e,a)&&oo(a.methodInfo,i,n,r,s);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;Me(o,i,r,e,s);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const zn=(o,t,e)=>{let s=0,i=t.length-1,r=-1;for(;s<=i;){const n=s+i>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)s=n+1;else if(a>0)i=n-1;else{r=n;break}}r<0&&(r=i+1),t.splice(r,0,o)},oo=(o,t,e,s,i)=>{const r=i?de(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Re&&(!i||gs(o,l.trigger))&&(l.info.lastRun=Re,zn(l.info,e,s))}};function Fn(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[w.COMPUTE];let{counts:s,ready:i,total:r}=Bn(o),n;for(;n=i.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--s[c]===0&&i.push(c)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function Bn(o){const t=o[ti],e={},s=o[w.COMPUTE],i=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in s)t[n]||i.push(n);return{counts:e,ready:i,total:r}}function oi(o,t,e,s,i){let r=Gt(o,t,e,s,i);if(r===He)return!1;let n=i.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function Ln(o,t,e){let s=o.__dataLinkedPaths;if(s){let i;for(let r in s){let n=s[r];Le(r,t)?(i=qe(r,n,t),o._setPendingPropertyOrPath(i,e,!0,!0)):Le(n,t)&&(i=qe(n,r,t),o._setPendingPropertyOrPath(i,e,!0,!0))}}}function Dt(o,t,e,s,i,r,n){e.bindings=e.bindings||[];let a={kind:s,target:i,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Vn(a)){let{event:c,negate:u}=a.parts[0];a.listenerEvent=c||pt(i)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let u=a.parts[c];u.compoundIndex=c,qn(o,t,a,u,l)}}function qn(o,t,e,s,i){if(!s.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=s.dependencies,n={index:i,binding:e,part:s,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=ri(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:Rn,info:n,trigger:l})}}}function Rn(o,t,e,s,i,r,n){let a=n[i.index],l=i.binding,c=i.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=qe(c.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=i.evaluator._evaluateBinding(o,c,t,e,s,r);u!==He&&Hn(o,a,l,c,u)}}function Hn(o,t,e,s,i){if(i=$n(t,i,e,s),rt&&(i=rt(i,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,i,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[w.READ_ONLY]||!t[w.READ_ONLY][r])&&t._setPendingProperty(r,i)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,i)}}function $n(o,t,e,s){if(e.isCompound){let i=o.__dataCompoundStorage[e.target];i[s.compoundIndex]=t,t=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function Vn(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function Yn(o,t){let{nodeList:e,nodeInfoList:s}=t;if(s.length)for(let i=0;i<s.length;i++){let r=s[i],n=e[i],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Un(n,c),Wn(n,o,c)}n.__dataHost=o}}function Un(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),s=t.parts,i=new Array(s.length);for(let n=0;n<s.length;n++)i[n]=s[n].literal;let r=t.target;e[r]=i,t.literal&&t.kind=="property"&&(r==="className"&&(o=M(o)),o[r]=t.literal)}}function Wn(o,t,e){if(e.listenerEvent){let s=e.parts[0];o.addEventListener(e.listenerEvent,function(i){Mn(i,t,e.target,s.source,s.negate)})}}function io(o,t,e,s,i,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:s,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:s,info:n}),n}function Gt(o,t,e,s,i){let r=o._methodHost||o,n=r[i.methodName];if(n){let a=o._marshalArgs(i.args,t,e);return a===He?He:n.apply(r,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const jn=[],ii="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Kn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Gn="(?:'(?:[^'\\\\]|\\\\.)*')",Xn='(?:"(?:[^"\\\\]|\\\\.)*")',Jn="(?:"+Gn+"|"+Xn+")",ro="(?:("+ii+"|"+Kn+"|"+Jn+")\\s*)",Qn="(?:"+ro+"(?:,\\s*"+ro+")*)",Zn="(?:\\(\\s*(?:"+Qn+"?)\\)\\s*)",ea="("+ii+"\\s*"+Zn+"?)",ta="(\\[\\[|{{)\\s*",sa="(?:]]|}})",oa="(?:(!)\\s*)?",ia=ta+oa+ea+sa,no=new RegExp(ia,"g");function ao(o){let t="";for(let e=0;e<o.length;e++){let s=o[e].literal;t+=s||""}return t}function St(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let s={methodName:t[1],static:!0,args:jn};if(t[2].trim()){let i=t[2].replace(/\\,/g,"&comma;").split(",");return ra(i,s)}else return s}return null}function ra(o,t){return t.args=o.map(function(e){let s=ri(e);return s.literal||(t.static=!1),s},this),t}function ri(o){let t=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},s=t[0];switch(s==="-"&&(s=t[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=de(t),e.structured=jt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function lo(o,t,e){let s=F(o,e);return s===void 0&&(s=t[e]),s}function ni(o,t,e,s){const i={indexSplices:s};Wt&&!o._overrideLegacyUndefined&&(t.splices=i),o.notifyPath(e+".splices",i),o.notifyPath(e+".length",t.length),Wt&&!o._overrideLegacyUndefined&&(i.indexSplices=[])}function ke(o,t,e,s,i,r){ni(o,t,e,[{index:s,addedCount:i,removed:r,object:t,type:"splice"}])}function na(o){return o[0].toUpperCase()+o.substring(1)}const bs=T(o=>{const t=Pn(_n(o));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return w}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Te.length){let i=Te[Te.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let r=this[w.READ_ONLY];for(let n in i)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,r,n){this._createPropertyAccessor(i,r==w.READ_ONLY);let a=Tt(this,r,!0)[i];a||(a=this[r][i]=[]),a.push(n)}_removePropertyEffect(i,r,n){let a=Tt(this,r,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,r){let n=this[r];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,w.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,w.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,w.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,w.COMPUTE)}_setPendingPropertyOrPath(i,r,n,a){if(a||de(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=F(this,i);if(i=Zs(this,i,r),!i||!super._shouldPropertyChange(i,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,r,n))return Ln(this,i,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,r,n);this[i]=r}return!1}_setUnmanagedPropertyToNode(i,r,n){(n!==i[r]||typeof n=="object")&&(r==="className"&&(i=M(i)),i[r]=n)}_setPendingProperty(i,r,n){let a=this.__dataHasPaths&&jt(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,r,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=r:this.__data[i]=r,this.__dataPending[i]=r,(a||this[w.NOTIFY]&&this[w.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let r=0;r<i.length;r++){let n=i[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,r){for(let n in i)(r||!this[w.READ_ONLY]||!this[w.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Nn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Me(this,this[w.REFLECT],r,n,a),Me(this,this[w.OBSERVE],r,n,a),l&&Dn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,r,n){this[w.PROPAGATE]&&Me(this,this[w.PROPAGATE],i,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,r,n)}_runEffectsForTemplate(i,r,n,a){const l=(c,u)=>{Me(this,i.propertyEffects,c,n,u,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,u)};i.runEffects?i.runEffects(l,r,a):l(r,a)}linkPaths(i,r){i=Oe(i),r=Oe(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=r}unlinkPaths(i){i=Oe(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,r){let n={path:""},a=F(this,i,n);ni(this,a,n.path,r)}get(i,r){return F(r||this,i)}set(i,r,n){n?Zs(n,i,r):(!this[w.READ_ONLY]||!this[w.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,r,!0)&&this._invalidateProperties()}push(i,...r){let n={path:""},a=F(this,i,n),l=a.length,c=a.push(...r);return r.length&&ke(this,a,n.path,l,r.length,[]),c}pop(i){let r={path:""},n=F(this,i,r),a=!!n.length,l=n.pop();return a&&ke(this,n,r.path,n.length,0,[l]),l}splice(i,r,n,...a){let l={path:""},c=F(this,i,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=c.splice(r):u=c.splice(r,n,...a),(a.length||u.length)&&ke(this,c,l.path,r,a.length,u),u}shift(i){let r={path:""},n=F(this,i,r),a=!!n.length,l=n.shift();return a&&ke(this,n,r.path,0,0,[l]),l}unshift(i,...r){let n={path:""},a=F(this,i,n),l=a.unshift(...r);return r.length&&ke(this,a,n.path,0,r.length,[]),l}notifyPath(i,r){let n;if(arguments.length==1){let a={path:""};r=F(this,i,a),n=a.path}else Array.isArray(i)?n=Oe(i):n=i;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,r){this._addPropertyEffect(i,w.READ_ONLY),r&&(this["_set"+na(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,r,n){let a={property:i,method:r,dynamicFn:!!n};this._addPropertyEffect(i,w.OBSERVE,{fn:so,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(r,w.OBSERVE,{fn:so,info:a,trigger:{name:r}})}_createMethodObserver(i,r){let n=St(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");io(this,n,w.OBSERVE,Gt,null,r)}_createNotifyingProperty(i){this._addPropertyEffect(i,w.NOTIFY,{fn:On,info:{eventName:pt(i)+"-changed",property:i}})}_createReflectedProperty(i){let r=this.constructor.attributeNameForProperty(i);r[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,w.REFLECT,{fn:In,info:{attrName:r}})}_createComputedProperty(i,r,n){let a=St(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=io(this,a,w.COMPUTE,oi,i,n);Tt(this,ti)[i]=l}_marshalArgs(i,r,n){const a=this.__data,l=[];for(let c=0,u=i.length;c<u;c++){let{name:h,structured:p,wildcard:m,value:f,literal:b}=i[c];if(!b)if(m){const y=Le(h,r),v=lo(a,n,y?r:h);f={path:y?r:h,value:v,base:y?F(a,h):v}}else f=p?lo(a,n,h):a[h];if(Wt&&!this._overrideLegacyUndefined&&f===void 0&&i.length>1)return He;l[c]=f}return l}static addPropertyEffect(i,r,n){this.prototype._addPropertyEffect(i,r,n)}static createPropertyObserver(i,r,n){this.prototype._createPropertyObserver(i,r,n)}static createMethodObserver(i,r){this.prototype._createMethodObserver(i,r)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,r){this.prototype._createReadOnlyProperty(i,r)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,r,n){this.prototype._createComputedProperty(i,r,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,r){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,r,n){let a=i.hostProps=i.hostProps||{};a[r]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(i,r){r=r||this._bindTemplate(i,!0),Te.push(this);let n=super._stampTemplate(i,r);if(Te.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,Yn(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const r=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let u=0;u<c.length;u++){let h=c[u];M(M(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,r,n){let a=t._parseTemplateNode.call(this,i,r,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,r);l&&(i.textContent=ao(l)||" ",Dt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,r,n,a,l){let c=this._parseBindings(l,r);if(c){let u=a,h="property";kn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=ao(c);return p&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(a)),i.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&u==="value"&&i.setAttribute(u,""),i.removeAttribute(u),h==="property"&&(a=Ko(a)),Dt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,i,r,n,a,l)}static _parseTemplateNestedTemplate(i,r,n){let a=t._parseTemplateNestedTemplate.call(this,i,r,n);const l=i.parentNode,c=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";js&&(u||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(Xr&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),js||(n.parentInfo.noted=!0));else{let m="{";for(let f in p){let b=[{mode:m,source:f,dependencies:[f],hostProp:!0}];Dt(this,r,n,"property","_host_"+f,b)}}return a}static _parseBindings(i,r){let n=[],a=0,l;for(;(l=no.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let c=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",f=-1;c=="{"&&(f=h.indexOf("::"))>0&&(m=h.substring(f+2),h=h.substring(0,f),p=!0);let b=St(h),y=[];if(b){let{args:v,methodName:C}=b;for(let I=0;I<v.length;I++){let x=v[I];x.literal||y.push(x)}let O=r.dynamicFns;(O&&O[C]||b.static)&&(y.push(C),b.dynamicFn=!0)}else y.push(h);n.push({source:h,mode:c,negate:u,customEvent:p,signature:b,dependencies:y,event:m}),a=no.lastIndex}if(a&&a<i.length){let c=i.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(i,r,n,a,l,c){let u;return r.signature?u=Gt(i,n,a,l,r.signature):n!=r.source?u=F(i,r.source):c&&jt(n)?u=F(i,n):u=i.__data[n],r.negate&&(u=!u),u}}return e}),Te=[];/**
691
+ */let He=0;const $e=[],w={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ti="__computeInfo",kn=/[A-Z]/;function Tt(o,t,e){let s=o[t];if(!s)s=o[t]={};else if(!o.hasOwnProperty(t)&&(s=o[t]=Object.create(o[t]),e))for(let i in s){let r=s[i],n=s[i]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return s}function Me(o,t,e,s,i,r){if(t){let n=!1;const a=He++;for(let l in e){let c=i?de(l):l,u=t[c];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!i||gs(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(o,l,e,s,m.info,i,r),n=!0)}return n}return!1}function Tn(o,t,e,s,i,r,n,a){let l=!1,c=n?de(s):s,u=t[c];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||gs(s,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(o,s,i,r,m.info,n,a),l=!0);return l}function gs(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&jo(e,o))||!!(t.wildcard&&Le(e,o))}else return!0}function so(o,t,e,s,i){let r=typeof i.method=="string"?o[i.method]:i.method,n=i.property;r?r.call(o,o.__data[n],s[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Dn(o,t,e,s,i){let r=o[w.NOTIFY],n,a=He++;for(let c in t)t[c]&&(r&&Tn(o,r,a,c,e,s,i)||i&&Sn(o,c,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Sn(o,t,e){let s=de(t);if(s!==t){let i=pt(s)+"-changed";return si(o,i,e[t],t),!0}return!1}function si(o,t,e,s){let i={value:e,queueProperty:!0};s&&(i.path=s),M(o).dispatchEvent(new CustomEvent(t,{detail:i}))}function On(o,t,e,s,i,r){let a=(r?de(t):t)!=t?t:null,l=a?B(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),si(o,i.eventName,l,a)}function Mn(o,t,e,s,i){let r,n=o.detail,a=n&&n.path;a?(s=Re(e,s,a),r=n&&n.value):r=o.currentTarget[e],r=i?!r:r,(!t[w.READ_ONLY]||!t[w.READ_ONLY][s])&&t._setPendingPropertyOrPath(s,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function In(o,t,e,s,i){let r=o.__data[t];rt&&(r=rt(r,i.attrName,"attribute",o)),o._propertyToAttribute(t,i.attrName,r)}function Nn(o,t,e,s){let i=o[w.COMPUTE];if(i)if(Gr){He++;const r=Bn(o),n=[];for(let l in t)oo(l,i,n,r,s);let a;for(;a=n.shift();)oi(o,"",t,e,a)&&oo(a.methodInfo,i,n,r,s);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;Me(o,i,r,e,s);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const zn=(o,t,e)=>{let s=0,i=t.length-1,r=-1;for(;s<=i;){const n=s+i>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)s=n+1;else if(a>0)i=n-1;else{r=n;break}}r<0&&(r=i+1),t.splice(r,0,o)},oo=(o,t,e,s,i)=>{const r=i?de(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==He&&(!i||gs(o,l.trigger))&&(l.info.lastRun=He,zn(l.info,e,s))}};function Bn(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[w.COMPUTE];let{counts:s,ready:i,total:r}=Fn(o),n;for(;n=i.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--s[c]===0&&i.push(c)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function Fn(o){const t=o[ti],e={},s=o[w.COMPUTE],i=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in s)t[n]||i.push(n);return{counts:e,ready:i,total:r}}function oi(o,t,e,s,i){let r=Gt(o,t,e,s,i);if(r===$e)return!1;let n=i.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function Ln(o,t,e){let s=o.__dataLinkedPaths;if(s){let i;for(let r in s){let n=s[r];Le(r,t)?(i=Re(r,n,t),o._setPendingPropertyOrPath(i,e,!0,!0)):Le(n,t)&&(i=Re(n,r,t),o._setPendingPropertyOrPath(i,e,!0,!0))}}}function Dt(o,t,e,s,i,r,n){e.bindings=e.bindings||[];let a={kind:s,target:i,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Yn(a)){let{event:c,negate:u}=a.parts[0];a.listenerEvent=c||pt(i)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let u=a.parts[c];u.compoundIndex=c,Rn(o,t,a,u,l)}}function Rn(o,t,e,s,i){if(!s.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=s.dependencies,n={index:i,binding:e,part:s,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=ri(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:Hn,info:n,trigger:l})}}}function Hn(o,t,e,s,i,r,n){let a=n[i.index],l=i.binding,c=i.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=Re(c.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=i.evaluator._evaluateBinding(o,c,t,e,s,r);u!==$e&&$n(o,a,l,c,u)}}function $n(o,t,e,s,i){if(i=Vn(t,i,e,s),rt&&(i=rt(i,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,i,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[w.READ_ONLY]||!t[w.READ_ONLY][r])&&t._setPendingProperty(r,i)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,i)}}function Vn(o,t,e,s){if(e.isCompound){let i=o.__dataCompoundStorage[e.target];i[s.compoundIndex]=t,t=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function Yn(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function Un(o,t){let{nodeList:e,nodeInfoList:s}=t;if(s.length)for(let i=0;i<s.length;i++){let r=s[i],n=e[i],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Wn(n,c),jn(n,o,c)}n.__dataHost=o}}function Wn(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),s=t.parts,i=new Array(s.length);for(let n=0;n<s.length;n++)i[n]=s[n].literal;let r=t.target;e[r]=i,t.literal&&t.kind=="property"&&(r==="className"&&(o=M(o)),o[r]=t.literal)}}function jn(o,t,e){if(e.listenerEvent){let s=e.parts[0];o.addEventListener(e.listenerEvent,function(i){Mn(i,t,e.target,s.source,s.negate)})}}function io(o,t,e,s,i,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:s,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:s,info:n}),n}function Gt(o,t,e,s,i){let r=o._methodHost||o,n=r[i.methodName];if(n){let a=o._marshalArgs(i.args,t,e);return a===$e?$e:n.apply(r,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const qn=[],ii="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Kn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Gn="(?:'(?:[^'\\\\]|\\\\.)*')",Xn='(?:"(?:[^"\\\\]|\\\\.)*")',Jn="(?:"+Gn+"|"+Xn+")",ro="(?:("+ii+"|"+Kn+"|"+Jn+")\\s*)",Qn="(?:"+ro+"(?:,\\s*"+ro+")*)",Zn="(?:\\(\\s*(?:"+Qn+"?)\\)\\s*)",ea="("+ii+"\\s*"+Zn+"?)",ta="(\\[\\[|{{)\\s*",sa="(?:]]|}})",oa="(?:(!)\\s*)?",ia=ta+oa+ea+sa,no=new RegExp(ia,"g");function ao(o){let t="";for(let e=0;e<o.length;e++){let s=o[e].literal;t+=s||""}return t}function St(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let s={methodName:t[1],static:!0,args:qn};if(t[2].trim()){let i=t[2].replace(/\\,/g,"&comma;").split(",");return ra(i,s)}else return s}return null}function ra(o,t){return t.args=o.map(function(e){let s=ri(e);return s.literal||(t.static=!1),s},this),t}function ri(o){let t=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},s=t[0];switch(s==="-"&&(s=t[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=de(t),e.structured=qt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function lo(o,t,e){let s=B(o,e);return s===void 0&&(s=t[e]),s}function ni(o,t,e,s){const i={indexSplices:s};jt&&!o._overrideLegacyUndefined&&(t.splices=i),o.notifyPath(e+".splices",i),o.notifyPath(e+".length",t.length),jt&&!o._overrideLegacyUndefined&&(i.indexSplices=[])}function ke(o,t,e,s,i,r){ni(o,t,e,[{index:s,addedCount:i,removed:r,object:t,type:"splice"}])}function na(o){return o[0].toUpperCase()+o.substring(1)}const ys=T(o=>{const t=Pn(_n(o));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return w}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Te.length){let i=Te[Te.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let r=this[w.READ_ONLY];for(let n in i)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,r,n){this._createPropertyAccessor(i,r==w.READ_ONLY);let a=Tt(this,r,!0)[i];a||(a=this[r][i]=[]),a.push(n)}_removePropertyEffect(i,r,n){let a=Tt(this,r,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,r){let n=this[r];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,w.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,w.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,w.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,w.COMPUTE)}_setPendingPropertyOrPath(i,r,n,a){if(a||de(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=B(this,i);if(i=Zs(this,i,r),!i||!super._shouldPropertyChange(i,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,r,n))return Ln(this,i,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,r,n);this[i]=r}return!1}_setUnmanagedPropertyToNode(i,r,n){(n!==i[r]||typeof n=="object")&&(r==="className"&&(i=M(i)),i[r]=n)}_setPendingProperty(i,r,n){let a=this.__dataHasPaths&&qt(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,r,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=r:this.__data[i]=r,this.__dataPending[i]=r,(a||this[w.NOTIFY]&&this[w.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let r=0;r<i.length;r++){let n=i[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,r){for(let n in i)(r||!this[w.READ_ONLY]||!this[w.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Nn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Me(this,this[w.REFLECT],r,n,a),Me(this,this[w.OBSERVE],r,n,a),l&&Dn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,r,n){this[w.PROPAGATE]&&Me(this,this[w.PROPAGATE],i,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,r,n)}_runEffectsForTemplate(i,r,n,a){const l=(c,u)=>{Me(this,i.propertyEffects,c,n,u,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,u)};i.runEffects?i.runEffects(l,r,a):l(r,a)}linkPaths(i,r){i=Oe(i),r=Oe(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=r}unlinkPaths(i){i=Oe(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,r){let n={path:""},a=B(this,i,n);ni(this,a,n.path,r)}get(i,r){return B(r||this,i)}set(i,r,n){n?Zs(n,i,r):(!this[w.READ_ONLY]||!this[w.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,r,!0)&&this._invalidateProperties()}push(i,...r){let n={path:""},a=B(this,i,n),l=a.length,c=a.push(...r);return r.length&&ke(this,a,n.path,l,r.length,[]),c}pop(i){let r={path:""},n=B(this,i,r),a=!!n.length,l=n.pop();return a&&ke(this,n,r.path,n.length,0,[l]),l}splice(i,r,n,...a){let l={path:""},c=B(this,i,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=c.splice(r):u=c.splice(r,n,...a),(a.length||u.length)&&ke(this,c,l.path,r,a.length,u),u}shift(i){let r={path:""},n=B(this,i,r),a=!!n.length,l=n.shift();return a&&ke(this,n,r.path,0,0,[l]),l}unshift(i,...r){let n={path:""},a=B(this,i,n),l=a.unshift(...r);return r.length&&ke(this,a,n.path,0,r.length,[]),l}notifyPath(i,r){let n;if(arguments.length==1){let a={path:""};r=B(this,i,a),n=a.path}else Array.isArray(i)?n=Oe(i):n=i;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,r){this._addPropertyEffect(i,w.READ_ONLY),r&&(this["_set"+na(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,r,n){let a={property:i,method:r,dynamicFn:!!n};this._addPropertyEffect(i,w.OBSERVE,{fn:so,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(r,w.OBSERVE,{fn:so,info:a,trigger:{name:r}})}_createMethodObserver(i,r){let n=St(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");io(this,n,w.OBSERVE,Gt,null,r)}_createNotifyingProperty(i){this._addPropertyEffect(i,w.NOTIFY,{fn:On,info:{eventName:pt(i)+"-changed",property:i}})}_createReflectedProperty(i){let r=this.constructor.attributeNameForProperty(i);r[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,w.REFLECT,{fn:In,info:{attrName:r}})}_createComputedProperty(i,r,n){let a=St(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=io(this,a,w.COMPUTE,oi,i,n);Tt(this,ti)[i]=l}_marshalArgs(i,r,n){const a=this.__data,l=[];for(let c=0,u=i.length;c<u;c++){let{name:h,structured:p,wildcard:m,value:f,literal:y}=i[c];if(!y)if(m){const b=Le(h,r),v=lo(a,n,b?r:h);f={path:b?r:h,value:v,base:b?B(a,h):v}}else f=p?lo(a,n,h):a[h];if(jt&&!this._overrideLegacyUndefined&&f===void 0&&i.length>1)return $e;l[c]=f}return l}static addPropertyEffect(i,r,n){this.prototype._addPropertyEffect(i,r,n)}static createPropertyObserver(i,r,n){this.prototype._createPropertyObserver(i,r,n)}static createMethodObserver(i,r){this.prototype._createMethodObserver(i,r)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,r){this.prototype._createReadOnlyProperty(i,r)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,r,n){this.prototype._createComputedProperty(i,r,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,r){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,r,n){let a=i.hostProps=i.hostProps||{};a[r]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(i,r){r=r||this._bindTemplate(i,!0),Te.push(this);let n=super._stampTemplate(i,r);if(Te.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,Un(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const r=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let u=0;u<c.length;u++){let h=c[u];M(M(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,r,n){let a=t._parseTemplateNode.call(this,i,r,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,r);l&&(i.textContent=ao(l)||" ",Dt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,r,n,a,l){let c=this._parseBindings(l,r);if(c){let u=a,h="property";kn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=ao(c);return p&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(a)),i.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&u==="value"&&i.setAttribute(u,""),i.removeAttribute(u),h==="property"&&(a=Ko(a)),Dt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,i,r,n,a,l)}static _parseTemplateNestedTemplate(i,r,n){let a=t._parseTemplateNestedTemplate.call(this,i,r,n);const l=i.parentNode,c=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";qs&&(u||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(Xr&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),qs||(n.parentInfo.noted=!0));else{let m="{";for(let f in p){let y=[{mode:m,source:f,dependencies:[f],hostProp:!0}];Dt(this,r,n,"property","_host_"+f,y)}}return a}static _parseBindings(i,r){let n=[],a=0,l;for(;(l=no.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let c=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",f=-1;c=="{"&&(f=h.indexOf("::"))>0&&(m=h.substring(f+2),h=h.substring(0,f),p=!0);let y=St(h),b=[];if(y){let{args:v,methodName:C}=y;for(let I=0;I<v.length;I++){let x=v[I];x.literal||b.push(x)}let O=r.dynamicFns;(O&&O[C]||y.static)&&(b.push(C),y.dynamicFn=!0)}else b.push(h);n.push({source:h,mode:c,negate:u,customEvent:p,signature:y,dependencies:b,event:m}),a=no.lastIndex}if(a&&a<i.length){let c=i.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(i,r,n,a,l,c){let u;return r.signature?u=Gt(i,n,a,l,r.signature):n!=r.source?u=B(i,r.source):c&&qt(n)?u=B(i,n):u=i.__data[n],r.negate&&(u=!u),u}}return e}),Te=[];/**
692
692
  @license
693
693
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
694
694
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -714,7 +714,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
714
714
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
715
715
  * Google as part of the polymer project is also subject to an additional IP
716
716
  * rights grant found at http://polymer.github.io/PATENTS.txt
717
- */const ca="3.5.1",co=window.ShadyCSS&&window.ShadyCSS.cssBuild,da=T(o=>{const t=la(bs(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let u in c){let h=c[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function s(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,c,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):u.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),u.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):u.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),u.observer&&l._createPropertyObserver(c,u.observer,h[u.observer]),l._addPropertyToAttributeMap(c)}function r(l,c,u,h){if(!co){const p=c.content.querySelectorAll("style"),m=Yo(c),f=rn(u),b=c.content.firstElementChild;for(let v=0;v<f.length;v++){let C=f[v];C.textContent=l._processStyleText(C.textContent,h),c.content.insertBefore(C,b)}let y=0;for(let v=0;v<m.length;v++){let C=m[v],O=p[y];O!==C?(C=C.cloneNode(!0),O.parentNode.insertBefore(C,O)):y++,C.textContent=l._processStyleText(C.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,u),Jr&&co&&Ur){const p=c.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(f=>{m+=f.textContent,f.parentNode.removeChild(f)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let c=null;if(l&&(!nt||jr)&&(c=Be.import(l,"template"),nt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return ca}static _finalizeClass(){t._finalizeClass.call(this);const c=s(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):Ro||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let u in c)i(this.prototype,u,c[u],c)}static createObservers(c,u){const h=this.prototype;for(let p=0;p<c.length;p++)h._createMethodObserver(c[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=fs(c.url);else{const u=Be.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Wr,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let u in c){let h=c[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,u){return ms(c,u)}static _finalizeTemplate(c){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?Ie(h):"";r(this,u,c,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(c){const u=M(this);if(u.attachShadow)return c?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:c}),u.shadowRoot.appendChild(c),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Kr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,u){return!u&&this.importPath&&(u=Ie(this.importPath)),Ie(c,u)}static _parseTemplateContent(c,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,u,h)}static _addTemplatePropertyEffect(c,u,h){return Ho&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,u,h)}}return a});/**
717
+ */const ca="3.5.1",co=window.ShadyCSS&&window.ShadyCSS.cssBuild,da=T(o=>{const t=la(ys(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let u in c){let h=c[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function s(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,c,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):u.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),u.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):u.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),u.observer&&l._createPropertyObserver(c,u.observer,h[u.observer]),l._addPropertyToAttributeMap(c)}function r(l,c,u,h){if(!co){const p=c.content.querySelectorAll("style"),m=Uo(c),f=rn(u),y=c.content.firstElementChild;for(let v=0;v<f.length;v++){let C=f[v];C.textContent=l._processStyleText(C.textContent,h),c.content.insertBefore(C,y)}let b=0;for(let v=0;v<m.length;v++){let C=m[v],O=p[b];O!==C?(C=C.cloneNode(!0),O.parentNode.insertBefore(C,O)):b++,C.textContent=l._processStyleText(C.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,u),Jr&&co&&Wr){const p=c.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(f=>{m+=f.textContent,f.parentNode.removeChild(f)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let c=null;if(l&&(!nt||qr)&&(c=Fe.import(l,"template"),nt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return ca}static _finalizeClass(){t._finalizeClass.call(this);const c=s(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):Ho||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let u in c)i(this.prototype,u,c[u],c)}static createObservers(c,u){const h=this.prototype;for(let p=0;p<c.length;p++)h._createMethodObserver(c[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=fs(c.url);else{const u=Fe.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=jr,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let u in c){let h=c[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,u){return ms(c,u)}static _finalizeTemplate(c){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?Ie(h):"";r(this,u,c,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(c){const u=M(this);if(u.attachShadow)return c?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:c}),u.shadowRoot.appendChild(c),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Kr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,u){return!u&&this.importPath&&(u=Ie(this.importPath)),Ie(c,u)}static _parseTemplateContent(c,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,u,h)}static _addTemplatePropertyEffect(c,u,h){return $o&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,u,h)}}return a});/**
718
718
  @license
719
719
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
720
720
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -808,11 +808,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
808
808
  <slot name="prefix"></slot>
809
809
  <slot></slot>
810
810
  <slot name="suffix"></slot>
811
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}R(ma);/**
811
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}H(ma);/**
812
812
  * @license
813
813
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
814
814
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
815
- */let fa=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};R(fa);const xe=(o,...t)=>{ps(`lumo-${o}`,t)};/**
815
+ */let fa=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};H(fa);const xe=(o,...t)=>{ps(`lumo-${o}`,t)};/**
816
816
  * @license
817
817
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
818
818
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -862,7 +862,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
862
862
  * @license
863
863
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
864
864
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
865
- */const ba=g`
865
+ */const ya=g`
866
866
  :host {
867
867
  /* Border radius */
868
868
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -885,11 +885,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
885
885
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
886
886
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
887
887
  }
888
- `;xe("style-props",ba);/**
888
+ `;xe("style-props",ya);/**
889
889
  * @license
890
890
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
891
891
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
892
- */const ya=g`
892
+ */const ba=g`
893
893
  :host {
894
894
  /* Base (background) */
895
895
  --lumo-base-color: #fff;
@@ -974,7 +974,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
974
974
  --lumo-disabled-text-color: GrayText;
975
975
  }
976
976
  }
977
- `;xe("color-props",ya);const va=g`
977
+ `;xe("color-props",ba);const va=g`
978
978
  [theme~='dark'] {
979
979
  /* Base (background) */
980
980
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -1420,7 +1420,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1420
1420
  * @license
1421
1421
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1422
1422
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1423
- */class Ea extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}R(Ea);const We=(o,...t)=>{ps(`lumo-${o}`,t)};/**
1423
+ */class Ea extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}H(Ea);const je=(o,...t)=>{ps(`lumo-${o}`,t)};/**
1424
1424
  * @license
1425
1425
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1426
1426
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1509,7 +1509,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1509
1509
  --lumo-disabled-text-color: GrayText;
1510
1510
  }
1511
1511
  }
1512
- `;We("color-props",Pa);const ka=g`
1512
+ `;je("color-props",Pa);const ka=g`
1513
1513
  [theme~='dark'] {
1514
1514
  /* Base (background) */
1515
1515
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -1643,7 +1643,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1643
1643
  /* For backwards compatibility */
1644
1644
  --lumo-icon-size: var(--lumo-icon-size-m);
1645
1645
  }
1646
- `;We("sizing-props",Ta);/**
1646
+ `;je("sizing-props",Ta);/**
1647
1647
  * @license
1648
1648
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1670,7 +1670,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1670
1670
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1671
1671
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1672
1672
  }
1673
- `;We("spacing-props",Da);/**
1673
+ `;je("spacing-props",Da);/**
1674
1674
  * @license
1675
1675
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1676
1676
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1697,7 +1697,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1697
1697
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1698
1698
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1699
1699
  }
1700
- `;We("style-props",Sa);/**
1700
+ `;je("style-props",Sa);/**
1701
1701
  * @license
1702
1702
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1703
1703
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1813,7 +1813,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1813
1813
  border-left: none;
1814
1814
  border-right: 2px solid var(--lumo-contrast-30pct);
1815
1815
  }
1816
- `;k("",Ma,{moduleId:"lumo-typography"});We("typography-props",Oa);const Ia=g`
1816
+ `;k("",Ma,{moduleId:"lumo-typography"});je("typography-props",Oa);const Ia=g`
1817
1817
  :host {
1818
1818
  /* Sizing */
1819
1819
  --lumo-button-size: var(--lumo-size-m);
@@ -2066,7 +2066,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2066
2066
  * @license
2067
2067
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2068
2068
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2069
- */const Ce=T(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Na=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,tt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function za(){function o(){return!0}return pi(o)}function Fa(){try{return Ba()?!0:La()?tt?!qa():!za():!1}catch(o){return!1}}function Ba(){return localStorage.getItem("vaadin.developmentmode.force")}function La(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function qa(){return!!(tt&&Object.keys(tt).map(t=>tt[t]).filter(t=>t.productionMode).length>0)}function pi(o,t){if(typeof o!="function")return;const e=Na.exec(o.toString());if(e)try{o=new Function(e[1])}catch(s){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",s)}return o(t)}window.Vaadin=window.Vaadin||{};const ho=function(o,t){if(window.Vaadin.developmentMode)return pi(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Fa());function Ra(){}const Ha=function(){if(typeof ho=="function")return ho(Ra)};/**
2069
+ */const Ce=T(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Na=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,tt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function za(){function o(){return!0}return pi(o)}function Ba(){try{return Fa()?!0:La()?tt?!Ra():!za():!1}catch(o){return!1}}function Fa(){return localStorage.getItem("vaadin.developmentmode.force")}function La(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ra(){return!!(tt&&Object.keys(tt).map(t=>tt[t]).filter(t=>t.productionMode).length>0)}function pi(o,t){if(typeof o!="function")return;const e=Na.exec(o.toString());if(e)try{o=new Function(e[1])}catch(s){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",s)}return o(t)}window.Vaadin=window.Vaadin||{};const ho=function(o,t){if(window.Vaadin.developmentMode)return pi(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ba());function Ha(){}const $a=function(){if(typeof ho=="function")return ho(Ha)};/**
2070
2070
  * @license
2071
2071
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2072
2072
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2074,7 +2074,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2074
2074
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2075
2075
  * Code distributed by Google as part of the polymer project is also
2076
2076
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2077
- */let po=0,mi=0;const ge=[];let Qt=!1;function $a(){Qt=!1;const o=ge.length;for(let t=0;t<o;t++){const e=ge[t];if(e)try{e()}catch(s){setTimeout(()=>{throw s})}}ge.splice(0,o),mi+=o}const lt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Va={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},Ya={run(o){Qt||(Qt=!0,queueMicrotask(()=>$a())),ge.push(o);const t=po;return po+=1,t},cancel(o){const t=o-mi;if(t>=0){if(!ge[t])throw new Error(`invalid async handle: ${o}`);ge[t]=null}}};/**
2077
+ */let po=0,mi=0;const ge=[];let Qt=!1;function Va(){Qt=!1;const o=ge.length;for(let t=0;t<o;t++){const e=ge[t];if(e)try{e()}catch(s){setTimeout(()=>{throw s})}}ge.splice(0,o),mi+=o}const lt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Ya={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},Ua={run(o){Qt||(Qt=!0,queueMicrotask(()=>Va())),ge.push(o);const t=po;return po+=1,t},cancel(o){const t=o-mi;if(t>=0){if(!ge[t])throw new Error(`invalid async handle: ${o}`);ge[t]=null}}};/**
2078
2078
  @license
2079
2079
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2080
2080
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2082,15 +2082,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2082
2082
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2083
2083
  Code distributed by Google as part of the polymer project is also
2084
2084
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2085
- */const Zt=new Set;let $e=class es{static debounce(t,e,s){return t instanceof es?t._cancelAsync():t=new es,t.setConfig(e,s),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,Zt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Zt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Ua(o){Zt.add(o)}/**
2085
+ */const Zt=new Set;let Ve=class es{static debounce(t,e,s){return t instanceof es?t._cancelAsync():t=new es,t.setConfig(e,s),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,Zt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Zt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Wa(o){Zt.add(o)}/**
2086
2086
  * @license
2087
2087
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2088
2088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2089
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Ha()};let Ot;const mo=new Set,fi=o=>class extends mt(o){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!mo.has(e)&&(window.Vaadin.registrations.push(this),mo.add(e),window.Vaadin.developmentModeCallback&&(Ot=$e.debounce(Ot,Va,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ua(Ot)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2089
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){$a()};let Ot;const mo=new Set,fi=o=>class extends mt(o){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!mo.has(e)&&(window.Vaadin.registrations.push(this),mo.add(e),window.Vaadin.developmentModeCallback&&(Ot=Ve.debounce(Ot,Ya,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Wa(Ot)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2090
2090
  * @license
2091
2091
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2092
2092
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2093
- */function Wa(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function ys(o){return o?new Set(o.split(" ")):new Set}function ft(o){return o?[...o].join(" "):""}function _i(o,t,e){const s=ys(o.getAttribute(t));s.add(e),o.setAttribute(t,ft(s))}function ja(o,t,e){const s=ys(o.getAttribute(t));if(s.delete(e),s.size===0){o.removeAttribute(t);return}o.setAttribute(t,ft(s))}function Ka(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
2093
+ */function ja(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function bs(o){return o?new Set(o.split(" ")):new Set}function ft(o){return o?[...o].join(" "):""}function _i(o,t,e){const s=bs(o.getAttribute(t));s.add(e),o.setAttribute(t,ft(s))}function qa(o,t,e){const s=bs(o.getAttribute(t));if(s.delete(e),s.size===0){o.removeAttribute(t);return}o.setAttribute(t,ft(s))}function Ka(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
2094
2094
  * @license
2095
2095
  * Copyright (c) 2023 Vaadin Ltd.
2096
2096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2106,7 +2106,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2106
2106
  * @license
2107
2107
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
2108
2108
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2109
- */class bi extends re{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2109
+ */class yi extends re{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2110
2110
  * @license
2111
2111
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2112
2112
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2191,7 +2191,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2191
2191
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2192
2192
  Code distributed by Google as part of the polymer project is also
2193
2193
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2194
- */const Za=!1,el=o=>o,vs=typeof document.head.style.touchAction=="string",ts="__polymerGestures",Mt="__polymerGesturesHandled",ss="__polymerGesturesTouchAction",fo=25,_o=5,tl=2,sl=["mousedown","mousemove","mouseup","click"],ol=[0,1,4,2],il=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function ws(o){return sl.indexOf(o)>-1}let yi=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){yi=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function rl(o){if(!(ws(o)||o==="touchend")&&vs&&yi&&Za)return{passive:!0}}const nl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),al={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ae(o){const t=o.type;if(!ws(t))return!1;if(t==="mousemove"){let s=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!il&&(s=ol[o.which]||0),!!(s&1)}return(o.button===void 0?0:o.button)===0}function ll(o){if(o.type==="click"){if(o.detail===0)return!0;const t=Z(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),s=o.pageX,i=o.pageY;return!(s>=e.left&&s<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const G={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function cl(o){let t="auto";const e=wi(o);for(let s=0,i;s<e.length;s++)if(i=e[s],i[ss]){t=i[ss];break}return t}function vi(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function be(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const wi=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],xs={},ne=[];function dl(o,t){let e=document.elementFromPoint(o,t),s=e;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const i=s;if(s=s.shadowRoot.elementFromPoint(o,t),i===s)break;s&&(e=s)}return e}function Z(o){const t=wi(o);return t.length>0?t[0]:o.target}function ul(o){const t=o.type,s=o.currentTarget[ts];if(!s)return;const i=s[t];if(!i)return;if(!o[Mt]&&(o[Mt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(G.touch.id=n.identifier),G.touch.id!==n.identifier)return;vs||(t==="touchstart"||t==="touchmove")&&hl(o)}const r=o[Mt];if(!r.skip){for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function hl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")G.touch.x=t.clientX,G.touch.y=t.clientY,G.touch.scrollDecided=!1;else if(e==="touchmove"){if(G.touch.scrollDecided)return;G.touch.scrollDecided=!0;const s=cl(o);let i=!1;const r=Math.abs(G.touch.x-t.clientX),n=Math.abs(G.touch.y-t.clientY);o.cancelable&&(s==="none"?i=!0:s==="pan-x"?i=n>r:s==="pan-y"&&(i=r>n)),i?o.preventDefault():ct("track")}}function Y(o,t,e){return xs[t]?(pl(o,t,e),!0):!1}function pl(o,t,e){const s=xs[t],i=s.deps,r=s.name;let n=o[ts];n||(o[ts]=n={});for(let a=0,l,c;a<i.length;a++)l=i[a],!(nl&&ws(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&o.addEventListener(l,ul,rl(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);o.addEventListener(t,e),s.touchAction&&xi(o,s.touchAction)}function Cs(o){ne.push(o),o.emits.forEach(t=>{xs[t]=o})}function ml(o){for(let t=0,e;t<ne.length;t++){e=ne[t];for(let s=0,i;s<e.emits.length;s++)if(i=e.emits[s],i===o)return e}return null}function xi(o,t){vs&&o instanceof HTMLElement&&Ya.run(()=>{o.style.touchAction=t}),o[ss]=t}function As(o,t,e){const s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=e,el(o).dispatchEvent(s),s.defaultPrevented){const i=e.preventer||e.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function ct(o){const t=ml(o);t.info&&(t.info.prevent=!0)}Cs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){be(this.info)},mousedown(o){if(!ae(o))return;const t=Z(o),e=this,s=r=>{ae(r)||(De("up",t,r),be(e.info))},i=r=>{ae(r)&&De("up",t,r),be(e.info)};vi(this.info,s,i),De("down",t,o)},touchstart(o){De("down",Z(o),o.changedTouches[0],o)},touchend(o){De("up",Z(o),o.changedTouches[0],o)}});function De(o,t,e,s){t&&As(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:s,prevent(i){return ct(i)}})}Cs({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>tl&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,be(this.info)},mousedown(o){if(!ae(o))return;const t=Z(o),e=this,s=r=>{const n=r.clientX,a=r.clientY;go(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ct("tap"),e.info.addMove({x:n,y:a}),ae(r)||(e.info.state="end",be(e.info)),t&&It(e.info,t,r),e.info.started=!0)},i=r=>{e.info.started&&s(r),be(e.info)};vi(this.info,s,i),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=Z(o),e=o.changedTouches[0],s=e.clientX,i=e.clientY;go(this.info,s,i)&&(this.info.state==="start"&&ct("tap"),this.info.addMove({x:s,y:i}),It(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=Z(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),It(this.info,t,e))}});function go(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const s=Math.abs(o.x-t),i=Math.abs(o.y-e);return s>=_o||i>=_o}function It(o,t,e){if(!t)return;const s=o.moves[o.moves.length-2],i=o.moves[o.moves.length-1],r=i.x-o.x,n=i.y-o.y;let a,l=0;s&&(a=i.x-s.x,l=i.y-s.y),As(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return dl(e.clientX,e.clientY)}})}Cs({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){ae(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){ae(o)&&bo(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){bo(this.info,o.changedTouches[0],o)}});function bo(o,t,e){const s=Math.abs(t.clientX-o.x),i=Math.abs(t.clientY-o.y),r=Z(e||t);!r||al[r.localName]&&r.hasAttribute("disabled")||(isNaN(s)||isNaN(i)||s<=fo&&i<=fo||ll(t))&&(o.prevent||As(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2194
+ */const Za=!1,el=o=>o,vs=typeof document.head.style.touchAction=="string",ts="__polymerGestures",Mt="__polymerGesturesHandled",ss="__polymerGesturesTouchAction",fo=25,_o=5,tl=2,sl=["mousedown","mousemove","mouseup","click"],ol=[0,1,4,2],il=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function ws(o){return sl.indexOf(o)>-1}let bi=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){bi=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function rl(o){if(!(ws(o)||o==="touchend")&&vs&&bi&&Za)return{passive:!0}}const nl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),al={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ae(o){const t=o.type;if(!ws(t))return!1;if(t==="mousemove"){let s=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!il&&(s=ol[o.which]||0),!!(s&1)}return(o.button===void 0?0:o.button)===0}function ll(o){if(o.type==="click"){if(o.detail===0)return!0;const t=Z(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),s=o.pageX,i=o.pageY;return!(s>=e.left&&s<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const G={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function cl(o){let t="auto";const e=wi(o);for(let s=0,i;s<e.length;s++)if(i=e[s],i[ss]){t=i[ss];break}return t}function vi(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function ye(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const wi=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],xs={},ne=[];function dl(o,t){let e=document.elementFromPoint(o,t),s=e;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const i=s;if(s=s.shadowRoot.elementFromPoint(o,t),i===s)break;s&&(e=s)}return e}function Z(o){const t=wi(o);return t.length>0?t[0]:o.target}function ul(o){const t=o.type,s=o.currentTarget[ts];if(!s)return;const i=s[t];if(!i)return;if(!o[Mt]&&(o[Mt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(G.touch.id=n.identifier),G.touch.id!==n.identifier)return;vs||(t==="touchstart"||t==="touchmove")&&hl(o)}const r=o[Mt];if(!r.skip){for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function hl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")G.touch.x=t.clientX,G.touch.y=t.clientY,G.touch.scrollDecided=!1;else if(e==="touchmove"){if(G.touch.scrollDecided)return;G.touch.scrollDecided=!0;const s=cl(o);let i=!1;const r=Math.abs(G.touch.x-t.clientX),n=Math.abs(G.touch.y-t.clientY);o.cancelable&&(s==="none"?i=!0:s==="pan-x"?i=n>r:s==="pan-y"&&(i=r>n)),i?o.preventDefault():ct("track")}}function U(o,t,e){return xs[t]?(pl(o,t,e),!0):!1}function pl(o,t,e){const s=xs[t],i=s.deps,r=s.name;let n=o[ts];n||(o[ts]=n={});for(let a=0,l,c;a<i.length;a++)l=i[a],!(nl&&ws(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&o.addEventListener(l,ul,rl(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);o.addEventListener(t,e),s.touchAction&&xi(o,s.touchAction)}function Cs(o){ne.push(o),o.emits.forEach(t=>{xs[t]=o})}function ml(o){for(let t=0,e;t<ne.length;t++){e=ne[t];for(let s=0,i;s<e.emits.length;s++)if(i=e.emits[s],i===o)return e}return null}function xi(o,t){vs&&o instanceof HTMLElement&&Ua.run(()=>{o.style.touchAction=t}),o[ss]=t}function As(o,t,e){const s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=e,el(o).dispatchEvent(s),s.defaultPrevented){const i=e.preventer||e.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function ct(o){const t=ml(o);t.info&&(t.info.prevent=!0)}Cs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ye(this.info)},mousedown(o){if(!ae(o))return;const t=Z(o),e=this,s=r=>{ae(r)||(De("up",t,r),ye(e.info))},i=r=>{ae(r)&&De("up",t,r),ye(e.info)};vi(this.info,s,i),De("down",t,o)},touchstart(o){De("down",Z(o),o.changedTouches[0],o)},touchend(o){De("up",Z(o),o.changedTouches[0],o)}});function De(o,t,e,s){t&&As(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:s,prevent(i){return ct(i)}})}Cs({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>tl&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ye(this.info)},mousedown(o){if(!ae(o))return;const t=Z(o),e=this,s=r=>{const n=r.clientX,a=r.clientY;go(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ct("tap"),e.info.addMove({x:n,y:a}),ae(r)||(e.info.state="end",ye(e.info)),t&&It(e.info,t,r),e.info.started=!0)},i=r=>{e.info.started&&s(r),ye(e.info)};vi(this.info,s,i),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=Z(o),e=o.changedTouches[0],s=e.clientX,i=e.clientY;go(this.info,s,i)&&(this.info.state==="start"&&ct("tap"),this.info.addMove({x:s,y:i}),It(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=Z(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),It(this.info,t,e))}});function go(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const s=Math.abs(o.x-t),i=Math.abs(o.y-e);return s>=_o||i>=_o}function It(o,t,e){if(!t)return;const s=o.moves[o.moves.length-2],i=o.moves[o.moves.length-1],r=i.x-o.x,n=i.y-o.y;let a,l=0;s&&(a=i.x-s.x,l=i.y-s.y),As(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return dl(e.clientX,e.clientY)}})}Cs({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){ae(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){ae(o)&&yo(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){yo(this.info,o.changedTouches[0],o)}});function yo(o,t,e){const s=Math.abs(t.clientX-o.x),i=Math.abs(t.clientY-o.y),r=Z(e||t);!r||al[r.localName]&&r.hasAttribute("disabled")||(isNaN(s)||isNaN(i)||s<=fo&&i<=fo||ll(t))&&(o.prevent||As(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2195
2195
  * @license
2196
2196
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2197
2197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2203,11 +2203,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2203
2203
  * @license
2204
2204
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2205
2205
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2206
- */const fl=o=>class extends Ci(_t(o)){get _activeKeys(){return[" "]}ready(){super.ready(),Y(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Y(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",s=>{this._activeKeys.includes(s.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2206
+ */const fl=o=>class extends Ci(_t(o)){get _activeKeys(){return[" "]}ready(){super.ready(),U(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),U(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",s=>{this._activeKeys.includes(s.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2207
2207
  * @license
2208
2208
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2209
2209
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2210
- */let Es=!1;window.addEventListener("keydown",()=>{Es=!0},{capture:!0});window.addEventListener("mousedown",()=>{Es=!1},{capture:!0});function os(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function _l(){return Es}function gl(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function bl(o,t){const e=Math.max(o.tabIndex,0),s=Math.max(t.tabIndex,0);return e===0||s===0?s>e:e>s}function yl(o,t){const e=[];for(;o.length>0&&t.length>0;)bl(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function is(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),s=is(o.slice(0,e)),i=is(o.slice(e));return yl(s,i)}function vl(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function wl(o){return o.getRootNode().activeElement===o}function xl(o){if(!vl(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function Ai(o,t){if(o.nodeType!==Node.ELEMENT_NODE||gl(o))return!1;const e=o,s=xl(e);let i=s>0;s>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{i=Ai(n,t)||i}),i}function Cl(o){const t=[];return Ai(o,t)?is(t):t}/**
2210
+ */let Es=!1;window.addEventListener("keydown",()=>{Es=!0},{capture:!0});window.addEventListener("mousedown",()=>{Es=!1},{capture:!0});function os(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function _l(){return Es}function gl(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function yl(o,t){const e=Math.max(o.tabIndex,0),s=Math.max(t.tabIndex,0);return e===0||s===0?s>e:e>s}function bl(o,t){const e=[];for(;o.length>0&&t.length>0;)yl(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function is(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),s=is(o.slice(0,e)),i=is(o.slice(e));return bl(s,i)}function vl(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function wl(o){return o.getRootNode().activeElement===o}function xl(o){if(!vl(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function Ai(o,t){if(o.nodeType!==Node.ELEMENT_NODE||gl(o))return!1;const e=o,s=xl(e);let i=s>0;s>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{i=Ai(n,t)||i}),i}function Cl(o){const t=[];return Ai(o,t)?is(t):t}/**
2211
2211
  * @license
2212
2212
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2213
2213
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2223,7 +2223,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2223
2223
  * @license
2224
2224
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2225
2225
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2226
- */k("vaadin-button",Ja,{moduleId:"vaadin-button-styles"});class El extends Al(fi(ce(Ce(ee)))){static get is(){return"vaadin-button"}static get template(){return Qa(ue)}ready(){super.ready(),this._tooltipController=new bi(this),this.addController(this._tooltipController)}}R(El);k("vaadin-date-picker-year",g`
2226
+ */k("vaadin-button",Ja,{moduleId:"vaadin-button-styles"});class El extends Al(fi(ce(Ce(ee)))){static get is(){return"vaadin-button"}static get template(){return Qa(ue)}ready(){super.ready(),this._tooltipController=new yi(this),this.addController(this._tooltipController)}}H(El);k("vaadin-date-picker-year",g`
2227
2227
  :host([current]) [part='year-number'] {
2228
2228
  color: var(--lumo-primary-text-color);
2229
2229
  }
@@ -2964,39 +2964,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2964
2964
  * @license
2965
2965
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2966
2966
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2967
- */const gt=o=>o.test(navigator.userAgent),ns=o=>o.test(navigator.platform),Nl=o=>o.test(navigator.vendor);gt(/Android/u);gt(/Chrome/u)&&Nl(/Google Inc/u);const zl=gt(/Firefox/u),Fl=ns(/^iPad/u)||ns(/^Mac/u)&&navigator.maxTouchPoints>1,Bl=ns(/^iPhone/u),Ii=Bl||Fl;gt(/^((?!chrome|android).)*safari/iu);const Ll=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
2967
+ */const gt=o=>o.test(navigator.userAgent),ns=o=>o.test(navigator.platform),Nl=o=>o.test(navigator.vendor);gt(/Android/u);gt(/Chrome/u)&&Nl(/Google Inc/u);const zl=gt(/Firefox/u),Bl=ns(/^iPad/u)||ns(/^Mac/u)&&navigator.maxTouchPoints>1,Fl=ns(/^iPhone/u),Ii=Fl||Bl;gt(/^((?!chrome|android).)*safari/iu);const Ll=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
2968
2968
  * @license
2969
2969
  * Copyright (c) 2017 Anton Korzunov
2970
2970
  * SPDX-License-Identifier: MIT
2971
- */let me=new WeakMap,Je=new WeakMap,Qe={},Nt=0;const yo=o=>o&&o.nodeType===Node.ELEMENT_NODE,zt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},ql=(o,t)=>yo(o)?t.map(e=>{if(!yo(e))return zt(e,"is not a valid element"),null;let s=e;for(;s&&s!==o;){if(o.contains(s))return e;s=s.getRootNode().host}return zt(e,"is not contained inside",o),null}).filter(e=>!!e):(zt(o,"is not a valid element"),[]),Rl=(o,t,e,s)=>{const i=ql(t,Array.isArray(o)?o:[o]);Qe[e]||(Qe[e]=new WeakMap);const r=Qe[e],n=[],a=new Set,l=new Set(i),c=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&c(p),c(h.parentNode||h.host)};i.forEach(c);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))u(f);else{const b=f.getAttribute(s),y=b!==null&&b!=="false",v=(me.get(f)||0)+1,C=(r.get(f)||0)+1;me.set(f,v),r.set(f,C),n.push(f),v===1&&y&&Je.set(f,!0),C===1&&f.setAttribute(e,"true"),y||f.setAttribute(s,"true")}})};return u(t),a.clear(),Nt+=1,()=>{n.forEach(h=>{const p=me.get(h)-1,m=r.get(h)-1;me.set(h,p),r.set(h,m),p||(Je.has(h)?Je.delete(h):h.removeAttribute(s)),m||h.removeAttribute(e)}),Nt-=1,Nt||(me=new WeakMap,me=new WeakMap,Je=new WeakMap,Qe={})}},Ni=(o,t=document.body,e="data-aria-hidden")=>{const s=Array.from(Array.isArray(o)?o:[o]);return t&&s.push(...Array.from(t.querySelectorAll("[aria-live]"))),Rl(s,t,e,"aria-hidden")};/**
2971
+ */let me=new WeakMap,Je=new WeakMap,Qe={},Nt=0;const bo=o=>o&&o.nodeType===Node.ELEMENT_NODE,zt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},Rl=(o,t)=>bo(o)?t.map(e=>{if(!bo(e))return zt(e,"is not a valid element"),null;let s=e;for(;s&&s!==o;){if(o.contains(s))return e;s=s.getRootNode().host}return zt(e,"is not contained inside",o),null}).filter(e=>!!e):(zt(o,"is not a valid element"),[]),Hl=(o,t,e,s)=>{const i=Rl(t,Array.isArray(o)?o:[o]);Qe[e]||(Qe[e]=new WeakMap);const r=Qe[e],n=[],a=new Set,l=new Set(i),c=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&c(p),c(h.parentNode||h.host)};i.forEach(c);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))u(f);else{const y=f.getAttribute(s),b=y!==null&&y!=="false",v=(me.get(f)||0)+1,C=(r.get(f)||0)+1;me.set(f,v),r.set(f,C),n.push(f),v===1&&b&&Je.set(f,!0),C===1&&f.setAttribute(e,"true"),b||f.setAttribute(s,"true")}})};return u(t),a.clear(),Nt+=1,()=>{n.forEach(h=>{const p=me.get(h)-1,m=r.get(h)-1;me.set(h,p),r.set(h,m),p||(Je.has(h)?Je.delete(h):h.removeAttribute(s)),m||h.removeAttribute(e)}),Nt-=1,Nt||(me=new WeakMap,me=new WeakMap,Je=new WeakMap,Qe={})}},Ni=(o,t=document.body,e="data-aria-hidden")=>{const s=Array.from(Array.isArray(o)?o:[o]);return t&&s.push(...Array.from(t.querySelectorAll("[aria-live]"))),Hl(s,t,e,"aria-hidden")};/**
2972
2972
  * @license
2973
2973
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2974
2974
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2975
- */class Hl{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Ni(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2975
+ */class $l{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Ni(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2976
2976
  * @license
2977
2977
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2978
2978
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2979
- */class $l{saveFocus(t){this.focusNode=t||os()}restoreFocus(){const t=this.focusNode;t&&(os()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
2979
+ */class Vl{saveFocus(t){this.focusNode=t||os()}restoreFocus(){const t=this.focusNode;t&&(os()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
2980
2980
  * @license
2981
2981
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2982
2982
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2983
- */const Ft=[];class Vl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Cl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(wl).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ft.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ft.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Ft).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,s=t?-1:1,i=this.__focusedElementIndex,r=(e.length+i+s)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
2983
+ */const Bt=[];class Yl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Cl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(wl).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Bt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Bt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Bt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,s=t?-1:1,i=this.__focusedElementIndex,r=(e.length+i+s)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
2984
2984
  * @license
2985
2985
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2986
2986
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2987
- */const Yl=o=>class extends Ce(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Hl(this),this.__focusTrapController=new Vl(this),this.__focusRestorationController=new $l}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=os();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let s=e;const i=e.ownerDocument;for(;s&&s!==i&&s!==this;)s=s.parentNode||s.host;return s===this}};/**
2987
+ */const Ul=o=>class extends Ce(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new $l(this),this.__focusTrapController=new Yl(this),this.__focusRestorationController=new Vl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=os();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let s=e;const i=e.ownerDocument;for(;s&&s!==i&&s!==this;)s=s.parentNode||s.host;return s===this}};/**
2988
2988
  * @license
2989
2989
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2990
2990
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2991
- */const st=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),Ul=o=>o===st().pop(),Wl=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Ul(this)}bringToFront(){let e="";const s=st().filter(i=>i!==this).pop();s&&(e=s.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),st().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=st();let s;for(;(s=e.pop())&&!(s!==this&&(s.$.overlay.style.removeProperty("pointer-events"),!s.modeless)););}};/**
2991
+ */const st=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),Wl=o=>o===st().pop(),jl=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Wl(this)}bringToFront(){let e="";const s=st().filter(i=>i!==this).pop();s&&(e=s.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),st().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=st();let s;for(;(s=e.pop())&&!(s!==this&&(s.$.overlay.style.removeProperty("pointer-events"),!s.modeless)););}};/**
2992
2992
  * @license
2993
2993
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2994
2994
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2995
- */const jl=o=>class extends Yl(Wl(o)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Ii&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const s=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(s),s.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,i=window.innerWidth>e,r=document.documentElement.clientHeight;i&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,s,i,r){const n=this._oldOwner!==s||this._oldModel!==i;this._oldModel=i,this._oldOwner=s;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,s){e?(this._saveFocus(),this._animatedOpening(),Mi(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):s&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),s=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&s&&s!=="none"}_enqueueAnimation(e,s){const i=`__${e}Handler`,r=n=>{n&&n.target!==this||(s(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const s=`__${e}Handler`;typeof this[s]=="function"&&this[s]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const s=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(s),this.opened&&!s.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const s=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(s),this.opened&&!s.defaultPrevented&&this.close(e)}}};/**
2995
+ */const ql=o=>class extends Ul(jl(o)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Ii&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const s=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(s),s.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,i=window.innerWidth>e,r=document.documentElement.clientHeight;i&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,s,i,r){const n=this._oldOwner!==s||this._oldModel!==i;this._oldModel=i,this._oldOwner=s;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,s){e?(this._saveFocus(),this._animatedOpening(),Mi(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):s&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),s=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&s&&s!=="none"}_enqueueAnimation(e,s){const i=`__${e}Handler`,r=n=>{n&&n.target!==this||(s(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const s=`__${e}Handler`;typeof this[s]=="function"&&this[s]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const s=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(s),this.opened&&!s.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const s=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(s),this.opened&&!s.defaultPrevented&&this.close(e)}}};/**
2996
2996
  * @license
2997
2997
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2998
2998
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2999
- */const Bt={start:"top",end:"bottom"},Lt={start:"left",end:"right"},vo=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Kl=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=Wa(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,s){if(this.__removeUpdatePositionEventListeners(),s&&(s.__overlay=null,vo.unobserve(s),e&&(this.__addUpdatePositionEventListeners(),s.__overlay=this,vo.observe(s))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(i[r],10)})),this.setAttribute("dir",i.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),s=this.__shouldAlignStartVertically(e);this.style.justifyContent=s?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),n=!i&&r||i&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Bt,this,s),c=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Lt,this,r);Object.assign(this.style,l,c),this.toggleAttribute("bottom-aligned",!s),this.toggleAttribute("top-aligned",s),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,s){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!s&&this.horizontalAlign==="start"||s&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,r,this.__margins,n,this.noHorizontalOverlap,Lt)}__shouldAlignStartVertically(e){const s=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,s,i,this.__margins,r,this.noVerticalOverlap,Bt)}__shouldAlignStart(e,s,i,r,n,a,l){const c=i-e[a?l.end:l.start]-r[l.end],u=e[a?l.start:l.end]-r[l.start],h=n?c:u,m=h>(n?u:c)||h>s;return n===m}__adjustBottomProperty(e,s,i){let r;if(e===s.end){if(s.end===Bt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=i-a}this.__oldViewportHeight=n}if(s.end===Lt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=i-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,s,i,r,n,a){const l=a?r.start:r.end,c=a?r.end:r.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,u),p=s[a?r.start:r.end]-e[i===a?r.end:r.start],m=h?`${h}px`:`${u+p*(a?-1:1)}px`;return{[l]:m,[c]:""}}};/**
2999
+ */const Ft={start:"top",end:"bottom"},Lt={start:"left",end:"right"},vo=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Kl=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=ja(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,s){if(this.__removeUpdatePositionEventListeners(),s&&(s.__overlay=null,vo.unobserve(s),e&&(this.__addUpdatePositionEventListeners(),s.__overlay=this,vo.observe(s))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(i[r],10)})),this.setAttribute("dir",i.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),s=this.__shouldAlignStartVertically(e);this.style.justifyContent=s?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),n=!i&&r||i&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Ft,this,s),c=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Lt,this,r);Object.assign(this.style,l,c),this.toggleAttribute("bottom-aligned",!s),this.toggleAttribute("top-aligned",s),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,s){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!s&&this.horizontalAlign==="start"||s&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,r,this.__margins,n,this.noHorizontalOverlap,Lt)}__shouldAlignStartVertically(e){const s=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,s,i,this.__margins,r,this.noVerticalOverlap,Ft)}__shouldAlignStart(e,s,i,r,n,a,l){const c=i-e[a?l.end:l.start]-r[l.end],u=e[a?l.start:l.end]-r[l.start],h=n?c:u,m=h>(n?u:c)||h>s;return n===m}__adjustBottomProperty(e,s,i){let r;if(e===s.end){if(s.end===Ft.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=i-a}this.__oldViewportHeight=n}if(s.end===Lt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=i-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,s,i,r,n,a){const l=a?r.start:r.end,c=a?r.end:r.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,u),p=s[a?r.start:r.end]-e[i===a?r.end:r.start],m=h?`${h}px`:`${u+p*(a?-1:1)}px`;return{[l]:m,[c]:""}}};/**
3000
3000
  * @license
3001
3001
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3002
3002
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3081,18 +3081,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3081
3081
  * @license
3082
3082
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3083
3083
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3084
- */k("vaadin-date-picker-overlay",[Gl,Xl],{moduleId:"vaadin-date-picker-overlay-styles"});class Jl extends Kl(jl(mt(ce(ee)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return ue`
3084
+ */k("vaadin-date-picker-overlay",[Gl,Xl],{moduleId:"vaadin-date-picker-overlay-styles"});class Jl extends Kl(ql(mt(ce(ee)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return ue`
3085
3085
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3086
3086
  <div part="overlay" id="overlay">
3087
3087
  <div part="content" id="content">
3088
3088
  <slot></slot>
3089
3089
  </div>
3090
3090
  </div>
3091
- `}}R(Jl);/**
3091
+ `}}H(Jl);/**
3092
3092
  * @license
3093
3093
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3094
3094
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3095
- */function Ql(o){let t=o.getDay();t===0&&(t=7);const e=4-t,s=new Date(o.getTime()+e*24*3600*1e3),i=new Date(0,0);i.setFullYear(s.getFullYear());const r=s.getTime()-i.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function X(o,t){return o instanceof Date&&t instanceof Date&&o.getFullYear()===t.getFullYear()&&o.getMonth()===t.getMonth()&&o.getDate()===t.getDate()}function Ve(o,t,e){return(!t||o>=t)&&(!e||o<=e)}function zi(o,t){return t.filter(e=>e!==void 0).reduce((e,s)=>{if(!s)return e;if(!e)return s;const i=Math.abs(o.getTime()-s.getTime()),r=Math.abs(e.getTime()-o.getTime());return i<r?s:e})}function Fi(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function Bi(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function Zl(o,t,e=0,s=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(i-50,e,s)?i-=100:o>new Date(i+50,e,s)&&(i+=100),i}function Se(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}/**
3095
+ */function Ql(o){let t=o.getDay();t===0&&(t=7);const e=4-t,s=new Date(o.getTime()+e*24*3600*1e3),i=new Date(0,0);i.setFullYear(s.getFullYear());const r=s.getTime()-i.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function X(o,t){return o instanceof Date&&t instanceof Date&&o.getFullYear()===t.getFullYear()&&o.getMonth()===t.getMonth()&&o.getDate()===t.getDate()}function Ye(o,t,e){return(!t||o>=t)&&(!e||o<=e)}function zi(o,t){return t.filter(e=>e!==void 0).reduce((e,s)=>{if(!s)return e;if(!e)return s;const i=Math.abs(o.getTime()-s.getTime()),r=Math.abs(e.getTime()-o.getTime());return i<r?s:e})}function Bi(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function Fi(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function Zl(o,t,e=0,s=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(i-50,e,s)?i-=100:o>new Date(i+50,e,s)&&(i+=100),i}function Se(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}/**
3096
3096
  * @license
3097
3097
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3098
3098
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3146,11 +3146,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3146
3146
  <div class="buffer"></div>
3147
3147
  <div id="fullHeight"></div>
3148
3148
  </div>
3149
- `;class qi extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Li.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const s=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(s)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,zl&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,s=t>this._buffers[1].translateY+e,i=t<this._buffers[0].translateY+e;(s||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=$e.debounce(this._debouncerScrollFinish,lt.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=$e.debounce(this._debouncerUpdateClones,lt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let s=0;s<this.bufferSize;s++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${gi()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,e.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),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(s=>{t.instance[s]=e[s]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((s,i)=>{if(!s.updated){const r=this._firstIndex+this.bufferSize*i;[...s.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),s.updated=!0}})}_isVisible(t,e){const s=t.getBoundingClientRect();return s.bottom>e.top&&s.top<e.bottom}}/**
3149
+ `;class Ri extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Li.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const s=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(s)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,zl&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,s=t>this._buffers[1].translateY+e,i=t<this._buffers[0].translateY+e;(s||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Ve.debounce(this._debouncerScrollFinish,lt.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Ve.debounce(this._debouncerUpdateClones,lt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let s=0;s<this.bufferSize;s++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${gi()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,e.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),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(s=>{t.instance[s]=e[s]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((s,i)=>{if(!s.updated){const r=this._firstIndex+this.bufferSize*i;[...s.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),s.updated=!0}})}_isVisible(t,e){const s=t.getBoundingClientRect();return s.bottom>e.top&&s.top<e.bottom}}/**
3150
3150
  * @license
3151
3151
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3152
3152
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3153
- */const Ri=document.createElement("template");Ri.innerHTML=`
3153
+ */const Hi=document.createElement("template");Hi.innerHTML=`
3154
3154
  <style>
3155
3155
  :host {
3156
3156
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3162,11 +3162,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3162
3162
  height: 100%;
3163
3163
  }
3164
3164
  </style>
3165
- `;class ec extends qi{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ri.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Bi(e)}}R(ec);/**
3165
+ `;class ec extends Ri{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Hi.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Fi(e)}}H(ec);/**
3166
3166
  * @license
3167
3167
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3168
3168
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3169
- */const Hi=document.createElement("template");Hi.innerHTML=`
3169
+ */const $i=document.createElement("template");$i.innerHTML=`
3170
3170
  <style>
3171
3171
  :host {
3172
3172
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3200,7 +3200,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3200
3200
  border-left-color: #000;
3201
3201
  }
3202
3202
  </style>
3203
- `;class tc extends qi{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Hi.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,s=new Date(e);return s.setFullYear(parseInt(t)+e.getFullYear()),s.getFullYear()}}R(tc);/**
3203
+ `;class tc extends Ri{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild($i.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,s=new Date(e);return s.setFullYear(parseInt(t)+e.getFullYear()),s.getFullYear()}}H(tc);/**
3204
3204
  * @license
3205
3205
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3206
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3213,7 +3213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3213
3213
  </style>
3214
3214
  <div part="year-number">[[year]]</div>
3215
3215
  <div part="year-separator" aria-hidden="true"></div>
3216
- `}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())}}R(sc);/**
3216
+ `}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())}}H(sc);/**
3217
3217
  @license
3218
3218
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3219
3219
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3229,7 +3229,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3229
3229
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3230
3230
  Code distributed by Google as part of the polymer project is also
3231
3231
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3232
- */let as=null;function ls(){return as}ls.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ls,writable:!0}});const $i=bs(ls),ic=Ts($i);function rc(o,t){as=o,Object.setPrototypeOf(o,t.prototype),new t,as=null}const nc=bs(class{});function ac(o,t){for(let e=0;e<t.length;e++){let s=t[e];if(!!o!=!!s.__hideTemplateChildren__)if(s.nodeType===Node.TEXT_NODE)o?(s.__polymerTextContent__=s.textContent,s.textContent=""):s.textContent=s.__polymerTextContent__;else if(s.localName==="slot")if(o)s.__polymerReplaced__=document.createComment("hidden-slot"),M(M(s).parentNode).replaceChild(s.__polymerReplaced__,s);else{const i=s.__polymerReplaced__;i&&M(M(i).parentNode).replaceChild(s,i)}else s.style&&(o?(s.__polymerDisplay__=s.style.display,s.style.display="none"):s.style.display=s.__polymerDisplay__);s.__hideTemplateChildren__=o,s._showHideChildren&&s._showHideChildren(o)}}class te extends nc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let i=this.root.firstChild;i;i=i.nextSibling)e.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(t&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let s in this.__hostProps)this._setPendingProperty(s,this.__dataHost["_host_"+s]);for(let s in t)this._setPendingProperty(s,t[s])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,i=>{i.model=this,s(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,e,s)}}_showHideChildren(t){ac(t,this.children)}_setUnmanagedPropertyToNode(t,e,s){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(t,e,s)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}te.prototype.__dataHost;te.prototype.__templatizeOptions;te.prototype._methodHost;te.prototype.__templatizeOwner;te.prototype.__hostProps;const lc=Ts(te);function wo(o){let t=o.__dataHost;return t&&t._methodHost||t}function cc(o,t,e){let s=e.mutableData?lc:te;cs.mixin&&(s=cs.mixin(s));let i=class extends s{};return i.prototype.__templatizeOptions=e,i.prototype._bindTemplate(o),hc(i,o,t,e),i}function dc(o,t,e,s){let i=e.forwardHostProp;if(i&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?ic:$i;class c extends l{}n=t.templatizeTemplateClass=c}else{const l=o.constructor;class c extends l{}n=t.templatizeTemplateClass=c}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:uc(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);Ho&&s&&fc(t,e,s)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)rc(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const c=o[l];delete o[l],o.__data[l]=c}}}}function uc(o,t){return function(s,i,r){t.call(s.__templatizeOwner,i.substring(6),r[i])}}function hc(o,t,e,s){let i=e.hostProps||{};for(let r in s.instanceProps){delete i[r];let n=s.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pc(r,n)})}if(s.forwardHostProp&&t.__dataHost)for(let r in i)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:mc()})}function pc(o,t){return function(s,i,r){t.call(s.__templatizeOwner,s,i,r[i])}}function mc(){return function(t,e,s){t.__dataHost._setPendingPropertyOrPath("_host_"+e,s[e],!0,!0)}}function cs(o,t,e){if(nt&&!wo(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let i=(t?t.constructor:te)._parseTemplate(o),r=i.templatizeInstanceClass;r||(r=cc(o,i,e),i.templatizeInstanceClass=r);const n=wo(o);dc(o,i,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function fc(o,t,e){const s=e.constructor._properties,{propertyEffects:i}=o,{instanceProps:r}=t;for(let n in i)if(!s[n]&&!(r&&r[n])){const a=i[n];for(let l=0;l<a.length;l++){const{part:c}=a[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function _c(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=M(t).parentNode;return null}/**
3232
+ */let as=null;function ls(){return as}ls.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ls,writable:!0}});const Vi=ys(ls),ic=Ts(Vi);function rc(o,t){as=o,Object.setPrototypeOf(o,t.prototype),new t,as=null}const nc=ys(class{});function ac(o,t){for(let e=0;e<t.length;e++){let s=t[e];if(!!o!=!!s.__hideTemplateChildren__)if(s.nodeType===Node.TEXT_NODE)o?(s.__polymerTextContent__=s.textContent,s.textContent=""):s.textContent=s.__polymerTextContent__;else if(s.localName==="slot")if(o)s.__polymerReplaced__=document.createComment("hidden-slot"),M(M(s).parentNode).replaceChild(s.__polymerReplaced__,s);else{const i=s.__polymerReplaced__;i&&M(M(i).parentNode).replaceChild(s,i)}else s.style&&(o?(s.__polymerDisplay__=s.style.display,s.style.display="none"):s.style.display=s.__polymerDisplay__);s.__hideTemplateChildren__=o,s._showHideChildren&&s._showHideChildren(o)}}class te extends nc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let i=this.root.firstChild;i;i=i.nextSibling)e.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(t&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let s in this.__hostProps)this._setPendingProperty(s,this.__dataHost["_host_"+s]);for(let s in t)this._setPendingProperty(s,t[s])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,i=>{i.model=this,s(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,e,s)}}_showHideChildren(t){ac(t,this.children)}_setUnmanagedPropertyToNode(t,e,s){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(t,e,s)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}te.prototype.__dataHost;te.prototype.__templatizeOptions;te.prototype._methodHost;te.prototype.__templatizeOwner;te.prototype.__hostProps;const lc=Ts(te);function wo(o){let t=o.__dataHost;return t&&t._methodHost||t}function cc(o,t,e){let s=e.mutableData?lc:te;cs.mixin&&(s=cs.mixin(s));let i=class extends s{};return i.prototype.__templatizeOptions=e,i.prototype._bindTemplate(o),hc(i,o,t,e),i}function dc(o,t,e,s){let i=e.forwardHostProp;if(i&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?ic:Vi;class c extends l{}n=t.templatizeTemplateClass=c}else{const l=o.constructor;class c extends l{}n=t.templatizeTemplateClass=c}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:uc(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);$o&&s&&fc(t,e,s)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)rc(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const c=o[l];delete o[l],o.__data[l]=c}}}}function uc(o,t){return function(s,i,r){t.call(s.__templatizeOwner,i.substring(6),r[i])}}function hc(o,t,e,s){let i=e.hostProps||{};for(let r in s.instanceProps){delete i[r];let n=s.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pc(r,n)})}if(s.forwardHostProp&&t.__dataHost)for(let r in i)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:mc()})}function pc(o,t){return function(s,i,r){t.call(s.__templatizeOwner,s,i,r[i])}}function mc(){return function(t,e,s){t.__dataHost._setPendingPropertyOrPath("_host_"+e,s[e],!0,!0)}}function cs(o,t,e){if(nt&&!wo(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let i=(t?t.constructor:te)._parseTemplate(o),r=i.templatizeInstanceClass;r||(r=cc(o,i,e),i.templatizeInstanceClass=r);const n=wo(o);dc(o,i,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function fc(o,t,e){const s=e.constructor._properties,{propertyEffects:i}=o,{instanceProps:r}=t;for(let n in i)if(!s[n]&&!(r&&r[n])){const a=i[n];for(let l=0;l<a.length;l++){const{part:c}=a[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function _c(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=M(t).parentNode;return null}/**
3233
3233
  @license
3234
3234
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3235
3235
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3237,7 +3237,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3237
3237
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3238
3238
  Code distributed by Google as part of the polymer project is also
3239
3239
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3240
- */class dt{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,Ye.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ye.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(t,e,s){return t instanceof dt?t._cancelAsync():t=new dt,t.setConfig(e,s),t}}let Ye=new Set;const gc=function(o){Ye.add(o)},bc=function(){const o=!!Ye.size;return Ye.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o};/**
3240
+ */class dt{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,Ue.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ue.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(t,e,s){return t instanceof dt?t._cancelAsync():t=new dt,t.setConfig(e,s),t}}let Ue=new Set;const gc=function(o){Ue.add(o)},yc=function(){const o=!!Ue.size;return Ue.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o};/**
3241
3241
  @license
3242
3242
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3243
3243
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3245,7 +3245,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3245
3245
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3246
3246
  Code distributed by Google as part of the polymer project is also
3247
3247
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3248
- */const Vi=function(){let o,t;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=bc();while(o||t)};/**
3248
+ */const Yi=function(){let o,t;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=yc();while(o||t)};/**
3249
3249
  @license
3250
3250
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3251
3251
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3253,7 +3253,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3253
3253
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3254
3254
  Code distributed by Google as part of the polymer project is also
3255
3255
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3256
- */let xo=!1;function yc(){if(Ro&&!qo){if(!xo){xo=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
3256
+ */let xo=!1;function bc(){if(Ho&&!Ro){if(!xo){xo=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
3257
3257
  @license
3258
3258
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3259
3259
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3261,11 +3261,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3261
3261
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3262
3262
  Code distributed by Google as part of the polymer project is also
3263
3263
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3264
- */const vc=oc(ee);class Co extends vc{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:!Ks,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),yc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=M(M(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=cs(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(i,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,r)},notifyInstanceProp:function(i,r,n){if(nn(this.as,r)){let a=i[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=qe(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,s=this.__getMethodHost();return function(){return s[e].apply(s,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let s=0;s<e.length;s++)t.indexOf(e[s])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=dt.debounce(this.__renderDebouncer,e>0?hn.after(e):Jo,t.bind(this)),gc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Vi()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),s=this.__calculateLimit(e.length);this.__updateInstances(t,s,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Ks||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let s=0;s<t.length;s++)e[s]=s;return this.__filterFn&&(e=e.filter((s,i,r)=>this.__filterFn(t[s],i,r))),this.__sortFn&&e.sort((s,i)=>this.__sortFn(t[s],t[i])),e}__calculateLimit(t){let e=t;const s=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),i=Math.max(e-s,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-s,0),this.__chunkCount),e=Math.min(s+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,s){const i=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=s[r],l=t[a];i[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const s=M(e.root);for(let i=0;i<e.children.length;i++){let r=e.children[i];s.appendChild(r)}return e}__attachInstance(t,e){let s=this.__instances[t];e.insertBefore(s.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,s){let i={};return i[this.as]=t,i[this.indexAs]=e,i[this.itemsIndexAs]=s,new this.__ctor(i)}__insertInstance(t,e,s){const i=this.__stampInstance(t,e,s);let r=this.__instances[e+1],n=r?r.children[0]:this;return M(M(this).parentNode).insertBefore(i.root,n),this.__instances[e]=i,i}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let s=t.slice(6),i=s.indexOf("."),r=i<0?s:s.substring(0,i);if(r==parseInt(r,10)){let n=i<0?"":s.substring(i+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return _c(this.template,t)}}customElements.define(Co.is,Co);/**
3264
+ */const vc=oc(ee);class Co extends vc{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:!Ks,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),bc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=M(M(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=cs(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(i,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,r)},notifyInstanceProp:function(i,r,n){if(nn(this.as,r)){let a=i[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Re(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,s=this.__getMethodHost();return function(){return s[e].apply(s,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let s=0;s<e.length;s++)t.indexOf(e[s])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=dt.debounce(this.__renderDebouncer,e>0?hn.after(e):Jo,t.bind(this)),gc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Yi()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),s=this.__calculateLimit(e.length);this.__updateInstances(t,s,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Ks||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let s=0;s<t.length;s++)e[s]=s;return this.__filterFn&&(e=e.filter((s,i,r)=>this.__filterFn(t[s],i,r))),this.__sortFn&&e.sort((s,i)=>this.__sortFn(t[s],t[i])),e}__calculateLimit(t){let e=t;const s=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),i=Math.max(e-s,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-s,0),this.__chunkCount),e=Math.min(s+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,s){const i=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=s[r],l=t[a];i[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const s=M(e.root);for(let i=0;i<e.children.length;i++){let r=e.children[i];s.appendChild(r)}return e}__attachInstance(t,e){let s=this.__instances[t];e.insertBefore(s.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,s){let i={};return i[this.as]=t,i[this.indexAs]=e,i[this.itemsIndexAs]=s,new this.__ctor(i)}__insertInstance(t,e,s){const i=this.__stampInstance(t,e,s);let r=this.__instances[e+1],n=r?r.children[0]:this;return M(M(this).parentNode).insertBefore(i.root,n),this.__instances[e]=i,i}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let s=t.slice(6),i=s.indexOf("."),r=i<0?s:s.substring(0,i);if(r==parseInt(r,10)){let n=i<0?"":s.substring(i+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return _c(this.template,t)}}customElements.define(Co.is,Co);/**
3265
3265
  * @license
3266
3266
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3267
3267
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3268
- */const wc=o=>class extends Ps(o){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>X(e.date,this.focusedDate))}ready(){super.ready(),Y(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,s,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),s&&i&&s.getMonth()===i.getMonth()&&s.getMonth()===e.getMonth()&&i.getDate()-s.getDate()>=0?!1:!Ve(r,s,i)&&!Ve(n,s,i)}_getTitle(e,s){if(!(e===void 0||s===void 0))return s.formatTitle(s.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,s){e.setDate(e.getDate()+s)}_applyFirstDayOfWeek(e,s){if(!(e===void 0||s===void 0))return e.slice(s).concat(e.slice(0,s))}_getWeekDayNames(e,s){if(e===void 0||s===void 0)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map((c,u)=>({weekDay:c,weekDayShort:a[u]}))}__focusedDateChanged(e,s){Array.isArray(s)&&s.some(i=>X(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,s){return e&&s&&s.firstDayOfWeek===1}_isToday(e){return X(new Date,e)}_getDays(e,s){if(e===void 0||s===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==s.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],n=i.getMonth(),a=e.getMonth();for(;i.getMonth()===a||i.getMonth()===n;)r.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((s,i,r)=>(r%7===0&&s.push([]),s[s.length-1].push(i),s),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const s=e.reduce((i,r)=>!i&&r?r:i);return Ql(s)}__getDayAriaLabel(e){if(!e)return"";let s=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(s+=`, ${this.i18n.today}`),s}};/**
3268
+ */const wc=o=>class extends Ps(o){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>X(e.date,this.focusedDate))}ready(){super.ready(),U(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,s,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),s&&i&&s.getMonth()===i.getMonth()&&s.getMonth()===e.getMonth()&&i.getDate()-s.getDate()>=0?!1:!Ye(r,s,i)&&!Ye(n,s,i)}_getTitle(e,s){if(!(e===void 0||s===void 0))return s.formatTitle(s.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,s){e.setDate(e.getDate()+s)}_applyFirstDayOfWeek(e,s){if(!(e===void 0||s===void 0))return e.slice(s).concat(e.slice(0,s))}_getWeekDayNames(e,s){if(e===void 0||s===void 0)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map((c,u)=>({weekDay:c,weekDayShort:a[u]}))}__focusedDateChanged(e,s){Array.isArray(s)&&s.some(i=>X(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,s){return e&&s&&s.firstDayOfWeek===1}_isToday(e){return X(new Date,e)}_getDays(e,s){if(e===void 0||s===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==s.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],n=i.getMonth(),a=e.getMonth();for(;i.getMonth()===a||i.getMonth()===n;)r.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((s,i,r)=>(r%7===0&&s.push([]),s[s.length-1].push(i),s),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const s=e.reduce((i,r)=>!i&&r?r:i);return Ql(s)}__getDayAriaLabel(e){if(!e)return"";let s=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(s+=`, ${this.i18n.today}`),s}};/**
3269
3269
  * @license
3270
3270
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3271
3271
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3371,15 +3371,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3371
3371
  </template>
3372
3372
  </tbody>
3373
3373
  </table>
3374
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,s,i,r){const n=["date"];return this.__isDayDisabled(t,i,r)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,s)&&n.push("selected"),this._isToday(t)&&n.push("today"),n.join(" ")}__isDayFocused(t,e){return X(t,e)}__isDaySelected(t,e){return X(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,s){return!Ve(t,e,s)}__getDayAriaDisabled(t,e,s){if(!(t===void 0||e===void 0||s===void 0)&&this.__isDayDisabled(t,e,s))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}R(Cc);/**
3374
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,s,i,r){const n=["date"];return this.__isDayDisabled(t,i,r)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,s)&&n.push("selected"),this._isToday(t)&&n.push("today"),n.join(" ")}__isDayFocused(t,e){return X(t,e)}__isDaySelected(t,e){return X(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,s){return!Ye(t,e,s)}__getDayAriaDisabled(t,e,s){if(!(t===void 0||e===void 0||s===void 0)&&this.__isDayDisabled(t,e,s))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}H(Cc);/**
3375
3375
  * @license
3376
3376
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3377
3377
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3378
- */class Yi{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3378
+ */class Ui{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3379
3379
  * @license
3380
3380
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3381
3381
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3382
- */const Ac=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){xi(this.$.scrollers,"pan-y"),Y(this.$.scrollers,"track",this._track.bind(this)),Y(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Y(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Y(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Yi(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new re(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onTodayButtonKeyDown(s)),Y(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new re(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onCancelButtonKeyDown(s)),Y(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,s){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,s),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new re(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",s=>{this.__onMonthCalendarKeyDown(s)}),e.addEventListener("init-done",()=>{const s=[...this.querySelectorAll("vaadin-month-calendar")];s.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=s}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new re(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Y(e,"tap",s=>{this._onYearTap(s)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,s){e&&(e.textContent=s&&s.cancel)}__updateTodayButton(e,s,i,r){e&&(e.textContent=s&&s.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,s,i,r,n,a,l,c,u){e&&e.length&&e.forEach(h=>{h.i18n=s,h.minDate=i,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,u?h.setAttribute("theme",u):h.removeAttribute("theme")})}__updateYears(e,s,i){e&&e.length&&e.forEach(r=>{r.selectedDate=s,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,s=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+c,s);return}const r=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;r?this._scrollToPosition(i,s):l&&this._scrollToPosition(i-a+1,s)}_calculateWeekScrollOffset(e){const s=new Date(0,0);s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);let i=0;for(;s.getDate()<e.getDate();)s.setDate(s.getDate()+1),s.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=$e.debounce(this._debouncer,lt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,s,i){return e&&s&&typeof s.formatDate=="function"?s.formatDate(Fi(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,s){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!s){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(c=>{i=c});const r=(c,u,h,p)=>(c/=p/2,c<1?h/2*c*c+u:(c-=1,-h/2*(c*(c-2)-1)+u));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const u=c-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,s){return Math.min(s.max,Math.max(s.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const s=this._translateX+e.detail.ddx;this._translateX=this._limit(s,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Bi(e).getFullYear()}_differenceInMonths(e,s){return(e.getFullYear()-s.getFullYear())*12-s.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){X(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let s=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),s=!0;break;case"ArrowUp":this._moveFocusByDays(-7),s=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),s=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),s=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),s=!0;break;case" ":this.__toggleDate(this.focusedDate),s=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),s=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),s=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),s=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),s=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}s&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,s){switch(e.stopPropagation(),s){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const s=this.focusableDateElement;s&&X(s.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,s.focus())}}focusDate(e,s){return Ke(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,s||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ke(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(s=>{Mi(this,()=>{Vi(),s()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(zi(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,s,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?s>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,s){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),s&&i.setDate(this.focusedDate.getDate()+s),i}_moveFocusByDays(e){const s=this._getDateDiff(0,e);this._focusAllowedDate(s,e,!1)}_moveFocusByMonths(e){const s=this._getDateDiff(e),i=s.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),s.setDate(this._focusedMonthDate),s.getMonth()!==i&&s.setDate(0),this._focusAllowedDate(s,e,!0)}_moveFocusInsideMonth(e,s){const i=new Date(0,0);i.setFullYear(e.getFullYear()),s==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[s]):this._focusClosestDate(e)}_dateAllowed(e,s=this.minDate,i=this.maxDate){return(!s||e>=s)&&(!i||e<=i)}_isTodayAllowed(e,s){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,s)}};/**
3382
+ */const Ac=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){xi(this.$.scrollers,"pan-y"),U(this.$.scrollers,"track",this._track.bind(this)),U(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),U(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),U(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ui(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new re(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onTodayButtonKeyDown(s)),U(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new re(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onCancelButtonKeyDown(s)),U(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,s){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,s),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new re(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",s=>{this.__onMonthCalendarKeyDown(s)}),e.addEventListener("init-done",()=>{const s=[...this.querySelectorAll("vaadin-month-calendar")];s.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=s}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new re(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),U(e,"tap",s=>{this._onYearTap(s)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,s){e&&(e.textContent=s&&s.cancel)}__updateTodayButton(e,s,i,r){e&&(e.textContent=s&&s.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,s,i,r,n,a,l,c,u){e&&e.length&&e.forEach(h=>{h.i18n=s,h.minDate=i,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,u?h.setAttribute("theme",u):h.removeAttribute("theme")})}__updateYears(e,s,i){e&&e.length&&e.forEach(r=>{r.selectedDate=s,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,s=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+c,s);return}const r=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;r?this._scrollToPosition(i,s):l&&this._scrollToPosition(i-a+1,s)}_calculateWeekScrollOffset(e){const s=new Date(0,0);s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);let i=0;for(;s.getDate()<e.getDate();)s.setDate(s.getDate()+1),s.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ve.debounce(this._debouncer,lt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,s,i){return e&&s&&typeof s.formatDate=="function"?s.formatDate(Bi(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,s){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!s){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(c=>{i=c});const r=(c,u,h,p)=>(c/=p/2,c<1?h/2*c*c+u:(c-=1,-h/2*(c*(c-2)-1)+u));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const u=c-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,s){return Math.min(s.max,Math.max(s.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const s=this._translateX+e.detail.ddx;this._translateX=this._limit(s,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Fi(e).getFullYear()}_differenceInMonths(e,s){return(e.getFullYear()-s.getFullYear())*12-s.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){X(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let s=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),s=!0;break;case"ArrowUp":this._moveFocusByDays(-7),s=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),s=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),s=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),s=!0;break;case" ":this.__toggleDate(this.focusedDate),s=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),s=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),s=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),s=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),s=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}s&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,s){switch(e.stopPropagation(),s){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const s=this.focusableDateElement;s&&X(s.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,s.focus())}}focusDate(e,s){return Ke(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,s||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ke(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(s=>{Mi(this,()=>{Yi(),s()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(zi(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,s,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?s>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,s){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),s&&i.setDate(this.focusedDate.getDate()+s),i}_moveFocusByDays(e){const s=this._getDateDiff(0,e);this._focusAllowedDate(s,e,!1)}_moveFocusByMonths(e){const s=this._getDateDiff(e),i=s.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),s.setDate(this._focusedMonthDate),s.getMonth()!==i&&s.setDate(0),this._focusAllowedDate(s,e,!0)}_moveFocusInsideMonth(e,s){const i=new Date(0,0);i.setFullYear(e.getFullYear()),s==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[s]):this._focusClosestDate(e)}_dateAllowed(e,s=this.minDate,i=this.maxDate){return(!s||e>=s)&&(!i||e<=i)}_isTodayAllowed(e,s){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,s)}};/**
3383
3383
  * @license
3384
3384
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3385
3385
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3467,31 +3467,31 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3467
3467
  <slot name="today-button"></slot>
3468
3468
  <slot name="cancel-button"></slot>
3469
3469
  </div>
3470
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}R(Pc);/**
3470
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}H(Pc);/**
3471
3471
  * @license
3472
3472
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3473
3473
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3474
- */const Ui=T(o=>class extends Ps(Ei(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,s){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):s&&this._removeFocusListeners(s)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,s){super._disabledChanged(e,s),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3474
+ */const Wi=T(o=>class extends Ps(Ei(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,s){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):s&&this._removeFocusListeners(s)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,s){super._disabledChanged(e,s),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3475
3475
  * @license
3476
3476
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3477
3477
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3478
- */const qt=new WeakMap;function kc(o){return qt.has(o)||qt.set(o,new Set),qt.get(o)}function Tc(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Dc=T(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),s=kc(e);this.slotStyles.forEach(i=>{s.has(i)||(Tc(i,e),s.add(i))})}});/**
3478
+ */const Rt=new WeakMap;function kc(o){return Rt.has(o)||Rt.set(o,new Set),Rt.get(o)}function Tc(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Dc=T(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),s=kc(e);this.slotStyles.forEach(i=>{s.has(i)||(Tc(i,e),s.add(i))})}});/**
3479
3479
  * @license
3480
3480
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3481
3481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3482
- */const Wi=T(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,s){e?this._addInputListeners(e):s&&this._removeInputListeners(s)}_hasInputValueChanged(e,s){(e||s)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const s=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=s.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,s){this._toggleHasValue(this._hasValue),!(e===""&&s===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const s=e.composedPath()[0];this._hasInputValue=s.value.length>0}});/**
3482
+ */const ji=T(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,s){e?this._addInputListeners(e):s&&this._removeInputListeners(s)}_hasInputValueChanged(e,s){(e||s)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const s=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=s.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,s){this._toggleHasValue(this._hasValue),!(e===""&&s===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const s=e.composedPath()[0];this._hasInputValue=s.value.length>0}});/**
3483
3483
  * @license
3484
3484
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3485
3485
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3486
- */const Sc=o=>class extends Wi(_t(o)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Ll||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3486
+ */const Sc=o=>class extends ji(_t(o)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Ll||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3487
3487
  * @license
3488
3488
  * Copyright (c) 2023 Vaadin Ltd.
3489
3489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3490
- */const Rt=new Map;function Ds(o){return Rt.has(o)||Rt.set(o,new WeakMap),Rt.get(o)}function ji(o,t){o&&o.removeAttribute(t)}function Ki(o,t){if(!o||!t)return;const e=Ds(t);if(e.has(o))return;const s=ys(o.getAttribute(t));e.set(o,new Set(s))}function Oc(o,t){if(!o||!t)return;const e=Ds(t),s=e.get(o);!s||s.size===0?o.removeAttribute(t):_i(o,t,ft(s)),e.delete(o)}function Ht(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:s,oldId:i,fromUser:r}=e,n=Ds(t),a=n.get(o);if(!r&&a){i&&a.delete(i),s&&a.add(s);return}r&&(a?s||n.delete(o):Ki(o,t),ji(o,t)),ja(o,t,i);const l=s||ft(a);l&&_i(o,t,l)}function Mc(o,t){Ki(o,t),ji(o,t)}/**
3490
+ */const Ht=new Map;function Ds(o){return Ht.has(o)||Ht.set(o,new WeakMap),Ht.get(o)}function qi(o,t){o&&o.removeAttribute(t)}function Ki(o,t){if(!o||!t)return;const e=Ds(t);if(e.has(o))return;const s=bs(o.getAttribute(t));e.set(o,new Set(s))}function Oc(o,t){if(!o||!t)return;const e=Ds(t),s=e.get(o);!s||s.size===0?o.removeAttribute(t):_i(o,t,ft(s)),e.delete(o)}function $t(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:s,oldId:i,fromUser:r}=e,n=Ds(t),a=n.get(o);if(!r&&a){i&&a.delete(i),s&&a.add(s);return}r&&(a?s||n.delete(o):Ki(o,t),qi(o,t)),qa(o,t,i);const l=s||ft(a);l&&_i(o,t,l)}function Mc(o,t){Ki(o,t),qi(o,t)}/**
3491
3491
  * @license
3492
3492
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3493
3493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3494
- */class Ic{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const s=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,s,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Mc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Oc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,s){Ht(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:s})}__setErrorIdToAriaAttribute(t,e){Ht(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Ht(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3494
+ */class Ic{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const s=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,s,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Mc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Oc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,s){$t(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:s})}__setErrorIdToAriaAttribute(t,e){$t(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){$t(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3495
3495
  * @license
3496
3496
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
3497
3497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3507,11 +3507,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3507
3507
  * @license
3508
3508
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3509
3509
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3510
- */class Fc extends Ss{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3510
+ */class Bc extends Ss{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3511
3511
  * @license
3512
3512
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3513
3513
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3514
- */const Bc=T(o=>class extends Ce(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Fc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3514
+ */const Fc=T(o=>class extends Ce(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Bc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3515
3515
  * @license
3516
3516
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3517
3517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3519,36 +3519,36 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3519
3519
  * @license
3520
3520
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3521
3521
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3522
- */const Lc=o=>class extends Gi(Bc(Ce(o))){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 Ic(this),this._helperController=new zc(this),this._errorController=new Nc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:s,node:i}=e.detail;this.__labelChanged(s,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:s,node:i}=e.detail;this.toggleAttribute("has-helper",s),this.__helperChanged(s,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(e,s){e?this._fieldAriaController.setHelperId(s.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,s){e?this._fieldAriaController.setLabelId(s.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const s=this._errorNode;this._fieldAriaController.setErrorId(s&&s.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3522
+ */const Lc=o=>class extends Gi(Fc(Ce(o))){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 Ic(this),this._helperController=new zc(this),this._errorController=new Nc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:s,node:i}=e.detail;this.__labelChanged(s,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:s,node:i}=e.detail;this.toggleAttribute("has-helper",s),this.__helperChanged(s,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(e,s){e?this._fieldAriaController.setHelperId(s.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,s){e?this._fieldAriaController.setLabelId(s.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const s=this._errorNode;this._fieldAriaController.setErrorId(s&&s.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3523
3523
  * @license
3524
3524
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3525
3525
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3526
- */const qc=T(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((s,i)=>{this._delegateAttribute(s,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((s,i)=>{this._delegateProperty(s,e[i])})}_delegateAttribute(e,s){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",s?"true":!1),typeof s=="boolean"?this.stateTarget.toggleAttribute(e,s):s?this.stateTarget.setAttribute(e,s):this.stateTarget.removeAttribute(e))}_delegateProperty(e,s){this.stateTarget&&(this.stateTarget[e]=s)}});/**
3526
+ */const Rc=T(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((s,i)=>{this._delegateAttribute(s,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((s,i)=>{this._delegateProperty(s,e[i])})}_delegateAttribute(e,s){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",s?"true":!1),typeof s=="boolean"?this.stateTarget.toggleAttribute(e,s):s?this.stateTarget.setAttribute(e,s):this.stateTarget.removeAttribute(e))}_delegateProperty(e,s){this.stateTarget&&(this.stateTarget[e]=s)}});/**
3527
3527
  * @license
3528
3528
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */const Xi=T(o=>class extends qc(Gi(Wi(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(s=>this.__isValidConstraint(s))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...s){if(!e)return;const i=this._hasValidConstraints(s),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3530
+ */const Xi=T(o=>class extends Rc(Gi(ji(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(s=>this.__isValidConstraint(s))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...s){if(!e)return;const i=this._hasValidConstraints(s),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3531
3531
  * @license
3532
3532
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3533
3533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3534
- */const Rc=o=>class extends Dc(Ui(Xi(Lc(Sc(_t(o)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3534
+ */const Hc=o=>class extends Dc(Wi(Xi(Lc(Sc(_t(o)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3535
3535
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3536
3536
  font: inherit;
3537
3537
  color: inherit;
3538
3538
  }
3539
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=$e.debounce(this._preventInputDebouncer,lt.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const s=e.clipboardData.getData("text");this.__allowedTextRegExp.test(s)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const s=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(s)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(s){console.error(s)}}};/**
3539
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ve.debounce(this._preventInputDebouncer,lt.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const s=e.clipboardData.getData("text");this.__allowedTextRegExp.test(s)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const s=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(s)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(s){console.error(s)}}};/**
3540
3540
  * @license
3541
3541
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3542
3542
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3543
- */class Hc extends re{constructor(t,e){super(t,"input","input",{initializer:(s,i)=>{i.value&&(s.value=i.value),i.type&&s.setAttribute("type",i.type),s.id=this.defaultId,typeof e=="function"&&e(s)},useUniqueId:!0})}}/**
3543
+ */class $c extends re{constructor(t,e){super(t,"input","input",{initializer:(s,i)=>{i.value&&(s.value=i.value),i.type&&s.setAttribute("type",i.type),s.id=this.defaultId,typeof e=="function"&&e(s)},useUniqueId:!0})}}/**
3544
3544
  * @license
3545
3545
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3546
3546
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3547
- */class $c{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",s=>{this.__initLabel(s.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
3547
+ */class Vc{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",s=>{this.__initLabel(s.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
3548
3548
  * @license
3549
3549
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
3550
3550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3551
- */const Vc=g`
3551
+ */const Yc=g`
3552
3552
  [part='clear-button'] {
3553
3553
  display: none;
3554
3554
  cursor: default;
@@ -3565,7 +3565,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3565
3565
  * @license
3566
3566
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
3567
3567
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3568
- */const Yc=g`
3568
+ */const Uc=g`
3569
3569
  :host {
3570
3570
  display: inline-flex;
3571
3571
  outline: none;
@@ -3603,7 +3603,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3603
3603
  * @license
3604
3604
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
3605
3605
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3606
- */const Uc=g`
3606
+ */const Wc=g`
3607
3607
  [class$='container'] {
3608
3608
  display: flex;
3609
3609
  flex-direction: column;
@@ -3615,11 +3615,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3615
3615
  * @license
3616
3616
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
3617
3617
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3618
- */const Wc=[Yc,Uc,Vc];/**
3618
+ */const jc=[Uc,Wc,Yc];/**
3619
3619
  * @license
3620
3620
  * Copyright (c) 2023 Vaadin Ltd.
3621
3621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3622
- */const jc=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,s){if(!s||e===void 0)return;const{classList:i}=s;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&i.remove(...n)}const r=typeof e=="string"?e.split(" "):[];r.length>0&&i.add(...r),this.__previousClasses=r}};/**
3622
+ */const qc=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,s){if(!s||e===void 0)return;const{classList:i}=s;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&i.remove(...n)}const r=typeof e=="string"?e.split(" "):[];r.length>0&&i.add(...r),this.__previousClasses=r}};/**
3623
3623
  * @license
3624
3624
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3625
3625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3627,7 +3627,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3627
3627
  * @license
3628
3628
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3629
3629
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3630
- */const Gc=o=>class extends jc(Ce(Ui(Xi(_t(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const s=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,s].join("/")},parseDate(e){const s=e.split("/"),i=new Date;let r,n=i.getMonth(),a=i.getFullYear();if(s.length===3){if(n=parseInt(s[0])-1,r=parseInt(s[1]),a=parseInt(s[2]),s[2].length<3&&a>=0){const l=this.referenceDate?Se(this.referenceDate):new Date;a=Zl(l,a,n,r)}}else s.length===2?(n=parseInt(s[0])-1,r=parseInt(s[1])):s.length===1&&(r=parseInt(s[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,s)=>`${e} ${s}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Ii},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Yi(this._fullscreenMediaQuery,s=>{this._fullscreen=s})),this.addController(new Kc(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const s=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(s),this._overlayContent=s,s.addEventListener("close",()=>{this._close()}),s.addEventListener("focus-input",this._focusAndSelect.bind(this)),s.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),s.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),s.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),s.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let s=this.i18n.parseDate(e);if(s&&(s=Se(`${s.year}-${s.month+1}-${s.day}`)),s&&!isNaN(s.getTime()))return s}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Fi(e))}checkValidity(){const e=this._inputElementValue,s=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Ve(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),s&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const s=this.value;this._selectedDate=e,s!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,s,i,r,n,a){return!e||s&&(!a||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const s=(u,h="00")=>(h+u).substr((h+u).length-h.length);let i="",r="0000",n=e.getFullYear();n<0?(n=-n,i="-",r="000000"):e.getFullYear()>=1e4&&(i="+",r="000000");const a=i+s(n,r),l=s(e.getMonth()+1),c=s(e.getDate());return[a,l,c].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,s){e===void 0||s===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,s){e===void 0||s===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,s){const i=Se(e);if(e&&!i){this.value=s;return}e?X(this._selectedDate,i)||(this._selectedDate=i,s!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,s,i,r,n,a,l,c){e&&(e.i18n=s,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=c)}__updateOverlayContentTheme(e,s){e&&(s?e.setAttribute("theme",s):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,s){e&&e.toggleAttribute("fullscreen",s)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const s=this._getInitialPosition();e.initialPosition=s;const i=e.focusedDate||s;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Ni(n)}_getInitialPosition(){const e=Se(this.initialPosition),s=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ve(s,this._minDate,this._maxDate)?s:zi(s,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",s=this.__parseDate(e);s?this._selectDate(s):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,s){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,s)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const s=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),s===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,X(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Se(e)}};/**
3630
+ */const Gc=o=>class extends qc(Ce(Wi(Xi(_t(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const s=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,s].join("/")},parseDate(e){const s=e.split("/"),i=new Date;let r,n=i.getMonth(),a=i.getFullYear();if(s.length===3){if(n=parseInt(s[0])-1,r=parseInt(s[1]),a=parseInt(s[2]),s[2].length<3&&a>=0){const l=this.referenceDate?Se(this.referenceDate):new Date;a=Zl(l,a,n,r)}}else s.length===2?(n=parseInt(s[0])-1,r=parseInt(s[1])):s.length===1&&(r=parseInt(s[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,s)=>`${e} ${s}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Ii},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ui(this._fullscreenMediaQuery,s=>{this._fullscreen=s})),this.addController(new Kc(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const s=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(s),this._overlayContent=s,s.addEventListener("close",()=>{this._close()}),s.addEventListener("focus-input",this._focusAndSelect.bind(this)),s.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),s.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),s.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),s.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let s=this.i18n.parseDate(e);if(s&&(s=Se(`${s.year}-${s.month+1}-${s.day}`)),s&&!isNaN(s.getTime()))return s}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Bi(e))}checkValidity(){const e=this._inputElementValue,s=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Ye(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),s&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const s=this.value;this._selectedDate=e,s!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,s,i,r,n,a){return!e||s&&(!a||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const s=(u,h="00")=>(h+u).substr((h+u).length-h.length);let i="",r="0000",n=e.getFullYear();n<0?(n=-n,i="-",r="000000"):e.getFullYear()>=1e4&&(i="+",r="000000");const a=i+s(n,r),l=s(e.getMonth()+1),c=s(e.getDate());return[a,l,c].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,s){e===void 0||s===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,s){e===void 0||s===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,s){const i=Se(e);if(e&&!i){this.value=s;return}e?X(this._selectedDate,i)||(this._selectedDate=i,s!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,s,i,r,n,a,l,c){e&&(e.i18n=s,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=c)}__updateOverlayContentTheme(e,s){e&&(s?e.setAttribute("theme",s):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,s){e&&e.toggleAttribute("fullscreen",s)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const s=this._getInitialPosition();e.initialPosition=s;const i=e.focusedDate||s;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Ni(n)}_getInitialPosition(){const e=Se(this.initialPosition),s=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ye(s,this._minDate,this._maxDate)?s:zi(s,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",s=this.__parseDate(e);s?this._selectDate(s):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,s){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,s)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const s=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),s===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,X(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Se(e)}};/**
3631
3631
  * @license
3632
3632
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3633
3633
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3648,7 +3648,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3648
3648
  * @license
3649
3649
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3650
3650
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3651
- */k("vaadin-date-picker",[Wc,Xc],{moduleId:"vaadin-date-picker-styles"});class Jc extends Gc(Rc(ce(fi(ee)))){static get is(){return"vaadin-date-picker"}static get template(){return ue`
3651
+ */k("vaadin-date-picker",[jc,Xc],{moduleId:"vaadin-date-picker-styles"});class Jc extends Gc(Hc(ce(fi(ee)))){static get is(){return"vaadin-date-picker"}static get template(){return ue`
3652
3652
  <div class="vaadin-date-picker-container">
3653
3653
  <div part="label">
3654
3654
  <slot name="label"></slot>
@@ -3690,4 +3690,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3690
3690
  ></vaadin-date-picker-overlay>
3691
3691
 
3692
3692
  <slot name="tooltip"></slot>
3693
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Hc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new $c(this.inputElement,this._labelController)),this._tooltipController=new bi(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}R(Jc);function Ao(o,t){d.addMessages(o,t)}function Qc(o){d.$locale.set(o)}const Eo={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."}};function Zc(o){d.append_styles(o,"svelte-14bqq8d",".BonusesWrapper.svelte-14bqq8d.svelte-14bqq8d{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile.svelte-14bqq8d.svelte-14bqq8d{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-14bqq8d.svelte-14bqq8d{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-14bqq8d svg.svelte-14bqq8d{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle.svelte-14bqq8d.svelte-14bqq8d{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile.svelte-14bqq8d.svelte-14bqq8d{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone.svelte-14bqq8d.svelte-14bqq8d{display:none}.BonusCalendarWrapper.svelte-14bqq8d.svelte-14bqq8d{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile.svelte-14bqq8d.svelte-14bqq8d{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer.svelte-14bqq8d.svelte-14bqq8d{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile.svelte-14bqq8d.svelte-14bqq8d{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate.svelte-14bqq8d.svelte-14bqq8d,.BonusesCalendarEndDate.svelte-14bqq8d.svelte-14bqq8d{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile.svelte-14bqq8d.svelte-14bqq8d,.BonusesCalendarEndDate.BonusesCalendarMobile.svelte-14bqq8d.svelte-14bqq8d{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile.svelte-14bqq8d .VaadinDatePicker.svelte-14bqq8d,.BonusesCalendarEndDate.BonusesCalendarMobile.svelte-14bqq8d .VaadinDatePicker.svelte-14bqq8d{width:100%;border-radius:var(--emw--border-radius-large, 20px)}.BonusesCalendarStartDate.svelte-14bqq8d label.svelte-14bqq8d,.BonusesCalendarEndDate.svelte-14bqq8d label.svelte-14bqq8d{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarFilter.svelte-14bqq8d.svelte-14bqq8d{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile.svelte-14bqq8d.svelte-14bqq8d{width:100%;height:44px}.BonusesCalendarFilter.svelte-14bqq8d.svelte-14bqq8d:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesGrid.svelte-14bqq8d.svelte-14bqq8d{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 20px)}.BonusesGrid.BonusesGridMobile.svelte-14bqq8d.svelte-14bqq8d{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper.svelte-14bqq8d.svelte-14bqq8d{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile.svelte-14bqq8d.svelte-14bqq8d{text-align:center}.BonusesPaginationWrapper.svelte-14bqq8d .BonusesFirst.svelte-14bqq8d,.BonusesPaginationWrapper.svelte-14bqq8d .BonusesPrev.svelte-14bqq8d,.BonusesPaginationWrapper.svelte-14bqq8d .BonusesNext.svelte-14bqq8d,.BonusesPaginationWrapper.svelte-14bqq8d .BonusesLast.svelte-14bqq8d{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper.svelte-14bqq8d .BonusesFirst.Inactive.svelte-14bqq8d,.BonusesPaginationWrapper.svelte-14bqq8d .BonusesPrev.Inactive.svelte-14bqq8d,.BonusesPaginationWrapper.svelte-14bqq8d .BonusesNext.Inactive.svelte-14bqq8d,.BonusesPaginationWrapper.svelte-14bqq8d .BonusesLast.Inactive.svelte-14bqq8d{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper.svelte-14bqq8d .BonusesPage.svelte-14bqq8d{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper.svelte-14bqq8d .BonusesPage.BonusPageActive.svelte-14bqq8d{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}")}function Po(o,t,e){const s=o.slice();return s[44]=t[e],s[46]=e,s}function ko(o,t,e){const s=o.slice();return s[47]=t[e],s}function ed(o){let t,e,s,i=o[17]("titleBonusesHistory")+"",r,n,a,l,c,u,h=o[17]("dateFrom")+"",p,m,f,b,y,v,C=o[17]("dateTo")+"",O,I,x,A,D,E=o[17]("dateFilter")+"",$,Ae,J,je,he,H,V=o[18]&&td(o);function Ee(P,z){return P[16].length===0?od:sd}let pe=Ee(o),L=pe(o),N=o[16].length!==0&&Do(o);return{c(){t=d.element("div"),V&&V.c(),e=d.space(),s=d.element("h2"),r=d.text(i),n=d.space(),a=d.element("div"),l=d.element("div"),c=d.element("div"),u=d.element("label"),p=d.text(h),m=d.space(),f=d.element("vaadin-date-picker"),b=d.space(),y=d.element("div"),v=d.element("label"),O=d.text(C),I=d.space(),x=d.element("vaadin-date-picker"),A=d.space(),D=d.element("button"),$=d.text(E),Ae=d.space(),J=d.element("div"),L.c(),je=d.space(),N&&N.c(),d.attr(s,"class","BonusesTitle "+(o[18]?"BonusesTitleNone":"")+" svelte-14bqq8d"),d.attr(s,"part","BonusesTitle "+(o[18]?"BonusesTitleNone":"")),d.attr(u,"for","BonusCalendarStartDate"),d.attr(u,"class","svelte-14bqq8d"),d.set_custom_element_data(f,"max",o[9]),d.set_custom_element_data(f,"value",o[10]),d.set_custom_element_data(f,"placeholder","From"),d.set_custom_element_data(f,"class","VaadinDatePicker svelte-14bqq8d"),d.attr(c,"class","BonusesCalendarStartDate "+(o[18]?"BonusesCalendarMobile":"")+" svelte-14bqq8d"),d.attr(v,"for","BonusesCalendarEndDate"),d.attr(v,"class","svelte-14bqq8d"),d.set_custom_element_data(x,"max",o[9]),d.set_custom_element_data(x,"value",o[9]),d.set_custom_element_data(x,"placeholder","To"),d.set_custom_element_data(x,"class","VaadinDatePicker svelte-14bqq8d"),d.attr(y,"class","BonusesCalendarEndDate "+(o[18]?"BonusesCalendarMobile":"")+" svelte-14bqq8d"),d.attr(l,"class","BonusesCalendarContainer "+(o[18]?"BonusesCalendarContainerMobile":"")+" svelte-14bqq8d"),d.attr(D,"class","BonusesCalendarFilter "+(o[18]?"BonusesCalendarFilterMobile":"")+" svelte-14bqq8d"),d.attr(a,"class","BonusCalendarWrapper "+(o[18]?"BonusCalendarWrapperMobile":"")+" svelte-14bqq8d"),d.attr(J,"class","BonusesGrid "+(o[18]?"BonusesGridMobile":"")+" svelte-14bqq8d"),d.attr(t,"class","BonusesWrapper "+(o[18]?"BonusesWrapperMobile":"")+" svelte-14bqq8d")},m(P,z){d.insert(P,t,z),V&&V.m(t,null),d.append(t,e),d.append(t,s),d.append(s,r),d.append(t,n),d.append(t,a),d.append(a,l),d.append(l,c),d.append(c,u),d.append(u,p),d.append(c,m),d.append(c,f),o[25](f),d.append(l,b),d.append(l,y),d.append(y,v),d.append(v,O),d.append(y,I),d.append(y,x),o[26](x),d.append(a,A),d.append(a,D),d.append(D,$),d.append(t,Ae),d.append(t,J),L.m(J,null),d.append(t,je),N&&N.m(t,null),he||(H=d.listen(D,"click",o[27]),he=!0)},p(P,z){P[18]&&V.p(P,z),z[0]&131072&&i!==(i=P[17]("titleBonusesHistory")+"")&&d.set_data(r,i),z[0]&131072&&h!==(h=P[17]("dateFrom")+"")&&d.set_data(p,h),z[0]&512&&d.set_custom_element_data(f,"max",P[9]),z[0]&1024&&d.set_custom_element_data(f,"value",P[10]),z[0]&131072&&C!==(C=P[17]("dateTo")+"")&&d.set_data(O,C),z[0]&512&&d.set_custom_element_data(x,"max",P[9]),z[0]&512&&d.set_custom_element_data(x,"value",P[9]),z[0]&131072&&E!==(E=P[17]("dateFilter")+"")&&d.set_data($,E),pe===(pe=Ee(P))&&L?L.p(P,z):(L.d(1),L=pe(P),L&&(L.c(),L.m(J,null))),P[16].length!==0?N?N.p(P,z):(N=Do(P),N.c(),N.m(t,null)):N&&(N.d(1),N=null)},d(P){P&&d.detach(t),V&&V.d(),o[25](null),o[26](null),L.d(),N&&N.d(),he=!1,H()}}}function td(o){let t,e,s,i,r,n,a,l,c,u,h=o[17]("titleBonusesHistory")+"",p,m,f;return{c(){t=d.element("div"),e=d.svg_element("svg"),s=d.svg_element("defs"),i=d.svg_element("style"),r=d.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),n=d.svg_element("g"),a=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),u=d.element("h2"),p=d.text(h),d.attr(l,"class","aaa"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(a,"transform","translate(20 158)"),d.attr(n,"transform","translate(-20 -158)"),d.attr(e,"xmlns","http://www.w3.org/2000/svg"),d.attr(e,"width","15"),d.attr(e,"height","15"),d.attr(e,"viewBox","0 0 15 15"),d.attr(e,"class","svelte-14bqq8d"),d.attr(u,"class","BonusesTitleMobile svelte-14bqq8d"),d.attr(t,"class","MenuReturnButton svelte-14bqq8d")},m(b,y){d.insert(b,t,y),d.append(t,e),d.append(e,s),d.append(s,i),d.append(i,r),d.append(e,n),d.append(n,a),d.append(a,l),d.append(t,c),d.append(t,u),d.append(u,p),m||(f=d.listen(t,"click",o[24]),m=!0)},p(b,y){y[0]&131072&&h!==(h=b[17]("titleBonusesHistory")+"")&&d.set_data(p,h)},d(b){b&&d.detach(t),m=!1,f()}}}function sd(o){let t,e=d.ensure_array_like(o[16]),s=[];for(let i=0;i<e.length;i+=1)s[i]=To(ko(o,e,i));return{c(){for(let i=0;i<s.length;i+=1)s[i].c();t=d.empty()},m(i,r){for(let n=0;n<s.length;n+=1)s[n]&&s[n].m(i,r);d.insert(i,t,r)},p(i,r){if(r[0]&65551){e=d.ensure_array_like(i[16]);let n;for(n=0;n<e.length;n+=1){const a=ko(i,e,n);s[n]?s[n].p(a,r):(s[n]=To(a),s[n].c(),s[n].m(t.parentNode,t))}for(;n<s.length;n+=1)s[n].d(1);s.length=e.length}},d(i){i&&d.detach(t),d.destroy_each(s,i)}}}function od(o){let t,e=o[17]("noBonusHistory")+"",s;return{c(){t=d.element("p"),s=d.text(e)},m(i,r){d.insert(i,t,r),d.append(t,s)},p(i,r){r[0]&131072&&e!==(e=i[17]("noBonusHistory")+"")&&d.set_data(s,e)},d(i){i&&d.detach(t)}}}function id(o){let t,e,s,i,r,n,a,l,c,u;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonusamount",a=o[47].extension.grantedPlayerCurrencyAmount),d.set_custom_element_data(t,"bonuswageringamount",l=`${o[47].fulfilledWR} / ${o[47].originalWageringRequirement}`),d.set_custom_element_data(t,"bonusremainingamount",c=o[47].currentAmount),d.set_custom_element_data(t,"bonuscurrency",u=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(h,p){d.insert(h,t,p)},p(h,p){p[0]&65536&&e!==(e=h[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),p[0]&65536&&s!==(s=h[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),p[0]&65536&&i!==(i=h[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),p[0]&65536&&r!==(r=h[47].name)&&d.set_custom_element_data(t,"bonusname",r),p[0]&65536&&n!==(n=h[47].type)&&d.set_custom_element_data(t,"bonustype",n),p[0]&65536&&a!==(a=h[47].extension.grantedPlayerCurrencyAmount)&&d.set_custom_element_data(t,"bonusamount",a),p[0]&65536&&l!==(l=`${h[47].fulfilledWR} / ${h[47].originalWageringRequirement}`)&&d.set_custom_element_data(t,"bonuswageringamount",l),p[0]&65536&&c!==(c=h[47].currentAmount)&&d.set_custom_element_data(t,"bonusremainingamount",c),p[0]&65536&&u!==(u=h[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",u),p[0]&1&&d.set_custom_element_data(t,"lang",h[0]),p[0]&2&&d.set_custom_element_data(t,"clientstyling",h[1]),p[0]&4&&d.set_custom_element_data(t,"clientstylingurl",h[2]),p[0]&8&&d.set_custom_element_data(t,"translationurl",h[3])},d(h){h&&d.detach(t)}}}function rd(o){let t,e,s,i,r,n,a;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonuscurrency",a=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(l,c){d.insert(l,t,c)},p(l,c){c[0]&65536&&e!==(e=l[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),c[0]&65536&&s!==(s=l[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),c[0]&65536&&i!==(i=l[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),c[0]&65536&&r!==(r=l[47].name)&&d.set_custom_element_data(t,"bonusname",r),c[0]&65536&&n!==(n=l[47].type)&&d.set_custom_element_data(t,"bonustype",n),c[0]&65536&&a!==(a=l[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",a),c[0]&1&&d.set_custom_element_data(t,"lang",l[0]),c[0]&2&&d.set_custom_element_data(t,"clientstyling",l[1]),c[0]&4&&d.set_custom_element_data(t,"clientstylingurl",l[2]),c[0]&8&&d.set_custom_element_data(t,"translationurl",l[3])},d(l){l&&d.detach(t)}}}function To(o){let t;function e(r,n){return r[47].type==="freeRound"?rd:id}let s=e(o),i=s(o);return{c(){i.c(),t=d.empty()},m(r,n){i.m(r,n),d.insert(r,t,n)},p(r,n){s===(s=e(r))&&i?i.p(r,n):(i.d(1),i=s(r),i&&(i.c(),i.m(t.parentNode,t)))},d(r){r&&d.detach(t),i.d(r)}}}function Do(o){let t,e,s,i,r,n,a,l,c,u,h,p,m,f,b,y,v,C,O,I=d.ensure_array_like(Array(o[14])),x=[];for(let A=0;A<I.length;A+=1)x[A]=So(Po(o,I,A));return{c(){t=d.element("div"),e=d.element("span"),s=d.text("|<"),r=d.space(),n=d.element("span"),a=d.text("<"),c=d.space();for(let A=0;A<x.length;A+=1)x[A].c();u=d.space(),h=d.element("span"),p=d.text(">"),f=d.space(),b=d.element("span"),y=d.text(">|"),d.attr(e,"class",i="BonusesFirst "+(o[15]===0?"Inactive":"")+" svelte-14bqq8d"),d.attr(n,"class",l="BonusesPrev "+(o[15]===0?"Inactive":"")+" svelte-14bqq8d"),d.attr(h,"class",m="BonusesNext "+(o[15]===o[14]-1?"Inactive":"")+" svelte-14bqq8d"),d.attr(b,"class",v="BonusesLast "+(o[15]===o[14]-1?"Inactive":"")+" svelte-14bqq8d"),d.attr(t,"class","BonusesPaginationWrapper "+(o[18]?"BonusesPaginationWrapperMobile":"")+" svelte-14bqq8d")},m(A,D){d.insert(A,t,D),d.append(t,e),d.append(e,s),d.append(t,r),d.append(t,n),d.append(n,a),d.append(t,c);for(let E=0;E<x.length;E+=1)x[E]&&x[E].m(t,null);d.append(t,u),d.append(t,h),d.append(h,p),d.append(t,f),d.append(t,b),d.append(b,y),C||(O=[d.listen(e,"click",o[28]),d.listen(n,"click",o[29]),d.listen(h,"click",o[31]),d.listen(b,"click",o[32])],C=!0)},p(A,D){if(D[0]&32768&&i!==(i="BonusesFirst "+(A[15]===0?"Inactive":"")+" svelte-14bqq8d")&&d.attr(e,"class",i),D[0]&32768&&l!==(l="BonusesPrev "+(A[15]===0?"Inactive":"")+" svelte-14bqq8d")&&d.attr(n,"class",l),D[0]&1097776){I=d.ensure_array_like(Array(A[14]));let E;for(E=0;E<I.length;E+=1){const $=Po(A,I,E);x[E]?x[E].p($,D):(x[E]=So($),x[E].c(),x[E].m(t,u))}for(;E<x.length;E+=1)x[E].d(1);x.length=I.length}D[0]&49152&&m!==(m="BonusesNext "+(A[15]===A[14]-1?"Inactive":"")+" svelte-14bqq8d")&&d.attr(h,"class",m),D[0]&49152&&v!==(v="BonusesLast "+(A[15]===A[14]-1?"Inactive":"")+" svelte-14bqq8d")&&d.attr(b,"class",v)},d(A){A&&d.detach(t),d.destroy_each(x,A),C=!1,d.run_all(O)}}}function So(o){let t,e=o[46]+1+"",s,i,r,n;function a(){return o[30](o[46])}return{c(){t=d.element("span"),s=d.text(e),d.attr(t,"class",i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":"")+" svelte-14bqq8d")},m(l,c){d.insert(l,t,c),d.append(t,s),r||(n=d.listen(t,"click",a),r=!0)},p(l,c){o=l,c[0]&32768&&i!==(i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":"")+" svelte-14bqq8d")&&d.attr(t,"class",i)},d(l){l&&d.detach(t),r=!1,n()}}}function nd(o){let t;function e(r,n){return ed}let i=e()(o);return{c(){t=d.element("div"),i.c()},m(r,n){d.insert(r,t,n),i.m(t,null),o[33](t)},p(r,n){i.p(r,n)},i:d.noop,o:d.noop,d(r){r&&d.detach(t),i.d(),o[33](null)}}}let j=6;function ad(o,t,e){let s;d.component_subscribe(o,d.$format,_=>e(17,s=_));let{endpoint:i=""}=t,{session:r=""}=t,{playerid:n=""}=t,{lang:a="en"}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:u=""}=t,{bonushistorystatus:h=""}=t,{bonushistorytype:p=""}=t,m,f=window.navigator.userAgent,b=d.getDevice(f)!=="PC",y,v,C,O;C=d.hooks(new Date).format("YYYY-MM-DD"),O=d.hooks(new Date).subtract(3,"months").format("YYYY-MM-DD");let I=O,x=C,A=0,D=0,E=0,$=0,Ae=0,J=[];const je=()=>{fetch(u).then(q=>q.json()).then(q=>{Object.keys(q).forEach(U=>{Ao(U,q[U])})}).catch(q=>{console.log(q)})};Object.keys(Eo).forEach(_=>{Ao(_,Eo[_])});const he=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},H=(_,q,U)=>{let bt=new URL(`${i}/v1/player/${n}/bonusWallet`),ar=d.hooks(I).startOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),lr=d.hooks(x).endOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),se="",Os="",Ms="";q&&(Os=q.split(",").map(yt=>`status=${yt}`).join(","),se=se+Os+","),U&&(Ms=U.split(",").map(yt=>`type=${yt}`).join(","),se=se+Ms+","),se=se+`granted=[${ar}~${lr}]`,bt.searchParams.append("filter",se),bt.searchParams.append("pagination",`offset=${_},limit=${j}`);let cr={method:"GET",headers:{"X-SessionId":r}};fetch(bt.href,cr).then(W=>W.json()).then(W=>{e(14,$=Math.ceil(W.total/j)),_-j>=0&&e(11,A=_-j),_+j<W.total&&e(12,D=_+j),e(13,E=($-1)*j),e(15,Ae=_/j),e(16,J=W.items)},W=>{console.error(W)}),window.postMessage({type:"ScrollToTop"},window.location.href)},V=_=>{I=_.target.value},Ee=_=>{x=_.target.value},pe=()=>{y.addEventListener("change",V,!1),v.addEventListener("change",Ee,!1)};d.onMount(()=>()=>{y.removeEventListener("change",V),v.removeEventListener("change",Ee)});const L=()=>{Qc(a)},N=()=>{let _=document.createElement("style");_.innerHTML=l,m.appendChild(_)},P=()=>{let _=new URL(c),q=document.createElement("style");fetch(_.href).then(U=>U.text()).then(U=>{q.innerHTML=U,setTimeout(()=>{m.appendChild(q)},1)})},z=()=>he();function Qi(_){d.binding_callbacks[_?"unshift":"push"](()=>{y=_,e(7,y)})}function Zi(_){d.binding_callbacks[_?"unshift":"push"](()=>{v=_,e(8,v)})}const er=()=>H(0,h,p),tr=()=>H(0,h,p),sr=()=>H(A,h,p),or=_=>H(_*j,h,p),ir=()=>H(D,h,p),rr=()=>H(E,h,p);function nr(_){d.binding_callbacks[_?"unshift":"push"](()=>{m=_,e(6,m)})}return o.$$set=_=>{"endpoint"in _&&e(21,i=_.endpoint),"session"in _&&e(22,r=_.session),"playerid"in _&&e(23,n=_.playerid),"lang"in _&&e(0,a=_.lang),"clientstyling"in _&&e(1,l=_.clientstyling),"clientstylingurl"in _&&e(2,c=_.clientstylingurl),"translationurl"in _&&e(3,u=_.translationurl),"bonushistorystatus"in _&&e(4,h=_.bonushistorystatus),"bonushistorytype"in _&&e(5,p=_.bonushistorytype)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&L(),o.$$.dirty[0]&384&&y&&v&&pe(),o.$$.dirty[0]&14680112&&r&&n&&i&&H(0,h,p),o.$$.dirty[0]&68&&c&&m&&P(),o.$$.dirty[0]&66&&l&&m&&N(),o.$$.dirty[0]&8&&u&&je()},[a,l,c,u,h,p,m,y,v,C,O,A,D,E,$,Ae,J,s,b,he,H,i,r,n,z,Qi,Zi,er,tr,sr,or,ir,rr,nr]}class Ji extends d.SvelteComponent{constructor(t){super(),d.init(this,t,ad,nd,d.safe_not_equal,{endpoint:21,session:22,playerid:23,lang:0,clientstyling:1,clientstylingurl:2,translationurl:3,bonushistorystatus:4,bonushistorytype:5},Zc,[-1,-1])}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),d.flush()}get session(){return this.$$.ctx[22]}set session(t){this.$$set({session:t}),d.flush()}get playerid(){return this.$$.ctx[23]}set playerid(t){this.$$set({playerid:t}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),d.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),d.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),d.flush()}get translationurl(){return this.$$.ctx[3]}set translationurl(t){this.$$set({translationurl:t}),d.flush()}get bonushistorystatus(){return this.$$.ctx[4]}set bonushistorystatus(t){this.$$set({bonushistorystatus:t}),d.flush()}get bonushistorytype(){return this.$$.ctx[5]}set bonushistorytype(t){this.$$set({bonushistorytype:t}),d.flush()}}d.create_custom_element(Ji,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{}},[],[],!0);exports.default=Ji;
3693
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $c(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vc(this.inputElement,this._labelController)),this._tooltipController=new yi(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}H(Jc);function Ao(o,t){d.addMessages(o,t)}function Qc(o){d.$locale.set(o)}const Eo={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."}};function Zc(o){d.append_styles(o,"svelte-1lo6b1t",".BonusesWrapper{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 20px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 20px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}")}function Po(o,t,e){const s=o.slice();return s[44]=t[e],s[46]=e,s}function ko(o,t,e){const s=o.slice();return s[47]=t[e],s}function ed(o){let t,e,s,i=o[17]("titleBonusesHistory")+"",r,n,a,l,c,u,h=o[17]("dateFrom")+"",p,m,f,y,b,v,C=o[17]("dateTo")+"",O,I,x,A,D,E=o[17]("dateFilter")+"",V,Ae,J,qe,he,$,Y=o[18]&&td(o);function Ee(P,z){return P[16].length===0?od:sd}let pe=Ee(o),L=pe(o),N=o[16].length!==0&&Do(o);return{c(){t=d.element("div"),Y&&Y.c(),e=d.space(),s=d.element("h2"),r=d.text(i),n=d.space(),a=d.element("div"),l=d.element("div"),c=d.element("div"),u=d.element("label"),p=d.text(h),m=d.space(),f=d.element("vaadin-date-picker"),y=d.space(),b=d.element("div"),v=d.element("label"),O=d.text(C),I=d.space(),x=d.element("vaadin-date-picker"),A=d.space(),D=d.element("button"),V=d.text(E),Ae=d.space(),J=d.element("div"),L.c(),qe=d.space(),N&&N.c(),d.attr(s,"class","BonusesTitle "+(o[18]?"BonusesTitleNone":"")),d.attr(s,"part","BonusesTitle "+(o[18]?"BonusesTitleNone":"")),d.attr(u,"for","BonusCalendarStartDate"),d.set_custom_element_data(f,"max",o[9]),d.set_custom_element_data(f,"value",o[10]),d.set_custom_element_data(f,"placeholder","From"),d.set_custom_element_data(f,"class","VaadinDatePicker"),d.attr(c,"class","BonusesCalendarStartDate "+(o[18]?"BonusesCalendarMobile":"")),d.attr(v,"for","BonusesCalendarEndDate"),d.set_custom_element_data(x,"max",o[9]),d.set_custom_element_data(x,"value",o[9]),d.set_custom_element_data(x,"placeholder","To"),d.set_custom_element_data(x,"class","VaadinDatePicker"),d.attr(b,"class","BonusesCalendarEndDate "+(o[18]?"BonusesCalendarMobile":"")),d.attr(l,"class","BonusesCalendarContainer "+(o[18]?"BonusesCalendarContainerMobile":"")),d.attr(D,"class","BonusesCalendarFilter "+(o[18]?"BonusesCalendarFilterMobile":"")),d.attr(a,"class","BonusCalendarWrapper "+(o[18]?"BonusCalendarWrapperMobile":"")),d.attr(J,"class","BonusesGrid "+(o[18]?"BonusesGridMobile":"")),d.attr(t,"class","BonusesWrapper "+(o[18]?"BonusesWrapperMobile":""))},m(P,z){d.insert(P,t,z),Y&&Y.m(t,null),d.append(t,e),d.append(t,s),d.append(s,r),d.append(t,n),d.append(t,a),d.append(a,l),d.append(l,c),d.append(c,u),d.append(u,p),d.append(c,m),d.append(c,f),o[25](f),d.append(l,y),d.append(l,b),d.append(b,v),d.append(v,O),d.append(b,I),d.append(b,x),o[26](x),d.append(a,A),d.append(a,D),d.append(D,V),d.append(t,Ae),d.append(t,J),L.m(J,null),d.append(t,qe),N&&N.m(t,null),he||($=d.listen(D,"click",o[27]),he=!0)},p(P,z){P[18]&&Y.p(P,z),z[0]&131072&&i!==(i=P[17]("titleBonusesHistory")+"")&&d.set_data(r,i),z[0]&131072&&h!==(h=P[17]("dateFrom")+"")&&d.set_data(p,h),z[0]&512&&d.set_custom_element_data(f,"max",P[9]),z[0]&1024&&d.set_custom_element_data(f,"value",P[10]),z[0]&131072&&C!==(C=P[17]("dateTo")+"")&&d.set_data(O,C),z[0]&512&&d.set_custom_element_data(x,"max",P[9]),z[0]&512&&d.set_custom_element_data(x,"value",P[9]),z[0]&131072&&E!==(E=P[17]("dateFilter")+"")&&d.set_data(V,E),pe===(pe=Ee(P))&&L?L.p(P,z):(L.d(1),L=pe(P),L&&(L.c(),L.m(J,null))),P[16].length!==0?N?N.p(P,z):(N=Do(P),N.c(),N.m(t,null)):N&&(N.d(1),N=null)},d(P){P&&d.detach(t),Y&&Y.d(),o[25](null),o[26](null),L.d(),N&&N.d(),he=!1,$()}}}function td(o){let t,e,s,i,r,n,a,l,c,u,h=o[17]("titleBonusesHistory")+"",p,m,f;return{c(){t=d.element("div"),e=d.svg_element("svg"),s=d.svg_element("defs"),i=d.svg_element("style"),r=d.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),n=d.svg_element("g"),a=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),u=d.element("h2"),p=d.text(h),d.attr(l,"class","aaa"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(a,"transform","translate(20 158)"),d.attr(n,"transform","translate(-20 -158)"),d.attr(e,"xmlns","http://www.w3.org/2000/svg"),d.attr(e,"width","15"),d.attr(e,"height","15"),d.attr(e,"viewBox","0 0 15 15"),d.attr(u,"class","BonusesTitleMobile"),d.attr(t,"class","MenuReturnButton")},m(y,b){d.insert(y,t,b),d.append(t,e),d.append(e,s),d.append(s,i),d.append(i,r),d.append(e,n),d.append(n,a),d.append(a,l),d.append(t,c),d.append(t,u),d.append(u,p),m||(f=d.listen(t,"click",o[24]),m=!0)},p(y,b){b[0]&131072&&h!==(h=y[17]("titleBonusesHistory")+"")&&d.set_data(p,h)},d(y){y&&d.detach(t),m=!1,f()}}}function sd(o){let t,e=d.ensure_array_like(o[16]),s=[];for(let i=0;i<e.length;i+=1)s[i]=To(ko(o,e,i));return{c(){for(let i=0;i<s.length;i+=1)s[i].c();t=d.empty()},m(i,r){for(let n=0;n<s.length;n+=1)s[n]&&s[n].m(i,r);d.insert(i,t,r)},p(i,r){if(r[0]&65551){e=d.ensure_array_like(i[16]);let n;for(n=0;n<e.length;n+=1){const a=ko(i,e,n);s[n]?s[n].p(a,r):(s[n]=To(a),s[n].c(),s[n].m(t.parentNode,t))}for(;n<s.length;n+=1)s[n].d(1);s.length=e.length}},d(i){i&&d.detach(t),d.destroy_each(s,i)}}}function od(o){let t,e=o[17]("noBonusHistory")+"",s;return{c(){t=d.element("p"),s=d.text(e)},m(i,r){d.insert(i,t,r),d.append(t,s)},p(i,r){r[0]&131072&&e!==(e=i[17]("noBonusHistory")+"")&&d.set_data(s,e)},d(i){i&&d.detach(t)}}}function id(o){let t,e,s,i,r,n,a,l,c,u;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonusamount",a=o[47].extension.grantedPlayerCurrencyAmount),d.set_custom_element_data(t,"bonuswageringamount",l=`${o[47].fulfilledWR} / ${o[47].originalWageringRequirement}`),d.set_custom_element_data(t,"bonusremainingamount",c=o[47].currentAmount),d.set_custom_element_data(t,"bonuscurrency",u=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(h,p){d.insert(h,t,p)},p(h,p){p[0]&65536&&e!==(e=h[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),p[0]&65536&&s!==(s=h[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),p[0]&65536&&i!==(i=h[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),p[0]&65536&&r!==(r=h[47].name)&&d.set_custom_element_data(t,"bonusname",r),p[0]&65536&&n!==(n=h[47].type)&&d.set_custom_element_data(t,"bonustype",n),p[0]&65536&&a!==(a=h[47].extension.grantedPlayerCurrencyAmount)&&d.set_custom_element_data(t,"bonusamount",a),p[0]&65536&&l!==(l=`${h[47].fulfilledWR} / ${h[47].originalWageringRequirement}`)&&d.set_custom_element_data(t,"bonuswageringamount",l),p[0]&65536&&c!==(c=h[47].currentAmount)&&d.set_custom_element_data(t,"bonusremainingamount",c),p[0]&65536&&u!==(u=h[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",u),p[0]&1&&d.set_custom_element_data(t,"lang",h[0]),p[0]&2&&d.set_custom_element_data(t,"clientstyling",h[1]),p[0]&4&&d.set_custom_element_data(t,"clientstylingurl",h[2]),p[0]&8&&d.set_custom_element_data(t,"translationurl",h[3])},d(h){h&&d.detach(t)}}}function rd(o){let t,e,s,i,r,n,a;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonuscurrency",a=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(l,c){d.insert(l,t,c)},p(l,c){c[0]&65536&&e!==(e=l[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),c[0]&65536&&s!==(s=l[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),c[0]&65536&&i!==(i=l[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),c[0]&65536&&r!==(r=l[47].name)&&d.set_custom_element_data(t,"bonusname",r),c[0]&65536&&n!==(n=l[47].type)&&d.set_custom_element_data(t,"bonustype",n),c[0]&65536&&a!==(a=l[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",a),c[0]&1&&d.set_custom_element_data(t,"lang",l[0]),c[0]&2&&d.set_custom_element_data(t,"clientstyling",l[1]),c[0]&4&&d.set_custom_element_data(t,"clientstylingurl",l[2]),c[0]&8&&d.set_custom_element_data(t,"translationurl",l[3])},d(l){l&&d.detach(t)}}}function To(o){let t;function e(r,n){return r[47].type==="freeRound"?rd:id}let s=e(o),i=s(o);return{c(){i.c(),t=d.empty()},m(r,n){i.m(r,n),d.insert(r,t,n)},p(r,n){s===(s=e(r))&&i?i.p(r,n):(i.d(1),i=s(r),i&&(i.c(),i.m(t.parentNode,t)))},d(r){r&&d.detach(t),i.d(r)}}}function Do(o){let t,e,s,i,r,n,a,l,c,u,h,p,m,f,y,b,v,C,O,I=d.ensure_array_like(Array(o[14])),x=[];for(let A=0;A<I.length;A+=1)x[A]=So(Po(o,I,A));return{c(){t=d.element("div"),e=d.element("span"),s=d.text("|<"),r=d.space(),n=d.element("span"),a=d.text("<"),c=d.space();for(let A=0;A<x.length;A+=1)x[A].c();u=d.space(),h=d.element("span"),p=d.text(">"),f=d.space(),y=d.element("span"),b=d.text(">|"),d.attr(e,"class",i="BonusesFirst "+(o[15]===0?"Inactive":"")),d.attr(n,"class",l="BonusesPrev "+(o[15]===0?"Inactive":"")),d.attr(h,"class",m="BonusesNext "+(o[15]===o[14]-1?"Inactive":"")),d.attr(y,"class",v="BonusesLast "+(o[15]===o[14]-1?"Inactive":"")),d.attr(t,"class","BonusesPaginationWrapper "+(o[18]?"BonusesPaginationWrapperMobile":""))},m(A,D){d.insert(A,t,D),d.append(t,e),d.append(e,s),d.append(t,r),d.append(t,n),d.append(n,a),d.append(t,c);for(let E=0;E<x.length;E+=1)x[E]&&x[E].m(t,null);d.append(t,u),d.append(t,h),d.append(h,p),d.append(t,f),d.append(t,y),d.append(y,b),C||(O=[d.listen(e,"click",o[28]),d.listen(n,"click",o[29]),d.listen(h,"click",o[31]),d.listen(y,"click",o[32])],C=!0)},p(A,D){if(D[0]&32768&&i!==(i="BonusesFirst "+(A[15]===0?"Inactive":""))&&d.attr(e,"class",i),D[0]&32768&&l!==(l="BonusesPrev "+(A[15]===0?"Inactive":""))&&d.attr(n,"class",l),D[0]&1097776){I=d.ensure_array_like(Array(A[14]));let E;for(E=0;E<I.length;E+=1){const V=Po(A,I,E);x[E]?x[E].p(V,D):(x[E]=So(V),x[E].c(),x[E].m(t,u))}for(;E<x.length;E+=1)x[E].d(1);x.length=I.length}D[0]&49152&&m!==(m="BonusesNext "+(A[15]===A[14]-1?"Inactive":""))&&d.attr(h,"class",m),D[0]&49152&&v!==(v="BonusesLast "+(A[15]===A[14]-1?"Inactive":""))&&d.attr(y,"class",v)},d(A){A&&d.detach(t),d.destroy_each(x,A),C=!1,d.run_all(O)}}}function So(o){let t,e=o[46]+1+"",s,i,r,n;function a(){return o[30](o[46])}return{c(){t=d.element("span"),s=d.text(e),d.attr(t,"class",i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":""))},m(l,c){d.insert(l,t,c),d.append(t,s),r||(n=d.listen(t,"click",a),r=!0)},p(l,c){o=l,c[0]&32768&&i!==(i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":""))&&d.attr(t,"class",i)},d(l){l&&d.detach(t),r=!1,n()}}}function nd(o){let t;function e(r,n){return ed}let i=e()(o);return{c(){t=d.element("div"),i.c()},m(r,n){d.insert(r,t,n),i.m(t,null),o[33](t)},p(r,n){i.p(r,n)},i:d.noop,o:d.noop,d(r){r&&d.detach(t),i.d(),o[33](null)}}}let q=6;function ad(o,t,e){let s;d.component_subscribe(o,d.$format,_=>e(17,s=_));let{endpoint:i=""}=t,{session:r=""}=t,{playerid:n=""}=t,{lang:a="en"}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:u=""}=t,{bonushistorystatus:h=""}=t,{bonushistorytype:p=""}=t,m,f=window.navigator.userAgent,y=d.getDevice(f)!=="PC",b,v,C,O;C=d.hooks(new Date).format("YYYY-MM-DD"),O=d.hooks(new Date).subtract(3,"months").format("YYYY-MM-DD");let I=O,x=C,A=0,D=0,E=0,V=0,Ae=0,J=[];const qe=()=>{fetch(u).then(R=>R.json()).then(R=>{Object.keys(R).forEach(W=>{Ao(W,R[W])})}).catch(R=>{console.log(R)})};Object.keys(Eo).forEach(_=>{Ao(_,Eo[_])});const he=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},$=(_,R,W)=>{let yt=new URL(`${i}/v1/player/${n}/bonusWallet`),ar=d.hooks(I).startOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),lr=d.hooks(x).endOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),se="",Os="",Ms="";R&&(Os=R.split(",").map(bt=>`status=${bt}`).join(","),se=se+Os+","),W&&(Ms=W.split(",").map(bt=>`type=${bt}`).join(","),se=se+Ms+","),se=se+`granted=[${ar}~${lr}]`,yt.searchParams.append("filter",se),yt.searchParams.append("pagination",`offset=${_},limit=${q}`);let cr={method:"GET",headers:{"X-SessionId":r}};fetch(yt.href,cr).then(j=>j.json()).then(j=>{e(14,V=Math.ceil(j.total/q)),_-q>=0&&e(11,A=_-q),_+q<j.total&&e(12,D=_+q),e(13,E=(V-1)*q),e(15,Ae=_/q),e(16,J=j.items)},j=>{console.error(j)}),window.postMessage({type:"ScrollToTop"},window.location.href)},Y=_=>{I=_.target.value},Ee=_=>{x=_.target.value},pe=()=>{b.addEventListener("change",Y,!1),v.addEventListener("change",Ee,!1)};d.onMount(()=>()=>{b.removeEventListener("change",Y),v.removeEventListener("change",Ee)});const L=()=>{Qc(a)},N=()=>{let _=document.createElement("style");_.innerHTML=l,m.appendChild(_)},P=()=>{let _=new URL(c),R=document.createElement("style");fetch(_.href).then(W=>W.text()).then(W=>{R.innerHTML=W,setTimeout(()=>{m.appendChild(R)},1)})},z=()=>he();function Qi(_){d.binding_callbacks[_?"unshift":"push"](()=>{b=_,e(7,b)})}function Zi(_){d.binding_callbacks[_?"unshift":"push"](()=>{v=_,e(8,v)})}const er=()=>$(0,h,p),tr=()=>$(0,h,p),sr=()=>$(A,h,p),or=_=>$(_*q,h,p),ir=()=>$(D,h,p),rr=()=>$(E,h,p);function nr(_){d.binding_callbacks[_?"unshift":"push"](()=>{m=_,e(6,m)})}return o.$$set=_=>{"endpoint"in _&&e(21,i=_.endpoint),"session"in _&&e(22,r=_.session),"playerid"in _&&e(23,n=_.playerid),"lang"in _&&e(0,a=_.lang),"clientstyling"in _&&e(1,l=_.clientstyling),"clientstylingurl"in _&&e(2,c=_.clientstylingurl),"translationurl"in _&&e(3,u=_.translationurl),"bonushistorystatus"in _&&e(4,h=_.bonushistorystatus),"bonushistorytype"in _&&e(5,p=_.bonushistorytype)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&L(),o.$$.dirty[0]&384&&b&&v&&pe(),o.$$.dirty[0]&14680112&&r&&n&&i&&$(0,h,p),o.$$.dirty[0]&68&&c&&m&&P(),o.$$.dirty[0]&66&&l&&m&&N(),o.$$.dirty[0]&8&&u&&qe()},[a,l,c,u,h,p,m,b,v,C,O,A,D,E,V,Ae,J,s,y,he,$,i,r,n,z,Qi,Zi,er,tr,sr,or,ir,rr,nr]}class Ji extends d.SvelteComponent{constructor(t){super(),d.init(this,t,ad,nd,d.safe_not_equal,{endpoint:21,session:22,playerid:23,lang:0,clientstyling:1,clientstylingurl:2,translationurl:3,bonushistorystatus:4,bonushistorytype:5},Zc,[-1,-1])}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),d.flush()}get session(){return this.$$.ctx[22]}set session(t){this.$$set({session:t}),d.flush()}get playerid(){return this.$$.ctx[23]}set playerid(t){this.$$set({playerid:t}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),d.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),d.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),d.flush()}get translationurl(){return this.$$.ctx[3]}set translationurl(t){this.$$set({translationurl:t}),d.flush()}get bonushistorystatus(){return this.$$.ctx[4]}set bonushistorystatus(t){this.$$set({bonushistorystatus:t}),d.flush()}get bonushistorytype(){return this.$$.ctx[5]}set bonushistorytype(t){this.$$set({bonushistorytype:t}),d.flush()}}d.create_custom_element(Ji,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{}},[],[],!0);exports.default=Ji;