cas-ds-web-components 1.2.61 → 1.2.63
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/build/cas-ds-web-components.js +91 -91
- package/build/cas-header.js +1 -1
- package/build/cas-radio-button.js +10 -10
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(b,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(b=typeof globalThis<"u"?globalThis:b||self,J(b["all-components"]={}))})(this,function(b){"use strict";var
|
|
1
|
+
(function(b,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(b=typeof globalThis<"u"?globalThis:b||self,J(b["all-components"]={}))})(this,function(b){"use strict";var Sv=Object.defineProperty;var Tv=(b,J,J1)=>J in b?Sv(b,J,{enumerable:!0,configurable:!0,writable:!0,value:J1}):b[J]=J1;var g=(b,J,J1)=>(Tv(b,typeof J!="symbol"?J+"":J,J1),J1);var I3,EC;(()=>{const i=document.createElement("link");i.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap"),i.setAttribute("rel","stylesheet"),document.head.appendChild(i)})();const Y5={name:"@eloisa-ds/all-components",version:"1.0.66",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const F3=window,G5=F3.ShadowRoot&&(F3.ShadyCSS===void 0||F3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,K5=Symbol(),U8=new WeakMap;let J5=class{constructor(C,t,e){if(this._$cssResult$=!0,e!==K5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=C,this.t=t}get styleSheet(){let C=this.o;const t=this.t;if(G5&&C===void 0){const e=t!==void 0&&t.length===1;e&&(C=U8.get(t)),C===void 0&&((this.o=C=new CSSStyleSheet).replaceSync(this.cssText),e&&U8.set(t,C))}return C}toString(){return this.cssText}};const L=i=>new J5(typeof i=="string"?i:i+"",void 0,K5),H=(i,...C)=>{const t=i.length===1?i[0]:C.reduce((e,o,a)=>e+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new J5(t,i,K5)},GC=(i,C)=>{G5?i.adoptedStyleSheets=C.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):C.forEach(t=>{const e=document.createElement("style"),o=F3.litNonce;o!==void 0&&e.setAttribute("nonce",o),e.textContent=t.cssText,i.appendChild(e)})},q8=G5?i=>i:i=>i instanceof CSSStyleSheet?(C=>{let t="";for(const e of C.cssRules)t+=e.cssText;return L(t)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var Q5;const
|
|
9
|
+
*/var Q5;const O3=window,W8=O3.trustedTypes,KC=W8?W8.emptyScript:"",Y8=O3.reactiveElementPolyfillSupport,X5={toAttribute(i,C){switch(C){case Boolean:i=i?KC:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,C){let t=i;switch(C){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},G8=(i,C)=>C!==i&&(C==C||i==i),C6={attribute:!0,type:String,converter:X5,reflect:!1,hasChanged:G8},t6="finalized";let Q1=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(C){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(C)}static get observedAttributes(){this.finalize();const C=[];return this.elementProperties.forEach((t,e)=>{const o=this._$Ep(e,t);o!==void 0&&(this._$Ev.set(o,e),C.push(o))}),C}static createProperty(C,t=C6){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(C,t),!t.noAccessor&&!this.prototype.hasOwnProperty(C)){const e=typeof C=="symbol"?Symbol():"__"+C,o=this.getPropertyDescriptor(C,e,t);o!==void 0&&Object.defineProperty(this.prototype,C,o)}}static getPropertyDescriptor(C,t,e){return{get(){return this[t]},set(o){const a=this[C];this[t]=o,this.requestUpdate(C,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(C){return this.elementProperties.get(C)||C6}static finalize(){if(this.hasOwnProperty(t6))return!1;this[t6]=!0;const C=Object.getPrototypeOf(this);if(C.finalize(),C.h!==void 0&&(this.h=[...C.h]),this.elementProperties=new Map(C.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of e)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(C){const t=[];if(Array.isArray(C)){const e=new Set(C.flat(1/0).reverse());for(const o of e)t.unshift(q8(o))}else C!==void 0&&t.push(q8(C));return t}static _$Ep(C,t){const e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof C=="string"?C.toLowerCase():void 0}_$Eu(){var C;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(C=this.constructor.h)===null||C===void 0||C.forEach(t=>t(this))}addController(C){var t,e;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(C),this.renderRoot!==void 0&&this.isConnected&&((e=C.hostConnected)===null||e===void 0||e.call(C))}removeController(C){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(C)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((C,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var C;const t=(C=this.shadowRoot)!==null&&C!==void 0?C:this.attachShadow(this.constructor.shadowRootOptions);return GC(t,this.constructor.elementStyles),t}connectedCallback(){var C;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(C=this._$ES)===null||C===void 0||C.forEach(t=>{var e;return(e=t.hostConnected)===null||e===void 0?void 0:e.call(t)})}enableUpdating(C){}disconnectedCallback(){var C;(C=this._$ES)===null||C===void 0||C.forEach(t=>{var e;return(e=t.hostDisconnected)===null||e===void 0?void 0:e.call(t)})}attributeChangedCallback(C,t,e){this._$AK(C,e)}_$EO(C,t,e=C6){var o;const a=this.constructor._$Ep(C,e);if(a!==void 0&&e.reflect===!0){const l=(((o=e.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?e.converter:X5).toAttribute(t,e.type);this._$El=C,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$El=null}}_$AK(C,t){var e;const o=this.constructor,a=o._$Ev.get(C);if(a!==void 0&&this._$El!==a){const l=o.getPropertyOptions(a),h=typeof l.converter=="function"?{fromAttribute:l.converter}:((e=l.converter)===null||e===void 0?void 0:e.fromAttribute)!==void 0?l.converter:X5;this._$El=a,this[a]=h.fromAttribute(t,l.type),this._$El=null}}requestUpdate(C,t,e){let o=!0;C!==void 0&&(((e=e||this.constructor.getPropertyOptions(C)).hasChanged||G8)(this[C],t)?(this._$AL.has(C)||this._$AL.set(C,t),e.reflect===!0&&this._$El!==C&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(C,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const C=this.scheduleUpdate();return C!=null&&await C,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var C;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,a)=>this[a]=o),this._$Ei=void 0);let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(C=this._$ES)===null||C===void 0||C.forEach(o=>{var a;return(a=o.hostUpdate)===null||a===void 0?void 0:a.call(o)}),this.update(e)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(e)}willUpdate(C){}_$AE(C){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostUpdated)===null||o===void 0?void 0:o.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(C)),this.updated(C)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(C){return!0}update(C){this._$EC!==void 0&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(C){}firstUpdated(C){}};Q1[t6]=!0,Q1.elementProperties=new Map,Q1.elementStyles=[],Q1.shadowRootOptions={mode:"open"},Y8==null||Y8({ReactiveElement:Q1}),((Q5=O3.reactiveElementVersions)!==null&&Q5!==void 0?Q5:O3.reactiveElementVersions=[]).push("1.6.3");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var e6;const
|
|
13
|
+
*/var e6;const N3=window,X1=N3.trustedTypes,K8=X1?X1.createPolicy("lit-html",{createHTML:i=>i}):void 0,i6="$lit$",a1=`lit$${(Math.random()+"").slice(9)}$`,J8="?"+a1,JC=`<${J8}>`,H1=document,D3=()=>H1.createComment(""),D2=i=>i===null||typeof i!="object"&&typeof i!="function",Q8=Array.isArray,QC=i=>Q8(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",o6=`[
|
|
14
14
|
\f\r]`,R2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X8=/-->/g,C4=/>/g,m1=RegExp(`>|${o6}(?:([^\\s"'>=/]+)(${o6}*=${o6}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),t4=/'/g,e4=/"/g,i4=/^(?:script|style|textarea|title)$/i,XC=i=>(C,...t)=>({_$litType$:i,strings:C,values:t}),Ct=XC(1),C2=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),o4=new WeakMap,V1=H1.createTreeWalker(H1,129,null,!1);function s4(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return K8!==void 0?K8.createHTML(C):C}const tt=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=R2;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===R2?d[1]==="!--"?l=X8:d[1]!==void 0?l=C4:d[2]!==void 0?(i4.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=m1):d[3]!==void 0&&(l=m1):l===m1?d[0]===">"?(l=o??R2,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?m1:d[3]==='"'?e4:t4):l===e4||l===t4?l=m1:l===X8||l===C4?l=R2:(l=m1,o=void 0);const v=l===m1&&i[h+1].startsWith("/>")?" ":"";a+=l===R2?n+JC:c>=0?(e.push(r),n.slice(0,c)+i6+n.slice(c)+a1+v):n+a1+(c===-2?(e.push(void 0),h):v)}return[s4(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let s6=class SC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=tt(C,t);if(this.el=SC.createElement(r,e),V1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=V1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(i6)||p.startsWith(a1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+i6).split(a1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?it:w[1]==="?"?st:w[1]==="@"?at:
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),t4=/'/g,e4=/"/g,i4=/^(?:script|style|textarea|title)$/i,XC=i=>(C,...t)=>({_$litType$:i,strings:C,values:t}),Ct=XC(1),C2=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),o4=new WeakMap,V1=H1.createTreeWalker(H1,129,null,!1);function s4(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return K8!==void 0?K8.createHTML(C):C}const tt=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=R2;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===R2?d[1]==="!--"?l=X8:d[1]!==void 0?l=C4:d[2]!==void 0?(i4.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=m1):d[3]!==void 0&&(l=m1):l===m1?d[0]===">"?(l=o??R2,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?m1:d[3]==='"'?e4:t4):l===e4||l===t4?l=m1:l===X8||l===C4?l=R2:(l=m1,o=void 0);const v=l===m1&&i[h+1].startsWith("/>")?" ":"";a+=l===R2?n+JC:c>=0?(e.push(r),n.slice(0,c)+i6+n.slice(c)+a1+v):n+a1+(c===-2?(e.push(void 0),h):v)}return[s4(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let s6=class SC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=tt(C,t);if(this.el=SC.createElement(r,e),V1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=V1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(i6)||p.startsWith(a1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+i6).split(a1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?it:w[1]==="?"?st:w[1]==="@"?at:R3})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(i4.test(o.tagName)){const c=o.textContent.split(a1),p=c.length-1;if(p>0){o.textContent=X1?X1.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],D3()),V1.nextNode(),n.push({type:2,index:++a});o.append(c[p],D3())}}}else if(o.nodeType===8)if(o.data===J8)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(a1,c+1))!==-1;)n.push({type:7,index:a}),c+=a1.length-1}a++}}static createElement(C,t){const e=H1.createElement("template");return e.innerHTML=C,e}};function t2(i,C,t=i,e){var o,a,l,h;if(C===C2)return C;let n=e!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[e]:t._$Cl;const r=D2(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Co)!==null&&l!==void 0?l:h._$Co=[])[e]=n:t._$Cl=n),n!==void 0&&(C=t2(i,n._$AS(i,C.values),n,e)),C}let et=class{constructor(C,t){this._$AV=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:H1).importNode(e,!0);V1.currentNode=a;let l=V1.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new a4(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new lt(l,this,C)),this._$AV.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=V1.nextNode(),h++)}return V1.currentNode=H1,a}v(C){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}},a4=class TC{constructor(C,t,e,o){var a;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(C==null?void 0:C.nodeType)===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=t2(this,C,t),D2(C)?C===O||C==null||C===""?(this._$AH!==O&&this._$AR(),this._$AH=O):C!==this._$AH&&C!==C2&&this._(C):C._$litType$!==void 0?this.g(C):C.nodeType!==void 0?this.$(C):QC(C)?this.T(C):this._(C)}k(C){return this._$AA.parentNode.insertBefore(C,this._$AB)}$(C){this._$AH!==C&&(this._$AR(),this._$AH=this.k(C))}_(C){this._$AH!==O&&D2(this._$AH)?this._$AA.nextSibling.data=C:this.$(H1.createTextNode(C)),this._$AH=C}g(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=s6.createElement(s4(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.v(e);else{const l=new et(a,this),h=l.u(this.options);l.v(e),this.$(h),this._$AH=l}}_$AC(C){let t=o4.get(C.strings);return t===void 0&&o4.set(C.strings,t=new s6(C)),t}T(C){Q8(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new TC(this.k(D3()),this.k(D3()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$Cp=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}},R3=class{constructor(C,t,e,o,a){this.type=1,this._$AH=O,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=t2(this,C,t,0),l=!D2(C)||C!==this._$AH&&C!==C2,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=t2(this,h[e+n],t,n),r===C2&&(r=this._$AH[n]),l||(l=!D2(r)||r!==this._$AH[n]),r===O?C=O:C!==O&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.j(C)}j(C){C===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}},it=class extends R3{constructor(){super(...arguments),this.type=3}j(C){this.element[this.name]=C===O?void 0:C}};const ot=X1?X1.emptyScript:"";let st=class extends R3{constructor(){super(...arguments),this.type=4}j(C){C&&C!==O?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}},at=class extends R3{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=t2(this,C,t,0))!==null&&e!==void 0?e:O)===C2)return;const o=this._$AH,a=C===O&&o!==O||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==O&&(o===O||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}},lt=class{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){t2(this,C)}};const l4=N3.litHtmlPolyfillSupport;l4==null||l4(s6,a4),((e6=N3.litHtmlVersions)!==null&&e6!==void 0?e6:N3.litHtmlVersions=[]).push("2.8.0");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var a6;const
|
|
19
|
+
*/var a6;const j3=window,e2=j3.trustedTypes,n4=e2?e2.createPolicy("lit-html",{createHTML:i=>i}):void 0,l6="$lit$",l1=`lit$${(Math.random()+"").slice(9)}$`,h4="?"+l1,nt=`<${h4}>`,Z1=document,j2=()=>Z1.createComment(""),U2=i=>i===null||typeof i!="object"&&typeof i!="function",r4=Array.isArray,ht=i=>r4(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",n6=`[
|
|
20
20
|
\f\r]`,q2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,d4=/-->/g,c4=/>/g,x1=RegExp(`>|${n6}(?:([^\\s"'>=/]+)(${n6}*=${n6}*(?:[^
|
|
21
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),p4=/'/g,v4=/"/g,L4=/^(?:script|style|textarea|title)$/i,g4=i=>(C,...t)=>({_$litType$:i,strings:C,values:t}),s=g4(1),h6=g4(2),i2=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),M4=new WeakMap,_1=Z1.createTreeWalker(Z1,129,null,!1);function u4(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return n4!==void 0?n4.createHTML(C):C}const rt=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=q2;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===q2?d[1]==="!--"?l=d4:d[1]!==void 0?l=c4:d[2]!==void 0?(L4.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=x1):d[3]!==void 0&&(l=x1):l===x1?d[0]===">"?(l=o??q2,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?x1:d[3]==='"'?v4:p4):l===v4||l===p4?l=x1:l===d4||l===c4?l=q2:(l=x1,o=void 0);const v=l===x1&&i[h+1].startsWith("/>")?" ":"";a+=l===q2?n+nt:c>=0?(e.push(r),n.slice(0,c)+l6+n.slice(c)+l1+v):n+l1+(c===-2?(e.push(void 0),h):v)}return[u4(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let r6=class IC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=rt(C,t);if(this.el=IC.createElement(r,e),_1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=_1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(l6)||p.startsWith(l1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+l6).split(l1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?ct:w[1]==="?"?vt:w[1]==="@"?Lt:
|
|
21
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),p4=/'/g,v4=/"/g,L4=/^(?:script|style|textarea|title)$/i,g4=i=>(C,...t)=>({_$litType$:i,strings:C,values:t}),s=g4(1),h6=g4(2),i2=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),M4=new WeakMap,_1=Z1.createTreeWalker(Z1,129,null,!1);function u4(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return n4!==void 0?n4.createHTML(C):C}const rt=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=q2;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===q2?d[1]==="!--"?l=d4:d[1]!==void 0?l=c4:d[2]!==void 0?(L4.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=x1):d[3]!==void 0&&(l=x1):l===x1?d[0]===">"?(l=o??q2,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?x1:d[3]==='"'?v4:p4):l===v4||l===p4?l=x1:l===d4||l===c4?l=q2:(l=x1,o=void 0);const v=l===x1&&i[h+1].startsWith("/>")?" ":"";a+=l===q2?n+nt:c>=0?(e.push(r),n.slice(0,c)+l6+n.slice(c)+l1+v):n+l1+(c===-2?(e.push(void 0),h):v)}return[u4(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let r6=class IC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=rt(C,t);if(this.el=IC.createElement(r,e),_1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=_1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(l6)||p.startsWith(l1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+l6).split(l1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?ct:w[1]==="?"?vt:w[1]==="@"?Lt:U3})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(L4.test(o.tagName)){const c=o.textContent.split(l1),p=c.length-1;if(p>0){o.textContent=e2?e2.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],j2()),_1.nextNode(),n.push({type:2,index:++a});o.append(c[p],j2())}}}else if(o.nodeType===8)if(o.data===h4)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(l1,c+1))!==-1;)n.push({type:7,index:a}),c+=l1.length-1}a++}}static createElement(C,t){const e=Z1.createElement("template");return e.innerHTML=C,e}};function o2(i,C,t=i,e){var o,a,l,h;if(C===i2)return C;let n=e!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[e]:t._$Cl;const r=U2(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Co)!==null&&l!==void 0?l:h._$Co=[])[e]=n:t._$Cl=n),n!==void 0&&(C=o2(i,n._$AS(i,C.values),n,e)),C}let dt=class{constructor(C,t){this._$AV=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:Z1).importNode(e,!0);_1.currentNode=a;let l=_1.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new d6(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new gt(l,this,C)),this._$AV.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=_1.nextNode(),h++)}return _1.currentNode=Z1,a}v(C){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}},d6=class PC{constructor(C,t,e,o){var a;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(C==null?void 0:C.nodeType)===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=o2(this,C,t),U2(C)?C===A||C==null||C===""?(this._$AH!==A&&this._$AR(),this._$AH=A):C!==this._$AH&&C!==i2&&this._(C):C._$litType$!==void 0?this.g(C):C.nodeType!==void 0?this.$(C):ht(C)?this.T(C):this._(C)}k(C){return this._$AA.parentNode.insertBefore(C,this._$AB)}$(C){this._$AH!==C&&(this._$AR(),this._$AH=this.k(C))}_(C){this._$AH!==A&&U2(this._$AH)?this._$AA.nextSibling.data=C:this.$(Z1.createTextNode(C)),this._$AH=C}g(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=r6.createElement(u4(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.v(e);else{const l=new dt(a,this),h=l.u(this.options);l.v(e),this.$(h),this._$AH=l}}_$AC(C){let t=M4.get(C.strings);return t===void 0&&M4.set(C.strings,t=new r6(C)),t}T(C){r4(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new PC(this.k(j2()),this.k(j2()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$Cp=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}},U3=class{constructor(C,t,e,o,a){this.type=1,this._$AH=A,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=o2(this,C,t,0),l=!U2(C)||C!==this._$AH&&C!==i2,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=o2(this,h[e+n],t,n),r===i2&&(r=this._$AH[n]),l||(l=!U2(r)||r!==this._$AH[n]),r===A?C=A:C!==A&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.j(C)}j(C){C===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}},ct=class extends U3{constructor(){super(...arguments),this.type=3}j(C){this.element[this.name]=C===A?void 0:C}};const pt=e2?e2.emptyScript:"";let vt=class extends U3{constructor(){super(...arguments),this.type=4}j(C){C&&C!==A?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}},Lt=class extends U3{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=o2(this,C,t,0))!==null&&e!==void 0?e:A)===i2)return;const o=this._$AH,a=C===A&&o!==A||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==A&&(o===A||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}},gt=class{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){o2(this,C)}};const w4=j3.litHtmlPolyfillSupport;w4==null||w4(r6,d6),((a6=j3.litHtmlVersions)!==null&&a6!==void 0?a6:j3.litHtmlVersions=[]).push("2.8.0");const c6=(i,C,t)=>{var e,o;const a=(e=t==null?void 0:t.renderBefore)!==null&&e!==void 0?e:C;let l=a._$litPart$;if(l===void 0){const h=(o=t==null?void 0:t.renderBefore)!==null&&o!==void 0?o:null;a._$litPart$=l=new d6(C.insertBefore(j2(),h),h,void 0,t??{})}return l._$AI(i),l};/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
opacity: 1;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
`,n1="#01A49A",Y="#01736C",V4="#E6F6F5",Z4="#4DBFB8",Ht="#CCEDEB",U="#5143D5",x4="#392F95",h1="#EEECFB",
|
|
72
|
+
`,n1="#01A49A",Y="#01736C",V4="#E6F6F5",Z4="#4DBFB8",Ht="#CCEDEB",U="#5143D5",x4="#392F95",h1="#EEECFB",q3="#857BE2",_4="#CBC7F2",mt="#DCD9F7",b4="#203442",e1="#364855",L6="#4D5D68",g6="#79858E",y4="#909AA1",Vt="#BCC2C6",Zt="#D2D6D9",W2="#E9EBEC",Z="#FFFFFF",z4="#F2F5F9",i1="#E53935",k4="#FFEBEE",W3="#B71C1C",M6="#FFCDD2",$4="#FFB300",A4="#FFF8E1",xt="#FF8F00",_t="#FFECB3",B4="#7CB342",E4="#F1F8E9",bt="#33691E",yt="#DCEDC8",zt="0 2px 2px rgba(1, 164, 154, 0.25)",kt="0 4px 10px rgba(1, 115, 108, 0.35)",$t="0 1px 2px rgba(1, 115, 108, 0.5)",At="0 2px 2px rgba(121, 133, 142, 0.25)",Bt="0 2px 2px rgba(229, 57, 53, 0.25)",Et="0 4px 10px rgba(183, 28, 28, 0.35)",St="0 1px 2px rgba(183, 28, 28, 0.5)",Tt="0 2px 2px rgba(121, 133, 142, 0.25)",It="Rubik",s2="#FFFFFF",Pt="#E9EBEC",u6="#79858E",S4="#364855",r1=i=>{const C={primary1:{color:Z,colorHover:Z,colorActive:Z},primary2:{color:Z,colorHover:W3,colorActive:Z},outline1:{color:Y,colorHover:Y,colorActive:Z},outline2:{color:i1,colorHover:i1,colorActive:Z},text1:{color:Y,colorHover:Y,colorActive:Y},text2:{color:e1,colorHover:S4,colorActive:e1},text3:{color:U,colorHover:U,colorActive:s2},icon1:{color:U,colorHover:U,colorActive:s2}};return L(`
|
|
73
73
|
.${i} svg > * {
|
|
74
74
|
fill: ${L(C[i].color)};
|
|
75
75
|
}
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
${r1("text3")}
|
|
120
120
|
${r1("icon1")}
|
|
121
121
|
|
|
122
|
-
`;var Ot=Object.prototype;function T4(i){var C=i&&i.constructor,t=typeof C=="function"&&C.prototype||Ot;return i===t}function Nt(i,C){return function(t){return i(C(t))}}var Dt=Nt(Object.keys,Object),Rt=Object.prototype,jt=Rt.hasOwnProperty;function Ut(i){if(!T4(i))return Dt(i);var C=[];for(var t in Object(i))jt.call(i,t)&&t!="constructor"&&C.push(t);return C}var I4=typeof global=="object"&&global&&global.Object===Object&&global,qt=typeof self=="object"&&self&&self.Object===Object&&self,d1=I4||qt||Function("return this")(),
|
|
122
|
+
`;var Ot=Object.prototype;function T4(i){var C=i&&i.constructor,t=typeof C=="function"&&C.prototype||Ot;return i===t}function Nt(i,C){return function(t){return i(C(t))}}var Dt=Nt(Object.keys,Object),Rt=Object.prototype,jt=Rt.hasOwnProperty;function Ut(i){if(!T4(i))return Dt(i);var C=[];for(var t in Object(i))jt.call(i,t)&&t!="constructor"&&C.push(t);return C}var I4=typeof global=="object"&&global&&global.Object===Object&&global,qt=typeof self=="object"&&self&&self.Object===Object&&self,d1=I4||qt||Function("return this")(),Y3=d1.Symbol,P4=Object.prototype,Wt=P4.hasOwnProperty,Yt=P4.toString,Y2=Y3?Y3.toStringTag:void 0;function Gt(i){var C=Wt.call(i,Y2),t=i[Y2];try{i[Y2]=void 0;var e=!0}catch{}var o=Yt.call(i);return e&&(C?i[Y2]=t:delete i[Y2]),o}var Kt=Object.prototype,Jt=Kt.toString;function Qt(i){return Jt.call(i)}var Xt="[object Null]",Ce="[object Undefined]",F4=Y3?Y3.toStringTag:void 0;function G2(i){return i==null?i===void 0?Ce:Xt:F4&&F4 in Object(i)?Gt(i):Qt(i)}function O4(i){var C=typeof i;return i!=null&&(C=="object"||C=="function")}var te="[object AsyncFunction]",ee="[object Function]",ie="[object GeneratorFunction]",oe="[object Proxy]";function N4(i){if(!O4(i))return!1;var C=G2(i);return C==ee||C==ie||C==te||C==oe}var w6=d1["__core-js_shared__"],D4=function(){var i=/[^.]+$/.exec(w6&&w6.keys&&w6.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function se(i){return!!D4&&D4 in i}var ae=Function.prototype,le=ae.toString;function b1(i){if(i!=null){try{return le.call(i)}catch{}try{return i+""}catch{}}return""}var ne=/[\\^$.*+?()[\]{}|]/g,he=/^\[object .+?Constructor\]$/,re=Function.prototype,de=Object.prototype,ce=re.toString,pe=de.hasOwnProperty,ve=RegExp("^"+ce.call(pe).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Le(i){if(!O4(i)||se(i))return!1;var C=N4(i)?ve:he;return C.test(b1(i))}function ge(i,C){return i==null?void 0:i[C]}function K2(i,C){var t=ge(i,C);return Le(t)?t:void 0}var f6=K2(d1,"DataView"),H6=K2(d1,"Map"),m6=K2(d1,"Promise"),V6=K2(d1,"Set"),Z6=K2(d1,"WeakMap"),R4="[object Map]",Me="[object Object]",j4="[object Promise]",U4="[object Set]",q4="[object WeakMap]",W4="[object DataView]",ue=b1(f6),we=b1(H6),fe=b1(m6),He=b1(V6),me=b1(Z6),y1=G2;(f6&&y1(new f6(new ArrayBuffer(1)))!=W4||H6&&y1(new H6)!=R4||m6&&y1(m6.resolve())!=j4||V6&&y1(new V6)!=U4||Z6&&y1(new Z6)!=q4)&&(y1=function(i){var C=G2(i),t=C==Me?i.constructor:void 0,e=t?b1(t):"";if(e)switch(e){case ue:return W4;case we:return R4;case fe:return j4;case He:return U4;case me:return q4}return C});function x6(i){return i!=null&&typeof i=="object"}var Ve="[object Arguments]";function Y4(i){return x6(i)&&G2(i)==Ve}var G4=Object.prototype,Ze=G4.hasOwnProperty,xe=G4.propertyIsEnumerable,_e=Y4(function(){return arguments}())?Y4:function(i){return x6(i)&&Ze.call(i,"callee")&&!xe.call(i,"callee")},be=Array.isArray,ye=9007199254740991;function K4(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ye}function ze(i){return i!=null&&K4(i.length)&&!N4(i)}function ke(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function $e(){return!1}var J4=typeof b=="object"&&b&&!b.nodeType&&b,Q4=J4&&typeof module=="object"&&module&&!module.nodeType&&module,Ae=Q4&&Q4.exports===J4,X4=Ae?d1.Buffer:void 0,Be=X4?X4.isBuffer:void 0,Ee=Be||$e,Se="[object Arguments]",Te="[object Array]",Ie="[object Boolean]",Pe="[object Date]",Fe="[object Error]",Oe="[object Function]",Ne="[object Map]",De="[object Number]",Re="[object Object]",je="[object RegExp]",Ue="[object Set]",qe="[object String]",We="[object WeakMap]",Ye="[object ArrayBuffer]",Ge="[object DataView]",Ke="[object Float32Array]",Je="[object Float64Array]",Qe="[object Int8Array]",Xe="[object Int16Array]",Ci="[object Int32Array]",ti="[object Uint8Array]",ei="[object Uint8ClampedArray]",ii="[object Uint16Array]",oi="[object Uint32Array]",B={};B[Ke]=B[Je]=B[Qe]=B[Xe]=B[Ci]=B[ti]=B[ei]=B[ii]=B[oi]=!0,B[Se]=B[Te]=B[Ye]=B[Ie]=B[Ge]=B[Pe]=B[Fe]=B[Oe]=B[Ne]=B[De]=B[Re]=B[je]=B[Ue]=B[qe]=B[We]=!1;function si(i){return x6(i)&&K4(i.length)&&!!B[G2(i)]}function ai(i){return function(C){return i(C)}}var C7=typeof b=="object"&&b&&!b.nodeType&&b,J2=C7&&typeof module=="object"&&module&&!module.nodeType&&module,li=J2&&J2.exports===C7,_6=li&&I4.process,t7=function(){try{var i=J2&&J2.require&&J2.require("util").types;return i||_6&&_6.binding&&_6.binding("util")}catch{}}(),e7=t7&&t7.isTypedArray,ni=e7?ai(e7):si,hi="[object Map]",ri="[object Set]",di=Object.prototype,ci=di.hasOwnProperty;function Q2(i){if(i==null)return!0;if(ze(i)&&(be(i)||typeof i=="string"||typeof i.splice=="function"||Ee(i)||ni(i)||_e(i)))return!i.length;var C=y1(i);if(C==hi||C==ri)return!i.size;if(T4(i))return!Ut(i).length;for(var t in i)if(ci.call(i,t))return!1;return!0}const pi={12:s`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
123
123
|
<path
|
|
124
124
|
d="M10.0625 3.25H6.3125L5.0625 2H1.9375C1.68886 2 1.4504 2.09877 1.27459 2.27459C1.09877 2.4504 1 2.68886 1 2.9375L1 8.5625C1 8.81114 1.09877 9.0496 1.27459 9.22541C1.4504 9.40123 1.68886 9.5 1.9375 9.5H10.0625C10.3111 9.5 10.5496 9.40123 10.7254 9.22541C10.9012 9.0496 11 8.81114 11 8.5625V4.1875C11 3.93886 10.9012 3.7004 10.7254 3.52459C10.5496 3.34877 10.3111 3.25 10.0625 3.25ZM8.02148 6.53125C8.02148 6.61413 7.98856 6.69362 7.92996 6.75222C7.87135 6.81083 7.79186 6.84375 7.70898 6.84375H6.45898V8.09375C6.45898 8.17663 6.42606 8.25612 6.36746 8.31472C6.30885 8.37333 6.22936 8.40625 6.14648 8.40625H5.83398C5.7511 8.40625 5.67162 8.37333 5.61301 8.31472C5.55441 8.25612 5.52148 8.17663 5.52148 8.09375V6.84375H4.27148C4.1886 6.84375 4.10912 6.81083 4.05051 6.75222C3.99191 6.69362 3.95898 6.61413 3.95898 6.53125V6.21875C3.95898 6.13587 3.99191 6.05638 4.05051 5.99778C4.10912 5.93917 4.1886 5.90625 4.27148 5.90625H5.52148V4.65625C5.52148 4.57337 5.55441 4.49388 5.61301 4.43528C5.67162 4.37667 5.7511 4.34375 5.83398 4.34375H6.14648C6.22936 4.34375 6.30885 4.37667 6.36746 4.43528C6.42606 4.49388 6.45898 4.57337 6.45898 4.65625V5.90625H7.70898C7.79186 5.90625 7.87135 5.93917 7.92996 5.99778C7.98856 6.05638 8.02148 6.13587 8.02148 6.21875V6.53125Z"
|
|
125
125
|
fill="var(--eloisa-ds-icon-color, #203442)"/>
|
|
@@ -6116,19 +6116,19 @@
|
|
|
6116
6116
|
* @license
|
|
6117
6117
|
* Copyright 2018 Google LLC
|
|
6118
6118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6119
|
-
*/const a2=h7(class extends Hn{constructor(i){var C;if(super(i),i.type!==fn.ATTRIBUTE||i.name!=="class"||((C=i.strings)===null||C===void 0?void 0:C.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(C=>i[C]).join(" ")+" "}update(i,[C]){var t,e;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in C)C[a]&&!(!((t=this.nt)===null||t===void 0)&&t.has(a))&&this.it.add(a);return this.render(C)}const o=i.element.classList;this.it.forEach(a=>{a in C||(o.remove(a),this.it.delete(a))});for(const a in C){const l=!!C[a];l===this.it.has(a)||!((e=this.nt)===null||e===void 0)&&e.has(a)||(l?(o.add(a),this.it.add(a)):(o.remove(a),this.it.delete(a)))}return C2}});function mn({name:i,size:C,variant:t,parentVariant:e}){const o=wn({variant:t,name:i,size:C}),a=a2({"icon-wrapper":!0,[e]:!0,shadow:t==="shadow"});return{icon:o,iconStyles:a}}class
|
|
6119
|
+
*/const a2=h7(class extends Hn{constructor(i){var C;if(super(i),i.type!==fn.ATTRIBUTE||i.name!=="class"||((C=i.strings)===null||C===void 0?void 0:C.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(C=>i[C]).join(" ")+" "}update(i,[C]){var t,e;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in C)C[a]&&!(!((t=this.nt)===null||t===void 0)&&t.has(a))&&this.it.add(a);return this.render(C)}const o=i.element.classList;this.it.forEach(a=>{a in C||(o.remove(a),this.it.delete(a))});for(const a in C){const l=!!C[a];l===this.it.has(a)||!((e=this.nt)===null||e===void 0)&&e.has(a)||(l?(o.add(a),this.it.add(a)):(o.remove(a),this.it.delete(a)))}return C2}});function mn({name:i,size:C,variant:t,parentVariant:e}){const o=wn({variant:t,name:i,size:C}),a=a2({"icon-wrapper":!0,[e]:!0,shadow:t==="shadow"});return{icon:o,iconStyles:a}}class G3 extends f{constructor(){super(),this.variant="flat",this.name="",this.size=12,this.isTouchableIcon=!1}render(){const{name:C,size:t,variant:e,isTouchableIcon:o,parentVariant:a}=this,{icon:l,iconStyles:h}=mn({name:C,size:t,variant:e,parentVariant:a});return o?M`
|
|
6120
6120
|
<button class=${h}>
|
|
6121
6121
|
${l}
|
|
6122
6122
|
</button>
|
|
6123
|
-
`:M`<div class=${h}>${l}</div>`}}g(
|
|
6123
|
+
`:M`<div class=${h}>${l}</div>`}}g(G3,"styles",Ft),g(G3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(G3,"properties",{variant:{type:String},name:{type:String},size:{type:Number},isTouchableIcon:{type:Boolean},className:{type:String},parentVariant:{type:String}}),customElements.get("cas-icon")||customElements.define("cas-icon",G3);/**
|
|
6124
6124
|
* @license
|
|
6125
6125
|
* Copyright 2017 Google LLC
|
|
6126
6126
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6127
|
-
*/var b6;const
|
|
6127
|
+
*/var b6;const K3=window,l2=K3.trustedTypes,r7=l2?l2.createPolicy("lit-html",{createHTML:i=>i}):void 0,c1=`lit$${(Math.random()+"").slice(9)}$`,d7="?"+c1,Vn=`<${d7}>`,n2=document,J3=(i="")=>n2.createComment(i),X2=i=>i===null||typeof i!="object"&&typeof i!="function",c7=Array.isArray,Zn=i=>c7(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",C3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,p7=/-->/g,v7=/>/g,z1=RegExp(`>|[
|
|
6128
6128
|
\f\r](?:([^\\s"'>=/]+)([
|
|
6129
6129
|
\f\r]*=[
|
|
6130
6130
|
\f\r]*(?:[^
|
|
6131
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),L7=/'/g,g7=/"/g,M7=/^(?:script|style|textarea|title)$/i,k1=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),u7=new WeakMap,h2=n2.createTreeWalker(n2,129,null,!1),xn=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=C3;for(let n=0;n<t;n++){const r=i[n];let d,c,p=-1,v=0;for(;v<r.length&&(l.lastIndex=v,c=l.exec(r),c!==null);)v=l.lastIndex,l===C3?c[1]==="!--"?l=p7:c[1]!==void 0?l=v7:c[2]!==void 0?(M7.test(c[2])&&(o=RegExp("</"+c[2],"g")),l=z1):c[3]!==void 0&&(l=z1):l===z1?c[0]===">"?(l=o??C3,p=-1):c[1]===void 0?p=-2:(p=l.lastIndex-c[2].length,d=c[1],l=c[3]===void 0?z1:c[3]==='"'?g7:L7):l===g7||l===L7?l=z1:l===p7||l===v7?l=C3:(l=z1,o=void 0);const u=l===z1&&i[n+1].startsWith("/>")?" ":"";a+=l===C3?r+Vn:p>=0?(e.push(d),r.slice(0,p)+"$lit$"+r.slice(p)+c1+u):r+c1+(p===-2?(e.push(void 0),n):u)}const h=a+(i[t]||"<?>")+(C===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[r7!==void 0?r7.createHTML(h):h,e]};let y6=class FC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=xn(C,t);if(this.el=FC.createElement(r,e),h2.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=h2.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(c1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+"$lit$").split(c1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?bn:w[1]==="?"?zn:w[1]==="@"?kn:
|
|
6131
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),L7=/'/g,g7=/"/g,M7=/^(?:script|style|textarea|title)$/i,k1=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),u7=new WeakMap,h2=n2.createTreeWalker(n2,129,null,!1),xn=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=C3;for(let n=0;n<t;n++){const r=i[n];let d,c,p=-1,v=0;for(;v<r.length&&(l.lastIndex=v,c=l.exec(r),c!==null);)v=l.lastIndex,l===C3?c[1]==="!--"?l=p7:c[1]!==void 0?l=v7:c[2]!==void 0?(M7.test(c[2])&&(o=RegExp("</"+c[2],"g")),l=z1):c[3]!==void 0&&(l=z1):l===z1?c[0]===">"?(l=o??C3,p=-1):c[1]===void 0?p=-2:(p=l.lastIndex-c[2].length,d=c[1],l=c[3]===void 0?z1:c[3]==='"'?g7:L7):l===g7||l===L7?l=z1:l===p7||l===v7?l=C3:(l=z1,o=void 0);const u=l===z1&&i[n+1].startsWith("/>")?" ":"";a+=l===C3?r+Vn:p>=0?(e.push(d),r.slice(0,p)+"$lit$"+r.slice(p)+c1+u):r+c1+(p===-2?(e.push(void 0),n):u)}const h=a+(i[t]||"<?>")+(C===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[r7!==void 0?r7.createHTML(h):h,e]};let y6=class FC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=xn(C,t);if(this.el=FC.createElement(r,e),h2.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=h2.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(c1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+"$lit$").split(c1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?bn:w[1]==="?"?zn:w[1]==="@"?kn:Q3})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(M7.test(o.tagName)){const c=o.textContent.split(c1),p=c.length-1;if(p>0){o.textContent=l2?l2.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],J3()),h2.nextNode(),n.push({type:2,index:++a});o.append(c[p],J3())}}}else if(o.nodeType===8)if(o.data===d7)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(c1,c+1))!==-1;)n.push({type:7,index:a}),c+=c1.length-1}a++}}static createElement(C,t){const e=n2.createElement("template");return e.innerHTML=C,e}};function r2(i,C,t=i,e){var o,a,l,h;if(C===k1)return C;let n=e!==void 0?(o=t._$Cl)===null||o===void 0?void 0:o[e]:t._$Cu;const r=X2(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Cl)!==null&&l!==void 0?l:h._$Cl=[])[e]=n:t._$Cu=n),n!==void 0&&(C=r2(i,n._$AS(i,C.values),n,e)),C}let _n=class{constructor(C,t){this.v=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:n2).importNode(e,!0);h2.currentNode=a;let l=h2.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new w7(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new $n(l,this,C)),this.v.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=h2.nextNode(),h++)}return a}m(C){let t=0;for(const e of this.v)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}},w7=class OC{constructor(C,t,e,o){var a;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$C_=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$C_}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&C.nodeType===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=r2(this,C,t),X2(C)?C===E||C==null||C===""?(this._$AH!==E&&this._$AR(),this._$AH=E):C!==this._$AH&&C!==k1&&this.$(C):C._$litType$!==void 0?this.T(C):C.nodeType!==void 0?this.k(C):Zn(C)?this.O(C):this.$(C)}S(C,t=this._$AB){return this._$AA.parentNode.insertBefore(C,t)}k(C){this._$AH!==C&&(this._$AR(),this._$AH=this.S(C))}$(C){this._$AH!==E&&X2(this._$AH)?this._$AA.nextSibling.data=C:this.k(n2.createTextNode(C)),this._$AH=C}T(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=y6.createElement(o.h,this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.m(e);else{const l=new _n(a,this),h=l.p(this.options);l.m(e),this.k(h),this._$AH=l}}_$AC(C){let t=u7.get(C.strings);return t===void 0&&u7.set(C.strings,t=new y6(C)),t}O(C){c7(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new OC(this.S(J3()),this.S(J3()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$C_=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}},Q3=class{constructor(C,t,e,o,a){this.type=1,this._$AH=E,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=r2(this,C,t,0),l=!X2(C)||C!==this._$AH&&C!==k1,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=r2(this,h[e+n],t,n),r===k1&&(r=this._$AH[n]),l||(l=!X2(r)||r!==this._$AH[n]),r===E?C=E:C!==E&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.P(C)}P(C){C===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}},bn=class extends Q3{constructor(){super(...arguments),this.type=3}P(C){this.element[this.name]=C===E?void 0:C}};const yn=l2?l2.emptyScript:"";let zn=class extends Q3{constructor(){super(...arguments),this.type=4}P(C){C&&C!==E?this.element.setAttribute(this.name,yn):this.element.removeAttribute(this.name)}},kn=class extends Q3{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=r2(this,C,t,0))!==null&&e!==void 0?e:E)===k1)return;const o=this._$AH,a=C===E&&o!==E||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==E&&(o===E||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}},$n=class{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){r2(this,C)}};const f7=K3.litHtmlPolyfillSupport;f7==null||f7(y6,w7),((b6=K3.litHtmlVersions)!==null&&b6!==void 0?b6:K3.litHtmlVersions=[]).push("2.3.1");/**
|
|
6132
6132
|
* @license
|
|
6133
6133
|
* Copyright 2017 Google LLC
|
|
6134
6134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -6584,13 +6584,13 @@
|
|
|
6584
6584
|
}
|
|
6585
6585
|
}
|
|
6586
6586
|
|
|
6587
|
-
`;class
|
|
6587
|
+
`;class X3 extends f{constructor(){super(),this.variant="body1"}render(){const{tag:C,classNames:t}=En(this.variant,this.component,this.mobileVariant);let e;return this.text&&this.text!==""?e=`<${C} class="${t}">
|
|
6588
6588
|
${this.text}
|
|
6589
6589
|
</${C}>
|
|
6590
6590
|
`:e=`<${C} class="${t}">
|
|
6591
6591
|
<slot></slot>
|
|
6592
6592
|
</${C}>
|
|
6593
|
-
`,s`${d2(e)}`}}g(
|
|
6593
|
+
`,s`${d2(e)}`}}g(X3,"styles",Sn),g(X3,"shadowRootOptions",{...f.shadowRootOptions,mode:"closed"}),g(X3,"properties",{variant:{type:String},component:{type:String},mobileVariant:{type:String},text:{type:String}}),customElements.get("cas-text")||customElements.define("cas-text",X3);const X=({variant:i="primary1",color:C,colorHover:t,colorActive:e,bgColor:o,bgColorHover:a,bgColorActive:l,bgColorDisabled:h,boxShadow:n="none",boxShadowHover:r="none",boxShadowPressed:d="none",boxShadowDisabled:c="none"})=>L(`
|
|
6594
6594
|
.${i} {
|
|
6595
6595
|
background-color: ${L(o)};
|
|
6596
6596
|
box-sizing: border-box;
|
|
@@ -6703,7 +6703,7 @@
|
|
|
6703
6703
|
}
|
|
6704
6704
|
|
|
6705
6705
|
${X({variant:"primary1",color:Z,colorHover:Z,colorActive:Z,bgColor:n1,bgColorHover:Z4,bgColorActive:Y,bgColorDisabled:W2,boxShadow:zt,boxShadowHover:kt,boxShadowPressed:$t,boxShadowDisabled:At})}
|
|
6706
|
-
${X({variant:"primary2",color:Z,colorHover:
|
|
6706
|
+
${X({variant:"primary2",color:Z,colorHover:W3,colorActive:Z,bgColor:i1,bgColorHover:M6,bgColorActive:W3,bgColorDisabled:W2,boxShadow:Bt,boxShadowHover:Et,boxShadowPressed:St,boxShadowDisabled:Tt})}
|
|
6707
6707
|
${X({variant:"outline1",color:Y,colorHover:Y,colorActive:Z,bgColor:"transparent",bgColorHover:V4,bgColorActive:n1,bgColorDisabled:"transparent"})}
|
|
6708
6708
|
.outline1 {
|
|
6709
6709
|
border: 1px solid ${L(n1)};
|
|
@@ -6796,8 +6796,8 @@
|
|
|
6796
6796
|
border-right-color: ${L(Z)};
|
|
6797
6797
|
}
|
|
6798
6798
|
|
|
6799
|
-
${X({variant:"text3",color:U,colorHover:U,colorActive:s2,bgColor:Z,bgColorHover:h1,bgColorActive:
|
|
6800
|
-
${X({variant:"icon1",color:U,colorHover:U,colorActive:s2,bgColor:h1,bgColorHover:_4,bgColorActive:
|
|
6799
|
+
${X({variant:"text3",color:U,colorHover:U,colorActive:s2,bgColor:Z,bgColorHover:h1,bgColorActive:q3,bgColorDisabled:Z})}
|
|
6800
|
+
${X({variant:"icon1",color:U,colorHover:U,colorActive:s2,bgColor:h1,bgColorHover:_4,bgColorActive:q3,bgColorDisabled:W2})}
|
|
6801
6801
|
.icon1 {
|
|
6802
6802
|
height: 32px;
|
|
6803
6803
|
min-width: 32px;
|
|
@@ -6812,7 +6812,7 @@
|
|
|
6812
6812
|
.icon1.icon svg {
|
|
6813
6813
|
margin-right: 0;
|
|
6814
6814
|
}
|
|
6815
|
-
${X({variant:"pill",color:U,colorHover:U,colorActive:s2,bgColor:Z,bgColorHover:h1,bgColorActive:
|
|
6815
|
+
${X({variant:"pill",color:U,colorHover:U,colorActive:s2,bgColor:Z,bgColorHover:h1,bgColorActive:q3,bgColorDisabled:Z})}
|
|
6816
6816
|
.pill {
|
|
6817
6817
|
border-radius: 50px;
|
|
6818
6818
|
border: 1px solid ${L(mt)};
|
|
@@ -6821,18 +6821,18 @@
|
|
|
6821
6821
|
:host([active='true']) .pill {
|
|
6822
6822
|
background: red;
|
|
6823
6823
|
}
|
|
6824
|
-
${X({variant:"tab1",color:U,colorHover:U,colorActive:s2,bgColor:Z,bgColorHover:h1,bgColorActive:
|
|
6824
|
+
${X({variant:"tab1",color:U,colorHover:U,colorActive:s2,bgColor:Z,bgColorHover:h1,bgColorActive:q3,bgColorDisabled:Z})}
|
|
6825
6825
|
|
|
6826
6826
|
.rounded {
|
|
6827
6827
|
border-radius: 50px;
|
|
6828
6828
|
}
|
|
6829
|
-
`;function Tn({variant:i,variantText:C,text:t,loading:e,size:o,fullWidth:a,iconName:l,iconPosition:h,rounded:n}){const r=e==="true",d=h==="right",c=q({base:!0,[i]:!0,loading:r,fullWidth:a==="true",[o]:!0,[C]:!0,icon:l,rightIcon:d,rounded:n==="true"});return{buttonIcon:r?"flat-loading":l,buttonStyle:c,buttonText:r?"":t}}class
|
|
6829
|
+
`;function Tn({variant:i,variantText:C,text:t,loading:e,size:o,fullWidth:a,iconName:l,iconPosition:h,rounded:n}){const r=e==="true",d=h==="right",c=q({base:!0,[i]:!0,loading:r,fullWidth:a==="true",[o]:!0,[C]:!0,icon:l,rightIcon:d,rounded:n==="true"});return{buttonIcon:r?"flat-loading":l,buttonStyle:c,buttonText:r?"":t}}class C5 extends f{constructor(){super(),this.size="medium",this.variant="primary1",this.disabled="false",this.variantText="body2",this.fullWidth="false",this.type="button",this.loading="false",this.iconSize=12,this.iconName=null}render(){const{text:C,size:t,variant:e,loading:o,onClick:a,disabled:l,fullWidth:h,variantText:n,iconName:r,iconPosition:d,iconSize:c,type:p,rounded:v}=this,{buttonText:u,buttonStyle:w,buttonIcon:m}=Tn({text:C,loading:o,size:t,variant:e,fullWidth:h,variantText:n,iconName:r,iconPosition:d,rounded:v});return M`
|
|
6830
6830
|
<style>${x7}</style>
|
|
6831
6831
|
<button type=${p} class=${w} ?disabled=${l==="true"} @click=${a}>
|
|
6832
6832
|
${o==="true"?M`<cas-spinner></cas-spinner>`:m?M`<cas-icon variant="flat" size=${c} parentVariant=${e} name=${m}/></cas-icon>`:null}
|
|
6833
6833
|
<span>${u}</span>
|
|
6834
6834
|
</button>
|
|
6835
|
-
`}createRenderRoot(){return this}}g(
|
|
6835
|
+
`}createRenderRoot(){return this}}g(C5,"styles",x7),g(C5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(C5,"properties",{text:{type:String},loading:{type:String},variant:{type:String},size:{type:String},component:{type:String},variantText:{type:String},onClick:{type:Function},disabled:{type:String},iconName:{type:String},iconSize:{type:String},type:{type:String},iconPosition:{type:String},fullWidth:{type:String},rounded:{type:String}}),customElements.get("cas-button")||customElements.define("cas-button",C5);const In=H`
|
|
6836
6836
|
:host {
|
|
6837
6837
|
position: absolute;
|
|
6838
6838
|
width: 100%;
|
|
@@ -7066,7 +7066,7 @@
|
|
|
7066
7066
|
border-radius: 8px; /* rounded */
|
|
7067
7067
|
background-color: rgba(229, 231, 235, 0.5); /* bg-gray-100 */
|
|
7068
7068
|
}
|
|
7069
|
-
`,k6=[{name:"Consulta médica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio/examenes-laboratorio-domicilio"}]},{name:"Vacunas",items:[{name:"Adulto",link:"https://www.alemana.cl/ReservaDeHoras/resultado-busqueda-area.aspx?idEmp=2&horario=todas&su=-1&idioma=todas&valorArea=Vacunas+Adulto&Am=229,0&Ai=-1&CentrosSalud=-1¢roNombre=&CenAm=-1&CenAi=-1&d=20-12-2023&idAgenda=undefined&fp=20-12-2023&rp=&ipac=0&idreserva=&buscar-nombre=&dispositivo=2&cal=1&linkPortal="},{name:"Covid-19",link:"https://www.clinicaalemana.cl/covid-19"},{name:"Influenza",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2023"},{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesoría pediátrica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}];class
|
|
7069
|
+
`,k6=[{name:"Consulta médica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio/examenes-laboratorio-domicilio"}]},{name:"Vacunas",items:[{name:"Adulto",link:"https://www.alemana.cl/ReservaDeHoras/resultado-busqueda-area.aspx?idEmp=2&horario=todas&su=-1&idioma=todas&valorArea=Vacunas+Adulto&Am=229,0&Ai=-1&CentrosSalud=-1¢roNombre=&CenAm=-1&CenAi=-1&d=20-12-2023&idAgenda=undefined&fp=20-12-2023&rp=&ipac=0&idreserva=&buscar-nombre=&dispositivo=2&cal=1&linkPortal="},{name:"Covid-19",link:"https://www.clinicaalemana.cl/covid-19"},{name:"Influenza",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2023"},{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesoría pediátrica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}];class t5 extends f{constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.focused=!1,this.refresh=!1,this.link=""}changeHandler(C){const t=C.target.name;if(this[t]=C.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),t==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const e=k6.find(o=>o.name===this.tipoDeAtencion).items.map(o=>o.name);this.dataModalidad=[...e],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}t==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(C){const t=this.shadowRoot.getElementById("tipoDeAtencion");t==null||t.setAttribute("active",C)}handleFocusModalidad(C){const t=this.shadowRoot.getElementById("modalidad");t==null||t.setAttribute("active",C)}handleErrorTipoDeAtencion(C){const t=this.shadowRoot.getElementById("tipoDeAtencion");C?t==null||t.setAttribute("isSelectError",!0):t==null||t.removeAttribute("isSelectError")}handleErrorModalidad(C){const t=this.shadowRoot.getElementById("modalidad");C?t==null||t.setAttribute("isSelectError",!0):t==null||t.removeAttribute("isSelectError")}handleLink(){let C="";this.tipoDeAtencion!==""&&this.modalidad!==""&&(C=k6.find(e=>e.name===this.tipoDeAtencion).items.find(e=>e.name===this.modalidad).link),this.link=C;const t=this.shadowRoot.querySelector(".btn-action");this.link!==""?t.setAttribute("href",this.link):t.removeAttribute("href")}submit(){this.link!==""?this.handleMark({category:"reservar_hora"}):this.tipoDeAtencion===""?(this.handleErrorTipoDeAtencion(!0),this.handleErrorModalidad(!0)):(this.handleFocusModalidad(!1),this.handleErrorModalidad(!0))}handleMark({category:C,action:t,label:e}){try{window.dataLayer.push({event:"evento-interactivo","evento-interactivo-categoria":C,"evento-interactivo-accion":t??this.tipoDeAtencion,"evento-interactivo-etiqueta":e??this.modalidad})}catch{console.log("event push failed")}}eventHandler(){this.removeAttribute("hidden");let C=this.shadowRoot.getElementById("backdrop");C.style.display="flex",this.hidden=!1,this.focused=!0,this.requestUpdate()}firstUpdated(){if(this.handleParameter(),this.onlyView||document.addEventListener("openBookingBox",()=>{this.eventHandler()}),window.innerWidth>1023){const C=this.shadowRoot.querySelector(".booking-box");let t=this.shadowRoot.getElementById("backdrop");C.addEventListener("focusin",()=>{this.focused=!0,t.style.display="flex",this.requestUpdate()})}}handleParameter(){new URLSearchParams(window.location.search).get("rsv")==="true"&&this.eventHandler()}closeHandler(){let C=this.shadowRoot.getElementById("backdrop");C.style.display="none",this.hidden=!1,this.focused=!1,this.requestUpdate()}handleOverrideTime(){this.handleMark({category:"anular_hora"})}render(){const C=a2({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),t=a2({backdrop:!0,hidden:this.hidden});return M`
|
|
7070
7070
|
<div class="${t}" id="backdrop" @click="${this.closeHandler}"></div>
|
|
7071
7071
|
<div class="booking-box-main-cont" id="booking-box-main-cont">
|
|
7072
7072
|
<div class="${C}" id="booking-box" tabindex="0">
|
|
@@ -7125,7 +7125,7 @@
|
|
|
7125
7125
|
</div>
|
|
7126
7126
|
</div>
|
|
7127
7127
|
</div>
|
|
7128
|
-
</div>`}}g(
|
|
7128
|
+
</div>`}}g(t5,"styles",In),g(t5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(t5,"properties",{theme:{type:String},hidden:{type:Boolean},title:{type:String},tipoDeAtencion:{type:String},modalidad:{type:String},dataTipoDeAtencion:{type:Array},dataModalidad:{type:Array},focused:{type:Boolean},home:{type:Boolean},onlyView:{type:Boolean}}),customElements.get("cas-booking-box")||customElements.define("cas-booking-box",t5);const _7=H`
|
|
7129
7129
|
@import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap);
|
|
7130
7130
|
* {
|
|
7131
7131
|
box-sizing: border-box;
|
|
@@ -7295,9 +7295,9 @@
|
|
|
7295
7295
|
* @license
|
|
7296
7296
|
* Copyright 2017 Google LLC
|
|
7297
7297
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7298
|
-
*/var $6;const
|
|
7298
|
+
*/var $6;const e5=window,c2=e5.trustedTypes,b7=c2?c2.createPolicy("lit-html",{createHTML:i=>i}):void 0,A6="$lit$",p1=`lit$${(Math.random()+"").slice(9)}$`,y7="?"+p1,Fn=`<${y7}>`,$1=document,i5=()=>$1.createComment(""),t3=i=>i===null||typeof i!="object"&&typeof i!="function",z7=Array.isArray,On=i=>z7(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",B6=`[
|
|
7299
7299
|
\f\r]`,e3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k7=/-->/g,$7=/>/g,A1=RegExp(`>|${B6}(?:([^\\s"'>=/]+)(${B6}*=${B6}*(?:[^
|
|
7300
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),A7=/'/g,B7=/"/g,E7=/^(?:script|style|textarea|title)$/i,i3=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),S7=new WeakMap,B1=$1.createTreeWalker($1,129,null,!1);function T7(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return b7!==void 0?b7.createHTML(C):C}const Nn=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=e3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===e3?d[1]==="!--"?l=k7:d[1]!==void 0?l=$7:d[2]!==void 0?(E7.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=A1):d[3]!==void 0&&(l=A1):l===A1?d[0]===">"?(l=o??e3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?A1:d[3]==='"'?B7:A7):l===B7||l===A7?l=A1:l===k7||l===$7?l=e3:(l=A1,o=void 0);const v=l===A1&&i[h+1].startsWith("/>")?" ":"";a+=l===e3?n+Fn:c>=0?(e.push(r),n.slice(0,c)+A6+n.slice(c)+p1+v):n+p1+(c===-2?(e.push(void 0),h):v)}return[T7(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let E6=class NC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=Nn(C,t);if(this.el=NC.createElement(r,e),B1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=B1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(A6)||p.startsWith(p1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+A6).split(p1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?Rn:w[1]==="?"?Un:w[1]==="@"?qn:
|
|
7300
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),A7=/'/g,B7=/"/g,E7=/^(?:script|style|textarea|title)$/i,i3=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),S7=new WeakMap,B1=$1.createTreeWalker($1,129,null,!1);function T7(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return b7!==void 0?b7.createHTML(C):C}const Nn=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=e3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===e3?d[1]==="!--"?l=k7:d[1]!==void 0?l=$7:d[2]!==void 0?(E7.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=A1):d[3]!==void 0&&(l=A1):l===A1?d[0]===">"?(l=o??e3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?A1:d[3]==='"'?B7:A7):l===B7||l===A7?l=A1:l===k7||l===$7?l=e3:(l=A1,o=void 0);const v=l===A1&&i[h+1].startsWith("/>")?" ":"";a+=l===e3?n+Fn:c>=0?(e.push(r),n.slice(0,c)+A6+n.slice(c)+p1+v):n+p1+(c===-2?(e.push(void 0),h):v)}return[T7(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let E6=class NC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=Nn(C,t);if(this.el=NC.createElement(r,e),B1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=B1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(A6)||p.startsWith(p1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+A6).split(p1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?Rn:w[1]==="?"?Un:w[1]==="@"?qn:o5})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(E7.test(o.tagName)){const c=o.textContent.split(p1),p=c.length-1;if(p>0){o.textContent=c2?c2.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],i5()),B1.nextNode(),n.push({type:2,index:++a});o.append(c[p],i5())}}}else if(o.nodeType===8)if(o.data===y7)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(p1,c+1))!==-1;)n.push({type:7,index:a}),c+=p1.length-1}a++}}static createElement(C,t){const e=$1.createElement("template");return e.innerHTML=C,e}};function p2(i,C,t=i,e){var o,a,l,h;if(C===i3)return C;let n=e!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[e]:t._$Cl;const r=t3(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Co)!==null&&l!==void 0?l:h._$Co=[])[e]=n:t._$Cl=n),n!==void 0&&(C=p2(i,n._$AS(i,C.values),n,e)),C}let Dn=class{constructor(C,t){this._$AV=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:$1).importNode(e,!0);B1.currentNode=a;let l=B1.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new I7(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new Wn(l,this,C)),this._$AV.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=B1.nextNode(),h++)}return B1.currentNode=$1,a}v(C){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}},I7=class DC{constructor(C,t,e,o){var a;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(C==null?void 0:C.nodeType)===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=p2(this,C,t),t3(C)?C===N||C==null||C===""?(this._$AH!==N&&this._$AR(),this._$AH=N):C!==this._$AH&&C!==i3&&this._(C):C._$litType$!==void 0?this.g(C):C.nodeType!==void 0?this.$(C):On(C)?this.T(C):this._(C)}k(C){return this._$AA.parentNode.insertBefore(C,this._$AB)}$(C){this._$AH!==C&&(this._$AR(),this._$AH=this.k(C))}_(C){this._$AH!==N&&t3(this._$AH)?this._$AA.nextSibling.data=C:this.$($1.createTextNode(C)),this._$AH=C}g(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=E6.createElement(T7(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.v(e);else{const l=new Dn(a,this),h=l.u(this.options);l.v(e),this.$(h),this._$AH=l}}_$AC(C){let t=S7.get(C.strings);return t===void 0&&S7.set(C.strings,t=new E6(C)),t}T(C){z7(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new DC(this.k(i5()),this.k(i5()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$Cp=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}},o5=class{constructor(C,t,e,o,a){this.type=1,this._$AH=N,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=p2(this,C,t,0),l=!t3(C)||C!==this._$AH&&C!==i3,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=p2(this,h[e+n],t,n),r===i3&&(r=this._$AH[n]),l||(l=!t3(r)||r!==this._$AH[n]),r===N?C=N:C!==N&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.j(C)}j(C){C===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}},Rn=class extends o5{constructor(){super(...arguments),this.type=3}j(C){this.element[this.name]=C===N?void 0:C}};const jn=c2?c2.emptyScript:"";let Un=class extends o5{constructor(){super(...arguments),this.type=4}j(C){C&&C!==N?this.element.setAttribute(this.name,jn):this.element.removeAttribute(this.name)}},qn=class extends o5{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=p2(this,C,t,0))!==null&&e!==void 0?e:N)===i3)return;const o=this._$AH,a=C===N&&o!==N||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==N&&(o===N||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}},Wn=class{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){p2(this,C)}};const P7=e5.litHtmlPolyfillSupport;P7==null||P7(E6,I7),(($6=e5.litHtmlVersions)!==null&&$6!==void 0?$6:e5.litHtmlVersions=[]).push("2.8.0");/**
|
|
7301
7301
|
* @license
|
|
7302
7302
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
7303
7303
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -7354,7 +7354,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7354
7354
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7355
7355
|
Code distributed by Google as part of the polymer project is also
|
|
7356
7356
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7357
|
-
*/let ih=/(url\()([^)]*)(\))/g,oh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,
|
|
7357
|
+
*/let ih=/(url\()([^)]*)(\))/g,oh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,s5,G;function s3(i,C){if(i&&oh.test(i)||i==="//")return i;if(s5===void 0){s5=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",s5=t.href==="http://a/c%20d"}catch{}}if(C||(C=document.baseURI||window.location.href),s5)try{return new URL(i,C).href}catch{return i}return G||(G=document.implementation.createHTMLDocument("temp"),G.base=G.createElement("base"),G.head.appendChild(G.base),G.anchor=G.createElement("a"),G.body.appendChild(G.anchor)),G.base.href=C,G.anchor.href=i,G.anchor.href||i}function T6(i,C){return i.replace(ih,function(t,e,o,a){return e+"'"+s3(o.replace(/["']/g,""),C)+"'"+a})}function I6(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
|
|
7358
7358
|
@license
|
|
7359
7359
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7360
7360
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7362,7 +7362,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7362
7362
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7363
7363
|
Code distributed by Google as part of the polymer project is also
|
|
7364
7364
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7365
|
-
*/const sh=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const ah=sh&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const C=document.createElement("div");return C.attachShadow({mode:"open"}),C.shadowRoot.adoptedStyleSheets=[i],C.shadowRoot.adoptedStyleSheets[0]===i}catch{return!1}})();let lh=window.Polymer&&window.Polymer.rootPath||I6(document.baseURI||window.location.href),
|
|
7365
|
+
*/const sh=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const ah=sh&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const C=document.createElement("div");return C.attachShadow({mode:"open"}),C.shadowRoot.adoptedStyleSheets=[i],C.shadowRoot.adoptedStyleSheets[0]===i}catch{return!1}})();let lh=window.Polymer&&window.Polymer.rootPath||I6(document.baseURI||window.location.href),a5=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let P6=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,nh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,hh=window.Polymer&&window.Polymer.legacyOptimizations||!1,rh=window.Polymer&&window.Polymer.legacyWarnings||!1,dh=window.Polymer&&window.Polymer.syncInitialRender||!1,F6=window.Polymer&&window.Polymer.legacyUndefined||!1,ch=window.Polymer&&window.Polymer.orderedComputed||!1,D7=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ph=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let vh=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
7366
7366
|
@license
|
|
7367
7367
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7368
7368
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7402,7 +7402,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7402
7402
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7403
7403
|
Code distributed by Google as part of the polymer project is also
|
|
7404
7404
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7405
|
-
*/function N6(i){return i.indexOf(".")>=0}function S1(i){let C=i.indexOf(".");return C===-1?i:i.slice(0,C)}function mh(i,C){return i.indexOf(C+".")===0}function
|
|
7405
|
+
*/function N6(i){return i.indexOf(".")>=0}function S1(i){let C=i.indexOf(".");return C===-1?i:i.slice(0,C)}function mh(i,C){return i.indexOf(C+".")===0}function l5(i,C){return C.indexOf(i+".")===0}function n5(i,C,t){return C+t.slice(i.length)}function l3(i){if(Array.isArray(i)){let C=[];for(let t=0;t<i.length;t++){let e=i[t].toString().split(".");for(let o=0;o<e.length;o++)C.push(e[o])}return C.join(".")}else return i}function J7(i){return Array.isArray(i)?l3(i).split("."):i.toString().split(".")}function W(i,C,t){let e=i,o=J7(C);for(let a=0;a<o.length;a++){if(!e)return;let l=o[a];e=e[l]}return t&&(t.path=o.join(".")),e}function Q7(i,C,t){let e=i,o=J7(C),a=o[o.length-1];if(o.length>1){for(let l=0;l<o.length-1;l++){let h=o[l];if(e=e[h],!e)return}e[a]=t}else e[C]=t;return o.join(".")}/**
|
|
7406
7406
|
@license
|
|
7407
7407
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7408
7408
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7410,7 +7410,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7410
7410
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7411
7411
|
Code distributed by Google as part of the polymer project is also
|
|
7412
7412
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7413
|
-
*/const
|
|
7413
|
+
*/const h5={},Vh=/-[a-z]/g,Zh=/([A-Z])/g;function X7(i){return h5[i]||(h5[i]=i.indexOf("-")<0?i:i.replace(Vh,C=>C[1].toUpperCase()))}function r5(i){return h5[i]||(h5[i]=i.replace(Zh,"-$1").toLowerCase())}/**
|
|
7414
7414
|
@license
|
|
7415
7415
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7416
7416
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7434,7 +7434,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7434
7434
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7435
7435
|
Code distributed by Google as part of the polymer project is also
|
|
7436
7436
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7437
|
-
*/const i9={};let
|
|
7437
|
+
*/const i9={};let d5=HTMLElement.prototype;for(;d5;){let i=Object.getOwnPropertyNames(d5);for(let C=0;C<i.length;C++)i9[i[C]]=!0;d5=Object.getPrototypeOf(d5)}const kh=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function $h(i,C){if(!i9[C]){let t=i[C];t!==void 0&&(i.__data?i._setPendingProperty(C,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[C]=t))}}const Ah=P(i=>{const C=e9(i);class t extends C{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let a=0;a<o.length;a++)this.prototype._createPropertyAccessor(X7(o[a]))}static attributeNameForProperty(o){return r5(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let a in o)this._setProperty(a,o[a])}_ensureAttribute(o,a){const l=this;l.hasAttribute(o)||this._valueToNodeAttribute(l,a,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(kh(o))return o;try{return JSON.stringify(o)}catch{return""}}default:return super._serializeValue(o)}}_deserializeValue(o,a){let l;switch(a){case Object:try{l=JSON.parse(o)}catch{l=o}break;case Array:try{l=JSON.parse(o)}catch{l=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:l=isNaN(o)?String(o):Number(o),l=new Date(l);break;default:l=super._deserializeValue(o,a);break}return l}_definePropertyAccessor(o,a){$h(this,o),super._definePropertyAccessor(o,a)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
|
|
7438
7438
|
@license
|
|
7439
7439
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7440
7440
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7452,7 +7452,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7452
7452
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
7453
7453
|
* Google as part of the polymer project is also subject to an additional IP
|
|
7454
7454
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7455
|
-
*/let n3=0;const h3=[],y={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},l9="__computeInfo",Rh=/[A-Z]/;function R6(i,C,t){let e=i[C];if(!e)e=i[C]={};else if(!i.hasOwnProperty(C)&&(e=i[C]=Object.create(i[C]),t))for(let o in e){let a=e[o],l=e[o]=Array(a.length);for(let h=0;h<a.length;h++)l[h]=a[h]}return e}function r3(i,C,t,e,o,a){if(C){let l=!1;const h=n3++;for(let n in t){let r=o?S1(n):n,d=C[r];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==h)&&(!o||j6(n,v.trigger))&&(v.info&&(v.info.lastRun=h),v.fn(i,n,t,e,v.info,o,a),l=!0)}return l}return!1}function jh(i,C,t,e,o,a,l,h){let n=!1,r=l?S1(e):e,d=C[r];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==t)&&(!l||j6(e,v.trigger))&&(v.info&&(v.info.lastRun=t),v.fn(i,e,o,a,v.info,l,h),n=!0);return n}function j6(i,C){if(C){let t=C.name;return t==i||!!(C.structured&&mh(t,i))||!!(C.wildcard&&a5(t,i))}else return!0}function n9(i,C,t,e,o){let a=typeof o.method=="string"?i[o.method]:o.method,l=o.property;a?a.call(i,i.__data[l],e[l]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Uh(i,C,t,e,o){let a=i[y.NOTIFY],l,h=n3++;for(let r in C)C[r]&&(a&&jh(i,a,h,r,t,e,o)||o&&qh(i,r,t))&&(l=!0);let n;l&&(n=i.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}function qh(i,C,t){let e=S1(C);if(e!==C){let o=h5(e)+"-changed";return h9(i,o,t[C],C),!0}return!1}function h9(i,C,t,e){let o={value:t,queueProperty:!0};e&&(o.path=e),E1(i).dispatchEvent(new CustomEvent(C,{detail:o}))}function Wh(i,C,t,e,o,a){let h=(a?S1(C):C)!=C?C:null,n=h?W(i,h):i.__data[C];h&&n===void 0&&(n=t[C]),h9(i,o.eventName,n,h)}function Yh(i,C,t,e,o){let a,l=i.detail,h=l&&l.path;h?(e=l5(t,e,h),a=l&&l.value):a=i.currentTarget[t],a=o?!a:a,(!C[y.READ_ONLY]||!C[y.READ_ONLY][e])&&C._setPendingPropertyOrPath(e,a,!0,!!h)&&(!l||!l.queueProperty)&&C._invalidateProperties()}function Gh(i,C,t,e,o){let a=i.__data[C];s5&&(a=s5(a,o.attrName,"attribute",i)),i._propertyToAttribute(C,o.attrName,a)}function Kh(i,C,t,e){let o=i[y.COMPUTE];if(o)if(ch){n3++;const a=Qh(i),l=[];for(let n in C)r9(n,o,l,a,e);let h;for(;h=l.shift();)d9(i,"",C,t,h)&&r9(h.methodInfo,o,l,a,e);Object.assign(t,i.__dataOld),Object.assign(C,i.__dataPending),i.__dataPending=null}else{let a=C;for(;r3(i,o,a,t,e);)Object.assign(t,i.__dataOld),Object.assign(C,i.__dataPending),a=i.__dataPending,i.__dataPending=null}}const Jh=(i,C,t)=>{let e=0,o=C.length-1,a=-1;for(;e<=o;){const l=e+o>>1,h=t.get(C[l].methodInfo)-t.get(i.methodInfo);if(h<0)e=l+1;else if(h>0)o=l-1;else{a=l;break}}a<0&&(a=o+1),C.splice(a,0,i)},r9=(i,C,t,e,o)=>{const a=o?S1(i):i,l=C[a];if(l)for(let h=0;h<l.length;h++){const n=l[h];n.info.lastRun!==n3&&(!o||j6(i,n.trigger))&&(n.info.lastRun=n3,Jh(n.info,t,e))}};function Qh(i){let C=i.constructor.__orderedComputedDeps;if(!C){C=new Map;const t=i[y.COMPUTE];let{counts:e,ready:o,total:a}=Xh(i),l;for(;l=o.shift();){C.set(l,C.size);const h=t[l];h&&h.forEach(n=>{const r=n.info.methodInfo;--a,--e[r]===0&&o.push(r)})}a!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=C}return C}function Xh(i){const C=i[l9],t={},e=i[y.COMPUTE],o=[];let a=0;for(let l in C){const h=C[l];a+=t[l]=h.args.filter(n=>!n.literal).length+(h.dynamicFn?1:0)}for(let l in e)C[l]||o.push(l);return{counts:t,ready:o,total:a}}function d9(i,C,t,e,o){let a=q6(i,C,t,e,o);if(a===h3)return!1;let l=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[l]?i._setPendingProperty(l,a,!0):(i[l]=a,!1)}function Cr(i,C,t){let e=i.__dataLinkedPaths;if(e){let o;for(let a in e){let l=e[a];a5(a,C)?(o=l5(a,l,C),i._setPendingPropertyOrPath(o,t,!0,!0)):a5(l,C)&&(o=l5(l,a,C),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function U6(i,C,t,e,o,a,l){t.bindings=t.bindings||[];let h={kind:e,target:o,parts:a,literal:l,isCompound:a.length!==1};if(t.bindings.push(h),sr(h)){let{event:r,negate:d}=h.parts[0];h.listenerEvent=r||h5(o)+"-changed",h.listenerNegate=d}let n=C.nodeInfoList.length;for(let r=0;r<h.parts.length;r++){let d=h.parts[r];d.compoundIndex=r,tr(i,C,h,d,n)}}function tr(i,C,t,e,o){if(!e.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=e.dependencies,l={index:o,binding:t,part:e,evaluator:i};for(let h=0;h<a.length;h++){let n=a[h];typeof n=="string"&&(n=M9(n),n.wildcard=!0),i._addTemplatePropertyEffect(C,n.rootProperty,{fn:er,info:l,trigger:n})}}}function er(i,C,t,e,o,a,l){let h=l[o.index],n=o.binding,r=o.part;if(a&&r.source&&C.length>r.source.length&&n.kind=="property"&&!n.isCompound&&h.__isPropertyEffectsClient&&h.__dataHasAccessor&&h.__dataHasAccessor[n.target]){let d=t[C];C=l5(r.source,n.target,C),h._setPendingPropertyOrPath(C,d,!1,!0)&&i._enqueueClient(h)}else{let d=o.evaluator._evaluateBinding(i,r,C,t,e,a);d!==h3&&ir(i,h,n,r,d)}}function ir(i,C,t,e,o){if(o=or(C,o,t,e),s5&&(o=s5(o,t.target,t.kind,C)),t.kind=="attribute")i._valueToNodeAttribute(C,o,t.target);else{let a=t.target;C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[a]?(!C[y.READ_ONLY]||!C[y.READ_ONLY][a])&&C._setPendingProperty(a,o)&&i._enqueueClient(C):i._setUnmanagedPropertyToNode(C,a,o)}}function or(i,C,t,e){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[e.compoundIndex]=C,C=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(C=C??""),C}function sr(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function ar(i,C){let{nodeList:t,nodeInfoList:e}=C;if(e.length)for(let o=0;o<e.length;o++){let a=e[o],l=t[o],h=a.bindings;if(h)for(let n=0;n<h.length;n++){let r=h[n];lr(l,r),nr(l,i,r)}l.__dataHost=i}}function lr(i,C){if(C.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),e=C.parts,o=new Array(e.length);for(let l=0;l<e.length;l++)o[l]=e[l].literal;let a=C.target;t[a]=o,C.literal&&C.kind=="property"&&(a==="className"&&(i=E1(i)),i[a]=C.literal)}}function nr(i,C,t){if(t.listenerEvent){let e=t.parts[0];i.addEventListener(t.listenerEvent,function(o){Yh(o,C,t.target,e.source,e.negate)})}}function c9(i,C,t,e,o,a){a=C.static||a&&(typeof a!="object"||a[C.methodName]);let l={methodName:C.methodName,args:C.args,methodInfo:o,dynamicFn:a};for(let h=0,n;h<C.args.length&&(n=C.args[h]);h++)n.literal||i._addPropertyEffect(n.rootProperty,t,{fn:e,info:l,trigger:n});return a&&i._addPropertyEffect(C.methodName,t,{fn:e,info:l}),l}function q6(i,C,t,e,o){let a=i._methodHost||i,l=a[o.methodName];if(l){let h=i._marshalArgs(o.args,C,t);return h===h3?h3:l.apply(a,h)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const hr=[],p9="(?:[a-zA-Z_$][\\w.:$\\-*]*)",rr="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",dr="(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")",v9="(?:("+p9+"|"+rr+"|"+dr+")\\s*)",cr="(?:\\(\\s*(?:"+("(?:"+v9+"(?:,\\s*"+v9+")*)")+"?)\\)\\s*)",pr="("+p9+"\\s*"+cr+"?)",vr="(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+pr+"(?:]]|}})",L9=new RegExp(vr,"g");function g9(i){let C="";for(let t=0;t<i.length;t++){let e=i[t].literal;C+=e||""}return C}function W6(i){let C=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(C){let e={methodName:C[1],static:!0,args:hr};if(C[2].trim()){let o=C[2].replace(/\\,/g,",").split(",");return Lr(o,e)}else return e}return null}function Lr(i,C){return C.args=i.map(function(t){let e=M9(t);return e.literal||(C.static=!1),e},this),C}function M9(i){let C=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:C,value:"",literal:!1},e=C[0];switch(e==="-"&&(e=C[1]),e>="0"&&e<="9"&&(e="#"),e){case"'":case'"':t.value=C.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(C),t.literal=!0;break}return t.literal||(t.rootProperty=S1(C),t.structured=N6(C),t.structured&&(t.wildcard=C.slice(-2)==".*",t.wildcard&&(t.name=C.slice(0,-2)))),t}function u9(i,C,t){let e=W(i,t);return e===void 0&&(e=C[t]),e}function w9(i,C,t,e){const o={indexSplices:e};F6&&!i._overrideLegacyUndefined&&(C.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",C.length),F6&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function d3(i,C,t,e,o,a){w9(i,C,t,[{index:e,addedCount:o,removed:a,object:C,type:"splice"}])}function gr(i){return i[0].toUpperCase()+i.substring(1)}const Mr=P(i=>{const C=Dh(Ah(i));class t extends C{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 y}_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(c3.length){let o=c3[c3.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[y.READ_ONLY];for(let l in o)(!a||!a[l])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[l]=this.__dataPending[l]=o[l])}_addPropertyEffect(o,a,l){this._createPropertyAccessor(o,a==y.READ_ONLY);let h=R6(this,a,!0)[o];h||(h=this[a][o]=[]),h.push(l)}_removePropertyEffect(o,a,l){let h=R6(this,a,!0)[o],n=h.indexOf(l);n>=0&&h.splice(n,1)}_hasPropertyEffect(o,a){let l=this[a];return!!(l&&l[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,y.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,y.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,y.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,y.COMPUTE)}_setPendingPropertyOrPath(o,a,l,h){if(h||S1(Array.isArray(o)?o[0]:o)!==o){if(!h){let n=W(this,o);if(o=Q7(this,o,a),!o||!super._shouldPropertyChange(o,a,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,l))return Cr(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,l);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,l){(l!==o[a]||typeof l=="object")&&(a==="className"&&(o=E1(o)),o[a]=l)}_setPendingProperty(o,a,l){let h=this.__dataHasPaths&&N6(o),n=h?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,n[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),h?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(h||this[y.NOTIFY]&&this[y.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=l),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let l=o[a];l.__dataEnabled?l.__dataPending&&l._flushProperties():l._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let l in o)(a||!this[y.READ_ONLY]||!this[y.READ_ONLY][l])&&this._setPendingPropertyOrPath(l,o[l],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,l){let h=this.__dataHasPaths;this.__dataHasPaths=!1;let n;Kh(this,a,l,h),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,l,h),this._flushClients(),r3(this,this[y.REFLECT],a,l,h),r3(this,this[y.OBSERVE],a,l,h),n&&Uh(this,n,a,l,h),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,l){this[y.PROPAGATE]&&r3(this,this[y.PROPAGATE],o,a,l),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,l)}_runEffectsForTemplate(o,a,l,h){const n=(r,d)=>{r3(this,o.propertyEffects,r,l,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,r,l,d)};o.runEffects?o.runEffects(n,a,h):n(a,h)}linkPaths(o,a){o=l3(o),a=l3(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=l3(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let l={path:""},h=W(this,o,l);w9(this,h,l.path,a)}get(o,a){return W(a||this,o)}set(o,a,l){l?Q7(l,o,a):(!this[y.READ_ONLY]||!this[y.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let l={path:""},h=W(this,o,l),n=h.length,r=h.push(...a);return a.length&&d3(this,h,l.path,n,a.length,[]),r}pop(o){let a={path:""},l=W(this,o,a),h=!!l.length,n=l.pop();return h&&d3(this,l,a.path,l.length,0,[n]),n}splice(o,a,l,...h){let n={path:""},r=W(this,o,n);a<0?a=r.length-Math.floor(-a):a&&(a=Math.floor(a));let d;return arguments.length===2?d=r.splice(a):d=r.splice(a,l,...h),(h.length||d.length)&&d3(this,r,n.path,a,h.length,d),d}shift(o){let a={path:""},l=W(this,o,a),h=!!l.length,n=l.shift();return h&&d3(this,l,a.path,0,0,[n]),n}unshift(o,...a){let l={path:""},h=W(this,o,l),n=h.unshift(...a);return a.length&&d3(this,h,l.path,0,a.length,[]),n}notifyPath(o,a){let l;if(arguments.length==1){let h={path:""};a=W(this,o,h),l=h.path}else Array.isArray(o)?l=l3(o):l=o;this._setPendingPropertyOrPath(l,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,y.READ_ONLY),a&&(this["_set"+gr(o)]=function(l){this._setProperty(o,l)})}_createPropertyObserver(o,a,l){let h={property:o,method:a,dynamicFn:!!l};this._addPropertyEffect(o,y.OBSERVE,{fn:n9,info:h,trigger:{name:o}}),l&&this._addPropertyEffect(a,y.OBSERVE,{fn:n9,info:h,trigger:{name:a}})}_createMethodObserver(o,a){let l=W6(o);if(!l)throw new Error("Malformed observer expression '"+o+"'");c9(this,l,y.OBSERVE,q6,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,y.NOTIFY,{fn:Wh,info:{eventName:h5(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,y.REFLECT,{fn:Gh,info:{attrName:a}})}_createComputedProperty(o,a,l){let h=W6(a);if(!h)throw new Error("Malformed computed expression '"+a+"'");const n=c9(this,h,y.COMPUTE,d9,o,l);R6(this,l9)[o]=n}_marshalArgs(o,a,l){const h=this.__data,n=[];for(let r=0,d=o.length;r<d;r++){let{name:c,structured:p,wildcard:v,value:u,literal:w}=o[r];if(!w)if(v){const m=a5(c,a),z=u9(h,l,m?a:c);u={path:m?a:c,value:z,base:m?W(h,c):z}}else u=p?u9(h,l,c):h[c];if(F6&&!this._overrideLegacyUndefined&&u===void 0&&o.length>1)return h3;n[r]=u}return n}static addPropertyEffect(o,a,l){this.prototype._addPropertyEffect(o,a,l)}static createPropertyObserver(o,a,l){this.prototype._createPropertyObserver(o,a,l)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,l){this.prototype._createComputedProperty(o,a,l)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let l=this.constructor._parseTemplate(o),h=this.__preBoundTemplateInfo==l;if(!h)for(let n in l.propertyEffects)this._createPropertyAccessor(n);if(a)if(l=Object.create(l),l.wasPreBound=h,!this.__templateInfo)this.__templateInfo=l;else{const n=o._parentTemplateInfo||this.__templateInfo,r=n.lastChild;l.parent=n,n.lastChild=l,l.previousSibling=r,r?r.nextSibling=l:n.firstChild=l}else this.__preBoundTemplateInfo=l;return l}static _addTemplatePropertyEffect(o,a,l){let h=o.hostProps=o.hostProps||{};h[a]=!0;let n=o.propertyEffects=o.propertyEffects||{};(n[a]=n[a]||[]).push(l)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),c3.push(this);let l=super._stampTemplate(o,a);if(c3.pop(),a.nodeList=l.nodeList,!a.wasPreBound){let h=a.childNodes=[];for(let n=l.firstChild;n;n=n.nextSibling)h.push(n)}return l.templateInfo=a,ar(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),l}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:l,nextSibling:h,parent:n}=a;l?l.nextSibling=h:n&&(n.firstChild=h),h?h.previousSibling=l:n&&(n.lastChild=l),a.nextSibling=a.previousSibling=null;let r=a.childNodes;for(let d=0;d<r.length;d++){let c=r[d];E1(E1(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,a,l){let h=C._parseTemplateNode.call(this,o,a,l);if(o.nodeType===Node.TEXT_NODE){let n=this._parseBindings(o.textContent,a);n&&(o.textContent=g9(n)||" ",U6(this,a,l,"text","textContent",n),h=!0)}return h}static _parseTemplateNodeAttribute(o,a,l,h,n){let r=this._parseBindings(n,a);if(r){let d=h,c="property";Rh.test(h)?c="attribute":h[h.length-1]=="$"&&(h=h.slice(0,-1),c="attribute");let p=g9(r);return p&&c=="attribute"&&(h=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(h)),o.setAttribute(h,p)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(h,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(h=X7(h)),U6(this,a,l,c,h,r,p),!0}else return C._parseTemplateNodeAttribute.call(this,o,a,l,h,n)}static _parseTemplateNestedTemplate(o,a,l){let h=C._parseTemplateNestedTemplate.call(this,o,a,l);const n=o.parentNode,r=l.templateInfo,d=n.localName==="dom-if",c=n.localName==="dom-repeat";D7&&(d||c)&&(n.removeChild(o),l=l.parentInfo,l.templateInfo=r,l.noted=!0,h=!1);let p=r.hostProps;if(ph&&d)p&&(a.hostProps=Object.assign(a.hostProps||{},p),D7||(l.parentInfo.noted=!0));else{let v="{";for(let u in p){let w=[{mode:v,source:u,dependencies:[u],hostProp:!0}];U6(this,a,l,"property","_host_"+u,w)}}return h}static _parseBindings(o,a){let l=[],h=0,n;for(;(n=L9.exec(o))!==null;){n.index>h&&l.push({literal:o.slice(h,n.index)});let r=n[1][0],d=!!n[2],c=n[3].trim(),p=!1,v="",u=-1;r=="{"&&(u=c.indexOf("::"))>0&&(v=c.substring(u+2),c=c.substring(0,u),p=!0);let w=W6(c),m=[];if(w){let{args:z,methodName:$}=w;for(let k=0;k<z.length;k++){let F=z[k];F.literal||m.push(F)}let _=a.dynamicFns;(_&&_[$]||w.static)&&(m.push($),w.dynamicFn=!0)}else m.push(c);l.push({source:c,mode:r,negate:d,customEvent:p,signature:w,dependencies:m,event:v}),h=L9.lastIndex}if(h&&h<o.length){let r=o.substring(h);r&&l.push({literal:r})}return l.length?l:null}static _evaluateBinding(o,a,l,h,n,r){let d;return a.signature?d=q6(o,l,h,n,a.signature):l!=a.source?d=W(o,a.source):r&&N6(l)?d=W(o,l):d=o.__data[l],a.negate&&(d=!d),d}}return t}),c3=[];/**
|
|
7455
|
+
*/let n3=0;const h3=[],y={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},l9="__computeInfo",Rh=/[A-Z]/;function R6(i,C,t){let e=i[C];if(!e)e=i[C]={};else if(!i.hasOwnProperty(C)&&(e=i[C]=Object.create(i[C]),t))for(let o in e){let a=e[o],l=e[o]=Array(a.length);for(let h=0;h<a.length;h++)l[h]=a[h]}return e}function r3(i,C,t,e,o,a){if(C){let l=!1;const h=n3++;for(let n in t){let r=o?S1(n):n,d=C[r];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==h)&&(!o||j6(n,v.trigger))&&(v.info&&(v.info.lastRun=h),v.fn(i,n,t,e,v.info,o,a),l=!0)}return l}return!1}function jh(i,C,t,e,o,a,l,h){let n=!1,r=l?S1(e):e,d=C[r];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==t)&&(!l||j6(e,v.trigger))&&(v.info&&(v.info.lastRun=t),v.fn(i,e,o,a,v.info,l,h),n=!0);return n}function j6(i,C){if(C){let t=C.name;return t==i||!!(C.structured&&mh(t,i))||!!(C.wildcard&&l5(t,i))}else return!0}function n9(i,C,t,e,o){let a=typeof o.method=="string"?i[o.method]:o.method,l=o.property;a?a.call(i,i.__data[l],e[l]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Uh(i,C,t,e,o){let a=i[y.NOTIFY],l,h=n3++;for(let r in C)C[r]&&(a&&jh(i,a,h,r,t,e,o)||o&&qh(i,r,t))&&(l=!0);let n;l&&(n=i.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}function qh(i,C,t){let e=S1(C);if(e!==C){let o=r5(e)+"-changed";return h9(i,o,t[C],C),!0}return!1}function h9(i,C,t,e){let o={value:t,queueProperty:!0};e&&(o.path=e),E1(i).dispatchEvent(new CustomEvent(C,{detail:o}))}function Wh(i,C,t,e,o,a){let h=(a?S1(C):C)!=C?C:null,n=h?W(i,h):i.__data[C];h&&n===void 0&&(n=t[C]),h9(i,o.eventName,n,h)}function Yh(i,C,t,e,o){let a,l=i.detail,h=l&&l.path;h?(e=n5(t,e,h),a=l&&l.value):a=i.currentTarget[t],a=o?!a:a,(!C[y.READ_ONLY]||!C[y.READ_ONLY][e])&&C._setPendingPropertyOrPath(e,a,!0,!!h)&&(!l||!l.queueProperty)&&C._invalidateProperties()}function Gh(i,C,t,e,o){let a=i.__data[C];a5&&(a=a5(a,o.attrName,"attribute",i)),i._propertyToAttribute(C,o.attrName,a)}function Kh(i,C,t,e){let o=i[y.COMPUTE];if(o)if(ch){n3++;const a=Qh(i),l=[];for(let n in C)r9(n,o,l,a,e);let h;for(;h=l.shift();)d9(i,"",C,t,h)&&r9(h.methodInfo,o,l,a,e);Object.assign(t,i.__dataOld),Object.assign(C,i.__dataPending),i.__dataPending=null}else{let a=C;for(;r3(i,o,a,t,e);)Object.assign(t,i.__dataOld),Object.assign(C,i.__dataPending),a=i.__dataPending,i.__dataPending=null}}const Jh=(i,C,t)=>{let e=0,o=C.length-1,a=-1;for(;e<=o;){const l=e+o>>1,h=t.get(C[l].methodInfo)-t.get(i.methodInfo);if(h<0)e=l+1;else if(h>0)o=l-1;else{a=l;break}}a<0&&(a=o+1),C.splice(a,0,i)},r9=(i,C,t,e,o)=>{const a=o?S1(i):i,l=C[a];if(l)for(let h=0;h<l.length;h++){const n=l[h];n.info.lastRun!==n3&&(!o||j6(i,n.trigger))&&(n.info.lastRun=n3,Jh(n.info,t,e))}};function Qh(i){let C=i.constructor.__orderedComputedDeps;if(!C){C=new Map;const t=i[y.COMPUTE];let{counts:e,ready:o,total:a}=Xh(i),l;for(;l=o.shift();){C.set(l,C.size);const h=t[l];h&&h.forEach(n=>{const r=n.info.methodInfo;--a,--e[r]===0&&o.push(r)})}a!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=C}return C}function Xh(i){const C=i[l9],t={},e=i[y.COMPUTE],o=[];let a=0;for(let l in C){const h=C[l];a+=t[l]=h.args.filter(n=>!n.literal).length+(h.dynamicFn?1:0)}for(let l in e)C[l]||o.push(l);return{counts:t,ready:o,total:a}}function d9(i,C,t,e,o){let a=q6(i,C,t,e,o);if(a===h3)return!1;let l=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[l]?i._setPendingProperty(l,a,!0):(i[l]=a,!1)}function Cr(i,C,t){let e=i.__dataLinkedPaths;if(e){let o;for(let a in e){let l=e[a];l5(a,C)?(o=n5(a,l,C),i._setPendingPropertyOrPath(o,t,!0,!0)):l5(l,C)&&(o=n5(l,a,C),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function U6(i,C,t,e,o,a,l){t.bindings=t.bindings||[];let h={kind:e,target:o,parts:a,literal:l,isCompound:a.length!==1};if(t.bindings.push(h),sr(h)){let{event:r,negate:d}=h.parts[0];h.listenerEvent=r||r5(o)+"-changed",h.listenerNegate=d}let n=C.nodeInfoList.length;for(let r=0;r<h.parts.length;r++){let d=h.parts[r];d.compoundIndex=r,tr(i,C,h,d,n)}}function tr(i,C,t,e,o){if(!e.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=e.dependencies,l={index:o,binding:t,part:e,evaluator:i};for(let h=0;h<a.length;h++){let n=a[h];typeof n=="string"&&(n=M9(n),n.wildcard=!0),i._addTemplatePropertyEffect(C,n.rootProperty,{fn:er,info:l,trigger:n})}}}function er(i,C,t,e,o,a,l){let h=l[o.index],n=o.binding,r=o.part;if(a&&r.source&&C.length>r.source.length&&n.kind=="property"&&!n.isCompound&&h.__isPropertyEffectsClient&&h.__dataHasAccessor&&h.__dataHasAccessor[n.target]){let d=t[C];C=n5(r.source,n.target,C),h._setPendingPropertyOrPath(C,d,!1,!0)&&i._enqueueClient(h)}else{let d=o.evaluator._evaluateBinding(i,r,C,t,e,a);d!==h3&&ir(i,h,n,r,d)}}function ir(i,C,t,e,o){if(o=or(C,o,t,e),a5&&(o=a5(o,t.target,t.kind,C)),t.kind=="attribute")i._valueToNodeAttribute(C,o,t.target);else{let a=t.target;C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[a]?(!C[y.READ_ONLY]||!C[y.READ_ONLY][a])&&C._setPendingProperty(a,o)&&i._enqueueClient(C):i._setUnmanagedPropertyToNode(C,a,o)}}function or(i,C,t,e){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[e.compoundIndex]=C,C=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(C=C??""),C}function sr(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function ar(i,C){let{nodeList:t,nodeInfoList:e}=C;if(e.length)for(let o=0;o<e.length;o++){let a=e[o],l=t[o],h=a.bindings;if(h)for(let n=0;n<h.length;n++){let r=h[n];lr(l,r),nr(l,i,r)}l.__dataHost=i}}function lr(i,C){if(C.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),e=C.parts,o=new Array(e.length);for(let l=0;l<e.length;l++)o[l]=e[l].literal;let a=C.target;t[a]=o,C.literal&&C.kind=="property"&&(a==="className"&&(i=E1(i)),i[a]=C.literal)}}function nr(i,C,t){if(t.listenerEvent){let e=t.parts[0];i.addEventListener(t.listenerEvent,function(o){Yh(o,C,t.target,e.source,e.negate)})}}function c9(i,C,t,e,o,a){a=C.static||a&&(typeof a!="object"||a[C.methodName]);let l={methodName:C.methodName,args:C.args,methodInfo:o,dynamicFn:a};for(let h=0,n;h<C.args.length&&(n=C.args[h]);h++)n.literal||i._addPropertyEffect(n.rootProperty,t,{fn:e,info:l,trigger:n});return a&&i._addPropertyEffect(C.methodName,t,{fn:e,info:l}),l}function q6(i,C,t,e,o){let a=i._methodHost||i,l=a[o.methodName];if(l){let h=i._marshalArgs(o.args,C,t);return h===h3?h3:l.apply(a,h)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const hr=[],p9="(?:[a-zA-Z_$][\\w.:$\\-*]*)",rr="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",dr="(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")",v9="(?:("+p9+"|"+rr+"|"+dr+")\\s*)",cr="(?:\\(\\s*(?:"+("(?:"+v9+"(?:,\\s*"+v9+")*)")+"?)\\)\\s*)",pr="("+p9+"\\s*"+cr+"?)",vr="(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+pr+"(?:]]|}})",L9=new RegExp(vr,"g");function g9(i){let C="";for(let t=0;t<i.length;t++){let e=i[t].literal;C+=e||""}return C}function W6(i){let C=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(C){let e={methodName:C[1],static:!0,args:hr};if(C[2].trim()){let o=C[2].replace(/\\,/g,",").split(",");return Lr(o,e)}else return e}return null}function Lr(i,C){return C.args=i.map(function(t){let e=M9(t);return e.literal||(C.static=!1),e},this),C}function M9(i){let C=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:C,value:"",literal:!1},e=C[0];switch(e==="-"&&(e=C[1]),e>="0"&&e<="9"&&(e="#"),e){case"'":case'"':t.value=C.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(C),t.literal=!0;break}return t.literal||(t.rootProperty=S1(C),t.structured=N6(C),t.structured&&(t.wildcard=C.slice(-2)==".*",t.wildcard&&(t.name=C.slice(0,-2)))),t}function u9(i,C,t){let e=W(i,t);return e===void 0&&(e=C[t]),e}function w9(i,C,t,e){const o={indexSplices:e};F6&&!i._overrideLegacyUndefined&&(C.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",C.length),F6&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function d3(i,C,t,e,o,a){w9(i,C,t,[{index:e,addedCount:o,removed:a,object:C,type:"splice"}])}function gr(i){return i[0].toUpperCase()+i.substring(1)}const Mr=P(i=>{const C=Dh(Ah(i));class t extends C{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 y}_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(c3.length){let o=c3[c3.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[y.READ_ONLY];for(let l in o)(!a||!a[l])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[l]=this.__dataPending[l]=o[l])}_addPropertyEffect(o,a,l){this._createPropertyAccessor(o,a==y.READ_ONLY);let h=R6(this,a,!0)[o];h||(h=this[a][o]=[]),h.push(l)}_removePropertyEffect(o,a,l){let h=R6(this,a,!0)[o],n=h.indexOf(l);n>=0&&h.splice(n,1)}_hasPropertyEffect(o,a){let l=this[a];return!!(l&&l[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,y.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,y.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,y.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,y.COMPUTE)}_setPendingPropertyOrPath(o,a,l,h){if(h||S1(Array.isArray(o)?o[0]:o)!==o){if(!h){let n=W(this,o);if(o=Q7(this,o,a),!o||!super._shouldPropertyChange(o,a,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,l))return Cr(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,l);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,l){(l!==o[a]||typeof l=="object")&&(a==="className"&&(o=E1(o)),o[a]=l)}_setPendingProperty(o,a,l){let h=this.__dataHasPaths&&N6(o),n=h?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,n[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),h?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(h||this[y.NOTIFY]&&this[y.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=l),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let l=o[a];l.__dataEnabled?l.__dataPending&&l._flushProperties():l._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let l in o)(a||!this[y.READ_ONLY]||!this[y.READ_ONLY][l])&&this._setPendingPropertyOrPath(l,o[l],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,l){let h=this.__dataHasPaths;this.__dataHasPaths=!1;let n;Kh(this,a,l,h),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,l,h),this._flushClients(),r3(this,this[y.REFLECT],a,l,h),r3(this,this[y.OBSERVE],a,l,h),n&&Uh(this,n,a,l,h),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,l){this[y.PROPAGATE]&&r3(this,this[y.PROPAGATE],o,a,l),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,l)}_runEffectsForTemplate(o,a,l,h){const n=(r,d)=>{r3(this,o.propertyEffects,r,l,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,r,l,d)};o.runEffects?o.runEffects(n,a,h):n(a,h)}linkPaths(o,a){o=l3(o),a=l3(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=l3(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let l={path:""},h=W(this,o,l);w9(this,h,l.path,a)}get(o,a){return W(a||this,o)}set(o,a,l){l?Q7(l,o,a):(!this[y.READ_ONLY]||!this[y.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let l={path:""},h=W(this,o,l),n=h.length,r=h.push(...a);return a.length&&d3(this,h,l.path,n,a.length,[]),r}pop(o){let a={path:""},l=W(this,o,a),h=!!l.length,n=l.pop();return h&&d3(this,l,a.path,l.length,0,[n]),n}splice(o,a,l,...h){let n={path:""},r=W(this,o,n);a<0?a=r.length-Math.floor(-a):a&&(a=Math.floor(a));let d;return arguments.length===2?d=r.splice(a):d=r.splice(a,l,...h),(h.length||d.length)&&d3(this,r,n.path,a,h.length,d),d}shift(o){let a={path:""},l=W(this,o,a),h=!!l.length,n=l.shift();return h&&d3(this,l,a.path,0,0,[n]),n}unshift(o,...a){let l={path:""},h=W(this,o,l),n=h.unshift(...a);return a.length&&d3(this,h,l.path,0,a.length,[]),n}notifyPath(o,a){let l;if(arguments.length==1){let h={path:""};a=W(this,o,h),l=h.path}else Array.isArray(o)?l=l3(o):l=o;this._setPendingPropertyOrPath(l,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,y.READ_ONLY),a&&(this["_set"+gr(o)]=function(l){this._setProperty(o,l)})}_createPropertyObserver(o,a,l){let h={property:o,method:a,dynamicFn:!!l};this._addPropertyEffect(o,y.OBSERVE,{fn:n9,info:h,trigger:{name:o}}),l&&this._addPropertyEffect(a,y.OBSERVE,{fn:n9,info:h,trigger:{name:a}})}_createMethodObserver(o,a){let l=W6(o);if(!l)throw new Error("Malformed observer expression '"+o+"'");c9(this,l,y.OBSERVE,q6,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,y.NOTIFY,{fn:Wh,info:{eventName:r5(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,y.REFLECT,{fn:Gh,info:{attrName:a}})}_createComputedProperty(o,a,l){let h=W6(a);if(!h)throw new Error("Malformed computed expression '"+a+"'");const n=c9(this,h,y.COMPUTE,d9,o,l);R6(this,l9)[o]=n}_marshalArgs(o,a,l){const h=this.__data,n=[];for(let r=0,d=o.length;r<d;r++){let{name:c,structured:p,wildcard:v,value:u,literal:w}=o[r];if(!w)if(v){const m=l5(c,a),z=u9(h,l,m?a:c);u={path:m?a:c,value:z,base:m?W(h,c):z}}else u=p?u9(h,l,c):h[c];if(F6&&!this._overrideLegacyUndefined&&u===void 0&&o.length>1)return h3;n[r]=u}return n}static addPropertyEffect(o,a,l){this.prototype._addPropertyEffect(o,a,l)}static createPropertyObserver(o,a,l){this.prototype._createPropertyObserver(o,a,l)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,l){this.prototype._createComputedProperty(o,a,l)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let l=this.constructor._parseTemplate(o),h=this.__preBoundTemplateInfo==l;if(!h)for(let n in l.propertyEffects)this._createPropertyAccessor(n);if(a)if(l=Object.create(l),l.wasPreBound=h,!this.__templateInfo)this.__templateInfo=l;else{const n=o._parentTemplateInfo||this.__templateInfo,r=n.lastChild;l.parent=n,n.lastChild=l,l.previousSibling=r,r?r.nextSibling=l:n.firstChild=l}else this.__preBoundTemplateInfo=l;return l}static _addTemplatePropertyEffect(o,a,l){let h=o.hostProps=o.hostProps||{};h[a]=!0;let n=o.propertyEffects=o.propertyEffects||{};(n[a]=n[a]||[]).push(l)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),c3.push(this);let l=super._stampTemplate(o,a);if(c3.pop(),a.nodeList=l.nodeList,!a.wasPreBound){let h=a.childNodes=[];for(let n=l.firstChild;n;n=n.nextSibling)h.push(n)}return l.templateInfo=a,ar(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),l}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:l,nextSibling:h,parent:n}=a;l?l.nextSibling=h:n&&(n.firstChild=h),h?h.previousSibling=l:n&&(n.lastChild=l),a.nextSibling=a.previousSibling=null;let r=a.childNodes;for(let d=0;d<r.length;d++){let c=r[d];E1(E1(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,a,l){let h=C._parseTemplateNode.call(this,o,a,l);if(o.nodeType===Node.TEXT_NODE){let n=this._parseBindings(o.textContent,a);n&&(o.textContent=g9(n)||" ",U6(this,a,l,"text","textContent",n),h=!0)}return h}static _parseTemplateNodeAttribute(o,a,l,h,n){let r=this._parseBindings(n,a);if(r){let d=h,c="property";Rh.test(h)?c="attribute":h[h.length-1]=="$"&&(h=h.slice(0,-1),c="attribute");let p=g9(r);return p&&c=="attribute"&&(h=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(h)),o.setAttribute(h,p)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(h,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(h=X7(h)),U6(this,a,l,c,h,r,p),!0}else return C._parseTemplateNodeAttribute.call(this,o,a,l,h,n)}static _parseTemplateNestedTemplate(o,a,l){let h=C._parseTemplateNestedTemplate.call(this,o,a,l);const n=o.parentNode,r=l.templateInfo,d=n.localName==="dom-if",c=n.localName==="dom-repeat";D7&&(d||c)&&(n.removeChild(o),l=l.parentInfo,l.templateInfo=r,l.noted=!0,h=!1);let p=r.hostProps;if(ph&&d)p&&(a.hostProps=Object.assign(a.hostProps||{},p),D7||(l.parentInfo.noted=!0));else{let v="{";for(let u in p){let w=[{mode:v,source:u,dependencies:[u],hostProp:!0}];U6(this,a,l,"property","_host_"+u,w)}}return h}static _parseBindings(o,a){let l=[],h=0,n;for(;(n=L9.exec(o))!==null;){n.index>h&&l.push({literal:o.slice(h,n.index)});let r=n[1][0],d=!!n[2],c=n[3].trim(),p=!1,v="",u=-1;r=="{"&&(u=c.indexOf("::"))>0&&(v=c.substring(u+2),c=c.substring(0,u),p=!0);let w=W6(c),m=[];if(w){let{args:z,methodName:$}=w;for(let k=0;k<z.length;k++){let F=z[k];F.literal||m.push(F)}let _=a.dynamicFns;(_&&_[$]||w.static)&&(m.push($),w.dynamicFn=!0)}else m.push(c);l.push({source:c,mode:r,negate:d,customEvent:p,signature:w,dependencies:m,event:v}),h=L9.lastIndex}if(h&&h<o.length){let r=o.substring(h);r&&l.push({literal:r})}return l.length?l:null}static _evaluateBinding(o,a,l,h,n,r){let d;return a.signature?d=q6(o,l,h,n,a.signature):l!=a.source?d=W(o,a.source):r&&N6(l)?d=W(o,l):d=o.__data[l],a.negate&&(d=!d),d}}return t}),c3=[];/**
|
|
7456
7456
|
@license
|
|
7457
7457
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7458
7458
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7460,7 +7460,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7460
7460
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7461
7461
|
Code distributed by Google as part of the polymer project is also
|
|
7462
7462
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7463
|
-
*/function
|
|
7463
|
+
*/function Wv(i){}/**
|
|
7464
7464
|
@license
|
|
7465
7465
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7466
7466
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7498,7 +7498,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7498
7498
|
* @license
|
|
7499
7499
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7500
7500
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7501
|
-
*/const p3=P(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}),Vr=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,
|
|
7501
|
+
*/const p3=P(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}),Vr=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,c5=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Zr(){function i(){return!0}return x9(i)}function xr(){try{return _r()?!0:br()?c5?!yr():!Zr():!1}catch{return!1}}function _r(){return localStorage.getItem("vaadin.developmentmode.force")}function br(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function yr(){return!!(c5&&Object.keys(c5).map(C=>c5[C]).filter(C=>C.productionMode).length>0)}function x9(i,C){if(typeof i!="function")return;const t=Vr.exec(i.toString());if(t)try{i=new Function(t[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return i(C)}window.Vaadin=window.Vaadin||{};const _9=function(i,C){if(window.Vaadin.developmentMode)return x9(i,C)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=xr());function zr(){}const kr=function(){if(typeof _9=="function")return _9(zr)};/**
|
|
7502
7502
|
* @license
|
|
7503
7503
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7504
7504
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7506,7 +7506,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7506
7506
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7507
7507
|
* Code distributed by Google as part of the polymer project is also
|
|
7508
7508
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7509
|
-
*/let b9=0,y9=0;const M2=[];let Y6=!1;function $r(){Y6=!1;const i=M2.length;for(let C=0;C<i;C++){const t=M2[C];if(t)try{t()}catch(e){setTimeout(()=>{throw e})}}M2.splice(0,i),y9+=i}const
|
|
7509
|
+
*/let b9=0,y9=0;const M2=[];let Y6=!1;function $r(){Y6=!1;const i=M2.length;for(let C=0;C<i;C++){const t=M2[C];if(t)try{t()}catch(e){setTimeout(()=>{throw e})}}M2.splice(0,i),y9+=i}const p5={after(i){return{run(C){return window.setTimeout(C,i)},cancel(C){window.clearTimeout(C)}}},run(i,C){return window.setTimeout(i,C)},cancel(i){window.clearTimeout(i)}},v5={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},z9={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},k9={run(i){Y6||(Y6=!0,queueMicrotask(()=>$r())),M2.push(i);const C=b9;return b9+=1,C},cancel(i){const C=i-y9;if(C>=0){if(!M2[C])throw new Error(`invalid async handle: ${i}`);M2[C]=null}}};/**
|
|
7510
7510
|
@license
|
|
7511
7511
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7512
7512
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7518,11 +7518,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7518
7518
|
* @license
|
|
7519
7519
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7520
7520
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7521
|
-
*/const s1=[];function G6(i,C,t=i.getAttribute("dir")){C?i.setAttribute("dir",C):t!=null&&i.removeAttribute("dir")}function K6(){return document.documentElement.getAttribute("dir")}function Br(){const i=K6();s1.forEach(C=>{G6(C,i)})}new MutationObserver(Br).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const
|
|
7521
|
+
*/const s1=[];function G6(i,C,t=i.getAttribute("dir")){C?i.setAttribute("dir",C):t!=null&&i.removeAttribute("dir")}function K6(){return document.documentElement.getAttribute("dir")}function Br(){const i=K6();s1.forEach(C=>{G6(C,i)})}new MutationObserver(Br).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const L5=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),G6(this,K6(),null))}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),t!=="dir")return;const a=K6(),l=o===a&&s1.indexOf(this)===-1,h=!o&&e&&s1.indexOf(this)===-1;l||h?(this.__subscribe(),G6(this,a,o)):o!==a&&e===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=s1.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,o){o==="dir"&&e===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,e,o)}_attributeToProperty(t,e,o){t==="dir"&&!e?this.dir="":super._attributeToProperty(t,e,o)}__subscribe(){s1.includes(this)||s1.push(this)}__unsubscribe(){s1.includes(this)&&s1.splice(s1.indexOf(this),1)}};/**
|
|
7522
7522
|
* @license
|
|
7523
7523
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7524
7524
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7525
|
-
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){kr()};let J6;const A9=new Set,
|
|
7525
|
+
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){kr()};let J6;const A9=new Set,g5=i=>class extends L5(i){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:t}=this;t&&!A9.has(t)&&(window.Vaadin.registrations.push(this),A9.add(t),window.Vaadin.developmentModeCallback&&(J6=C1.debounce(J6,z9,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),$9(J6)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
7526
7526
|
* @license
|
|
7527
7527
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7528
7528
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -7530,7 +7530,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7530
7530
|
* @license
|
|
7531
7531
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7532
7532
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7533
|
-
*/function Tr(i){const C=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){C.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){C.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return C}function X6(i){return i?new Set(i.split(" ")):new Set}function
|
|
7533
|
+
*/function Tr(i){const C=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){C.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){C.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return C}function X6(i){return i?new Set(i.split(" ")):new Set}function M5(i){return i?[...i].join(" "):""}function E9(i,C,t){const e=X6(i.getAttribute(C));e.add(t),i.setAttribute(C,M5(e))}function Ir(i,C,t){const e=X6(i.getAttribute(C));if(e.delete(t),e.size===0){i.removeAttribute(C);return}i.setAttribute(C,M5(e))}function Pr(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
|
|
7534
7534
|
* @license
|
|
7535
7535
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
7536
7536
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -7550,11 +7550,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7550
7550
|
* @license
|
|
7551
7551
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7552
7552
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7553
|
-
*/const
|
|
7553
|
+
*/const u5=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(C=>{C.target.resizables?C.target.resizables.forEach(t=>{t._onResize(C.contentRect)}):C.target._onResize(C.contentRect)})})}),Nr=P(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),u5.observe(this),this._observeParent){const t=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;t.resizables||(t.resizables=new Set,u5.observe(t)),t.resizables.add(this),this.__parent=t}}disconnectedCallback(){super.disconnectedCallback(),u5.unobserve(this);const t=this.__parent;if(this._observeParent&&t){const e=t.resizables;e&&(e.delete(this),e.size===0&&u5.unobserve(t)),this.__parent=null}}_onResize(t){}});/**
|
|
7554
7554
|
* @license
|
|
7555
7555
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7556
7556
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7557
|
-
*/const
|
|
7557
|
+
*/const w5=i=>i.test(navigator.userAgent),t8=i=>i.test(navigator.platform),Dr=i=>i.test(navigator.vendor);w5(/Android/u),w5(/Chrome/u)&&Dr(/Google Inc/u),w5(/Firefox/u);const Rr=t8(/^iPad/u)||t8(/^Mac/u)&&navigator.maxTouchPoints>1,jr=t8(/^iPhone/u)||Rr,I9=w5(/^((?!chrome|android).)*safari/iu),e8=(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
|
|
7558
7558
|
* @license
|
|
7559
7559
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
7560
7560
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -7583,9 +7583,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7583
7583
|
* @license
|
|
7584
7584
|
* Copyright 2017 Google LLC
|
|
7585
7585
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7586
|
-
*/var i8;const
|
|
7586
|
+
*/var i8;const f5=window,u2=f5.trustedTypes,F9=u2?u2.createPolicy("lit-html",{createHTML:i=>i}):void 0,o8="$lit$",L1=`lit$${(Math.random()+"").slice(9)}$`,O9="?"+L1,Yr=`<${O9}>`,T1=document,H5=()=>T1.createComment(""),g3=i=>i===null||typeof i!="object"&&typeof i!="function",N9=Array.isArray,Gr=i=>N9(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",s8=`[
|
|
7587
7587
|
\f\r]`,M3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D9=/-->/g,R9=/>/g,I1=RegExp(`>|${s8}(?:([^\\s"'>=/]+)(${s8}*=${s8}*(?:[^
|
|
7588
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),j9=/'/g,U9=/"/g,q9=/^(?:script|style|textarea|title)$/i,w2=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),W9=new WeakMap,P1=T1.createTreeWalker(T1,129,null,!1);function Y9(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return F9!==void 0?F9.createHTML(C):C}const Kr=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=M3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===M3?d[1]==="!--"?l=D9:d[1]!==void 0?l=R9:d[2]!==void 0?(q9.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=I1):d[3]!==void 0&&(l=I1):l===I1?d[0]===">"?(l=o??M3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?I1:d[3]==='"'?U9:j9):l===U9||l===j9?l=I1:l===D9||l===R9?l=M3:(l=I1,o=void 0);const v=l===I1&&i[h+1].startsWith("/>")?" ":"";a+=l===M3?n+Yr:c>=0?(e.push(r),n.slice(0,c)+o8+n.slice(c)+L1+v):n+L1+(c===-2?(e.push(void 0),h):v)}return[Y9(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let a8=class RC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=Kr(C,t);if(this.el=RC.createElement(r,e),P1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=P1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(o8)||p.startsWith(L1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+o8).split(L1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?Qr:w[1]==="?"?Cd:w[1]==="@"?td:
|
|
7588
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),j9=/'/g,U9=/"/g,q9=/^(?:script|style|textarea|title)$/i,w2=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),W9=new WeakMap,P1=T1.createTreeWalker(T1,129,null,!1);function Y9(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return F9!==void 0?F9.createHTML(C):C}const Kr=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=M3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===M3?d[1]==="!--"?l=D9:d[1]!==void 0?l=R9:d[2]!==void 0?(q9.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=I1):d[3]!==void 0&&(l=I1):l===I1?d[0]===">"?(l=o??M3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?I1:d[3]==='"'?U9:j9):l===U9||l===j9?l=I1:l===D9||l===R9?l=M3:(l=I1,o=void 0);const v=l===I1&&i[h+1].startsWith("/>")?" ":"";a+=l===M3?n+Yr:c>=0?(e.push(r),n.slice(0,c)+o8+n.slice(c)+L1+v):n+L1+(c===-2?(e.push(void 0),h):v)}return[Y9(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let a8=class RC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=Kr(C,t);if(this.el=RC.createElement(r,e),P1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=P1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(o8)||p.startsWith(L1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+o8).split(L1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?Qr:w[1]==="?"?Cd:w[1]==="@"?td:m5})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(q9.test(o.tagName)){const c=o.textContent.split(L1),p=c.length-1;if(p>0){o.textContent=u2?u2.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],H5()),P1.nextNode(),n.push({type:2,index:++a});o.append(c[p],H5())}}}else if(o.nodeType===8)if(o.data===O9)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(L1,c+1))!==-1;)n.push({type:7,index:a}),c+=L1.length-1}a++}}static createElement(C,t){const e=T1.createElement("template");return e.innerHTML=C,e}};function f2(i,C,t=i,e){var o,a,l,h;if(C===w2)return C;let n=e!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[e]:t._$Cl;const r=g3(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Co)!==null&&l!==void 0?l:h._$Co=[])[e]=n:t._$Cl=n),n!==void 0&&(C=f2(i,n._$AS(i,C.values),n,e)),C}let Jr=class{constructor(C,t){this._$AV=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:T1).importNode(e,!0);P1.currentNode=a;let l=P1.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new G9(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new ed(l,this,C)),this._$AV.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=P1.nextNode(),h++)}return P1.currentNode=T1,a}v(C){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}},G9=class jC{constructor(C,t,e,o){var a;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(C==null?void 0:C.nodeType)===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=f2(this,C,t),g3(C)?C===S||C==null||C===""?(this._$AH!==S&&this._$AR(),this._$AH=S):C!==this._$AH&&C!==w2&&this._(C):C._$litType$!==void 0?this.g(C):C.nodeType!==void 0?this.$(C):Gr(C)?this.T(C):this._(C)}k(C){return this._$AA.parentNode.insertBefore(C,this._$AB)}$(C){this._$AH!==C&&(this._$AR(),this._$AH=this.k(C))}_(C){this._$AH!==S&&g3(this._$AH)?this._$AA.nextSibling.data=C:this.$(T1.createTextNode(C)),this._$AH=C}g(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=a8.createElement(Y9(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.v(e);else{const l=new Jr(a,this),h=l.u(this.options);l.v(e),this.$(h),this._$AH=l}}_$AC(C){let t=W9.get(C.strings);return t===void 0&&W9.set(C.strings,t=new a8(C)),t}T(C){N9(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new jC(this.k(H5()),this.k(H5()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$Cp=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}},m5=class{constructor(C,t,e,o,a){this.type=1,this._$AH=S,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=f2(this,C,t,0),l=!g3(C)||C!==this._$AH&&C!==w2,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=f2(this,h[e+n],t,n),r===w2&&(r=this._$AH[n]),l||(l=!g3(r)||r!==this._$AH[n]),r===S?C=S:C!==S&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.j(C)}j(C){C===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}},Qr=class extends m5{constructor(){super(...arguments),this.type=3}j(C){this.element[this.name]=C===S?void 0:C}};const Xr=u2?u2.emptyScript:"";let Cd=class extends m5{constructor(){super(...arguments),this.type=4}j(C){C&&C!==S?this.element.setAttribute(this.name,Xr):this.element.removeAttribute(this.name)}},td=class extends m5{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=f2(this,C,t,0))!==null&&e!==void 0?e:S)===w2)return;const o=this._$AH,a=C===S&&o!==S||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==S&&(o===S||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}},ed=class{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){f2(this,C)}};const K9=f5.litHtmlPolyfillSupport;K9==null||K9(a8,G9),((i8=f5.litHtmlVersions)!==null&&i8!==void 0?i8:f5.litHtmlVersions=[]).push("2.8.0");/**
|
|
7589
7589
|
* @license
|
|
7590
7590
|
* Copyright 2020 Google LLC
|
|
7591
7591
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -7609,11 +7609,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7609
7609
|
* @license
|
|
7610
7610
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7611
7611
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7612
|
-
*/const F1={},C0=new Set;function t0(i,C){return(i||"").replace(`${C}:`,"")}function e0(i){return i?i.split(":")[0]||"vaadin":void 0}function i0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=t0(e.id,C);return t[o]=e,t},{})}let
|
|
7612
|
+
*/const F1={},C0=new Set;function t0(i,C){return(i||"").replace(`${C}:`,"")}function e0(i){return i?i.split(":")[0]||"vaadin":void 0}function i0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=t0(e.id,C);return t[o]=e,t},{})}let V5=class extends g5(v1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return C0}static getIconset(C){return F1[C]}static getIconSvg(C,t){const e=t||e0(C),o=this.getIconset(e);if(!C||!o)return{svg:Q9(null)};const a=t0(C,e),l=o._icons[a];return{preserveAspectRatio:l?l.getAttribute("preserveAspectRatio"):null,svg:Q9(l),size:o.size,viewBox:l?l.getAttribute("viewBox"):null}}static register(C,t,e){if(!F1[C]){const o=document.createElement("vaadin-iconset");o.appendChild(e.content.cloneNode(!0)),F1[C]=o,i0(o,C),o.size=t,o.name=C,o.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;F1[C]=this,i0(this,C),this.__updateIcons(C)}__updateIcons(C){C0.forEach(t=>{C===e0(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(F1[C]=F1[t],delete F1[t]),C&&this.__updateIcons(C)}};o1(V5);/**
|
|
7613
7613
|
* @license
|
|
7614
7614
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7615
7615
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7616
|
-
*/const h8=new Map;class u3 extends o3(
|
|
7616
|
+
*/const h8=new Map;class u3 extends o3(g5(p3(B9(Wr(v1))))){static get template(){return g2`
|
|
7617
7617
|
<style>
|
|
7618
7618
|
:host {
|
|
7619
7619
|
display: inline-flex;
|
|
@@ -7675,13 +7675,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7675
7675
|
vertical-align: middle;
|
|
7676
7676
|
font-size: inherit;
|
|
7677
7677
|
}
|
|
7678
|
-
`]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new T9(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),
|
|
7678
|
+
`]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new T9(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),V5.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),V5.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:C,svg:t,size:e,viewBox:o}=V5.getIconSvg(this.icon);o&&(this.__viewBox=o),C&&(this.__preserveAspectRatio=C),e&&e!==this.size&&(this.size=e),this.svg=t}__iconChanged(C){C?this._applyIcon():this.svg=X9(null)}async __srcChanged(C,t){if(!C){this.svg=null;return}if(this.icon="",!C.startsWith("data:")&&(t||C.includes("#"))){const[e,o]=C.split("#");this.__useRef=`${e}#${t||o}`}else try{h8.has(C)||h8.set(C,this.__fetch(C,{mode:"cors"}).then(l=>{if(!l.ok)throw new Error("Error loading icon");return l.text()}));const e=await h8.get(C);u3.__domParser||(u3.__domParser=new DOMParser);const a=u3.__domParser.parseFromString(e,"text/html").querySelector("svg");if(!a)throw new Error(`SVG element not found on path: ${C}`);this.svg=rd(a.innerHTML),t&&(this.__useRef=`#${t}`),this.__viewBox=a.getAttribute("viewBox")}catch(e){console.error(e),this.svg=null}}__svgChanged(C,t){t&&hd(C,t)}__computePAR(C,t){return t||C}__computeVisibility(C){return C?"visible":"hidden"}__computeViewBox(C,t){return t||`0 0 ${C} ${C}`}__fontChanged(C,t,e){this.classList.remove(...this.__addedIconClasses||[]),C&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),t?this.setAttribute("font-icon-content",t.length>1?String.fromCodePoint(parseInt(t,16)):t):e?this.setAttribute("font-icon-content",e):this.removeAttribute("font-icon-content"),(C||t||e)&&!this.icon&&(this.icon="")}attributeChangedCallback(C,t,e){super.attributeChangedCallback(C,t,e),C==="class"&&this.__iconClasses.some(o=>!this.classList.contains(o))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(C){this.style.fontFamily=`'${C}'`}}o1(u3);/**
|
|
7679
7679
|
* @license
|
|
7680
7680
|
* Copyright 2017 Google LLC
|
|
7681
7681
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7682
|
-
*/var r8;const
|
|
7682
|
+
*/var r8;const Z5=window,H2=Z5.trustedTypes,o0=H2?H2.createPolicy("lit-html",{createHTML:i=>i}):void 0,d8="$lit$",g1=`lit$${(Math.random()+"").slice(9)}$`,s0="?"+g1,dd=`<${s0}>`,O1=document,x5=()=>O1.createComment(""),w3=i=>i===null||typeof i!="object"&&typeof i!="function",a0=Array.isArray,cd=i=>a0(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",c8=`[
|
|
7683
7683
|
\f\r]`,f3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,l0=/-->/g,n0=/>/g,N1=RegExp(`>|${c8}(?:([^\\s"'>=/]+)(${c8}*=${c8}*(?:[^
|
|
7684
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),h0=/'/g,r0=/"/g,d0=/^(?:script|style|textarea|title)$/i,m2=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),c0=new WeakMap,D1=O1.createTreeWalker(O1,129,null,!1);function p0(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return o0!==void 0?o0.createHTML(C):C}const pd=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=f3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===f3?d[1]==="!--"?l=l0:d[1]!==void 0?l=n0:d[2]!==void 0?(d0.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=N1):d[3]!==void 0&&(l=N1):l===N1?d[0]===">"?(l=o??f3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?N1:d[3]==='"'?r0:h0):l===r0||l===h0?l=N1:l===l0||l===n0?l=f3:(l=N1,o=void 0);const v=l===N1&&i[h+1].startsWith("/>")?" ":"";a+=l===f3?n+dd:c>=0?(e.push(r),n.slice(0,c)+d8+n.slice(c)+g1+v):n+g1+(c===-2?(e.push(void 0),h):v)}return[p0(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let p8=class UC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=pd(C,t);if(this.el=UC.createElement(r,e),D1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=D1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(d8)||p.startsWith(g1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+d8).split(g1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?Ld:w[1]==="?"?Md:w[1]==="@"?ud:
|
|
7684
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),h0=/'/g,r0=/"/g,d0=/^(?:script|style|textarea|title)$/i,m2=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),c0=new WeakMap,D1=O1.createTreeWalker(O1,129,null,!1);function p0(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return o0!==void 0?o0.createHTML(C):C}const pd=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=f3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===f3?d[1]==="!--"?l=l0:d[1]!==void 0?l=n0:d[2]!==void 0?(d0.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=N1):d[3]!==void 0&&(l=N1):l===N1?d[0]===">"?(l=o??f3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?N1:d[3]==='"'?r0:h0):l===r0||l===h0?l=N1:l===l0||l===n0?l=f3:(l=N1,o=void 0);const v=l===N1&&i[h+1].startsWith("/>")?" ":"";a+=l===f3?n+dd:c>=0?(e.push(r),n.slice(0,c)+d8+n.slice(c)+g1+v):n+g1+(c===-2?(e.push(void 0),h):v)}return[p0(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let p8=class UC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=pd(C,t);if(this.el=UC.createElement(r,e),D1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=D1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(d8)||p.startsWith(g1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+d8).split(g1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?Ld:w[1]==="?"?Md:w[1]==="@"?ud:_5})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(d0.test(o.tagName)){const c=o.textContent.split(g1),p=c.length-1;if(p>0){o.textContent=H2?H2.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],x5()),D1.nextNode(),n.push({type:2,index:++a});o.append(c[p],x5())}}}else if(o.nodeType===8)if(o.data===s0)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(g1,c+1))!==-1;)n.push({type:7,index:a}),c+=g1.length-1}a++}}static createElement(C,t){const e=O1.createElement("template");return e.innerHTML=C,e}};function V2(i,C,t=i,e){var o,a,l,h;if(C===m2)return C;let n=e!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[e]:t._$Cl;const r=w3(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Co)!==null&&l!==void 0?l:h._$Co=[])[e]=n:t._$Cl=n),n!==void 0&&(C=V2(i,n._$AS(i,C.values),n,e)),C}let vd=class{constructor(C,t){this._$AV=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:O1).importNode(e,!0);D1.currentNode=a;let l=D1.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new v0(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new wd(l,this,C)),this._$AV.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=D1.nextNode(),h++)}return D1.currentNode=O1,a}v(C){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}},v0=class qC{constructor(C,t,e,o){var a;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(C==null?void 0:C.nodeType)===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=V2(this,C,t),w3(C)?C===T||C==null||C===""?(this._$AH!==T&&this._$AR(),this._$AH=T):C!==this._$AH&&C!==m2&&this._(C):C._$litType$!==void 0?this.g(C):C.nodeType!==void 0?this.$(C):cd(C)?this.T(C):this._(C)}k(C){return this._$AA.parentNode.insertBefore(C,this._$AB)}$(C){this._$AH!==C&&(this._$AR(),this._$AH=this.k(C))}_(C){this._$AH!==T&&w3(this._$AH)?this._$AA.nextSibling.data=C:this.$(O1.createTextNode(C)),this._$AH=C}g(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=p8.createElement(p0(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.v(e);else{const l=new vd(a,this),h=l.u(this.options);l.v(e),this.$(h),this._$AH=l}}_$AC(C){let t=c0.get(C.strings);return t===void 0&&c0.set(C.strings,t=new p8(C)),t}T(C){a0(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new qC(this.k(x5()),this.k(x5()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$Cp=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}},_5=class{constructor(C,t,e,o,a){this.type=1,this._$AH=T,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=V2(this,C,t,0),l=!w3(C)||C!==this._$AH&&C!==m2,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=V2(this,h[e+n],t,n),r===m2&&(r=this._$AH[n]),l||(l=!w3(r)||r!==this._$AH[n]),r===T?C=T:C!==T&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.j(C)}j(C){C===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}},Ld=class extends _5{constructor(){super(...arguments),this.type=3}j(C){this.element[this.name]=C===T?void 0:C}};const gd=H2?H2.emptyScript:"";let Md=class extends _5{constructor(){super(...arguments),this.type=4}j(C){C&&C!==T?this.element.setAttribute(this.name,gd):this.element.removeAttribute(this.name)}},ud=class extends _5{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=V2(this,C,t,0))!==null&&e!==void 0?e:T)===m2)return;const o=this._$AH,a=C===T&&o!==T||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==T&&(o===T||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}},wd=class{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){V2(this,C)}};const L0=Z5.litHtmlPolyfillSupport;L0==null||L0(p8,v0),((r8=Z5.litHtmlVersions)!==null&&r8!==void 0?r8:Z5.litHtmlVersions=[]).push("2.8.0");/**
|
|
7685
7685
|
* @license
|
|
7686
7686
|
* Copyright 2017 Google LLC
|
|
7687
7687
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -7701,7 +7701,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7701
7701
|
* @license
|
|
7702
7702
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
7703
7703
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7704
|
-
*/const R1={},M0=new Set;function u0(i,C){return(i||"").replace(`${C}:`,"")}function w0(i){return i?i.split(":")[0]||"vaadin":void 0}function f0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=u0(e.id,C);return t[o]=e,t},{})}class H0 extends
|
|
7704
|
+
*/const R1={},M0=new Set;function u0(i,C){return(i||"").replace(`${C}:`,"")}function w0(i){return i?i.split(":")[0]||"vaadin":void 0}function f0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=u0(e.id,C);return t[o]=e,t},{})}class H0 extends g5(v1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return M0}static getIconset(C){return R1[C]}static getIconSvg(C,t){const e=t||w0(C),o=this.getIconset(e);if(!C||!o)return{svg:g0(null)};const a=u0(C,e),l=o._icons[a];return{preserveAspectRatio:l?l.getAttribute("preserveAspectRatio"):null,svg:g0(l),size:o.size,viewBox:l?l.getAttribute("viewBox"):null}}static register(C,t,e){if(!R1[C]){const o=document.createElement("vaadin-iconset");o.appendChild(e.content.cloneNode(!0)),R1[C]=o,f0(o,C),o.size=t,o.name=C,o.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;R1[C]=this,f0(this,C),this.__updateIcons(C)}__updateIcons(C){M0.forEach(t=>{C===w0(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(R1[C]=R1[t],delete R1[t]),C&&this.__updateIcons(C)}}o1(H0);/**
|
|
7705
7705
|
* @license
|
|
7706
7706
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
7707
7707
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -8346,9 +8346,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8346
8346
|
* @license
|
|
8347
8347
|
* Copyright 2017 Google LLC
|
|
8348
8348
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8349
|
-
*/var g8;const
|
|
8349
|
+
*/var g8;const b5=window,Z2=b5.trustedTypes,V0=Z2?Z2.createPolicy("lit-html",{createHTML:i=>i}):void 0,M8="$lit$",M1=`lit$${(Math.random()+"").slice(9)}$`,Z0="?"+M1,Zd=`<${Z0}>`,j1=document,y5=()=>j1.createComment(""),H3=i=>i===null||typeof i!="object"&&typeof i!="function",x0=Array.isArray,xd=i=>x0(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",u8=`[
|
|
8350
8350
|
\f\r]`,m3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_0=/-->/g,b0=/>/g,U1=RegExp(`>|${u8}(?:([^\\s"'>=/]+)(${u8}*=${u8}*(?:[^
|
|
8351
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),y0=/'/g,z0=/"/g,k0=/^(?:script|style|textarea|title)$/i,V3=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),$0=new WeakMap,q1=j1.createTreeWalker(j1,129,null,!1);function A0(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return V0!==void 0?V0.createHTML(C):C}const _d=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=m3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===m3?d[1]==="!--"?l=_0:d[1]!==void 0?l=b0:d[2]!==void 0?(k0.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=U1):d[3]!==void 0&&(l=U1):l===U1?d[0]===">"?(l=o??m3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?U1:d[3]==='"'?z0:y0):l===z0||l===y0?l=U1:l===_0||l===b0?l=m3:(l=U1,o=void 0);const v=l===U1&&i[h+1].startsWith("/>")?" ":"";a+=l===m3?n+Zd:c>=0?(e.push(r),n.slice(0,c)+M8+n.slice(c)+M1+v):n+M1+(c===-2?(e.push(void 0),h):v)}return[A0(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let w8=class WC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=_d(C,t);if(this.el=WC.createElement(r,e),q1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=q1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(M8)||p.startsWith(M1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+M8).split(M1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?yd:w[1]==="?"?kd:w[1]==="@"?$d:
|
|
8351
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),y0=/'/g,z0=/"/g,k0=/^(?:script|style|textarea|title)$/i,V3=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),$0=new WeakMap,q1=j1.createTreeWalker(j1,129,null,!1);function A0(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return V0!==void 0?V0.createHTML(C):C}const _d=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=m3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===m3?d[1]==="!--"?l=_0:d[1]!==void 0?l=b0:d[2]!==void 0?(k0.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=U1):d[3]!==void 0&&(l=U1):l===U1?d[0]===">"?(l=o??m3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?U1:d[3]==='"'?z0:y0):l===z0||l===y0?l=U1:l===_0||l===b0?l=m3:(l=U1,o=void 0);const v=l===U1&&i[h+1].startsWith("/>")?" ":"";a+=l===m3?n+Zd:c>=0?(e.push(r),n.slice(0,c)+M8+n.slice(c)+M1+v):n+M1+(c===-2?(e.push(void 0),h):v)}return[A0(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};let w8=class WC{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=_d(C,t);if(this.el=WC.createElement(r,e),q1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=q1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(M8)||p.startsWith(M1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+M8).split(M1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?yd:w[1]==="?"?kd:w[1]==="@"?$d:z5})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(k0.test(o.tagName)){const c=o.textContent.split(M1),p=c.length-1;if(p>0){o.textContent=Z2?Z2.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],y5()),q1.nextNode(),n.push({type:2,index:++a});o.append(c[p],y5())}}}else if(o.nodeType===8)if(o.data===Z0)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(M1,c+1))!==-1;)n.push({type:7,index:a}),c+=M1.length-1}a++}}static createElement(C,t){const e=j1.createElement("template");return e.innerHTML=C,e}};function x2(i,C,t=i,e){var o,a,l,h;if(C===V3)return C;let n=e!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[e]:t._$Cl;const r=H3(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Co)!==null&&l!==void 0?l:h._$Co=[])[e]=n:t._$Cl=n),n!==void 0&&(C=x2(i,n._$AS(i,C.values),n,e)),C}let bd=class{constructor(C,t){this._$AV=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:j1).importNode(e,!0);q1.currentNode=a;let l=q1.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new B0(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new Ad(l,this,C)),this._$AV.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=q1.nextNode(),h++)}return q1.currentNode=j1,a}v(C){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}},B0=class YC{constructor(C,t,e,o){var a;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(C==null?void 0:C.nodeType)===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=x2(this,C,t),H3(C)?C===D||C==null||C===""?(this._$AH!==D&&this._$AR(),this._$AH=D):C!==this._$AH&&C!==V3&&this._(C):C._$litType$!==void 0?this.g(C):C.nodeType!==void 0?this.$(C):xd(C)?this.T(C):this._(C)}k(C){return this._$AA.parentNode.insertBefore(C,this._$AB)}$(C){this._$AH!==C&&(this._$AR(),this._$AH=this.k(C))}_(C){this._$AH!==D&&H3(this._$AH)?this._$AA.nextSibling.data=C:this.$(j1.createTextNode(C)),this._$AH=C}g(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=w8.createElement(A0(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.v(e);else{const l=new bd(a,this),h=l.u(this.options);l.v(e),this.$(h),this._$AH=l}}_$AC(C){let t=$0.get(C.strings);return t===void 0&&$0.set(C.strings,t=new w8(C)),t}T(C){x0(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new YC(this.k(y5()),this.k(y5()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$Cp=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}},z5=class{constructor(C,t,e,o,a){this.type=1,this._$AH=D,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=x2(this,C,t,0),l=!H3(C)||C!==this._$AH&&C!==V3,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=x2(this,h[e+n],t,n),r===V3&&(r=this._$AH[n]),l||(l=!H3(r)||r!==this._$AH[n]),r===D?C=D:C!==D&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.j(C)}j(C){C===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}},yd=class extends z5{constructor(){super(...arguments),this.type=3}j(C){this.element[this.name]=C===D?void 0:C}};const zd=Z2?Z2.emptyScript:"";let kd=class extends z5{constructor(){super(...arguments),this.type=4}j(C){C&&C!==D?this.element.setAttribute(this.name,zd):this.element.removeAttribute(this.name)}},$d=class extends z5{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=x2(this,C,t,0))!==null&&e!==void 0?e:D)===V3)return;const o=this._$AH,a=C===D&&o!==D||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==D&&(o===D||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}},Ad=class{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){x2(this,C)}};const E0=b5.litHtmlPolyfillSupport;E0==null||E0(w8,B0),((g8=b5.litHtmlVersions)!==null&&g8!==void 0?g8:b5.litHtmlVersions=[]).push("2.8.0");/**
|
|
8352
8352
|
* @license
|
|
8353
8353
|
* Copyright 2020 Google LLC
|
|
8354
8354
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -8360,7 +8360,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8360
8360
|
* @license
|
|
8361
8361
|
* Copyright 2017 Google LLC
|
|
8362
8362
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8363
|
-
*/const Z3=(i,C)=>{var t,e;const o=i._$AN;if(o===void 0)return!1;for(const a of o)(e=(t=a)._$AO)===null||e===void 0||e.call(t,C,!1),Z3(a,C);return!0},
|
|
8363
|
+
*/const Z3=(i,C)=>{var t,e;const o=i._$AN;if(o===void 0)return!1;for(const a of o)(e=(t=a)._$AO)===null||e===void 0||e.call(t,C,!1),Z3(a,C);return!0},k5=i=>{let C,t;do{if((C=i._$AM)===void 0)break;t=C._$AN,t.delete(i),i=C}while((t==null?void 0:t.size)===0)},T0=i=>{for(let C;C=i._$AM;i=C){let t=C._$AN;if(t===void 0)C._$AN=t=new Set;else if(t.has(i))break;t.add(i),Id(C)}};function Sd(i){this._$AN!==void 0?(k5(this),this._$AM=i,T0(this)):this._$AM=i}function Td(i,C=!1,t=0){const e=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(C)if(Array.isArray(e))for(let a=t;a<e.length;a++)Z3(e[a],!1),k5(e[a]);else e!=null&&(Z3(e,!1),k5(e));else Z3(this,i)}const Id=i=>{var C,t,e,o;i.type==S0.CHILD&&((C=(e=i)._$AP)!==null&&C!==void 0||(e._$AP=Td),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=Sd))};let Pd=class extends Ed{constructor(){super(...arguments),this._$AN=void 0}_$AT(C,t,e){super._$AT(C,t,e),T0(this),this.isConnected=C._$AU}_$AO(C,t=!0){var e,o;C!==this.isConnected&&(this.isConnected=C,C?(e=this.reconnected)===null||e===void 0||e.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),t&&(Z3(this,C),k5(this))}setValue(C){if(Bd(this._$Ct))this._$Ct._$AI(C,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=C,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};/**
|
|
8364
8364
|
* @license
|
|
8365
8365
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
8366
8366
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -8886,7 +8886,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8886
8886
|
* @license
|
|
8887
8887
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
8888
8888
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8889
|
-
*/class Wd extends o3(
|
|
8889
|
+
*/class Wd extends o3(L5(v1)){static get is(){return"vaadin-input-container"}static get template(){return g2`
|
|
8890
8890
|
<style>
|
|
8891
8891
|
:host {
|
|
8892
8892
|
display: flex;
|
|
@@ -9723,7 +9723,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9723
9723
|
* @license
|
|
9724
9724
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
9725
9725
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9726
|
-
*/class sc extends oc(o3(
|
|
9726
|
+
*/class sc extends oc(o3(L5(v1))){static get template(){return g2`
|
|
9727
9727
|
<style>
|
|
9728
9728
|
:host {
|
|
9729
9729
|
display: block;
|
|
@@ -9749,7 +9749,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9749
9749
|
* @license
|
|
9750
9750
|
* Copyright (c) 2017 Anton Korzunov
|
|
9751
9751
|
* SPDX-License-Identifier: MIT
|
|
9752
|
-
*/let _2=new WeakMap
|
|
9752
|
+
*/let _2=new WeakMap,$5=new WeakMap,A5={},V8=0;const j0=i=>i&&i.nodeType===Node.ELEMENT_NODE,Z8=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},dc=(i,C)=>j0(i)?C.map(t=>{if(!j0(t))return Z8(t,"is not a valid element"),null;let e=t;for(;e&&e!==i;){if(i.contains(e))return t;e=e.getRootNode().host}return Z8(t,"is not contained inside",i),null}).filter(t=>!!t):(Z8(i,"is not a valid element"),[]),cc=(i,C,t,e)=>{const o=dc(C,Array.isArray(i)?i:[i]);A5[t]||(A5[t]=new WeakMap);const a=A5[t],l=[],h=new Set,n=new Set(o),r=c=>{if(!c||h.has(c))return;h.add(c);const p=c.assignedSlot;p&&r(p),r(c.parentNode||c.host)};o.forEach(r);const d=c=>{if(!c||n.has(c))return;const p=c.shadowRoot;(p?[...c.children,...p.children]:[...c.children]).forEach(u=>{if(!["template","script","style"].includes(u.localName))if(h.has(u))d(u);else{const w=u.getAttribute(e),m=w!==null&&w!=="false",z=(_2.get(u)||0)+1,$=(a.get(u)||0)+1;_2.set(u,z),a.set(u,$),l.push(u),z===1&&m&&$5.set(u,!0),$===1&&u.setAttribute(t,"true"),m||u.setAttribute(e,"true")}})};return d(C),h.clear(),V8+=1,()=>{l.forEach(c=>{const p=_2.get(c)-1,v=a.get(c)-1;_2.set(c,p),a.set(c,v),p||($5.has(c)?$5.delete(c):c.removeAttribute(e)),v||c.removeAttribute(t)}),V8-=1,V8||(_2=new WeakMap,_2=new WeakMap,$5=new WeakMap,A5={})}},pc=(i,C=document.body,t="data-aria-hidden")=>{const e=Array.from(Array.isArray(i)?i:[i]);return C&&e.push(...Array.from(C.querySelectorAll("[aria-live]"))),cc(e,C,t,"aria-hidden")};/**
|
|
9753
9753
|
* @license
|
|
9754
9754
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
9755
9755
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -9773,7 +9773,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9773
9773
|
* @license
|
|
9774
9774
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
9775
9775
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9776
|
-
*/const
|
|
9776
|
+
*/const B5=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,C)=>i.__zIndex-C.__zIndex||0),xc=i=>i===B5().pop(),_c=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return xc(this)}bringToFront(){let t="";const e=B5().filter(o=>o!==this).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),B5().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=B5();let e;for(;(e=t.pop())&&!(e!==this&&(e.$.overlay.style.removeProperty("pointer-events"),!e.modeless)););}};/**
|
|
9777
9777
|
* @license
|
|
9778
9778
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
9779
9779
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -9861,7 +9861,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9861
9861
|
flex-direction: column;
|
|
9862
9862
|
height: 100%;
|
|
9863
9863
|
}
|
|
9864
|
-
`;j("vaadin-combo-box-overlay",[yc,$c],{moduleId:"vaadin-combo-box-overlay-styles"});class Ac extends kc(bc(
|
|
9864
|
+
`;j("vaadin-combo-box-overlay",[yc,$c],{moduleId:"vaadin-combo-box-overlay-styles"});class Ac extends kc(bc(L5(o3(v1)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return g2`
|
|
9865
9865
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
9866
9866
|
<div part="overlay" id="overlay">
|
|
9867
9867
|
<div part="loader"></div>
|
|
@@ -9871,7 +9871,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9871
9871
|
* @license
|
|
9872
9872
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
9873
9873
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9874
|
-
*/function
|
|
9874
|
+
*/function E5(i,C){return i.split(".").reduce((t,e)=>t?t[e]:void 0,C)}/**
|
|
9875
9875
|
* @license
|
|
9876
9876
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
9877
9877
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -9879,11 +9879,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9879
9879
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9880
9880
|
* Code distributed by Google as part of the polymer project is also
|
|
9881
9881
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9882
|
-
*/const Y0=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Bc=Y0&&Y0[1]>=8,G0=3,Ec={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let C=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,e)=>{if(C+=this._getPhysicalSizeIncrement(t),C>this._scrollPosition)return e})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let C=this._physicalTop+this._scrollOffset;this._iterateItems((t,e)=>{C<this._scrollBottom&&(i=e),C+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let C=i-this._scrollPosition;const t=C>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(C)>this._physicalSize&&this._physicalSize>0){C-=this._scrollOffset;const e=Math.round(C/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const e=this._getReusables(t);t?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,t?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),k9)}},_getReusables(i){let C,t,e;const o=[],a=this._hiddenContentSize*this._ratio,l=this._virtualStart,h=this._virtualEnd,n=this._physicalCount;let r=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(i?(C=this._physicalStart,t=c-r):(C=this._physicalEnd,t=d-p);e=this._getPhysicalSizeIncrement(C),t-=e,!(o.length>=n||t<=a);)if(i){if(h+o.length+1>=this._virtualCount||r+e>=c-this._scrollOffset)break;o.push(C),r+=e,C=(C+1)%n}else{if(l-o.length<=0||r+this._physicalSize-e<=p)break;o.push(C),r-=e,C=C===0?n-1:C-1}return{indexes:o,physicalTop:r-this._scrollOffset}},_update(i,C){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),C)for(;C.length;){const t=C.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const t=this._clamp(this._physicalCount+i,G0,this._virtualCount-this._virtualStart)-this._physicalCount;let e=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let a=0;a<t;a++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-o)/t,e=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||e===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,e)),z9):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,e),k9))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(G0))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,
|
|
9882
|
+
*/const Y0=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Bc=Y0&&Y0[1]>=8,G0=3,Ec={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let C=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,e)=>{if(C+=this._getPhysicalSizeIncrement(t),C>this._scrollPosition)return e})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let C=this._physicalTop+this._scrollOffset;this._iterateItems((t,e)=>{C<this._scrollBottom&&(i=e),C+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let C=i-this._scrollPosition;const t=C>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(C)>this._physicalSize&&this._physicalSize>0){C-=this._scrollOffset;const e=Math.round(C/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const e=this._getReusables(t);t?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,t?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),k9)}},_getReusables(i){let C,t,e;const o=[],a=this._hiddenContentSize*this._ratio,l=this._virtualStart,h=this._virtualEnd,n=this._physicalCount;let r=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(i?(C=this._physicalStart,t=c-r):(C=this._physicalEnd,t=d-p);e=this._getPhysicalSizeIncrement(C),t-=e,!(o.length>=n||t<=a);)if(i){if(h+o.length+1>=this._virtualCount||r+e>=c-this._scrollOffset)break;o.push(C),r+=e,C=(C+1)%n}else{if(l-o.length<=0||r+this._physicalSize-e<=p)break;o.push(C),r-=e,C=C===0?n-1:C-1}return{indexes:o,physicalTop:r-this._scrollOffset}},_update(i,C){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),C)for(;C.length;){const t=C.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const t=this._clamp(this._physicalCount+i,G0,this._virtualCount-this._virtualStart)-this._physicalCount;let e=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let a=0;a<t;a++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-o)/t,e=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||e===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,e)),z9):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,e),k9))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(G0))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,v5))},_iterateItems(i,C){let t,e,o,a;if(arguments.length===2&&C){for(a=0;a<C.length;a++)if(t=C[a],e=this._computeVidx(t),(o=i.call(this,t,e))!=null)return o}else{for(t=this._physicalStart,e=this._virtualStart;t<this._physicalCount;t++,e++)if((o=i.call(this,t,e))!=null)return o;for(t=0;t<this._physicalStart;t++,e++)if((o=i.call(this,t,e))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(C=>{this.translate3d(0,`${i}px`,0,this._physicalItems[C]),i+=this._physicalSizes[C]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const C=this._scrollPosition;!Bc&&C>0&&this._resetScrollPosition(C-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const C=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=C,(i||this._scrollHeight===0||this._scrollPosition>=C-this._physicalSize||Math.abs(C-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${C}px`,this._scrollHeight=C)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(L3(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let C=this._physicalStart,t=this._virtualStart,e=0;const o=this._hiddenContentSize;for(;t<i&&e<=o;)e+=this._getPhysicalSizeIncrement(C),C=(C+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+e),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},v5)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,C,t){return Math.min(t,Math.max(C,i))},_debounce(i,C,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=C1.debounce(this._debouncers[i],t,C.bind(this)),$9(this._debouncers[i])}};/**
|
|
9883
9883
|
* @license
|
|
9884
9884
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
9885
9885
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9886
|
-
*/const Sc=1e5,$8=1e3;class K0{constructor({createElements:C,updateElement:t,scrollTarget:e,scrollContainer:o,elementsContainer:a,reorderElements:l}){this.isAttached=!0,this._vidxOffset=0,this.createElements=C,this.updateElement=t,this.scrollTarget=e,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=l,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",h=>this.__onWheel(h)),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(C){if(typeof C!="number"||isNaN(C)||this.size===0||!this.scrollTarget.offsetHeight)return;C=this._clamp(C,0,this.size-1);const t=this.__getVisibleElements().length;let e=Math.floor(C/this.size*this._virtualCount);this._virtualCount-e<t?(e=this._virtualCount-(this.size-C),this._vidxOffset=this.size-this._virtualCount):e<t?C<$8?(e=C,this._vidxOffset=0):(e=$8,this._vidxOffset=C-e):this._vidxOffset=C-e,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(e),this.adjustedFirstVisibleIndex!==C&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(C)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),L3(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(C=0,t=this.size-1){const e=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=C&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),e.push(o))}),this.__afterElementsUpdated(e)}_updateMetrics(C){L3();let t=0,e=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((l,h)=>{e+=this._physicalSizes[l],this._physicalSizes[l]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[l])),t+=this._physicalSizes[l],this._physicalAverageCount+=this._physicalSizes[l]?1:0},C),this._physicalSize=this._physicalSize+t-e,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(C){const t=getComputedStyle(C),e=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return e;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,l=parseFloat(t.borderBottomWidth)||0,h=parseFloat(t.borderTopWidth)||0;return e+o+a+l+h}__updateElement(C,t,e){C.style.paddingTop&&(C.style.paddingTop=""),!this.__preventElementUpdates&&(C.__lastUpdatedIndex!==t||e)&&(this.updateElement(C,t),C.__lastUpdatedIndex=t)}__afterElementsUpdated(C){C.forEach(t=>{const e=t.offsetHeight;if(e===0)t.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=C1.debounce(this.__placeholderClearDebouncer,p5,()=>this._resizeHandler());else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,l)=>a+l,0)/o.length)}})}__getIndexScrollOffset(C){const t=this.__getVisibleElements().find(e=>e.__virtualIndex===C);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(C){C!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=C,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,L3(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),L3())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(C){this.scrollTarget.scrollTop=C}get items(){return{length:Math.min(this.size,Sc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const C=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(C["padding-top"],10),this._isRTL=C.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(C){const t=this.createElements(C),e=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",e.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(e),t}_assignModels(C){const t=[];this._iterateItems((e,o)=>{const a=this._physicalItems[e];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},C),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(C,t,e,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const C=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=C>=0,e=this._getReusables(!t);e.indexes.length&&(this._physicalTop=e.physicalTop,t?(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length):(this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length),this._resizeHandler())}C&&(this.__fixInvalidItemPositioningDebouncer=C1.debounce(this.__fixInvalidItemPositioningDebouncer,c5.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=C1.debounce(this.__scrollReorderDebouncer,c5.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(C)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const C=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,e=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(C&&!e||t&&!o){const a=t,l=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=l}}__onWheel(C){if(C.ctrlKey||this._hasScrolledAncestor(C.target,C.deltaX,C.deltaY))return;let t=C.deltaY;if(C.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:C.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,C.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=C1.debounce(this.__debouncerWheelAnimationFrame,p5,()=>{this._wheelAnimationFrame=!1});const e=Math.abs(C.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,C.deltaX,t)?(C.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=C.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=C1.debounce(this._debouncerIgnoreNewWheel,c5.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&e<=this._previousMomentum||this._ignoreNewWheel?C.preventDefault():e>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=e}_hasScrolledAncestor(C,t,e){if(C===this.scrollTarget||C===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(C,t,e)&&["auto","scroll"].indexOf(getComputedStyle(C).overflow)!==-1)return!0;if(C!==this&&C.parentElement)return this._hasScrolledAncestor(C.parentElement,t,e)}_canScroll(C,t,e){return e>0&&C.scrollTop<C.scrollHeight-C.offsetHeight||e<0&&C.scrollTop>0||t>0&&C.scrollLeft<C.scrollWidth-C.offsetWidth||t<0&&C.scrollLeft>0}_increasePoolIfNeeded(C){if(this._physicalCount>2&&C){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(C,Math.min(100,e)))}else super._increasePoolIfNeeded(C)}_getScrollLineHeight(){const C=document.createElement("div");C.style.fontSize="initial",C.style.display="none",document.body.appendChild(C);const t=window.getComputedStyle(C).fontSize;return document.body.removeChild(C),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(C=>!C.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const C=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),o=t.find(h=>h.contains(this.elementsContainer.getRootNode().activeElement)||h.contains(this.scrollTarget.getRootNode().activeElement))||t[0];if(!o)return;const a=o.__virtualIndex-C,l=t.indexOf(o)-a;if(l>0)for(let h=0;h<l;h++)this.elementsContainer.appendChild(t[h]);else if(l<0)for(let h=t.length+l;h<t.length;h++)this.elementsContainer.insertBefore(t[h],t[0]);if(I9){const{transform:h}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=h})}}_adjustVirtualIndexOffset(C){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(C)>1e4){const t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),e=t*this.size;this._vidxOffset=Math.round(e-t*this._virtualCount)}else{const t=this._vidxOffset,e=$8,o=100;this._scrollTop===0?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<e&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset)));const a=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=a,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-e&&this._vidxOffset<a&&(this._vidxOffset+=Math.min(a-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(K0.prototype,Ec);class Tc{constructor(C){this.__adapter=new K0(C)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(C){this.__adapter.size=C}scrollToIndex(C){this.__adapter.scrollToIndex(C)}update(C=0,t=this.size-1){this.__adapter.update(C,t)}flush(){this.__adapter.flush()}}/**
|
|
9886
|
+
*/const Sc=1e5,$8=1e3;class K0{constructor({createElements:C,updateElement:t,scrollTarget:e,scrollContainer:o,elementsContainer:a,reorderElements:l}){this.isAttached=!0,this._vidxOffset=0,this.createElements=C,this.updateElement=t,this.scrollTarget=e,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=l,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",h=>this.__onWheel(h)),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(C){if(typeof C!="number"||isNaN(C)||this.size===0||!this.scrollTarget.offsetHeight)return;C=this._clamp(C,0,this.size-1);const t=this.__getVisibleElements().length;let e=Math.floor(C/this.size*this._virtualCount);this._virtualCount-e<t?(e=this._virtualCount-(this.size-C),this._vidxOffset=this.size-this._virtualCount):e<t?C<$8?(e=C,this._vidxOffset=0):(e=$8,this._vidxOffset=C-e):this._vidxOffset=C-e,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(e),this.adjustedFirstVisibleIndex!==C&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(C)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),L3(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(C=0,t=this.size-1){const e=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=C&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),e.push(o))}),this.__afterElementsUpdated(e)}_updateMetrics(C){L3();let t=0,e=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((l,h)=>{e+=this._physicalSizes[l],this._physicalSizes[l]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[l])),t+=this._physicalSizes[l],this._physicalAverageCount+=this._physicalSizes[l]?1:0},C),this._physicalSize=this._physicalSize+t-e,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(C){const t=getComputedStyle(C),e=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return e;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,l=parseFloat(t.borderBottomWidth)||0,h=parseFloat(t.borderTopWidth)||0;return e+o+a+l+h}__updateElement(C,t,e){C.style.paddingTop&&(C.style.paddingTop=""),!this.__preventElementUpdates&&(C.__lastUpdatedIndex!==t||e)&&(this.updateElement(C,t),C.__lastUpdatedIndex=t)}__afterElementsUpdated(C){C.forEach(t=>{const e=t.offsetHeight;if(e===0)t.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=C1.debounce(this.__placeholderClearDebouncer,v5,()=>this._resizeHandler());else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,l)=>a+l,0)/o.length)}})}__getIndexScrollOffset(C){const t=this.__getVisibleElements().find(e=>e.__virtualIndex===C);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(C){C!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=C,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,L3(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),L3())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(C){this.scrollTarget.scrollTop=C}get items(){return{length:Math.min(this.size,Sc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const C=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(C["padding-top"],10),this._isRTL=C.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(C){const t=this.createElements(C),e=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",e.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(e),t}_assignModels(C){const t=[];this._iterateItems((e,o)=>{const a=this._physicalItems[e];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},C),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(C,t,e,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const C=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=C>=0,e=this._getReusables(!t);e.indexes.length&&(this._physicalTop=e.physicalTop,t?(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length):(this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length),this._resizeHandler())}C&&(this.__fixInvalidItemPositioningDebouncer=C1.debounce(this.__fixInvalidItemPositioningDebouncer,p5.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=C1.debounce(this.__scrollReorderDebouncer,p5.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(C)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const C=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,e=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(C&&!e||t&&!o){const a=t,l=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=l}}__onWheel(C){if(C.ctrlKey||this._hasScrolledAncestor(C.target,C.deltaX,C.deltaY))return;let t=C.deltaY;if(C.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:C.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,C.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=C1.debounce(this.__debouncerWheelAnimationFrame,v5,()=>{this._wheelAnimationFrame=!1});const e=Math.abs(C.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,C.deltaX,t)?(C.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=C.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=C1.debounce(this._debouncerIgnoreNewWheel,p5.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&e<=this._previousMomentum||this._ignoreNewWheel?C.preventDefault():e>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=e}_hasScrolledAncestor(C,t,e){if(C===this.scrollTarget||C===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(C,t,e)&&["auto","scroll"].indexOf(getComputedStyle(C).overflow)!==-1)return!0;if(C!==this&&C.parentElement)return this._hasScrolledAncestor(C.parentElement,t,e)}_canScroll(C,t,e){return e>0&&C.scrollTop<C.scrollHeight-C.offsetHeight||e<0&&C.scrollTop>0||t>0&&C.scrollLeft<C.scrollWidth-C.offsetWidth||t<0&&C.scrollLeft>0}_increasePoolIfNeeded(C){if(this._physicalCount>2&&C){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(C,Math.min(100,e)))}else super._increasePoolIfNeeded(C)}_getScrollLineHeight(){const C=document.createElement("div");C.style.fontSize="initial",C.style.display="none",document.body.appendChild(C);const t=window.getComputedStyle(C).fontSize;return document.body.removeChild(C),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(C=>!C.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const C=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),o=t.find(h=>h.contains(this.elementsContainer.getRootNode().activeElement)||h.contains(this.scrollTarget.getRootNode().activeElement))||t[0];if(!o)return;const a=o.__virtualIndex-C,l=t.indexOf(o)-a;if(l>0)for(let h=0;h<l;h++)this.elementsContainer.appendChild(t[h]);else if(l<0)for(let h=t.length+l;h<t.length;h++)this.elementsContainer.insertBefore(t[h],t[0]);if(I9){const{transform:h}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=h})}}_adjustVirtualIndexOffset(C){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(C)>1e4){const t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),e=t*this.size;this._vidxOffset=Math.round(e-t*this._virtualCount)}else{const t=this._vidxOffset,e=$8,o=100;this._scrollTop===0?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<e&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset)));const a=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=a,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-e&&this._vidxOffset<a&&(this._vidxOffset+=Math.min(a-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(K0.prototype,Ec);class Tc{constructor(C){this.__adapter=new K0(C)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(C){this.__adapter.size=C}scrollToIndex(C){this.__adapter.scrollToIndex(C)}update(C=0,t=this.size-1){this.__adapter.update(C,t)}flush(){this.__adapter.flush()}}/**
|
|
9887
9887
|
* @license
|
|
9888
9888
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
9889
9889
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -9891,7 +9891,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9891
9891
|
* @license
|
|
9892
9892
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
9893
9893
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9894
|
-
*/const Ic=i=>class extends i{static get properties(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object,observer:"__selectedItemChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(e=>parseInt(e,10)).reduce((e,o)=>e+o)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${S9()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling(),this.__virtualizer=new Tc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}requestContentUpdate(){this.__virtualizer&&this.__virtualizer.update()}scrollIntoView(t){if(!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let o=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),o=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const a=[...this.children].find(r=>!r.hidden&&r.index===this.__virtualizer.lastVisibleIndex);if(!a||t!==a.index)return;const l=a.getBoundingClientRect(),h=this.getBoundingClientRect(),n=l.bottom-h.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,o){return t instanceof b2?!1:o&&t!==void 0&&e!==void 0?
|
|
9894
|
+
*/const Ic=i=>class extends i{static get properties(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object,observer:"__selectedItemChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(e=>parseInt(e,10)).reduce((e,o)=>e+o)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${S9()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling(),this.__virtualizer=new Tc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}requestContentUpdate(){this.__virtualizer&&this.__virtualizer.update()}scrollIntoView(t){if(!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let o=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),o=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const a=[...this.children].find(r=>!r.hidden&&r.index===this.__virtualizer.lastVisibleIndex);if(!a||t!==a.index)return;const l=a.getBoundingClientRect(),h=this.getBoundingClientRect(),n=l.bottom-h.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,o){return t instanceof b2?!1:o&&t!==void 0&&e!==void 0?E5(o,t)===E5(o,e):t===e}__itemsChanged(t){this.__virtualizer&&t&&(this.__virtualizer.size=t.length,this.__virtualizer.flush(),this.requestContentUpdate())}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&this.requestContentUpdate()}__selectedItemChanged(){this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map(()=>{const e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e})}_updateElement(t,e){const o=this.items[e],a=this.focusedIndex,l=this._isItemSelected(o,this.selectedItem,this.itemIdPath);t.setProperties({item:o,index:e,label:this.getItemLabel(o),selected:l,renderer:this.renderer,focused:!this.loading&&a===e}),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",e!==void 0?"option":!1),t.setAttribute("aria-selected",l.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),o instanceof b2&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",t=>{const e=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(e&&t.deltaY<0||o&&t.deltaY>0)&&t.preventDefault()})}__requestItemByIndex(t){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t,currentScrollerPos:this._oldScrollerPosition}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
9895
9895
|
* @license
|
|
9896
9896
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
9897
9897
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -9954,7 +9954,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9954
9954
|
* @license
|
|
9955
9955
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
9956
9956
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9957
|
-
*/const E8=new Map;function S8(i){return E8.has(i)||E8.set(i,new WeakMap),E8.get(i)}function X0(i,C){i&&i.removeAttribute(C)}function CC(i,C){if(!i||!C)return;const t=S8(C);if(t.has(i))return;const e=X6(i.getAttribute(C));t.set(i,new Set(e))}function Dc(i,C){if(!i||!C)return;const t=S8(C),e=t.get(i);!e||e.size===0?i.removeAttribute(C):E9(i,C,
|
|
9957
|
+
*/const E8=new Map;function S8(i){return E8.has(i)||E8.set(i,new WeakMap),E8.get(i)}function X0(i,C){i&&i.removeAttribute(C)}function CC(i,C){if(!i||!C)return;const t=S8(C);if(t.has(i))return;const e=X6(i.getAttribute(C));t.set(i,new Set(e))}function Dc(i,C){if(!i||!C)return;const t=S8(C),e=t.get(i);!e||e.size===0?i.removeAttribute(C):E9(i,C,M5(e)),t.delete(i)}function T8(i,C,t={newId:null,oldId:null,fromUser:!1}){if(!i||!C)return;const{newId:e,oldId:o,fromUser:a}=t,l=S8(C),h=l.get(i);if(!a&&h){o&&h.delete(o),e&&h.add(e);return}a&&(h?e||l.delete(i):CC(i,C),X0(i,C)),Ir(i,C,o);const n=e||M5(h);n&&E9(i,C,n)}function Rc(i,C){CC(i,C),X0(i,C)}/**
|
|
9958
9958
|
* @license
|
|
9959
9959
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
9960
9960
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10003,7 +10003,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10003
10003
|
font: inherit;
|
|
10004
10004
|
color: inherit;
|
|
10005
10005
|
}
|
|
10006
|
-
`]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=C1.debounce(this._preventInputDebouncer,
|
|
10006
|
+
`]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=C1.debounce(this._preventInputDebouncer,p5.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(e){console.error(e)}}};/**
|
|
10007
10007
|
* @license
|
|
10008
10008
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
10009
10009
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10019,9 +10019,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10019
10019
|
* @license
|
|
10020
10020
|
* Copyright 2017 Google LLC
|
|
10021
10021
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10022
|
-
*/var F8;const
|
|
10022
|
+
*/var F8;const S5=window,y2=S5.trustedTypes,eC=y2?y2.createPolicy("lit-html",{createHTML:i=>i}):void 0,O8="$lit$",u1=`lit$${(Math.random()+"").slice(9)}$`,iC="?"+u1,tp=`<${iC}>`,W1=document,T5=()=>W1.createComment(""),x3=i=>i===null||typeof i!="object"&&typeof i!="function",oC=Array.isArray,ep=i=>oC(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",N8=`[
|
|
10023
10023
|
\f\r]`,_3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sC=/-->/g,aC=/>/g,Y1=RegExp(`>|${N8}(?:([^\\s"'>=/]+)(${N8}*=${N8}*(?:[^
|
|
10024
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),lC=/'/g,nC=/"/g,hC=/^(?:script|style|textarea|title)$/i,b3=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),rC=new WeakMap,G1=W1.createTreeWalker(W1,129,null,!1);function dC(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return eC!==void 0?eC.createHTML(C):C}const ip=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=_3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===_3?d[1]==="!--"?l=sC:d[1]!==void 0?l=aC:d[2]!==void 0?(hC.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=Y1):d[3]!==void 0&&(l=Y1):l===Y1?d[0]===">"?(l=o??_3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?Y1:d[3]==='"'?nC:lC):l===nC||l===lC?l=Y1:l===sC||l===aC?l=_3:(l=Y1,o=void 0);const v=l===Y1&&i[h+1].startsWith("/>")?" ":"";a+=l===_3?n+tp:c>=0?(e.push(r),n.slice(0,c)+O8+n.slice(c)+u1+v):n+u1+(c===-2?(e.push(void 0),h):v)}return[dC(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};class y3{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=ip(C,t);if(this.el=y3.createElement(r,e),G1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=G1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(O8)||p.startsWith(u1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+O8).split(u1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?sp:w[1]==="?"?lp:w[1]==="@"?np:
|
|
10024
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),lC=/'/g,nC=/"/g,hC=/^(?:script|style|textarea|title)$/i,b3=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),rC=new WeakMap,G1=W1.createTreeWalker(W1,129,null,!1);function dC(i,C){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return eC!==void 0?eC.createHTML(C):C}const ip=(i,C)=>{const t=i.length-1,e=[];let o,a=C===2?"<svg>":"",l=_3;for(let h=0;h<t;h++){const n=i[h];let r,d,c=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===_3?d[1]==="!--"?l=sC:d[1]!==void 0?l=aC:d[2]!==void 0?(hC.test(d[2])&&(o=RegExp("</"+d[2],"g")),l=Y1):d[3]!==void 0&&(l=Y1):l===Y1?d[0]===">"?(l=o??_3,c=-1):d[1]===void 0?c=-2:(c=l.lastIndex-d[2].length,r=d[1],l=d[3]===void 0?Y1:d[3]==='"'?nC:lC):l===nC||l===lC?l=Y1:l===sC||l===aC?l=_3:(l=Y1,o=void 0);const v=l===Y1&&i[h+1].startsWith("/>")?" ":"";a+=l===_3?n+tp:c>=0?(e.push(r),n.slice(0,c)+O8+n.slice(c)+u1+v):n+u1+(c===-2?(e.push(void 0),h):v)}return[dC(i,a+(i[t]||"<?>")+(C===2?"</svg>":"")),e]};class y3{constructor({strings:C,_$litType$:t},e){let o;this.parts=[];let a=0,l=0;const h=C.length-1,n=this.parts,[r,d]=ip(C,t);if(this.el=y3.createElement(r,e),G1.currentNode=this.el.content,t===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(o=G1.nextNode())!==null&&n.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const c=[];for(const p of o.getAttributeNames())if(p.endsWith(O8)||p.startsWith(u1)){const v=d[l++];if(c.push(p),v!==void 0){const u=o.getAttribute(v.toLowerCase()+O8).split(u1),w=/([.?@])?(.*)/.exec(v);n.push({type:1,index:a,name:w[2],strings:u,ctor:w[1]==="."?sp:w[1]==="?"?lp:w[1]==="@"?np:P5})}else n.push({type:6,index:a})}for(const p of c)o.removeAttribute(p)}if(hC.test(o.tagName)){const c=o.textContent.split(u1),p=c.length-1;if(p>0){o.textContent=y2?y2.emptyScript:"";for(let v=0;v<p;v++)o.append(c[v],T5()),G1.nextNode(),n.push({type:2,index:++a});o.append(c[p],T5())}}}else if(o.nodeType===8)if(o.data===iC)n.push({type:2,index:a});else{let c=-1;for(;(c=o.data.indexOf(u1,c+1))!==-1;)n.push({type:7,index:a}),c+=u1.length-1}a++}}static createElement(C,t){const e=W1.createElement("template");return e.innerHTML=C,e}}function z2(i,C,t=i,e){var o,a,l,h;if(C===b3)return C;let n=e!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[e]:t._$Cl;const r=x3(C)?void 0:C._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)===null||a===void 0||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,t,e)),e!==void 0?((l=(h=t)._$Co)!==null&&l!==void 0?l:h._$Co=[])[e]=n:t._$Cl=n),n!==void 0&&(C=z2(i,n._$AS(i,C.values),n,e)),C}class op{constructor(C,t){this._$AV=[],this._$AN=void 0,this._$AD=C,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(C){var t;const{el:{content:e},parts:o}=this._$AD,a=((t=C==null?void 0:C.creationScope)!==null&&t!==void 0?t:W1).importNode(e,!0);G1.currentNode=a;let l=G1.nextNode(),h=0,n=0,r=o[0];for(;r!==void 0;){if(h===r.index){let d;r.type===2?d=new I5(l,l.nextSibling,this,C):r.type===1?d=new r.ctor(l,r.name,r.strings,this,C):r.type===6&&(d=new hp(l,this,C)),this._$AV.push(d),r=o[++n]}h!==(r==null?void 0:r.index)&&(l=G1.nextNode(),h++)}return G1.currentNode=W1,a}v(C){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(C,e,t),t+=e.strings.length-2):e._$AI(C[t])),t++}}class I5{constructor(C,t,e,o){var a;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=C,this._$AB=t,this._$AM=e,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var C,t;return(t=(C=this._$AM)===null||C===void 0?void 0:C._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let C=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(C==null?void 0:C.nodeType)===11&&(C=t.parentNode),C}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(C,t=this){C=z2(this,C,t),x3(C)?C===R||C==null||C===""?(this._$AH!==R&&this._$AR(),this._$AH=R):C!==this._$AH&&C!==b3&&this._(C):C._$litType$!==void 0?this.g(C):C.nodeType!==void 0?this.$(C):ep(C)?this.T(C):this._(C)}k(C){return this._$AA.parentNode.insertBefore(C,this._$AB)}$(C){this._$AH!==C&&(this._$AR(),this._$AH=this.k(C))}_(C){this._$AH!==R&&x3(this._$AH)?this._$AA.nextSibling.data=C:this.$(W1.createTextNode(C)),this._$AH=C}g(C){var t;const{values:e,_$litType$:o}=C,a=typeof o=="number"?this._$AC(C):(o.el===void 0&&(o.el=y3.createElement(dC(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.v(e);else{const l=new op(a,this),h=l.u(this.options);l.v(e),this.$(h),this._$AH=l}}_$AC(C){let t=rC.get(C.strings);return t===void 0&&rC.set(C.strings,t=new y3(C)),t}T(C){oC(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const a of C)o===t.length?t.push(e=new I5(this.k(T5()),this.k(T5()),this,this.options)):e=t[o],e._$AI(a),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(C=this._$AA.nextSibling,t){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,t);C&&C!==this._$AB;){const o=C.nextSibling;C.remove(),C=o}}setConnected(C){var t;this._$AM===void 0&&(this._$Cp=C,(t=this._$AP)===null||t===void 0||t.call(this,C))}}class P5{constructor(C,t,e,o,a){this.type=1,this._$AH=R,this._$AN=void 0,this.element=C,this.name=t,this._$AM=o,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(C,t=this,e,o){const a=this.strings;let l=!1;if(a===void 0)C=z2(this,C,t,0),l=!x3(C)||C!==this._$AH&&C!==b3,l&&(this._$AH=C);else{const h=C;let n,r;for(C=a[0],n=0;n<a.length-1;n++)r=z2(this,h[e+n],t,n),r===b3&&(r=this._$AH[n]),l||(l=!x3(r)||r!==this._$AH[n]),r===R?C=R:C!==R&&(C+=(r??"")+a[n+1]),this._$AH[n]=r}l&&!o&&this.j(C)}j(C){C===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,C??"")}}class sp extends P5{constructor(){super(...arguments),this.type=3}j(C){this.element[this.name]=C===R?void 0:C}}const ap=y2?y2.emptyScript:"";class lp extends P5{constructor(){super(...arguments),this.type=4}j(C){C&&C!==R?this.element.setAttribute(this.name,ap):this.element.removeAttribute(this.name)}}class np extends P5{constructor(C,t,e,o,a){super(C,t,e,o,a),this.type=5}_$AI(C,t=this){var e;if((C=(e=z2(this,C,t,0))!==null&&e!==void 0?e:R)===b3)return;const o=this._$AH,a=C===R&&o!==R||C.capture!==o.capture||C.once!==o.once||C.passive!==o.passive,l=C!==R&&(o===R||a);a&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,C),this._$AH=C}handleEvent(C){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&e!==void 0?e:this.element,C):this._$AH.handleEvent(C)}}class hp{constructor(C,t,e){this.element=C,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(C){z2(this,C)}}const cC=S5.litHtmlPolyfillSupport;cC==null||cC(y3,I5),((F8=S5.litHtmlVersions)!==null&&F8!==void 0?F8:S5.litHtmlVersions=[]).push("2.8.0");/**
|
|
10025
10025
|
* @license
|
|
10026
10026
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
10027
10027
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10112,11 +10112,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10112
10112
|
* @license
|
|
10113
10113
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
10114
10114
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10115
|
-
*/function pC(i){return i!=null}function vC(i,C){return i.findIndex(t=>t instanceof b2?!1:C(t))}const up=i=>class extends Lp(p3(P8(J0(A8(B8(Q0(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, filteredItems, loading)","_updateScroller(_scroller, filteredItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),gp(this),this.addController(new Mp(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(t=>{t.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,o){super._propertiesChanged(t,e,o),e.filter!==void 0&&this._filterChanged(e.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",e=>e.preventDefault()),t.addEventListener("opened-changed",e=>{this._overlayOpened=e.detail.value}),this._overlayElement=t}_initScroller(t){const e=`${this._tagNamePrefix}-scroller`,o=this._overlayElement;o.renderer=l=>{l.firstChild||l.appendChild(document.createElement(e))},o.requestContentUpdate();const a=o.querySelector(e);a.owner=t||this,a.getItemLabel=this._getItemLabel.bind(this),a.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=a}_updateScroller(t,e,o,a,l,h,n,r,d){t&&(o&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:o?e:[],opened:o,loading:a,selectedItem:l,itemIdPath:h,focusedIndex:n,renderer:r,theme:d}))}_openedOrItemsChanged(t,e,o){this._overlayOpened=!!(t&&(o||e&&e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this.filteredItems&&this.filteredItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){e!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&U0(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const o=this._getItemElements().find(a=>a.index===t);o?e.setAttribute("aria-activedescendant",o.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(e===void 0)return;t?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),!this._isInputFocused()&&!e8&&this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!t),t?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),t.key==="Tab"?this._overlayElement.restoreFocusOnClose=!1:t.key==="ArrowDown"?(this._onArrowDown(),t.preventDefault()):t.key==="ArrowUp"&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?B5(this.itemLabelPath,t):void 0;return e==null&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?B5(this.itemValuePath,t):void 0;return e===void 0&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this.filteredItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this.filteredItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(t){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&e){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_onEscape(t){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(t.stopPropagation(),this._onClearAction()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",e=>e.preventDefault()),t.addEventListener("click",()=>{e8&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[...this.filteredItems||[],this.selectedItem],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const o=this._inputElementValue;this._lastCustomValue=o;const a=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=o)}else!this.allowCustomValue&&!this.opened&&e?this.value=this._getItemValue(e):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(t){const e=this._inputElementValue,o={};this.filter===e?this._filterChanged(this.filter):o.filter=e,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){typeof t!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(t==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){t===""&&e===void 0||(pC(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider(()=>{this.items=e}),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t,e){const o=e?e[this._focusedIndex]:null,a=this.__getItemIndexByValue(t,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=t[a]);const l=this.__getItemIndexByValue(t,this._getItemValue(o));l>-1?this._focusedIndex=l:this._focusedIndex=this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(t,e){return t&&t.filter(a=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(a).toString().toLowerCase().indexOf(e)>-1))}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),o=this.selectedItem;e>=0?this.selectedItem=this.filteredItems[e]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return!t||!pC(e)?-1:vC(t,o=>this._getItemValue(o)===e)}__getItemIndexByLabel(t,e){return!t||!e?-1:vC(t,o=>this._getItemLabel(o).toString().toLowerCase()===e.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof b2)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}this._closeOrCommit()}}_shouldRemoveFocus(t){return t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:t.relatedTarget===this._overlayElement?(t.composedPath()[0].focus(),!1):!0}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}};/**
|
|
10115
|
+
*/function pC(i){return i!=null}function vC(i,C){return i.findIndex(t=>t instanceof b2?!1:C(t))}const up=i=>class extends Lp(p3(P8(J0(A8(B8(Q0(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, filteredItems, loading)","_updateScroller(_scroller, filteredItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),gp(this),this.addController(new Mp(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(t=>{t.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,o){super._propertiesChanged(t,e,o),e.filter!==void 0&&this._filterChanged(e.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",e=>e.preventDefault()),t.addEventListener("opened-changed",e=>{this._overlayOpened=e.detail.value}),this._overlayElement=t}_initScroller(t){const e=`${this._tagNamePrefix}-scroller`,o=this._overlayElement;o.renderer=l=>{l.firstChild||l.appendChild(document.createElement(e))},o.requestContentUpdate();const a=o.querySelector(e);a.owner=t||this,a.getItemLabel=this._getItemLabel.bind(this),a.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=a}_updateScroller(t,e,o,a,l,h,n,r,d){t&&(o&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:o?e:[],opened:o,loading:a,selectedItem:l,itemIdPath:h,focusedIndex:n,renderer:r,theme:d}))}_openedOrItemsChanged(t,e,o){this._overlayOpened=!!(t&&(o||e&&e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this.filteredItems&&this.filteredItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){e!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&U0(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const o=this._getItemElements().find(a=>a.index===t);o?e.setAttribute("aria-activedescendant",o.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(e===void 0)return;t?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),!this._isInputFocused()&&!e8&&this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!t),t?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),t.key==="Tab"?this._overlayElement.restoreFocusOnClose=!1:t.key==="ArrowDown"?(this._onArrowDown(),t.preventDefault()):t.key==="ArrowUp"&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?E5(this.itemLabelPath,t):void 0;return e==null&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?E5(this.itemValuePath,t):void 0;return e===void 0&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this.filteredItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this.filteredItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(t){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&e){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_onEscape(t){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(t.stopPropagation(),this._onClearAction()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",e=>e.preventDefault()),t.addEventListener("click",()=>{e8&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[...this.filteredItems||[],this.selectedItem],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const o=this._inputElementValue;this._lastCustomValue=o;const a=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=o)}else!this.allowCustomValue&&!this.opened&&e?this.value=this._getItemValue(e):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(t){const e=this._inputElementValue,o={};this.filter===e?this._filterChanged(this.filter):o.filter=e,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){typeof t!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(t==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){t===""&&e===void 0||(pC(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider(()=>{this.items=e}),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t,e){const o=e?e[this._focusedIndex]:null,a=this.__getItemIndexByValue(t,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=t[a]);const l=this.__getItemIndexByValue(t,this._getItemValue(o));l>-1?this._focusedIndex=l:this._focusedIndex=this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(t,e){return t&&t.filter(a=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(a).toString().toLowerCase().indexOf(e)>-1))}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),o=this.selectedItem;e>=0?this.selectedItem=this.filteredItems[e]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return!t||!pC(e)?-1:vC(t,o=>this._getItemValue(o)===e)}__getItemIndexByLabel(t,e){return!t||!e?-1:vC(t,o=>this._getItemLabel(o).toString().toLowerCase()===e.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof b2)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}this._closeOrCommit()}}_shouldRemoveFocus(t){return t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:t.relatedTarget===this._overlayElement?(t.composedPath()[0].focus(),!1):!0}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}};/**
|
|
10116
10116
|
* @license
|
|
10117
10117
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
10118
10118
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10119
|
-
*/j("vaadin-combo-box",pp,{moduleId:"vaadin-combo-box-styles"});class wp extends vp(up(Cp(Jc(o3(
|
|
10119
|
+
*/j("vaadin-combo-box",pp,{moduleId:"vaadin-combo-box-styles"});class wp extends vp(up(Cp(Jc(o3(g5(v1)))))){static get is(){return"vaadin-combo-box"}static get template(){return g2`
|
|
10120
10120
|
<style>
|
|
10121
10121
|
:host([opened]) {
|
|
10122
10122
|
pointer-events: auto;
|
|
@@ -10324,7 +10324,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10324
10324
|
}
|
|
10325
10325
|
|
|
10326
10326
|
.danger .icon {
|
|
10327
|
-
color: ${L(
|
|
10327
|
+
color: ${L(W3)};
|
|
10328
10328
|
}
|
|
10329
10329
|
|
|
10330
10330
|
.warning .icon {
|
|
@@ -10403,7 +10403,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10403
10403
|
display: flex;
|
|
10404
10404
|
align-items: center;
|
|
10405
10405
|
}
|
|
10406
|
-
`;function Hp({size:i,variant:C,customIcon:t,fullWidth:e}){const o=a2({"alert-container":!0,["alert-"+i]:!0,[C]:!0,"full-width":e}),a=a2({icon:!0,[C]:!0}),l={big:"40",small:"24"},h={normal:"flat-question",info:"flat-info",danger:"flat-error",warning:"flat-alert",success:"flat-success"},n={big:{title:"headline3",text:"body1"},small:{title:"body2",text:"body1"},fullWidth:{title:"footnote1",text:"footnote2"}},r=e?n.fullWidth:n[i];return{alertStyle:o,alertIconStyle:a,iconName:t||h[C],iconSize:l[i],textVariants:r}}class
|
|
10406
|
+
`;function Hp({size:i,variant:C,customIcon:t,fullWidth:e}){const o=a2({"alert-container":!0,["alert-"+i]:!0,[C]:!0,"full-width":e}),a=a2({icon:!0,[C]:!0}),l={big:"40",small:"24"},h={normal:"flat-question",info:"flat-info",danger:"flat-error",warning:"flat-alert",success:"flat-success"},n={big:{title:"headline3",text:"body1"},small:{title:"body2",text:"body1"},fullWidth:{title:"footnote1",text:"footnote2"}},r=e?n.fullWidth:n[i];return{alertStyle:o,alertIconStyle:a,iconName:t||h[C],iconSize:l[i],textVariants:r}}class F5 extends f{constructor(){super(),this.open=!0,this.title="",this.text="",this.showCloseButton=!1,this.variant="info",this.size="small",this.fullWidth=!1,this.customIcon=""}closeHandler(){this.open=!1,this.dispatchEvent(new CustomEvent("close",{detail:{open:this.open}})),this.requestUpdate()}render(){const{open:C,title:t,text:e,showCloseButton:o,size:a,variant:l,fullWidth:h,closeHandler:n,customIcon:r}=this,{alertStyle:d,textVariants:c,iconName:p,iconSize:v}=Hp({size:a,variant:l,customIcon:r,fullWidth:h});if(!C)return null;const u=ut(e);return M`
|
|
10407
10407
|
<div class=${d}>
|
|
10408
10408
|
<div class="inner-container">
|
|
10409
10409
|
<div class="icon-container">
|
|
@@ -10422,7 +10422,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10422
10422
|
</button>
|
|
10423
10423
|
</div>`:""}
|
|
10424
10424
|
</div>
|
|
10425
|
-
</div>`}}g(
|
|
10425
|
+
</div>`}}g(F5,"styles",fp),g(F5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(F5,"properties",{title:{type:String},text:{type:String},showCloseButton:{type:Boolean},variant:{type:String},size:{type:String},fullWidth:{type:Boolean},customIcon:{type:String}}),customElements.get("cas-alert")||customElements.define("cas-alert",F5);/**
|
|
10426
10426
|
* @license
|
|
10427
10427
|
* Copyright 2018 Google LLC
|
|
10428
10428
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -10700,7 +10700,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10700
10700
|
width: 100%;
|
|
10701
10701
|
}
|
|
10702
10702
|
}
|
|
10703
|
-
`,LC={head:[{id:1,icon:"flat-info",name:"Centro de ayuda",url:"https://centrodeayuda.clinicaalemana.cl/?itm_source=header-cas&itm_medium=web&itm_campaign=centro-de-ayuda-header&_ga=2.163849791.1865825919.1676902332-1791707714.1661293851&_gl=1*11v0ttz*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NjkxNDIzNi44Ny4wLjE2NzY5MTQyMzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NjkxNDIzNi45Ny4wLjE2NzY5MTQyMzYuNjAuMC4w",hasChildren:!1},{id:2,icon:"flat-helpCenter",name:"Llamar",hasChildren:!0,children:[{name:"Mesa Central",text:"+56 22210 1111",icon:"flat-hospital",url:"tel:+56222101111"},{name:"Reserva de horas",text:"+56 2 2910 1700",icon:"flat-calendarOn",url:"tel:+56229101700"},{name:"Rescate de emergencia",text:"+56 2 2910 9911",icon:"flat-urgency",url:"tel:+56229109911"}]},{id:3,icon:"flat-profileOff",name:"Mi Alemana Go",hasChildren:!0,children:[{name:"Iniciar sesión",login:!0,url:"https://www.clinicaalemana.cl/alemana-go-web?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-iniciar-sesion"},{name:"Crear cuenta",url:"https://miclave.clinicaalemana.cl?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-pide-tu-clave&_ga=2.98190751.1865825919.1676902332-1791707714.1661293851&_gl=1*1oaa24h*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NzA3NjU3Ni45Ny4wLjE2NzcwNzY1NzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NzA3NjU3Ni4xMDcuMC4xNjc3MDc2NTc2LjYwLjAuMA.."}]}],support:[{id:4,name:"Centro de ayuda",icon:"flat-question",url:"https://centrodeayuda.clinicaalemana.cl/"},{id:1,name:"Mesa Central <br>+56 22210 1111",icon:"flat-hospital",url:"tel:+56222101111"},{id:2,name:"Reserva de hora <br>+56 22210 1700",icon:"flat-calendarOn",url:"tel:+56222101700"},{id:3,name:"Rescate de emergencia <br> +56 22910 9911",icon:"flat-phone",url:"tel:+56229109911"}],legals:[{id:1,name:"Información normativa",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales"},{id:2,name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"},{id:3,name:"Términos legales",url:"https://www.clinicaalemana.cl/terminos-y-condiciones/alemana"}]},gC=[{id:1,name:"Servicios en línea",icon:"flat-medicTool",hasChildren:!0,children:[{section:"Valores y pagos",items:[{name:"Aranceles",text:"Conoce los valores",icon:"flat-search",url:"https://www.alemana.cl/wls/arancel",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-aranceles"},{name:"Presupuesto maternidad",text:"Pide tu cotización",icon:"flat-pregnant",url:"https://www.alemana.cl/pptoweb/Presupuesto/Maternidad#es",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-maternalidad"},{name:"Presupuesto hospitalización",text:"Solicita tu cotización",icon:"flat-medicTool",url:"https://www.alemana.cl/pptoweb/Presupuesto/Hospitalizacion#es",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-hospitalizacion"},{name:"Pago de cuentas",text:"Ambulatorio y hospitalización",icon:"flat-fileInvoiceDollar",url:"https://pagos.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-de-cuentas"},{name:"Pago por Webpay",text:"Convenio accidentes y cirugía plástica",icon:"flat-creditCard",url:"https://www.webpay.cl/company/29421",tracking_type:"utm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-por-webpay"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-isapres-preferentes"}]},{section:"Exámenes",items:[{name:"Agendar",text:"Reserva tus exámenes",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-agendar"},{name:"Simulador",text:"Simula el copago estimado",icon:"flat-fileInvoiceDollar",url:"https://simulador.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-simulador"},{name:"Indicaciones",text:"Revisa cómo prepararte",icon:"flat-paper",url:"https://www.alemana.cl/masterweb/Frm/BuscaExamen.aspx",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-indicaciones"},{name:"Resultados",text:"Descarga informes e imágenes",icon:"flat-ticket",url:"https://exameneslab.alemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-resultados"}]},{section:"Hospitalización",items:[{name:"Preadmisión",text:"Realízala antes de tu ingreso",icon:"flat-profileOff",url:"https://m.alemana.cl/preadmision",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-preadmision"},{name:"Guía de ingreso",text:"Lo que debes tener en cuenta ",icon:"flat-listOff",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-guia-de-ingreso"},{name:"Proceso de alta",text:"Conócelo en detalle",icon:"flat-success",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/alta-medica",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-proceso-de-alta"},{name:"Pago de cuentas",text:"Regulariza tu situación",icon:"flat-fileInvoiceDollar",url:"https://pagos.clinicaalemana.cl/pago-de-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-pago-de-cuentas"}]},{section:"Reserva de hora",items:[{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-calendarOn",url:"https://reserva.alemana.cl/"},{name:"Telemedicina",text:"Atiéndete desde cualquier lugar",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"Exámenes y procedimientos",text:"Agenda tus pruebas médicas",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]}],align:"start",cta:{visible:!1,size:"large",color:"gray",title:"¿Necesitas realizarte un examen o procedimiento?",text:"Tenemos más de 700 tipos de análisis disponibles para ti.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Reservar",url:""}}},{id:2,name:"Especialidades y servicios",icon:"flat-doctor",hasChildren:!0,children:[{section:"Atenciones",items:[{name:"Servicios clínicos",text:"Conoce los que tenemos",icon:"flat-tube",url:"https://www.clinicaalemana.cl/nuestros-servicios/servicios-clinicos",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-servicios-clinicos"},{name:"Especialidades",text:"Revisa las más de 60 disponibles ",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/nuestros-servicios/especialidades",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-especialidades"},{name:"Nuestros médicos",text:"Busca por área o especialidad",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/profesional"},{name:"Sucursales",text:"Busca la más cercana",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/sucursales"}]},{section:"Modalidad de atención",items:[{name:"Telemedicina",text:"Consulta de forma virtual",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Consulta para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-branchOffices",url:"https://reserva.alemana.cl/reserva/portal/busqueda",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-presencial"}]},{section:"Atención especializada",columns:2,items:[{name:"Maternidad integral",text:"Conoce nuestro servicio",icon:"flat-pregnant",url:"https://www.clinicaalemana.cl/especialidades/maternidad-y-familia/maternidad-integral",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-maternidad-integral"},{name:"Paciente regional",text:"Gestiona tu visita",icon:"flat-regionalPatient",url:"https://www.clinicaalemana.cl/paciente-regional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-regional"},{name:"Hospitalización",text:"Revisa todo el proceso",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-hospitalizacion"},{name:"Covid-19",text:"Infórmate sobre lo nuevo",icon:"flat-syringe",url:"https://www.clinicaalemana.cl/covid-19",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-covid-19"},{name:"Salud empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-salud-empresa"},{name:"Centros",text:"Busca el más cercano",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/centros",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-centros"},{name:"Paciente internacional",text:"Solicita tu atención",icon:"flat-interPatient",url:"https://www.clinicaalemana.cl/paciente-internacional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-internacional"},{name:"Programas",text:"Encuentra el mejor para ti",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/programas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-programas"}]}],align:"center",cta:{visible:!1,size:"small",color:"purple",title:"¿Necesitas un presupuesto?",text:"Puedes solicitar uno para tu parto o una hospitalización.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Solicitar",url:""}}},{id:3,name:"Seguros y convenios",icon:"flat-safety",hasChildren:!0,children:[{section:"",items:[{name:"Convenio de Accidentes",text:"Protege a tu familia",icon:"flat-safety",url:"https://www.clinicaalemana.cl/convenio-de-accidentes",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-convenio-de-accidentes"},{name:"Alemana Seguros",text:"Elige el mejor para ti",icon:"flat-safety",url:"https://www.alemanaseguros.cl",tracking_type:"utm",campaign:"clininicalamana_menu_superior"},{name:"Todo Alemana",text:"Revisa nuestros planes",icon:"flat-safety",url:"https://www.clinicaalemana.cl/todo-alemana/caracteristicas-generales",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-todo-alemana"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana"}]}],align:"center",cta:{visible:!1,size:"medium",color:"red",title:"¿Necesitas realizarte un examen?",text:"Más de 700 exámenes y procedimeintos disponibles",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Agendar ",url:""}}},{id:4,name:"Prevención y bienestar",icon:"flat-sex",hasChildren:!0,children:[{section:"Personas",items:[{name:"Chequeos y programas",text:"Encuentra la mejor opción",icon:"flat-chartOff",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar/acciones-para-cuidarte",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-personas-acciones-para-cuidarte"},{name:"Importancia de cuidarse",text:"Descubre por qué hacerlo",icon:"flat-lightbulb",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar/importancia-de-cuidarse",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-personas-importancia-de-cuidarse"},{name:"Aprende a cuidarte",text:"Revisa nuestros consejos",icon:"flat-search",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar/aprender",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-personas-aprende-a-cuidarte"}]},{section:"Empresas",items:[{name:"Salud Empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-empresas-salud-empresa"}]}],align:"end",cta:{visible:!1}},{id:5,name:"Educación de salud",icon:"flat-youtube",hasChildren:!0,children:[{section:"",items:[{name:"Todo sobre salud",text:"Revisa las principales noticias",icon:"flat-newspaper2",url:"https://www.clinicaalemana.cl/articulos/todas-las-noticias",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-todo-sobre-salud"},{name:"Banco de enfermedades",text:"Encuentra todo lo que necesitas",icon:"flat-textColor",url:"https://www.clinicaalemana.cl/banco-de-enfermedades",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-banco-de-enfermedades"},{name:"Alemana Podcast",text:"Escucha a nuestros expertos ",icon:"flat-spotify",url:"https://www.clinicaalemana.cl/centro-de-extension/podcast",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-alemana-podcast"},{name:"Charlas y talleres",text:"Aprende con nuestros especialistas",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/centro-de-extension/bienvenida-charlas-y-talleres",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-charlas-y-talleres"},{name:"Video educativos",text:"Mira nuestro contenido",icon:"flat-youtube",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA",tracking_type:"utm",campaign:"menu-superior-educación-de-salud-video-educativos"}]}],align:"end",cta:{visible:!1}}],xp=LC.head;class F5 extends f{constructor(){super(),this.showSignin=!1}openBookingBox(){const C=new CustomEvent("openBookingBox");document.dispatchEvent(C)}openSignIn(){this.showSignin=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}openMenu(){const C=new CustomEvent("openMenuMobile");document.dispatchEvent(C)}updated(){const C=this.shadowRoot.querySelectorAll(".group > li");C.forEach(t=>{t.addEventListener("click",()=>{C.forEach(e=>{e.classList.remove("active")}),t.classList.add("active")})})}render(){const{isMobile:C,isTablet:t,isMacbookAir:e}=this,o=xp,a=e?"Reservar":"Reservar hora";document.addEventListener("click",r=>{r.composedPath().includes(this)||this.shadowRoot.querySelectorAll(".group > li").forEach(c=>{c.classList.remove("active")})});const l=r=>{const{icon:d,name:c,text:p,url:v,login:u}=r;return M`<li>
|
|
10703
|
+
`,LC={head:[{id:1,icon:"flat-info",name:"Centro de ayuda",url:"https://centrodeayuda.clinicaalemana.cl/?itm_source=header-cas&itm_medium=web&itm_campaign=centro-de-ayuda-header&_ga=2.163849791.1865825919.1676902332-1791707714.1661293851&_gl=1*11v0ttz*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NjkxNDIzNi44Ny4wLjE2NzY5MTQyMzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NjkxNDIzNi45Ny4wLjE2NzY5MTQyMzYuNjAuMC4w",hasChildren:!1},{id:2,icon:"flat-helpCenter",name:"Llamar",hasChildren:!0,children:[{name:"Mesa Central",text:"+56 22210 1111",icon:"flat-hospital",url:"tel:+56222101111"},{name:"Reserva de horas",text:"+56 2 2910 1700",icon:"flat-calendarOn",url:"tel:+56229101700"},{name:"Rescate de emergencia",text:"+56 2 2910 9911",icon:"flat-urgency",url:"tel:+56229109911"}]},{id:3,icon:"flat-profileOff",name:"Mi Alemana Go",hasChildren:!0,children:[{name:"Iniciar sesión",login:!0,url:"https://www.clinicaalemana.cl/alemana-go-web?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-iniciar-sesion"},{name:"Crear cuenta",url:"https://miclave.clinicaalemana.cl?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-pide-tu-clave&_ga=2.98190751.1865825919.1676902332-1791707714.1661293851&_gl=1*1oaa24h*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NzA3NjU3Ni45Ny4wLjE2NzcwNzY1NzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NzA3NjU3Ni4xMDcuMC4xNjc3MDc2NTc2LjYwLjAuMA.."}]}],support:[{id:4,name:"Centro de ayuda",icon:"flat-question",url:"https://centrodeayuda.clinicaalemana.cl/"},{id:1,name:"Mesa Central <br>+56 22210 1111",icon:"flat-hospital",url:"tel:+56222101111"},{id:2,name:"Reserva de hora <br>+56 22210 1700",icon:"flat-calendarOn",url:"tel:+56222101700"},{id:3,name:"Rescate de emergencia <br> +56 22910 9911",icon:"flat-phone",url:"tel:+56229109911"}],legals:[{id:1,name:"Información normativa",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales"},{id:2,name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"},{id:3,name:"Términos legales",url:"https://www.clinicaalemana.cl/terminos-y-condiciones/alemana"}]},gC=[{id:1,name:"Servicios en línea",icon:"flat-medicTool",hasChildren:!0,children:[{section:"Valores y pagos",items:[{name:"Aranceles",text:"Conoce los valores",icon:"flat-search",url:"https://www.alemana.cl/wls/arancel",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-aranceles"},{name:"Presupuesto maternidad",text:"Pide tu cotización",icon:"flat-pregnant",url:"https://www.alemana.cl/pptoweb/Presupuesto/Maternidad#es",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-maternalidad"},{name:"Presupuesto hospitalización",text:"Solicita tu cotización",icon:"flat-medicTool",url:"https://www.alemana.cl/pptoweb/Presupuesto/Hospitalizacion#es",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-hospitalizacion"},{name:"Pago de cuentas",text:"Ambulatorio y hospitalización",icon:"flat-fileInvoiceDollar",url:"https://pagos.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-de-cuentas"},{name:"Pago por Webpay",text:"Convenio accidentes y cirugía plástica",icon:"flat-creditCard",url:"https://www.webpay.cl/company/29421",tracking_type:"utm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-por-webpay"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-isapres-preferentes"}]},{section:"Exámenes",items:[{name:"Agendar",text:"Reserva tus exámenes",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-agendar"},{name:"Simulador",text:"Simula el copago estimado",icon:"flat-fileInvoiceDollar",url:"https://simulador.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-simulador"},{name:"Indicaciones",text:"Revisa cómo prepararte",icon:"flat-paper",url:"https://www.alemana.cl/masterweb/Frm/BuscaExamen.aspx",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-indicaciones"},{name:"Resultados",text:"Descarga informes e imágenes",icon:"flat-ticket",url:"https://exameneslab.alemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-resultados"}]},{section:"Hospitalización",items:[{name:"Preadmisión",text:"Realízala antes de tu ingreso",icon:"flat-profileOff",url:"https://m.alemana.cl/preadmision",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-preadmision"},{name:"Guía de ingreso",text:"Lo que debes tener en cuenta ",icon:"flat-listOff",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-guia-de-ingreso"},{name:"Proceso de alta",text:"Conócelo en detalle",icon:"flat-success",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/alta-medica",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-proceso-de-alta"},{name:"Consulta E° cuenta",text:"Regulariza tu situación",icon:"flat-fileInvoiceDollar",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/cuenta",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-pago-de-cuentas"}]},{section:"Reserva de hora",items:[{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-calendarOn",url:"https://reserva.alemana.cl/"},{name:"Telemedicina",text:"Atiéndete desde cualquier lugar",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"Exámenes y procedimientos",text:"Agenda tus pruebas médicas",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]}],align:"start",cta:{visible:!1,size:"large",color:"gray",title:"¿Necesitas realizarte un examen o procedimiento?",text:"Tenemos más de 700 tipos de análisis disponibles para ti.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Reservar",url:""}}},{id:2,name:"Especialidades y servicios",icon:"flat-doctor",hasChildren:!0,children:[{section:"Atenciones",items:[{name:"Servicios clínicos",text:"Conoce los que tenemos",icon:"flat-tube",url:"https://www.clinicaalemana.cl/nuestros-servicios/servicios-clinicos",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-servicios-clinicos"},{name:"Especialidades",text:"Revisa las más de 60 disponibles ",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/nuestros-servicios/especialidades",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-especialidades"},{name:"Nuestros médicos",text:"Busca por área o especialidad",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/profesional"},{name:"Sucursales",text:"Busca la más cercana",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/sucursales"}]},{section:"Modalidad de atención",items:[{name:"Telemedicina",text:"Consulta de forma virtual",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Consulta para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-branchOffices",url:"https://reserva.alemana.cl/reserva/portal/busqueda",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-presencial"}]},{section:"Atención especializada",columns:2,items:[{name:"Maternidad integral",text:"Conoce nuestro servicio",icon:"flat-pregnant",url:"https://www.clinicaalemana.cl/especialidades/maternidad-y-familia/maternidad-integral",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-maternidad-integral"},{name:"Paciente regional",text:"Gestiona tu visita",icon:"flat-regionalPatient",url:"https://www.clinicaalemana.cl/paciente-regional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-regional"},{name:"Hospitalización",text:"Revisa todo el proceso",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-hospitalizacion"},{name:"Covid-19",text:"Infórmate sobre lo nuevo",icon:"flat-syringe",url:"https://www.clinicaalemana.cl/covid-19",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-covid-19"},{name:"Salud empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-salud-empresa"},{name:"Centros",text:"Busca el más cercano",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/centros",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-centros"},{name:"Paciente internacional",text:"Solicita tu atención",icon:"flat-interPatient",url:"https://www.clinicaalemana.cl/paciente-internacional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-internacional"},{name:"Programas",text:"Encuentra el mejor para ti",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/programas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-programas"}]}],align:"center",cta:{visible:!1,size:"small",color:"purple",title:"¿Necesitas un presupuesto?",text:"Puedes solicitar uno para tu parto o una hospitalización.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Solicitar",url:""}}},{id:3,name:"Seguros y convenios",icon:"flat-safety",hasChildren:!0,children:[{section:"",items:[{name:"Convenio de Accidentes",text:"Protege a tu familia",icon:"flat-safety",url:"https://www.clinicaalemana.cl/convenio-de-accidentes",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-convenio-de-accidentes"},{name:"Alemana Seguros",text:"Elige el mejor para ti",icon:"flat-safety",url:"https://www.alemanaseguros.cl",tracking_type:"utm",campaign:"clininicalamana_menu_superior"},{name:"Todo Alemana",text:"Revisa nuestros planes",icon:"flat-safety",url:"https://www.clinicaalemana.cl/todo-alemana/caracteristicas-generales",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-todo-alemana"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana"}]}],align:"center",cta:{visible:!1,size:"medium",color:"red",title:"¿Necesitas realizarte un examen?",text:"Más de 700 exámenes y procedimeintos disponibles",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Agendar ",url:""}}},{id:4,name:"Prevención y bienestar",icon:"flat-sex",hasChildren:!0,children:[{section:"Personas",items:[{name:"Chequeos y programas",text:"Encuentra la mejor opción",icon:"flat-chartOff",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar/acciones-para-cuidarte",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-personas-acciones-para-cuidarte"},{name:"Importancia de cuidarse",text:"Descubre por qué hacerlo",icon:"flat-lightbulb",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar/importancia-de-cuidarse",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-personas-importancia-de-cuidarse"},{name:"Aprende a cuidarte",text:"Revisa nuestros consejos",icon:"flat-search",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar/aprender",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-personas-aprende-a-cuidarte"}]},{section:"Empresas",items:[{name:"Salud Empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-empresas-salud-empresa"}]}],align:"end",cta:{visible:!1}},{id:5,name:"Educación de salud",icon:"flat-youtube",hasChildren:!0,children:[{section:"",items:[{name:"Todo sobre salud",text:"Revisa las principales noticias",icon:"flat-newspaper2",url:"https://www.clinicaalemana.cl/articulos/todas-las-noticias",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-todo-sobre-salud"},{name:"Banco de enfermedades",text:"Encuentra todo lo que necesitas",icon:"flat-textColor",url:"https://www.clinicaalemana.cl/banco-de-enfermedades",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-banco-de-enfermedades"},{name:"Alemana Podcast",text:"Escucha a nuestros expertos ",icon:"flat-spotify",url:"https://www.clinicaalemana.cl/centro-de-extension/podcast",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-alemana-podcast"},{name:"Charlas y talleres",text:"Aprende con nuestros especialistas",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/centro-de-extension/bienvenida-charlas-y-talleres",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-charlas-y-talleres"},{name:"Video educativos",text:"Mira nuestro contenido",icon:"flat-youtube",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA",tracking_type:"utm",campaign:"menu-superior-educación-de-salud-video-educativos"}]}],align:"end",cta:{visible:!1}}],xp=LC.head;class O5 extends f{constructor(){super(),this.showSignin=!1}openBookingBox(){const C=new CustomEvent("openBookingBox");document.dispatchEvent(C)}openSignIn(){this.showSignin=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}openMenu(){const C=new CustomEvent("openMenuMobile");document.dispatchEvent(C)}updated(){const C=this.shadowRoot.querySelectorAll(".group > li");C.forEach(t=>{t.addEventListener("click",()=>{C.forEach(e=>{e.classList.remove("active")}),t.classList.add("active")})})}render(){const{isMobile:C,isTablet:t,isMacbookAir:e}=this,o=xp,a=e?"Reservar":"Reservar hora";document.addEventListener("click",r=>{r.composedPath().includes(this)||this.shadowRoot.querySelectorAll(".group > li").forEach(c=>{c.classList.remove("active")})});const l=r=>{const{icon:d,name:c,text:p,url:v,login:u}=r;return M`<li>
|
|
10704
10704
|
<a href="${v}">
|
|
10705
10705
|
${d?M`
|
|
10706
10706
|
<div class="icon">
|
|
@@ -10822,7 +10822,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10822
10822
|
</ul>
|
|
10823
10823
|
</div>
|
|
10824
10824
|
</div>
|
|
10825
|
-
`}}g(
|
|
10825
|
+
`}}g(O5,"styles",Zp),g(O5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(O5,"properties",{theme:{type:String},variant:{type:String},isMobile:{type:Boolean},isTablet:{type:Boolean},isMacbookAir:{type:Boolean}});const D8={light:{color:"#01A49A",secondColor:"#587993"},dark:{color:"#FFFFFF",secondColor:"#FFFFFF"}},_p=({color:i})=>M`
|
|
10826
10826
|
<svg width="192" height="49" viewBox="0 0 192 49" fill="${i}" xmlns="http://www.w3.org/2000/svg">
|
|
10827
10827
|
<path d="M35.8136 12.9128C35.5209 12.9128 35.2233 12.9272 34.9402 12.9512C32.2769 13.148 29.748 14.276 27.8045 16.1384C27.7469 16.196 27.6846 16.2536 27.6174 16.316C26.2306 17.708 25.2276 19.4168 24.695 21.2792L19.9538 16.4024H19.9586L19.7427 16.1864C18.4518 14.9288 17.8376 13.172 18.0487 11.372C18.3559 8.7608 20.4769 6.6584 23.097 6.3752C25.9954 6.0584 28.6731 7.9448 29.3305 10.7672C29.3737 10.9496 29.5753 11.0504 29.7432 10.9688C31.3124 10.244 32.9823 9.8024 34.7147 9.6632C34.897 9.6488 35.0218 9.476 34.9786 9.2984C33.7021 4.1192 29.0858 0.5 23.7448 0.5C17.3577 0.5 12.1655 5.6936 12.1655 12.0776C12.1655 12.3704 12.1751 12.6536 12.1991 12.932C12.0264 12.9224 11.8488 12.9176 11.6761 12.9176C5.29377 12.9176 0.101562 18.116 0.101562 24.5C0.101562 30.884 5.29377 36.0776 11.6761 36.0776C11.9688 36.0776 12.2615 36.0632 12.5494 36.0392C15.8221 35.7992 18.8501 34.1624 20.8512 31.5512C20.9424 31.436 20.9328 31.268 20.8272 31.1624L17.0986 27.332C16.9642 27.1928 16.7291 27.2216 16.6283 27.3896C16.374 27.8216 16.0717 28.2104 15.7262 28.556C14.6417 29.6408 13.202 30.2264 11.6569 30.236C8.63847 30.2312 6.07116 27.7784 5.9368 24.7688C5.86002 23.0456 6.52704 21.4232 7.80829 20.252C8.69606 19.4408 9.82855 18.9272 11.0234 18.7976C12.7558 18.6104 14.4353 19.1864 15.6686 20.3864C15.755 20.468 15.8365 20.5544 15.9133 20.636L27.2383 32.2856L27.9869 33.068C28.0972 33.1832 28.2076 33.3176 28.3132 33.4568C29.2201 34.652 29.6184 36.1448 29.4313 37.6568C29.1098 40.2488 26.9935 42.3416 24.3974 42.6248C21.523 42.9416 18.8453 41.0744 18.1687 38.2808C18.1255 38.0984 17.9288 38.0024 17.756 38.0792C16.1868 38.7848 14.5121 39.212 12.7702 39.3416C12.5878 39.356 12.4582 39.5288 12.5062 39.7064C13.8019 44.9624 18.4614 48.5 23.7544 48.5C24.3543 48.5 24.9589 48.4568 25.5731 48.3608C31.4611 47.4632 35.7704 41.9816 35.2953 36.068C35.4681 36.0776 35.6456 36.0824 35.8184 36.0824H38.2657C38.4385 36.0824 38.5776 35.9432 38.5776 35.7704V30.548C38.5776 30.3752 38.4385 30.236 38.2657 30.236H35.8184C34.3116 30.236 32.8864 29.6552 31.8163 28.6136L31.5715 28.3592C30.6118 27.2984 30.0791 25.9304 30.0791 24.5C30.0791 22.964 30.6742 21.524 31.7587 20.4392C32.8432 19.3592 34.278 18.764 35.804 18.7592C38.9663 18.7544 41.5576 21.4376 41.5576 24.6008V28.2392C41.5576 31.3016 44.0386 33.7832 47.1002 33.7832H47.3977V24.5C47.3977 18.1112 42.2055 12.9176 35.8232 12.9176L35.8136 12.9128Z"/>
|
|
10828
10828
|
<path d="M66.2237 40.3113H58.6945C58.6129 40.3113 58.5361 40.3641 58.5122 40.4409L57.3509 43.8729C57.3221 43.9497 57.2501 44.0025 57.1685 44.0025H52.1874C52.0819 44.0025 52.0099 43.8969 52.0435 43.8009L59.4911 23.2041C59.5199 23.1273 59.5919 23.0745 59.6734 23.0745H65.3023C65.3839 23.0745 65.4559 23.1273 65.4847 23.2041L72.9323 43.8009C72.9659 43.9017 72.8939 44.0025 72.7883 44.0025H67.7497C67.6681 44.0025 67.5913 43.9497 67.5673 43.8729L66.406 40.4409C66.3772 40.3641 66.3053 40.3113 66.2237 40.3113ZM62.3511 29.0409L59.947 36.2217C59.923 36.2985 59.9758 36.3753 60.0573 36.3753H64.8896C64.9712 36.3753 65.024 36.2985 65 36.2217L62.5719 29.0409C62.5383 28.9353 62.3847 28.9353 62.3511 29.0409Z" />
|
|
@@ -11154,7 +11154,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11154
11154
|
will-change: initial;
|
|
11155
11155
|
}
|
|
11156
11156
|
}
|
|
11157
|
-
`,kp=gC;let $p=(
|
|
11157
|
+
`,kp=gC;let $p=(I3=class extends f{constructor(){super(),this.showMenuMobile=!1}openBookingBox(){const C=new CustomEvent("openBookingBox");document.dispatchEvent(C)}updated(){document.addEventListener("openMenuMobile",()=>{this.showMenuMobile=!0,this.requestUpdate()}),document.addEventListener("closeMenuMobile",()=>{this.showMenuMobile=!1,this.requestUpdate()})}urlFormatter(C){let t=C.url;return C.tracking_type&&(t=`${C.url}?${C.tracking_type}_source=clinicaalemana&${C.tracking_type}_medium=web&${C.tracking_type}_campaign=${C.campaign}`),t}render(){const{showMenuMobile:C,isMobile:t,isTablet:e,isDesktop:o}=this,a=l=>{var h;return M`
|
|
11158
11158
|
<li class="item">
|
|
11159
11159
|
<div class="top">
|
|
11160
11160
|
<p class="title">${l.name}</p>
|
|
@@ -11218,7 +11218,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11218
11218
|
</nav>
|
|
11219
11219
|
</div>
|
|
11220
11220
|
</div>
|
|
11221
|
-
`}},g(
|
|
11221
|
+
`}},g(I3,"styles",zp),g(I3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(I3,"properties",{theme:{type:String},variant:{type:String},isMobile:{type:Boolean},isTablet:{type:Boolean},isDesktop:{type:Boolean},showAlert:{type:Boolean}}),I3);const Ap=H`
|
|
11222
11222
|
.container {
|
|
11223
11223
|
display: none;
|
|
11224
11224
|
}
|
|
@@ -11434,7 +11434,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11434
11434
|
}
|
|
11435
11435
|
|
|
11436
11436
|
}
|
|
11437
|
-
`,{support:Bp,legals:Ep}=LC;class
|
|
11437
|
+
`,{support:Bp,legals:Ep}=LC;class N5 extends f{constructor(){super(),this.openDrawer=!1,this.current=null}handleClose(){const C=new CustomEvent("closeMenuMobile");document.dispatchEvent(C)}handleOpenDrawer(C){this.openDrawer=!0,this.current=C,this.requestUpdate()}handleCloseDrawer(){this.openDrawer=!1,this.current=null,this.requestUpdate()}render(){const{current:C,openDrawer:t}=this,e=l=>{const{name:h,icon:n,url:r}=l;return r?M`<a href=${r} class="item">
|
|
11438
11438
|
<cas-icon name="${n}" size="20"></cas-icon>
|
|
11439
11439
|
<cas-text variant="body2">${d2(h)}</cas-text>
|
|
11440
11440
|
</a>`:M`<li class="item" @click=${()=>this.handleOpenDrawer(l)}>
|
|
@@ -11500,7 +11500,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11500
11500
|
<div class="close" @click=${this.handleClose}>
|
|
11501
11501
|
<cas-icon name="flat-close" size="24"></cas-icon>
|
|
11502
11502
|
</div>
|
|
11503
|
-
`}}g(
|
|
11503
|
+
`}}g(N5,"styles",Ap),g(N5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(N5,"properties",{theme:{type:String},isMobile:{type:Boolean},isTablet:{type:Boolean}});const Sp=H`
|
|
11504
11504
|
.container {
|
|
11505
11505
|
position: relative;
|
|
11506
11506
|
display: flex;
|
|
@@ -11580,7 +11580,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11580
11580
|
padding-bottom: 24px;
|
|
11581
11581
|
}
|
|
11582
11582
|
|
|
11583
|
-
`;class
|
|
11583
|
+
`;class D5 extends f{constructor(){super(),this.size="medium",this.color="gray"}render(){const{size:C,color:t,title:e,text:o,buttonText:a,buttonUrl:l,image:h}=this;return M`
|
|
11584
11584
|
<article class="container ${C} ${t}">
|
|
11585
11585
|
<div class="text-content">
|
|
11586
11586
|
<cas-text variant="body2">${e}</cas-text>
|
|
@@ -11595,7 +11595,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11595
11595
|
<img src="${h}" alt="${e}">
|
|
11596
11596
|
</div>
|
|
11597
11597
|
</article>
|
|
11598
|
-
`}}g(
|
|
11598
|
+
`}}g(D5,"styles",Sp),g(D5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(D5,"properties",{size:{type:String},color:{type:String},title:{type:String},text:{type:String},buttonText:{type:String},buttonUrl:{type:String},image:{type:String}});const Tp=H`
|
|
11599
11599
|
.container {
|
|
11600
11600
|
display: flex;
|
|
11601
11601
|
background: #f2f5f9;
|
|
@@ -11775,7 +11775,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11775
11775
|
padding: 0 16px;
|
|
11776
11776
|
}
|
|
11777
11777
|
}
|
|
11778
|
-
`,k2={1:"14px",2:"16px",3:"20px",4:"24px"};class
|
|
11778
|
+
`,k2={1:"14px",2:"16px",3:"20px",4:"24px"};class R5 extends f{constructor(){super(),this.size=2,this.openAccessibility=!1,this.disableMode=!1}handleClickTab(){const C=this.shadowRoot.querySelector(".tabs .active");C.style.setProperty("--move-tab","100%"),C.style.setProperty("--width-tab","200%")}zoom(C){const t=Number(Object.keys(k2)[0]),e=Number(Object.keys(k2)[Object.keys(k2).length-1]),o=document.querySelectorAll("*");C==="in"&&this.size<e&&(this.size++,o.forEach(a=>{a.style.fontSize=k2[this.size]})),C==="out"&&this.size>t&&(this.size--,o.forEach(a=>{a.style.fontSize=k2[this.size]})),C==="reset"&&(this.size=2,o.forEach(a=>{a.style.fontSize=k2[this.size]}))}handleDarkMode(){document.dispatchEvent(new CustomEvent("onDarkMode")),localStorage.setItem("theme","dark")}handleLightMode(){document.dispatchEvent(new CustomEvent("onLightMode")),localStorage.setItem("theme","light")}render(){const C=this.shadowRoot.querySelector(".drop-accessibility"),t=()=>{this.openAccessibility=!0,this.requestUpdate(),setTimeout(()=>{document.addEventListener("click",o)},200)},e=()=>{this.openAccessibility=!1,this.requestUpdate(),document.removeEventListener("click",o)},o=c=>{c.composedPath().includes(C)||e()},a=()=>{this.openAccessibility?e():t()},l=q({"drop-accessibility":!0,visible:this.openAccessibility}),h=q({active:this.size===1}),n=q({active:this.size>2}),r=q({active:this.theme==="dark"}),d=q({active:this.theme==="light"});return M`
|
|
11779
11779
|
<div class="container" data-theme="${this.theme}">
|
|
11780
11780
|
<div class="inner-container">
|
|
11781
11781
|
<ul class="tabs">
|
|
@@ -11856,7 +11856,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11856
11856
|
</div>
|
|
11857
11857
|
</div>
|
|
11858
11858
|
</div>
|
|
11859
|
-
`}}g(
|
|
11859
|
+
`}}g(R5,"styles",Tp),g(R5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(R5,"properties",{theme:{type:String},size:{type:Number},disableMode:{type:Boolean}});const uC=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Ip=i=>{const C=document.querySelector("body");i==="dark"?C==null||C.classList.add("eloisa-ds-dark-mode"):C==null||C.classList.remove("eloisa-ds-dark-mode")};function Pp(i=null,C){let t=localStorage.getItem("theme")??uC(),e=t==="dark";const o=()=>{t=uC(),e=t==="dark"};return i!==null?(e=i==="true",t=e?"dark":"light"):window.matchMedia("(prefers-color-scheme: dark)").addListener(o),{theme:t,isDark:e}}const{mobile:Fp,tablet:Op,macbookAir:Np,desktop:Dp}=Vp,wC=()=>window.matchMedia(`(max-width: ${Fp}px)`).matches,fC=()=>window.matchMedia(`(max-width: ${Op}px)`).matches,HC=()=>window.matchMedia(`(max-width: ${Np}px)`).matches,mC=()=>window.matchMedia(`(max-width: ${Dp}px)`).matches;class $3 extends f{constructor(){super(),this.showAlert=!1,this.alert={},this.type=t1.HOME,this.theme="light",this.disableMode="true",this.disableDarkModeDefault="false",this.isMobile=wC(),this.isTablet=fC(),this.isMacbookAir=HC(),this.isDesktop=mC(),this.lastScrollPosition=0,this.spaceHeight=0}connectedCallback(){super.connectedCallback(),this.type===t1.HOME&&window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),window.addEventListener("resize",this.handleSpaces.bind(this))}disconnectedCallback(){this.type===t1.HOME&&window.removeEventListener("scroll",this.handleScroll.bind(this)),window.removeEventListener("resize",this.handleResize.bind(this)),window.removeEventListener("resize",this.handleSpaces.bind(this)),super.disconnectedCallback()}handleScroll(){const C=window.pageYOffset||document.documentElement.scrollTop,t=this.shadowRoot.querySelector("header"),e=this.shadowRoot.querySelector("cas-header-taxonomy"),o=this.spaceHeight+"px";C<=this.spaceHeight||C<this.lastScrollPosition?(e.setAttribute("collapsed","false"),e.style.transform="translateY(0)",t.style.height=o):(e.setAttribute("collapsed","true"),e.style.transform="translateY(-100%)",t.style.height=`${this.spaceHeight-72}px`),this.lastScrollPosition=C}handleResize(){const C=this.isMobile,t=this.isTablet,e=this.isMacbookAir,o=this.isDesktop;this.isMobile=wC(),this.isTablet=fC(),this.isMacbookAir=HC(),this.isDesktop=mC(),(C!==this.isMobile||t!==this.isTablet||e!==this.isMacbookAir||o!==this.isDesktop)&&this.requestUpdate()}handleTheme({theme:C}){const t={theme:C,isDark:C==="dark"},e=new CustomEvent("themeChange",{detail:t});this.theme=C,this.defaultDarkMode(),document.dispatchEvent(e)}defaultDarkMode(){Ip(this.theme);const C=document.querySelector("head");if(this.disableDarkModeDefault!=="true"&&this.theme==="dark"){const t=document.createElement("style");t.setAttribute("data-name","eloisa-ds-dark-mode"),t.innerHTML=`
|
|
11860
11860
|
// * {
|
|
11861
11861
|
// filter: invert(1) hue-rotate(180deg);
|
|
11862
11862
|
// }
|
|
@@ -11912,7 +11912,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11912
11912
|
</header>
|
|
11913
11913
|
${t===t1.HOME?M`<cas-booking-box theme="${o}" .home=${a} showAlert=${this.showAlert}></cas-booking-box>`:null}
|
|
11914
11914
|
<div style="height: ${this.spaceHeight}px"></div>
|
|
11915
|
-
`}}g($3,"styles",ft),g($3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g($3,"properties",{alert:{type:Object},type:{type:String},bookingBox:{type:String},darkMode:{type:String},disableMode:{type:String},disableDarkModeDefault:{type:String},devMode:{type:String}}),customElements.get("cas-header")||customElements.define("cas-header",$3),customElements.get("cas-header-pre-head ")||customElements.define("cas-header-pre-head",
|
|
11915
|
+
`}}g($3,"styles",ft),g($3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g($3,"properties",{alert:{type:Object},type:{type:String},bookingBox:{type:String},darkMode:{type:String},disableMode:{type:String},disableDarkModeDefault:{type:String},devMode:{type:String}}),customElements.get("cas-header")||customElements.define("cas-header",$3),customElements.get("cas-header-pre-head ")||customElements.define("cas-header-pre-head",R5),customElements.get("cas-header-head")||customElements.define("cas-header-head",O5),customElements.get("cas-header-search")||customElements.define("cas-header-search",k3),customElements.get("cas-header-taxonomy")||customElements.define("cas-header-taxonomy",$p),customElements.get("cas-header-menu-mobile")||customElements.define("cas-header-menu-mobile",N5),customElements.get("cas-header-card")||customElements.define("cas-header-card",D5);const j5={mobile:"767px",tablet:"1023px",desktop:"1440px"},Rp=H`
|
|
11916
11916
|
:host {
|
|
11917
11917
|
background-color: #364855;
|
|
11918
11918
|
display: flex;
|
|
@@ -11934,7 +11934,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11934
11934
|
.content-button {
|
|
11935
11935
|
display: none;
|
|
11936
11936
|
}
|
|
11937
|
-
@media (max-width: ${L(
|
|
11937
|
+
@media (max-width: ${L(j5.tablet)}) {
|
|
11938
11938
|
.content-button {
|
|
11939
11939
|
display: flex;
|
|
11940
11940
|
justify-content: center;
|
|
@@ -11999,7 +11999,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11999
11999
|
display: none;
|
|
12000
12000
|
}
|
|
12001
12001
|
|
|
12002
|
-
@media (max-width: ${L(
|
|
12002
|
+
@media (max-width: ${L(j5.tablet)}) {
|
|
12003
12003
|
.wrapped {
|
|
12004
12004
|
border: none;
|
|
12005
12005
|
}
|
|
@@ -12113,7 +12113,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12113
12113
|
a {
|
|
12114
12114
|
color: currentColor;
|
|
12115
12115
|
}
|
|
12116
|
-
@media (max-width: ${L(
|
|
12116
|
+
@media (max-width: ${L(j5.tablet)}) {
|
|
12117
12117
|
.inner-wrapped {
|
|
12118
12118
|
padding: 48px 32px;
|
|
12119
12119
|
max-width: 1140px;
|
|
@@ -12126,7 +12126,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12126
12126
|
height: 40px;
|
|
12127
12127
|
}
|
|
12128
12128
|
}
|
|
12129
|
-
@media (max-width: ${L(
|
|
12129
|
+
@media (max-width: ${L(j5.mobile)}) {
|
|
12130
12130
|
.inner-wrapped {
|
|
12131
12131
|
padding: 32px 16px;
|
|
12132
12132
|
gap: 12px;
|
|
@@ -13368,9 +13368,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
13368
13368
|
animation: rotate 2s linear infinite;
|
|
13369
13369
|
}
|
|
13370
13370
|
|
|
13371
|
-
`;class
|
|
13371
|
+
`;class U5 extends f{render(){return M`
|
|
13372
13372
|
<div class="spinner" />
|
|
13373
|
-
`}}g(
|
|
13373
|
+
`}}g(U5,"styles",rv),g(U5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),customElements.get("cas-spinner")||customElements.define("cas-spinner",U5);const dv=H`
|
|
13374
13374
|
* {
|
|
13375
13375
|
box-sizing: border-box;
|
|
13376
13376
|
}
|
|
@@ -13641,7 +13641,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
13641
13641
|
<slot></slot>
|
|
13642
13642
|
`}}g(R8,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(R8,"properties",{position:{type:String}});class Vv extends f{render(){return s``}static get styles(){return H`
|
|
13643
13643
|
${pv}
|
|
13644
|
-
`}constructor(){super(),this.newSnackbarProperties=["accessibilityLabel","animationDuration","animationName","buttonCallback","duration","hideCallback","title","message","linkMessage","targetLink","showCallback","type","hasFadedIn"],this.newSnackbarAttributes=["id","size","variant"],window.addEventListener("cas-snackbar-snackbar-add",this._handleSnackbarAdd.bind(this)),window.addEventListener("cas-snackbar-snackbar-remove",this._handleSnackbarRemove.bind(this))}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("cas-snackbar-snackbar-ready",{bubbles:!0,composed:!0})),this.setAttribute("aria-live","polite")}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("cas-snackbar-snackbar-add",this._handleSnackbarAdd.bind(this)),window.removeEventListener("cas-snackbar-snackbar-remove",this._handleSnackbarRemove.bind(this))}_handleSnackbarAdd(C){const t=C.detail||{},e=fv(t);if(e.length>0)for(const{message:o}of e)console.error("There was a problem creating your snackbar. Please check your custom event options.",o);else{const o={id:Date.now(),...Lv,...t},a=this._createNewSnackbar(o);this.shadowRoot.prepend(a),this.dispatchEvent(new CustomEvent("cas-snackbar-snackbar-bar-added",{bubbles:!0,composed:!0,detail:{snackbarID:a.id}}))}}_handleSnackbarRemove(C){var t;(t=this.shadowRoot.getElementById(C.detail.snackbarID))==null||t.remove(),this.dispatchEvent(new CustomEvent("cas-snackbar-snackbar-bar-removed",{bubbles:!0,composed:!0,detail:{snackbarID:C.detail.snackbarID}}))}_createNewSnackbar(C){const t=document.querySelector("cas-snackbar-provider");C.position&&(t==null||t.setAttribute("position",C.position));const e=document.createElement("cas-snackbar");return this.newSnackbarProperties.forEach(o=>{e[o]=C[o]}),this.newSnackbarAttributes.forEach(o=>{e.setAttribute(o,C[o])}),C.customClasses&&(e.className+=C.customClasses),e}}const
|
|
13644
|
+
`}constructor(){super(),this.newSnackbarProperties=["accessibilityLabel","animationDuration","animationName","buttonCallback","duration","hideCallback","title","message","linkMessage","targetLink","showCallback","type","hasFadedIn"],this.newSnackbarAttributes=["id","size","variant"],window.addEventListener("cas-snackbar-snackbar-add",this._handleSnackbarAdd.bind(this)),window.addEventListener("cas-snackbar-snackbar-remove",this._handleSnackbarRemove.bind(this))}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("cas-snackbar-snackbar-ready",{bubbles:!0,composed:!0})),this.setAttribute("aria-live","polite")}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("cas-snackbar-snackbar-add",this._handleSnackbarAdd.bind(this)),window.removeEventListener("cas-snackbar-snackbar-remove",this._handleSnackbarRemove.bind(this))}_handleSnackbarAdd(C){const t=C.detail||{},e=fv(t);if(e.length>0)for(const{message:o}of e)console.error("There was a problem creating your snackbar. Please check your custom event options.",o);else{const o={id:Date.now(),...Lv,...t},a=this._createNewSnackbar(o);this.shadowRoot.prepend(a),this.dispatchEvent(new CustomEvent("cas-snackbar-snackbar-bar-added",{bubbles:!0,composed:!0,detail:{snackbarID:a.id}}))}}_handleSnackbarRemove(C){var t;(t=this.shadowRoot.getElementById(C.detail.snackbarID))==null||t.remove(),this.dispatchEvent(new CustomEvent("cas-snackbar-snackbar-bar-removed",{bubbles:!0,composed:!0,detail:{snackbarID:C.detail.snackbarID}}))}_createNewSnackbar(C){const t=document.querySelector("cas-snackbar-provider");C.position&&(t==null||t.setAttribute("position",C.position));const e=document.createElement("cas-snackbar");return this.newSnackbarProperties.forEach(o=>{e[o]=C[o]}),this.newSnackbarAttributes.forEach(o=>{e.setAttribute(o,C[o])}),C.customClasses&&(e.className+=C.customClasses),e}}const q5=({variant:i,config:C})=>{const{title:t,message:e,linkMessage:o,targetLink:a,autoHide:l,autoHideDuration:h,position:n}=C;window.dispatchEvent(new CustomEvent("cas-snackbar-snackbar-add",{bubbles:!0,composed:!0,detail:{variant:i,title:t,message:e,linkMessage:o,targetLink:a,position:n||null,animationName:"slide-in",type:l?"auto":"dismiss",duration:h||4e3}}))},W5={SUCCESS:"success",ERROR:"error",WARNING:"warning",INFO:"info"},yC={success:i=>q5({variant:W5.SUCCESS,config:i}),error:i=>q5({variant:W5.ERROR,config:i}),warning:i=>q5({variant:W5.WARNING,config:i}),info:i=>q5({variant:W5.INFO,config:i})};customElements.get("cas-snackbar")||customElements.define("cas-snackbar",mv),customElements.get("cas-snackbar-provider-custom")||customElements.define("cas-snackbar-provider-custom",Vv),customElements.get("cas-snackbar-provider")||customElements.define("cas-snackbar-provider",R8),window.cas=window.cas||{},window.cas.snackbar=yC;class j8 extends f{constructor(){super(),this.open=!1,this.text=document.title,this.isMobile=window.innerWidth<768,this.shareFacebook=this.shareFacebook.bind(this),this.shareTwitter=this.shareTwitter.bind(this),this.shareWhatsApp=this.shareWhatsApp.bind(this),this.shareTelegram=this.shareTelegram.bind(this),this.shareEmail=this.shareEmail.bind(this),this.shareInstagram=this.shareInstagram.bind(this),this.platforms=[{title:"WhatsApp",icon:"flat-whatsapp",share:this.shareWhatsApp},{title:"Instagram",icon:"flat-instagramSolid",share:this.shareInstagram},{title:"Facebook",icon:"flat-facebook",share:this.shareFacebook},{title:"Twitter",icon:"flat-twitter",share:this.shareTwitter},{title:"Correo",icon:"flat-mail",share:this.shareEmail}]}static get properties(){return{text:{type:String}}}firstUpdated(){const C=this.shadowRoot.querySelector("cas-modal");C==null||C.addEventListener("close",()=>{this.open=!1,this.requestUpdate()});const t=()=>{this.isMobile=window.innerWidth<768,this.requestUpdate()};window.addEventListener("resize",t)}render(){const C=this.isMobile?"190px":"initial";return s`
|
|
13645
13645
|
<cas-modal variant="compact" open="${this.open}" width=${C}>
|
|
13646
13646
|
<div class="modal">
|
|
13647
13647
|
<cas-text variant="headline3" class="hide-mobile">Compartir en:</cas-text>
|
|
@@ -14402,7 +14402,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14402
14402
|
}
|
|
14403
14403
|
}
|
|
14404
14404
|
`,$C=(i,C)=>new Date(i,C,0).getDate(),F2=({year:i,month:C,day:t})=>{const e=C<10?`0${C}`:C,o=t<10?`0${t}`:t;return`${i}-${e}-${o}`};function zv(){const i=new Date,C=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],t=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],e=i.getFullYear(),o=i.getMonth()+1,a=[...Array(10).keys()].map(l=>l+e);return{date:i,weekdays:t,currentYear:e,currentMonth:o,month_names:C,years:a}}function AC({month:i,year:C,selectValue:t,range:e,disablePast:o,availableDays:a}){const l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],h=[],n=$C(C,i),r=new Date,d=new Date(C,i-1,1),c=new Date(C,i-1,0).getDate();for(let u=d.getDay();u>0;u--)h.push({name:c+1-u,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let u=0;u<n;u++){const w=e.start.value&&e.end.value,m=w&&e.start.value<=F2({year:C,month:i,day:u+1})&&e.end.value>=F2({year:C,month:i,day:u+1}),z=w&&e.start.value===F2({year:C,month:i,day:u+1}),$=w&&e.end.value===F2({year:C,month:i,day:u+1}),_=a==null?void 0:a.includes(u+1),k=r.getDate()===u+1&&r.getMonth()===i-1,F=t===F2({year:C,month:i,day:u+1}),K=new Date(C,i-1,u+1),V=o&&K.setHours(0,0,0,0)<r.setHours(0,0,0,0);h.push({value:F2({year:C,month:i,day:u+1}),name:1+u,isCurrentMonth:!0,isCurrentDay:u+1===r.getDate(),isToday:k,isAvailable:_,date:K,disabled:V,selected:F,inRange:m,isStart:z,isEnd:$})}const p=42-h.length;for(let u=0;u<p;u++)h.push({name:u+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:C,month:l[i-1],days:$C(C,i),calendar:h}}function kv(i){const{isAvailable:C,isCurrentMonth:t,isToday:e,disabled:o,selected:a,inRange:l,isStart:h,isEnd:n}=i;return{dayStyles:q({"item-day":!0,"current-month":t,available:C,today:e,disabled:o,selected:a,range:l,start:h,end:n})}}class O2 extends f{constructor(){super(),this.open=!1,this.name="desde-hasta",this.value=[],this.year=new Date().getFullYear(),this.years=[],this.month=new Date().getMonth()+1,this.valueStart="",this.valueEnd=""}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(C){this.value=C.target.value}render(){const{disablePast:C,showLegend:t,open:e,year:o,month:a,valueStart:l,valueEnd:h}=this,{weekdays:n,month_names:r,years:d}=zv(),c={start:{value:this.valueStart,year:this.valueStart.split("-")[0],month:this.valueStart.split("-")[1],day:this.valueStart.split("-")[2]},end:{value:this.valueEnd,year:this.valueEnd.split("-")[0],month:this.valueEnd.split("-")[1],day:this.valueEnd.split("-")[2]}},p=AC({month:a,year:o,selectValue:this.valueStart,range:c,disablePast:C}),v=AC({month:a+1,year:o,selectValue:this.valueEnd,range:c,disablePast:C});document.addEventListener("click",V=>{V.composedPath().includes(this)||this.handleClose()});const u=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(x=>{x.classList.remove("open")})},w=V=>{const{dayStyles:x}=kv(V),I=()=>{if(this.valueStart==="")this.valueStart=V.value,this.valueEnd="";else if(this.valueStart!==""&&V.value<this.valueStart)this.valueStart=V.value;else if(this.valueEnd!==""&&V.value>this.valueEnd)this.valueEnd=V.value;else if(this.valueStart!==""&&this.valueEnd===""){this.valueEnd=V.value,this.value=[this.valueStart,this.valueEnd],this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,detail:{value:`${this.valueStart} - ${this.valueEnd}`}}));const Q={value:`${this.valueStart} - ${this.valueEnd}`,name:this.name,start:this.valueStart,end:this.valueEnd,message:`${this.name}: ${this.valueStart} - ${this.valueEnd}`,error:!1,success:!0};this.dispatchEvent(new CustomEvent("callback",{detail:Q,bubbles:!0,composed:!0})),this.open=!1}else this.valueStart!==""&&this.valueEnd!==""?(this.valueStart=V.value,this.valueEnd=""):(this.valueStart="",this.valueEnd="");this.setAttribute("date-start",this.valueStart),this.setAttribute("date-end",this.valueEnd)};return s`
|
|
14405
|
-
<button type="button" class=${x} @click=${Q=>{if(u(),V.isCurrentMonth&&!V.disabled){const f1=Q.target.parentNode.querySelectorAll("button");for(let
|
|
14405
|
+
<button type="button" class=${x} @click=${Q=>{if(u(),V.isCurrentMonth&&!V.disabled){const f1=Q.target.parentNode.querySelectorAll("button");for(let P3=0;P3<f1.length;P3++)f1[P3].classList.remove("selected");Q.target.classList.add("selected"),I()}else console.log("not available")}} >
|
|
14406
14406
|
${V.name}
|
|
14407
14407
|
</button>
|
|
14408
14408
|
`},m=()=>s`
|
|
@@ -14476,7 +14476,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14476
14476
|
fullWidth
|
|
14477
14477
|
></cas-input>
|
|
14478
14478
|
</div>
|
|
14479
|
-
`},F=()=>{const{top:V,bottom:x,left:I,right:K1}=this.getBoundingClientRect();return this.alignDisplay==="right"?`position: fixed; top:${V+92}px; right:${window.innerWidth-K1}px; z-index:1;`:this.alignDisplay==="top right"?`position: fixed; bottom:${window.innerHeight-(x-72)}px; right:${window.innerWidth-K1}px; z-index:1;`:`position: fixed; top:${V+92}px; left:${I}px; z-index:1;`},K=document.getElementById("form-content");return K==null||K.addEventListener("scroll",()=>{e&&this.handleClose()}),window.addEventListener("scroll",V=>{var I;const x=this.shadowRoot.querySelector(".content");if(x){const{top:K1,bottom:Q}=this.getBoundingClientRect(),f1=(I=this.alignDisplay)==null?void 0:I.split(" ");f1!=null&&f1.find(
|
|
14479
|
+
`},F=()=>{const{top:V,bottom:x,left:I,right:K1}=this.getBoundingClientRect();return this.alignDisplay==="right"?`position: fixed; top:${V+92}px; right:${window.innerWidth-K1}px; z-index:1;`:this.alignDisplay==="top right"?`position: fixed; bottom:${window.innerHeight-(x-72)}px; right:${window.innerWidth-K1}px; z-index:1;`:`position: fixed; top:${V+92}px; left:${I}px; z-index:1;`},K=document.getElementById("form-content");return K==null||K.addEventListener("scroll",()=>{e&&this.handleClose()}),window.addEventListener("scroll",V=>{var I;const x=this.shadowRoot.querySelector(".content");if(x){const{top:K1,bottom:Q}=this.getBoundingClientRect(),f1=(I=this.alignDisplay)==null?void 0:I.split(" ");f1!=null&&f1.find(P3=>P3==="top")?x.style.bottom=`${window.innerHeight-(Q-72)}px`:x.style.top=`${K1+92}px`}}),s`
|
|
14480
14480
|
<div class="datepicker-container">
|
|
14481
14481
|
<label>
|
|
14482
14482
|
<cas-text variant="tertiary2">${this.label}</cas-text>
|
|
@@ -14564,7 +14564,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14564
14564
|
user-select: none;
|
|
14565
14565
|
display: flex;
|
|
14566
14566
|
}
|
|
14567
|
-
`;class
|
|
14567
|
+
`;class T3 extends f{static get properties(){return{name:{type:String,reflect:!0},checked:{type:Boolean,reflect:!0},value:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.checked=!1,this.label="",this.addEventListener("click",this._onClick)}_onClick(){this.checked=!0,this.dispatchEvent(new CustomEvent("change",{detail:this.value,bubbles:!0,composed:!0}))}updated(C){C.has("checked")&&this.checked&&this.dispatchEvent(new CustomEvent("change",{detail:this.value,bubbles:!0,composed:!0}))}render(){return s`
|
|
14568
14568
|
<label class="radio-container">
|
|
14569
14569
|
<input
|
|
14570
14570
|
type="radio"
|
|
@@ -14576,4 +14576,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14576
14576
|
<span class="radio-custom"></span>
|
|
14577
14577
|
<cas-text variant="body1">${this.label}<slot></slot></cas-text>
|
|
14578
14578
|
</label>
|
|
14579
|
-
`}}g(
|
|
14579
|
+
`}}g(T3,"styles",BC),g(T3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"});class $v extends T3{}class Av extends T3{}customElements.define("cas-radio",$v),customElements.define("cas-radio-button",Av);class N2 extends f{static get properties(){return{name:{type:String},value:{type:String}}}constructor(){super(),this.name="",this.value=""}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this._handleRadioChange),this.addEventListener("keydown",this._handleKeyDown),this.setAttribute("tabindex","0")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this._handleRadioChange),this.removeEventListener("keydown",this._handleKeyDown)}_handleRadioChange(C){const t=C.detail;C.target.tagName==="CAS-RADIO-BUTTON"&&t!==this.value&&(this.value=t,this._updateRadioButtons())}_handleKeyDown(C){const t=Array.from(this.querySelectorAll("cas-radio-button")),e=t.findIndex(o=>o.checked);if(C.key==="ArrowRight"||C.key==="ArrowDown"){C.preventDefault();const o=(e+1)%t.length;t[o].checked=!0,t[o].focus()}else if(C.key==="ArrowLeft"||C.key==="ArrowUp"){C.preventDefault();const o=(e-1+t.length)%t.length;t[o].checked=!0,t[o].focus()}}_updateRadioButtons(){Array.from(this.querySelectorAll("cas-radio-button")).forEach(t=>{t.checked=t.value===this.value})}render(){return s`<slot></slot>`}}g(N2,"formAssociated",!0),g(N2,"styles",BC),g(N2,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"});class Bv extends N2{}class Ev extends N2{}customElements.define("cas-radio-button-group",Bv),customElements.define("cas-radio-group",Ev),console.log("eloisa-ds",Y5==null?void 0:Y5.version),b.CasAccordion=A2,b.CasCheckbox=B2,b.CasDatePicker=P2,b.CasDatePickerRange=O2,b.CasFooter=$2,b.CasHeader=$3,b.CasInput=E2,b.CasInputFile=S2,b.CasModal=E3,b.CasShare=j8,b.CasSpinner=U5,b.CasTextField=T2,b.CasToggle=I2,b.CasTooltip=S3,b.RadioButton=T3,b.RadioGroup=N2,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
|