@vaadin-component-factory/vcf-autocomplete 24.0.0 → 24.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin-component-factory/vcf-autocomplete",
3
- "version": "24.0.0",
3
+ "version": "24.1.4",
4
4
  "type": "module",
5
5
  "description": "Web Component with a text input that provides a panel of suggested options.",
6
6
  "author": "Vaadin Ltd",
@@ -24,7 +24,7 @@
24
24
  "watch": "rollup -c -w",
25
25
  "dev": "npm-run-all --parallel start watch",
26
26
  "start": "serve public",
27
- "publish": "node util/publish.js"
27
+ "publish": "node util/publish.cjs"
28
28
  },
29
29
  "husky": {
30
30
  "hooks": {
package/public/bundle.js CHANGED
@@ -14,12 +14,12 @@
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var M;z[g]=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:z}),(null!==(o=l.reactiveElementVersions)&&void 0!==o?o:l.reactiveElementVersions=[]).push("1.6.2");const m=window,f=m.trustedTypes,_=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,b="$lit$",y=`lit$${(Math.random()+"").slice(9)}$`,w="?"+y,C=`<${w}>`,A=document,x=()=>A.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,k="[ \t\n\f\r]",S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,O=/>/g,N=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,L=/"/g,$=/^(?:script|style|textarea|title)$/i,D=t=>(e,...h)=>({_$litType$:t,strings:e,values:h}),R=D(1),H=D(2),F=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),B=new WeakMap,U=A.createTreeWalker(A,129,null,!1),q=(t,e)=>{const h=t.length-1,a=[];let i,s=2===e?"<svg>":"",n=S;for(let e=0;e<h;e++){const h=t[e];let o,l,r=-1,d=0;for(;d<h.length&&(n.lastIndex=d,l=n.exec(h),null!==l);)d=n.lastIndex,n===S?"!--"===l[1]?n=T:void 0!==l[1]?n=O:void 0!==l[2]?($.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=N):void 0!==l[3]&&(n=N):n===N?">"===l[0]?(n=null!=i?i:S,r=-1):void 0===l[1]?r=-2:(r=n.lastIndex-l[2].length,o=l[1],n=void 0===l[3]?N:'"'===l[3]?L:I):n===L||n===I?n=N:n===T||n===O?n=S:(n=N,i=void 0);const v=n===N&&t[e+1].startsWith("/>")?" ":"";s+=n===S?h+C:r>=0?(a.push(o),h.slice(0,r)+b+h.slice(r)+y+v):h+y+(-2===r?(a.push(void 0),e):v)}const o=s+(t[h]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==_?_.createHTML(o):o,a]};class j{constructor({strings:t,_$litType$:e},h){let a;this.parts=[];let i=0,s=0;const n=t.length-1,o=this.parts,[l,r]=q(t,e);if(this.el=j.createElement(l,h),U.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(a=U.nextNode())&&o.length<n;){if(1===a.nodeType){if(a.hasAttributes()){const t=[];for(const e of a.getAttributeNames())if(e.endsWith(b)||e.startsWith(y)){const h=r[s++];if(t.push(e),void 0!==h){const t=a.getAttribute(h.toLowerCase()+b).split(y),e=/([.?@])?(.*)/.exec(h);o.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?X:"@"===e[1]?Q:G})}else o.push({type:6,index:i})}for(const e of t)a.removeAttribute(e)}if($.test(a.tagName)){const t=a.textContent.split(y),e=t.length-1;if(e>0){a.textContent=f?f.emptyScript:"";for(let h=0;h<e;h++)a.append(t[h],x()),U.nextNode(),o.push({type:2,index:++i});a.append(t[e],x())}}}else if(8===a.nodeType)if(a.data===w)o.push({type:2,index:i});else{let t=-1;for(;-1!==(t=a.data.indexOf(y,t+1));)o.push({type:7,index:i}),t+=y.length-1}i++}}static createElement(t,e){const h=A.createElement("template");return h.innerHTML=t,h}}function Y(t,e,h=t,a){var i,s,n,o;if(e===F)return e;let l=void 0!==a?null===(i=h._$Co)||void 0===i?void 0:i[a]:h._$Cl;const r=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==r&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===r?l=void 0:(l=new r(t),l._$AT(t,h,a)),void 0!==a?(null!==(n=(o=h)._$Co)&&void 0!==n?n:o._$Co=[])[a]=l:h._$Cl=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,a)),e}class K{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:h},parts:a}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(h,!0);U.currentNode=i;let s=U.nextNode(),n=0,o=0,l=a[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new W(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new tt(s,this,t)),this._$AV.push(e),l=a[++o]}n!==(null==l?void 0:l.index)&&(s=U.nextNode(),n++)}return U.currentNode=A,i}v(t){let e=0;for(const h of this._$AV)void 0!==h&&(void 0!==h.strings?(h._$AI(t,h,e),e+=h.strings.length-2):h._$AI(t[e])),e++}}class W{constructor(t,e,h,a){var i;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=h,this.options=a,this._$Cp=null===(i=null==a?void 0:a.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),E(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:h,_$litType$:a}=t,i="number"==typeof a?this._$AC(t):(void 0===a.el&&(a.el=j.createElement(a.h,this.options)),a);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(h);else{const t=new K(i,this),e=t.u(this.options);t.v(h),this.$(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new j(t)),e}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let h,a=0;for(const i of t)a===e.length?e.push(h=new W(this.k(x()),this.k(x()),this,this.options)):h=e[a],h._$AI(i),a++;a<e.length&&(this._$AR(h&&h._$AB.nextSibling,a),e.length=a)}_$AR(t=this._$AA.nextSibling,e){var h;for(null===(h=this._$AP)||void 0===h||h.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,h,a,i){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=i,h.length>2||""!==h[0]||""!==h[1]?(this._$AH=Array(h.length-1).fill(new String),this.strings=h):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,h,a){const i=this.strings;let s=!1;if(void 0===i)t=Y(this,t,e,0),s=!E(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{const a=t;let n,o;for(t=i[0],n=0;n<i.length-1;n++)o=Y(this,a[h+n],e,n),o===F&&(o=this._$AH[n]),s||(s=!E(o)||o!==this._$AH[n]),o===V?t=V:t!==V&&(t+=(null!=o?o:"")+i[n+1]),this._$AH[n]=o}s&&!a&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const Z=f?f.emptyScript:"";class X extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class Q extends G{constructor(t,e,h,a,i){super(t,e,h,a,i),this.type=5}_$AI(t,e=this){var h;if((t=null!==(h=Y(this,t,e,0))&&void 0!==h?h:V)===F)return;const a=this._$AH,i=t===V&&a!==V||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,s=t!==V&&(a===V||i);i&&this.element.removeEventListener(this.name,this,a),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,h;"function"==typeof this._$AH?this._$AH.call(null!==(h=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==h?h:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,e,h){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=h}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const et=m.litHtmlPolyfillSupport;null==et||et(j,W),(null!==(M=m.litHtmlVersions)&&void 0!==M?M:m.litHtmlVersions=[]).push("2.7.4");const ht=(t,e,h)=>{var a,i;const s=null!==(a=null==h?void 0:h.renderBefore)&&void 0!==a?a:e;let n=s._$litPart$;if(void 0===n){const t=null!==(i=null==h?void 0:h.renderBefore)&&void 0!==i?i:null;s._$litPart$=n=new W(e.insertBefore(x(),t),t,void 0,null!=h?h:{})}return n._$AI(t),n
17
+ var M;z[g]=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:z}),(null!==(o=l.reactiveElementVersions)&&void 0!==o?o:l.reactiveElementVersions=[]).push("1.6.2");const m=window,f=m.trustedTypes,_=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,b="$lit$",y=`lit$${(Math.random()+"").slice(9)}$`,w="?"+y,C=`<${w}>`,A=document,x=()=>A.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,k="[ \t\n\f\r]",S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,O=/>/g,N=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,L=/"/g,$=/^(?:script|style|textarea|title)$/i,D=t=>(e,...h)=>({_$litType$:t,strings:e,values:h}),R=D(1),H=D(2),V=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),B=new WeakMap,U=A.createTreeWalker(A,129,null,!1),q=(t,e)=>{const h=t.length-1,a=[];let i,s=2===e?"<svg>":"",n=S;for(let e=0;e<h;e++){const h=t[e];let o,l,r=-1,d=0;for(;d<h.length&&(n.lastIndex=d,l=n.exec(h),null!==l);)d=n.lastIndex,n===S?"!--"===l[1]?n=T:void 0!==l[1]?n=O:void 0!==l[2]?($.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=N):void 0!==l[3]&&(n=N):n===N?">"===l[0]?(n=null!=i?i:S,r=-1):void 0===l[1]?r=-2:(r=n.lastIndex-l[2].length,o=l[1],n=void 0===l[3]?N:'"'===l[3]?L:I):n===L||n===I?n=N:n===T||n===O?n=S:(n=N,i=void 0);const v=n===N&&t[e+1].startsWith("/>")?" ":"";s+=n===S?h+C:r>=0?(a.push(o),h.slice(0,r)+b+h.slice(r)+y+v):h+y+(-2===r?(a.push(void 0),e):v)}const o=s+(t[h]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==_?_.createHTML(o):o,a]};class j{constructor({strings:t,_$litType$:e},h){let a;this.parts=[];let i=0,s=0;const n=t.length-1,o=this.parts,[l,r]=q(t,e);if(this.el=j.createElement(l,h),U.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(a=U.nextNode())&&o.length<n;){if(1===a.nodeType){if(a.hasAttributes()){const t=[];for(const e of a.getAttributeNames())if(e.endsWith(b)||e.startsWith(y)){const h=r[s++];if(t.push(e),void 0!==h){const t=a.getAttribute(h.toLowerCase()+b).split(y),e=/([.?@])?(.*)/.exec(h);o.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?X:"@"===e[1]?Q:G})}else o.push({type:6,index:i})}for(const e of t)a.removeAttribute(e)}if($.test(a.tagName)){const t=a.textContent.split(y),e=t.length-1;if(e>0){a.textContent=f?f.emptyScript:"";for(let h=0;h<e;h++)a.append(t[h],x()),U.nextNode(),o.push({type:2,index:++i});a.append(t[e],x())}}}else if(8===a.nodeType)if(a.data===w)o.push({type:2,index:i});else{let t=-1;for(;-1!==(t=a.data.indexOf(y,t+1));)o.push({type:7,index:i}),t+=y.length-1}i++}}static createElement(t,e){const h=A.createElement("template");return h.innerHTML=t,h}}function Y(t,e,h=t,a){var i,s,n,o;if(e===V)return e;let l=void 0!==a?null===(i=h._$Co)||void 0===i?void 0:i[a]:h._$Cl;const r=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==r&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===r?l=void 0:(l=new r(t),l._$AT(t,h,a)),void 0!==a?(null!==(n=(o=h)._$Co)&&void 0!==n?n:o._$Co=[])[a]=l:h._$Cl=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,a)),e}class K{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:h},parts:a}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(h,!0);U.currentNode=i;let s=U.nextNode(),n=0,o=0,l=a[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new W(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new tt(s,this,t)),this._$AV.push(e),l=a[++o]}n!==(null==l?void 0:l.index)&&(s=U.nextNode(),n++)}return U.currentNode=A,i}v(t){let e=0;for(const h of this._$AV)void 0!==h&&(void 0!==h.strings?(h._$AI(t,h,e),e+=h.strings.length-2):h._$AI(t[e])),e++}}class W{constructor(t,e,h,a){var i;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=h,this.options=a,this._$Cp=null===(i=null==a?void 0:a.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),E(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==V&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==F&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:h,_$litType$:a}=t,i="number"==typeof a?this._$AC(t):(void 0===a.el&&(a.el=j.createElement(a.h,this.options)),a);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(h);else{const t=new K(i,this),e=t.u(this.options);t.v(h),this.$(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new j(t)),e}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let h,a=0;for(const i of t)a===e.length?e.push(h=new W(this.k(x()),this.k(x()),this,this.options)):h=e[a],h._$AI(i),a++;a<e.length&&(this._$AR(h&&h._$AB.nextSibling,a),e.length=a)}_$AR(t=this._$AA.nextSibling,e){var h;for(null===(h=this._$AP)||void 0===h||h.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,h,a,i){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=i,h.length>2||""!==h[0]||""!==h[1]?(this._$AH=Array(h.length-1).fill(new String),this.strings=h):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,h,a){const i=this.strings;let s=!1;if(void 0===i)t=Y(this,t,e,0),s=!E(t)||t!==this._$AH&&t!==V,s&&(this._$AH=t);else{const a=t;let n,o;for(t=i[0],n=0;n<i.length-1;n++)o=Y(this,a[h+n],e,n),o===V&&(o=this._$AH[n]),s||(s=!E(o)||o!==this._$AH[n]),o===F?t=F:t!==F&&(t+=(null!=o?o:"")+i[n+1]),this._$AH[n]=o}s&&!a&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}const Z=f?f.emptyScript:"";class X extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==F?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class Q extends G{constructor(t,e,h,a,i){super(t,e,h,a,i),this.type=5}_$AI(t,e=this){var h;if((t=null!==(h=Y(this,t,e,0))&&void 0!==h?h:F)===V)return;const a=this._$AH,i=t===F&&a!==F||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,s=t!==F&&(a===F||i);i&&this.element.removeEventListener(this.name,this,a),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,h;"function"==typeof this._$AH?this._$AH.call(null!==(h=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==h?h:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,e,h){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=h}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const et=m.litHtmlPolyfillSupport;null==et||et(j,W),(null!==(M=m.litHtmlVersions)&&void 0!==M?M:m.litHtmlVersions=[]).push("2.7.4");const ht=(t,e,h)=>{var a,i;const s=null!==(a=null==h?void 0:h.renderBefore)&&void 0!==a?a:e;let n=s._$litPart$;if(void 0===n){const t=null!==(i=null==h?void 0:h.renderBefore)&&void 0!==i?i:null;s._$litPart$=n=new W(e.insertBefore(x(),t),t,void 0,null!=h?h:{})}return n._$AI(t),n
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */};var at,it;class st extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const h=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=h.firstChild),h}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return F}}st.finalized=!0,st._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:st});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:st}),(null!==(it=globalThis.litElementVersions)&&void 0!==it?it:globalThis.litElementVersions=[]).push("3.3.2");
22
+ */};var at,it;class st extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const h=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=h.firstChild),h}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}st.finalized=!0,st._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:st});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:st}),(null!==(it=globalThis.litElementVersions)&&void 0!==it?it:globalThis.litElementVersions=[]).push("3.3.2");
23
23
  /**
24
24
  * @license
25
25
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
@@ -84,7 +84,7 @@ let Ct=0;const At=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__
84
84
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
85
85
  Code distributed by Google as part of the polymer project is also
86
86
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
87
- */const Ht=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const Ft=Ht&&"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 Vt=window.Polymer&&window.Polymer.rootPath||Rt(document.baseURI||window.location.href),Bt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ut=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,qt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,jt=window.Polymer&&window.Polymer.legacyOptimizations||!1,Yt=window.Polymer&&window.Polymer.legacyWarnings||!1,Kt=window.Polymer&&window.Polymer.syncInitialRender||!1,Wt=window.Polymer&&window.Polymer.legacyUndefined||!1,Gt=window.Polymer&&window.Polymer.orderedComputed||!1,Jt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Zt=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Xt=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;const Qt=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,te=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ee(t,e){if("function"!=typeof t)return;const h=Qt.exec(t.toString());if(h)try{t=new Function(h[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};const he=function(t,e){if(window.Vaadin.developmentMode)return ee(t,e)};function ae(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(te?!(te&&Object.keys(te).map((t=>te[t])).filter((t=>t.productionMode)).length>0):!ee((function(){return!0})))}catch(t){return!1}}());
87
+ */const Ht=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const Vt=Ht&&"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 Ft=window.Polymer&&window.Polymer.rootPath||Rt(document.baseURI||window.location.href),Bt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ut=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,qt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,jt=window.Polymer&&window.Polymer.legacyOptimizations||!1,Yt=window.Polymer&&window.Polymer.legacyWarnings||!1,Kt=window.Polymer&&window.Polymer.syncInitialRender||!1,Wt=window.Polymer&&window.Polymer.legacyUndefined||!1,Gt=window.Polymer&&window.Polymer.orderedComputed||!1,Jt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Zt=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Xt=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;const Qt=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,te=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ee(t,e){if("function"!=typeof t)return;const h=Qt.exec(t.toString());if(h)try{t=new Function(h[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};const he=function(t,e){if(window.Vaadin.developmentMode)return ee(t,e)};function ae(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(te?!(te&&Object.keys(te).map((t=>te[t])).filter((t=>t.productionMode)).length>0):!ee((function(){return!0})))}catch(t){return!1}}());
88
88
  /**
89
89
  * @license
90
90
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -165,12 +165,12 @@ class Re extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.l
165
165
  * @license
166
166
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
167
167
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
168
- */class Fe extends HTMLElement{static get version(){return"24.1.2"}}customElements.define("vaadin-lumo-styles",Fe);const Ve=(t,...e)=>{((t,...e)=>{const h=document.createElement("style");h.id=t,h.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",h)})(`lumo-${t}`,e)};
168
+ */class Ve extends HTMLElement{static get version(){return"24.1.2"}}customElements.define("vaadin-lumo-styles",Ve);const Fe=(t,...e)=>{((t,...e)=>{const h=document.createElement("style");h.id=t,h.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",h)})(`lumo-${t}`,e)};
169
169
  /**
170
170
  * @license
171
171
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
172
172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
173
- */Ve("color-props",s`
173
+ */Fe("color-props",s`
174
174
  :host {
175
175
  /* Base (background) */
176
176
  --lumo-base-color: #fff;
@@ -370,7 +370,7 @@ class Re extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.l
370
370
  background-color: var(--lumo-contrast-10pct);
371
371
  border-radius: var(--lumo-border-radius-m);
372
372
  }
373
- `,{moduleId:"lumo-color"});Ve("sizing-props",s`
373
+ `,{moduleId:"lumo-color"});Fe("sizing-props",s`
374
374
  :host {
375
375
  --lumo-size-xs: 1.625rem;
376
376
  --lumo-size-s: 1.875rem;
@@ -391,7 +391,7 @@ class Re extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.l
391
391
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
392
392
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
393
393
  }
394
- `,Ve("style-props",s`
394
+ `,Fe("style-props",s`
395
395
  :host {
396
396
  /* Border radius */
397
397
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -526,7 +526,7 @@ const Be=s`
526
526
  border-left: none;
527
527
  border-right: 2px solid var(--lumo-contrast-30pct);
528
528
  }
529
- `,{moduleId:"lumo-typography"}),Ve("typography-props",Be),dt("vaadin-input-container",s`
529
+ `,{moduleId:"lumo-typography"}),Fe("typography-props",Be),dt("vaadin-input-container",s`
530
530
  :host {
531
531
  background-color: var(--lumo-contrast-10pct);
532
532
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -763,7 +763,7 @@ const We="link[rel=import][type~=css]",Ge="include",Je="shady-unscoped";function
763
763
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
764
764
  * Google as part of the polymer project is also subject to an additional IP
765
765
  * rights grant found at http://polymer.github.io/PATENTS.txt
766
- */let Nh=0;const Ih=[],Lh={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},$h="__computeInfo",Dh=/[A-Z]/;function Rh(t,e,h){let a=t[e];if(a){if(!t.hasOwnProperty(e)&&(a=t[e]=Object.create(t[e]),h))for(let t in a){let e=a[t],h=a[t]=Array(e.length);for(let t=0;t<e.length;t++)h[t]=e[t]}}else a=t[e]={};return a}function Hh(t,e,h,a,i,s){if(e){let n=!1;const o=Nh++;for(let l in h){let r=e[i?ih(l):l];if(r)for(let e,d=0,v=r.length;d<v&&(e=r[d]);d++)e.info&&e.info.lastRun===o||i&&!Vh(l,e.trigger)||(e.info&&(e.info.lastRun=o),e.fn(t,l,h,a,e.info,i,s),n=!0)}return n}return!1}function Fh(t,e,h,a,i,s,n,o){let l=!1,r=e[n?ih(a):a];if(r)for(let e,d=0,v=r.length;d<v&&(e=r[d]);d++)e.info&&e.info.lastRun===h||n&&!Vh(a,e.trigger)||(e.info&&(e.info.lastRun=h),e.fn(t,a,i,s,e.info,n,o),l=!0);return l}function Vh(t,e){if(e){let h=e.name;return h==t||!(!e.structured||!function(t,e){return 0===t.indexOf(e+".")}(h,t))||!(!e.wildcard||!sh(h,t))}return!0}function Bh(t,e,h,a,i){let s="string"==typeof i.method?t[i.method]:i.method,n=i.property;s?s.call(t,t.__data[n],a[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Uh(t,e,h){let a=ih(e);if(a!==e){return qh(t,gh(a)+"-changed",h[e],e),!0}return!1}function qh(t,e,h,a){let i={value:h,queueProperty:!0};a&&(i.path=a),Te(t).dispatchEvent(new CustomEvent(e,{detail:i}))}function jh(t,e,h,a,i,s){let n=(s?ih(e):e)!=e?e:null,o=n?rh(t,n):t.__data[e];n&&void 0===o&&(o=h[e]),qh(t,i.eventName,o,n)}function Yh(t,e,h,a,i){let s=t.__data[e];Bt&&(s=Bt(s,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,s)}function Kh(t,e,h,a){let i=t[Lh.COMPUTE];if(i)if(Gt){Nh++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const h=t[Lh.COMPUTE];let a,{counts:i,ready:s,total:n}=function(t){const e=t[$h],h={},a=t[Lh.COMPUTE],i=[];let s=0;for(let t in e){const a=e[t];s+=h[t]=a.args.filter((t=>!t.literal)).length+(a.dynamicFn?1:0)}for(let t in a)e[t]||i.push(t);return{counts:h,ready:i,total:s}}(t);for(;a=s.shift();){e.set(a,e.size);const t=h[a];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--i[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)Gh(t,i,n,s,a);let o;for(;o=n.shift();)Jh(t,"",e,h,o)&&Gh(o.methodInfo,i,n,s,a);Object.assign(h,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;Hh(t,i,s,h,a);)Object.assign(h,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Wh=(t,e,h)=>{let a=0,i=e.length-1,s=-1;for(;a<=i;){const n=a+i>>1,o=h.get(e[n].methodInfo)-h.get(t.methodInfo);if(o<0)a=n+1;else{if(!(o>0)){s=n;break}i=n-1}}s<0&&(s=i+1),e.splice(s,0,t)},Gh=(t,e,h,a,i)=>{const s=e[i?ih(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun===Nh||i&&!Vh(t,n.trigger)||(n.info.lastRun=Nh,Wh(n.info,h,a))}};function Jh(t,e,h,a,i){let s=aa(t,e,h,a,i);if(s===Ih)return!1;let n=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Zh(t,e,h,a,i,s,n){h.bindings=h.bindings||[];let o={kind:a,target:i,parts:s,literal:n,isCompound:1!==s.length};if(h.bindings.push(o),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(o)){let{event:t,negate:e}=o.parts[0];o.listenerEvent=t||gh(i)+"-changed",o.listenerNegate=e}let l=e.nodeInfoList.length;for(let h=0;h<o.parts.length;h++){let a=o.parts[h];a.compoundIndex=h,Xh(t,e,o,a,l)}}function Xh(t,e,h,a,i){if(!a.literal)if("attribute"===h.kind&&"-"===h.target[0])console.warn("Cannot set attribute "+h.target+' because "-" is not a valid attribute starting character');else{let s=a.dependencies,n={index:i,binding:h,part:a,evaluator:t};for(let h=0;h<s.length;h++){let a=s[h];"string"==typeof a&&(a=da(a),a.wildcard=!0),t._addTemplatePropertyEffect(e,a.rootProperty,{fn:Qh,info:n,trigger:a})}}}function Qh(t,e,h,a,i,s,n){let o=n[i.index],l=i.binding,r=i.part;if(s&&r.source&&e.length>r.source.length&&"property"==l.kind&&!l.isCompound&&o.__isPropertyEffectsClient&&o.__dataHasAccessor&&o.__dataHasAccessor[l.target]){let a=h[e];e=nh(r.source,l.target,e),o._setPendingPropertyOrPath(e,a,!1,!0)&&t._enqueueClient(o)}else{let n=i.evaluator._evaluateBinding(t,r,e,h,a,s);n!==Ih&&function(t,e,h,a,i){i=function(t,e,h,a){if(h.isCompound){let i=t.__dataCompoundStorage[h.target];i[a.compoundIndex]=e,e=i.join("")}"attribute"!==h.kind&&("textContent"!==h.target&&("value"!==h.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,i,h,a),Bt&&(i=Bt(i,h.target,h.kind,e));if("attribute"==h.kind)t._valueToNodeAttribute(e,i,h.target);else{let a=h.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?e[Lh.READ_ONLY]&&e[Lh.READ_ONLY][a]||e._setPendingProperty(a,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,a,i)}}(t,o,l,r,n)}}function ta(t,e){if(e.isCompound){let h=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),a=e.parts,i=new Array(a.length);for(let t=0;t<a.length;t++)i[t]=a[t].literal;let s=e.target;h[s]=i,e.literal&&"property"==e.kind&&("className"===s&&(t=Te(t)),t[s]=e.literal)}}function ea(t,e,h){if(h.listenerEvent){let a=h.parts[0];t.addEventListener(h.listenerEvent,(function(t){!function(t,e,h,a,i){let s,n=t.detail,o=n&&n.path;o?(a=nh(h,a,o),s=n&&n.value):s=t.currentTarget[h],s=i?!s:s,e[Lh.READ_ONLY]&&e[Lh.READ_ONLY][a]||!e._setPendingPropertyOrPath(a,s,!0,Boolean(o))||n&&n.queueProperty||e._invalidateProperties()}(t,e,h.target,a.source,a.negate)}))}}function ha(t,e,h,a,i,s){s=e.static||s&&("object"!=typeof s||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:s};for(let i,s=0;s<e.args.length&&(i=e.args[s]);s++)i.literal||t._addPropertyEffect(i.rootProperty,h,{fn:a,info:n,trigger:i});return s&&t._addPropertyEffect(e.methodName,h,{fn:a,info:n}),n}function aa(t,e,h,a,i){let s=t._methodHost||t,n=s[i.methodName];if(n){let a=t._marshalArgs(i.args,e,h);return a===Ih?Ih:n.apply(s,a)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const ia=[],sa="(?:[a-zA-Z_$][\\w.:$\\-*]*)",na="(?:("+sa+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",oa=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+sa+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+na+"(?:,\\s*"+na+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function la(t){let e="";for(let h=0;h<t.length;h++){e+=t[h].literal||""}return e}function ra(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ia};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let h=da(t);return h.literal||(e.static=!1),h}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t)}return t}return null}function da(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),h={name:e,value:"",literal:!1},a=e[0];switch("-"===a&&(a=e[1]),a>="0"&&a<="9"&&(a="#"),a){case"'":case'"':h.value=e.slice(1,-1),h.literal=!0;break;case"#":h.value=Number(e),h.literal=!0}return h.literal||(h.rootProperty=ih(e),h.structured=ah(e),h.structured&&(h.wildcard=".*"==e.slice(-2),h.wildcard&&(h.name=e.slice(0,-2)))),h}function va(t,e,h){let a=rh(t,h);return void 0===a&&(a=e[h]),a}function ca(t,e,h,a){const i={indexSplices:a};Wt&&!t._overrideLegacyUndefined&&(e.splices=i),t.notifyPath(h+".splices",i),t.notifyPath(h+".length",e.length),Wt&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function pa(t,e,h,a,i,s){ca(t,e,h,[{index:a,addedCount:i,removed:s,object:e,type:"splice"}])}const ua=At((t=>{const e=Oh(bh(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 Lh}_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(ga.length){let t=ga[ga.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[Lh.READ_ONLY];for(let h in t)e&&e[h]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[h]=this.__dataPending[h]=t[h])}_addPropertyEffect(t,e,h){this._createPropertyAccessor(t,e==Lh.READ_ONLY);let a=Rh(this,e,!0)[t];a||(a=this[e][t]=[]),a.push(h)}_removePropertyEffect(t,e,h){let a=Rh(this,e,!0)[t],i=a.indexOf(h);i>=0&&a.splice(i,1)}_hasPropertyEffect(t,e){let h=this[e];return Boolean(h&&h[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Lh.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Lh.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Lh.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Lh.COMPUTE)}_setPendingPropertyOrPath(t,e,h,a){if(a||ih(Array.isArray(t)?t[0]:t)!==t){if(!a){let h=rh(this,t);if(!(t=dh(this,t,e))||!super._shouldPropertyChange(t,e,h))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,h))return function(t,e,h){let a=t.__dataLinkedPaths;if(a){let i;for(let s in a){let n=a[s];sh(s,e)?(i=nh(s,n,e),t._setPendingPropertyOrPath(i,h,!0,!0)):sh(n,e)&&(i=nh(n,s,e),t._setPendingPropertyOrPath(i,h,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,h);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,h){h===t[e]&&"object"!=typeof h||("className"===e&&(t=Te(t)),t[e]=h)}_setPendingProperty(t,e,h){let a=this.__dataHasPaths&&ah(t),i=a?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,i[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),a?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(a||this[Lh.NOTIFY]&&this[Lh.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=h),!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 h=t[e];h.__dataEnabled?h.__dataPending&&h._flushProperties():h._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let h in t)!e&&this[Lh.READ_ONLY]&&this[Lh.READ_ONLY][h]||this._setPendingPropertyOrPath(h,t[h],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,h){let a,i=this.__dataHasPaths;this.__dataHasPaths=!1,Kh(this,e,h,i),a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,h,i),this._flushClients(),Hh(this,this[Lh.REFLECT],e,h,i),Hh(this,this[Lh.OBSERVE],e,h,i),a&&function(t,e,h,a,i){let s,n,o=t[Lh.NOTIFY],l=Nh++;for(let n in e)e[n]&&(o&&Fh(t,o,l,n,h,a,i)||i&&Uh(t,n,h))&&(s=!0);s&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,a,e,h,i),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,h){this[Lh.PROPAGATE]&&Hh(this,this[Lh.PROPAGATE],t,e,h),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,h)}_runEffectsForTemplate(t,e,h,a){const i=(e,a)=>{Hh(this,t.propertyEffects,e,h,a,t.nodeList);for(let i=t.firstChild;i;i=i.nextSibling)this._runEffectsForTemplate(i,e,h,a)};t.runEffects?t.runEffects(i,e,a):i(e,a)}linkPaths(t,e){t=oh(t),e=oh(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=oh(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let h={path:""};ca(this,rh(this,t,h),h.path,e)}get(t,e){return rh(e||this,t)}set(t,e,h){h?dh(h,t,e):this[Lh.READ_ONLY]&&this[Lh.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let h={path:""},a=rh(this,t,h),i=a.length,s=a.push(...e);return e.length&&pa(this,a,h.path,i,e.length,[]),s}pop(t){let e={path:""},h=rh(this,t,e),a=Boolean(h.length),i=h.pop();return a&&pa(this,h,e.path,h.length,0,[i]),i}splice(t,e,h,...a){let i,s={path:""},n=rh(this,t,s);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),i=2===arguments.length?n.splice(e):n.splice(e,h,...a),(a.length||i.length)&&pa(this,n,s.path,e,a.length,i),i}shift(t){let e={path:""},h=rh(this,t,e),a=Boolean(h.length),i=h.shift();return a&&pa(this,h,e.path,0,0,[i]),i}unshift(t,...e){let h={path:""},a=rh(this,t,h),i=a.unshift(...e);return e.length&&pa(this,a,h.path,0,e.length,[]),i}notifyPath(t,e){let h;if(1==arguments.length){let a={path:""};e=rh(this,t,a),h=a.path}else h=Array.isArray(t)?oh(t):t;this._setPendingPropertyOrPath(h,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var h;this._addPropertyEffect(t,Lh.READ_ONLY),e&&(this["_set"+(h=t,h[0].toUpperCase()+h.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,h){let a={property:t,method:e,dynamicFn:Boolean(h)};this._addPropertyEffect(t,Lh.OBSERVE,{fn:Bh,info:a,trigger:{name:t}}),h&&this._addPropertyEffect(e,Lh.OBSERVE,{fn:Bh,info:a,trigger:{name:e}})}_createMethodObserver(t,e){let h=ra(t);if(!h)throw new Error("Malformed observer expression '"+t+"'");ha(this,h,Lh.OBSERVE,aa,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Lh.NOTIFY,{fn:jh,info:{eventName:gh(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,Lh.REFLECT,{fn:Yh,info:{attrName:e}})}_createComputedProperty(t,e,h){let a=ra(e);if(!a)throw new Error("Malformed computed expression '"+e+"'");const i=ha(this,a,Lh.COMPUTE,Jh,t,h);Rh(this,$h)[t]=i}_marshalArgs(t,e,h){const a=this.__data,i=[];for(let s=0,n=t.length;s<n;s++){let{name:n,structured:o,wildcard:l,value:r,literal:d}=t[s];if(!d)if(l){const t=sh(n,e),i=va(a,h,t?e:n);r={path:t?e:n,value:i,base:t?rh(a,n):i}}else r=o?va(a,h,n):a[n];if(Wt&&!this._overrideLegacyUndefined&&void 0===r&&t.length>1)return Ih;i[s]=r}return i}static addPropertyEffect(t,e,h){this.prototype._addPropertyEffect(t,e,h)}static createPropertyObserver(t,e,h){this.prototype._createPropertyObserver(t,e,h)}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,h){this.prototype._createComputedProperty(t,e,h)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let h=this.constructor._parseTemplate(t),a=this.__preBoundTemplateInfo==h;if(!a)for(let t in h.propertyEffects)this._createPropertyAccessor(t);if(e)if(h=Object.create(h),h.wasPreBound=a,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,a=e.lastChild;h.parent=e,e.lastChild=h,h.previousSibling=a,a?a.nextSibling=h:e.firstChild=h}else this.__templateInfo=h;else this.__preBoundTemplateInfo=h;return h}static _addTemplatePropertyEffect(t,e,h){(t.hostProps=t.hostProps||{})[e]=!0;let a=t.propertyEffects=t.propertyEffects||{};(a[e]=a[e]||[]).push(h)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),ga.push(this);let h=super._stampTemplate(t,e);if(ga.pop(),e.nodeList=h.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=h.firstChild;e;e=e.nextSibling)t.push(e)}return h.templateInfo=e,function(t,e){let{nodeList:h,nodeInfoList:a}=e;if(a.length)for(let e=0;e<a.length;e++){let i=a[e],s=h[e],n=i.bindings;if(n)for(let e=0;e<n.length;e++){let h=n[e];ta(s,h),ea(s,t,h)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),h}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:h,nextSibling:a,parent:i}=e;h?h.nextSibling=a:i&&(i.firstChild=a),a?a.previousSibling=h:i&&(i.lastChild=h),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];Te(Te(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,h,a){let i=e._parseTemplateNode.call(this,t,h,a);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,h);e&&(t.textContent=la(e)||" ",Zh(this,h,a,"text","textContent",e),i=!0)}return i}static _parseTemplateNodeAttribute(t,h,a,i,s){let n=this._parseBindings(s,h);if(n){let e=i,s="property";Dh.test(i)?s="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),s="attribute");let o=la(n);return o&&"attribute"==s&&("class"==i&&t.hasAttribute("class")&&(o+=" "+t.getAttribute(i)),t.setAttribute(i,o)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(i,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(i=uh(i)),Zh(this,h,a,s,i,n,o),!0}return e._parseTemplateNodeAttribute.call(this,t,h,a,i,s)}static _parseTemplateNestedTemplate(t,h,a){let i=e._parseTemplateNestedTemplate.call(this,t,h,a);const s=t.parentNode,n=a.templateInfo,o="dom-if"===s.localName,l="dom-repeat"===s.localName;Jt&&(o||l)&&(s.removeChild(t),(a=a.parentInfo).templateInfo=n,a.noted=!0,i=!1);let r=n.hostProps;if(Zt&&o)r&&(h.hostProps=Object.assign(h.hostProps||{},r),Jt||(a.parentInfo.noted=!0));else{let t="{";for(let e in r){Zh(this,h,a,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return i}static _parseBindings(t,e){let h,a=[],i=0;for(;null!==(h=oa.exec(t));){h.index>i&&a.push({literal:t.slice(i,h.index)});let s=h[1][0],n=Boolean(h[2]),o=h[3].trim(),l=!1,r="",d=-1;"{"==s&&(d=o.indexOf("::"))>0&&(r=o.substring(d+2),o=o.substring(0,d),l=!0);let v=ra(o),c=[];if(v){let{args:t,methodName:h}=v;for(let e=0;e<t.length;e++){let h=t[e];h.literal||c.push(h)}let a=e.dynamicFns;(a&&a[h]||v.static)&&(c.push(h),v.dynamicFn=!0)}else c.push(o);a.push({source:o,mode:s,negate:n,customEvent:l,signature:v,dependencies:c,event:r}),i=oa.lastIndex}if(i&&i<t.length){let e=t.substring(i);e&&a.push({literal:e})}return a.length?a:null}static _evaluateBinding(t,e,h,a,i,s){let n;return n=e.signature?aa(t,h,a,0,e.signature):h!=e.source?rh(t,e.source):s&&ah(h)?rh(t,h):t.__data[h],e.negate&&(n=!n),n}}})),ga=[];const za=At((t=>{const e=Mh(t);function h(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof i?e:null}function a(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const h=t.properties;h&&(e=
766
+ */let Nh=0;const Ih=[],Lh={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},$h="__computeInfo",Dh=/[A-Z]/;function Rh(t,e,h){let a=t[e];if(a){if(!t.hasOwnProperty(e)&&(a=t[e]=Object.create(t[e]),h))for(let t in a){let e=a[t],h=a[t]=Array(e.length);for(let t=0;t<e.length;t++)h[t]=e[t]}}else a=t[e]={};return a}function Hh(t,e,h,a,i,s){if(e){let n=!1;const o=Nh++;for(let l in h){let r=e[i?ih(l):l];if(r)for(let e,d=0,v=r.length;d<v&&(e=r[d]);d++)e.info&&e.info.lastRun===o||i&&!Fh(l,e.trigger)||(e.info&&(e.info.lastRun=o),e.fn(t,l,h,a,e.info,i,s),n=!0)}return n}return!1}function Vh(t,e,h,a,i,s,n,o){let l=!1,r=e[n?ih(a):a];if(r)for(let e,d=0,v=r.length;d<v&&(e=r[d]);d++)e.info&&e.info.lastRun===h||n&&!Fh(a,e.trigger)||(e.info&&(e.info.lastRun=h),e.fn(t,a,i,s,e.info,n,o),l=!0);return l}function Fh(t,e){if(e){let h=e.name;return h==t||!(!e.structured||!function(t,e){return 0===t.indexOf(e+".")}(h,t))||!(!e.wildcard||!sh(h,t))}return!0}function Bh(t,e,h,a,i){let s="string"==typeof i.method?t[i.method]:i.method,n=i.property;s?s.call(t,t.__data[n],a[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Uh(t,e,h){let a=ih(e);if(a!==e){return qh(t,gh(a)+"-changed",h[e],e),!0}return!1}function qh(t,e,h,a){let i={value:h,queueProperty:!0};a&&(i.path=a),Te(t).dispatchEvent(new CustomEvent(e,{detail:i}))}function jh(t,e,h,a,i,s){let n=(s?ih(e):e)!=e?e:null,o=n?rh(t,n):t.__data[e];n&&void 0===o&&(o=h[e]),qh(t,i.eventName,o,n)}function Yh(t,e,h,a,i){let s=t.__data[e];Bt&&(s=Bt(s,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,s)}function Kh(t,e,h,a){let i=t[Lh.COMPUTE];if(i)if(Gt){Nh++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const h=t[Lh.COMPUTE];let a,{counts:i,ready:s,total:n}=function(t){const e=t[$h],h={},a=t[Lh.COMPUTE],i=[];let s=0;for(let t in e){const a=e[t];s+=h[t]=a.args.filter((t=>!t.literal)).length+(a.dynamicFn?1:0)}for(let t in a)e[t]||i.push(t);return{counts:h,ready:i,total:s}}(t);for(;a=s.shift();){e.set(a,e.size);const t=h[a];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--i[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)Gh(t,i,n,s,a);let o;for(;o=n.shift();)Jh(t,"",e,h,o)&&Gh(o.methodInfo,i,n,s,a);Object.assign(h,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;Hh(t,i,s,h,a);)Object.assign(h,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Wh=(t,e,h)=>{let a=0,i=e.length-1,s=-1;for(;a<=i;){const n=a+i>>1,o=h.get(e[n].methodInfo)-h.get(t.methodInfo);if(o<0)a=n+1;else{if(!(o>0)){s=n;break}i=n-1}}s<0&&(s=i+1),e.splice(s,0,t)},Gh=(t,e,h,a,i)=>{const s=e[i?ih(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun===Nh||i&&!Fh(t,n.trigger)||(n.info.lastRun=Nh,Wh(n.info,h,a))}};function Jh(t,e,h,a,i){let s=aa(t,e,h,a,i);if(s===Ih)return!1;let n=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Zh(t,e,h,a,i,s,n){h.bindings=h.bindings||[];let o={kind:a,target:i,parts:s,literal:n,isCompound:1!==s.length};if(h.bindings.push(o),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(o)){let{event:t,negate:e}=o.parts[0];o.listenerEvent=t||gh(i)+"-changed",o.listenerNegate=e}let l=e.nodeInfoList.length;for(let h=0;h<o.parts.length;h++){let a=o.parts[h];a.compoundIndex=h,Xh(t,e,o,a,l)}}function Xh(t,e,h,a,i){if(!a.literal)if("attribute"===h.kind&&"-"===h.target[0])console.warn("Cannot set attribute "+h.target+' because "-" is not a valid attribute starting character');else{let s=a.dependencies,n={index:i,binding:h,part:a,evaluator:t};for(let h=0;h<s.length;h++){let a=s[h];"string"==typeof a&&(a=da(a),a.wildcard=!0),t._addTemplatePropertyEffect(e,a.rootProperty,{fn:Qh,info:n,trigger:a})}}}function Qh(t,e,h,a,i,s,n){let o=n[i.index],l=i.binding,r=i.part;if(s&&r.source&&e.length>r.source.length&&"property"==l.kind&&!l.isCompound&&o.__isPropertyEffectsClient&&o.__dataHasAccessor&&o.__dataHasAccessor[l.target]){let a=h[e];e=nh(r.source,l.target,e),o._setPendingPropertyOrPath(e,a,!1,!0)&&t._enqueueClient(o)}else{let n=i.evaluator._evaluateBinding(t,r,e,h,a,s);n!==Ih&&function(t,e,h,a,i){i=function(t,e,h,a){if(h.isCompound){let i=t.__dataCompoundStorage[h.target];i[a.compoundIndex]=e,e=i.join("")}"attribute"!==h.kind&&("textContent"!==h.target&&("value"!==h.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,i,h,a),Bt&&(i=Bt(i,h.target,h.kind,e));if("attribute"==h.kind)t._valueToNodeAttribute(e,i,h.target);else{let a=h.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?e[Lh.READ_ONLY]&&e[Lh.READ_ONLY][a]||e._setPendingProperty(a,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,a,i)}}(t,o,l,r,n)}}function ta(t,e){if(e.isCompound){let h=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),a=e.parts,i=new Array(a.length);for(let t=0;t<a.length;t++)i[t]=a[t].literal;let s=e.target;h[s]=i,e.literal&&"property"==e.kind&&("className"===s&&(t=Te(t)),t[s]=e.literal)}}function ea(t,e,h){if(h.listenerEvent){let a=h.parts[0];t.addEventListener(h.listenerEvent,(function(t){!function(t,e,h,a,i){let s,n=t.detail,o=n&&n.path;o?(a=nh(h,a,o),s=n&&n.value):s=t.currentTarget[h],s=i?!s:s,e[Lh.READ_ONLY]&&e[Lh.READ_ONLY][a]||!e._setPendingPropertyOrPath(a,s,!0,Boolean(o))||n&&n.queueProperty||e._invalidateProperties()}(t,e,h.target,a.source,a.negate)}))}}function ha(t,e,h,a,i,s){s=e.static||s&&("object"!=typeof s||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:s};for(let i,s=0;s<e.args.length&&(i=e.args[s]);s++)i.literal||t._addPropertyEffect(i.rootProperty,h,{fn:a,info:n,trigger:i});return s&&t._addPropertyEffect(e.methodName,h,{fn:a,info:n}),n}function aa(t,e,h,a,i){let s=t._methodHost||t,n=s[i.methodName];if(n){let a=t._marshalArgs(i.args,e,h);return a===Ih?Ih:n.apply(s,a)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const ia=[],sa="(?:[a-zA-Z_$][\\w.:$\\-*]*)",na="(?:("+sa+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",oa=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+sa+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+na+"(?:,\\s*"+na+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function la(t){let e="";for(let h=0;h<t.length;h++){e+=t[h].literal||""}return e}function ra(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ia};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let h=da(t);return h.literal||(e.static=!1),h}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t)}return t}return null}function da(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),h={name:e,value:"",literal:!1},a=e[0];switch("-"===a&&(a=e[1]),a>="0"&&a<="9"&&(a="#"),a){case"'":case'"':h.value=e.slice(1,-1),h.literal=!0;break;case"#":h.value=Number(e),h.literal=!0}return h.literal||(h.rootProperty=ih(e),h.structured=ah(e),h.structured&&(h.wildcard=".*"==e.slice(-2),h.wildcard&&(h.name=e.slice(0,-2)))),h}function va(t,e,h){let a=rh(t,h);return void 0===a&&(a=e[h]),a}function ca(t,e,h,a){const i={indexSplices:a};Wt&&!t._overrideLegacyUndefined&&(e.splices=i),t.notifyPath(h+".splices",i),t.notifyPath(h+".length",e.length),Wt&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function pa(t,e,h,a,i,s){ca(t,e,h,[{index:a,addedCount:i,removed:s,object:e,type:"splice"}])}const ua=At((t=>{const e=Oh(bh(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 Lh}_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(ga.length){let t=ga[ga.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[Lh.READ_ONLY];for(let h in t)e&&e[h]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[h]=this.__dataPending[h]=t[h])}_addPropertyEffect(t,e,h){this._createPropertyAccessor(t,e==Lh.READ_ONLY);let a=Rh(this,e,!0)[t];a||(a=this[e][t]=[]),a.push(h)}_removePropertyEffect(t,e,h){let a=Rh(this,e,!0)[t],i=a.indexOf(h);i>=0&&a.splice(i,1)}_hasPropertyEffect(t,e){let h=this[e];return Boolean(h&&h[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Lh.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Lh.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Lh.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Lh.COMPUTE)}_setPendingPropertyOrPath(t,e,h,a){if(a||ih(Array.isArray(t)?t[0]:t)!==t){if(!a){let h=rh(this,t);if(!(t=dh(this,t,e))||!super._shouldPropertyChange(t,e,h))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,h))return function(t,e,h){let a=t.__dataLinkedPaths;if(a){let i;for(let s in a){let n=a[s];sh(s,e)?(i=nh(s,n,e),t._setPendingPropertyOrPath(i,h,!0,!0)):sh(n,e)&&(i=nh(n,s,e),t._setPendingPropertyOrPath(i,h,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,h);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,h){h===t[e]&&"object"!=typeof h||("className"===e&&(t=Te(t)),t[e]=h)}_setPendingProperty(t,e,h){let a=this.__dataHasPaths&&ah(t),i=a?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,i[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),a?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(a||this[Lh.NOTIFY]&&this[Lh.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=h),!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 h=t[e];h.__dataEnabled?h.__dataPending&&h._flushProperties():h._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let h in t)!e&&this[Lh.READ_ONLY]&&this[Lh.READ_ONLY][h]||this._setPendingPropertyOrPath(h,t[h],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,h){let a,i=this.__dataHasPaths;this.__dataHasPaths=!1,Kh(this,e,h,i),a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,h,i),this._flushClients(),Hh(this,this[Lh.REFLECT],e,h,i),Hh(this,this[Lh.OBSERVE],e,h,i),a&&function(t,e,h,a,i){let s,n,o=t[Lh.NOTIFY],l=Nh++;for(let n in e)e[n]&&(o&&Vh(t,o,l,n,h,a,i)||i&&Uh(t,n,h))&&(s=!0);s&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,a,e,h,i),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,h){this[Lh.PROPAGATE]&&Hh(this,this[Lh.PROPAGATE],t,e,h),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,h)}_runEffectsForTemplate(t,e,h,a){const i=(e,a)=>{Hh(this,t.propertyEffects,e,h,a,t.nodeList);for(let i=t.firstChild;i;i=i.nextSibling)this._runEffectsForTemplate(i,e,h,a)};t.runEffects?t.runEffects(i,e,a):i(e,a)}linkPaths(t,e){t=oh(t),e=oh(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=oh(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let h={path:""};ca(this,rh(this,t,h),h.path,e)}get(t,e){return rh(e||this,t)}set(t,e,h){h?dh(h,t,e):this[Lh.READ_ONLY]&&this[Lh.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let h={path:""},a=rh(this,t,h),i=a.length,s=a.push(...e);return e.length&&pa(this,a,h.path,i,e.length,[]),s}pop(t){let e={path:""},h=rh(this,t,e),a=Boolean(h.length),i=h.pop();return a&&pa(this,h,e.path,h.length,0,[i]),i}splice(t,e,h,...a){let i,s={path:""},n=rh(this,t,s);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),i=2===arguments.length?n.splice(e):n.splice(e,h,...a),(a.length||i.length)&&pa(this,n,s.path,e,a.length,i),i}shift(t){let e={path:""},h=rh(this,t,e),a=Boolean(h.length),i=h.shift();return a&&pa(this,h,e.path,0,0,[i]),i}unshift(t,...e){let h={path:""},a=rh(this,t,h),i=a.unshift(...e);return e.length&&pa(this,a,h.path,0,e.length,[]),i}notifyPath(t,e){let h;if(1==arguments.length){let a={path:""};e=rh(this,t,a),h=a.path}else h=Array.isArray(t)?oh(t):t;this._setPendingPropertyOrPath(h,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var h;this._addPropertyEffect(t,Lh.READ_ONLY),e&&(this["_set"+(h=t,h[0].toUpperCase()+h.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,h){let a={property:t,method:e,dynamicFn:Boolean(h)};this._addPropertyEffect(t,Lh.OBSERVE,{fn:Bh,info:a,trigger:{name:t}}),h&&this._addPropertyEffect(e,Lh.OBSERVE,{fn:Bh,info:a,trigger:{name:e}})}_createMethodObserver(t,e){let h=ra(t);if(!h)throw new Error("Malformed observer expression '"+t+"'");ha(this,h,Lh.OBSERVE,aa,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Lh.NOTIFY,{fn:jh,info:{eventName:gh(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,Lh.REFLECT,{fn:Yh,info:{attrName:e}})}_createComputedProperty(t,e,h){let a=ra(e);if(!a)throw new Error("Malformed computed expression '"+e+"'");const i=ha(this,a,Lh.COMPUTE,Jh,t,h);Rh(this,$h)[t]=i}_marshalArgs(t,e,h){const a=this.__data,i=[];for(let s=0,n=t.length;s<n;s++){let{name:n,structured:o,wildcard:l,value:r,literal:d}=t[s];if(!d)if(l){const t=sh(n,e),i=va(a,h,t?e:n);r={path:t?e:n,value:i,base:t?rh(a,n):i}}else r=o?va(a,h,n):a[n];if(Wt&&!this._overrideLegacyUndefined&&void 0===r&&t.length>1)return Ih;i[s]=r}return i}static addPropertyEffect(t,e,h){this.prototype._addPropertyEffect(t,e,h)}static createPropertyObserver(t,e,h){this.prototype._createPropertyObserver(t,e,h)}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,h){this.prototype._createComputedProperty(t,e,h)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let h=this.constructor._parseTemplate(t),a=this.__preBoundTemplateInfo==h;if(!a)for(let t in h.propertyEffects)this._createPropertyAccessor(t);if(e)if(h=Object.create(h),h.wasPreBound=a,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,a=e.lastChild;h.parent=e,e.lastChild=h,h.previousSibling=a,a?a.nextSibling=h:e.firstChild=h}else this.__templateInfo=h;else this.__preBoundTemplateInfo=h;return h}static _addTemplatePropertyEffect(t,e,h){(t.hostProps=t.hostProps||{})[e]=!0;let a=t.propertyEffects=t.propertyEffects||{};(a[e]=a[e]||[]).push(h)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),ga.push(this);let h=super._stampTemplate(t,e);if(ga.pop(),e.nodeList=h.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=h.firstChild;e;e=e.nextSibling)t.push(e)}return h.templateInfo=e,function(t,e){let{nodeList:h,nodeInfoList:a}=e;if(a.length)for(let e=0;e<a.length;e++){let i=a[e],s=h[e],n=i.bindings;if(n)for(let e=0;e<n.length;e++){let h=n[e];ta(s,h),ea(s,t,h)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),h}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:h,nextSibling:a,parent:i}=e;h?h.nextSibling=a:i&&(i.firstChild=a),a?a.previousSibling=h:i&&(i.lastChild=h),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];Te(Te(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,h,a){let i=e._parseTemplateNode.call(this,t,h,a);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,h);e&&(t.textContent=la(e)||" ",Zh(this,h,a,"text","textContent",e),i=!0)}return i}static _parseTemplateNodeAttribute(t,h,a,i,s){let n=this._parseBindings(s,h);if(n){let e=i,s="property";Dh.test(i)?s="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),s="attribute");let o=la(n);return o&&"attribute"==s&&("class"==i&&t.hasAttribute("class")&&(o+=" "+t.getAttribute(i)),t.setAttribute(i,o)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(i,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(i=uh(i)),Zh(this,h,a,s,i,n,o),!0}return e._parseTemplateNodeAttribute.call(this,t,h,a,i,s)}static _parseTemplateNestedTemplate(t,h,a){let i=e._parseTemplateNestedTemplate.call(this,t,h,a);const s=t.parentNode,n=a.templateInfo,o="dom-if"===s.localName,l="dom-repeat"===s.localName;Jt&&(o||l)&&(s.removeChild(t),(a=a.parentInfo).templateInfo=n,a.noted=!0,i=!1);let r=n.hostProps;if(Zt&&o)r&&(h.hostProps=Object.assign(h.hostProps||{},r),Jt||(a.parentInfo.noted=!0));else{let t="{";for(let e in r){Zh(this,h,a,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return i}static _parseBindings(t,e){let h,a=[],i=0;for(;null!==(h=oa.exec(t));){h.index>i&&a.push({literal:t.slice(i,h.index)});let s=h[1][0],n=Boolean(h[2]),o=h[3].trim(),l=!1,r="",d=-1;"{"==s&&(d=o.indexOf("::"))>0&&(r=o.substring(d+2),o=o.substring(0,d),l=!0);let v=ra(o),c=[];if(v){let{args:t,methodName:h}=v;for(let e=0;e<t.length;e++){let h=t[e];h.literal||c.push(h)}let a=e.dynamicFns;(a&&a[h]||v.static)&&(c.push(h),v.dynamicFn=!0)}else c.push(o);a.push({source:o,mode:s,negate:n,customEvent:l,signature:v,dependencies:c,event:r}),i=oa.lastIndex}if(i&&i<t.length){let e=t.substring(i);e&&a.push({literal:e})}return a.length?a:null}static _evaluateBinding(t,e,h,a,i,s){let n;return n=e.signature?aa(t,h,a,0,e.signature):h!=e.source?rh(t,e.source):s&&ah(h)?rh(t,h):t.__data[h],e.negate&&(n=!n),n}}})),ga=[];const za=At((t=>{const e=Mh(t);function h(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof i?e:null}function a(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const h=t.properties;h&&(e=
767
767
  /**
768
768
  @license
769
769
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -773,7 +773,7 @@ const We="link[rel=import][type~=css]",Ge="include",Je="shady-unscoped";function
773
773
  Code distributed by Google as part of the polymer project is also
774
774
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
775
775
  */
776
- function(t){const e={};for(let h in t){const a=t[h];e[h]="function"==typeof a?{type:a}:a}return e}(h))}t.__ownProperties=e}return t.__ownProperties}class i 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=h(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=a(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=h(this);this.__properties=Object.assign({},t&&t._properties,a(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 i})),Ma=window.ShadyCSS&&window.ShadyCSS.cssBuild,ma=At((t=>{const e=za(ua(t));function h(t,e,h,a){h.computed&&(h.readOnly=!0),h.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,h.computed,a)),h.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!h.computed):!1===h.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),h.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===h.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),h.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===h.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),h.observer&&t._createPropertyObserver(e,h.observer,a[h.observer]),t._addPropertyToAttributeMap(e)}function a(t,e,h,a){if(!Ma){const i=e.content.querySelectorAll("style"),s=eh(e),n=function(t){let e=Ze(t);return e?hh(e):[]}(h),o=e.content.firstElementChild;for(let h=0;h<n.length;h++){let i=n[h];i.textContent=t._processStyleText(i.textContent,a),e.content.insertBefore(i,o)}let l=0;for(let e=0;e<s.length;e++){let h=s[e],n=i[l];n!==h?(h=h.cloneNode(!0),n.parentNode.insertBefore(h,n)):l++,h.textContent=t._processStyleText(h.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,h),Xt&&Ma&&Ft){const h=e.content.querySelectorAll("style");if(h){let e="";Array.from(h).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.1"}static _finalizeClass(){e._finalizeClass.call(this);const t=((h=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",h))||(h.__ownObservers=h.hasOwnProperty(JSCompiler_renameProperty("observers",h))?h.observers:null),h.__ownObservers);var h;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):jt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)h(this.prototype,e,t[e],t)}static createObservers(t,e){const h=this.prototype;for(let a=0;a<t.length;a++)h._createMethodObserver(t[a],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&&(!Ut||qt)&&(e=Ke.import(t,"template"),Ut&&!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=Rt(t.url);else{const t=Ke.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=Vt,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 h in e){let a=e[h];"value"in a&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[h]=a)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let h=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof h.value?h.value.call(this):h.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Dt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const h=this.importPath;a(this,e,t,h?$t(h):""),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=Te(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])),Kt&&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=$t(this.importPath)),$t(t,e)}static _parseTemplateContent(t,h,a){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,h,a)}static _addTemplatePropertyEffect(t,h,a){return!Yt||h in this._properties||a.info.part.signature&&a.info.part.signature.static||a.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,h,a)}}})),fa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});
776
+ function(t){const e={};for(let h in t){const a=t[h];e[h]="function"==typeof a?{type:a}:a}return e}(h))}t.__ownProperties=e}return t.__ownProperties}class i 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=h(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=a(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=h(this);this.__properties=Object.assign({},t&&t._properties,a(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 i})),Ma=window.ShadyCSS&&window.ShadyCSS.cssBuild,ma=At((t=>{const e=za(ua(t));function h(t,e,h,a){h.computed&&(h.readOnly=!0),h.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,h.computed,a)),h.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!h.computed):!1===h.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),h.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===h.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),h.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===h.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),h.observer&&t._createPropertyObserver(e,h.observer,a[h.observer]),t._addPropertyToAttributeMap(e)}function a(t,e,h,a){if(!Ma){const i=e.content.querySelectorAll("style"),s=eh(e),n=function(t){let e=Ze(t);return e?hh(e):[]}(h),o=e.content.firstElementChild;for(let h=0;h<n.length;h++){let i=n[h];i.textContent=t._processStyleText(i.textContent,a),e.content.insertBefore(i,o)}let l=0;for(let e=0;e<s.length;e++){let h=s[e],n=i[l];n!==h?(h=h.cloneNode(!0),n.parentNode.insertBefore(h,n)):l++,h.textContent=t._processStyleText(h.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,h),Xt&&Ma&&Vt){const h=e.content.querySelectorAll("style");if(h){let e="";Array.from(h).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.1"}static _finalizeClass(){e._finalizeClass.call(this);const t=((h=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",h))||(h.__ownObservers=h.hasOwnProperty(JSCompiler_renameProperty("observers",h))?h.observers:null),h.__ownObservers);var h;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):jt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)h(this.prototype,e,t[e],t)}static createObservers(t,e){const h=this.prototype;for(let a=0;a<t.length;a++)h._createMethodObserver(t[a],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&&(!Ut||qt)&&(e=Ke.import(t,"template"),Ut&&!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=Rt(t.url);else{const t=Ke.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=Ft,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 h in e){let a=e[h];"value"in a&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[h]=a)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let h=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof h.value?h.value.call(this):h.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Dt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const h=this.importPath;a(this,e,t,h?$t(h):""),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=Te(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])),Kt&&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=$t(this.importPath)),$t(t,e)}static _parseTemplateContent(t,h,a){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,h,a)}static _addTemplatePropertyEffect(t,h,a){return!Yt||h in this._properties||a.info.part.signature&&a.info.part.signature.static||a.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,h,a)}}})),fa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});
777
777
  /**
778
778
  * @fileoverview
779
779
  * @suppress {checkPrototypalTypes}
@@ -860,7 +860,7 @@ class Aa extends(gt(Tt(Ca))){static get is(){return"vaadin-input-container"}stat
860
860
  <slot name="prefix"></slot>
861
861
  <slot></slot>
862
862
  <slot name="suffix"></slot>
863
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}customElements.define(Aa.is,Aa);Ve("font-icons",s`
863
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}customElements.define(Aa.is,Aa);Fe("font-icons",s`
864
864
  @font-face {
865
865
  font-family: 'lumo-icons';
866
866
  src: url(data:application/font-woff;charset=utf-8;base64,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)
@@ -913,7 +913,7 @@ class Aa extends(gt(Tt(Ca))){static get is(){return"vaadin-input-container"}stat
913
913
  --lumo-icons-upload: '\\ea29';
914
914
  --lumo-icons-user: '\\ea2a';
915
915
  }
916
- `);Ve("spacing-props",s`
916
+ `);Fe("spacing-props",s`
917
917
  :host {
918
918
  /* Square */
919
919
  --lumo-space-xs: 0.25rem;
@@ -1365,18 +1365,18 @@ class Oa extends Re{constructor(t,e){super(t,"input","input",{initializer:(t,h)=
1365
1365
  * @license
1366
1366
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1367
1367
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1368
- */let Na=!1;function Ia(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function La(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const h=window.getComputedStyle(t);return"hidden"===h.visibility||"none"===h.display}function $a(t,e){const h=Math.max(t.tabIndex,0),a=Math.max(e.tabIndex,0);return 0===h||0===a?a>h:h>a}function Da(t){const e=t.length;if(e<2)return t;const h=Math.ceil(e/2);return function(t,e){const h=[];for(;t.length>0&&e.length>0;)$a(t[0],e[0])?h.push(e.shift()):h.push(t.shift());return h.concat(t,e)}(Da(t.slice(0,h)),Da(t.slice(h)))}function Ra(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||La(t)}function Ha(t){return t.getRootNode().activeElement===t}function Fa(t,e){if(t.nodeType!==Node.ELEMENT_NODE||La(t))return!1;const h=t,a=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(h);let i=a>0;a>=0&&e.push(h);let s=[];return s="slot"===h.localName?h.assignedNodes({flatten:!0}):(h.shadowRoot||h).children,[...s].forEach((t=>{i=Fa(t,e)||i})),i}window.addEventListener("keydown",(()=>{Na=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{Na=!1}),{capture:!0});
1368
+ */let Na=!1;function Ia(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function La(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const h=window.getComputedStyle(t);return"hidden"===h.visibility||"none"===h.display}function $a(t,e){const h=Math.max(t.tabIndex,0),a=Math.max(e.tabIndex,0);return 0===h||0===a?a>h:h>a}function Da(t){const e=t.length;if(e<2)return t;const h=Math.ceil(e/2);return function(t,e){const h=[];for(;t.length>0&&e.length>0;)$a(t[0],e[0])?h.push(e.shift()):h.push(t.shift());return h.concat(t,e)}(Da(t.slice(0,h)),Da(t.slice(h)))}function Ra(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||La(t)}function Ha(t){return t.getRootNode().activeElement===t}function Va(t,e){if(t.nodeType!==Node.ELEMENT_NODE||La(t))return!1;const h=t,a=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(h);let i=a>0;a>=0&&e.push(h);let s=[];return s="slot"===h.localName?h.assignedNodes({flatten:!0}):(h.shadowRoot||h).children,[...s].forEach((t=>{i=Va(t,e)||i})),i}window.addEventListener("keydown",(()=>{Na=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{Na=!1}),{capture:!0});
1369
1369
  /**
1370
1370
  * @license
1371
1371
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1372
1372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1373
1373
  */
1374
- const Va=At((t=>class extends t{get _keyboardActive(){return Na}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}})),Ba=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()}})),Ua=t=>class extends(Ba(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)}}
1374
+ const Fa=At((t=>class extends t{get _keyboardActive(){return Na}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}})),Ba=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()}})),Ua=t=>class extends(Ba(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)}}
1375
1375
  /**
1376
1376
  * @license
1377
1377
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1378
1378
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1379
- */,qa=At((t=>class extends(Va(Ua(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}_shouldRemoveFocus(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)}})),ja=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){}})),Ya=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)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=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)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Ka=t=>class extends(Ya(ja(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this.inputElement.focus(),this._onClearAction()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
1379
+ */,qa=At((t=>class extends(Fa(Ua(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}_shouldRemoveFocus(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)}})),ja=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){}})),Ya=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)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=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)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),Ka=t=>class extends(Ya(ja(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this.inputElement.focus(),this._onClearAction()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
1380
1380
  /**
1381
1381
  * @license
1382
1382
  * Copyright (c) 2023 Vaadin Ltd.
@@ -1639,17 +1639,17 @@ function(t,e){const{scrollLeft:h}=t;return"rtl"!==e?h:t.scrollWidth-t.clientWidt
1639
1639
  Code distributed by Google as part of the polymer project is also
1640
1640
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1641
1641
  */
1642
- const fi=!1,_i=t=>t,bi="string"==typeof document.head.style.touchAction,yi="__polymerGestures",wi="__polymerGesturesHandled",Ci="__polymerGesturesTouchAction",Ai=["mousedown","mousemove","mouseup","click"],xi=[0,1,4,2],Ei=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Pi(t){return Ai.indexOf(t)>-1}let ki=!1;function Si(t){if(!Pi(t)&&"touchend"!==t)return bi&&ki&&fi?{passive:!0}:void 0}!function(){try{const t=Object.defineProperty({},"passive",{get(){ki=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Ti=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Oi={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ni(t){const e=t.type;if(!Pi(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ei&&(e=xi[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Ii={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Li(t,e,h){t.movefn=e,t.upfn=h,document.addEventListener("mousemove",e),document.addEventListener("mouseup",h)}function $i(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Di=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ri={},Hi=[];function Fi(t){const e=Di(t);return e.length>0?e[0]:t.target}function Vi(t){const e=t.type,h=t.currentTarget[yi];if(!h)return;const a=h[e];if(!a)return;if(!t[wi]&&(t[wi]={},e.startsWith("touch"))){const h=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Ii.touch.id=h.identifier),Ii.touch.id!==h.identifier)return;bi||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],h=t.type;if("touchstart"===h)Ii.touch.x=e.clientX,Ii.touch.y=e.clientY,Ii.touch.scrollDecided=!1;else if("touchmove"===h){if(Ii.touch.scrollDecided)return;Ii.touch.scrollDecided=!0;const h=function(t){let e="auto";const h=Di(t);for(let t,a=0;a<h.length;a++)if(t=h[a],t[Ci]){e=t[Ci];break}return e}(t);let a=!1;const i=Math.abs(Ii.touch.x-e.clientX),s=Math.abs(Ii.touch.y-e.clientY);t.cancelable&&("none"===h?a=!0:"pan-x"===h?a=s>i:"pan-y"===h&&(a=i>s)),a?t.preventDefault():ji("track")}}(t)}const i=t[wi];if(!i.skip){for(let e,h=0;h<Hi.length;h++)e=Hi[h],a[e.name]&&!i[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let h,s=0;s<Hi.length;s++)h=Hi[s],a[h.name]&&!i[h.name]&&(i[h.name]=!0,h[e](t))}}function Bi(t,e,h){return!!Ri[e]&&(function(t,e,h){const a=Ri[e],i=a.deps,s=a.name;let n=t[yi];n||(t[yi]=n={});for(let e,h,a=0;a<i.length;a++)e=i[a],Ti&&Pi(e)&&"click"!==e||(h=n[e],h||(n[e]=h={_count:0}),0===h._count&&t.addEventListener(e,Vi,Si(e)),h[s]=(h[s]||0)+1,h._count=(h._count||0)+1);t.addEventListener(e,h),a.touchAction&&function(t,e){bi&&t instanceof HTMLElement&&de.run((()=>{t.style.touchAction=e}));t[Ci]=e}(t,a.touchAction)}(t,e,h),!0)}function Ui(t){Hi.push(t),t.emits.forEach((e=>{Ri[e]=t}))}function qi(t,e,h){const a=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(a.detail=h,_i(t).dispatchEvent(a),a.defaultPrevented){const t=h.preventer||h.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function ji(t){const e=function(t){for(let e,h=0;h<Hi.length;h++){e=Hi[h];for(let h,a=0;a<e.emits.length;a++)if(h=e.emits[a],h===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Yi(t,e,h,a){e&&qi(e,t,{x:h.clientX,y:h.clientY,sourceEvent:h,preventer:a,prevent:t=>ji(t)})}function Ki(t,e,h){if(t.prevent)return!1;if(t.started)return!0;const a=Math.abs(t.x-e),i=Math.abs(t.y-h);return a>=5||i>=5}function Wi(t,e,h){if(!e)return;const a=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],s=i.x-t.x,n=i.y-t.y;let o,l=0;a&&(o=i.x-a.x,l=i.y-a.y),qi(e,"track",{state:t.state,x:h.clientX,y:h.clientY,dx:s,dy:n,ddx:o,ddy:l,sourceEvent:h,hover:()=>function(t,e){let h=document.elementFromPoint(t,e),a=h;for(;a&&a.shadowRoot&&!window.ShadyDOM;){const i=a;if(a=a.shadowRoot.elementFromPoint(t,e),i===a)break;a&&(h=a)}return h}(h.clientX,h.clientY)})}function Gi(t,e,h){const a=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),s=Fi(h||e);!s||Oi[s.localName]&&s.hasAttribute("disabled")||(isNaN(a)||isNaN(i)||a<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Fi(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const h=e.getBoundingClientRect(),a=t.pageX,i=t.pageY;return!(a>=h.left&&a<=h.right&&i>=h.top&&i<=h.bottom)}return!1}(e))&&(t.prevent||qi(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:h}))}
1642
+ const fi=!1,_i=t=>t,bi="string"==typeof document.head.style.touchAction,yi="__polymerGestures",wi="__polymerGesturesHandled",Ci="__polymerGesturesTouchAction",Ai=["mousedown","mousemove","mouseup","click"],xi=[0,1,4,2],Ei=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Pi(t){return Ai.indexOf(t)>-1}let ki=!1;function Si(t){if(!Pi(t)&&"touchend"!==t)return bi&&ki&&fi?{passive:!0}:void 0}!function(){try{const t=Object.defineProperty({},"passive",{get(){ki=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Ti=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Oi={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ni(t){const e=t.type;if(!Pi(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ei&&(e=xi[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Ii={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Li(t,e,h){t.movefn=e,t.upfn=h,document.addEventListener("mousemove",e),document.addEventListener("mouseup",h)}function $i(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Di=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ri={},Hi=[];function Vi(t){const e=Di(t);return e.length>0?e[0]:t.target}function Fi(t){const e=t.type,h=t.currentTarget[yi];if(!h)return;const a=h[e];if(!a)return;if(!t[wi]&&(t[wi]={},e.startsWith("touch"))){const h=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Ii.touch.id=h.identifier),Ii.touch.id!==h.identifier)return;bi||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],h=t.type;if("touchstart"===h)Ii.touch.x=e.clientX,Ii.touch.y=e.clientY,Ii.touch.scrollDecided=!1;else if("touchmove"===h){if(Ii.touch.scrollDecided)return;Ii.touch.scrollDecided=!0;const h=function(t){let e="auto";const h=Di(t);for(let t,a=0;a<h.length;a++)if(t=h[a],t[Ci]){e=t[Ci];break}return e}(t);let a=!1;const i=Math.abs(Ii.touch.x-e.clientX),s=Math.abs(Ii.touch.y-e.clientY);t.cancelable&&("none"===h?a=!0:"pan-x"===h?a=s>i:"pan-y"===h&&(a=i>s)),a?t.preventDefault():ji("track")}}(t)}const i=t[wi];if(!i.skip){for(let e,h=0;h<Hi.length;h++)e=Hi[h],a[e.name]&&!i[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let h,s=0;s<Hi.length;s++)h=Hi[s],a[h.name]&&!i[h.name]&&(i[h.name]=!0,h[e](t))}}function Bi(t,e,h){return!!Ri[e]&&(function(t,e,h){const a=Ri[e],i=a.deps,s=a.name;let n=t[yi];n||(t[yi]=n={});for(let e,h,a=0;a<i.length;a++)e=i[a],Ti&&Pi(e)&&"click"!==e||(h=n[e],h||(n[e]=h={_count:0}),0===h._count&&t.addEventListener(e,Fi,Si(e)),h[s]=(h[s]||0)+1,h._count=(h._count||0)+1);t.addEventListener(e,h),a.touchAction&&function(t,e){bi&&t instanceof HTMLElement&&de.run((()=>{t.style.touchAction=e}));t[Ci]=e}(t,a.touchAction)}(t,e,h),!0)}function Ui(t){Hi.push(t),t.emits.forEach((e=>{Ri[e]=t}))}function qi(t,e,h){const a=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(a.detail=h,_i(t).dispatchEvent(a),a.defaultPrevented){const t=h.preventer||h.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function ji(t){const e=function(t){for(let e,h=0;h<Hi.length;h++){e=Hi[h];for(let h,a=0;a<e.emits.length;a++)if(h=e.emits[a],h===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Yi(t,e,h,a){e&&qi(e,t,{x:h.clientX,y:h.clientY,sourceEvent:h,preventer:a,prevent:t=>ji(t)})}function Ki(t,e,h){if(t.prevent)return!1;if(t.started)return!0;const a=Math.abs(t.x-e),i=Math.abs(t.y-h);return a>=5||i>=5}function Wi(t,e,h){if(!e)return;const a=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],s=i.x-t.x,n=i.y-t.y;let o,l=0;a&&(o=i.x-a.x,l=i.y-a.y),qi(e,"track",{state:t.state,x:h.clientX,y:h.clientY,dx:s,dy:n,ddx:o,ddy:l,sourceEvent:h,hover:()=>function(t,e){let h=document.elementFromPoint(t,e),a=h;for(;a&&a.shadowRoot&&!window.ShadyDOM;){const i=a;if(a=a.shadowRoot.elementFromPoint(t,e),i===a)break;a&&(h=a)}return h}(h.clientX,h.clientY)})}function Gi(t,e,h){const a=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),s=Vi(h||e);!s||Oi[s.localName]&&s.hasAttribute("disabled")||(isNaN(a)||isNaN(i)||a<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Vi(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const h=e.getBoundingClientRect(),a=t.pageX,i=t.pageY;return!(a>=h.left&&a<=h.right&&i>=h.top&&i<=h.bottom)}return!1}(e))&&(t.prevent||qi(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:h}))}
1643
1643
  /**
1644
1644
  * @license
1645
1645
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1646
1646
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1647
- */Ui({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){$i(this.info)},mousedown(t){if(!Ni(t))return;const e=Fi(t),h=this;Li(this.info,(t=>{Ni(t)||(Yi("up",e,t),$i(h.info))}),(t=>{Ni(t)&&Yi("up",e,t),$i(h.info)})),Yi("down",e,t)},touchstart(t){Yi("down",Fi(t),t.changedTouches[0],t)},touchend(t){Yi("up",Fi(t),t.changedTouches[0],t)}}),Ui({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,$i(this.info)},mousedown(t){if(!Ni(t))return;const e=Fi(t),h=this,a=t=>{const a=t.clientX,i=t.clientY;Ki(h.info,a,i)&&(h.info.state=h.info.started?"mouseup"===t.type?"end":"track":"start","start"===h.info.state&&ji("tap"),h.info.addMove({x:a,y:i}),Ni(t)||(h.info.state="end",$i(h.info)),e&&Wi(h.info,e,t),h.info.started=!0)};Li(this.info,a,(t=>{h.info.started&&a(t),$i(h.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=Fi(t),h=t.changedTouches[0],a=h.clientX,i=h.clientY;Ki(this.info,a,i)&&("start"===this.info.state&&ji("tap"),this.info.addMove({x:a,y:i}),Wi(this.info,e,h),this.info.state="track",this.info.started=!0)},touchend(t){const e=Fi(t),h=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:h.clientX,y:h.clientY}),Wi(this.info,e,h))}}),Ui({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){Ni(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Ni(t)&&Gi(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Gi(this.info,t.changedTouches[0],t)}});const Ji=t=>class extends(Ba(ja(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Bi(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Bi(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)}}
1647
+ */Ui({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){$i(this.info)},mousedown(t){if(!Ni(t))return;const e=Vi(t),h=this;Li(this.info,(t=>{Ni(t)||(Yi("up",e,t),$i(h.info))}),(t=>{Ni(t)&&Yi("up",e,t),$i(h.info)})),Yi("down",e,t)},touchstart(t){Yi("down",Vi(t),t.changedTouches[0],t)},touchend(t){Yi("up",Vi(t),t.changedTouches[0],t)}}),Ui({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,$i(this.info)},mousedown(t){if(!Ni(t))return;const e=Vi(t),h=this,a=t=>{const a=t.clientX,i=t.clientY;Ki(h.info,a,i)&&(h.info.state=h.info.started?"mouseup"===t.type?"end":"track":"start","start"===h.info.state&&ji("tap"),h.info.addMove({x:a,y:i}),Ni(t)||(h.info.state="end",$i(h.info)),e&&Wi(h.info,e,t),h.info.started=!0)};Li(this.info,a,(t=>{h.info.started&&a(t),$i(h.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=Vi(t),h=t.changedTouches[0],a=h.clientX,i=h.clientY;Ki(this.info,a,i)&&("start"===this.info.state&&ji("tap"),this.info.addMove({x:a,y:i}),Wi(this.info,e,h),this.info.state="track",this.info.started=!0)},touchend(t){const e=Vi(t),h=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:h.clientX,y:h.clientY}),Wi(this.info,e,h))}}),Ui({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){Ni(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Ni(t)&&Gi(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Gi(this.info,t.changedTouches[0],t)}});const Ji=t=>class extends(Ba(ja(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Bi(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Bi(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)}}
1648
1648
  /**
1649
1649
  * @license
1650
1650
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1651
1651
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1652
- */,Zi=t=>class extends(Ji(Va(t))){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(t){this._value=t}ready(){super.ready();const t=this.getAttribute("value");null!==t&&(this.value=t)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(t){return!(this.disabled||"keydown"===t.type&&t.defaultPrevented)}_selectedChanged(t){this.setAttribute("aria-selected",t)}_disabledChanged(t){super._disabledChanged(t),t&&(this.selected=!1,this.blur())}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&!t.defaultPrevented&&(t.preventDefault(),this.click())}}
1652
+ */,Zi=t=>class extends(Ji(Fa(t))){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(t){this._value=t}ready(){super.ready();const t=this.getAttribute("value");null!==t&&(this.value=t)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(t){return!(this.disabled||"keydown"===t.type&&t.defaultPrevented)}_selectedChanged(t){this.setAttribute("aria-selected",t)}_disabledChanged(t){super._disabledChanged(t),t&&(this.selected=!1,this.blur())}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&!t.defaultPrevented&&(t.preventDefault(),this.click())}}
1653
1653
  /**
1654
1654
  * @license
1655
1655
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
@@ -1986,7 +1986,7 @@ const Qi=s`
1986
1986
  outline-color: GrayText;
1987
1987
  }
1988
1988
  }
1989
- `,ts=t=>class extends(Ji(Ua(Va(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
1989
+ `,ts=t=>class extends(Ji(Ua(Fa(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
1990
1990
  /**
1991
1991
  * @license
1992
1992
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
@@ -2030,7 +2030,7 @@ const hs={HTML:1,SVG:2},as=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litTyp
2030
2030
  * @license
2031
2031
  * Copyright 2017 Google LLC
2032
2032
  * SPDX-License-Identifier: BSD-3-Clause
2033
- */class ns extends ss{constructor(t){if(super(t),this.et=V,t.type!==is)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this.ft=void 0,this.et=t;if(t===F)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ns.directiveName="unsafeHTML",ns.resultType=1;
2033
+ */class ns extends ss{constructor(t){if(super(t),this.et=F,t.type!==is)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===F||null==t)return this.ft=void 0,this.et=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ns.directiveName="unsafeHTML",ns.resultType=1;
2034
2034
  /**
2035
2035
  * @license
2036
2036
  * Copyright 2017 Google LLC
@@ -2041,7 +2041,7 @@ class os extends ns{}os.directiveName="unsafeSVG",os.resultType=2;const ls=(t=>(
2041
2041
  * @license
2042
2042
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2043
2043
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2044
- */function rs(t){let e=V;if(t){const h=t.cloneNode(!0);h.removeAttribute("id"),e=H`${ls(h.outerHTML)}`}return e}function ds(t){let e=null==t||""===t?V:t;return function(t){return as(t,hs.SVG)||t===V}(e)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),e=V),e}
2044
+ */function rs(t){let e=F;if(t){const h=t.cloneNode(!0);h.removeAttribute("id"),e=H`${ls(h.outerHTML)}`}return e}function ds(t){let e=null==t||""===t?F:t;return function(t){return as(t,hs.SVG)||t===F}(e)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),e=F),e}
2045
2045
  /**
2046
2046
  * @license
2047
2047
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -2136,17 +2136,17 @@ class Ds{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t
2136
2136
  * @license
2137
2137
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2138
2138
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2139
- */const Hs=[];class Fs{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Fa(t,e)?Da(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ha).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Hs.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Hs.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Hs).pop()&&"Tab"===t.key){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,h=t?-1:1,a=this.__focusedElementIndex,i=e[(e.length+a+h)%e.length];i.focus(),"input"===i.localName&&i.select()}}
2139
+ */const Hs=[];class Vs{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Va(t,e)?Da(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ha).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Hs.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Hs.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Hs).pop()&&"Tab"===t.key){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,h=t?-1:1,a=this.__focusedElementIndex,i=e[(e.length+a+h)%e.length];i.focus(),"input"===i.localName&&i.select()}}
2140
2140
  /**
2141
2141
  * @license
2142
2142
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2143
2143
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2144
- */const Vs=t=>class extends(xt(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Ds(this),this.__focusTrapController=new Fs(this),this.__focusRestorationController=new Rs}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Ia();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const h=t.ownerDocument;for(;e&&e!==h&&e!==this;)e=e.parentNode||e.host;return e===this}}
2144
+ */const Fs=t=>class extends(xt(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Ds(this),this.__focusTrapController=new Vs(this),this.__focusRestorationController=new Rs}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Ia();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const h=t.ownerDocument;for(;e&&e!==h&&e!==this;)e=e.parentNode||e.host;return e===this}}
2145
2145
  /**
2146
2146
  * @license
2147
2147
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2148
2148
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2149
- */;class Bs extends(Vs(gt(Tt(Ca)))){static get template(){return ya`
2149
+ */;class Bs extends(Fs(gt(Tt(Ca)))){static get template(){return ya`
2150
2150
  <style>
2151
2151
  :host {
2152
2152
  z-index: 200;
@@ -2255,16 +2255,15 @@ dt("vcf-autocomplete-overlay",s`
2255
2255
  `);class qs extends(ge(gt(yt(st)))){render(){return R`
2256
2256
  <style>
2257
2257
  :host {
2258
- display: inline-block;
2258
+ display: inline-block;
2259
2259
  }
2260
2260
 
2261
2261
  :host([opened]) {
2262
- pointer-events: auto;
2262
+ pointer-events: auto;
2263
2263
  }
2264
2264
  </style>
2265
2265
 
2266
- <vaadin-text-field id="textField" @focus="${this._textFieldFocused}" .label="${this.label}"
2267
- .placeholder="${this.placeholder}" theme="${this._theme}">
2266
+ <vaadin-text-field id="textField" @focus="${this._textFieldFocused}" .label="${this.label}" .placeholder="${this.placeholder}" theme="${this._theme}" value="${this.value}" ?readonly="${this.readonly}">
2268
2267
  ${this._hasValue(this.value)?R`
2269
2268
  <vaadin-button part="clear" theme="icon tertiary small" aria-label="Add new item" slot="suffix" @click="${this.clear}">
2270
2269
  <vaadin-icon icon="lumo:cross"> </vaadin-icon>
@@ -2282,13 +2281,8 @@ dt("vcf-autocomplete-overlay",s`
2282
2281
  * SPDX-License-Identifier: BSD-3-Clause
2283
2282
  */
2284
2283
  function*(t,e){if(void 0!==t){let h=0;for(const a of t)yield e(a,h++)}}(this._limitedOptions,(t=>R`
2285
- <vaadin-item @click="${this._optionClicked}" part="option" theme="${this._theme}"
2286
- class="vcf-autocomplete-no-checkmark">
2287
- ${this._getSuggestedStart(this.value,t)}
2288
- <span part="bold" style="font-weight: 600;">
2289
- ${this._getInputtedPart(this.value,t)}
2290
- </span>
2291
- ${this._getSuggestedEnd(this.value,t)}
2284
+ <vaadin-item @click="${this._optionClicked}" part="option" theme="${this._theme}" class="vcf-autocomplete-no-checkmark">
2285
+ ${this._getSuggestedStart(this.value,t)} <span part="bold" style="font-weight: 600;">${this._getInputtedPart(this.value,t)}</span>${this._getSuggestedEnd(this.value,t)}
2292
2286
  </vaadin-item>
2293
2287
  `))}
2294
2288
  `}
@@ -2306,5 +2300,5 @@ function*(t,e){if(void 0!==t){let h=0;for(const a of t)yield e(a,h++)}}(this._li
2306
2300
  `:""}
2307
2301
  </vaadin-list-box>
2308
2302
  </vcf-autocomplete-overlay>
2309
- `}static get is(){return"vcf-autocomplete"}static get version(){return"24.0.0"}static get properties(){return{opened:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_openedChange"},value:{type:String,notify:!0,observer:"_valueChange"},options:{type:Array,value:()=>[],observer:"_optionsChange"},limit:{type:Number,value:10},loading:{type:Boolean,reflectToAttribute:!0,value:!1},label:{type:String},placeholder:{type:String},caseSensitive:{type:Boolean,value:!1},_limitedOptions:{type:Array},_savedValue:{type:String},_overlayElement:Object,_optionsContainer:Object,_selectedOption:{type:Object,value:void 0,observer:"_selectedOptionChanged"},_boundOutsideClickHandler:Object,_boundSetOverlayPosition:Object}}clear(){this._changeTextFieldValue(""),this._applyValue(""),this._selectedOptionChanged(null),this.dispatchEvent(new Event("clear",{bubbles:!0,cancelable:!0})),this._textField.focus()}static _finalizeClass(){super._finalizeClass()}constructor(){super(),this._boundSetOverlayPosition=this._setOverlayPosition.bind(this),this._boundOutsideClickHandler=this._outsideClickHandler.bind(this),this._resizeController=new He(this,{target:this,callback:this._boundSetOverlayPosition,skipInitial:!0})}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._boundOutsideClickHandler)}firstUpdated(){super.ready(),this._textField=this.shadowRoot.getElementById("textField"),this._overlayElement=this.shadowRoot.querySelector("vcf-autocomplete-overlay"),this._optionsContainer=this._overlayElement.querySelector("vaadin-list-box"),this._textField.addEventListener("input",this._onInput.bind(this)),this.addEventListener("click",this._elementClickListener),this.addEventListener("keydown",this._onKeyDown.bind(this)),this._overlayElement.addEventListener("vaadin-overlay-outside-click",(t=>t.preventDefault()))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._boundOutsideClickHandler)}_elementClickListener(t){t.stopPropagation()}_setOverlayPosition(){const t=this._textField.getBoundingClientRect();this._overlayElement.style.left=t.left+"px",this._overlayElement.style.top=t.bottom+window.pageYOffset+"px",this._overlayElement.updateStyles({"--vcf-autocomplete-options-width":t.width+"px"})}_outsideClickHandler(){this.opened=!1}_valueChange(t){this._selectedOption&&(this._selectedOption._setFocused(!1),this._selectedOption=null),t.length>0&&!this.opened?this.opened=!0:0==t.length&&this.opened&&(this.opened=!1)}_optionClicked(t){this._applyValue(t.srcElement.value)}_applyValue(t){this.dispatchEvent(new CustomEvent("vcf-autocomplete-value-applied",{bubbles:!0,detail:{value:t}})),this._changeTextFieldValue(t),this.opened=!1,this._textField.blur()}_textFieldFocused(){this.value&&this.value.length>0&&(this.opened=!0)}_hasValue(t){return void 0!==t&&t.length>0}_optionsChange(t){this._limitedOptions=t.slice(0,this.limit)}_getSuggestedStart(t,e){if(t)return e.substr(0,this._getValueIndex(t,e))}_getInputtedPart(t,e){return t?e.substr(this._getValueIndex(t,e),t.length):e}_getSuggestedEnd(t,e){if(t)return e.substr(this._getValueIndex(t,e)+t.length,e.length)}_getValueIndex(t,e){return this.caseSensitive||(t=t.toLowerCase(),e=e.toLowerCase()),e.indexOf(t)>=0?e.indexOf(t):0}_onKeyDown(t){switch(t.key.replace(/^Arrow/,"")){case"Down":t.preventDefault(),this._navigate("next");break;case"Up":t.preventDefault(),this._navigate("prev");break;case"Enter":this._selectedOption?this._applyValue(this._selectedOption.value):this._applyValue(this._textField.value);break;case"Escape":this._textField.blur(),this.opened=!1}}_navigate(t){const e=this._optionsContainer.items.filter((t=>!t.disabled));if(!e.length)return;const h=e.indexOf(this._selectedOption);let a;return-1===h&&(this._savedValue=this.value),this._selectedOption&&(this._selectedOption._setFocused(!1),this._selectedOption=null),"next"===t?(a=h+1,a>e.length-1&&(a=-1)):"prev"===t&&(a=h-1,a<-1&&(a=e.length-1)),a>=0?(e[a]._setFocused(!0),this._selectedOption=e[a],this._selectedOption.value):(this._textField.value=this._savedValue,this._savedValue)}_selectedOptionChanged(t){void 0!==t&&t&&(this._textField.value=t.value)}_changeTextFieldValue(t){this._textField.value=t,this._textField.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}))}_onInput(t){this.value=t.target.value}_noResultsShown(t,e){return!(t&&t.length||e)}_openedChange(t){t&&this._setOverlayPosition()}}customElements.define(qs.is,qs),window.Vaadin.VcfAutocomplete=qs}();
2303
+ `}static get is(){return"vcf-autocomplete"}static get version(){return"1.2.10"}static get properties(){return{opened:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_openedChange"},value:{type:String,notify:!0,observer:"_valueChange"},options:{type:Array,value:()=>[],observer:"_optionsChange"},limit:{type:Number,value:10},loading:{type:Boolean,reflectToAttribute:!0,value:!1},label:{type:String},placeholder:{type:String},caseSensitive:{type:Boolean,value:!1},_limitedOptions:{type:Array},_savedValue:{type:String},_keepClosedAfterNextValueChange:{type:Boolean,value:!1},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},_overlayElement:Object,_optionsContainer:Object,_selectedOption:{type:Object,value:void 0,observer:"_selectedOptionChanged"},_boundOutsideClickHandler:Object,_boundSetOverlayPosition:Object}}static _finalizeClass(){super._finalizeClass()}constructor(){super(),this._boundSetOverlayPosition=this._setOverlayPosition.bind(this),this._boundOutsideClickHandler=this._outsideClickHandler.bind(this),this._resizeController=new He(this,{target:this,callback:this._boundSetOverlayPosition,skipInitial:!0})}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._boundOutsideClickHandler)}firstUpdated(){super.ready(),this._textField=this.shadowRoot.getElementById("textField"),this._overlayElement=this.shadowRoot.querySelector("vcf-autocomplete-overlay"),this._optionsContainer=this._overlayElement.querySelector("vaadin-list-box"),this._textField.addEventListener("input",this._onInput.bind(this)),this.addEventListener("click",this._elementClickListener),this.addEventListener("keydown",this._onKeyDown.bind(this)),this._overlayElement.addEventListener("vaadin-overlay-outside-click",(t=>t.preventDefault()))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._boundOutsideClickHandler)}_elementClickListener(t){t.stopPropagation()}_setOverlayPosition(){const t=this._textField.getBoundingClientRect();this._overlayElement.style.left=t.left+"px",this._overlayElement.style.top=t.bottom+window.pageYOffset+"px",this._overlayElement.updateStyles({"--vcf-autocomplete-options-width":t.width+"px"})}_outsideClickHandler(){this.opened=!1}_valueChange(t){this._selectedOption&&(this._selectedOption._setFocused(!1),this._selectedOption=null),t.length>0&&!this.opened&&!this._keepClosedAfterNextValueChange?this.opened=!0:0==t.length&&this.opened&&(this.opened=!1),this._keepClosedAfterNextValueChange=!1}_optionClicked(t){this._applyValue(t.srcElement.value)}_applyValue(t){this.dispatchEvent(new CustomEvent("vcf-autocomplete-value-applied",{bubbles:!0,detail:{value:t}})),this._setValue(t),this.opened=!1,this._textField.blur()}_setValue(t){this._keepClosedAfterNextValueChange=!0,this.value=t}_textFieldFocused(){this.value&&this.value.length>0&&(this.opened=!0)}_hasValue(t){return void 0!==t&&t.length>0}_optionsChange(t){this._limitedOptions=t.slice(0,this.limit)}clear(){this._setValue(""),this._emitInputEvent(),this._applyValue(""),this._selectedOptionChanged(null),this.dispatchEvent(new Event("clear",{bubbles:!0,cancelable:!0})),this._textField.focus()}_getSuggestedStart(t,e){if(t)return e.substr(0,this._getValueIndex(t,e))}_getInputtedPart(t,e){return t?e.substr(this._getValueIndex(t,e),t.length):e}_getSuggestedEnd(t,e){if(t)return e.substr(this._getValueIndex(t,e)+t.length,e.length)}_getValueIndex(t,e){return this.caseSensitive||(t=t.toLowerCase(),e=e.toLowerCase()),e.indexOf(t)>=0?e.indexOf(t):0}_onKeyDown(t){switch(t.key.replace(/^Arrow/,"")){case"Down":t.preventDefault(),this._navigate("next");break;case"Up":t.preventDefault(),this._navigate("prev");break;case"Enter":this._selectedOption?this._applyValue(this._selectedOption.value):this._applyValue(this._textField.value);break;case"Escape":this._textField.blur(),this.opened=!1}}_navigate(t){const e=this._optionsContainer.items.filter((t=>!t.disabled));if(!e.length)return;const h=e.indexOf(this._selectedOption);let a;return-1===h&&(this._savedValue=this.value),this._selectedOption&&(this._selectedOption._setFocused(!1),this._selectedOption=null),"next"===t?(a=h+1,a>e.length-1&&(a=-1)):"prev"===t&&(a=h-1,a<-1&&(a=e.length-1)),a>=0?(e[a]._setFocused(!0),this._selectedOption=e[a],this._selectedOption.value):(this._textField.value=this._savedValue,this._savedValue)}_selectedOptionChanged(t){void 0!==t&&t&&(this._textField.value=t.value)}_emitInputEvent(){this._textField.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}))}_onInput(t){this.value=t.target.value}_noResultsShown(t,e){return!(t&&t.length||e)}_openedChange(t){t&&this._setOverlayPosition()}}customElements.define(qs.is,qs),window.Vaadin.VcfAutocomplete=qs}();
2310
2304
  //# sourceMappingURL=bundle.js.map