@randstad-uca/design-system 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const l=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)}
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */,{is:f,defineProperty:_,getOwnPropertyDescriptor:g,getOwnPropertyNames:b,getOwnPropertySymbols:y,getPrototypeOf:v}=Object,w=globalThis,x=w.trustedTypes,C=x?x.emptyScript:"",k=w.reactiveElementPolyfillSupport,A=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?C:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},P=(t,e)=>!f(t,e),S={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P};Symbol.metadata??=Symbol("metadata"),w.litPropertyMetadata??=new WeakMap;class D extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&_(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const s=i?.call(this);r.call(this,e),this.requestUpdate(t,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){const t=this.properties,e=[...b(t),...y(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=d.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:E).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??P)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[A("elementProperties")]=new Map,D[A("finalized")]=new Map,k?.({ReactiveElement:D}),(w.reactiveElementVersions??=[]).push("2.0.4");
17
+ */,{is:f,defineProperty:_,getOwnPropertyDescriptor:g,getOwnPropertyNames:b,getOwnPropertySymbols:y,getPrototypeOf:v}=Object,w=globalThis,x=w.trustedTypes,C=x?x.emptyScript:"",A=w.reactiveElementPolyfillSupport,k=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?C:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},P=(t,e)=>!f(t,e),S={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P};Symbol.metadata??=Symbol("metadata"),w.litPropertyMetadata??=new WeakMap;class D extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&_(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const s=i?.call(this);r.call(this,e),this.requestUpdate(t,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){const t=this.properties,e=[...b(t),...y(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=d.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:E).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??P)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[k("elementProperties")]=new Map,D[k("finalized")]=new Map,A?.({ReactiveElement:D}),(w.reactiveElementVersions??=[]).push("2.0.4");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -36,7 +36,7 @@ const T={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P},O=(t=T,e,
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
38
  */
39
- function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let M=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null}static{this.styles=e`
39
+ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let z=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null}static{this.styles=e`
40
40
  :host {
41
41
  display: inline-block;
42
42
  }
@@ -241,7 +241,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
241
241
  ${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?o`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
242
242
  `}
243
243
  </button>
244
- `}};n([I({type:String}),a("design:type",String)],M.prototype,"variant",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"label",void 0),n([I({type:Boolean}),a("design:type",Object)],M.prototype,"loader",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"iconSrc",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"iconPosition",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Boolean)],M.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"iconName",void 0),M=n([l("randstad-button")],M);let z=class extends t{constructor(){super(...arguments),this.prefix="Acepto los",this.clause1Text="términos y condiciones",this.connector="y los",this.clause2Text="avisos de privacidad del sitio",this.checked=!1}static{this.styles=e`
244
+ `}};n([I({type:String}),a("design:type",String)],z.prototype,"variant",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"label",void 0),n([I({type:Boolean}),a("design:type",Object)],z.prototype,"loader",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconSrc",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconPosition",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Boolean)],z.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"iconName",void 0),z=n([l("randstad-button")],z);let M=class extends t{constructor(){super(...arguments),this.prefix="Acepto los",this.clause1Text="términos y condiciones",this.connector="y los",this.clause2Text="avisos de privacidad del sitio",this.checked=!1}static{this.styles=e`
245
245
  :host {
246
246
  display: block;
247
247
  max-width: 100%;
@@ -297,7 +297,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
297
297
  text-decoration: underline;
298
298
  cursor: pointer;
299
299
  }
300
- `}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}renderClause(t,e){return e?o`<a class="terms-link" href="${e}" target="_blank" rel="noopener">${t}</a>`:o`${t}`}render(){return o`
300
+ `}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}renderClause(t,e){return e?o`<a class="terms-link" href="${e}" target="_blank" rel="noopener" @click=${this.stopPropagation}>${t}</a>`:o`${t}`}stopPropagation(t){t.stopPropagation()}render(){return o`
301
301
  <label>
302
302
  <input
303
303
  type="checkbox"
@@ -311,7 +311,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
311
311
  ${this.renderClause(this.clause2Text,this.clause2Url)}.
312
312
  </span>
313
313
  </label>
314
- `}};n([I({type:String}),a("design:type",Object)],z.prototype,"prefix",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"clause1Text",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"clause1Url",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"connector",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"clause2Text",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"clause2Url",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],z.prototype,"checked",void 0),z=n([l("randstad-checkbox")],z);
314
+ `}};n([I({type:String}),a("design:type",Object)],M.prototype,"prefix",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"clause1Text",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"clause1Url",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"connector",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"clause2Text",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"clause2Url",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],M.prototype,"checked",void 0),M=n([l("randstad-checkbox")],M);
315
315
  /**
316
316
  * @license
317
317
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -916,7 +916,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
916
916
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
917
917
  Code distributed by Google as part of the polymer project is also
918
918
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
919
- */const dt=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const ct=dt&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let ht=window.Polymer&&window.Polymer.rootPath||lt(document.baseURI||window.location.href),ut=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let pt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ft=window.Polymer&&window.Polymer.legacyOptimizations||!1,_t=window.Polymer&&window.Polymer.legacyWarnings||!1,gt=window.Polymer&&window.Polymer.syncInitialRender||!1,bt=window.Polymer&&window.Polymer.legacyUndefined||!1,yt=window.Polymer&&window.Polymer.orderedComputed||!1,vt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wt=window.Polymer&&window.Polymer.fastDomIf||!1,xt=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Ct=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,kt=0;
919
+ */const dt=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const ct=dt&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let ht=window.Polymer&&window.Polymer.rootPath||lt(document.baseURI||window.location.href),ut=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let pt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ft=window.Polymer&&window.Polymer.legacyOptimizations||!1,_t=window.Polymer&&window.Polymer.legacyWarnings||!1,gt=window.Polymer&&window.Polymer.syncInitialRender||!1,bt=window.Polymer&&window.Polymer.legacyUndefined||!1,yt=window.Polymer&&window.Polymer.orderedComputed||!1,vt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wt=window.Polymer&&window.Polymer.fastDomIf||!1,xt=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Ct=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,At=0;
920
920
  /**
921
921
  @license
922
922
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -925,7 +925,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
925
925
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
926
926
  Code distributed by Google as part of the polymer project is also
927
927
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
928
- */const At=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let o=kt++;return function(i){let r=i.__mixinSet;if(r&&r[o])return i;let s=e,n=s.get(i);if(!n){n=t(i),s.set(i,n);let e=Object.create(n.__mixinSet||r||null);e[o]=!0,n.__mixinSet=e}return n}};
928
+ */const kt=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let o=At++;return function(i){let r=i.__mixinSet;if(r&&r[o])return i;let s=e,n=s.get(i);if(!n){n=t(i),s.set(i,n);let e=Object.create(n.__mixinSet||r||null);e[o]=!0,n.__mixinSet=e}return n}};
929
929
  /**
930
930
  @license
931
931
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -944,7 +944,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
944
944
  Code distributed by Google as part of the polymer project is also
945
945
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
946
946
  */
947
- const Ot="shady-unscoped";function It(t){return Tt.import(t)}function $t(t){const e=at((t.body?t.body:t).textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function Nt(t){const e=t.trim().split(/\s+/),o=[];for(let t=0;t<e.length;t++)o.push(...Mt(e[t]));return o}function Mt(t){const e=It(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...Lt(e));const o=e.querySelector("template");o&&t.push(...zt(o,e.assetpath)),e._styles=t}return e._styles}function zt(t,e){if(!t._styles){const o=[],i=t.content.querySelectorAll("style");for(let t=0;t<i.length;t++){let r=i[t],s=r.getAttribute("include");s&&o.push(...Nt(s).filter((function(t,e,o){return o.indexOf(t)===e}))),e&&(r.textContent=at(r.textContent,e)),o.push(r)}t._styles=o}return t._styles}function Lt(t){const e=[],o=t.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<o.length;t++){let i=o[t];if(i.import){const t=i.import,o=i.hasAttribute(Ot);if(o&&!t._unscopedStyle){const e=$t(t);e.setAttribute(Ot,""),t._unscopedStyle=e}else t._style||(t._style=$t(t));e.push(o?t._unscopedStyle:t._style)}}return e}
947
+ const Ot="shady-unscoped";function It(t){return Tt.import(t)}function $t(t){const e=at((t.body?t.body:t).textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function Nt(t){const e=t.trim().split(/\s+/),o=[];for(let t=0;t<e.length;t++)o.push(...zt(e[t]));return o}function zt(t){const e=It(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...Lt(e));const o=e.querySelector("template");o&&t.push(...Mt(o,e.assetpath)),e._styles=t}return e._styles}function Mt(t,e){if(!t._styles){const o=[],i=t.content.querySelectorAll("style");for(let t=0;t<i.length;t++){let r=i[t],s=r.getAttribute("include");s&&o.push(...Nt(s).filter((function(t,e,o){return o.indexOf(t)===e}))),e&&(r.textContent=at(r.textContent,e)),o.push(r)}t._styles=o}return t._styles}function Lt(t){const e=[],o=t.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<o.length;t++){let i=o[t];if(i.import){const t=i.import,o=i.hasAttribute(Ot);if(o&&!t._unscopedStyle){const e=$t(t);e.setAttribute(Ot,""),t._unscopedStyle=e}else t._style||(t._style=$t(t));e.push(o?t._unscopedStyle:t._style)}}return e}
948
948
  /**
949
949
  @license
950
950
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -980,7 +980,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
980
980
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
981
981
  Code distributed by Google as part of the polymer project is also
982
982
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
983
- */let Qt=0,te=0,ee=[],oe=0,ie=!1,re=document.createTextNode("");new window.MutationObserver((function(){ie=!1;const t=ee.length;for(let e=0;e<t;e++){let t=ee[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}ee.splice(0,t),te+=t})).observe(re,{characterData:!0});const se={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ne={run:t=>(ie||(ie=!0,re.textContent=oe++),ee.push(t),Qt++),cancel(t){const e=t-te;if(e>=0){if(!ee[e])throw new Error("invalid async handle: "+t);ee[e]=null}}},ae=ne,le=At((t=>class extends t{static createProperties(t){const e=this.prototype;for(let o in t)o in e||e._createPropertyAccessor(o)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,o){let i=this.__data[t],r=this._shouldPropertyChange(t,e,i);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=i),this.__data[t]=e,this.__dataPending[t]=e),r}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ae.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(t,e,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,o)),this.__dataCounter--}_shouldPropertiesChange(t,e,o){return Boolean(e)}_propertiesChanged(t,e,o){}_shouldPropertyChange(t,e,o){return o!==e&&(o==o||e==e)}attributeChangedCallback(t,e,o,i){e!==o&&this._attributeToProperty(t,o),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,o,i)}_attributeToProperty(t,e,o){if(!this.__serializing){const i=this.__dataAttributes,r=i&&i[t]||t;this[r]=this._deserializeValue(e,o||this.constructor.typeForProperty(r))}}_propertyToAttribute(t,e,o){this.__serializing=!0,o=arguments.length<3?this[t]:o,this._valueToNodeAttribute(this,o,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,o){const i=this._serializeValue(e);"class"!==o&&"name"!==o&&"slot"!==o||(t=Ft(t)),void 0===i?t.removeAttribute(o):t.setAttribute(o,""===i&&window.trustedTypes?window.trustedTypes.emptyScript:i)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),de={};let ce=HTMLElement.prototype;for(;ce;){let t=Object.getOwnPropertyNames(ce);for(let e=0;e<t.length;e++)de[t[e]]=!0;ce=Object.getPrototypeOf(ce)}const he=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;const ue=At((t=>{const e=le(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Jt(t[e]))}static attributeNameForProperty(t){return Zt(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){const o=this;o.hasAttribute(t)||this._valueToNodeAttribute(o,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(he(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let o;switch(e){case Object:try{o=JSON.parse(t)}catch(e){o=t}break;case Array:try{o=JSON.parse(t)}catch(e){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:o=isNaN(t)?String(t):Number(t),o=new Date(o);break;default:o=super._deserializeValue(t,e)}return o}_definePropertyAccessor(t,e){!function(t,e){if(!de[e]){let o=t[e];void 0!==o&&(t.__data?t._setPendingProperty(e,o):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=o))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),pe={"dom-if":!0,"dom-repeat":!0};
983
+ */let Qt=0,te=0,ee=[],oe=0,ie=!1,re=document.createTextNode("");new window.MutationObserver((function(){ie=!1;const t=ee.length;for(let e=0;e<t;e++){let t=ee[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}ee.splice(0,t),te+=t})).observe(re,{characterData:!0});const se={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ne={run:t=>(ie||(ie=!0,re.textContent=oe++),ee.push(t),Qt++),cancel(t){const e=t-te;if(e>=0){if(!ee[e])throw new Error("invalid async handle: "+t);ee[e]=null}}},ae=ne,le=kt((t=>class extends t{static createProperties(t){const e=this.prototype;for(let o in t)o in e||e._createPropertyAccessor(o)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,o){let i=this.__data[t],r=this._shouldPropertyChange(t,e,i);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=i),this.__data[t]=e,this.__dataPending[t]=e),r}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ae.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(t,e,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,o)),this.__dataCounter--}_shouldPropertiesChange(t,e,o){return Boolean(e)}_propertiesChanged(t,e,o){}_shouldPropertyChange(t,e,o){return o!==e&&(o==o||e==e)}attributeChangedCallback(t,e,o,i){e!==o&&this._attributeToProperty(t,o),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,o,i)}_attributeToProperty(t,e,o){if(!this.__serializing){const i=this.__dataAttributes,r=i&&i[t]||t;this[r]=this._deserializeValue(e,o||this.constructor.typeForProperty(r))}}_propertyToAttribute(t,e,o){this.__serializing=!0,o=arguments.length<3?this[t]:o,this._valueToNodeAttribute(this,o,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,o){const i=this._serializeValue(e);"class"!==o&&"name"!==o&&"slot"!==o||(t=Ft(t)),void 0===i?t.removeAttribute(o):t.setAttribute(o,""===i&&window.trustedTypes?window.trustedTypes.emptyScript:i)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),de={};let ce=HTMLElement.prototype;for(;ce;){let t=Object.getOwnPropertyNames(ce);for(let e=0;e<t.length;e++)de[t[e]]=!0;ce=Object.getPrototypeOf(ce)}const he=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;const ue=kt((t=>{const e=le(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Jt(t[e]))}static attributeNameForProperty(t){return Zt(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){const o=this;o.hasAttribute(t)||this._valueToNodeAttribute(o,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(he(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let o;switch(e){case Object:try{o=JSON.parse(t)}catch(e){o=t}break;case Array:try{o=JSON.parse(t)}catch(e){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:o=isNaN(t)?String(t):Number(t),o=new Date(o);break;default:o=super._deserializeValue(t,e)}return o}_definePropertyAccessor(t,e){!function(t,e){if(!de[e]){let o=t[e];void 0!==o&&(t.__data?t._setPendingProperty(e,o):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=o))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),pe={"dom-if":!0,"dom-repeat":!0};
984
984
  /**
985
985
  @license
986
986
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -989,7 +989,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
989
989
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
990
990
  Code distributed by Google as part of the polymer project is also
991
991
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
992
- */let me=!1,fe=!1;function _e(t){(function(){if(!me){me=!0;const t=document.createElement("textarea");t.placeholder="a",fe=t.placeholder===t.textContent}return fe})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const ge=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,o,i)=>{const r=o.getAttribute(i);t&&i.startsWith("on-")?e.setAttribute(i,t.createScript(r,i)):e.setAttribute(i,r)}})();function be(t){let e=t.getAttribute("is");if(e&&pe[e]){let o=t;for(o.removeAttribute("is"),t=o.ownerDocument.createElement(e),o.parentNode.replaceChild(t,o),t.appendChild(o);o.attributes.length;){const{name:e}=o.attributes[0];ge(t,o,e),o.removeAttribute(e)}}return t}function ye(t,e){let o=e.parentInfo&&ye(t,e.parentInfo);if(!o)return t;for(let t=o.firstChild,i=0;t;t=t.nextSibling)if(e.parentIndex===i++)return t}function ve(t,e,o,i){i.id&&(e[i.id]=o)}function we(t,e,o){if(o.events&&o.events.length)for(let i,r=0,s=o.events;r<s.length&&(i=s[r]);r++)t._addMethodEventListenerToNode(e,i.name,i.value,t)}function xe(t,e,o,i){o.templateInfo&&(e._templateInfo=o.templateInfo,e._parentTemplateInfo=i)}const Ce=At((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let o=t._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=Boolean(e),o.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,o,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,o){return this._parseTemplateNode(t.content,e,o)}static _parseTemplateNode(t,e,o){let i=!1,r=t;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(e.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(r,e,o)||i,_e(r),r.firstChild&&this._parseTemplateChildNodes(r,e,o),r.hasAttributes&&r.hasAttributes()&&(i=this._parseTemplateNodeAttributes(r,e,o)||i),i||o.noted}static _parseTemplateChildNodes(t,e,o){if("script"!==t.localName&&"style"!==t.localName)for(let i,r=t.firstChild,s=0;r;r=i){if("template"==r.localName&&(r=be(r)),i=r.nextSibling,r.nodeType===Node.TEXT_NODE){let o=i;for(;o&&o.nodeType===Node.TEXT_NODE;)r.textContent+=o.textContent,i=o.nextSibling,t.removeChild(o),o=i;if(e.stripWhiteSpace&&!r.textContent.trim()){t.removeChild(r);continue}}let n={parentIndex:s,parentInfo:o};this._parseTemplateNode(r,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),r.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,o){let i=t,r=this._parseTemplate(i,e);return(r.content=i.content.ownerDocument.createDocumentFragment()).appendChild(i.content),o.templateInfo=r,!0}static _parseTemplateNodeAttributes(t,e,o){let i=!1,r=Array.from(t.attributes);for(let s,n=r.length-1;s=r[n];n--)i=this._parseTemplateNodeAttribute(t,e,o,s.name,s.value)||i;return i}static _parseTemplateNodeAttribute(t,e,o,i,r){return"on-"===i.slice(0,3)?(t.removeAttribute(i),o.events=o.events||[],o.events.push({name:i.slice(3),value:r}),!0):"id"===i&&(o.id=r,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let o=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,i=e.content||t.content,r=document.importNode(i,!0);r.__noInsertionPoint=!e.hasInsertionPoint;let s=r.nodeList=new Array(o.length);r.$={};for(let t,i=0,n=o.length;i<n&&(t=o[i]);i++){let o=s[i]=ye(r,t);ve(0,r.$,o,t),xe(0,o,t,e),we(this,o,t)}return r}_addMethodEventListenerToNode(t,e,o,i){let r=function(t,e,o){return t=t._methodHost||t,function(e){t[o]?t[o](e,e.detail):console.warn("listener method `"+o+"` not defined")}}(i=i||t,0,o);return this._addEventListenerToNode(t,e,r),r}_addEventListenerToNode(t,e,o){t.addEventListener(e,o)}_removeEventListenerFromNode(t,e,o){t.removeEventListener(e,o)}}));
992
+ */let me=!1,fe=!1;function _e(t){(function(){if(!me){me=!0;const t=document.createElement("textarea");t.placeholder="a",fe=t.placeholder===t.textContent}return fe})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const ge=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,o,i)=>{const r=o.getAttribute(i);t&&i.startsWith("on-")?e.setAttribute(i,t.createScript(r,i)):e.setAttribute(i,r)}})();function be(t){let e=t.getAttribute("is");if(e&&pe[e]){let o=t;for(o.removeAttribute("is"),t=o.ownerDocument.createElement(e),o.parentNode.replaceChild(t,o),t.appendChild(o);o.attributes.length;){const{name:e}=o.attributes[0];ge(t,o,e),o.removeAttribute(e)}}return t}function ye(t,e){let o=e.parentInfo&&ye(t,e.parentInfo);if(!o)return t;for(let t=o.firstChild,i=0;t;t=t.nextSibling)if(e.parentIndex===i++)return t}function ve(t,e,o,i){i.id&&(e[i.id]=o)}function we(t,e,o){if(o.events&&o.events.length)for(let i,r=0,s=o.events;r<s.length&&(i=s[r]);r++)t._addMethodEventListenerToNode(e,i.name,i.value,t)}function xe(t,e,o,i){o.templateInfo&&(e._templateInfo=o.templateInfo,e._parentTemplateInfo=i)}const Ce=kt((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let o=t._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=Boolean(e),o.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,o,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,o){return this._parseTemplateNode(t.content,e,o)}static _parseTemplateNode(t,e,o){let i=!1,r=t;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(e.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(r,e,o)||i,_e(r),r.firstChild&&this._parseTemplateChildNodes(r,e,o),r.hasAttributes&&r.hasAttributes()&&(i=this._parseTemplateNodeAttributes(r,e,o)||i),i||o.noted}static _parseTemplateChildNodes(t,e,o){if("script"!==t.localName&&"style"!==t.localName)for(let i,r=t.firstChild,s=0;r;r=i){if("template"==r.localName&&(r=be(r)),i=r.nextSibling,r.nodeType===Node.TEXT_NODE){let o=i;for(;o&&o.nodeType===Node.TEXT_NODE;)r.textContent+=o.textContent,i=o.nextSibling,t.removeChild(o),o=i;if(e.stripWhiteSpace&&!r.textContent.trim()){t.removeChild(r);continue}}let n={parentIndex:s,parentInfo:o};this._parseTemplateNode(r,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),r.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,o){let i=t,r=this._parseTemplate(i,e);return(r.content=i.content.ownerDocument.createDocumentFragment()).appendChild(i.content),o.templateInfo=r,!0}static _parseTemplateNodeAttributes(t,e,o){let i=!1,r=Array.from(t.attributes);for(let s,n=r.length-1;s=r[n];n--)i=this._parseTemplateNodeAttribute(t,e,o,s.name,s.value)||i;return i}static _parseTemplateNodeAttribute(t,e,o,i,r){return"on-"===i.slice(0,3)?(t.removeAttribute(i),o.events=o.events||[],o.events.push({name:i.slice(3),value:r}),!0):"id"===i&&(o.id=r,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let o=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,i=e.content||t.content,r=document.importNode(i,!0);r.__noInsertionPoint=!e.hasInsertionPoint;let s=r.nodeList=new Array(o.length);r.$={};for(let t,i=0,n=o.length;i<n&&(t=o[i]);i++){let o=s[i]=ye(r,t);ve(0,r.$,o,t),xe(0,o,t,e),we(this,o,t)}return r}_addMethodEventListenerToNode(t,e,o,i){let r=function(t,e,o){return t=t._methodHost||t,function(e){t[o]?t[o](e,e.detail):console.warn("listener method `"+o+"` not defined")}}(i=i||t,0,o);return this._addEventListenerToNode(t,e,r),r}_addEventListenerToNode(t,e,o){t.addEventListener(e,o)}_removeEventListenerFromNode(t,e,o){t.removeEventListener(e,o)}}));
993
993
  /**
994
994
  * @fileoverview
995
995
  * @suppress {checkPrototypalTypes}
@@ -1000,7 +1000,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1000
1000
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1001
1001
  * Google as part of the polymer project is also subject to an additional IP
1002
1002
  * rights grant found at http://polymer.github.io/PATENTS.txt
1003
- */let ke=0;const Ae=[],Ee={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Pe="__computeInfo",Se=/[A-Z]/;function De(t,e,o){let i=t[e];if(i){if(!t.hasOwnProperty(e)&&(i=t[e]=Object.create(t[e]),o))for(let t in i){let e=i[t],o=i[t]=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]}}else i=t[e]={};return i}function Te(t,e,o,i,r,s){if(e){let n=!1;const a=ke++;for(let l in o){let d=e[r?Ht(l):l];if(d)for(let e,c=0,h=d.length;c<h&&(e=d[c]);c++)e.info&&e.info.lastRun===a||r&&!Ie(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,o,i,e.info,r,s),n=!0)}return n}return!1}function Oe(t,e,o,i,r,s,n,a){let l=!1,d=e[n?Ht(i):i];if(d)for(let e,c=0,h=d.length;c<h&&(e=d[c]);c++)e.info&&e.info.lastRun===o||n&&!Ie(i,e.trigger)||(e.info&&(e.info.lastRun=o),e.fn(t,i,r,s,e.info,n,a),l=!0);return l}function Ie(t,e){if(e){let o=e.name;return o==t||!(!e.structured||!Bt(o,t))||!(!e.wildcard||!Vt(o,t))}return!0}function $e(t,e,o,i,r){let s="string"==typeof r.method?t[r.method]:r.method,n=r.property;s?s.call(t,t.__data[n],i[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Ne(t,e,o){let i=Ht(e);if(i!==e){return Me(t,Zt(i)+"-changed",o[e],e),!0}return!1}function Me(t,e,o,i){let r={value:o,queueProperty:!0};i&&(r.path=i),Ft(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function ze(t,e,o,i,r,s){let n=(s?Ht(e):e)!=e?e:null,a=n?qt(t,n):t.__data[e];n&&void 0===a&&(a=o[e]),Me(t,r.eventName,a,n)}function Le(t,e,o,i,r){let s=t.__data[e];ut&&(s=ut(s,r.attrName,"attribute",t)),t._propertyToAttribute(e,r.attrName,s)}function Fe(t,e,o,i){let r=t[Ee.COMPUTE];if(r)if(yt){ke++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const o=t[Ee.COMPUTE];let i,{counts:r,ready:s,total:n}=function(t){const e=t[Pe],o={},i=t[Ee.COMPUTE],r=[];let s=0;for(let t in e){const i=e[t];s+=o[t]=i.args.filter((t=>!t.literal)).length+(i.dynamicFn?1:0)}for(let t in i)e[t]||r.push(t);return{counts:o,ready:r,total:s}}(t);for(;i=s.shift();){e.set(i,e.size);const t=o[i];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--r[e]&&s.push(e)}))}if(0!==n){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)He(t,r,n,s,i);let a;for(;a=n.shift();)Be(t,"",e,o,a)&&He(a.methodInfo,r,n,s,i);Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;Te(t,r,s,o,i);)Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Re=(t,e,o)=>{let i=0,r=e.length-1,s=-1;for(;i<=r;){const n=i+r>>1,a=o.get(e[n].methodInfo)-o.get(t.methodInfo);if(a<0)i=n+1;else{if(!(a>0)){s=n;break}r=n-1}}s<0&&(s=r+1),e.splice(s,0,t)},He=(t,e,o,i,r)=>{const s=e[r?Ht(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun===ke||r&&!Ie(t,n.trigger)||(n.info.lastRun=ke,Re(n.info,o,i))}};function Be(t,e,o,i,r){let s=Ge(t,e,o,i,r);if(s===Ae)return!1;let n=r.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Ve(t,e,o,i,r,s,n){o.bindings=o.bindings||[];let a={kind:i,target:r,parts:s,literal:n,isCompound:1!==s.length};if(o.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Zt(r)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let o=0;o<a.parts.length;o++){let i=a.parts[o];i.compoundIndex=o,je(t,e,a,i,l)}}function je(t,e,o,i,r){if(!i.literal)if("attribute"===o.kind&&"-"===o.target[0])console.warn("Cannot set attribute "+o.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,n={index:r,binding:o,part:i,evaluator:t};for(let o=0;o<s.length;o++){let i=s[o];"string"==typeof i&&(i=eo(i),i.wildcard=!0),t._addTemplatePropertyEffect(e,i.rootProperty,{fn:Ue,info:n,trigger:i})}}}function Ue(t,e,o,i,r,s,n){let a=n[r.index],l=r.binding,d=r.part;if(s&&d.source&&e.length>d.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let i=o[e];e=jt(d.source,l.target,e),a._setPendingPropertyOrPath(e,i,!1,!0)&&t._enqueueClient(a)}else{let n=r.evaluator._evaluateBinding(t,d,e,o,i,s);n!==Ae&&function(t,e,o,i,r){r=function(t,e,o,i){if(o.isCompound){let r=t.__dataCompoundStorage[o.target];r[i.compoundIndex]=e,e=r.join("")}"attribute"!==o.kind&&("textContent"!==o.target&&("value"!==o.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,r,o,i),ut&&(r=ut(r,o.target,o.kind,e));if("attribute"==o.kind)t._valueToNodeAttribute(e,r,o.target);else{let i=o.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[i]?e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||e._setPendingProperty(i,r)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,i,r)}}(t,a,l,d,n)}}function Ye(t,e){if(e.isCompound){let o=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,r=new Array(i.length);for(let t=0;t<i.length;t++)r[t]=i[t].literal;let s=e.target;o[s]=r,e.literal&&"property"==e.kind&&("className"===s&&(t=Ft(t)),t[s]=e.literal)}}function qe(t,e,o){if(o.listenerEvent){let i=o.parts[0];t.addEventListener(o.listenerEvent,(function(t){!function(t,e,o,i,r){let s,n=t.detail,a=n&&n.path;a?(i=jt(o,i,a),s=n&&n.value):s=t.currentTarget[o],s=r?!s:s,e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||!e._setPendingPropertyOrPath(i,s,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,o.target,i.source,i.negate)}))}}function We(t,e,o,i,r,s){s=e.static||s&&("object"!=typeof s||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:s};for(let r,s=0;s<e.args.length&&(r=e.args[s]);s++)r.literal||t._addPropertyEffect(r.rootProperty,o,{fn:i,info:n,trigger:r});return s&&t._addPropertyEffect(e.methodName,o,{fn:i,info:n}),n}function Ge(t,e,o,i,r){let s=t._methodHost||t,n=s[r.methodName];if(n){let i=t._marshalArgs(r.args,e,o);return i===Ae?Ae:n.apply(s,i)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Ke=[],Xe="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Je="(?:("+Xe+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ze=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+Xe+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+Je+"(?:,\\s*"+Je+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Qe(t){let e="";for(let o=0;o<t.length;o++){e+=t[o].literal||""}return e}function to(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ke};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let o=eo(t);return o.literal||(e.static=!1),o}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t)}return t}return null}function eo(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),o={name:e,value:"",literal:!1},i=e[0];switch("-"===i&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':o.value=e.slice(1,-1),o.literal=!0;break;case"#":o.value=Number(e),o.literal=!0}return o.literal||(o.rootProperty=Ht(e),o.structured=Rt(e),o.structured&&(o.wildcard=".*"==e.slice(-2),o.wildcard&&(o.name=e.slice(0,-2)))),o}function oo(t,e,o){let i=qt(t,o);return void 0===i&&(i=e[o]),i}function io(t,e,o,i){const r={indexSplices:i};bt&&!t._overrideLegacyUndefined&&(e.splices=r),t.notifyPath(o+".splices",r),t.notifyPath(o+".length",e.length),bt&&!t._overrideLegacyUndefined&&(r.indexSplices=[])}function ro(t,e,o,i,r,s){io(t,e,o,[{index:i,addedCount:r,removed:s,object:e,type:"splice"}])}const so=At((t=>{const e=Ce(ue(t));return class extends e{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 Ee}_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(no.length){let t=no[no.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[Ee.READ_ONLY];for(let o in t)e&&e[o]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=t[o])}_addPropertyEffect(t,e,o){this._createPropertyAccessor(t,e==Ee.READ_ONLY);let i=De(this,e,!0)[t];i||(i=this[e][t]=[]),i.push(o)}_removePropertyEffect(t,e,o){let i=De(this,e,!0)[t],r=i.indexOf(o);r>=0&&i.splice(r,1)}_hasPropertyEffect(t,e){let o=this[e];return Boolean(o&&o[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Ee.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Ee.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Ee.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Ee.COMPUTE)}_setPendingPropertyOrPath(t,e,o,i){if(i||Ht(Array.isArray(t)?t[0]:t)!==t){if(!i){let o=qt(this,t);if(!(t=Wt(this,t,e))||!super._shouldPropertyChange(t,e,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,o))return function(t,e,o){let i=t.__dataLinkedPaths;if(i){let r;for(let s in i){let n=i[s];Vt(s,e)?(r=jt(s,n,e),t._setPendingPropertyOrPath(r,o,!0,!0)):Vt(n,e)&&(r=jt(n,s,e),t._setPendingPropertyOrPath(r,o,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,o);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,o){o===t[e]&&"object"!=typeof o||("className"===e&&(t=Ft(t)),t[e]=o)}_setPendingProperty(t,e,o){let i=this.__dataHasPaths&&Rt(t),r=i?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,r[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),i?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(i||this[Ee.NOTIFY]&&this[Ee.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=o),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let o=t[e];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let o in t)!e&&this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][o]||this._setPendingPropertyOrPath(o,t[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,o){let i,r=this.__dataHasPaths;this.__dataHasPaths=!1,Fe(this,e,o,r),i=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,o,r),this._flushClients(),Te(this,this[Ee.REFLECT],e,o,r),Te(this,this[Ee.OBSERVE],e,o,r),i&&function(t,e,o,i,r){let s,n,a=t[Ee.NOTIFY],l=ke++;for(let n in e)e[n]&&(a&&Oe(t,a,l,n,o,i,r)||r&&Ne(t,n,o))&&(s=!0);s&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,i,e,o,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,o){this[Ee.PROPAGATE]&&Te(this,this[Ee.PROPAGATE],t,e,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,o)}_runEffectsForTemplate(t,e,o,i){const r=(e,i)=>{Te(this,t.propertyEffects,e,o,i,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,e,o,i)};t.runEffects?t.runEffects(r,e,i):r(e,i)}linkPaths(t,e){t=Ut(t),e=Ut(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ut(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let o={path:""};io(this,qt(this,t,o),o.path,e)}get(t,e){return qt(e||this,t)}set(t,e,o){o?Wt(o,t,e):this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let o={path:""},i=qt(this,t,o),r=i.length,s=i.push(...e);return e.length&&ro(this,i,o.path,r,e.length,[]),s}pop(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),r=o.pop();return i&&ro(this,o,e.path,o.length,0,[r]),r}splice(t,e,o,...i){let r,s={path:""},n=qt(this,t,s);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),r=2===arguments.length?n.splice(e):n.splice(e,o,...i),(i.length||r.length)&&ro(this,n,s.path,e,i.length,r),r}shift(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),r=o.shift();return i&&ro(this,o,e.path,0,0,[r]),r}unshift(t,...e){let o={path:""},i=qt(this,t,o),r=i.unshift(...e);return e.length&&ro(this,i,o.path,0,e.length,[]),r}notifyPath(t,e){let o;if(1==arguments.length){let i={path:""};e=qt(this,t,i),o=i.path}else o=Array.isArray(t)?Ut(t):t;this._setPendingPropertyOrPath(o,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var o;this._addPropertyEffect(t,Ee.READ_ONLY),e&&(this["_set"+(o=t,o[0].toUpperCase()+o.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,o){let i={property:t,method:e,dynamicFn:Boolean(o)};this._addPropertyEffect(t,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:t}}),o&&this._addPropertyEffect(e,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:e}})}_createMethodObserver(t,e){let o=to(t);if(!o)throw new Error("Malformed observer expression '"+t+"'");We(this,o,Ee.OBSERVE,Ge,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Ee.NOTIFY,{fn:ze,info:{eventName:Zt(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Ee.REFLECT,{fn:Le,info:{attrName:e}})}_createComputedProperty(t,e,o){let i=to(e);if(!i)throw new Error("Malformed computed expression '"+e+"'");const r=We(this,i,Ee.COMPUTE,Be,t,o);De(this,Pe)[t]=r}_marshalArgs(t,e,o){const i=this.__data,r=[];for(let s=0,n=t.length;s<n;s++){let{name:n,structured:a,wildcard:l,value:d,literal:c}=t[s];if(!c)if(l){const t=Vt(n,e),r=oo(i,o,t?e:n);d={path:t?e:n,value:r,base:t?qt(i,n):r}}else d=a?oo(i,o,n):i[n];if(bt&&!this._overrideLegacyUndefined&&void 0===d&&t.length>1)return Ae;r[s]=d}return r}static addPropertyEffect(t,e,o){this.prototype._addPropertyEffect(t,e,o)}static createPropertyObserver(t,e,o){this.prototype._createPropertyObserver(t,e,o)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,o){this.prototype._createComputedProperty(t,e,o)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let o=this.constructor._parseTemplate(t),i=this.__preBoundTemplateInfo==o;if(!i)for(let t in o.propertyEffects)this._createPropertyAccessor(t);if(e)if(o=Object.create(o),o.wasPreBound=i,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,i=e.lastChild;o.parent=e,e.lastChild=o,o.previousSibling=i,i?i.nextSibling=o:e.firstChild=o}else this.__templateInfo=o;else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(t,e,o){(t.hostProps=t.hostProps||{})[e]=!0;let i=t.propertyEffects=t.propertyEffects||{};(i[e]=i[e]||[]).push(o)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),no.push(this);let o=super._stampTemplate(t,e);if(no.pop(),e.nodeList=o.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=o.firstChild;e;e=e.nextSibling)t.push(e)}return o.templateInfo=e,function(t,e){let{nodeList:o,nodeInfoList:i}=e;if(i.length)for(let e=0;e<i.length;e++){let r=i[e],s=o[e],n=r.bindings;if(n)for(let e=0;e<n.length;e++){let o=n[e];Ye(s,o),qe(s,t,o)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:o,nextSibling:i,parent:r}=e;o?o.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=o:r&&(r.lastChild=o),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];Ft(Ft(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,o,i){let r=e._parseTemplateNode.call(this,t,o,i);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,o);e&&(t.textContent=Qe(e)||" ",Ve(this,o,i,"text","textContent",e),r=!0)}return r}static _parseTemplateNodeAttribute(t,o,i,r,s){let n=this._parseBindings(s,o);if(n){let e=r,s="property";Se.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");let a=Qe(n);return a&&"attribute"==s&&("class"==r&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(r)),t.setAttribute(r,a)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(r,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(r=Jt(r)),Ve(this,o,i,s,r,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,o,i,r,s)}static _parseTemplateNestedTemplate(t,o,i){let r=e._parseTemplateNestedTemplate.call(this,t,o,i);const s=t.parentNode,n=i.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;vt&&(a||l)&&(s.removeChild(t),(i=i.parentInfo).templateInfo=n,i.noted=!0,r=!1);let d=n.hostProps;if(wt&&a)d&&(o.hostProps=Object.assign(o.hostProps||{},d),vt||(i.parentInfo.noted=!0));else{let t="{";for(let e in d){Ve(this,o,i,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return r}static _parseBindings(t,e){let o,i=[],r=0;for(;null!==(o=Ze.exec(t));){o.index>r&&i.push({literal:t.slice(r,o.index)});let s=o[1][0],n=Boolean(o[2]),a=o[3].trim(),l=!1,d="",c=-1;"{"==s&&(c=a.indexOf("::"))>0&&(d=a.substring(c+2),a=a.substring(0,c),l=!0);let h=to(a),u=[];if(h){let{args:t,methodName:o}=h;for(let e=0;e<t.length;e++){let o=t[e];o.literal||u.push(o)}let i=e.dynamicFns;(i&&i[o]||h.static)&&(u.push(o),h.dynamicFn=!0)}else u.push(a);i.push({source:a,mode:s,negate:n,customEvent:l,signature:h,dependencies:u,event:d}),r=Ze.lastIndex}if(r&&r<t.length){let e=t.substring(r);e&&i.push({literal:e})}return i.length?i:null}static _evaluateBinding(t,e,o,i,r,s){let n;return n=e.signature?Ge(t,o,i,0,e.signature):o!=e.source?qt(t,e.source):s&&Rt(o)?qt(t,o):t.__data[o],e.negate&&(n=!n),n}}})),no=[];const ao=At((t=>{const e=le(t);function o(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const o=t.properties;o&&(e=
1003
+ */let Ae=0;const ke=[],Ee={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Pe="__computeInfo",Se=/[A-Z]/;function De(t,e,o){let i=t[e];if(i){if(!t.hasOwnProperty(e)&&(i=t[e]=Object.create(t[e]),o))for(let t in i){let e=i[t],o=i[t]=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]}}else i=t[e]={};return i}function Te(t,e,o,i,r,s){if(e){let n=!1;const a=Ae++;for(let l in o){let d=e[r?Ht(l):l];if(d)for(let e,c=0,h=d.length;c<h&&(e=d[c]);c++)e.info&&e.info.lastRun===a||r&&!Ie(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,o,i,e.info,r,s),n=!0)}return n}return!1}function Oe(t,e,o,i,r,s,n,a){let l=!1,d=e[n?Ht(i):i];if(d)for(let e,c=0,h=d.length;c<h&&(e=d[c]);c++)e.info&&e.info.lastRun===o||n&&!Ie(i,e.trigger)||(e.info&&(e.info.lastRun=o),e.fn(t,i,r,s,e.info,n,a),l=!0);return l}function Ie(t,e){if(e){let o=e.name;return o==t||!(!e.structured||!Bt(o,t))||!(!e.wildcard||!Vt(o,t))}return!0}function $e(t,e,o,i,r){let s="string"==typeof r.method?t[r.method]:r.method,n=r.property;s?s.call(t,t.__data[n],i[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Ne(t,e,o){let i=Ht(e);if(i!==e){return ze(t,Zt(i)+"-changed",o[e],e),!0}return!1}function ze(t,e,o,i){let r={value:o,queueProperty:!0};i&&(r.path=i),Ft(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Me(t,e,o,i,r,s){let n=(s?Ht(e):e)!=e?e:null,a=n?qt(t,n):t.__data[e];n&&void 0===a&&(a=o[e]),ze(t,r.eventName,a,n)}function Le(t,e,o,i,r){let s=t.__data[e];ut&&(s=ut(s,r.attrName,"attribute",t)),t._propertyToAttribute(e,r.attrName,s)}function Fe(t,e,o,i){let r=t[Ee.COMPUTE];if(r)if(yt){Ae++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const o=t[Ee.COMPUTE];let i,{counts:r,ready:s,total:n}=function(t){const e=t[Pe],o={},i=t[Ee.COMPUTE],r=[];let s=0;for(let t in e){const i=e[t];s+=o[t]=i.args.filter((t=>!t.literal)).length+(i.dynamicFn?1:0)}for(let t in i)e[t]||r.push(t);return{counts:o,ready:r,total:s}}(t);for(;i=s.shift();){e.set(i,e.size);const t=o[i];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--r[e]&&s.push(e)}))}if(0!==n){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)He(t,r,n,s,i);let a;for(;a=n.shift();)Be(t,"",e,o,a)&&He(a.methodInfo,r,n,s,i);Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;Te(t,r,s,o,i);)Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Re=(t,e,o)=>{let i=0,r=e.length-1,s=-1;for(;i<=r;){const n=i+r>>1,a=o.get(e[n].methodInfo)-o.get(t.methodInfo);if(a<0)i=n+1;else{if(!(a>0)){s=n;break}r=n-1}}s<0&&(s=r+1),e.splice(s,0,t)},He=(t,e,o,i,r)=>{const s=e[r?Ht(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun===Ae||r&&!Ie(t,n.trigger)||(n.info.lastRun=Ae,Re(n.info,o,i))}};function Be(t,e,o,i,r){let s=Ge(t,e,o,i,r);if(s===ke)return!1;let n=r.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Ve(t,e,o,i,r,s,n){o.bindings=o.bindings||[];let a={kind:i,target:r,parts:s,literal:n,isCompound:1!==s.length};if(o.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Zt(r)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let o=0;o<a.parts.length;o++){let i=a.parts[o];i.compoundIndex=o,je(t,e,a,i,l)}}function je(t,e,o,i,r){if(!i.literal)if("attribute"===o.kind&&"-"===o.target[0])console.warn("Cannot set attribute "+o.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,n={index:r,binding:o,part:i,evaluator:t};for(let o=0;o<s.length;o++){let i=s[o];"string"==typeof i&&(i=eo(i),i.wildcard=!0),t._addTemplatePropertyEffect(e,i.rootProperty,{fn:Ue,info:n,trigger:i})}}}function Ue(t,e,o,i,r,s,n){let a=n[r.index],l=r.binding,d=r.part;if(s&&d.source&&e.length>d.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let i=o[e];e=jt(d.source,l.target,e),a._setPendingPropertyOrPath(e,i,!1,!0)&&t._enqueueClient(a)}else{let n=r.evaluator._evaluateBinding(t,d,e,o,i,s);n!==ke&&function(t,e,o,i,r){r=function(t,e,o,i){if(o.isCompound){let r=t.__dataCompoundStorage[o.target];r[i.compoundIndex]=e,e=r.join("")}"attribute"!==o.kind&&("textContent"!==o.target&&("value"!==o.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,r,o,i),ut&&(r=ut(r,o.target,o.kind,e));if("attribute"==o.kind)t._valueToNodeAttribute(e,r,o.target);else{let i=o.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[i]?e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||e._setPendingProperty(i,r)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,i,r)}}(t,a,l,d,n)}}function Ye(t,e){if(e.isCompound){let o=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,r=new Array(i.length);for(let t=0;t<i.length;t++)r[t]=i[t].literal;let s=e.target;o[s]=r,e.literal&&"property"==e.kind&&("className"===s&&(t=Ft(t)),t[s]=e.literal)}}function qe(t,e,o){if(o.listenerEvent){let i=o.parts[0];t.addEventListener(o.listenerEvent,(function(t){!function(t,e,o,i,r){let s,n=t.detail,a=n&&n.path;a?(i=jt(o,i,a),s=n&&n.value):s=t.currentTarget[o],s=r?!s:s,e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||!e._setPendingPropertyOrPath(i,s,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,o.target,i.source,i.negate)}))}}function We(t,e,o,i,r,s){s=e.static||s&&("object"!=typeof s||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:s};for(let r,s=0;s<e.args.length&&(r=e.args[s]);s++)r.literal||t._addPropertyEffect(r.rootProperty,o,{fn:i,info:n,trigger:r});return s&&t._addPropertyEffect(e.methodName,o,{fn:i,info:n}),n}function Ge(t,e,o,i,r){let s=t._methodHost||t,n=s[r.methodName];if(n){let i=t._marshalArgs(r.args,e,o);return i===ke?ke:n.apply(s,i)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Ke=[],Xe="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Je="(?:("+Xe+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ze=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+Xe+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+Je+"(?:,\\s*"+Je+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Qe(t){let e="";for(let o=0;o<t.length;o++){e+=t[o].literal||""}return e}function to(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ke};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let o=eo(t);return o.literal||(e.static=!1),o}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t)}return t}return null}function eo(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),o={name:e,value:"",literal:!1},i=e[0];switch("-"===i&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':o.value=e.slice(1,-1),o.literal=!0;break;case"#":o.value=Number(e),o.literal=!0}return o.literal||(o.rootProperty=Ht(e),o.structured=Rt(e),o.structured&&(o.wildcard=".*"==e.slice(-2),o.wildcard&&(o.name=e.slice(0,-2)))),o}function oo(t,e,o){let i=qt(t,o);return void 0===i&&(i=e[o]),i}function io(t,e,o,i){const r={indexSplices:i};bt&&!t._overrideLegacyUndefined&&(e.splices=r),t.notifyPath(o+".splices",r),t.notifyPath(o+".length",e.length),bt&&!t._overrideLegacyUndefined&&(r.indexSplices=[])}function ro(t,e,o,i,r,s){io(t,e,o,[{index:i,addedCount:r,removed:s,object:e,type:"splice"}])}const so=kt((t=>{const e=Ce(ue(t));return class extends e{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 Ee}_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(no.length){let t=no[no.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[Ee.READ_ONLY];for(let o in t)e&&e[o]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=t[o])}_addPropertyEffect(t,e,o){this._createPropertyAccessor(t,e==Ee.READ_ONLY);let i=De(this,e,!0)[t];i||(i=this[e][t]=[]),i.push(o)}_removePropertyEffect(t,e,o){let i=De(this,e,!0)[t],r=i.indexOf(o);r>=0&&i.splice(r,1)}_hasPropertyEffect(t,e){let o=this[e];return Boolean(o&&o[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Ee.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Ee.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Ee.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Ee.COMPUTE)}_setPendingPropertyOrPath(t,e,o,i){if(i||Ht(Array.isArray(t)?t[0]:t)!==t){if(!i){let o=qt(this,t);if(!(t=Wt(this,t,e))||!super._shouldPropertyChange(t,e,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,o))return function(t,e,o){let i=t.__dataLinkedPaths;if(i){let r;for(let s in i){let n=i[s];Vt(s,e)?(r=jt(s,n,e),t._setPendingPropertyOrPath(r,o,!0,!0)):Vt(n,e)&&(r=jt(n,s,e),t._setPendingPropertyOrPath(r,o,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,o);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,o){o===t[e]&&"object"!=typeof o||("className"===e&&(t=Ft(t)),t[e]=o)}_setPendingProperty(t,e,o){let i=this.__dataHasPaths&&Rt(t),r=i?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,r[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),i?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(i||this[Ee.NOTIFY]&&this[Ee.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=o),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let o=t[e];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let o in t)!e&&this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][o]||this._setPendingPropertyOrPath(o,t[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,o){let i,r=this.__dataHasPaths;this.__dataHasPaths=!1,Fe(this,e,o,r),i=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,o,r),this._flushClients(),Te(this,this[Ee.REFLECT],e,o,r),Te(this,this[Ee.OBSERVE],e,o,r),i&&function(t,e,o,i,r){let s,n,a=t[Ee.NOTIFY],l=Ae++;for(let n in e)e[n]&&(a&&Oe(t,a,l,n,o,i,r)||r&&Ne(t,n,o))&&(s=!0);s&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,i,e,o,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,o){this[Ee.PROPAGATE]&&Te(this,this[Ee.PROPAGATE],t,e,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,o)}_runEffectsForTemplate(t,e,o,i){const r=(e,i)=>{Te(this,t.propertyEffects,e,o,i,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,e,o,i)};t.runEffects?t.runEffects(r,e,i):r(e,i)}linkPaths(t,e){t=Ut(t),e=Ut(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ut(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let o={path:""};io(this,qt(this,t,o),o.path,e)}get(t,e){return qt(e||this,t)}set(t,e,o){o?Wt(o,t,e):this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let o={path:""},i=qt(this,t,o),r=i.length,s=i.push(...e);return e.length&&ro(this,i,o.path,r,e.length,[]),s}pop(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),r=o.pop();return i&&ro(this,o,e.path,o.length,0,[r]),r}splice(t,e,o,...i){let r,s={path:""},n=qt(this,t,s);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),r=2===arguments.length?n.splice(e):n.splice(e,o,...i),(i.length||r.length)&&ro(this,n,s.path,e,i.length,r),r}shift(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),r=o.shift();return i&&ro(this,o,e.path,0,0,[r]),r}unshift(t,...e){let o={path:""},i=qt(this,t,o),r=i.unshift(...e);return e.length&&ro(this,i,o.path,0,e.length,[]),r}notifyPath(t,e){let o;if(1==arguments.length){let i={path:""};e=qt(this,t,i),o=i.path}else o=Array.isArray(t)?Ut(t):t;this._setPendingPropertyOrPath(o,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var o;this._addPropertyEffect(t,Ee.READ_ONLY),e&&(this["_set"+(o=t,o[0].toUpperCase()+o.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,o){let i={property:t,method:e,dynamicFn:Boolean(o)};this._addPropertyEffect(t,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:t}}),o&&this._addPropertyEffect(e,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:e}})}_createMethodObserver(t,e){let o=to(t);if(!o)throw new Error("Malformed observer expression '"+t+"'");We(this,o,Ee.OBSERVE,Ge,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Ee.NOTIFY,{fn:Me,info:{eventName:Zt(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Ee.REFLECT,{fn:Le,info:{attrName:e}})}_createComputedProperty(t,e,o){let i=to(e);if(!i)throw new Error("Malformed computed expression '"+e+"'");const r=We(this,i,Ee.COMPUTE,Be,t,o);De(this,Pe)[t]=r}_marshalArgs(t,e,o){const i=this.__data,r=[];for(let s=0,n=t.length;s<n;s++){let{name:n,structured:a,wildcard:l,value:d,literal:c}=t[s];if(!c)if(l){const t=Vt(n,e),r=oo(i,o,t?e:n);d={path:t?e:n,value:r,base:t?qt(i,n):r}}else d=a?oo(i,o,n):i[n];if(bt&&!this._overrideLegacyUndefined&&void 0===d&&t.length>1)return ke;r[s]=d}return r}static addPropertyEffect(t,e,o){this.prototype._addPropertyEffect(t,e,o)}static createPropertyObserver(t,e,o){this.prototype._createPropertyObserver(t,e,o)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,o){this.prototype._createComputedProperty(t,e,o)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let o=this.constructor._parseTemplate(t),i=this.__preBoundTemplateInfo==o;if(!i)for(let t in o.propertyEffects)this._createPropertyAccessor(t);if(e)if(o=Object.create(o),o.wasPreBound=i,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,i=e.lastChild;o.parent=e,e.lastChild=o,o.previousSibling=i,i?i.nextSibling=o:e.firstChild=o}else this.__templateInfo=o;else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(t,e,o){(t.hostProps=t.hostProps||{})[e]=!0;let i=t.propertyEffects=t.propertyEffects||{};(i[e]=i[e]||[]).push(o)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),no.push(this);let o=super._stampTemplate(t,e);if(no.pop(),e.nodeList=o.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=o.firstChild;e;e=e.nextSibling)t.push(e)}return o.templateInfo=e,function(t,e){let{nodeList:o,nodeInfoList:i}=e;if(i.length)for(let e=0;e<i.length;e++){let r=i[e],s=o[e],n=r.bindings;if(n)for(let e=0;e<n.length;e++){let o=n[e];Ye(s,o),qe(s,t,o)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:o,nextSibling:i,parent:r}=e;o?o.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=o:r&&(r.lastChild=o),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];Ft(Ft(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,o,i){let r=e._parseTemplateNode.call(this,t,o,i);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,o);e&&(t.textContent=Qe(e)||" ",Ve(this,o,i,"text","textContent",e),r=!0)}return r}static _parseTemplateNodeAttribute(t,o,i,r,s){let n=this._parseBindings(s,o);if(n){let e=r,s="property";Se.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");let a=Qe(n);return a&&"attribute"==s&&("class"==r&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(r)),t.setAttribute(r,a)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(r,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(r=Jt(r)),Ve(this,o,i,s,r,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,o,i,r,s)}static _parseTemplateNestedTemplate(t,o,i){let r=e._parseTemplateNestedTemplate.call(this,t,o,i);const s=t.parentNode,n=i.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;vt&&(a||l)&&(s.removeChild(t),(i=i.parentInfo).templateInfo=n,i.noted=!0,r=!1);let d=n.hostProps;if(wt&&a)d&&(o.hostProps=Object.assign(o.hostProps||{},d),vt||(i.parentInfo.noted=!0));else{let t="{";for(let e in d){Ve(this,o,i,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return r}static _parseBindings(t,e){let o,i=[],r=0;for(;null!==(o=Ze.exec(t));){o.index>r&&i.push({literal:t.slice(r,o.index)});let s=o[1][0],n=Boolean(o[2]),a=o[3].trim(),l=!1,d="",c=-1;"{"==s&&(c=a.indexOf("::"))>0&&(d=a.substring(c+2),a=a.substring(0,c),l=!0);let h=to(a),u=[];if(h){let{args:t,methodName:o}=h;for(let e=0;e<t.length;e++){let o=t[e];o.literal||u.push(o)}let i=e.dynamicFns;(i&&i[o]||h.static)&&(u.push(o),h.dynamicFn=!0)}else u.push(a);i.push({source:a,mode:s,negate:n,customEvent:l,signature:h,dependencies:u,event:d}),r=Ze.lastIndex}if(r&&r<t.length){let e=t.substring(r);e&&i.push({literal:e})}return i.length?i:null}static _evaluateBinding(t,e,o,i,r,s){let n;return n=e.signature?Ge(t,o,i,0,e.signature):o!=e.source?qt(t,e.source):s&&Rt(o)?qt(t,o):t.__data[o],e.negate&&(n=!n),n}}})),no=[];const ao=kt((t=>{const e=le(t);function o(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const o=t.properties;o&&(e=
1004
1004
  /**
1005
1005
  @license
1006
1006
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1010,7 +1010,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
1010
1010
  Code distributed by Google as part of the polymer project is also
1011
1011
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1012
1012
  */
1013
- function(t){const e={};for(let o in t){const i=t[o];e[o]="function"==typeof i?{type:i}:i}return e}(o))}t.__ownProperties=e}return t.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=o(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=i(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=o(this);this.__properties=Object.assign({},t&&t._properties,i(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r})),lo=window.ShadyCSS&&window.ShadyCSS.cssBuild,co=At((t=>{const e=ao(so(t));function o(t,e,o,i){o.computed&&(o.readOnly=!0),o.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,o.computed,i)),o.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!o.computed):!1===o.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),o.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===o.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),o.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===o.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),o.observer&&t._createPropertyObserver(e,o.observer,i[o.observer]),t._addPropertyToAttributeMap(e)}function i(t,e,o,i){if(!lo){const r=e.content.querySelectorAll("style"),s=zt(e),n=function(t){let e=It(t);return e?Lt(e):[]}(o),a=e.content.firstElementChild;for(let o=0;o<n.length;o++){let r=n[o];r.textContent=t._processStyleText(r.textContent,i),e.content.insertBefore(r,a)}let l=0;for(let e=0;e<s.length;e++){let o=s[e],n=r[l];n!==o?(o=o.cloneNode(!0),n.parentNode.insertBefore(o,n)):l++,o.textContent=t._processStyleText(o.textContent,i)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,o),Ct&&lo&&ct){const o=e.content.querySelectorAll("style");if(o){let e="";Array.from(o).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((o=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",o))||(o.__ownObservers=o.hasOwnProperty(JSCompiler_renameProperty("observers",o))?o.observers:null),o.__ownObservers);var o;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):ft||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)o(this.prototype,e,t[e],t)}static createObservers(t,e){const o=this.prototype;for(let i=0;i<t.length;i++)o._createMethodObserver(t[i],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!pt||mt)&&(e=Tt.import(t,"template"),pt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=lt(t.url);else{const t=Tt.import(this.is);this._importPath=t&&t.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=ht,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let o in e){let i=e[o];"value"in i&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[o]=i)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let o=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof o.value?o.value.call(this):o.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return at(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const o=this.importPath;i(this,e,t,o?nt(o):""),this.prototype._bindTemplate(e)}}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(t){const e=Ft(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),gt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.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(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=nt(this.importPath)),nt(t,e)}static _parseTemplateContent(t,o,i){return o.dynamicFns=o.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,o,i)}static _addTemplatePropertyEffect(t,o,i){return!_t||o in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,o,i)}}})),ho=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});
1013
+ function(t){const e={};for(let o in t){const i=t[o];e[o]="function"==typeof i?{type:i}:i}return e}(o))}t.__ownProperties=e}return t.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=o(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=i(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=o(this);this.__properties=Object.assign({},t&&t._properties,i(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r})),lo=window.ShadyCSS&&window.ShadyCSS.cssBuild,co=kt((t=>{const e=ao(so(t));function o(t,e,o,i){o.computed&&(o.readOnly=!0),o.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,o.computed,i)),o.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!o.computed):!1===o.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),o.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===o.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),o.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===o.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),o.observer&&t._createPropertyObserver(e,o.observer,i[o.observer]),t._addPropertyToAttributeMap(e)}function i(t,e,o,i){if(!lo){const r=e.content.querySelectorAll("style"),s=Mt(e),n=function(t){let e=It(t);return e?Lt(e):[]}(o),a=e.content.firstElementChild;for(let o=0;o<n.length;o++){let r=n[o];r.textContent=t._processStyleText(r.textContent,i),e.content.insertBefore(r,a)}let l=0;for(let e=0;e<s.length;e++){let o=s[e],n=r[l];n!==o?(o=o.cloneNode(!0),n.parentNode.insertBefore(o,n)):l++,o.textContent=t._processStyleText(o.textContent,i)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,o),Ct&&lo&&ct){const o=e.content.querySelectorAll("style");if(o){let e="";Array.from(o).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((o=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",o))||(o.__ownObservers=o.hasOwnProperty(JSCompiler_renameProperty("observers",o))?o.observers:null),o.__ownObservers);var o;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):ft||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)o(this.prototype,e,t[e],t)}static createObservers(t,e){const o=this.prototype;for(let i=0;i<t.length;i++)o._createMethodObserver(t[i],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!pt||mt)&&(e=Tt.import(t,"template"),pt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=lt(t.url);else{const t=Tt.import(this.is);this._importPath=t&&t.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=ht,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let o in e){let i=e[o];"value"in i&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[o]=i)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let o=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof o.value?o.value.call(this):o.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return at(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const o=this.importPath;i(this,e,t,o?nt(o):""),this.prototype._bindTemplate(e)}}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(t){const e=Ft(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),gt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.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(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=nt(this.importPath)),nt(t,e)}static _parseTemplateContent(t,o,i){return o.dynamicFns=o.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,o,i)}static _addTemplatePropertyEffect(t,o,i){return!_t||o in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,o,i)}}})),ho=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});
1014
1014
  /**
1015
1015
  * @fileoverview
1016
1016
  * @suppress {checkPrototypalTypes}
@@ -1114,7 +1114,7 @@ class go{static detectScrollType(){const t=document.createElement("div");t.textC
1114
1114
  * See https://vaadin.com/commercial-license-and-service-terms for the full
1115
1115
  * license.
1116
1116
  */
1117
- const ko=e`
1117
+ const Ao=e`
1118
1118
  :host {
1119
1119
  /* Square */
1120
1120
  --lumo-space-xs: 0.25rem;
@@ -1137,7 +1137,7 @@ const ko=e`
1137
1137
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1138
1138
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1139
1139
  }
1140
- `,Ao=document.createElement("template");Ao.innerHTML=`<style>${ko.toString().replace(":host","html")}</style>`,document.head.appendChild(Ao.content);
1140
+ `,ko=document.createElement("template");ko.innerHTML=`<style>${Ao.toString().replace(":host","html")}</style>`,document.head.appendChild(ko.content);
1141
1141
  /**
1142
1142
  * @license
1143
1143
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -1239,7 +1239,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1239
1239
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1240
1240
  Code distributed by Google as part of the polymer project is also
1241
1241
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1242
- */function Mo(){Io=!0,requestAnimationFrame((function(){Io=!1,function(t){for(;t.length;)zo(t.shift())}($o),setTimeout((function(){!function(t){for(let e=0,o=t.length;e<o;e++)zo(t.shift())}(No)}))}))}function zo(t){const e=t[0],o=t[1],i=t[2];try{o.apply(e,i)}catch(t){setTimeout((()=>{throw t}))}}function Lo(t,e,o){Io||Mo(),No.push([t,e,o])}
1242
+ */function zo(){Io=!0,requestAnimationFrame((function(){Io=!1,function(t){for(;t.length;)Mo(t.shift())}($o),setTimeout((function(){!function(t){for(let e=0,o=t.length;e<o;e++)Mo(t.shift())}(No)}))}))}function Mo(t){const e=t[0],o=t[1],i=t[2];try{o.apply(e,i)}catch(t){setTimeout((()=>{throw t}))}}function Lo(t,e,o){Io||zo(),No.push([t,e,o])}
1243
1243
  /**
1244
1244
  @license
1245
1245
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1248,7 +1248,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1248
1248
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1249
1249
  Code distributed by Google as part of the polymer project is also
1250
1250
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1251
- */function Fo(t,e,o,i,r){let s;r&&(s="object"==typeof o&&null!==o,s&&(i=t.__dataTemp[e]));let n=i!==o&&(i==i||o==o);return s&&n&&(t.__dataTemp[e]=o),n}const Ro=At((t=>class extends t{_shouldPropertyChange(t,e,o){return Fo(this,t,e,o,!0)}})),Ho=At((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,o){return Fo(this,t,e,o,this.mutableData)}}));Ro._mutablePropertyChange=Fo;
1251
+ */function Fo(t,e,o,i,r){let s;r&&(s="object"==typeof o&&null!==o,s&&(i=t.__dataTemp[e]));let n=i!==o&&(i==i||o==o);return s&&n&&(t.__dataTemp[e]=o),n}const Ro=kt((t=>class extends t{_shouldPropertyChange(t,e,o){return Fo(this,t,e,o,!0)}})),Ho=kt((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,o){return Fo(this,t,e,o,this.mutableData)}}));Ro._mutablePropertyChange=Fo;
1252
1252
  /**
1253
1253
  @license
1254
1254
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1269,7 +1269,7 @@ let Bo=null;function Vo(){return Bo}Vo.prototype=Object.create(HTMLTemplateEleme
1269
1269
  * See https://vaadin.com/commercial-license-and-service-terms for the full
1270
1270
  * license.
1271
1271
  */
1272
- const ti=t=>t.test(navigator.userAgent),ei=t=>t.test(navigator.platform);ti(/Android/),ti(/Chrome/)&&/Google Inc/.test(navigator.vendor);const oi=ti(/Firefox/),ii=ei(/^iPad/)||ei(/^Mac/)&&navigator.maxTouchPoints>1,ri=ei(/^iPhone/)||ii;ti(/^((?!chrome|android).)*safari/i);const si=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})(),ni=At((t=>class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}));
1272
+ const ti=t=>t.test(navigator.userAgent),ei=t=>t.test(navigator.platform);ti(/Android/),ti(/Chrome/)&&/Google Inc/.test(navigator.vendor);const oi=ti(/Firefox/),ii=ei(/^iPad/)||ei(/^Mac/)&&navigator.maxTouchPoints>1,ri=ei(/^iPhone/)||ii;ti(/^((?!chrome|android).)*safari/i);const si=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})(),ni=kt((t=>class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}));
1273
1273
  /**
1274
1274
  * @license
1275
1275
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -2277,7 +2277,7 @@ try {
2277
2277
  * Code distributed by Google as part of the polymer project is also
2278
2278
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2279
2279
  */
2280
- let xi=0,Ci=0;const ki=[];let Ai=0,Ei=!1;const Pi=document.createTextNode("");new window.MutationObserver((function(){Ei=!1;const t=ki.length;for(let e=0;e<t;e++){const t=ki[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}ki.splice(0,t),Ci+=t})).observe(Pi,{characterData:!0});const Si={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},Di={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Ti={run(t){Ei||(Ei=!0,Pi.textContent=Ai,Ai+=1),ki.push(t);const e=xi;return xi+=1,e},cancel(t){const e=t-Ci;if(e>=0){if(!ki[e])throw new Error(`invalid async handle: ${t}`);ki[e]=null}}};
2280
+ let xi=0,Ci=0;const Ai=[];let ki=0,Ei=!1;const Pi=document.createTextNode("");new window.MutationObserver((function(){Ei=!1;const t=Ai.length;for(let e=0;e<t;e++){const t=Ai[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Ai.splice(0,t),Ci+=t})).observe(Pi,{characterData:!0});const Si={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},Di={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Ti={run(t){Ei||(Ei=!0,Pi.textContent=ki,ki+=1),Ai.push(t);const e=xi;return xi+=1,e},cancel(t){const e=t-Ci;if(e>=0){if(!Ai[e])throw new Error(`invalid async handle: ${t}`);Ai[e]=null}}};
2281
2281
  /**
2282
2282
  @license
2283
2283
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2298,7 +2298,7 @@ let Oi,Ii=class t{static debounce(e,o,i){return e instanceof t?e._cancelAsync():
2298
2298
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2299
2299
  * license.
2300
2300
  */
2301
- window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){vi(wi)};const Ni=new Set,Mi=t=>class extends(xo(t)){static get version(){return"23.5.12"}static finalize(){super.finalize();const{is:t}=this;var e;t&&!Ni.has(t)&&(window.Vaadin.registrations.push(this),Ni.add(t),window.Vaadin.developmentModeCallback&&(Oi=Ii.debounce(Oi,Di,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),e=Oi,$i.add(e)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
2301
+ window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){vi(wi)};const Ni=new Set,zi=t=>class extends(xo(t)){static get version(){return"23.5.12"}static finalize(){super.finalize();const{is:t}=this;var e;t&&!Ni.has(t)&&(window.Vaadin.registrations.push(this),Ni.add(t),window.Vaadin.developmentModeCallback&&(Oi=Ii.debounce(Oi,Di,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),e=Oi,$i.add(e)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
2302
2302
  /**
2303
2303
  * @license
2304
2304
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -2308,7 +2308,7 @@ window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.regist
2308
2308
  *
2309
2309
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2310
2310
  * license.
2311
- */;let zi=0;
2311
+ */;let Mi=0;
2312
2312
  /**
2313
2313
  * @license
2314
2314
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -2319,7 +2319,7 @@ window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.regist
2319
2319
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2320
2320
  * license.
2321
2321
  */
2322
- class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.localName}-${zi++}`}constructor(t,e,o,i,r){super(),this.host=t,this.slotName=e,this.slotFactory=o,this.slotInitializer=i,r&&(this.defaultId=Li.generateId(e,t))}hostConnected(){if(!this.initialized){let t=this.getSlotChild();t?(this.node=t,this.initCustomNode(t)):t=this.attachDefaultNode(),this.initNode(t),this.observe(),this.initialized=!0}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:o}=this;let i=this.defaultNode;return!i&&o&&(i=o(t),i instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&t.appendChild(i),i}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}initNode(t){const{slotInitializer:e}=this;e&&e(this.host,t)}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Oo(o,(t=>{const e=this.node,o=t.addedNodes.find((t=>t!==e));t.removedNodes.length&&t.removedNodes.forEach((t=>{this.teardownNode(t)})),o&&(e&&e.isConnected&&this.host.removeChild(e),this.node=o,o!==this.defaultNode&&(this.initCustomNode(o),this.initNode(o)))}))}}
2322
+ class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.localName}-${Mi++}`}constructor(t,e,o,i,r){super(),this.host=t,this.slotName=e,this.slotFactory=o,this.slotInitializer=i,r&&(this.defaultId=Li.generateId(e,t))}hostConnected(){if(!this.initialized){let t=this.getSlotChild();t?(this.node=t,this.initCustomNode(t)):t=this.attachDefaultNode(),this.initNode(t),this.observe(),this.initialized=!0}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:o}=this;let i=this.defaultNode;return!i&&o&&(i=o(t),i instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&t.appendChild(i),i}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}initNode(t){const{slotInitializer:e}=this;e&&e(this.host,t)}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Oo(o,(t=>{const e=this.node,o=t.addedNodes.find((t=>t!==e));t.removedNodes.length&&t.removedNodes.forEach((t=>{this.teardownNode(t)})),o&&(e&&e.isConnected&&this.host.removeChild(e),this.node=o,o!==this.defaultNode&&(this.initCustomNode(o),this.initNode(o)))}))}}
2323
2323
  /**
2324
2324
  * @license
2325
2325
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -2339,7 +2339,7 @@ class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.l
2339
2339
  *
2340
2340
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2341
2341
  * license.
2342
- */const Ri=At((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Hi="string"==typeof document.head.style.touchAction,Bi="__polymerGestures",Vi="__polymerGesturesHandled",ji="__polymerGesturesTouchAction",Ui=["mousedown","mousemove","mouseup","click"],Yi=[0,1,4,2],qi=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();
2342
+ */const Ri=kt((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Hi="string"==typeof document.head.style.touchAction,Bi="__polymerGestures",Vi="__polymerGesturesHandled",ji="__polymerGesturesTouchAction",Ui=["mousedown","mousemove","mouseup","click"],Yi=[0,1,4,2],qi=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();
2343
2343
  /**
2344
2344
  @license
2345
2345
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2358,7 +2358,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2358
2358
  *
2359
2359
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2360
2360
  * license.
2361
- */lr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this;tr(this.info,(t=>{Zi(t)||(ur("up",e,t),er(o.info))}),(t=>{Zi(t)&&ur("up",e,t),er(o.info)})),ur("down",e,t)},touchstart(t){ur("down",sr(t),t.changedTouches[0],t)},touchend(t){ur("up",sr(t),t.changedTouches[0],t)}}),lr({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},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,er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this,i=t=>{const i=t.clientX,r=t.clientY;pr(o.info,i,r)&&(o.info.state=o.info.started?"mouseup"===t.type?"end":"track":"start","start"===o.info.state&&hr("tap"),o.info.addMove({x:i,y:r}),Zi(t)||(o.info.state="end",er(o.info)),e&&mr(o.info,e,t),o.info.started=!0)};tr(this.info,i,(t=>{o.info.started&&i(t),er(o.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=sr(t),o=t.changedTouches[0],i=o.clientX,r=o.clientY;pr(this.info,i,r)&&("start"===this.info.state&&hr("tap"),this.info.addMove({x:i,y:r}),mr(this.info,e,o),this.info.state="track",this.info.started=!0)},touchend(t){const e=sr(t),o=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),mr(this.info,e,o))}}),lr({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(t){Zi(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Zi(t)&&fr(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){fr(this.info,t.changedTouches[0],t)}});const _r=At((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),gr=t=>class extends(Ri(_r(t))){get _activeKeys(){return[" "]}ready(){super.ready(),ar(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),ar(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
2361
+ */lr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this;tr(this.info,(t=>{Zi(t)||(ur("up",e,t),er(o.info))}),(t=>{Zi(t)&&ur("up",e,t),er(o.info)})),ur("down",e,t)},touchstart(t){ur("down",sr(t),t.changedTouches[0],t)},touchend(t){ur("up",sr(t),t.changedTouches[0],t)}}),lr({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},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,er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this,i=t=>{const i=t.clientX,r=t.clientY;pr(o.info,i,r)&&(o.info.state=o.info.started?"mouseup"===t.type?"end":"track":"start","start"===o.info.state&&hr("tap"),o.info.addMove({x:i,y:r}),Zi(t)||(o.info.state="end",er(o.info)),e&&mr(o.info,e,t),o.info.started=!0)};tr(this.info,i,(t=>{o.info.started&&i(t),er(o.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=sr(t),o=t.changedTouches[0],i=o.clientX,r=o.clientY;pr(this.info,i,r)&&("start"===this.info.state&&hr("tap"),this.info.addMove({x:i,y:r}),mr(this.info,e,o),this.info.state="track",this.info.started=!0)},touchend(t){const e=sr(t),o=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),mr(this.info,e,o))}}),lr({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(t){Zi(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Zi(t)&&fr(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){fr(this.info,t.changedTouches[0],t)}});const _r=kt((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),gr=t=>class extends(Ri(_r(t))){get _activeKeys(){return[" "]}ready(){super.ready(),ar(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),ar(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
2362
2362
  /**
2363
2363
  * @license
2364
2364
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -2368,7 +2368,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2368
2368
  *
2369
2369
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2370
2370
  * license.
2371
- */,br=At((t=>class extends t{get _keyboardActive(){return ai}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),yr=t=>class extends(Ri(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
2371
+ */,br=kt((t=>class extends t{get _keyboardActive(){return ai}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),yr=t=>class extends(Ri(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
2372
2372
  /**
2373
2373
  * @license
2374
2374
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -2398,7 +2398,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2398
2398
  *
2399
2399
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2400
2400
  * license.
2401
- */class wr extends(vr(Mi(q(ni(_o))))){static get is(){return"vaadin-button"}static get template(){return mo`
2401
+ */class wr extends(vr(zi(q(ni(_o))))){static get is(){return"vaadin-button"}static get template(){return mo`
2402
2402
  <style>
2403
2403
  :host {
2404
2404
  display: inline-block;
@@ -2807,7 +2807,7 @@ const Cr=document.createElement("template");Cr.innerHTML='\n <style>\n @font
2807
2807
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2808
2808
  * license.
2809
2809
  */
2810
- const kr=e`
2810
+ const Ar=e`
2811
2811
  [part$='button'] {
2812
2812
  flex: none;
2813
2813
  width: 1em;
@@ -2834,7 +2834,7 @@ const kr=e`
2834
2834
  font-family: 'lumo-icons';
2835
2835
  display: block;
2836
2836
  }
2837
- `;H("",kr,{moduleId:"lumo-field-button"});
2837
+ `;H("",Ar,{moduleId:"lumo-field-button"});
2838
2838
  /**
2839
2839
  * @license
2840
2840
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -2845,7 +2845,7 @@ const kr=e`
2845
2845
  * See https://vaadin.com/commercial-license-and-service-terms for the full
2846
2846
  * license.
2847
2847
  */
2848
- const Ar=e`
2848
+ const kr=e`
2849
2849
  :host([has-helper]) [part='helper-text']::before {
2850
2850
  content: '';
2851
2851
  display: block;
@@ -3013,7 +3013,7 @@ const Ar=e`
3013
3013
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3014
3014
  * license.
3015
3015
  */
3016
- const Pr=[Er,kr,Ar,e`
3016
+ const Pr=[Er,Ar,kr,e`
3017
3017
  :host {
3018
3018
  --lumo-text-field-size: var(--lumo-size-m);
3019
3019
  color: var(--lumo-body-text-color);
@@ -3175,7 +3175,7 @@ const Pr=[Er,kr,Ar,e`
3175
3175
  * Google as part of the polymer project is also subject to an additional IP
3176
3176
  * rights grant found at http://polymer.github.io/PATENTS.txt
3177
3177
  */
3178
- const Sr="disable-upgrade",Dr=At((t=>{const e=co(t);let o=(t=>{for(;t;){const e=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(e)return e.get;t=Object.getPrototypeOf(t.prototype).constructor}return()=>[]})(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return o.call(this).concat(Sr)}_initializeProperties(){this.hasAttribute(Sr)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(t){return super._canApplyPropertyDefault(t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))}attributeChangedCallback(t,e,o,i){t==Sr?this.__isUpgradeDisabled&&null==o&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,Ft(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(t,e,o,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}));function Tr(t){return t?new Set(t.split(" ")):new Set}function Or(t){return[...t].join(" ")}
3178
+ const Sr="disable-upgrade",Dr=kt((t=>{const e=co(t);let o=(t=>{for(;t;){const e=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(e)return e.get;t=Object.getPrototypeOf(t.prototype).constructor}return()=>[]})(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return o.call(this).concat(Sr)}_initializeProperties(){this.hasAttribute(Sr)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(t){return super._canApplyPropertyDefault(t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))}attributeChangedCallback(t,e,o,i){t==Sr?this.__isUpgradeDisabled&&null==o&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,Ft(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(t,e,o,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}));function Tr(t){return t?new Set(t.split(" ")):new Set}function Or(t){return[...t].join(" ")}
3179
3179
  /**
3180
3180
  * @license
3181
3181
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -3186,7 +3186,7 @@ const Sr="disable-upgrade",Dr=At((t=>{const e=co(t);let o=(t=>{for(;t;){const e=
3186
3186
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3187
3187
  * license.
3188
3188
  */
3189
- const Ir={start:"top",end:"bottom"},$r={start:"left",end:"right"},Nr=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Mr=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!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=
3189
+ const Ir={start:"top",end:"bottom"},$r={start:"left",end:"right"},Nr=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),zr=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!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=
3190
3190
  /**
3191
3191
  * @license
3192
3192
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -3207,7 +3207,7 @@ function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);br
3207
3207
  *
3208
3208
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3209
3209
  * license.
3210
- */,zr=e`
3210
+ */,Mr=e`
3211
3211
  :host([dir='rtl']) [part='input-field'] {
3212
3212
  direction: ltr;
3213
3213
  }
@@ -3236,7 +3236,7 @@ H("vaadin-date-picker-overlay",e`
3236
3236
  [part~='content'] {
3237
3237
  flex: auto;
3238
3238
  }
3239
- `,{moduleId:"vaadin-date-picker-overlay-styles"});class Fr extends(Dr(Mr(mi))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Lr||(Lr=super.template.cloneNode(!0),Lr.content.querySelector('[part~="overlay"]').removeAttribute("tabindex")),Lr}}customElements.define(Fr.is,Fr);
3239
+ `,{moduleId:"vaadin-date-picker-overlay-styles"});class Fr extends(Dr(zr(mi))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Lr||(Lr=super.template.cloneNode(!0),Lr.content.querySelector('[part~="overlay"]').removeAttribute("tabindex")),Lr}}customElements.define(Fr.is,Fr);
3240
3240
  /**
3241
3241
  @license
3242
3242
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3660,7 +3660,7 @@ class Zr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
3660
3660
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3661
3661
  * license.
3662
3662
  */
3663
- const ts=At((t=>class extends(br(yr(t))){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(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}}));
3663
+ const ts=kt((t=>class extends(br(yr(t))){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(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}}));
3664
3664
  /**
3665
3665
  * @license
3666
3666
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -3710,7 +3710,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
3710
3710
  *
3711
3711
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3712
3712
  * license.
3713
- */const ss=At((t=>class extends(ni(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super(),this._labelController=new rs(this)}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),ns=At((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),as=t=>class extends(ns(ss(ni(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super(),this._fieldAriaController=new os(this),this._helperController=new is(this),this._errorController=new es(this),this._labelController.addEventListener("label-changed",(t=>{const{hasLabel:e,node:o}=t.detail;this.__labelChanged(e,o)})),this._helperController.addEventListener("helper-changed",(t=>{const{hasHelper:e,node:o}=t.detail;this.__helperChanged(e,o)}))}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){t?this._fieldAriaController.setHelperId(e.id):this._fieldAriaController.setHelperId(null)}__labelChanged(t,e){t?this._fieldAriaController.setLabelId(e.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{t?this._fieldAriaController.setErrorId(this._errorController.errorId):this._fieldAriaController.setErrorId(null)}))}}
3713
+ */const ss=kt((t=>class extends(ni(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super(),this._labelController=new rs(this)}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),ns=kt((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),as=t=>class extends(ns(ss(ni(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super(),this._fieldAriaController=new os(this),this._helperController=new is(this),this._errorController=new es(this),this._labelController.addEventListener("label-changed",(t=>{const{hasLabel:e,node:o}=t.detail;this.__labelChanged(e,o)})),this._helperController.addEventListener("helper-changed",(t=>{const{hasHelper:e,node:o}=t.detail;this.__helperChanged(e,o)}))}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){t?this._fieldAriaController.setHelperId(e.id):this._fieldAriaController.setHelperId(null)}__labelChanged(t,e){t?this._fieldAriaController.setLabelId(e.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{t?this._fieldAriaController.setErrorId(this._errorController.errorId):this._fieldAriaController.setErrorId(null)}))}}
3714
3714
  /**
3715
3715
  * @license
3716
3716
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -3720,7 +3720,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
3720
3720
  *
3721
3721
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3722
3722
  * license.
3723
- */,ls=At((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,o)=>{this._delegateAttribute(e,t[o])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,o)=>{this._delegateProperty(e,t[o])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),ds=At((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this.inputElement.value=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}get _hasValue(){return null!=this.value&&""!==this.value}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),cs=At((t=>class extends(ls(ns(ds(t)))){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((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const o=this._hasValidConstraints(e),i=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():i&&this._setInvalid(!1),this.__previousHasConstraints=o}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),hs=new WeakMap;
3723
+ */,ls=kt((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,o)=>{this._delegateAttribute(e,t[o])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,o)=>{this._delegateProperty(e,t[o])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),ds=kt((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this.inputElement.value=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}get _hasValue(){return null!=this.value&&""!==this.value}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),cs=kt((t=>class extends(ls(ns(ds(t)))){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((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const o=this._hasValidConstraints(e),i=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():i&&this._setInvalid(!1),this.__previousHasConstraints=o}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),hs=new WeakMap;
3724
3724
  /**
3725
3725
  * @license
3726
3726
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -3730,7 +3730,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
3730
3730
  *
3731
3731
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3732
3732
  * license.
3733
- */const us=At((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return hs.has(t)||hs.set(t,new Set),hs.get(t)}(t);this.slotStyles.forEach((o=>{e.has(o)||(!function(t,e){const o=document.createElement("style");o.textContent=t,e===document?document.head.appendChild(o):e.insertBefore(o,e.firstChild)}(o,t),e.add(o))}))}})),ps=t=>class extends(us(ts(cs(as(_r(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,reflectToAttribute:!0,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 clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))),this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))))}_onClearButtonClick(t){t.preventDefault(),this.__clear()}_onClearButtonMouseDown(t){t.preventDefault(),si||this.inputElement.focus()}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this.__clear())}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__clear(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ii.debounce(this._preventInputDebouncer,Si.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`),this.__allowedTextRegExp=new RegExp(`^${t}*$`)}catch(t){console.error(t)}}}
3733
+ */const us=kt((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return hs.has(t)||hs.set(t,new Set),hs.get(t)}(t);this.slotStyles.forEach((o=>{e.has(o)||(!function(t,e){const o=document.createElement("style");o.textContent=t,e===document?document.head.appendChild(o):e.insertBefore(o,e.firstChild)}(o,t),e.add(o))}))}})),ps=t=>class extends(us(ts(cs(as(_r(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,reflectToAttribute:!0,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 clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))),this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))))}_onClearButtonClick(t){t.preventDefault(),this.__clear()}_onClearButtonMouseDown(t){t.preventDefault(),si||this.inputElement.focus()}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this.__clear())}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__clear(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ii.debounce(this._preventInputDebouncer,Si.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`),this.__allowedTextRegExp=new RegExp(`^${t}*$`)}catch(t){console.error(t)}}}
3734
3734
  /**
3735
3735
  * @license
3736
3736
  * Copyright (c) 2000 - 2024 Vaadin Ltd.
@@ -3873,7 +3873,7 @@ class bs{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.
3873
3873
  *
3874
3874
  * See https://vaadin.com/commercial-license-and-service-terms for the full
3875
3875
  * license.
3876
- */;H("vaadin-date-picker",[gs,zr],{moduleId:"vaadin-date-picker-styles"});class vs extends(ys(ps(q(Mi(_o))))){static get is(){return"vaadin-date-picker"}static get template(){return mo`
3876
+ */;H("vaadin-date-picker",[gs,Mr],{moduleId:"vaadin-date-picker-styles"});class vs extends(ys(ps(q(zi(_o))))){static get is(){return"vaadin-date-picker"}static get template(){return mo`
3877
3877
  <style>
3878
3878
  :host([opened]) {
3879
3879
  pointer-events: auto;
@@ -4228,13 +4228,14 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
4228
4228
  ${"right"===this.icon?o`<span class="icon right"></span>`:r}
4229
4229
  </div>
4230
4230
 
4231
- ${this.helper?o`<p class="helper-description">${this.helper}</p>`:r}
4232
4231
  ${this.error?o`
4233
4232
  <p class="error-message">
4234
4233
  ${this.errorMessage?this.errorMessage:o`<slot name="error-extended"></slot>`}
4235
4234
  </p>
4236
4235
  `:r}
4237
4236
  ${this.linkText&&this.linkRoute?o`<a class="link-text" href="#" @click=${this.handleLinkClick}>${this.linkText}</a>`:r}
4237
+
4238
+ ${this.helper?o`<p class="helper-description">${this.helper}</p>`:r}
4238
4239
  </div>
4239
4240
  `}};n([I({type:String}),a("design:type",String)],xs.prototype,"placeholder",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"label",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"labelColor",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"value",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],xs.prototype,"icon",void 0),n([I({type:String}),a("design:type",Object)],xs.prototype,"helper",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"error",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"errorMessage",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"success",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"disabled",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"typing",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"type",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"tooltipMessage",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"linkText",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"linkRoute",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],xs.prototype,"isPasswordVisible",void 0),xs=n([l("randstad-form")],xs);class Cs extends t{static{this.styles=e`
4240
4241
  :host {
@@ -4249,93 +4250,86 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
4249
4250
  height: var(--icon-size, 24px); /* Tamaño fijo basado en size */
4250
4251
  fill: var(--icon-color, currentColor);
4251
4252
  }
4252
- `}constructor(){super(),this.name="",this.size="24px",this.color=""}connectedCallback(){super.connectedCallback(),this.name&&this.loadIcon()}updated(t){t.has("name")&&this.name&&this.loadIcon(),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color)}async loadIcon(){if(this.name)try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");const e=await t.text(),o=new DOMParser,i=o.parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)throw new Error("No se encontró un elemento SVG válido");i.removeAttribute("fill"),i.setAttribute("width",this.size||"24px"),i.setAttribute("height",this.size||"24px"),this.renderRoot.innerHTML="",this.renderRoot.appendChild(i)}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.renderRoot.innerHTML="<span>⚠️</span>"}else this.renderRoot.innerHTML=""}render(){return null}}n([I({type:String}),a("design:type",String)],Cs.prototype,"name",void 0),n([I({type:String}),a("design:type",String)],Cs.prototype,"size",void 0),n([I({type:String}),a("design:type",String)],Cs.prototype,"color",void 0),customElements.define("randstad-icon",Cs);let ks=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.title="Título del Modal",this.description="Descripción del modal",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No"}static{this.styles=e`
4253
+ `}constructor(){super(),this.name="",this.size="24px",this.color=""}connectedCallback(){super.connectedCallback(),this.name&&this.loadIcon()}updated(t){t.has("name")&&this.name&&this.loadIcon(),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color)}async loadIcon(){if(this.name)try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");const e=await t.text(),o=new DOMParser,i=o.parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)throw new Error("No se encontró un elemento SVG válido");i.removeAttribute("fill"),i.setAttribute("width",this.size||"24px"),i.setAttribute("height",this.size||"24px"),this.renderRoot.innerHTML="",this.renderRoot.appendChild(i)}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.renderRoot.innerHTML="<span>⚠️</span>"}else this.renderRoot.innerHTML=""}render(){return null}}n([I({type:String}),a("design:type",String)],Cs.prototype,"name",void 0),n([I({type:String}),a("design:type",String)],Cs.prototype,"size",void 0),n([I({type:String}),a("design:type",String)],Cs.prototype,"color",void 0),customElements.define("randstad-icon",Cs);let As=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal"}static{this.styles=e`
4253
4254
  :host {
4254
4255
  display: none;
4255
4256
  position: fixed;
4257
+ z-index: 9999;
4256
4258
  top: 0;
4257
4259
  left: 0;
4258
- width: 100%;
4259
- height: 100%;
4260
+ width: 100vw;
4261
+ height: 100vh;
4260
4262
  background: rgba(0, 0, 0, 0.5);
4261
4263
  justify-content: center;
4262
4264
  align-items: center;
4263
4265
  font-family: "Graphik", sans-serif;
4264
4266
  }
4267
+
4265
4268
  :host([open]) {
4266
4269
  display: flex;
4267
4270
  }
4271
+
4268
4272
  .modal {
4269
- background: white;
4270
- padding: 20px;
4271
- border-radius: 8px;
4272
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
4273
- text-align: center;
4274
- animation: fadeIn 0.2s ease-in-out;
4275
- width: var(--modal-width, 400px);
4273
+ background: #f7f5f0;
4274
+ width: 90%;
4275
+ max-width: 500px;
4276
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
4277
+ display: flex;
4278
+ flex-direction: column;
4279
+ position: relative;
4276
4280
  }
4277
- @keyframes fadeIn {
4278
- from { opacity: 0; transform: scale(0.9); }
4279
- to { opacity: 1; transform: scale(1); }
4281
+
4282
+ .modal-header {
4283
+ display: flex;
4284
+ justify-content: space-between;
4285
+ align-items: center;
4286
+ padding: 25px;
4287
+ border-bottom: 1px solid #E0E0E0;
4280
4288
  }
4281
- h2 {
4289
+
4290
+ h3 {
4291
+ margin: 0;
4282
4292
  font-family: Graphik;
4283
4293
  font-weight: 400;
4284
4294
  font-size: 20px;
4285
- line-height: 22px;
4286
- letter-spacing: 0%;
4287
- text-align: center;
4288
- color: #404767;
4289
- }
4290
- p {
4291
- font-family: Graphik;
4292
- font-weight: 400;
4293
- font-size: 16px;
4294
- line-height: 17.6px;
4295
- letter-spacing: 0%;
4296
- text-align: center;
4297
- color: #6F758D;
4298
- }
4299
- .buttons {
4300
- margin-top: 12px;
4301
- display: flex;
4302
- justify-content: space-around;
4303
- gap: 10px;
4295
+ line-height: 30px;
4296
+ color: #0F1941;
4304
4297
  }
4305
- button {
4298
+
4299
+ .modal-close {
4300
+ background: none;
4306
4301
  border: none;
4307
4302
  cursor: pointer;
4308
- font-size: 14px;
4309
- font-weight: 400;
4310
- width: 100%;
4311
- width: 212;
4312
- height: 57;
4313
- border-radius: 4px;
4314
- padding: 16px;
4315
- font-family: Graphik;
4303
+ display: flex;
4304
+ align-items: center;
4305
+ justify-content: center;
4306
+ padding: 0;
4316
4307
  }
4317
- .accept { background-color: #2175D9; color: white; }
4318
- .cancel { background-color: #FFFFFF; border: 1px solid #2175D9; color: #2175D9 }
4319
- .primary { background-color: #2175D9; color: white; }
4320
- `}closeModal(t){this.dispatchEvent(new CustomEvent("modal-close",{detail:t})),this.open=!1}render(){return o`
4321
- <div class="modal" style="width: ${this.width};">
4322
- ${"default"===this.type?o`
4323
- <div><img src="assets/img/icon_warning.svg"></div>
4324
- <p>${this.description}</p>
4325
- <div class="buttons">
4326
- <button class="primary" @click=${()=>this.closeModal(!0)}>${this.buttonText}</button>
4327
- </div>
4328
- `:o`
4329
- <div><img src="assets/img/icon_warning.svg"></div>
4330
- <h2>${this.title}</h2>
4331
- <p>${this.description}</p>
4332
- <div class="buttons">
4333
- <button class="cancel" @click=${()=>this.closeModal(!1)}>${this.cancelText}</button>
4334
- <button class="accept" @click=${()=>this.closeModal(!0)}>${this.confirmText}</button>
4335
- </div>
4336
- `}
4308
+
4309
+ .modal-body {
4310
+ flex: 1;
4311
+ }
4312
+
4313
+ .modal-footer {
4314
+ display: flex;
4315
+ justify-content: flex-end;
4316
+ }
4317
+ `}closeModal(){this.dispatchEvent(new CustomEvent("modal-close",{detail:null})),this.open=!1}render(){return o`
4318
+ <div class="modal">
4319
+ <div class="modal-header">
4320
+ <h3>${this.title}</h3>
4321
+ <button class="modal-close" @click="${this.closeModal}" aria-label="Cerrar modal">
4322
+ <randstad-icon name="close" size="24px"></randstad-icon>
4323
+ </button>
4324
+ </div>
4325
+ <div class="modal-body">
4326
+ <slot name="content"></slot>
4327
+ </div>
4328
+ <div class="modal-footer">
4329
+ <slot name="confirm-button"></slot>
4330
+ </div>
4337
4331
  </div>
4338
- `}};n([I({type:Boolean,reflect:!0}),a("design:type",Object)],ks.prototype,"open",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"type",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"title",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"description",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"width",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"buttonText",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"confirmText",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"cancelText",void 0),ks=n([l("custom-modal")],ks);class As extends t{static{this.styles=e`
4332
+ `}};n([I({type:Boolean,reflect:!0}),a("design:type",Object)],As.prototype,"open",void 0),n([I({type:String}),a("design:type",Object)],As.prototype,"title",void 0),As=n([l("custom-modal")],As);class ks extends t{static{this.styles=e`
4339
4333
  :host {
4340
4334
  display: block;
4341
4335
  border-radius: 4px;
@@ -4385,7 +4379,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
4385
4379
  <randstad-icon class="icon" name="${this.icon}" size="24px" style="color: var(--icon-color);"></randstad-icon>
4386
4380
  <span class="message">${this.message}</span>
4387
4381
  </div>
4388
- `}}customElements.define("randstad-notice",As);let Es=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No"}static{this.styles=e`
4382
+ `}}customElements.define("randstad-notice",ks);let Es=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No"}static{this.styles=e`
4389
4383
  :host {
4390
4384
  display: none;
4391
4385
  position: fixed;
@@ -4477,7 +4471,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
4477
4471
  * Copyright 2017 Google LLC
4478
4472
  * SPDX-License-Identifier: BSD-3-Clause
4479
4473
  */
4480
- const Ps=globalThis,Ss=Ps.trustedTypes,Ds=Ss?Ss.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ts="$lit$",Os=`lit$${Math.random().toFixed(9).slice(2)}$`,Is="?"+Os,$s=`<${Is}>`,Ns=document,Ms=()=>Ns.createComment(""),zs=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ls=Array.isArray,Fs="[ \t\n\f\r]",Rs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,Bs=/>/g,Vs=RegExp(`>|${Fs}(?:([^\\s"'>=/]+)(${Fs}*=${Fs}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),js=/'/g,Us=/"/g,Ys=/^(?:script|style|textarea|title)$/i,qs=Symbol.for("lit-noChange"),Ws=Symbol.for("lit-nothing"),Gs=new WeakMap,Ks=Ns.createTreeWalker(Ns,129);function Xs(t,e){if(!Ls(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ds?Ds.createHTML(e):e}const Js=(t,e)=>{const o=t.length-1,i=[];let r,s=2===e?"<svg>":3===e?"<math>":"",n=Rs;for(let e=0;e<o;e++){const o=t[e];let a,l,d=-1,c=0;for(;c<o.length&&(n.lastIndex=c,l=n.exec(o),null!==l);)c=n.lastIndex,n===Rs?"!--"===l[1]?n=Hs:void 0!==l[1]?n=Bs:void 0!==l[2]?(Ys.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=Vs):void 0!==l[3]&&(n=Vs):n===Vs?">"===l[0]?(n=r??Rs,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Vs:'"'===l[3]?Us:js):n===Us||n===js?n=Vs:n===Hs||n===Bs?n=Rs:(n=Vs,r=void 0);const h=n===Vs&&t[e+1].startsWith("/>")?" ":"";s+=n===Rs?o+$s:d>=0?(i.push(a),o.slice(0,d)+Ts+o.slice(d)+Os+h):o+Os+(-2===d?e:h)}return[Xs(t,s+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Zs{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,d]=Js(t,e);if(this.el=Zs.createElement(l,o),Ks.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ks.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Ts)){const e=d[s++],o=i.getAttribute(t).split(Os),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:n[2],strings:o,ctor:"."===n[1]?rn:"?"===n[1]?sn:"@"===n[1]?nn:on}),i.removeAttribute(t)}else t.startsWith(Os)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(Ys.test(i.tagName)){const t=i.textContent.split(Os),e=t.length-1;if(e>0){i.textContent=Ss?Ss.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Ms()),Ks.nextNode(),a.push({type:2,index:++r});i.append(t[e],Ms())}}}else if(8===i.nodeType)if(i.data===Is)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Os,t+1));)a.push({type:7,index:r}),t+=Os.length-1}r++}}static createElement(t,e){const o=Ns.createElement("template");return o.innerHTML=t,o}}function Qs(t,e,o=t,i){if(e===qs)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const s=zs(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),void 0===s?r=void 0:(r=new s(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Qs(t,r._$AS(t,e.values),r,i)),e}class tn{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){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Ns).importNode(e,!0);Ks.currentNode=i;let r=Ks.nextNode(),s=0,n=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new en(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new an(r,this,t)),this._$AV.push(e),a=o[++n]}s!==a?.index&&(r=Ks.nextNode(),s++)}return Ks.currentNode=Ns,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class en{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=Ws,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Qs(this,t,e),zs(t)?t===Ws||null==t||""===t?(this._$AH!==Ws&&this._$AR(),this._$AH=Ws):t!==this._$AH&&t!==qs&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Ls(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ws&&zs(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ns.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Zs.createElement(Xs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new tn(i,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Gs.get(t.strings);return void 0===e&&Gs.set(t.strings,e=new Zs(t)),e}k(t){Ls(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new en(this.O(Ms()),this.O(Ms()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class on{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=Ws,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Ws}_$AI(t,e=this,o,i){const r=this.strings;let s=!1;if(void 0===r)t=Qs(this,t,e,0),s=!zs(t)||t!==this._$AH&&t!==qs,s&&(this._$AH=t);else{const i=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Qs(this,i[o+n],e,n),a===qs&&(a=this._$AH[n]),s||=!zs(a)||a!==this._$AH[n],a===Ws?t=Ws:t!==Ws&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}s&&!i&&this.j(t)}j(t){t===Ws?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class rn extends on{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ws?void 0:t}}class sn extends on{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ws)}}class nn extends on{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Qs(this,t,e,0)??Ws)===qs)return;const o=this._$AH,i=t===Ws&&o!==Ws||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Ws&&(o===Ws||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class an{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Qs(this,t)}}const ln=Ps.litHtmlPolyfillSupport;ln?.(Zs,en),(Ps.litHtmlVersions??=[]).push("3.2.1");
4474
+ const Ps=globalThis,Ss=Ps.trustedTypes,Ds=Ss?Ss.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ts="$lit$",Os=`lit$${Math.random().toFixed(9).slice(2)}$`,Is="?"+Os,$s=`<${Is}>`,Ns=document,zs=()=>Ns.createComment(""),Ms=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ls=Array.isArray,Fs="[ \t\n\f\r]",Rs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,Bs=/>/g,Vs=RegExp(`>|${Fs}(?:([^\\s"'>=/]+)(${Fs}*=${Fs}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),js=/'/g,Us=/"/g,Ys=/^(?:script|style|textarea|title)$/i,qs=Symbol.for("lit-noChange"),Ws=Symbol.for("lit-nothing"),Gs=new WeakMap,Ks=Ns.createTreeWalker(Ns,129);function Xs(t,e){if(!Ls(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ds?Ds.createHTML(e):e}const Js=(t,e)=>{const o=t.length-1,i=[];let r,s=2===e?"<svg>":3===e?"<math>":"",n=Rs;for(let e=0;e<o;e++){const o=t[e];let a,l,d=-1,c=0;for(;c<o.length&&(n.lastIndex=c,l=n.exec(o),null!==l);)c=n.lastIndex,n===Rs?"!--"===l[1]?n=Hs:void 0!==l[1]?n=Bs:void 0!==l[2]?(Ys.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=Vs):void 0!==l[3]&&(n=Vs):n===Vs?">"===l[0]?(n=r??Rs,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Vs:'"'===l[3]?Us:js):n===Us||n===js?n=Vs:n===Hs||n===Bs?n=Rs:(n=Vs,r=void 0);const h=n===Vs&&t[e+1].startsWith("/>")?" ":"";s+=n===Rs?o+$s:d>=0?(i.push(a),o.slice(0,d)+Ts+o.slice(d)+Os+h):o+Os+(-2===d?e:h)}return[Xs(t,s+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Zs{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,d]=Js(t,e);if(this.el=Zs.createElement(l,o),Ks.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ks.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Ts)){const e=d[s++],o=i.getAttribute(t).split(Os),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:n[2],strings:o,ctor:"."===n[1]?rn:"?"===n[1]?sn:"@"===n[1]?nn:on}),i.removeAttribute(t)}else t.startsWith(Os)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(Ys.test(i.tagName)){const t=i.textContent.split(Os),e=t.length-1;if(e>0){i.textContent=Ss?Ss.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],zs()),Ks.nextNode(),a.push({type:2,index:++r});i.append(t[e],zs())}}}else if(8===i.nodeType)if(i.data===Is)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Os,t+1));)a.push({type:7,index:r}),t+=Os.length-1}r++}}static createElement(t,e){const o=Ns.createElement("template");return o.innerHTML=t,o}}function Qs(t,e,o=t,i){if(e===qs)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const s=Ms(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),void 0===s?r=void 0:(r=new s(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Qs(t,r._$AS(t,e.values),r,i)),e}class tn{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){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Ns).importNode(e,!0);Ks.currentNode=i;let r=Ks.nextNode(),s=0,n=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new en(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new an(r,this,t)),this._$AV.push(e),a=o[++n]}s!==a?.index&&(r=Ks.nextNode(),s++)}return Ks.currentNode=Ns,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class en{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=Ws,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Qs(this,t,e),Ms(t)?t===Ws||null==t||""===t?(this._$AH!==Ws&&this._$AR(),this._$AH=Ws):t!==this._$AH&&t!==qs&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Ls(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ws&&Ms(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ns.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Zs.createElement(Xs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new tn(i,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Gs.get(t.strings);return void 0===e&&Gs.set(t.strings,e=new Zs(t)),e}k(t){Ls(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new en(this.O(zs()),this.O(zs()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class on{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=Ws,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Ws}_$AI(t,e=this,o,i){const r=this.strings;let s=!1;if(void 0===r)t=Qs(this,t,e,0),s=!Ms(t)||t!==this._$AH&&t!==qs,s&&(this._$AH=t);else{const i=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Qs(this,i[o+n],e,n),a===qs&&(a=this._$AH[n]),s||=!Ms(a)||a!==this._$AH[n],a===Ws?t=Ws:t!==Ws&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}s&&!i&&this.j(t)}j(t){t===Ws?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class rn extends on{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ws?void 0:t}}class sn extends on{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ws)}}class nn extends on{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Qs(this,t,e,0)??Ws)===qs)return;const o=this._$AH,i=t===Ws&&o!==Ws||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Ws&&(o===Ws||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class an{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Qs(this,t)}}const ln=Ps.litHtmlPolyfillSupport;ln?.(Zs,en),(Ps.litHtmlVersions??=[]).push("3.2.1");
4481
4475
  /**
4482
4476
  * @license
4483
4477
  * Copyright 2017 Google LLC
@@ -4545,7 +4539,7 @@ class wn extends vn{renderIndicator(){return this.indeterminate?this.renderIndet
4545
4539
  * @license
4546
4540
  * Copyright 2023 Google LLC
4547
4541
  * SPDX-License-Identifier: Apache-2.0
4548
- */;let Cn=class extends wn{};Cn.styles=[xn],Cn=n([l("md-circular-progress")],Cn);let kn=class extends t{constructor(){super(...arguments),this.steps=10,this.currentStep=0,this.size="60px"}static{this.styles=e`
4542
+ */;let Cn=class extends wn{};Cn.styles=[xn],Cn=n([l("md-circular-progress")],Cn);let An=class extends t{constructor(){super(...arguments),this.steps=10,this.currentStep=0,this.size="60px"}static{this.styles=e`
4549
4543
  :host {
4550
4544
  display: inline-flex;
4551
4545
  justify-content: center;
@@ -4585,13 +4579,13 @@ class wn extends vn{renderIndicator(){return this.indeterminate?this.renderIndet
4585
4579
  ></md-circular-progress>
4586
4580
  <span class="progress-text">${this.currentStep} de ${this.steps}</span>
4587
4581
  </div>
4588
- `}updated(t){if(t.has("size")||t.has("steps")||t.has("currentStep")){const t=this.shadowRoot?.querySelector(".progress-text"),e=this.shadowRoot?.querySelector(".container");if(t&&e){const o=parseFloat(getComputedStyle(e).width),i=t.scrollWidth;if(i>.7*o){const e=.7*o/i;t.style.fontSize=`calc(var(--progress-size, 60px) * 0.3 * ${e})`}}}}};n([I({type:Number}),a("design:type",Object)],kn.prototype,"steps",void 0),n([I({type:Number}),a("design:type",Object)],kn.prototype,"currentStep",void 0),n([I({type:String}),a("design:type",Object)],kn.prototype,"size",void 0),kn=n([l("my-circular-progress")],kn);
4582
+ `}updated(t){if(t.has("size")||t.has("steps")||t.has("currentStep")){const t=this.shadowRoot?.querySelector(".progress-text"),e=this.shadowRoot?.querySelector(".container");if(t&&e){const o=parseFloat(getComputedStyle(e).width),i=t.scrollWidth;if(i>.7*o){const e=.7*o/i;t.style.fontSize=`calc(var(--progress-size, 60px) * 0.3 * ${e})`}}}}};n([I({type:Number}),a("design:type",Object)],An.prototype,"steps",void 0),n([I({type:Number}),a("design:type",Object)],An.prototype,"currentStep",void 0),n([I({type:String}),a("design:type",Object)],An.prototype,"size",void 0),An=n([l("my-circular-progress")],An);
4589
4583
  /**
4590
4584
  * @license
4591
4585
  * Copyright 2023 Google LLC
4592
4586
  * SPDX-License-Identifier: Apache-2.0
4593
4587
  */
4594
- const An=Symbol("attachableController");let En;s||(En=new MutationObserver((t=>{for(const e of t)e.target[An]?.hostConnected()})));class Pn{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){null===t?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[An]=this,En?.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}
4588
+ const kn=Symbol("attachableController");let En;s||(En=new MutationObserver((t=>{for(const e of t)e.target[kn]?.hostConnected()})));class Pn{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){null===t?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[kn]=this,En?.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}
4595
4589
  /**
4596
4590
  * @license
4597
4591
  * Copyright 2021 Google LLC
@@ -4618,7 +4612,7 @@ const $n="cubic-bezier(0.2, 0, 0, 1)";
4618
4612
  * @license
4619
4613
  * Copyright 2022 Google LLC
4620
4614
  * SPDX-License-Identifier: Apache-2.0
4621
- */var Nn;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(Nn||(Nn={}));const Mn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],zn=s?null:window.matchMedia("(forced-colors: active)");class Ln extends t{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Nn.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Pn(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return o`<div class="surface ${hn(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==Nn.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state!==Nn.HOLDING)return this.state===Nn.TOUCH_DELAY?(this.state=Nn.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=Nn.WAITING_FOR_CLICK}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t))return this.state=Nn.WAITING_FOR_CLICK,void this.startPressAnimation(t);this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=Nn.TOUCH_DELAY,await new Promise((t=>{setTimeout(t,150)})),this.state===Nn.TOUCH_DELAY&&(this.state=Nn.HOLDING,this.startPressAnimation(t)))}}handleClick(){this.disabled||(this.state!==Nn.WAITING_FOR_CLICK?this.state===Nn.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),o=Math.max(t,e),i=Math.max(.35*o,75),r=Math.floor(.2*o),s=Math.sqrt(e**2+t**2)+10;this.initialSize=r,this.rippleScale=""+(s+i)/r,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:o}=window,{left:i,top:r}=this.getBoundingClientRect(),s=e+i,n=o+r,{pageX:a,pageY:l}=t;return{x:a-s,y:l-n}}getTranslationCoordinates(t){const{height:e,width:o}=this.getBoundingClientRect(),i={x:(o-this.initialSize)/2,y:(e-this.initialSize)/2};let r;return r=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:o/2,y:e/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:i}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:o}=this.getTranslationCoordinates(t),i=`${e.x}px, ${e.y}px`,r=`${o.x}px, ${o.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:$n,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Nn.INACTIVE;const t=this.growAnimation;let e=1/0;"number"==typeof t?.currentTime?e=t.currentTime:t?.currentTime&&(e=t.currentTime.to("ms").value),e>=225?this.pressed=!1:(await new Promise((t=>{setTimeout(t,225-e)})),this.growAnimation===t&&(this.pressed=!1))}shouldReactToEvent(t){if(this.disabled||!t.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if("pointerenter"===t.type||"pointerleave"===t.type)return!this.isTouch(t);const e=1===t.buttons;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:o,left:i,bottom:r,right:s}=this.getBoundingClientRect();return t>=i&&t<=s&&e>=o&&e<=r}isTouch({pointerType:t}){return"touch"===t}async handleEvent(t){if(!zn?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t)}}onControlChange(t,e){if(!s)for(const o of Mn)t?.removeEventListener(o,this),e?.addEventListener(o,this)}}n([I({type:Boolean,reflect:!0})],Ln.prototype,"disabled",void 0),n([$()],Ln.prototype,"hovered",void 0),n([$()],Ln.prototype,"pressed",void 0),n([N(".surface")],Ln.prototype,"mdRoot",void 0);
4615
+ */var Nn;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(Nn||(Nn={}));const zn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],Mn=s?null:window.matchMedia("(forced-colors: active)");class Ln extends t{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Nn.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Pn(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return o`<div class="surface ${hn(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==Nn.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state!==Nn.HOLDING)return this.state===Nn.TOUCH_DELAY?(this.state=Nn.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=Nn.WAITING_FOR_CLICK}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t))return this.state=Nn.WAITING_FOR_CLICK,void this.startPressAnimation(t);this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=Nn.TOUCH_DELAY,await new Promise((t=>{setTimeout(t,150)})),this.state===Nn.TOUCH_DELAY&&(this.state=Nn.HOLDING,this.startPressAnimation(t)))}}handleClick(){this.disabled||(this.state!==Nn.WAITING_FOR_CLICK?this.state===Nn.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),o=Math.max(t,e),i=Math.max(.35*o,75),r=Math.floor(.2*o),s=Math.sqrt(e**2+t**2)+10;this.initialSize=r,this.rippleScale=""+(s+i)/r,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:o}=window,{left:i,top:r}=this.getBoundingClientRect(),s=e+i,n=o+r,{pageX:a,pageY:l}=t;return{x:a-s,y:l-n}}getTranslationCoordinates(t){const{height:e,width:o}=this.getBoundingClientRect(),i={x:(o-this.initialSize)/2,y:(e-this.initialSize)/2};let r;return r=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:o/2,y:e/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:i}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:o}=this.getTranslationCoordinates(t),i=`${e.x}px, ${e.y}px`,r=`${o.x}px, ${o.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:$n,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Nn.INACTIVE;const t=this.growAnimation;let e=1/0;"number"==typeof t?.currentTime?e=t.currentTime:t?.currentTime&&(e=t.currentTime.to("ms").value),e>=225?this.pressed=!1:(await new Promise((t=>{setTimeout(t,225-e)})),this.growAnimation===t&&(this.pressed=!1))}shouldReactToEvent(t){if(this.disabled||!t.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if("pointerenter"===t.type||"pointerleave"===t.type)return!this.isTouch(t);const e=1===t.buttons;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:o,left:i,bottom:r,right:s}=this.getBoundingClientRect();return t>=i&&t<=s&&e>=o&&e<=r}isTouch({pointerType:t}){return"touch"===t}async handleEvent(t){if(!Mn?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t)}}onControlChange(t,e){if(!s)for(const o of zn)t?.removeEventListener(o,this),e?.addEventListener(o,this)}}n([I({type:Boolean,reflect:!0})],Ln.prototype,"disabled",void 0),n([$()],Ln.prototype,"hovered",void 0),n([$()],Ln.prototype,"pressed",void 0),n([N(".surface")],Ln.prototype,"mdRoot",void 0);
4622
4616
  /**
4623
4617
  * @license
4624
4618
  * Copyright 2024 Google LLC
@@ -4958,7 +4952,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
4958
4952
  .hidden {
4959
4953
  display: none;
4960
4954
  }
4961
- `}constructor(){super(),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.label="",this.labelColor="",this.filterable=!0,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.debounceTimeout=null,this.defaultValue&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}willUpdate(t){t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}connectedCallback(){super.connectedCallback(),this.filteredOptions=[...this.options],document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside.bind(this))}handleInputClick(t){this.disabled||t.target!==this.shadowRoot.querySelector(".filter-input")||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){const e=t.target.value.toLowerCase();this.filterValue=e,this.filteredOptions=this.options.filter((t=>t.toLowerCase().includes(this.filterValue))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleSelect(t){this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0})),this.filterValue=t,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.isOpen||this.filterValue?(this.isOpen=!1,this.filterValue="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.isOpen=!0,this.requestUpdate())}handleClickOutside(t){this.contains(t.target)||(this.isOpen=!1,this.requestUpdate())}render(){const t=this.isOpen||this.filterValue?"close":"arrow_down";return o`
4955
+ `}constructor(){super(),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.label="",this.labelColor="",this.filterable=!0,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.debounceTimeout=null,this.defaultValue&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}willUpdate(t){t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}connectedCallback(){super.connectedCallback(),this.filteredOptions=[...this.options],document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside.bind(this))}handleInputClick(t){this.disabled||t.target!==this.shadowRoot.querySelector(".filter-input")||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){const e=t.target.value.toLowerCase();this.filterValue=e,this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(this.filterValue.toLowerCase()))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleSelect(t){const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.isOpen||this.filterValue?(this.isOpen=!1,this.filterValue="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.isOpen=!0,this.requestUpdate())}handleClickOutside(t){this.contains(t.target)||(this.isOpen=!1,this.requestUpdate())}render(){const t=this.isOpen||this.filterValue?"close":"arrow_down";return o`
4962
4956
  <div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
4963
4957
  ${this.label?o`
4964
4958
  <div class="label-container">
@@ -4986,12 +4980,14 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
4986
4980
  </div>
4987
4981
  <ul class="options-list ${this.isOpen&&this.filteredOptions.length>0?"":"hidden"}">
4988
4982
  ${this.filteredOptions.map((t=>o`
4989
- <li @click="${()=>this.handleSelect(t)}">${t}</li>
4983
+ <li @click="${()=>this.handleSelect(t)}">
4984
+ ${"string"==typeof t?t:t.label}
4985
+ </li>
4990
4986
  `))}
4991
4987
  </ul>
4992
4988
  </div>
4993
4989
  </div>
4994
- `}};n([I({type:Array}),a("design:type",Object)],ma.prototype,"options",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"placeholder",void 0),n([I({type:String,attribute:"default-value"}),a("design:type",Object)],ma.prototype,"defaultValue",void 0),n([I({type:Boolean}),a("design:type",Object)],ma.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"label",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"labelColor",void 0),n([I({type:Boolean}),a("design:type",Object)],ma.prototype,"filterable",void 0),n([$(),a("design:type",Object)],ma.prototype,"filteredOptions",void 0),n([$(),a("design:type",Object)],ma.prototype,"filterValue",void 0),n([$(),a("design:type",Object)],ma.prototype,"isOpen",void 0),ma=n([l("filterable-select"),a("design:paramtypes",[])],ma);let fa=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=e`
4990
+ `}};n([I({type:Array}),a("design:type",Array)],ma.prototype,"options",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"placeholder",void 0),n([I({type:String,attribute:"default-value"}),a("design:type",Object)],ma.prototype,"defaultValue",void 0),n([I({type:Boolean}),a("design:type",Object)],ma.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"label",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"labelColor",void 0),n([I({type:Boolean}),a("design:type",Object)],ma.prototype,"filterable",void 0),n([$(),a("design:type",Object)],ma.prototype,"filteredOptions",void 0),n([$(),a("design:type",Object)],ma.prototype,"filterValue",void 0),n([$(),a("design:type",Object)],ma.prototype,"isOpen",void 0),ma=n([l("filterable-select"),a("design:paramtypes",[])],ma);let fa=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=e`
4995
4991
  .stepper {
4996
4992
  display: flex;
4997
4993
  gap: 20px;
@@ -5192,5 +5188,5 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
5192
5188
  border: none;
5193
5189
  cursor: pointer;
5194
5190
  }
5195
- `}render(){return o`<button>${this.label}</button>`}};n([I({type:String}),a("design:type",Object)],ya.prototype,"label",void 0),ya=n([l("test-button")],ya);export{z as Checkbox,ks as CustomModal,Es as CustomPopup,pa as CustomRadio,fa as CustomStepper,ma as FilterableSelect,Cs as IconComponent,kn as MyCircularProgress,M as RandstadButton,xs as RandstadForm,ya as TestButton,ba as TestComponent};
5191
+ `}render(){return o`<button>${this.label}</button>`}};n([I({type:String}),a("design:type",Object)],ya.prototype,"label",void 0),ya=n([l("test-button")],ya);export{M as Checkbox,As as CustomModal,Es as CustomPopup,pa as CustomRadio,fa as CustomStepper,ma as FilterableSelect,Cs as IconComponent,An as MyCircularProgress,z as RandstadButton,xs as RandstadForm,ya as TestButton,ba as TestComponent};
5196
5192
  //# sourceMappingURL=index.js.map