@everymatrix/general-registration 1.60.0 → 1.60.2

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.
Files changed (19) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +249 -214
  2. package/dist/collection/components/general-registration/general-registration.js +43 -8
  3. package/dist/esm/checkbox-group-input_13.entry.js +249 -214
  4. package/dist/general-registration/general-registration.esm.js +1 -1
  5. package/dist/general-registration/{p-9488becb.entry.js → p-22bd58f6.entry.js} +120 -120
  6. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
  7. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
  8. package/dist/types/components/general-registration/general-registration.d.ts +2 -0
  9. package/package.json +1 -1
  10. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
  11. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
  12. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  13. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
  14. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/main.d.ts +0 -0
  15. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/preview.d.ts +0 -0
  16. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
  17. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  18. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  19. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -5766,51 +5766,51 @@ const EmailInput = class {
5766
5766
  };
5767
5767
  EmailInput.style = EmailInputStyle0;
5768
5768
 
5769
- var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnPropertyDescriptors;var Ri=Object.getOwnPropertySymbols;var vr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var ft$1=(s,t,e)=>t in s?fr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,me=(s,t)=>{for(var e in t||(t={}))vr.call(t,e)&&ft$1(s,e,t[e]);if(Ri)for(var e of Ri(t))br.call(t,e)&&ft$1(s,e,t[e]);return s},mt$1=(s,t)=>mr(s,gr(t));var C$1=(s,t,e)=>(ft$1(s,typeof t!="symbol"?t+"":t,e),e);var Ue=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
5769
+ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnPropertyDescriptors;var Bi=Object.getOwnPropertySymbols;var gr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable;var ft$1=(s,t,e)=>t in s?_r(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,me=(s,t)=>{for(var e in t||(t={}))gr.call(t,e)&&ft$1(s,e,t[e]);if(Bi)for(var e of Bi(t))vr.call(t,e)&&ft$1(s,e,t[e]);return s},mt$1=(s,t)=>fr(s,mr(t));var C$1=(s,t,e)=>(ft$1(s,typeof t!="symbol"?t+"":t,e),e);var Ue=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
5770
5770
  * @license
5771
5771
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5772
5772
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5773
- */function y$1(s,t="24.5.10"){Object.defineProperty(s,"version",{get(){return t}});const e=customElements.get(s.is);if(!e)customElements.define(s.is,s);else {const i=e.version;i&&s.version&&i===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${e.version} is already in use. Something will probably break.`);}}/**
5773
+ */function y$1(s,t="24.5.11"){Object.defineProperty(s,"version",{get(){return t}});const e=customElements.get(s.is);if(!e)customElements.define(s.is,s);else {const i=e.version;i&&s.version&&i===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${e.version} is already in use. Something will probably break.`);}}/**
5774
5774
  * @license
5775
5775
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5776
5776
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5777
- */class yr extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}y$1(yr);/**
5777
+ */class br extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}y$1(br);/**
5778
5778
  * @license
5779
5779
  * Copyright 2019 Google LLC
5780
5780
  * SPDX-License-Identifier: BSD-3-Clause
5781
- */const Xe=globalThis,ri=Xe.ShadowRoot&&(Xe.ShadyCSS===void 0||Xe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ni=Symbol(),Hi=new WeakMap;let ai=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==ni)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const e=this.t;if(ri&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Hi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Hi.set(e,t));}return t}toString(){return this.cssText}};const xr=s=>new ai(typeof s=="string"?s:s+"",void 0,ni),_$1=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new ai(e,s,ni)},Ls=(s,t)=>{if(ri)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=Xe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i);}},$i=ri?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return xr(e)})(s):s;/**
5781
+ */const Xe=globalThis,ri=Xe.ShadowRoot&&(Xe.ShadyCSS===void 0||Xe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ni=Symbol(),Ri=new WeakMap;let ai=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==ni)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const e=this.t;if(ri&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Ri.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ri.set(e,t));}return t}toString(){return this.cssText}};const yr=s=>new ai(typeof s=="string"?s:s+"",void 0,ni),_$1=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new ai(e,s,ni)},Fs=(s,t)=>{if(ri)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=Xe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i);}},Hi=ri?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return yr(e)})(s):s;/**
5782
5782
  * @license
5783
5783
  * Copyright 2017 Google LLC
5784
5784
  * SPDX-License-Identifier: BSD-3-Clause
5785
- */const{is:wr,defineProperty:Cr,getOwnPropertyDescriptor:Ar,getOwnPropertyNames:Er,getOwnPropertySymbols:Pr,getPrototypeOf:kr}=Object,H$1=globalThis,Ui=H$1.trustedTypes,Sr=Ui?Ui.emptyScript:"",gt$1=H$1.reactiveElementPolyfillSupport,Ee=(s,t)=>s,Ft={toAttribute(s,t){switch(t){case Boolean:s=s?Sr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s);}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s);}catch(i){e=null;}}return e}},Vs=(s,t)=>!wr(s,t),qi={attribute:!0,type:String,converter:Ft,reflect:!1,hasChanged:Vs};(Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(H$1.litPropertyMetadata)!=null||(H$1.litPropertyMetadata=new WeakMap);class te extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=qi){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Cr(this.prototype,t,o);}}static getPropertyDescriptor(t,e,i){var n;const{get:o,set:r}=(n=Ar(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a;}};return {get(){return o==null?void 0:o.call(this)},set(a){const l=o==null?void 0:o.call(this);r.call(this,a),this.requestUpdate(t,l,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return (e=this.elementProperties.get(t))!=null?e:qi}static _$Ei(){if(this.hasOwnProperty(Ee("elementProperties")))return;const t=kr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(Ee("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ee("properties"))){const e=this.properties,i=[...Er(e),...Pr(e)];for(const o of i)this.createProperty(o,e[o]);}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o);}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift($i(o));}else t!==void 0&&e.push($i(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this));}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t));}removeController(t){var e;(e=this._$EO)==null||e.delete(t);}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ls(t,this.constructor.elementStyles),t}connectedCallback(){var e;(this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostConnected)==null?void 0:o.call(i)});}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return (i=e.hostDisconnected)==null?void 0:i.call(e)});}attributeChangedCallback(t,e,i){this._$AK(t,i);}_$EC(t,e){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Ft).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null;}}_$AK(t,e){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const n=i.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:Ft;this._$Em=o,this[o]=a.fromAttribute(e,n.type),this._$Em=null;}}requestUpdate(t,e,i){var o;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((o=i.hasChanged)!=null?o:Vs)(this[t],e))return;this.P(t,e,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(t,e,i){var o;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t);}_$ET(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES;}catch(e){Promise.reject(e);}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0;}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a);}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(r=>{var n;return (n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU();}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e);}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU();}updated(t){}firstUpdated(t){}}var Ms;te.elementStyles=[],te.shadowRootOptions={mode:"open"},te[Ee("elementProperties")]=new Map,te[Ee("finalized")]=new Map,gt$1==null||gt$1({ReactiveElement:te}),((Ms=H$1.reactiveElementVersions)!=null?Ms:H$1.reactiveElementVersions=[]).push("2.0.4");/**
5785
+ */const{is:xr,defineProperty:wr,getOwnPropertyDescriptor:Cr,getOwnPropertyNames:Ar,getOwnPropertySymbols:Er,getPrototypeOf:Pr}=Object,H$1=globalThis,$i=H$1.trustedTypes,kr=$i?$i.emptyScript:"",gt$1=H$1.reactiveElementPolyfillSupport,Ee=(s,t)=>s,Ft={toAttribute(s,t){switch(t){case Boolean:s=s?kr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s);}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s);}catch(i){e=null;}}return e}},Ls=(s,t)=>!xr(s,t),Ui={attribute:!0,type:String,converter:Ft,reflect:!1,hasChanged:Ls};(Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(H$1.litPropertyMetadata)!=null||(H$1.litPropertyMetadata=new WeakMap);class te extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ui){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&wr(this.prototype,t,o);}}static getPropertyDescriptor(t,e,i){var n;const{get:o,set:r}=(n=Cr(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a;}};return {get(){return o==null?void 0:o.call(this)},set(a){const l=o==null?void 0:o.call(this);r.call(this,a),this.requestUpdate(t,l,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return (e=this.elementProperties.get(t))!=null?e:Ui}static _$Ei(){if(this.hasOwnProperty(Ee("elementProperties")))return;const t=Pr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(Ee("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ee("properties"))){const e=this.properties,i=[...Ar(e),...Er(e)];for(const o of i)this.createProperty(o,e[o]);}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o);}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(Hi(o));}else t!==void 0&&e.push(Hi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this));}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t));}removeController(t){var e;(e=this._$EO)==null||e.delete(t);}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Fs(t,this.constructor.elementStyles),t}connectedCallback(){var e;(this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostConnected)==null?void 0:o.call(i)});}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return (i=e.hostDisconnected)==null?void 0:i.call(e)});}attributeChangedCallback(t,e,i){this._$AK(t,i);}_$EC(t,e){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Ft).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null;}}_$AK(t,e){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const n=i.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:Ft;this._$Em=o,this[o]=a.fromAttribute(e,n.type),this._$Em=null;}}requestUpdate(t,e,i){var o;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((o=i.hasChanged)!=null?o:Ls)(this[t],e))return;this.P(t,e,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(t,e,i){var o;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t);}_$ET(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES;}catch(e){Promise.reject(e);}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0;}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a);}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(r=>{var n;return (n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU();}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e);}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU();}updated(t){}firstUpdated(t){}}var Os;te.elementStyles=[],te.shadowRootOptions={mode:"open"},te[Ee("elementProperties")]=new Map,te[Ee("finalized")]=new Map,gt$1==null||gt$1({ReactiveElement:te}),((Os=H$1.reactiveElementVersions)!=null?Os:H$1.reactiveElementVersions=[]).push("2.0.4");/**
5786
5786
  * @license
5787
5787
  * Copyright 2017 Google LLC
5788
5788
  * SPDX-License-Identifier: BSD-3-Clause
5789
- */const Pe=globalThis,Qe=Pe.trustedTypes,Yi=Qe?Qe.createPolicy("lit-html",{createHTML:s=>s}):void 0,Bs="$lit$",B$1=`lit$${Math.random().toFixed(9).slice(2)}$`,Rs="?"+B$1,Tr=`<${Rs}>`,X$1=document,Se=()=>X$1.createComment(""),Te=s=>s===null||typeof s!="object"&&typeof s!="function",li=Array.isArray,Ir=s=>li(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",vt$1=`[
5790
- \f\r]`,ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ji=/-->/g,Wi=/>/g,Y$1=RegExp(`>|${vt$1}(?:([^\\s"'>=/]+)(${vt$1}*=${vt$1}*(?:[^
5791
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gi=/'/g,Ki=/"/g,Hs=/^(?:script|style|textarea|title)$/i,ne=Symbol.for("lit-noChange"),w$1=Symbol.for("lit-nothing"),Xi=new WeakMap,j=X$1.createTreeWalker(X$1,129);function $s(s,t){if(!li(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(t):t}const Dr=(s,t)=>{const e=s.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",n=ge;for(let a=0;a<e;a++){const l=s[a];let d,h,c=-1,u=0;for(;u<l.length&&(n.lastIndex=u,h=n.exec(l),h!==null);)u=n.lastIndex,n===ge?h[1]==="!--"?n=ji:h[1]!==void 0?n=Wi:h[2]!==void 0?(Hs.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=Y$1):h[3]!==void 0&&(n=Y$1):n===Y$1?h[0]===">"?(n=o!=null?o:ge,c=-1):h[1]===void 0?c=-2:(c=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?Y$1:h[3]==='"'?Ki:Gi):n===Ki||n===Gi?n=Y$1:n===ji||n===Wi?n=ge:(n=Y$1,o=void 0);const p=n===Y$1&&s[a+1].startsWith("/>")?" ":"";r+=n===ge?l+Tr:c>=0?(i.push(d),l.slice(0,c)+Bs+l.slice(c)+B$1+p):l+B$1+(c===-2?a:p);}return [$s(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ie{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,h]=Dr(t,e);if(this.el=Ie.createElement(d,i),j.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes);}for(;(o=j.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Bs)){const u=h[n++],p=o.getAttribute(c).split(B$1),f=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:f[2],strings:p,ctor:f[1]==="."?Mr:f[1]==="?"?zr:f[1]==="@"?Nr:lt$1}),o.removeAttribute(c);}else c.startsWith(B$1)&&(l.push({type:6,index:r}),o.removeAttribute(c));if(Hs.test(o.tagName)){const c=o.textContent.split(B$1),u=c.length-1;if(u>0){o.textContent=Qe?Qe.emptyScript:"";for(let p=0;p<u;p++)o.append(c[p],Se()),j.nextNode(),l.push({type:2,index:++r});o.append(c[u],Se());}}}else if(o.nodeType===8)if(o.data===Rs)l.push({type:2,index:r});else {let c=-1;for(;(c=o.data.indexOf(B$1,c+1))!==-1;)l.push({type:7,index:r}),c+=B$1.length-1;}r++;}}static createElement(t,e){const i=X$1.createElement("template");return i.innerHTML=t,i}}function ae(s,t,e=s,i){var n,a,l;if(t===ne)return t;let o=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Te(t)?void 0:t._$litDirective$;return (o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(s),o._$AT(s,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=o:e._$Cl=o),o!==void 0&&(t=ae(s,o._$AS(s,t.values),o,i)),t}class Or{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,o=((d=t==null?void 0:t.creationScope)!=null?d:X$1).importNode(e,!0);j.currentNode=o;let r=j.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new Be(r,r.nextSibling,this,t):l.type===1?h=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(h=new Fr(r,this,t)),this._$AV.push(h),l=i[++a];}n!==(l==null?void 0:l.index)&&(r=j.nextNode(),n++);}return j.currentNode=X$1,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++;}}class Be{get _$AU(){var t,e;return (e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,o){var r;this.type=2,this._$AH=w$1,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.isConnected)!=null?r:!0;}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ae(this,t,e),Te(t)?t===w$1||t==null||t===""?(this._$AH!==w$1&&this._$AR(),this._$AH=w$1):t!==this._$AH&&t!==ne&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ir(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==w$1&&Te(this._$AH)?this._$AA.nextSibling.data=t:this.T(X$1.createTextNode(t)),this._$AH=t;}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ie.createElement($s(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else {const n=new Or(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n;}}_$AC(t){let e=Xi.get(t.strings);return e===void 0&&Xi.set(t.strings,e=new Ie(t)),e}k(t){li(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new Be(this.O(Se()),this.O(Se()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o);}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o;}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t));}}class lt$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=w$1,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w$1;}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(r===void 0)t=ae(this,t,e,0),n=!Te(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else {const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=ae(this,a[i+l],e,l),d===ne&&(d=this._$AH[l]),n||(n=!Te(d)||d!==this._$AH[l]),d===w$1?t=w$1:t!==w$1&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d;}n&&!o&&this.j(t);}j(t){t===w$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"");}}class Mr extends lt$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===w$1?void 0:t;}}class zr extends lt$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==w$1);}}class Nr extends lt$1{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5;}_$AI(t,e=this){var n;if((t=(n=ae(this,t,e,0))!=null?n:w$1)===ne)return;const i=this._$AH,o=t===w$1&&i!==w$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==w$1&&(i===w$1||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t);}}class Fr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t);}}const bt$1=Pe.litHtmlPolyfillSupport;var zs;bt$1==null||bt$1(Ie,Be),((zs=Pe.litHtmlVersions)!=null?zs:Pe.litHtmlVersions=[]).push("3.2.1");const Lr=(s,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let o=i._$litPart$;if(o===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=o=new Be(t.insertBefore(Se(),a),a,void 0,e!=null?e:{});}return o._$AI(s),o};/**
5789
+ */const Pe=globalThis,Qe=Pe.trustedTypes,qi=Qe?Qe.createPolicy("lit-html",{createHTML:s=>s}):void 0,Vs="$lit$",B$1=`lit$${Math.random().toFixed(9).slice(2)}$`,Bs="?"+B$1,Sr=`<${Bs}>`,X$1=document,Se=()=>X$1.createComment(""),Te=s=>s===null||typeof s!="object"&&typeof s!="function",li=Array.isArray,Tr=s=>li(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",vt$1=`[
5790
+ \f\r]`,ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yi=/-->/g,ji=/>/g,Y$1=RegExp(`>|${vt$1}(?:([^\\s"'>=/]+)(${vt$1}*=${vt$1}*(?:[^
5791
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Wi=/'/g,Gi=/"/g,Rs=/^(?:script|style|textarea|title)$/i,ne=Symbol.for("lit-noChange"),w$1=Symbol.for("lit-nothing"),Ki=new WeakMap,j=X$1.createTreeWalker(X$1,129);function Hs(s,t){if(!li(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return qi!==void 0?qi.createHTML(t):t}const Ir=(s,t)=>{const e=s.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",n=ge;for(let a=0;a<e;a++){const l=s[a];let d,h,c=-1,u=0;for(;u<l.length&&(n.lastIndex=u,h=n.exec(l),h!==null);)u=n.lastIndex,n===ge?h[1]==="!--"?n=Yi:h[1]!==void 0?n=ji:h[2]!==void 0?(Rs.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=Y$1):h[3]!==void 0&&(n=Y$1):n===Y$1?h[0]===">"?(n=o!=null?o:ge,c=-1):h[1]===void 0?c=-2:(c=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?Y$1:h[3]==='"'?Gi:Wi):n===Gi||n===Wi?n=Y$1:n===Yi||n===ji?n=ge:(n=Y$1,o=void 0);const p=n===Y$1&&s[a+1].startsWith("/>")?" ":"";r+=n===ge?l+Sr:c>=0?(i.push(d),l.slice(0,c)+Vs+l.slice(c)+B$1+p):l+B$1+(c===-2?a:p);}return [Hs(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ie{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,h]=Ir(t,e);if(this.el=Ie.createElement(d,i),j.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes);}for(;(o=j.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Vs)){const u=h[n++],p=o.getAttribute(c).split(B$1),f=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:f[2],strings:p,ctor:f[1]==="."?Or:f[1]==="?"?Mr:f[1]==="@"?zr:lt$1}),o.removeAttribute(c);}else c.startsWith(B$1)&&(l.push({type:6,index:r}),o.removeAttribute(c));if(Rs.test(o.tagName)){const c=o.textContent.split(B$1),u=c.length-1;if(u>0){o.textContent=Qe?Qe.emptyScript:"";for(let p=0;p<u;p++)o.append(c[p],Se()),j.nextNode(),l.push({type:2,index:++r});o.append(c[u],Se());}}}else if(o.nodeType===8)if(o.data===Bs)l.push({type:2,index:r});else {let c=-1;for(;(c=o.data.indexOf(B$1,c+1))!==-1;)l.push({type:7,index:r}),c+=B$1.length-1;}r++;}}static createElement(t,e){const i=X$1.createElement("template");return i.innerHTML=t,i}}function ae(s,t,e=s,i){var n,a,l;if(t===ne)return t;let o=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Te(t)?void 0:t._$litDirective$;return (o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(s),o._$AT(s,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=o:e._$Cl=o),o!==void 0&&(t=ae(s,o._$AS(s,t.values),o,i)),t}class Dr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,o=((d=t==null?void 0:t.creationScope)!=null?d:X$1).importNode(e,!0);j.currentNode=o;let r=j.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new Be(r,r.nextSibling,this,t):l.type===1?h=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(h=new Nr(r,this,t)),this._$AV.push(h),l=i[++a];}n!==(l==null?void 0:l.index)&&(r=j.nextNode(),n++);}return j.currentNode=X$1,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++;}}class Be{get _$AU(){var t,e;return (e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,o){var r;this.type=2,this._$AH=w$1,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.isConnected)!=null?r:!0;}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ae(this,t,e),Te(t)?t===w$1||t==null||t===""?(this._$AH!==w$1&&this._$AR(),this._$AH=w$1):t!==this._$AH&&t!==ne&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Tr(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==w$1&&Te(this._$AH)?this._$AA.nextSibling.data=t:this.T(X$1.createTextNode(t)),this._$AH=t;}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ie.createElement(Hs(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else {const n=new Dr(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n;}}_$AC(t){let e=Ki.get(t.strings);return e===void 0&&Ki.set(t.strings,e=new Ie(t)),e}k(t){li(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new Be(this.O(Se()),this.O(Se()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o);}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o;}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t));}}class lt$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=w$1,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w$1;}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(r===void 0)t=ae(this,t,e,0),n=!Te(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else {const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=ae(this,a[i+l],e,l),d===ne&&(d=this._$AH[l]),n||(n=!Te(d)||d!==this._$AH[l]),d===w$1?t=w$1:t!==w$1&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d;}n&&!o&&this.j(t);}j(t){t===w$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"");}}class Or extends lt$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===w$1?void 0:t;}}class Mr extends lt$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==w$1);}}class zr extends lt$1{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5;}_$AI(t,e=this){var n;if((t=(n=ae(this,t,e,0))!=null?n:w$1)===ne)return;const i=this._$AH,o=t===w$1&&i!==w$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==w$1&&(i===w$1||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t);}}class Nr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t);}}const bt$1=Pe.litHtmlPolyfillSupport;var Ms;bt$1==null||bt$1(Ie,Be),((Ms=Pe.litHtmlVersions)!=null?Ms:Pe.litHtmlVersions=[]).push("3.2.1");const Fr=(s,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let o=i._$litPart$;if(o===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=o=new Be(t.insertBefore(Se(),a),a,void 0,e!=null?e:{});}return o._$AI(s),o};/**
5792
5792
  * @license
5793
5793
  * Copyright 2017 Google LLC
5794
5794
  * SPDX-License-Identifier: BSD-3-Clause
5795
- */class ie extends te{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;const t=super.createRenderRoot();return ((e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Lr(e,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1);}render(){return ne}}var Ns;ie._$litElement$=!0,ie.finalized=!0,(Ns=globalThis.litElementHydrateSupport)==null||Ns.call(globalThis,{LitElement:ie});const yt$1=globalThis.litElementPolyfillSupport;yt$1==null||yt$1({LitElement:ie});var Fs;((Fs=globalThis.litElementVersions)!=null?Fs:globalThis.litElementVersions=[]).push("4.1.1");/**
5795
+ */class ie extends te{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;const t=super.createRenderRoot();return ((e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fr(e,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1);}render(){return ne}}var zs;ie._$litElement$=!0,ie.finalized=!0,(zs=globalThis.litElementHydrateSupport)==null||zs.call(globalThis,{LitElement:ie});const yt$1=globalThis.litElementPolyfillSupport;yt$1==null||yt$1({LitElement:ie});var Ns;((Ns=globalThis.litElementVersions)!=null?Ns:globalThis.litElementVersions=[]).push("4.1.1");/**
5796
5796
  * @license
5797
5797
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5798
5798
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5799
- */const Vr=s=>class extends s{static get properties(){return {_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return [...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,o){super.attributeChangedCallback(e,i,o),e==="theme"&&this._set_theme(o);}};/**
5799
+ */const Lr=s=>class extends s{static get properties(){return {_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return [...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,o){super.attributeChangedCallback(e,i,o),e==="theme"&&this._set_theme(o);}};/**
5800
5800
  * @license
5801
5801
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5802
5802
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5803
- */const Us=[],Lt$1=new Set,di=new Set;function qs(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Br(s){return qs(customElements.get(s))}function Rr(s=[]){return [s].flat(1/0).filter(t=>t instanceof ai?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ys(s,t){return (s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function js(s){return s.map(t=>t.cssText).join(`
5804
- `)}const Ze="vaadin-themable-mixin-style";function Hr(s,t){const e=document.createElement("style");e.id=Ze,e.textContent=js(s),t.content.appendChild(e);}function $r(s){if(!s.shadowRoot)return;const t=s.constructor;if(s instanceof ie)[...s.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Ls(s.shadowRoot,t.elementStyles);else {const e=s.shadowRoot.getElementById(Ze),i=t.prototype._template;e.textContent=i.content.getElementById(Ze).textContent;}}function Ur(s){Lt$1.forEach(t=>{const e=t.deref();e instanceof s?$r(e):e||Lt$1.delete(t);});}function Ws(s){if(s.prototype instanceof ie)s.elementStyles=s.finalizeStyles(s.styles);else {const t=s.prototype._template;t.content.getElementById(Ze).textContent=js(s.getStylesForThis());}di.forEach(t=>{const e=customElements.get(t);e!==s&&e.prototype instanceof s&&Ws(e);});}function qr(s,t){const e=s.__themes;return !e||!t?!1:e.some(i=>i.styles.some(o=>t.some(r=>r.cssText===o.cssText)))}function m$1(s,t,e={}){t=Rr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):Us.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId}),s&&di.forEach(i=>{if(Ys(s,i)&&Br(i)){const o=customElements.get(i);qr(o,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Ws(o),Ur(o);}});}function Vt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Us}function Yr(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function Gs(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=Vt().find(o=>o.moduleId===e);i?t.push(...Gs(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`);},s.styles),t}function jr(s){const t=`${s}-default-theme`,e=Vt().filter(i=>i.moduleId!==t&&Ys(i.themeFor,s)).map(i=>mt$1(me({},i),{styles:[...Gs(i),...i.styles],includePriority:Yr(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return e.length>0?e:Vt().filter(i=>i.moduleId===t)}const I$1=s=>class extends Vr(s){constructor(){super(),Lt$1.add(new WeakRef(this));}static finalize(){if(super.finalize(),this.is&&di.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||qs(this)||Hr(this.getStylesForThis(),e);}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=s.__themes||[],i=Object.getPrototypeOf(this.prototype),o=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...o,...jr(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
5803
+ */const $s=[],Lt$1=new Set,di=new Set;function Us(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Vr(s){return Us(customElements.get(s))}function Br(s=[]){return [s].flat(1/0).filter(t=>t instanceof ai?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function qs(s,t){return (s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Ys(s){return s.map(t=>t.cssText).join(`
5804
+ `)}const Ze="vaadin-themable-mixin-style";function Rr(s,t){const e=document.createElement("style");e.id=Ze,e.textContent=Ys(s),t.content.appendChild(e);}function Hr(s){if(!s.shadowRoot)return;const t=s.constructor;if(s instanceof ie)[...s.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Fs(s.shadowRoot,t.elementStyles);else {const e=s.shadowRoot.getElementById(Ze),i=t.prototype._template;e.textContent=i.content.getElementById(Ze).textContent;}}function $r(s){Lt$1.forEach(t=>{const e=t.deref();e instanceof s?Hr(e):e||Lt$1.delete(t);});}function js(s){if(s.prototype instanceof ie)s.elementStyles=s.finalizeStyles(s.styles);else {const t=s.prototype._template;t.content.getElementById(Ze).textContent=Ys(s.getStylesForThis());}di.forEach(t=>{const e=customElements.get(t);e!==s&&e.prototype instanceof s&&js(e);});}function Ur(s,t){const e=s.__themes;return !e||!t?!1:e.some(i=>i.styles.some(o=>t.some(r=>r.cssText===o.cssText)))}function m$1(s,t,e={}){t=Br(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):$s.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId}),s&&di.forEach(i=>{if(qs(s,i)&&Vr(i)){const o=customElements.get(i);Ur(o,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),js(o),$r(o);}});}function Vt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():$s}function qr(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function Ws(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=Vt().find(o=>o.moduleId===e);i?t.push(...Ws(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`);},s.styles),t}function Yr(s){const t=`${s}-default-theme`,e=Vt().filter(i=>i.moduleId!==t&&qs(i.themeFor,s)).map(i=>mt$1(me({},i),{styles:[...Ws(i),...i.styles],includePriority:qr(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return e.length>0?e:Vt().filter(i=>i.moduleId===t)}const I$1=s=>class extends Lr(s){constructor(){super(),Lt$1.add(new WeakRef(this));}static finalize(){if(super.finalize(),this.is&&di.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Us(this)||Rr(this.getStylesForThis(),e);}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=s.__themes||[],i=Object.getPrototypeOf(this.prototype),o=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...o,...Yr(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
5805
5805
  * @license
5806
5806
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5807
5807
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5808
- */const Wr=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
5809
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},he=(s,...t)=>{Wr(`lumo-${s}`,t);};/**
5808
+ */const jr=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
5809
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},he=(s,...t)=>{jr(`lumo-${s}`,t);};/**
5810
5810
  * @license
5811
5811
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5812
5812
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5813
- */const Gr=_$1`
5813
+ */const Wr=_$1`
5814
5814
  :host {
5815
5815
  /* Base (background) */
5816
5816
  --lumo-base-color: #fff;
@@ -5895,7 +5895,7 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
5895
5895
  --lumo-disabled-text-color: GrayText;
5896
5896
  }
5897
5897
  }
5898
- `;he("color-props",Gr);const Kr=_$1`
5898
+ `;he("color-props",Wr);const Gr=_$1`
5899
5899
  [theme~='dark'] {
5900
5900
  /* Base (background) */
5901
5901
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -6013,11 +6013,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6013
6013
  pre code {
6014
6014
  background: transparent;
6015
6015
  }
6016
- `;m$1("",Kr,{moduleId:"lumo-color"});/**
6016
+ `;m$1("",Gr,{moduleId:"lumo-color"});/**
6017
6017
  * @license
6018
6018
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6019
6019
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6020
- */const Xr=_$1`
6020
+ */const Kr=_$1`
6021
6021
  @font-face {
6022
6022
  font-family: 'lumo-icons';
6023
6023
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -6070,11 +6070,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6070
6070
  --lumo-icons-upload: '\\ea29';
6071
6071
  --lumo-icons-user: '\\ea2a';
6072
6072
  }
6073
- `;he("font-icons",Xr);/**
6073
+ `;he("font-icons",Kr);/**
6074
6074
  * @license
6075
6075
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6076
6076
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6077
- */const Jr=_$1`
6077
+ */const Xr=_$1`
6078
6078
  :host {
6079
6079
  --lumo-size-xs: 1.625rem;
6080
6080
  --lumo-size-s: 1.875rem;
@@ -6089,11 +6089,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6089
6089
  /* For backwards compatibility */
6090
6090
  --lumo-icon-size: var(--lumo-icon-size-m);
6091
6091
  }
6092
- `;he("sizing-props",Jr);/**
6092
+ `;he("sizing-props",Xr);/**
6093
6093
  * @license
6094
6094
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6095
6095
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6096
- */const Qr=_$1`
6096
+ */const Jr=_$1`
6097
6097
  :host {
6098
6098
  /* Square */
6099
6099
  --lumo-space-xs: 0.25rem;
@@ -6116,11 +6116,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6116
6116
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
6117
6117
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
6118
6118
  }
6119
- `;he("spacing-props",Qr);/**
6119
+ `;he("spacing-props",Jr);/**
6120
6120
  * @license
6121
6121
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6122
6122
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6123
- */const Zr=_$1`
6123
+ */const Qr=_$1`
6124
6124
  :host {
6125
6125
  /* Border radius */
6126
6126
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -6220,11 +6220,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6220
6220
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
6221
6221
  --vaadin-input-field-value-font-weight: 500;
6222
6222
  }
6223
- `;he("style-props",Zr);/**
6223
+ `;he("style-props",Qr);/**
6224
6224
  * @license
6225
6225
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6226
6226
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6227
- */const en=_$1`
6227
+ */const Zr=_$1`
6228
6228
  :host {
6229
6229
  /* prettier-ignore */
6230
6230
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -6244,7 +6244,7 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6244
6244
  --lumo-line-height-s: 1.375;
6245
6245
  --lumo-line-height-m: 1.625;
6246
6246
  }
6247
- `,tn=_$1`
6247
+ `,en=_$1`
6248
6248
  body,
6249
6249
  :host {
6250
6250
  font-family: var(--lumo-font-family);
@@ -6336,7 +6336,7 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6336
6336
  border-left: none;
6337
6337
  border-right: 2px solid var(--lumo-contrast-30pct);
6338
6338
  }
6339
- `;m$1("",tn,{moduleId:"lumo-typography"});he("typography-props",en);m$1("vaadin-checkbox",_$1`
6339
+ `;m$1("",en,{moduleId:"lumo-typography"});he("typography-props",Zr);m$1("vaadin-checkbox",_$1`
6340
6340
  :host {
6341
6341
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
6342
6342
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -6656,7 +6656,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6656
6656
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6657
6657
  Code distributed by Google as part of the polymer project is also
6658
6658
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6659
- */let sn=/(url\()([^)]*)(\))/g,on=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,qe,D$1;function ke(s,t){if(s&&on.test(s)||s==="//")return s;if(qe===void 0){qe=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",qe=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),qe)try{return new URL(s,t).href}catch(e){return s}return D$1||(D$1=document.implementation.createHTMLDocument("temp"),D$1.base=D$1.createElement("base"),D$1.head.appendChild(D$1.base),D$1.anchor=D$1.createElement("a"),D$1.body.appendChild(D$1.anchor)),D$1.base.href=t,D$1.anchor.href=s,D$1.anchor.href||s}function hi(s,t){return s.replace(sn,function(e,i,o,r){return i+"'"+ke(o.replace(/["']/g,""),t)+"'"+r})}function ci(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
6659
+ */let tn=/(url\()([^)]*)(\))/g,sn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,qe,D$1;function ke(s,t){if(s&&sn.test(s)||s==="//")return s;if(qe===void 0){qe=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",qe=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),qe)try{return new URL(s,t).href}catch(e){return s}return D$1||(D$1=document.implementation.createHTMLDocument("temp"),D$1.base=D$1.createElement("base"),D$1.head.appendChild(D$1.base),D$1.anchor=D$1.createElement("a"),D$1.body.appendChild(D$1.anchor)),D$1.base.href=t,D$1.anchor.href=s,D$1.anchor.href||s}function hi(s,t){return s.replace(tn,function(e,i,o,r){return i+"'"+ke(o.replace(/["']/g,""),t)+"'"+r})}function ci(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
6660
6660
  @license
6661
6661
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6662
6662
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6664,7 +6664,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6664
6664
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6665
6665
  Code distributed by Google as part of the polymer project is also
6666
6666
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6667
- */const Ks=!window.ShadyDOM||!window.ShadyDOM.inUse;const rn=Ks&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return !1}})();let nn=window.Polymer&&window.Polymer.rootPath||ci(document.baseURI||window.location.href),et$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let tt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,an=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Js=window.Polymer&&window.Polymer.legacyWarnings||!1,ln=window.Polymer&&window.Polymer.syncInitialRender||!1,Bt$1=window.Polymer&&window.Polymer.legacyUndefined||!1,dn=window.Polymer&&window.Polymer.orderedComputed||!1,Ji=window.Polymer&&window.Polymer.removeNestedTemplates||!1,hn=window.Polymer&&window.Polymer.fastDomIf||!1,Qi=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let cn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
6667
+ */const Gs=!window.ShadyDOM||!window.ShadyDOM.inUse;const on=Gs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return !1}})();let rn=window.Polymer&&window.Polymer.rootPath||ci(document.baseURI||window.location.href),et$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let tt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,nn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ks=window.Polymer&&window.Polymer.legacyOptimizations||!1,Xs=window.Polymer&&window.Polymer.legacyWarnings||!1,an=window.Polymer&&window.Polymer.syncInitialRender||!1,Bt$1=window.Polymer&&window.Polymer.legacyUndefined||!1,ln=window.Polymer&&window.Polymer.orderedComputed||!1,Xi=window.Polymer&&window.Polymer.removeNestedTemplates||!1,dn=window.Polymer&&window.Polymer.fastDomIf||!1,Ji=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let hn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
6668
6668
  @license
6669
6669
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6670
6670
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6672,7 +6672,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6672
6672
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6673
6673
  Code distributed by Google as part of the polymer project is also
6674
6674
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6675
- */let un=0;const v$1=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=un++;function i(o){let r=o.__mixinSet;if(r&&r[e])return o;let n=t,a=n.get(o);if(!a){a=s(o),n.set(o,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l;}return a}return i};/**
6675
+ */let cn=0;const v$1=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=cn++;function i(o){let r=o.__mixinSet;if(r&&r[e])return o;let n=t,a=n.get(o);if(!a){a=s(o),n.set(o,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l;}return a}return i};/**
6676
6676
  @license
6677
6677
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6678
6678
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6680,7 +6680,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6680
6680
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6681
6681
  Code distributed by Google as part of the polymer project is also
6682
6682
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6683
- */let ui={},Qs={};function Zi(s,t){ui[s]=Qs[s.toLowerCase()]=t;}function es(s){return ui[s]||Qs[s.toLowerCase()]}function pn(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id);}class De extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=es(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,o){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=ke(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ci(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(tt$1&&es(t)!==void 0)throw Zi(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Zi(t,this),pn(this);}}}De.prototype.modules=ui;customElements.define("dom-module",De);/**
6683
+ */let ui={},Js={};function Qi(s,t){ui[s]=Js[s.toLowerCase()]=t;}function Zi(s){return ui[s]||Js[s.toLowerCase()]}function un(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id);}class De extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=Zi(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,o){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=ke(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ci(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(tt$1&&Zi(t)!==void 0)throw Qi(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Qi(t,this),un(this);}}}De.prototype.modules=ui;customElements.define("dom-module",De);/**
6684
6684
  @license
6685
6685
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6686
6686
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6688,7 +6688,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6688
6688
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6689
6689
  Code distributed by Google as part of the polymer project is also
6690
6690
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6691
- */const _n="link[rel=import][type~=css]",fn="include",ts="shady-unscoped";function Zs(s){return De.import(s)}function is(s){let t=s.body?s.body:s;const e=hi(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function mn(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...gn(t[i]));return e}function gn(s){const t=Zs(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...to(t));const i=t.querySelector("template");i&&e.push(...eo(i,t.assetpath)),t._styles=e;}return t._styles}function eo(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(fn);n&&e.push(...mn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=hi(r.textContent,t)),e.push(r);}s._styles=e;}return s._styles}function vn(s){let t=Zs(s);return t?to(t):[]}function to(s){const t=[],e=s.querySelectorAll(_n);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const r=o.import,n=o.hasAttribute(ts);if(n&&!r._unscopedStyle){const a=is(r);a.setAttribute(ts,""),r._unscopedStyle=a;}else r._style||(r._style=is(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
6691
+ */const pn="link[rel=import][type~=css]",_n="include",es="shady-unscoped";function Qs(s){return De.import(s)}function ts(s){let t=s.body?s.body:s;const e=hi(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function fn(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...mn(t[i]));return e}function mn(s){const t=Qs(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...eo(t));const i=t.querySelector("template");i&&e.push(...Zs(i,t.assetpath)),t._styles=e;}return t._styles}function Zs(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(_n);n&&e.push(...fn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=hi(r.textContent,t)),e.push(r);}s._styles=e;}return s._styles}function gn(s){let t=Qs(s);return t?eo(t):[]}function eo(s){const t=[],e=s.querySelectorAll(pn);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const r=o.import,n=o.hasAttribute(es);if(n&&!r._unscopedStyle){const a=ts(r);a.setAttribute(es,""),r._unscopedStyle=a;}else r._style||(r._style=ts(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
6692
6692
  @license
6693
6693
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6694
6694
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6704,7 +6704,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6704
6704
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6705
6705
  Code distributed by Google as part of the polymer project is also
6706
6706
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6707
- */function Rt(s){return s.indexOf(".")>=0}function J$1(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function io(s,t){return s.indexOf(t+".")===0}function Oe(s,t){return t.indexOf(s+".")===0}function Me(s,t,e){return t+e.slice(s.length)}function bn(s,t){return s===t||io(s,t)||Oe(s,t)}function we(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let o=0;o<i.length;o++)t.push(i[o]);}return t.join(".")}else return s}function so(s){return Array.isArray(s)?we(s).split("."):s.toString().split(".")}function T$1(s,t,e){let i=s,o=so(t);for(let r=0;r<o.length;r++){if(!i)return;let n=o[r];i=i[n];}return e&&(e.path=o.join(".")),i}function ss(s,t,e){let i=s,o=so(t),r=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[r]=e;}else i[t]=e;return o.join(".")}/**
6707
+ */function Rt(s){return s.indexOf(".")>=0}function J$1(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function to(s,t){return s.indexOf(t+".")===0}function Oe(s,t){return t.indexOf(s+".")===0}function Me(s,t,e){return t+e.slice(s.length)}function vn(s,t){return s===t||to(s,t)||Oe(s,t)}function we(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let o=0;o<i.length;o++)t.push(i[o]);}return t.join(".")}else return s}function io(s){return Array.isArray(s)?we(s).split("."):s.toString().split(".")}function T$1(s,t,e){let i=s,o=io(t);for(let r=0;r<o.length;r++){if(!i)return;let n=o[r];i=i[n];}return e&&(e.path=o.join(".")),i}function is(s,t,e){let i=s,o=io(t),r=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[r]=e;}else i[t]=e;return o.join(".")}/**
6708
6708
  @license
6709
6709
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6710
6710
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6712,7 +6712,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6712
6712
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6713
6713
  Code distributed by Google as part of the polymer project is also
6714
6714
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6715
- */const it$1={},yn=/-[a-z]/g,xn=/([A-Z])/g;function oo(s){return it$1[s]||(it$1[s]=s.indexOf("-")<0?s:s.replace(yn,t=>t[1].toUpperCase()))}function dt$1(s){return it$1[s]||(it$1[s]=s.replace(xn,"-$1").toLowerCase())}/**
6715
+ */const it$1={},bn=/-[a-z]/g,yn=/([A-Z])/g;function so(s){return it$1[s]||(it$1[s]=s.indexOf("-")<0?s:s.replace(bn,t=>t[1].toUpperCase()))}function dt$1(s){return it$1[s]||(it$1[s]=s.replace(yn,"-$1").toLowerCase())}/**
6716
6716
  @license
6717
6717
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6718
6718
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6720,7 +6720,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6720
6720
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6721
6721
  Code distributed by Google as part of the polymer project is also
6722
6722
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6723
- */let wn=0,ro=0,se=[],Cn=0,Ht$1=!1,no=document.createTextNode("");new window.MutationObserver(An).observe(no,{characterData:!0});function An(){Ht$1=!1;const s=se.length;for(let t=0;t<s;t++){let e=se[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}se.splice(0,s),ro+=s;}const En={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},ao={run(s){return Ht$1||(Ht$1=!0,no.textContent=Cn++),se.push(s),wn++},cancel(s){const t=s-ro;if(t>=0){if(!se[t])throw new Error("invalid async handle: "+s);se[t]=null;}}};/**
6723
+ */let xn=0,oo=0,se=[],wn=0,Ht$1=!1,ro=document.createTextNode("");new window.MutationObserver(Cn).observe(ro,{characterData:!0});function Cn(){Ht$1=!1;const s=se.length;for(let t=0;t<s;t++){let e=se[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}se.splice(0,s),oo+=s;}const An={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},no={run(s){return Ht$1||(Ht$1=!0,ro.textContent=wn++),se.push(s),xn++},cancel(s){const t=s-oo;if(t>=0){if(!se[t])throw new Error("invalid async handle: "+s);se[t]=null;}}};/**
6724
6724
  @license
6725
6725
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6726
6726
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6728,7 +6728,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6728
6728
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6729
6729
  Code distributed by Google as part of the polymer project is also
6730
6730
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6731
- */const Pn=ao,lo=v$1(s=>{class t extends s{static createProperties(i){const o=this.prototype;for(let r in i)r in o||o._createPropertyAccessor(r);}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o));}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties();}});}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties();}ready(){this.__dataReady=!0,this._flushProperties();}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i]);}_initializeInstanceProperties(i){Object.assign(this,i);}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties();}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,r){let n=this.__data[i],a=this._shouldPropertyChange(i,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return !!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Pn.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties());}));}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready());}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,o,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,r)),this.__dataCounter--;}_shouldPropertiesChange(i,o,r){return !!o}_propertiesChanged(i,o,r){}_shouldPropertyChange(i,o,r){return r!==o&&(r===r||o===o)}attributeChangedCallback(i,o,r,n){o!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,r,n);}_attributeToProperty(i,o,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(o,r||this.constructor.typeForProperty(a));}}_propertyToAttribute(i,o,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1;}_valueToNodeAttribute(i,o,r){const n=this._serializeValue(o);(r==="class"||r==="name"||r==="slot")&&(i=A$1(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n);}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
6731
+ */const En=no,ao=v$1(s=>{class t extends s{static createProperties(i){const o=this.prototype;for(let r in i)r in o||o._createPropertyAccessor(r);}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o));}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties();}});}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties();}ready(){this.__dataReady=!0,this._flushProperties();}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i]);}_initializeInstanceProperties(i){Object.assign(this,i);}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties();}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,r){let n=this.__data[i],a=this._shouldPropertyChange(i,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return !!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,En.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties());}));}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready());}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,o,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,r)),this.__dataCounter--;}_shouldPropertiesChange(i,o,r){return !!o}_propertiesChanged(i,o,r){}_shouldPropertyChange(i,o,r){return r!==o&&(r===r||o===o)}attributeChangedCallback(i,o,r,n){o!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,r,n);}_attributeToProperty(i,o,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(o,r||this.constructor.typeForProperty(a));}}_propertyToAttribute(i,o,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1;}_valueToNodeAttribute(i,o,r){const n=this._serializeValue(o);(r==="class"||r==="name"||r==="slot")&&(i=A$1(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n);}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
6732
6732
  @license
6733
6733
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6734
6734
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6736,7 +6736,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6736
6736
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6737
6737
  Code distributed by Google as part of the polymer project is also
6738
6738
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6739
- */const ho={};let Ye=HTMLElement.prototype;for(;Ye;){let s=Object.getOwnPropertyNames(Ye);for(let t=0;t<s.length;t++)ho[s[t]]=!0;Ye=Object.getPrototypeOf(Ye);}const kn=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function Sn(s,t){if(!ho[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e));}}const Tn=v$1(s=>{const t=lo(s);class e extends t{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let r=0;r<o.length;r++)this.prototype._createPropertyAccessor(oo(o[r]));}static attributeNameForProperty(o){return dt$1(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties();}_initializeProtoProperties(o){for(let r in o)this._setProperty(r,o[r]);}_ensureAttribute(o,r){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,r,o);}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(kn(o))return o;try{return JSON.stringify(o)}catch(r){return ""}}default:return super._serializeValue(o)}}_deserializeValue(o,r){let n;switch(r){case Object:try{n=JSON.parse(o);}catch(a){n=o;}break;case Array:try{n=JSON.parse(o);}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`);}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,r);break}return n}_definePropertyAccessor(o,r){Sn(this,o),super._definePropertyAccessor(o,r);}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return !!(this.__dataPending&&o in this.__dataPending)}}return e});/**
6739
+ */const lo={};let Ye=HTMLElement.prototype;for(;Ye;){let s=Object.getOwnPropertyNames(Ye);for(let t=0;t<s.length;t++)lo[s[t]]=!0;Ye=Object.getPrototypeOf(Ye);}const Pn=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function kn(s,t){if(!lo[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e));}}const Sn=v$1(s=>{const t=ao(s);class e extends t{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let r=0;r<o.length;r++)this.prototype._createPropertyAccessor(so(o[r]));}static attributeNameForProperty(o){return dt$1(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties();}_initializeProtoProperties(o){for(let r in o)this._setProperty(r,o[r]);}_ensureAttribute(o,r){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,r,o);}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Pn(o))return o;try{return JSON.stringify(o)}catch(r){return ""}}default:return super._serializeValue(o)}}_deserializeValue(o,r){let n;switch(r){case Object:try{n=JSON.parse(o);}catch(a){n=o;}break;case Array:try{n=JSON.parse(o);}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`);}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,r);break}return n}_definePropertyAccessor(o,r){kn(this,o),super._definePropertyAccessor(o,r);}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return !!(this.__dataPending&&o in this.__dataPending)}}return e});/**
6740
6740
  @license
6741
6741
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6742
6742
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6744,7 +6744,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6744
6744
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6745
6745
  Code distributed by Google as part of the polymer project is also
6746
6746
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6747
- */const In={"dom-if":!0,"dom-repeat":!0};let os=!1,rs=!1;function Dn(){if(!os){os=!0;const s=document.createElement("textarea");s.placeholder="a",rs=s.placeholder===s.textContent;}return rs}function On(s){Dn()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null);}const Mn=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return (t,e,i)=>{const o=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(o,i));return}t.setAttribute(i,o);}})();function zn(s){let t=s.getAttribute("is");if(t&&In[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Mn(s,e,i),e.removeAttribute(i);}}return s}function co(s,t){let e=t.parentInfo&&co(s,t.parentInfo);if(e){for(let i=e.firstChild,o=0;i;i=i.nextSibling)if(t.parentIndex===o++)return i}else return s}function Nn(s,t,e,i){i.id&&(t[i.id]=e);}function Fn(s,t,e){if(e.events&&e.events.length)for(let i=0,o=e.events,r;i<o.length&&(r=o[i]);i++)s._addMethodEventListenerToNode(t,r.name,r.value,s);}function Ln(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i);}function Vn(s,t,e){return s=s._methodHost||s,function(o){s[e]?s[e](o,o.detail):console.warn("listener method `"+e+"` not defined");}}const Bn=v$1(s=>{class t extends s{static _parseTemplate(i,o){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!o,r.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null});}return i._templateInfo}static _parseTemplateContent(i,o,r){return this._parseTemplateNode(i.content,o,r)}static _parseTemplateNode(i,o,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,r)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),On(a),a.firstChild&&this._parseTemplateChildNodes(a,o,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,r)||n),n||r.noted}static _parseTemplateChildNodes(i,o,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=zn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,i.removeChild(h),h=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&a++;}}static _parseTemplateNestedTemplate(i,o,r){let n=i,a=this._parseTemplate(n,o);return (a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,o,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let r=o.nodeInfoList,n=o.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,h=r.length,c;d<h&&(c=r[d]);d++){let u=l[d]=co(a,c);Nn(this,a.$,u,c),Ln(this,u,c,o),Fn(this,u,c);}return a=a,a}_addMethodEventListenerToNode(i,o,r,n){n=n||i;let a=Vn(n,o,r);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,r){i.addEventListener(o,r);}_removeEventListenerFromNode(i,o,r){i.removeEventListener(o,r);}}return t});/**
6747
+ */const Tn={"dom-if":!0,"dom-repeat":!0};let ss=!1,os=!1;function In(){if(!ss){ss=!0;const s=document.createElement("textarea");s.placeholder="a",os=s.placeholder===s.textContent;}return os}function Dn(s){In()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null);}const On=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return (t,e,i)=>{const o=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(o,i));return}t.setAttribute(i,o);}})();function Mn(s){let t=s.getAttribute("is");if(t&&Tn[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];On(s,e,i),e.removeAttribute(i);}}return s}function ho(s,t){let e=t.parentInfo&&ho(s,t.parentInfo);if(e){for(let i=e.firstChild,o=0;i;i=i.nextSibling)if(t.parentIndex===o++)return i}else return s}function zn(s,t,e,i){i.id&&(t[i.id]=e);}function Nn(s,t,e){if(e.events&&e.events.length)for(let i=0,o=e.events,r;i<o.length&&(r=o[i]);i++)s._addMethodEventListenerToNode(t,r.name,r.value,s);}function Fn(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i);}function Ln(s,t,e){return s=s._methodHost||s,function(o){s[e]?s[e](o,o.detail):console.warn("listener method `"+e+"` not defined");}}const Vn=v$1(s=>{class t extends s{static _parseTemplate(i,o){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!o,r.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null});}return i._templateInfo}static _parseTemplateContent(i,o,r){return this._parseTemplateNode(i.content,o,r)}static _parseTemplateNode(i,o,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,r)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),Dn(a),a.firstChild&&this._parseTemplateChildNodes(a,o,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,r)||n),n||r.noted}static _parseTemplateChildNodes(i,o,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Mn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,i.removeChild(h),h=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&a++;}}static _parseTemplateNestedTemplate(i,o,r){let n=i,a=this._parseTemplate(n,o);return (a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,o,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let r=o.nodeInfoList,n=o.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,h=r.length,c;d<h&&(c=r[d]);d++){let u=l[d]=ho(a,c);zn(this,a.$,u,c),Fn(this,u,c,o),Nn(this,u,c);}return a=a,a}_addMethodEventListenerToNode(i,o,r,n){n=n||i;let a=Ln(n,o,r);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,r){i.addEventListener(o,r);}_removeEventListenerFromNode(i,o,r){i.removeEventListener(o,r);}}return t});/**
6748
6748
  * @fileoverview
6749
6749
  * @suppress {checkPrototypalTypes}
6750
6750
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -6754,7 +6754,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6754
6754
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
6755
6755
  * Google as part of the polymer project is also subject to an additional IP
6756
6756
  * rights grant found at http://polymer.github.io/PATENTS.txt
6757
- */let ze=0;const Ne=[],g$1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},uo="__computeInfo",Rn=/[A-Z]/;function xt$1(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Ce(s,t,e,i,o,r){if(t){let n=!1;const a=ze++;for(let l in e){let d=o?J$1(l):l,h=t[d];if(h)for(let c=0,u=h.length,p;c<u&&(p=h[c]);c++)(!p.info||p.info.lastRun!==a)&&(!o||pi(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(s,l,e,i,p.info,o,r),n=!0);}return n}return !1}function Hn(s,t,e,i,o,r,n,a){let l=!1,d=n?J$1(i):i,h=t[d];if(h)for(let c=0,u=h.length,p;c<u&&(p=h[c]);c++)(!p.info||p.info.lastRun!==e)&&(!n||pi(i,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(s,i,o,r,p.info,n,a),l=!0);return l}function pi(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&io(e,s))||!!(t.wildcard&&Oe(e,s))}else return !0}function ns(s,t,e,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined");}function $n(s,t,e,i,o){let r=s[g$1.NOTIFY],n,a=ze++;for(let d in t)t[d]&&(r&&Hn(s,r,a,d,e,i,o)||o&&Un(s,d,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function Un(s,t,e){let i=J$1(t);if(i!==t){let o=dt$1(i)+"-changed";return po(s,o,e[t],t),!0}return !1}function po(s,t,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),A$1(s).dispatchEvent(new CustomEvent(t,{detail:o}));}function qn(s,t,e,i,o,r){let a=(r?J$1(t):t)!=t?t:null,l=a?T$1(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),po(s,o.eventName,l,a);}function Yn(s,t,e,i,o){let r,n=s.detail,a=n&&n.path;a?(i=Me(e,i,a),r=n&&n.value):r=s.currentTarget[e],r=o?!r:r,(!t[g$1.READ_ONLY]||!t[g$1.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function jn(s,t,e,i,o){let r=s.__data[t];et$1&&(r=et$1(r,o.attrName,"attribute",s)),s._propertyToAttribute(t,o.attrName,r);}function Wn(s,t,e,i){let o=s[g$1.COMPUTE];if(o)if(dn){ze++;const r=Kn(s),n=[];for(let l in t)as(l,o,n,r,i);let a;for(;a=n.shift();)_o(s,"",t,e,a)&&as(a.methodInfo,o,n,r,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null;}else {let r=t;for(;Ce(s,o,r,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null;}}const Gn=(s,t,e)=>{let i=0,o=t.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else {r=n;break}}r<0&&(r=o+1),t.splice(r,0,s);},as=(s,t,e,i,o)=>{const r=o?J$1(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ze&&(!o||pi(s,l.trigger))&&(l.info.lastRun=ze,Gn(l.info,e,i));}};function Kn(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[g$1.COMPUTE];let{counts:i,ready:o,total:r}=Xn(s),n;for(;n=o.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d);});}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t;}return t}function Xn(s){const t=s[uo],e={},i=s[g$1.COMPUTE],o=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0);}for(let n in i)t[n]||o.push(n);return {counts:e,ready:o,total:r}}function _o(s,t,e,i,o){let r=$t$1(s,t,e,i,o);if(r===Ne)return !1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function Jn(s,t,e){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Oe(r,t)?(o=Me(r,n,t),s._setPendingPropertyOrPath(o,e,!0,!0)):Oe(n,t)&&(o=Me(n,r,t),s._setPendingPropertyOrPath(o,e,!0,!0));}}}function wt$1(s,t,e,i,o,r,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ia(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||dt$1(o)+"-changed",a.listenerNegate=h;}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Qn(s,t,a,h,l);}}function Qn(s,t,e,i,o){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else {let r=i.dependencies,n={index:o,binding:e,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=mo(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Zn,info:n,trigger:l});}}}function Zn(s,t,e,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=Me(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&s._enqueueClient(a);}else {let h=o.evaluator._evaluateBinding(s,d,t,e,i,r);h!==Ne&&ea(s,a,l,d,h);}}function ea(s,t,e,i,o){if(o=ta(t,o,e,i),et$1&&(o=et$1(o,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,o,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[g$1.READ_ONLY]||!t[g$1.READ_ONLY][r])&&t._setPendingProperty(r,o)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,o);}}function ta(s,t,e,i){if(e.isCompound){let o=s.__dataCompoundStorage[e.target];o[i.compoundIndex]=t,t=o.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function ia(s){return !!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function sa(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=e[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];oa(n,d),ra(n,s,d);}n.__dataHost=s;}}function oa(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=t.target;e[r]=o,t.literal&&t.kind=="property"&&(r==="className"&&(s=A$1(s)),s[r]=t.literal);}}function ra(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(o){Yn(o,t,e.target,i.source,i.negate);});}}function ls(s,t,e,i,o,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function $t$1(s,t,e,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,t,e);return a===Ne?Ne:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined");}const na=[],fo="(?:[a-zA-Z_$][\\w.:$\\-*]*)",aa="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",la="(?:'(?:[^'\\\\]|\\\\.)*')",da='(?:"(?:[^"\\\\]|\\\\.)*")',ha="(?:"+la+"|"+da+")",ds="(?:("+fo+"|"+aa+"|"+ha+")\\s*)",ca="(?:"+ds+"(?:,\\s*"+ds+")*)",ua="(?:\\(\\s*(?:"+ca+"?)\\)\\s*)",pa="("+fo+"\\s*"+ua+"?)",_a="(\\[\\[|{{)\\s*",fa="(?:]]|}})",ma="(?:(!)\\s*)?",ga=_a+ma+pa+fa,hs=new RegExp(ga,"g");function cs(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||"";}return t}function Ct$1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:na};if(t[2].trim()){let o=t[2].replace(/\\,/g,"&comma;").split(",");return va(o,i)}else return i}return null}function va(s,t){return t.args=s.map(function(e){let i=mo(e);return i.literal||(t.static=!1),i},this),t}function mo(s){let t=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=J$1(t),e.structured=Rt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function us(s,t,e){let i=T$1(s,e);return i===void 0&&(i=t[e]),i}function go(s,t,e,i){const o={indexSplices:i};Bt$1&&!s._overrideLegacyUndefined&&(t.splices=o),s.notifyPath(e+".splices",o),s.notifyPath(e+".length",t.length),Bt$1&&!s._overrideLegacyUndefined&&(o.indexSplices=[]);}function ve(s,t,e,i,o,r){go(s,t,e,[{index:i,addedCount:o,removed:r,object:t,type:"splice"}]);}function ba(s){return s[0].toUpperCase()+s.substring(1)}const _i=v$1(s=>{const t=Bn(Tn(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return g$1}_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(be.length){let o=be[be.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 r=this[g$1.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n]);}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==g$1.READ_ONLY);let a=xt$1(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n);}_removePropertyEffect(o,r,n){let a=xt$1(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(o,r){let n=this[r];return !!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,g$1.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,g$1.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,g$1.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,g$1.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||J$1(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=T$1(this,o);if(o=ss(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return Jn(this,o,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r;}return !1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=A$1(o)),o[r]=n);}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&Rt(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[g$1.NOTIFY]&&this[g$1.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!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 r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(o,r){for(let n in o)(r||!this[g$1.READ_ONLY]||!this[g$1.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Wn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ce(this,this[g$1.REFLECT],r,n,a),Ce(this,this[g$1.OBSERVE],r,n,a),l&&$n(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(o,r,n){this[g$1.PROPAGATE]&&Ce(this,this[g$1.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n);}_runEffectsForTemplate(o,r,n,a){const l=(d,h)=>{Ce(this,o.propertyEffects,d,n,h,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,d,n,h);};o.runEffects?o.runEffects(l,r,a):l(r,a);}linkPaths(o,r){o=we(o),r=we(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r;}unlinkPaths(o){o=we(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o];}notifySplices(o,r){let n={path:""},a=T$1(this,o,n);go(this,a,n.path,r);}get(o,r){return T$1(r||this,o)}set(o,r,n){n?ss(n,o,r):(!this[g$1.READ_ONLY]||!this[g$1.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties();}push(o,...r){let n={path:""},a=T$1(this,o,n),l=a.length,d=a.push(...r);return r.length&&ve(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=T$1(this,o,r),a=!!n.length,l=n.pop();return a&&ve(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=T$1(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let h;return arguments.length===2?h=d.splice(r):h=d.splice(r,n,...a),(a.length||h.length)&&ve(this,d,l.path,r,a.length,h),h}shift(o){let r={path:""},n=T$1(this,o,r),a=!!n.length,l=n.shift();return a&&ve(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=T$1(this,o,n),l=a.unshift(...r);return r.length&&ve(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=T$1(this,o,a),n=a.path;}else Array.isArray(o)?n=we(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,g$1.READ_ONLY),r&&(this["_set"+ba(o)]=function(n){this._setProperty(o,n);});}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,g$1.OBSERVE,{fn:ns,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,g$1.OBSERVE,{fn:ns,info:a,trigger:{name:r}});}_createMethodObserver(o,r){let n=Ct$1(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");ls(this,n,g$1.OBSERVE,$t$1,null,r);}_createNotifyingProperty(o){this._addPropertyEffect(o,g$1.NOTIFY,{fn:qn,info:{eventName:dt$1(o)+"-changed",property:o}});}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,g$1.REFLECT,{fn:jn,info:{attrName:r}});}_createComputedProperty(o,r,n){let a=Ct$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=ls(this,a,g$1.COMPUTE,_o,o,n);xt$1(this,uo)[o]=l;}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,h=o.length;d<h;d++){let{name:c,structured:u,wildcard:p,value:f,literal:E}=o[d];if(!E)if(p){const S=Oe(c,r),x=us(a,n,S?r:c);f={path:S?r:c,value:x,base:S?T$1(a,c):x};}else f=u?us(a,n,c):a[c];if(Bt$1&&!this._overrideLegacyUndefined&&f===void 0&&o.length>1)return Ne;l[d]=f;}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n);}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n);}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r);}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o);}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r);}static createReflectedProperty(o){this.prototype._createReflectedProperty(o);}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n);}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else {const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n;}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),be.push(this);let n=super._stampTemplate(o,r);if(be.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l);}return n.templateInfo=r,sa(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let h=0;h<d.length;h++){let c=d[h];A$1(A$1(c).parentNode).removeChild(c);}}static _parseTemplateNode(o,r,n){let a=t._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=cs(l)||" ",wt$1(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let h=a,c="property";Rn.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=cs(d);return u&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),c=="attribute"&&h=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&h==="value"&&o.setAttribute(h,""),o.removeAttribute(h),c==="property"&&(a=oo(a)),wt$1(this,r,n,c,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=t._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,h=l.localName==="dom-if",c=l.localName==="dom-repeat";Ji&&(h||c)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(hn&&h)u&&(r.hostProps=Object.assign(r.hostProps||{},u),Ji||(n.parentInfo.noted=!0));else {let p="{";for(let f in u){let E=[{mode:p,source:f,dependencies:[f],hostProp:!0}];wt$1(this,r,n,"property","_host_"+f,E);}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=hs.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],h=!!l[2],c=l[3].trim(),u=!1,p="",f=-1;d=="{"&&(f=c.indexOf("::"))>0&&(p=c.substring(f+2),c=c.substring(0,f),u=!0);let E=Ct$1(c),S=[];if(E){let{args:x,methodName:b}=E;for(let fe=0;fe<x.length;fe++){let q=x[fe];q.literal||S.push(q);}let V=r.dynamicFns;(V&&V[b]||E.static)&&(S.push(b),E.dynamicFn=!0);}else S.push(c);n.push({source:c,mode:d,negate:h,customEvent:u,signature:E,dependencies:S,event:p}),a=hs.lastIndex;}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let h;return r.signature?h=$t$1(o,n,a,l,r.signature):n!=r.source?h=T$1(o,r.source):d&&Rt(n)?h=T$1(o,n):h=o.__data[n],r.negate&&(h=!h),h}}return e}),be=[];/**
6757
+ */let ze=0;const Ne=[],g$1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},co="__computeInfo",Bn=/[A-Z]/;function xt$1(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Ce(s,t,e,i,o,r){if(t){let n=!1;const a=ze++;for(let l in e){let d=o?J$1(l):l,h=t[d];if(h)for(let c=0,u=h.length,p;c<u&&(p=h[c]);c++)(!p.info||p.info.lastRun!==a)&&(!o||pi(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(s,l,e,i,p.info,o,r),n=!0);}return n}return !1}function Rn(s,t,e,i,o,r,n,a){let l=!1,d=n?J$1(i):i,h=t[d];if(h)for(let c=0,u=h.length,p;c<u&&(p=h[c]);c++)(!p.info||p.info.lastRun!==e)&&(!n||pi(i,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(s,i,o,r,p.info,n,a),l=!0);return l}function pi(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&to(e,s))||!!(t.wildcard&&Oe(e,s))}else return !0}function rs(s,t,e,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined");}function Hn(s,t,e,i,o){let r=s[g$1.NOTIFY],n,a=ze++;for(let d in t)t[d]&&(r&&Rn(s,r,a,d,e,i,o)||o&&$n(s,d,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function $n(s,t,e){let i=J$1(t);if(i!==t){let o=dt$1(i)+"-changed";return uo(s,o,e[t],t),!0}return !1}function uo(s,t,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),A$1(s).dispatchEvent(new CustomEvent(t,{detail:o}));}function Un(s,t,e,i,o,r){let a=(r?J$1(t):t)!=t?t:null,l=a?T$1(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),uo(s,o.eventName,l,a);}function qn(s,t,e,i,o){let r,n=s.detail,a=n&&n.path;a?(i=Me(e,i,a),r=n&&n.value):r=s.currentTarget[e],r=o?!r:r,(!t[g$1.READ_ONLY]||!t[g$1.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function Yn(s,t,e,i,o){let r=s.__data[t];et$1&&(r=et$1(r,o.attrName,"attribute",s)),s._propertyToAttribute(t,o.attrName,r);}function jn(s,t,e,i){let o=s[g$1.COMPUTE];if(o)if(ln){ze++;const r=Gn(s),n=[];for(let l in t)ns(l,o,n,r,i);let a;for(;a=n.shift();)po(s,"",t,e,a)&&ns(a.methodInfo,o,n,r,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null;}else {let r=t;for(;Ce(s,o,r,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null;}}const Wn=(s,t,e)=>{let i=0,o=t.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else {r=n;break}}r<0&&(r=o+1),t.splice(r,0,s);},ns=(s,t,e,i,o)=>{const r=o?J$1(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ze&&(!o||pi(s,l.trigger))&&(l.info.lastRun=ze,Wn(l.info,e,i));}};function Gn(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[g$1.COMPUTE];let{counts:i,ready:o,total:r}=Kn(s),n;for(;n=o.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d);});}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t;}return t}function Kn(s){const t=s[co],e={},i=s[g$1.COMPUTE],o=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0);}for(let n in i)t[n]||o.push(n);return {counts:e,ready:o,total:r}}function po(s,t,e,i,o){let r=$t$1(s,t,e,i,o);if(r===Ne)return !1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function Xn(s,t,e){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Oe(r,t)?(o=Me(r,n,t),s._setPendingPropertyOrPath(o,e,!0,!0)):Oe(n,t)&&(o=Me(n,r,t),s._setPendingPropertyOrPath(o,e,!0,!0));}}}function wt$1(s,t,e,i,o,r,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ta(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||dt$1(o)+"-changed",a.listenerNegate=h;}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Jn(s,t,a,h,l);}}function Jn(s,t,e,i,o){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else {let r=i.dependencies,n={index:o,binding:e,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=fo(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Qn,info:n,trigger:l});}}}function Qn(s,t,e,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=Me(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&s._enqueueClient(a);}else {let h=o.evaluator._evaluateBinding(s,d,t,e,i,r);h!==Ne&&Zn(s,a,l,d,h);}}function Zn(s,t,e,i,o){if(o=ea(t,o,e,i),et$1&&(o=et$1(o,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,o,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[g$1.READ_ONLY]||!t[g$1.READ_ONLY][r])&&t._setPendingProperty(r,o)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,o);}}function ea(s,t,e,i){if(e.isCompound){let o=s.__dataCompoundStorage[e.target];o[i.compoundIndex]=t,t=o.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function ta(s){return !!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function ia(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=e[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];sa(n,d),oa(n,s,d);}n.__dataHost=s;}}function sa(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=t.target;e[r]=o,t.literal&&t.kind=="property"&&(r==="className"&&(s=A$1(s)),s[r]=t.literal);}}function oa(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(o){qn(o,t,e.target,i.source,i.negate);});}}function as(s,t,e,i,o,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function $t$1(s,t,e,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,t,e);return a===Ne?Ne:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined");}const ra=[],_o="(?:[a-zA-Z_$][\\w.:$\\-*]*)",na="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",aa="(?:'(?:[^'\\\\]|\\\\.)*')",la='(?:"(?:[^"\\\\]|\\\\.)*")',da="(?:"+aa+"|"+la+")",ls="(?:("+_o+"|"+na+"|"+da+")\\s*)",ha="(?:"+ls+"(?:,\\s*"+ls+")*)",ca="(?:\\(\\s*(?:"+ha+"?)\\)\\s*)",ua="("+_o+"\\s*"+ca+"?)",pa="(\\[\\[|{{)\\s*",_a="(?:]]|}})",fa="(?:(!)\\s*)?",ma=pa+fa+ua+_a,ds=new RegExp(ma,"g");function hs(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||"";}return t}function Ct$1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:ra};if(t[2].trim()){let o=t[2].replace(/\\,/g,"&comma;").split(",");return ga(o,i)}else return i}return null}function ga(s,t){return t.args=s.map(function(e){let i=fo(e);return i.literal||(t.static=!1),i},this),t}function fo(s){let t=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=J$1(t),e.structured=Rt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function cs(s,t,e){let i=T$1(s,e);return i===void 0&&(i=t[e]),i}function mo(s,t,e,i){const o={indexSplices:i};Bt$1&&!s._overrideLegacyUndefined&&(t.splices=o),s.notifyPath(e+".splices",o),s.notifyPath(e+".length",t.length),Bt$1&&!s._overrideLegacyUndefined&&(o.indexSplices=[]);}function ve(s,t,e,i,o,r){mo(s,t,e,[{index:i,addedCount:o,removed:r,object:t,type:"splice"}]);}function va(s){return s[0].toUpperCase()+s.substring(1)}const _i=v$1(s=>{const t=Vn(Sn(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return g$1}_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(be.length){let o=be[be.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 r=this[g$1.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n]);}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==g$1.READ_ONLY);let a=xt$1(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n);}_removePropertyEffect(o,r,n){let a=xt$1(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(o,r){let n=this[r];return !!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,g$1.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,g$1.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,g$1.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,g$1.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||J$1(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=T$1(this,o);if(o=is(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return Xn(this,o,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r;}return !1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=A$1(o)),o[r]=n);}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&Rt(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[g$1.NOTIFY]&&this[g$1.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!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 r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(o,r){for(let n in o)(r||!this[g$1.READ_ONLY]||!this[g$1.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;jn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ce(this,this[g$1.REFLECT],r,n,a),Ce(this,this[g$1.OBSERVE],r,n,a),l&&Hn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(o,r,n){this[g$1.PROPAGATE]&&Ce(this,this[g$1.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n);}_runEffectsForTemplate(o,r,n,a){const l=(d,h)=>{Ce(this,o.propertyEffects,d,n,h,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,d,n,h);};o.runEffects?o.runEffects(l,r,a):l(r,a);}linkPaths(o,r){o=we(o),r=we(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r;}unlinkPaths(o){o=we(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o];}notifySplices(o,r){let n={path:""},a=T$1(this,o,n);mo(this,a,n.path,r);}get(o,r){return T$1(r||this,o)}set(o,r,n){n?is(n,o,r):(!this[g$1.READ_ONLY]||!this[g$1.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties();}push(o,...r){let n={path:""},a=T$1(this,o,n),l=a.length,d=a.push(...r);return r.length&&ve(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=T$1(this,o,r),a=!!n.length,l=n.pop();return a&&ve(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=T$1(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let h;return arguments.length===2?h=d.splice(r):h=d.splice(r,n,...a),(a.length||h.length)&&ve(this,d,l.path,r,a.length,h),h}shift(o){let r={path:""},n=T$1(this,o,r),a=!!n.length,l=n.shift();return a&&ve(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=T$1(this,o,n),l=a.unshift(...r);return r.length&&ve(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=T$1(this,o,a),n=a.path;}else Array.isArray(o)?n=we(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,g$1.READ_ONLY),r&&(this["_set"+va(o)]=function(n){this._setProperty(o,n);});}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,g$1.OBSERVE,{fn:rs,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,g$1.OBSERVE,{fn:rs,info:a,trigger:{name:r}});}_createMethodObserver(o,r){let n=Ct$1(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");as(this,n,g$1.OBSERVE,$t$1,null,r);}_createNotifyingProperty(o){this._addPropertyEffect(o,g$1.NOTIFY,{fn:Un,info:{eventName:dt$1(o)+"-changed",property:o}});}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,g$1.REFLECT,{fn:Yn,info:{attrName:r}});}_createComputedProperty(o,r,n){let a=Ct$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=as(this,a,g$1.COMPUTE,po,o,n);xt$1(this,co)[o]=l;}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,h=o.length;d<h;d++){let{name:c,structured:u,wildcard:p,value:f,literal:E}=o[d];if(!E)if(p){const S=Oe(c,r),x=cs(a,n,S?r:c);f={path:S?r:c,value:x,base:S?T$1(a,c):x};}else f=u?cs(a,n,c):a[c];if(Bt$1&&!this._overrideLegacyUndefined&&f===void 0&&o.length>1)return Ne;l[d]=f;}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n);}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n);}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r);}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o);}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r);}static createReflectedProperty(o){this.prototype._createReflectedProperty(o);}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n);}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else {const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n;}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),be.push(this);let n=super._stampTemplate(o,r);if(be.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l);}return n.templateInfo=r,ia(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let h=0;h<d.length;h++){let c=d[h];A$1(A$1(c).parentNode).removeChild(c);}}static _parseTemplateNode(o,r,n){let a=t._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=hs(l)||" ",wt$1(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let h=a,c="property";Bn.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=hs(d);return u&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),c=="attribute"&&h=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&h==="value"&&o.setAttribute(h,""),o.removeAttribute(h),c==="property"&&(a=so(a)),wt$1(this,r,n,c,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=t._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,h=l.localName==="dom-if",c=l.localName==="dom-repeat";Xi&&(h||c)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(dn&&h)u&&(r.hostProps=Object.assign(r.hostProps||{},u),Xi||(n.parentInfo.noted=!0));else {let p="{";for(let f in u){let E=[{mode:p,source:f,dependencies:[f],hostProp:!0}];wt$1(this,r,n,"property","_host_"+f,E);}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=ds.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],h=!!l[2],c=l[3].trim(),u=!1,p="",f=-1;d=="{"&&(f=c.indexOf("::"))>0&&(p=c.substring(f+2),c=c.substring(0,f),u=!0);let E=Ct$1(c),S=[];if(E){let{args:x,methodName:b}=E;for(let fe=0;fe<x.length;fe++){let q=x[fe];q.literal||S.push(q);}let V=r.dynamicFns;(V&&V[b]||E.static)&&(S.push(b),E.dynamicFn=!0);}else S.push(c);n.push({source:c,mode:d,negate:h,customEvent:u,signature:E,dependencies:S,event:p}),a=ds.lastIndex;}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let h;return r.signature?h=$t$1(o,n,a,l,r.signature):n!=r.source?h=T$1(o,r.source):d&&Rt(n)?h=T$1(o,n):h=o.__data[n],r.negate&&(h=!h),h}}return e}),be=[];/**
6758
6758
  @license
6759
6759
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6760
6760
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6770,7 +6770,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6770
6770
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6771
6771
  Code distributed by Google as part of the polymer project is also
6772
6772
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6773
- */function ya(s){const t={};for(let e in s){const i=s[e];t[e]=typeof i=="function"?{type:i}:i;}return t}const xa=v$1(s=>{const t=lo(s);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof o?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=ya(a));}r.__ownProperties=n;}return r.__ownProperties}class o extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[];}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass();}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n);}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this));}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties();}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties();}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback();}}return o});/**
6773
+ */function ba(s){const t={};for(let e in s){const i=s[e];t[e]=typeof i=="function"?{type:i}:i;}return t}const ya=v$1(s=>{const t=ao(s);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof o?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=ba(a));}r.__ownProperties=n;}return r.__ownProperties}class o extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[];}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass();}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n);}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this));}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties();}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties();}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback();}}return o});/**
6774
6774
  * @fileoverview
6775
6775
  * @suppress {checkPrototypalTypes}
6776
6776
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -6780,7 +6780,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6780
6780
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
6781
6781
  * Google as part of the polymer project is also subject to an additional IP
6782
6782
  * rights grant found at http://polymer.github.io/PATENTS.txt
6783
- */const wa="3.5.2",ps=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ca=v$1(s=>{const t=xa(_i(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let c=d[h];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=c);}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,h,c){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,c)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,c[h.observer]),l._addPropertyToAttributeMap(d);}function r(l,d,h,c){if(!ps){const u=d.content.querySelectorAll("style"),p=eo(d),f=vn(h),E=d.content.firstElementChild;for(let x=0;x<f.length;x++){let b=f[x];b.textContent=l._processStyleText(b.textContent,c),d.content.insertBefore(b,E);}let S=0;for(let x=0;x<p.length;x++){let b=p[x],V=u[S];V!==b?(b=b.cloneNode(!0),V.parentNode.insertBefore(b,V)):S++,b.textContent=l._processStyleText(b.textContent,c);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),cn&&ps&&rn){const u=d.content.querySelectorAll("style");if(u){let p="";Array.from(u).forEach(f=>{p+=f.textContent,f.parentNode.removeChild(f);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p);}}}function n(l){let d=null;if(l&&(!tt$1||an)&&(d=De.import(l,"template"),tt$1&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return wa}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate();}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Xs||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let h in d)o(this.prototype,h,d[h],d);}static createObservers(d,h){const c=this.prototype;for(let u=0;u<d.length;u++)c._createMethodObserver(d[u],h);}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template;}return this._template}static set template(d){this._template=d;}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=ci(d.url);else {const h=De.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath;}}return this._importPath}constructor(){super();}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=nn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let h in d){let c=d[h];if(this._canApplyPropertyDefault(h)){let u=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(h)?this._setPendingProperty(h,u,!0):this[h]=u;}}}_canApplyPropertyDefault(d){return !this.hasOwnProperty(d)}static _processStyleText(d,h){return hi(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const c=this.importPath,u=c?ke(c):"";r(this,h,d,u),this.prototype._bindTemplate(h);}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback();}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready();}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients();}_attachDom(d){const h=A$1(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ln&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d);}resolveUrl(d,h){return !h&&this.importPath&&(h=ke(this.importPath)),ke(d,h)}static _parseTemplateContent(d,h,c){return h.dynamicFns=h.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,h,c)}static _addTemplatePropertyEffect(d,h,c){return Js&&!(h in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,h,c)}}return a});/**
6783
+ */const xa="3.5.2",us=window.ShadyCSS&&window.ShadyCSS.cssBuild,wa=v$1(s=>{const t=ya(_i(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let c=d[h];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=c);}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,h,c){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,c)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,c[h.observer]),l._addPropertyToAttributeMap(d);}function r(l,d,h,c){if(!us){const u=d.content.querySelectorAll("style"),p=Zs(d),f=gn(h),E=d.content.firstElementChild;for(let x=0;x<f.length;x++){let b=f[x];b.textContent=l._processStyleText(b.textContent,c),d.content.insertBefore(b,E);}let S=0;for(let x=0;x<p.length;x++){let b=p[x],V=u[S];V!==b?(b=b.cloneNode(!0),V.parentNode.insertBefore(b,V)):S++,b.textContent=l._processStyleText(b.textContent,c);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),hn&&us&&on){const u=d.content.querySelectorAll("style");if(u){let p="";Array.from(u).forEach(f=>{p+=f.textContent,f.parentNode.removeChild(f);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p);}}}function n(l){let d=null;if(l&&(!tt$1||nn)&&(d=De.import(l,"template"),tt$1&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return xa}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate();}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Ks||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let h in d)o(this.prototype,h,d[h],d);}static createObservers(d,h){const c=this.prototype;for(let u=0;u<d.length;u++)c._createMethodObserver(d[u],h);}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template;}return this._template}static set template(d){this._template=d;}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=ci(d.url);else {const h=De.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath;}}return this._importPath}constructor(){super();}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=rn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let h in d){let c=d[h];if(this._canApplyPropertyDefault(h)){let u=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(h)?this._setPendingProperty(h,u,!0):this[h]=u;}}}_canApplyPropertyDefault(d){return !this.hasOwnProperty(d)}static _processStyleText(d,h){return hi(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const c=this.importPath,u=c?ke(c):"";r(this,h,d,u),this.prototype._bindTemplate(h);}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback();}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready();}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients();}_attachDom(d){const h=A$1(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),an&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d);}resolveUrl(d,h){return !h&&this.importPath&&(h=ke(this.importPath)),ke(d,h)}static _parseTemplateContent(d,h,c){return h.dynamicFns=h.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,h,c)}static _addTemplatePropertyEffect(d,h,c){return Xs&&!(h in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,h,c)}}return a});/**
6784
6784
  @license
6785
6785
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6786
6786
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6788,7 +6788,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6788
6788
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6789
6789
  Code distributed by Google as part of the polymer project is also
6790
6790
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6791
- */const _s=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class vo{constructor(t,e){yo(t,e);const i=e.reduce((o,r,n)=>o+bo(r)+t[n+1],t[0]);this.value=i.toString();}toString(){return this.value}}function bo(s){if(s instanceof vo)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function Aa(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof vo)return bo(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const P=function(t,...e){yo(t,e);const i=document.createElement("template");let o=e.reduce((r,n,a)=>r+Aa(n)+t[a+1],t[0]);return _s&&(o=_s.createHTML(o)),i.innerHTML=o,i},yo=(s,t)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||t.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
6791
+ */const ps=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class go{constructor(t,e){bo(t,e);const i=e.reduce((o,r,n)=>o+vo(r)+t[n+1],t[0]);this.value=i.toString();}toString(){return this.value}}function vo(s){if(s instanceof go)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function Ca(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof go)return vo(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const P=function(t,...e){bo(t,e);const i=document.createElement("template");let o=e.reduce((r,n,a)=>r+Ca(n)+t[a+1],t[0]);return ps&&(o=ps.createHTML(o)),i.innerHTML=o,i},bo=(s,t)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||t.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
6792
6792
  @license
6793
6793
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6794
6794
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6796,7 +6796,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6796
6796
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6797
6797
  Code distributed by Google as part of the polymer project is also
6798
6798
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6799
- */const k$1=Ca(HTMLElement),Ea=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Je=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Pa(){function s(){return !0}return xo(s)}function ka(){try{return Sa()?!0:Ta()?Je?!Ia():!Pa():!1}catch(s){return !1}}function Sa(){return localStorage.getItem("vaadin.developmentmode.force")}function Ta(){return ["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ia(){return !!(Je&&Object.keys(Je).map(t=>Je[t]).filter(t=>t.productionMode).length>0)}function xo(s,t){if(typeof s!="function")return;const e=Ea.exec(s.toString());if(e)try{s=new Function(e[1]);}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i);}return s(t)}window.Vaadin=window.Vaadin||{};const fs=function(s,t){if(window.Vaadin.developmentMode)return xo(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=ka());function Da(){/*! vaadin-dev-mode:start
6799
+ */const k$1=wa(HTMLElement),Aa=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Je=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ea(){function s(){return !0}return yo(s)}function Pa(){try{return ka()?!0:Sa()?Je?!Ta():!Ea():!1}catch(s){return !1}}function ka(){return localStorage.getItem("vaadin.developmentmode.force")}function Sa(){return ["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ta(){return !!(Je&&Object.keys(Je).map(t=>Je[t]).filter(t=>t.productionMode).length>0)}function yo(s,t){if(typeof s!="function")return;const e=Aa.exec(s.toString());if(e)try{s=new Function(e[1]);}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i);}return s(t)}window.Vaadin=window.Vaadin||{};const _s=function(s,t){if(window.Vaadin.developmentMode)return yo(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Pa());function Ia(){/*! vaadin-dev-mode:start
6800
6800
  (function () {
6801
6801
  'use strict';
6802
6802
 
@@ -7274,7 +7274,7 @@ try {
7274
7274
 
7275
7275
  }());
7276
7276
 
7277
- vaadin-dev-mode:end **/}const Oa=function(){if(typeof fs=="function")return fs(Da)};/**
7277
+ vaadin-dev-mode:end **/}const Da=function(){if(typeof _s=="function")return _s(Ia)};/**
7278
7278
  * @license
7279
7279
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7280
7280
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7282,7 +7282,7 @@ try {
7282
7282
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7283
7283
  * Code distributed by Google as part of the polymer project is also
7284
7284
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7285
- */let ms=0,wo=0;const oe=[];let Ut=!1;function Ma(){Ut=!1;const s=oe.length;for(let t=0;t<s;t++){const e=oe[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}oe.splice(0,s),wo+=s;}const G$1={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Fe={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s);}},Co={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s);}},st$1={run(s){Ut||(Ut=!0,queueMicrotask(()=>Ma())),oe.push(s);const t=ms;return ms+=1,t},cancel(s){const t=s-wo;if(t>=0){if(!oe[t])throw new Error(`invalid async handle: ${s}`);oe[t]=null;}}};/**
7285
+ */let fs=0,xo=0;const oe=[];let Ut=!1;function Oa(){Ut=!1;const s=oe.length;for(let t=0;t<s;t++){const e=oe[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}oe.splice(0,s),xo+=s;}const G$1={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Fe={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s);}},wo={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s);}},st$1={run(s){Ut||(Ut=!0,queueMicrotask(()=>Oa())),oe.push(s);const t=fs;return fs+=1,t},cancel(s){const t=s-xo;if(t>=0){if(!oe[t])throw new Error(`invalid async handle: ${s}`);oe[t]=null;}}};/**
7286
7286
  @license
7287
7287
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7288
7288
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7290,31 +7290,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7290
7290
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7291
7291
  Code distributed by Google as part of the polymer project is also
7292
7292
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7293
- */const Le=new Set;let O=class qt{static debounce(t,e,i){return t instanceof qt?t._cancelAsync():t=new qt,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Le.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Le.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}};function Ao(s){Le.add(s);}function za(){const s=!!Le.size;return Le.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s}const Ae=()=>{let s;do s=za();while(s)};/**
7293
+ */const Le=new Set;let O=class qt{static debounce(t,e,i){return t instanceof qt?t._cancelAsync():t=new qt,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Le.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Le.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}};function Co(s){Le.add(s);}function Ma(){const s=!!Le.size;return Le.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s}const Ae=()=>{let s;do s=Ma();while(s)};/**
7294
7294
  * @license
7295
7295
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7296
7296
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7297
- */const N$1=[];function Yt(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir");}function jt$1(){return document.documentElement.getAttribute("dir")}function Na(){const s=jt$1();N$1.forEach(t=>{Yt(t,s);});}const Fa=new MutationObserver(Na);Fa.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Q$1=s=>class extends s{static get properties(){return {dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Yt(this,jt$1(),null));}attributeChangedCallback(e,i,o){if(super.attributeChangedCallback(e,i,o),e!=="dir")return;const r=jt$1(),n=o===r&&N$1.indexOf(this)===-1,a=!o&&i&&N$1.indexOf(this)===-1;n||a?(this.__subscribe(),Yt(this,r,o)):o!==r&&i===r&&this.__unsubscribe();}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=N$1.includes(this),this.__unsubscribe();}_valueToNodeAttribute(e,i,o){o==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,o);}_attributeToProperty(e,i,o){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,o);}__subscribe(){N$1.includes(this)||N$1.push(this);}__unsubscribe(){N$1.includes(this)&&N$1.splice(N$1.indexOf(this),1);}};/**
7297
+ */const N$1=[];function Yt(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir");}function jt$1(){return document.documentElement.getAttribute("dir")}function za(){const s=jt$1();N$1.forEach(t=>{Yt(t,s);});}const Na=new MutationObserver(za);Na.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Q$1=s=>class extends s{static get properties(){return {dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Yt(this,jt$1(),null));}attributeChangedCallback(e,i,o){if(super.attributeChangedCallback(e,i,o),e!=="dir")return;const r=jt$1(),n=o===r&&N$1.indexOf(this)===-1,a=!o&&i&&N$1.indexOf(this)===-1;n||a?(this.__subscribe(),Yt(this,r,o)):o!==r&&i===r&&this.__unsubscribe();}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=N$1.includes(this),this.__unsubscribe();}_valueToNodeAttribute(e,i,o){o==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,o);}_attributeToProperty(e,i,o){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,o);}__subscribe(){N$1.includes(this)||N$1.push(this);}__unsubscribe(){N$1.includes(this)&&N$1.splice(N$1.indexOf(this),1);}};/**
7298
7298
  * @license
7299
7299
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7300
7300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7301
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Oa();};let At$1;const gs=new Set,ce=s=>class extends Q$1(s){static finalize(){super.finalize();const{is:e}=this;e&&!gs.has(e)&&(window.Vaadin.registrations.push(this),gs.add(e),window.Vaadin.developmentModeCallback&&(At$1=O.debounce(At$1,Co,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();}),Ao(At$1)));}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.');}};/**
7301
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Da();};let At$1;const ms=new Set,ce=s=>class extends Q$1(s){static finalize(){super.finalize();const{is:e}=this;e&&!ms.has(e)&&(window.Vaadin.registrations.push(this),ms.add(e),window.Vaadin.developmentModeCallback&&(At$1=O.debounce(At$1,wo,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();}),Co(At$1)));}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.');}};/**
7302
7302
  * @license
7303
7303
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7304
7304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7305
- */function La(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode;}return t}function fi(s){return s?new Set(s.split(" ")):new Set}function ht$1(s){return s?[...s].join(" "):""}function Eo(s,t,e){const i=fi(s.getAttribute(t));i.add(e),s.setAttribute(t,ht$1(i));}function Va(s,t,e){const i=fi(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,ht$1(i));}function Ba(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
7305
+ */function Fa(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode;}return t}function fi(s){return s?new Set(s.split(" ")):new Set}function ht$1(s){return s?[...s].join(" "):""}function Ao(s,t,e){const i=fi(s.getAttribute(t));i.add(e),s.setAttribute(t,ht$1(i));}function La(s,t,e){const i=fi(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,ht$1(i));}function Va(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
7306
7306
  * @license
7307
7307
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7308
7308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7309
- */class Po{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule();},this.connect(),this._schedule();}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0;}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1;}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush();}));}flush(){this._connected&&(this._scheduled=!1,this._processNodes());}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r);}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=t;}}/**
7309
+ */class Eo{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule();},this.connect(),this._schedule();}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0;}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1;}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush();}));}flush(){this._connected&&(this._scheduled=!1,this._processNodes());}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r);}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=t;}}/**
7310
7310
  * @license
7311
7311
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7312
7312
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7313
- */let Ra=0;function mi(){return Ra++}/**
7313
+ */let Ba=0;function mi(){return Ba++}/**
7314
7314
  * @license
7315
7315
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7316
7316
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7317
- */class R$1 extends EventTarget{static generateId(t,e="default"){return `${e}-${t.localName}-${mi()}`}constructor(t,e,i,o={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e));}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0);}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t));}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e));}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e);});}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let o=this.defaultNode;return !o&&i&&(o=document.createElement(i),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,t.appendChild(o)),o}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host);}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t));}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Po(i,({addedNodes:o,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Ba(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l);})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l);})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)));});}}/**
7317
+ */class R$1 extends EventTarget{static generateId(t,e="default"){return `${e}-${t.localName}-${mi()}`}constructor(t,e,i,o={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e));}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0);}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t));}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e));}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e);});}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let o=this.defaultNode;return !o&&i&&(o=document.createElement(i),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,t.appendChild(o)),o}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host);}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t));}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Eo(i,({addedNodes:o,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Va(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l);})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l);})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)));});}}/**
7318
7318
  * @license
7319
7319
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7320
7320
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7326,7 +7326,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7326
7326
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7327
7327
  Code distributed by Google as part of the polymer project is also
7328
7328
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7329
- */const Ha=!1,$a=s=>s,gi=typeof document.head.style.touchAction=="string",Wt="__polymerGestures",Et$1="__polymerGesturesHandled",Gt="__polymerGesturesTouchAction",vs=25,bs=5,Ua=2,qa=["mousedown","mousemove","mouseup","click"],Ya=[0,1,4,2],ja=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return !1}}();function vi(s){return qa.indexOf(s)>-1}let ko=!1;(function(){try{const s=Object.defineProperty({},"passive",{get(){ko=!0;}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s);}catch(s){}})();function Wa(s){if(!(vi(s)||s==="touchend")&&gi&&ko&&Ha)return {passive:!0}}const Ga=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ka={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function K$1(s){const t=s.type;if(!vi(t))return !1;if(t==="mousemove"){let i=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!ja&&(i=Ya[s.which]||0),!!(i&1)}return (s.button===void 0?0:s.button)===0}function Xa(s){if(s.type==="click"){if(s.detail===0)return !0;const t=$$1(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=s.pageX,o=s.pageY;return !(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return !1}const F$1={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ja(s){let t="auto";const e=To(s);for(let i=0,o;i<e.length;i++)if(o=e[i],o[Gt]){t=o[Gt];break}return t}function So(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e);}function re(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null;}const To=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],bi={},W$1=[];function Qa(s,t){let e=document.elementFromPoint(s,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,t),o===i)break;i&&(e=i);}return e}function $$1(s){const t=To(s);return t.length>0?t[0]:s.target}function Za(s){const t=s.type,i=s.currentTarget[Wt];if(!i)return;const o=i[t];if(!o)return;if(!s[Et$1]&&(s[Et$1]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(F$1.touch.id=n.identifier),F$1.touch.id!==n.identifier)return;gi||(t==="touchstart"||t==="touchmove")&&el(s);}const r=s[Et$1];if(!r.skip){for(let n=0,a;n<W$1.length;n++)a=W$1[n],o[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<W$1.length;n++)a=W$1[n],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s));}}function el(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")F$1.touch.x=t.clientX,F$1.touch.y=t.clientY,F$1.touch.scrollDecided=!1;else if(e==="touchmove"){if(F$1.touch.scrollDecided)return;F$1.touch.scrollDecided=!0;const i=Ja(s);let o=!1;const r=Math.abs(F$1.touch.x-t.clientX),n=Math.abs(F$1.touch.y-t.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>r:i==="pan-y"&&(o=r>n)),o?s.preventDefault():ot$1("track");}}function z$1(s,t,e){return bi[t]?(tl(s,t,e),!0):!1}function tl(s,t,e){const i=bi[t],o=i.deps,r=i.name;let n=s[Wt];n||(s[Wt]=n={});for(let a=0,l,d;a<o.length;a++)l=o[a],!(Ga&&vi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&s.addEventListener(l,Za,Wa(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(t,e),i.touchAction&&Io(s,i.touchAction);}function yi(s){W$1.push(s),s.emits.forEach(t=>{bi[t]=s;});}function il(s){for(let t=0,e;t<W$1.length;t++){e=W$1[t];for(let i=0,o;i<e.emits.length;i++)if(o=e.emits[i],o===s)return e}return null}function Io(s,t){gi&&s instanceof HTMLElement&&st$1.run(()=>{s.style.touchAction=t;}),s[Gt]=t;}function xi(s,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,$a(s).dispatchEvent(i),i.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault();}}function ot$1(s){const t=il(s);t.info&&(t.info.prevent=!0);}yi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){re(this.info);},mousedown(s){if(!K$1(s))return;const t=$$1(s),e=this,i=r=>{K$1(r)||(ye("up",t,r),re(e.info));},o=r=>{K$1(r)&&ye("up",t,r),re(e.info);};So(this.info,i,o),ye("down",t,s);},touchstart(s){ye("down",$$1(s),s.changedTouches[0],s);},touchend(s){ye("up",$$1(s),s.changedTouches[0],s);}});function ye(s,t,e,i){t&&xi(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(o){return ot$1(o)}});}yi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(s){this.moves.length>Ua&&this.moves.shift(),this.moves.push(s);},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,re(this.info);},mousedown(s){if(!K$1(s))return;const t=$$1(s),e=this,i=r=>{const n=r.clientX,a=r.clientY;ys(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ot$1("tap"),e.info.addMove({x:n,y:a}),K$1(r)||(e.info.state="end",re(e.info)),t&&Pt$1(e.info,t,r),e.info.started=!0);},o=r=>{e.info.started&&i(r),re(e.info);};So(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY;},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchmove(s){const t=$$1(s),e=s.changedTouches[0],i=e.clientX,o=e.clientY;ys(this.info,i,o)&&(this.info.state==="start"&&ot$1("tap"),this.info.addMove({x:i,y:o}),Pt$1(this.info,t,e),this.info.state="track",this.info.started=!0);},touchend(s){const t=$$1(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Pt$1(this.info,t,e));}});function ys(s,t,e){if(s.prevent)return !1;if(s.started)return !0;const i=Math.abs(s.x-t),o=Math.abs(s.y-e);return i>=bs||o>=bs}function Pt$1(s,t,e){if(!t)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,n=o.y-s.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),xi(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Qa(e.clientX,e.clientY)}});}yi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1;},mousedown(s){K$1(s)&&(this.info.x=s.clientX,this.info.y=s.clientY);},click(s){K$1(s)&&xs(this.info,s);},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchend(s){xs(this.info,s.changedTouches[0],s);}});function xs(s,t,e){const i=Math.abs(t.clientX-s.x),o=Math.abs(t.clientY-s.y),r=$$1(e||t);!r||Ka[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=vs&&o<=vs||Xa(t))&&(s.prevent||xi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}));}/**
7329
+ */const Ra=s=>s,Po=typeof document.head.style.touchAction=="string",Wt="__polymerGestures",Et$1="__polymerGesturesHandled",Gt="__polymerGesturesTouchAction",gs=25,vs=5,Ha=2,$a=["mousedown","mousemove","mouseup","click"],Ua=[0,1,4,2],qa=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return !1}}();function gi(s){return $a.indexOf(s)>-1}(function(){try{const s=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s);}catch(s){}})();function ja(s){}const Wa=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ga={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function K$1(s){const t=s.type;if(!gi(t))return !1;if(t==="mousemove"){let i=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!qa&&(i=Ua[s.which]||0),!!(i&1)}return (s.button===void 0?0:s.button)===0}function Ka(s){if(s.type==="click"){if(s.detail===0)return !0;const t=$$1(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=s.pageX,o=s.pageY;return !(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return !1}const F$1={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Xa(s){let t="auto";const e=So(s);for(let i=0,o;i<e.length;i++)if(o=e[i],o[Gt]){t=o[Gt];break}return t}function ko(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e);}function re(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null;}const So=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],vi={},W$1=[];function Ja(s,t){let e=document.elementFromPoint(s,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,t),o===i)break;i&&(e=i);}return e}function $$1(s){const t=So(s);return t.length>0?t[0]:s.target}function Qa(s){const t=s.type,i=s.currentTarget[Wt];if(!i)return;const o=i[t];if(!o)return;if(!s[Et$1]&&(s[Et$1]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(F$1.touch.id=n.identifier),F$1.touch.id!==n.identifier)return;Po||(t==="touchstart"||t==="touchmove")&&Za(s);}const r=s[Et$1];if(!r.skip){for(let n=0,a;n<W$1.length;n++)a=W$1[n],o[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<W$1.length;n++)a=W$1[n],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s));}}function Za(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")F$1.touch.x=t.clientX,F$1.touch.y=t.clientY,F$1.touch.scrollDecided=!1;else if(e==="touchmove"){if(F$1.touch.scrollDecided)return;F$1.touch.scrollDecided=!0;const i=Xa(s);let o=!1;const r=Math.abs(F$1.touch.x-t.clientX),n=Math.abs(F$1.touch.y-t.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>r:i==="pan-y"&&(o=r>n)),o?s.preventDefault():ot$1("track");}}function z$1(s,t,e){return vi[t]?(el(s,t,e),!0):!1}function el(s,t,e){const i=vi[t],o=i.deps,r=i.name;let n=s[Wt];n||(s[Wt]=n={});for(let a=0,l,d;a<o.length;a++)l=o[a],!(Wa&&gi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&s.addEventListener(l,Qa,ja()),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(t,e),i.touchAction&&To(s,i.touchAction);}function bi(s){W$1.push(s),s.emits.forEach(t=>{vi[t]=s;});}function tl(s){for(let t=0,e;t<W$1.length;t++){e=W$1[t];for(let i=0,o;i<e.emits.length;i++)if(o=e.emits[i],o===s)return e}return null}function To(s,t){Po&&s instanceof HTMLElement&&st$1.run(()=>{s.style.touchAction=t;}),s[Gt]=t;}function yi(s,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Ra(s).dispatchEvent(i),i.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault();}}function ot$1(s){const t=tl(s);t.info&&(t.info.prevent=!0);}bi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){re(this.info);},mousedown(s){if(!K$1(s))return;const t=$$1(s),e=this,i=r=>{K$1(r)||(ye("up",t,r),re(e.info));},o=r=>{K$1(r)&&ye("up",t,r),re(e.info);};ko(this.info,i,o),ye("down",t,s);},touchstart(s){ye("down",$$1(s),s.changedTouches[0],s);},touchend(s){ye("up",$$1(s),s.changedTouches[0],s);}});function ye(s,t,e,i){t&&yi(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(o){return ot$1(o)}});}bi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(s){this.moves.length>Ha&&this.moves.shift(),this.moves.push(s);},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,re(this.info);},mousedown(s){if(!K$1(s))return;const t=$$1(s),e=this,i=r=>{const n=r.clientX,a=r.clientY;bs(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ot$1("tap"),e.info.addMove({x:n,y:a}),K$1(r)||(e.info.state="end",re(e.info)),t&&Pt$1(e.info,t,r),e.info.started=!0);},o=r=>{e.info.started&&i(r),re(e.info);};ko(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY;},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchmove(s){const t=$$1(s),e=s.changedTouches[0],i=e.clientX,o=e.clientY;bs(this.info,i,o)&&(this.info.state==="start"&&ot$1("tap"),this.info.addMove({x:i,y:o}),Pt$1(this.info,t,e),this.info.state="track",this.info.started=!0);},touchend(s){const t=$$1(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Pt$1(this.info,t,e));}});function bs(s,t,e){if(s.prevent)return !1;if(s.started)return !0;const i=Math.abs(s.x-t),o=Math.abs(s.y-e);return i>=vs||o>=vs}function Pt$1(s,t,e){if(!t)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,n=o.y-s.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),yi(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Ja(e.clientX,e.clientY)}});}bi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1;},mousedown(s){K$1(s)&&(this.info.x=s.clientX,this.info.y=s.clientY);},click(s){K$1(s)&&ys(this.info,s);},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchend(s){ys(this.info,s.changedTouches[0],s);}});function ys(s,t,e){const i=Math.abs(t.clientX-s.x),o=Math.abs(t.clientY-s.y),r=$$1(e||t);!r||Ga[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=gs&&o<=gs||Ka(t))&&(s.prevent||yi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}));}/**
7330
7330
  * @license
7331
7331
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7332
7332
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7338,11 +7338,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7338
7338
  * @license
7339
7339
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7340
7340
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7341
- */const Do=s=>class extends pe(Re(s)){get _activeKeys(){return [" "]}ready(){super.ready(),z$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),z$1(this,"up",()=>{this._setActive(!1);});}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1);}_shouldSetActive(e){return !this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1);},{once:!0}));}_setActive(e){this.toggleAttribute("active",e);}};/**
7341
+ */const Io=s=>class extends pe(Re(s)){get _activeKeys(){return [" "]}ready(){super.ready(),z$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),z$1(this,"up",()=>{this._setActive(!1);});}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1);}_shouldSetActive(e){return !this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1);},{once:!0}));}_setActive(e){this.toggleAttribute("active",e);}};/**
7342
7342
  * @license
7343
7343
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7344
7344
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7345
- */let wi=!1;window.addEventListener("keydown",()=>{wi=!0;},{capture:!0});window.addEventListener("mousedown",()=>{wi=!1;},{capture:!0});function Kt(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function ct$1(){return wi}function sl(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function ol(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function rl(s,t){const e=[];for(;s.length>0&&t.length>0;)ol(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function Xt(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=Xt(s.slice(0,e)),o=Xt(s.slice(e));return rl(i,o)}function Ci(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Oo(s){return s.getRootNode().activeElement===s}function nl(s){if(!Ci(s))return -1;const t=s.getAttribute("tabindex")||0;return Number(t)}function Mo(s,t){if(s.nodeType!==Node.ELEMENT_NODE||sl(s))return !1;const e=s,i=nl(e);let o=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{o=Mo(n,t)||o;}),o}function al(s){const t=[];return Mo(s,t)?Xt(t):t}/**
7345
+ */let xi=!1;window.addEventListener("keydown",()=>{xi=!0;},{capture:!0});window.addEventListener("mousedown",()=>{xi=!1;},{capture:!0});function Kt(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function ct$1(){return xi}function il(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function sl(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function ol(s,t){const e=[];for(;s.length>0&&t.length>0;)sl(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function Xt(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=Xt(s.slice(0,e)),o=Xt(s.slice(e));return ol(i,o)}function wi(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Do(s){return s.getRootNode().activeElement===s}function rl(s){if(!wi(s))return -1;const t=s.getAttribute("tabindex")||0;return Number(t)}function Oo(s,t){if(s.nodeType!==Node.ELEMENT_NODE||il(s))return !1;const e=s,i=rl(e);let o=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{o=Oo(n,t)||o;}),o}function nl(s){const t=[];return Oo(s,t)?Xt(t):t}/**
7346
7346
  * @license
7347
7347
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7348
7348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7350,15 +7350,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7350
7350
  * @license
7351
7351
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7352
7352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7353
- */const zo=s=>class extends pe(s){static get properties(){return {tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex);}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1);}};/**
7353
+ */const Mo=s=>class extends pe(s){static get properties(){return {tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex);}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1);}};/**
7354
7354
  * @license
7355
7355
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7356
7356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7357
- */const Ai=v$1(s=>class extends _e(zo(s)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i);}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus);}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus);}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"));}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"));}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur();}_tabindexChanged(e){this.__forwardTabIndex(e);}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0);}});/**
7357
+ */const Ci=v$1(s=>class extends _e(Mo(s)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i);}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus);}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus);}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"));}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"));}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur();}_tabindexChanged(e){this.__forwardTabIndex(e);}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0);}});/**
7358
7358
  * @license
7359
7359
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7360
7360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7361
- */const No=v$1(s=>class extends s{static get properties(){return {stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return []}static get delegateProps(){return []}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver();}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated());}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`);}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`);}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e]);});}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e]);});}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,o)=>{this._delegateAttribute(i,e[o]);});}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,o)=>{this._delegateProperty(i,e[o]);});}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e));}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i);}});/**
7361
+ */const zo=v$1(s=>class extends s{static get properties(){return {stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return []}static get delegateProps(){return []}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver();}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated());}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`);}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`);}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e]);});}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e]);});}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,o)=>{this._delegateAttribute(i,e[o]);});}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,o)=>{this._delegateProperty(i,e[o]);});}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e));}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i);}});/**
7362
7362
  * @license
7363
7363
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7364
7364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7366,15 +7366,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7366
7366
  * @license
7367
7367
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7368
7368
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7369
- */const ll=v$1(s=>class extends No(pe(He(s))){static get properties(){return {checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return [...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked);}_toggleChecked(e){this.checked=e;}});/**
7369
+ */const al=v$1(s=>class extends zo(pe(He(s))){static get properties(){return {checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return [...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked);}_toggleChecked(e){this.checked=e;}});/**
7370
7370
  * @license
7371
7371
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7372
7372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7373
- */const kt$1=new Map;function Ei(s){return kt$1.has(s)||kt$1.set(s,new WeakMap),kt$1.get(s)}function Fo(s,t){s&&s.removeAttribute(t);}function Lo(s,t){if(!s||!t)return;const e=Ei(t);if(e.has(s))return;const i=fi(s.getAttribute(t));e.set(s,new Set(i));}function dl(s,t){if(!s||!t)return;const e=Ei(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):Eo(s,t,ht$1(i)),e.delete(s);}function St$1(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:o,fromUser:r}=e,n=Ei(t),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):Lo(s,t),Fo(s,t)),Va(s,t,o);const l=i||ht$1(a);l&&Eo(s,t,l);}function hl(s,t){Lo(s,t),Fo(s,t);}/**
7373
+ */const kt$1=new Map;function Ai(s){return kt$1.has(s)||kt$1.set(s,new WeakMap),kt$1.get(s)}function No(s,t){s&&s.removeAttribute(t);}function Fo(s,t){if(!s||!t)return;const e=Ai(t);if(e.has(s))return;const i=fi(s.getAttribute(t));e.set(s,new Set(i));}function ll(s,t){if(!s)return;const e=Ai(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):Ao(s,t,ht$1(i)),e.delete(s);}function St$1(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:o,fromUser:r}=e,n=Ai(t),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):Fo(s,t),No(s,t)),La(s,t,o);const l=i||ht$1(a);l&&Ao(s,t,l);}function dl(s,t){Fo(s,t),No(s,t);}/**
7374
7374
  * @license
7375
7375
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7376
7376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7377
- */class cl{constructor(t){this.host=t,this.__required=!1;}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label);}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t;}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t;}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t;}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t;}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t;}__setAriaLabelToAttribute(t){this.__target&&(t?(hl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(dl(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")));}__setLabelIdToAriaAttribute(t,e,i){St$1(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){St$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){St$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")));}}/**
7377
+ */class hl{constructor(t){this.host=t,this.__required=!1;}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label);}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t;}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t;}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t;}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t;}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t;}__setAriaLabelToAttribute(t){this.__target&&(t?(dl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(ll(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")));}__setLabelIdToAriaAttribute(t,e,i){St$1(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){St$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){St$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")));}}/**
7378
7378
  * @license
7379
7379
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7380
7380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7382,35 +7382,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7382
7382
  * @license
7383
7383
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7384
7384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7385
- */const M$1=document.createElement("div");M$1.style.position="fixed";M$1.style.clip="rect(0px, 0px, 0px, 0px)";M$1.setAttribute("aria-live","polite");document.body.appendChild(M$1);let je;function ul(s,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(M$1.removeAttribute("aria-live"),M$1.removeAttribute("role"),je=O.debounce(je,Fe,()=>{M$1.setAttribute("role","alert");})):(je&&je.cancel(),M$1.removeAttribute("role"),M$1.setAttribute("aria-live",e)),M$1.textContent="",setTimeout(()=>{M$1.textContent=s;},i);}/**
7385
+ */const M$1=document.createElement("div");M$1.style.position="fixed";M$1.style.clip="rect(0px, 0px, 0px, 0px)";M$1.setAttribute("aria-live","polite");document.body.appendChild(M$1);let je;function cl(s,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(M$1.removeAttribute("aria-live"),M$1.removeAttribute("role"),je=O.debounce(je,Fe,()=>{M$1.setAttribute("role","alert");})):(je&&je.cancel(),M$1.removeAttribute("role"),M$1.setAttribute("aria-live",e)),M$1.textContent="",setTimeout(()=>{M$1.textContent=s;},i);}/**
7386
7386
  * @license
7387
7387
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7388
7388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7389
- */class Pi extends R$1{constructor(t,e,i,o={}){super(t,e,i,mt$1(me({},o),{useUniqueId:!0}));}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t);}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node));}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t);}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node);});}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0});}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}));}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId);}}/**
7389
+ */class Ei extends R$1{constructor(t,e,i,o={}){super(t,e,i,mt$1(me({},o),{useUniqueId:!0}));}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t);}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node));}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t);}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node);});}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0});}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}));}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId);}}/**
7390
7390
  * @license
7391
7391
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7392
7392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7393
- */class pl extends Pi{constructor(t){super(t,"error-message","div");}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node);}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node);}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t);}initNode(t){this.updateDefaultNode(t);}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t);}restoreDefaultNode(){this.attachDefaultNode();}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");t&&(t.textContent=o?e:"",t.hidden=!o,o&&ul(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
7393
+ */class ul extends Ei{constructor(t){super(t,"error-message","div");}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node);}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node);}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t);}initNode(t){this.updateDefaultNode(t);}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t);}restoreDefaultNode(){this.attachDefaultNode();}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");t&&(t.textContent=o?e:"",t.hidden=!o,o&&cl(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
7394
7394
  * @license
7395
7395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7396
7396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7397
- */class _l extends Pi{constructor(t){super(t,"helper",null);}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
7397
+ */class pl extends Ei{constructor(t){super(t,"helper",null);}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
7398
7398
  * @license
7399
7399
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7400
7400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7401
- */class fl extends Pi{constructor(t){super(t,"label","label");}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
7401
+ */class _l extends Ei{constructor(t){super(t,"label","label");}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
7402
7402
  * @license
7403
7403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7404
7404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7405
- */const ml=v$1(s=>class extends Z$1(s){static get properties(){return {label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new fl(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent);});}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController);}_labelChanged(e){this._labelController.setLabel(e);}});/**
7405
+ */const fl=v$1(s=>class extends Z$1(s){static get properties(){return {label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new _l(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent);});}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController);}_labelChanged(e){this._labelController.setLabel(e);}});/**
7406
7406
  * @license
7407
7407
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7408
7408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7409
- */const ki=v$1(s=>class extends s{static get properties(){return {invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return !this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e);}_shouldSetInvalid(e){return !0}});/**
7409
+ */const Pi=v$1(s=>class extends s{static get properties(){return {invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return !this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e);}_shouldSetInvalid(e){return !0}});/**
7410
7410
  * @license
7411
7411
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7412
7412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7413
- */const Si=s=>class extends ki(ml(Z$1(s))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new cl(this),this._helperController=new _l(this),this._errorController=new pl(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent);}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.__labelChanged(i,o);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o);});}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController);}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null);}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e);}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0);}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null);}_errorMessageChanged(e){this._errorController.setErrorMessage(e);}_helperTextChanged(e){this._helperController.setHelperText(e);}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e);}_requiredChanged(e){this._fieldAriaController.setRequired(e);}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id);}else this._fieldAriaController.setErrorId(null);});}};/**
7413
+ */const ki=s=>class extends Pi(fl(Z$1(s))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new hl(this),this._helperController=new pl(this),this._errorController=new ul(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent);}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.__labelChanged(i,o);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o);});}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController);}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null);}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e);}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0);}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null);}_errorMessageChanged(e){this._errorController.setErrorMessage(e);}_helperTextChanged(e){this._helperController.setHelperText(e);}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e);}_requiredChanged(e){this._fieldAriaController.setRequired(e);}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id);}else this._fieldAriaController.setErrorId(null);});}};/**
7414
7414
  * @license
7415
7415
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7416
7416
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7422,11 +7422,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7422
7422
  * @license
7423
7423
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7424
7424
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7425
- */const gl=s=>class extends Si(ll(Ai(Do(s)))){static get properties(){return {indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return ["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return [...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return [...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on";}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new pt$1(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)");}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick);}_onInputClick(e){this.readonly&&e.preventDefault();}__readonlyChanged(e,i){i&&(e?i.setAttribute("aria-readonly","true"):i.removeAttribute("aria-readonly"));}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e);}checkValidity(){return !this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e;}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}_onRequiredIndicatorClick(){this._labelNode.click();}};/**
7425
+ */const ml=s=>class extends ki(al(Ci(Io(s)))){static get properties(){return {indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return ["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return [...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return [...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on";}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new pt$1(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)");}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick);}_onInputClick(e){this.readonly&&e.preventDefault();}__readonlyChanged(e,i){i&&(e?i.setAttribute("aria-readonly","true"):i.removeAttribute("aria-readonly"));}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e);}checkValidity(){return !this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e;}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}_onRequiredIndicatorClick(){this._labelNode.click();}};/**
7426
7426
  * @license
7427
7427
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7428
7428
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7429
- */const vl=_$1`
7429
+ */const gl=_$1`
7430
7430
  :host {
7431
7431
  display: inline-block;
7432
7432
  }
@@ -7518,7 +7518,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7518
7518
  * @license
7519
7519
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7520
7520
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7521
- */m$1("vaadin-checkbox",vl,{moduleId:"vaadin-checkbox-styles"});class bl extends gl(ce(I$1(k$1))){static get is(){return "vaadin-checkbox"}static get template(){return P`
7521
+ */m$1("vaadin-checkbox",gl,{moduleId:"vaadin-checkbox-styles"});class vl extends ml(ce(I$1(k$1))){static get is(){return "vaadin-checkbox"}static get template(){return P`
7522
7522
  <div class="vaadin-checkbox-container">
7523
7523
  <div part="checkbox" aria-hidden="true"></div>
7524
7524
  <slot name="input"></slot>
@@ -7534,11 +7534,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7534
7534
  </div>
7535
7535
  </div>
7536
7536
  <slot name="tooltip"></slot>
7537
- `}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(bl);/**
7537
+ `}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(vl);/**
7538
7538
  * @license
7539
7539
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7540
7540
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7541
- */const Vo=_$1`
7541
+ */const Lo=_$1`
7542
7542
  :host {
7543
7543
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
7544
7544
  }
@@ -7598,7 +7598,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7598
7598
  * @license
7599
7599
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7600
7600
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7601
- */const Ti=_$1`
7601
+ */const Si=_$1`
7602
7602
  [part='label'] {
7603
7603
  align-self: flex-start;
7604
7604
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -7710,7 +7710,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7710
7710
  margin-left: 0;
7711
7711
  margin-right: calc(var(--lumo-border-radius-m) / 4);
7712
7712
  }
7713
- `;m$1("",Ti,{moduleId:"lumo-required-field"});const yl=_$1`
7713
+ `;m$1("",Si,{moduleId:"lumo-required-field"});const bl=_$1`
7714
7714
  :host {
7715
7715
  color: var(--lumo-body-text-color);
7716
7716
  font-size: var(--lumo-font-size-m);
@@ -7753,15 +7753,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7753
7753
  color: var(--lumo-secondary-text-color);
7754
7754
  }
7755
7755
  }
7756
- `;m$1("vaadin-checkbox-group",[Ti,Vo,yl],{moduleId:"lumo-checkbox-group"});/**
7756
+ `;m$1("vaadin-checkbox-group",[Si,Lo,bl],{moduleId:"lumo-checkbox-group"});/**
7757
7757
  * @license
7758
7758
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7759
7759
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7760
- */const xl=s=>class extends Si(_e(pe(s))){static get properties(){return {value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ue(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o);}else this._tooltipController.setAriaTarget([]);});}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Po(e,({addedNodes:i,removedNodes:o})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r);}),this.addController(this._tooltipController);}checkValidity(){return !this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(i=>i.nodeType===Node.ELEMENT_NODE&&i.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(o=>{const{value:r}=o;return !o.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.");}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0);}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value);}_disabledChanged(e,i){super._disabledChanged(e,i),!(!e&&i===void 0)&&i!==e&&this.__checkboxes.forEach(o=>{o.disabled=e;});}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e];}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(i=>i!==e));}__onCheckboxCheckedChanged(e){const i=e.target;i.checked?this.__addCheckboxToValue(i.value):this.__removeCheckboxFromValue(i.value);}__valueChanged(e,i){e&&e.length===0&&i===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(o=>{o.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
7760
+ */const yl=s=>class extends ki(_e(pe(s))){static get properties(){return {value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ue(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o);}else this._tooltipController.setAriaTarget([]);});}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Eo(e,({addedNodes:i,removedNodes:o})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r);}),this.addController(this._tooltipController);}checkValidity(){return !this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(i=>i.nodeType===Node.ELEMENT_NODE&&i.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(o=>{const{value:r}=o;return !o.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.");}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0);}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value);}_disabledChanged(e,i){super._disabledChanged(e,i),!(!e&&i===void 0)&&i!==e&&this.__checkboxes.forEach(o=>{o.disabled=e;});}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e];}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(i=>i!==e));}__onCheckboxCheckedChanged(e){const i=e.target;i.checked?this.__addCheckboxToValue(i.value):this.__removeCheckboxFromValue(i.value);}__valueChanged(e,i){e&&e.length===0&&i===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(o=>{o.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
7761
7761
  * @license
7762
7762
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7763
7763
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7764
- */const wl=_$1`
7764
+ */const xl=_$1`
7765
7765
  :host {
7766
7766
  display: inline-flex;
7767
7767
  }
@@ -7794,7 +7794,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7794
7794
  * @license
7795
7795
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7796
7796
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7797
- */m$1("vaadin-checkbox-group",wl,{moduleId:"vaadin-checkbox-group-styles"});class Cl extends xl(ce(I$1(k$1))){static get is(){return "vaadin-checkbox-group"}static get template(){return P`
7797
+ */m$1("vaadin-checkbox-group",xl,{moduleId:"vaadin-checkbox-group-styles"});class wl extends yl(ce(I$1(k$1))){static get is(){return "vaadin-checkbox-group"}static get template(){return P`
7798
7798
  <div class="vaadin-group-field-container">
7799
7799
  <div part="label">
7800
7800
  <slot name="label"></slot>
@@ -7815,11 +7815,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7815
7815
  </div>
7816
7816
 
7817
7817
  <slot name="tooltip"></slot>
7818
- `}}y$1(Cl);/**
7818
+ `}}y$1(wl);/**
7819
7819
  * @license
7820
7820
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7821
7821
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7822
- */const Ii=_$1`
7822
+ */const Ti=_$1`
7823
7823
  :host {
7824
7824
  top: var(--lumo-space-m);
7825
7825
  right: var(--lumo-space-m);
@@ -7884,11 +7884,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7884
7884
  opacity: 1;
7885
7885
  }
7886
7886
  }
7887
- `;m$1("",Ii,{moduleId:"lumo-overlay"});/**
7887
+ `;m$1("",Ti,{moduleId:"lumo-overlay"});/**
7888
7888
  * @license
7889
7889
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7890
7890
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7891
- */const Di=_$1`
7891
+ */const Ii=_$1`
7892
7892
  :host([opening]),
7893
7893
  :host([closing]) {
7894
7894
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -7918,7 +7918,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7918
7918
  opacity: 0;
7919
7919
  }
7920
7920
  }
7921
- `;m$1("",Di,{moduleId:"lumo-menu-overlay-core"});const Al=_$1`
7921
+ `;m$1("",Ii,{moduleId:"lumo-menu-overlay-core"});const Cl=_$1`
7922
7922
  /* Small viewport (bottom sheet) styles */
7923
7923
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
7924
7924
  @media (max-width: 450px), (max-height: 450px) {
@@ -7980,7 +7980,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7980
7980
  transform: translateY(150%);
7981
7981
  }
7982
7982
  }
7983
- `,Bo=[Ii,Di,Al];m$1("",Bo,{moduleId:"lumo-menu-overlay"});const El=_$1`
7983
+ `,Vo=[Ti,Ii,Cl];m$1("",Vo,{moduleId:"lumo-menu-overlay"});const Al=_$1`
7984
7984
  [part='overlay'] {
7985
7985
  /*
7986
7986
  Width:
@@ -8025,7 +8025,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8025
8025
  max-height: 70vh;
8026
8026
  }
8027
8027
  }
8028
- `;m$1("vaadin-date-picker-overlay",[Bo,El],{moduleId:"lumo-date-picker-overlay"});const Ro=_$1`
8028
+ `;m$1("vaadin-date-picker-overlay",[Vo,Al],{moduleId:"lumo-date-picker-overlay"});const Bo=_$1`
8029
8029
  :host {
8030
8030
  /* Sizing */
8031
8031
  --lumo-button-size: var(--lumo-size-m);
@@ -8301,7 +8301,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8301
8301
  margin-left: 0;
8302
8302
  margin-right: 0;
8303
8303
  }
8304
- `;m$1("vaadin-button",Ro,{moduleId:"lumo-button"});m$1("vaadin-date-picker-year",_$1`
8304
+ `;m$1("vaadin-button",Bo,{moduleId:"lumo-button"});m$1("vaadin-date-picker-year",_$1`
8305
8305
  :host([current]) [part='year-number'] {
8306
8306
  color: var(--lumo-primary-text-color);
8307
8307
  }
@@ -8804,7 +8804,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8804
8804
  * @license
8805
8805
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8806
8806
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8807
- */const Ho=_$1`
8807
+ */const Ro=_$1`
8808
8808
  [part$='button'] {
8809
8809
  flex: none;
8810
8810
  width: 1em;
@@ -8831,11 +8831,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8831
8831
  font-family: 'lumo-icons';
8832
8832
  display: block;
8833
8833
  }
8834
- `;m$1("",Ho,{moduleId:"lumo-field-button"});/**
8834
+ `;m$1("",Ro,{moduleId:"lumo-field-button"});/**
8835
8835
  * @license
8836
8836
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8837
8837
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8838
- */const Pl=_$1`
8838
+ */const El=_$1`
8839
8839
  :host {
8840
8840
  --lumo-text-field-size: var(--lumo-size-m);
8841
8841
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -8966,7 +8966,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8966
8966
  [part='clear-button']::before {
8967
8967
  content: var(--lumo-icons-cross);
8968
8968
  }
8969
- `,$e=[Ti,Ho,Vo,Pl];m$1("",$e,{moduleId:"lumo-input-field-shared-styles"});const kl=_$1`
8969
+ `,$e=[Si,Ro,Lo,El];m$1("",$e,{moduleId:"lumo-input-field-shared-styles"});const Pl=_$1`
8970
8970
  [part='toggle-button']::before {
8971
8971
  content: var(--lumo-icons-calendar);
8972
8972
  }
@@ -8988,15 +8988,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8988
8988
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
8989
8989
  --_lumo-text-field-overflow-mask-image: none;
8990
8990
  }
8991
- `;m$1("vaadin-date-picker",[$e,kl],{moduleId:"lumo-date-picker"});/**
8991
+ `;m$1("vaadin-date-picker",[$e,Pl],{moduleId:"lumo-date-picker"});/**
8992
8992
  * @license
8993
8993
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
8994
8994
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8995
- */const Sl=s=>class extends s{static get properties(){return {disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault();}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus());});}};/**
8995
+ */const kl=s=>class extends s{static get properties(){return {disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault();}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus());});}};/**
8996
8996
  * @license
8997
8997
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
8998
8998
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8999
- */const Tl=_$1`
8999
+ */const Sl=_$1`
9000
9000
  :host {
9001
9001
  display: flex;
9002
9002
  align-items: center;
@@ -9065,15 +9065,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9065
9065
  * @license
9066
9066
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9067
9067
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9068
- */m$1("vaadin-input-container",Tl,{moduleId:"vaadin-input-container-styles"});class Il extends Sl(I$1(Q$1(k$1))){static get is(){return "vaadin-input-container"}static get template(){return P`
9068
+ */m$1("vaadin-input-container",Sl,{moduleId:"vaadin-input-container-styles"});class Tl extends kl(I$1(Q$1(k$1))){static get is(){return "vaadin-input-container"}static get template(){return P`
9069
9069
  <slot name="prefix"></slot>
9070
9070
  <slot></slot>
9071
9071
  <slot name="suffix"></slot>
9072
- `}}y$1(Il);/**
9072
+ `}}y$1(Tl);/**
9073
9073
  * @license
9074
9074
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9075
9075
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9076
- */const $o=_$1`
9076
+ */const Ho=_$1`
9077
9077
  :host {
9078
9078
  z-index: 200;
9079
9079
  position: fixed;
@@ -9140,55 +9140,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9140
9140
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9141
9141
  Code distributed by Google as part of the polymer project is also
9142
9142
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9143
- */let Jt=!1,Dl=[],Uo=[];function Ol(){Jt=!0,requestAnimationFrame(function(){Jt=!1,Ml(Dl),setTimeout(function(){zl(Uo);});});}function Ml(s){for(;s.length;)qo(s.shift());}function zl(s){for(let t=0,e=s.length;t<e;t++)qo(s.shift());}function qo(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i);}catch(o){setTimeout(()=>{throw o});}}function Yo(s,t,e){Jt||Ol(),Uo.push([s,t,e]);}/**
9143
+ */let Jt=!1,Il=[],$o=[];function Dl(){Jt=!0,requestAnimationFrame(function(){Jt=!1,Ol(Il),setTimeout(function(){Ml($o);});});}function Ol(s){for(;s.length;)Uo(s.shift());}function Ml(s){for(let t=0,e=s.length;t<e;t++)Uo(s.shift());}function Uo(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i);}catch(o){setTimeout(()=>{throw o});}}function qo(s,t,e){Jt||Dl(),$o.push([s,t,e]);}/**
9144
9144
  * @license
9145
9145
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9146
9146
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9147
- */const _t$1=s=>s.test(navigator.userAgent),Qt=s=>s.test(navigator.platform),Nl=s=>s.test(navigator.vendor);_t$1(/Android/u);_t$1(/Chrome/u)&&Nl(/Google Inc/u);_t$1(/Firefox/u);const Fl=Qt(/^iPad/u)||Qt(/^Mac/u)&&navigator.maxTouchPoints>1,Ll=Qt(/^iPhone/u),jo=Ll||Fl,Vl=_t$1(/^((?!chrome|android).)*safari/iu),Zt=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return !1}})();/**
9147
+ */const _t$1=s=>s.test(navigator.userAgent),Qt=s=>s.test(navigator.platform),zl=s=>s.test(navigator.vendor);_t$1(/Android/u);_t$1(/Chrome/u)&&zl(/Google Inc/u);_t$1(/Firefox/u);const Nl=Qt(/^iPad/u)||Qt(/^Mac/u)&&navigator.maxTouchPoints>1,Fl=Qt(/^iPhone/u),Yo=Fl||Nl,Ll=_t$1(/^((?!chrome|android).)*safari/iu),Zt=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return !1}})();/**
9148
9148
  * @license
9149
9149
  * Copyright (c) 2017 Anton Korzunov
9150
9150
  * SPDX-License-Identifier: MIT
9151
- */let ee=new WeakMap,We=new WeakMap,Ge={},Tt$1=0;const ws=s=>s&&s.nodeType===Node.ELEMENT_NODE,It=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);},Bl=(s,t)=>ws(s)?t.map(e=>{if(!ws(e))return It(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host;}return It(e,"is not contained inside",s),null}).filter(e=>!!e):(It(s,"is not a valid element"),[]),Rl=(s,t,e,i)=>{const o=Bl(t,Array.isArray(s)?s:[s]);Ge[e]||(Ge[e]=new WeakMap);const r=Ge[e],n=[],a=new Set,l=new Set(o),d=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&d(u),d(c.parentNode||c.host);};o.forEach(d);const h=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))h(f);else {const E=f.getAttribute(i),S=E!==null&&E!=="false",x=(ee.get(f)||0)+1,b=(r.get(f)||0)+1;ee.set(f,x),r.set(f,b),n.push(f),x===1&&S&&We.set(f,!0),b===1&&f.setAttribute(e,"true"),S||f.setAttribute(i,"true");}});};return h(t),a.clear(),Tt$1+=1,()=>{n.forEach(c=>{const u=ee.get(c)-1,p=r.get(c)-1;ee.set(c,u),r.set(c,p),u||(We.has(c)?We.delete(c):c.removeAttribute(i)),p||c.removeAttribute(e);}),Tt$1-=1,Tt$1||(ee=new WeakMap,ee=new WeakMap,We=new WeakMap,Ge={});}},Wo=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Rl(i,t,e,"aria-hidden")};/**
9151
+ */let ee=new WeakMap,We=new WeakMap,Ge={},Tt$1=0;const xs=s=>s&&s.nodeType===Node.ELEMENT_NODE,It=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);},Vl=(s,t)=>xs(s)?t.map(e=>{if(!xs(e))return It(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host;}return It(e,"is not contained inside",s),null}).filter(e=>!!e):(It(s,"is not a valid element"),[]),Bl=(s,t,e,i)=>{const o=Vl(t,Array.isArray(s)?s:[s]);Ge[e]||(Ge[e]=new WeakMap);const r=Ge[e],n=[],a=new Set,l=new Set(o),d=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&d(u),d(c.parentNode||c.host);};o.forEach(d);const h=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))h(f);else {const E=f.getAttribute(i),S=E!==null&&E!=="false",x=(ee.get(f)||0)+1,b=(r.get(f)||0)+1;ee.set(f,x),r.set(f,b),n.push(f),x===1&&S&&We.set(f,!0),b===1&&f.setAttribute(e,"true"),S||f.setAttribute(i,"true");}});};return h(t),a.clear(),Tt$1+=1,()=>{n.forEach(c=>{const u=ee.get(c)-1,p=r.get(c)-1;ee.set(c,u),r.set(c,p),u||(We.has(c)?We.delete(c):c.removeAttribute(i)),p||c.removeAttribute(e);}),Tt$1-=1,Tt$1||(ee=new WeakMap,ee=new WeakMap,We=new WeakMap,Ge={});}},jo=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Bl(i,t,e,"aria-hidden")};/**
9152
9152
  * @license
9153
9153
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9154
9154
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9155
- */class Hl{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t;}showModal(){const t=this.callback();this.__showOthers=Wo(t);}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null);}}/**
9155
+ */class Rl{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t;}showModal(){const t=this.callback();this.__showOthers=jo(t);}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null);}}/**
9156
9156
  * @license
9157
9157
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9158
9158
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9159
- */class $l{saveFocus(t){this.focusNode=t||Kt();}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;Kt()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null;}}/**
9159
+ */class Hl{saveFocus(t){this.focusNode=t||Kt();}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;Kt()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null;}}/**
9160
9160
  * @license
9161
9161
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9162
9162
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9163
- */const Dt=[];class Ul{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return al(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Oo).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown);}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown);}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Dt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Dt.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Dt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,o=this.__focusedElementIndex,r=(e.length+o+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
9163
+ */const Dt=[];class $l{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return nl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Do).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown);}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown);}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Dt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Dt.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Dt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,o=this.__focusedElementIndex,r=(e.length+o+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
9164
9164
  * @license
9165
9165
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9166
9166
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9167
- */const ql=s=>class extends Z$1(s){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Hl(this),this.__focusTrapController=new Ul(this),this.__focusRestorationController=new $l;}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController);}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!ct$1();this.__focusRestorationController.restoreFocus({preventScroll:e});}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode);}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay));}_shouldRestoreFocus(){const e=Kt();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
9167
+ */const Ul=s=>class extends Z$1(s){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Rl(this),this.__focusTrapController=new $l(this),this.__focusRestorationController=new Hl;}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController);}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!ct$1();this.__focusRestorationController.restoreFocus({preventScroll:e});}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode);}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay));}_shouldRestoreFocus(){const e=Kt();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
9168
9168
  * @license
9169
9169
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9170
9170
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9171
- */const Go=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),ei=()=>Go().filter(s=>s.$.overlay),Yl=s=>s===ei().pop(),jl=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return Yl(this)}bringToFront(){let e="";const i=Go().filter(o=>o!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex);}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ei().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none");});}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=ei();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
9171
+ */const Wo=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),ei=()=>Wo().filter(s=>s.$.overlay),ql=s=>s===ei().pop(),Yl=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return ql(this)}bringToFront(){let e="";const i=Wo().filter(o=>o!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex);}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ei().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none");});}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=ei();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
9172
9172
  * @license
9173
9173
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9174
9174
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9175
- */const Ko=s=>class extends ql(jl(s)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),jo&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus();});}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener));}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener);}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model);}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1);}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,r=document.documentElement.clientHeight;o&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0");}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0);}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0);}_rendererOrDataChanged(e,i,o,r){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate();}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState());}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Yo(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o);}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners());}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing");}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return !(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const o=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[o]);};this[o]=r,this.addEventListener("animationend",r);}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]();}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening();}):this._finishOpening();}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront();}_finishOpening(){this.removeAttribute("opening");}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"));}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing();}):this._finishClosing());}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder);}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0;}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0;}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}}};/**
9175
+ */const Go=s=>class extends Ul(Yl(s)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Yo&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus();});}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener));}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener);}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model);}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1);}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,r=document.documentElement.clientHeight;o&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0");}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0);}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0);}_rendererOrDataChanged(e,i,o,r){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate();}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState());}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),qo(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o);}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners());}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing");}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return !(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const o=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[o]);};this[o]=r,this.addEventListener("animationend",r);}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]();}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening();}):this._finishOpening();}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront();}_finishOpening(){this.removeAttribute("opening");}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"));}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing();}):this._finishClosing());}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder);}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0;}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0;}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}}};/**
9176
9176
  * @license
9177
9177
  * Copyright (c) 2024 Vaadin Ltd.
9178
9178
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9179
- */function Wl(s,t){let e=null;const i=document.documentElement;function o(){e&&e.disconnect(),e=null;}function r(n=!1,a=1){o();const{left:l,top:d,width:h,height:c}=s.getBoundingClientRect();if(n||t(),!h||!c)return;const u=Math.floor(d),p=Math.floor(i.clientWidth-(l+h)),f=Math.floor(i.clientHeight-(d+c)),E=Math.floor(l),x={rootMargin:`${-u}px ${-p}px ${-f}px ${-E}px`,threshold:Math.max(0,Math.min(1,a))||1};let b=!0;function V(fe){let q=fe[0].intersectionRatio;if(q!==a){if(!b)return r();q===0&&(q=1e-7),r(!1,q);}b=!1;}e=new IntersectionObserver(V,x),e.observe(s);}return r(!0),o}/**
9179
+ */function jl(s,t){let e=null;const i=document.documentElement;function o(){e&&e.disconnect(),e=null;}function r(n=!1,a=1){o();const{left:l,top:d,width:h,height:c}=s.getBoundingClientRect();if(n||t(),!h||!c)return;const u=Math.floor(d),p=Math.floor(i.clientWidth-(l+h)),f=Math.floor(i.clientHeight-(d+c)),E=Math.floor(l),x={rootMargin:`${-u}px ${-p}px ${-f}px ${-E}px`,threshold:Math.max(0,Math.min(1,a))||1};let b=!0;function V(fe){let q=fe[0].intersectionRatio;if(q!==a){if(!b)return r();q===0&&(q=1e-7),r(!1,q);}b=!1;}e=new IntersectionObserver(V,x),e.observe(s);}return r(!0),o}/**
9180
9180
  * @license
9181
9181
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9182
9182
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9183
- */const Ot$1={start:"top",end:"bottom"},Mt$1={start:"left",end:"right"},Cs=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Xo=s=>class extends s{static get properties(){return {positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return ["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this);}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners();}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners();}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=La(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=Wl(this.positionTarget,()=>{this._updatePosition();}));}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0);}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null);}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Cs.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Cs.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[r],10);})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition());}}__positionSettingsChanged(){this._updatePosition();}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition();}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),n=!o&&r||o&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Ot$1,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Mt$1,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n);}__shouldAlignStartHorizontally(e,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,r,this.__margins,n,this.noHorizontalOverlap,Mt$1)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noVerticalOverlap,Ot$1)}__shouldAlignStart(e,i,o,r,n,a,l){const d=o-e[a?l.end:l.start]-r[l.end],h=e[a?l.start:l.end]-r[l.start],c=n?d:h,p=c>(n?h:d)||c>i;return n===p}__adjustBottomProperty(e,i,o){let r;if(e===i.end){if(i.end===Ot$1.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=o-a;}this.__oldViewportHeight=n;}if(i.end===Mt$1.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=o-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,o,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,h=parseFloat(n.style[l]||getComputedStyle(n)[l]),c=this.__adjustBottomProperty(l,r,h),u=i[a?r.start:r.end]-e[o===a?r.end:r.start],p=c?`${c}px`:`${h+u*(a?-1:1)}px`;return {[l]:p,[d]:""}}};/**
9183
+ */const Ot$1={start:"top",end:"bottom"},Mt$1={start:"left",end:"right"},ws=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Ko=s=>class extends s{static get properties(){return {positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return ["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this);}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners();}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners();}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Fa(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=jl(this.positionTarget,()=>{this._updatePosition();}));}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0);}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null);}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,ws.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,ws.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[r],10);})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition());}}__positionSettingsChanged(){this._updatePosition();}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition();}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),n=!o&&r||o&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Ot$1,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Mt$1,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n);}__shouldAlignStartHorizontally(e,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,r,this.__margins,n,this.noHorizontalOverlap,Mt$1)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noVerticalOverlap,Ot$1)}__shouldAlignStart(e,i,o,r,n,a,l){const d=o-e[a?l.end:l.start]-r[l.end],h=e[a?l.start:l.end]-r[l.start],c=n?d:h,p=c>(n?h:d)||c>i;return n===p}__adjustBottomProperty(e,i,o){let r;if(e===i.end){if(i.end===Ot$1.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=o-a;}this.__oldViewportHeight=n;}if(i.end===Mt$1.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=o-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,o,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,h=parseFloat(n.style[l]||getComputedStyle(n)[l]),c=this.__adjustBottomProperty(l,r,h),u=i[a?r.start:r.end]-e[o===a?r.end:r.start],p=c?`${c}px`:`${h+u*(a?-1:1)}px`;return {[l]:p,[d]:""}}};/**
9184
9184
  * @license
9185
9185
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
9186
9186
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9187
- */const Gl=s=>class extends Xo(Ko(s)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ci(e.composedPath()[0])&&e.preventDefault();}};/**
9187
+ */const Wl=s=>class extends Ko(Go(s)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!wi(e.composedPath()[0])&&e.preventDefault();}};/**
9188
9188
  * @license
9189
9189
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9190
9190
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9191
- */const Kl=_$1`
9191
+ */const Gl=_$1`
9192
9192
  [part='overlay'] {
9193
9193
  display: flex;
9194
9194
  flex: auto;
@@ -9207,18 +9207,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9207
9207
  * @license
9208
9208
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9209
9209
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9210
- */m$1("vaadin-date-picker-overlay",[$o,Kl],{moduleId:"vaadin-date-picker-overlay-styles"});class Xl extends Gl(Q$1(I$1(k$1))){static get is(){return "vaadin-date-picker-overlay"}static get template(){return P`
9210
+ */m$1("vaadin-date-picker-overlay",[Ho,Gl],{moduleId:"vaadin-date-picker-overlay-styles"});class Kl extends Wl(Q$1(I$1(k$1))){static get is(){return "vaadin-date-picker-overlay"}static get template(){return P`
9211
9211
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
9212
9212
  <div part="overlay" id="overlay">
9213
9213
  <div part="content" id="content">
9214
9214
  <slot></slot>
9215
9215
  </div>
9216
9216
  </div>
9217
- `}}y$1(Xl);/**
9217
+ `}}y$1(Kl);/**
9218
9218
  * @license
9219
9219
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9220
9220
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9221
- */const Jo=_$1`
9221
+ */const Xo=_$1`
9222
9222
  :host {
9223
9223
  display: inline-block;
9224
9224
  position: relative;
@@ -9278,7 +9278,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9278
9278
  outline-color: GrayText;
9279
9279
  }
9280
9280
  }
9281
- `,Jl=s=>s`
9281
+ `,Xl=s=>s`
9282
9282
  <div class="vaadin-button-container">
9283
9283
  <span part="prefix" aria-hidden="true">
9284
9284
  <slot name="prefix"></slot>
@@ -9295,15 +9295,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9295
9295
  * @license
9296
9296
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9297
9297
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9298
- */const Qo=s=>class extends Do(zo(_e(s))){static get properties(){return {tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return ["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button");}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click());}};/**
9298
+ */const Jo=s=>class extends Io(Mo(_e(s))){static get properties(){return {tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return ["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button");}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click());}};/**
9299
9299
  * @license
9300
9300
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9301
9301
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9302
- */m$1("vaadin-button",Jo,{moduleId:"vaadin-button-styles"});class Ql extends Qo(ce(I$1(Z$1(k$1)))){static get is(){return "vaadin-button"}static get template(){return Jl(P)}ready(){super.ready(),this._tooltipController=new ue(this),this.addController(this._tooltipController);}}y$1(Ql);/**
9302
+ */m$1("vaadin-button",Xo,{moduleId:"vaadin-button-styles"});class Jl extends Jo(ce(I$1(Z$1(k$1)))){static get is(){return "vaadin-button"}static get template(){return Xl(P)}ready(){super.ready(),this._tooltipController=new ue(this),this.addController(this._tooltipController);}}y$1(Jl);/**
9303
9303
  * @license
9304
9304
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9305
9305
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9306
- */function Zl(s){let t=s.getDay();t===0&&(t=7);const e=4-t,i=new Date(s.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function ti(s){const t=new Date(s);return t.setHours(0,0,0,0),t}function L$1(s,t,e=ti){return s instanceof Date&&t instanceof Date&&e(s).getTime()===e(t).getTime()}function Oi(s){return {day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function le(s,t,e,i){let o=!1;if(typeof i=="function"&&s){const r=Oi(s);o=i(r);}return (!t||s>=t)&&(!e||s<=e)&&!o}function Zo(s,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(e.getTime()-s.getTime());return o<r?i:e})}function er(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function ed(s,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let o=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,e,i)?o-=100:s>new Date(o+50,e,i)&&(o+=100),o}function xe(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function td(s){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",o=s.year;o<0?(o=-o,e="-",i="000000"):s.year>=1e4&&(e="+",i="000000");const r=e+t(o,i),n=t(s.month+1),a=t(s.day);return [r,n,a].join("-")}function id(s){return s instanceof Date?td({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
9306
+ */function Ql(s){let t=s.getDay();t===0&&(t=7);const e=4-t,i=new Date(s.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function ti(s){const t=new Date(s);return t.setHours(0,0,0,0),t}function L$1(s,t,e=ti){return s instanceof Date&&t instanceof Date&&e(s).getTime()===e(t).getTime()}function Di(s){return {day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function le(s,t,e,i){let o=!1;if(typeof i=="function"&&s){const r=Di(s);o=i(r);}return (!t||s>=t)&&(!e||s<=e)&&!o}function Qo(s,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(e.getTime()-s.getTime());return o<r?i:e})}function Zo(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function Zl(s,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let o=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,e,i)?o-=100:s>new Date(o+50,e,i)&&(o+=100),o}function xe(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function ed(s){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",o=s.year;o<0?(o=-o,e="-",i="000000"):s.year>=1e4&&(e="+",i="000000");const r=e+t(o,i),n=t(s.month+1),a=t(s.day);return [r,n,a].join("-")}function td(s){return s instanceof Date?ed({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
9307
9307
  @license
9308
9308
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9309
9309
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9311,7 +9311,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9311
9311
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9312
9312
  Code distributed by Google as part of the polymer project is also
9313
9313
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9314
- */class rt$1{constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ve.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Ve.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof rt$1?t._cancelAsync():t=new rt$1,t.setConfig(e,i),t}}let Ve=new Set;const sd=function(s){Ve.add(s);},od=function(){const s=!!Ve.size;return Ve.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s};/**
9314
+ */class rt$1{constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ve.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Ve.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof rt$1?t._cancelAsync():t=new rt$1,t.setConfig(e,i),t}}let Ve=new Set;const id=function(s){Ve.add(s);},sd=function(){const s=!!Ve.size;return Ve.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s};/**
9315
9315
  @license
9316
9316
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9317
9317
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9319,11 +9319,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9319
9319
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9320
9320
  Code distributed by Google as part of the polymer project is also
9321
9321
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9322
- */const Mi=function(){let s,t;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=od();while(s||t)};/**
9322
+ */const Oi=function(){let s,t;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=sd();while(s||t)};/**
9323
9323
  * @license
9324
9324
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9325
9325
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9326
- */const tr=document.createElement("template");tr.innerHTML=`
9326
+ */const er=document.createElement("template");er.innerHTML=`
9327
9327
  <style>
9328
9328
  :host {
9329
9329
  display: block;
@@ -9373,11 +9373,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9373
9373
  <div class="buffer"></div>
9374
9374
  <div id="fullHeight"></div>
9375
9375
  </div>
9376
- `;class ir extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(tr.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1;}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0);}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i);}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return (this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll");},10));}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t;}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`);}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Mi();}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper);});}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")));}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse();}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,o=t<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=O.debounce(this._debouncerScrollFinish,G$1.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position);});}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`;}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=O.debounce(this._debouncerUpdateClones,G$1.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones();}),this._scrollDisabled=!1;}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${mi()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,t)&&this._ensureStampedInstance(o);}}),requestAnimationFrame(()=>{this._finishInit();});}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i];});}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a);}),i.updated=!0;}});}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
9376
+ `;class tr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(er.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1;}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0);}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i);}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return (this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll");},10));}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t;}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`);}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Oi();}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper);});}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")));}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse();}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,o=t<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=O.debounce(this._debouncerScrollFinish,G$1.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position);});}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`;}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=O.debounce(this._debouncerUpdateClones,G$1.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones();}),this._scrollDisabled=!1;}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${mi()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,t)&&this._ensureStampedInstance(o);}}),requestAnimationFrame(()=>{this._finishInit();});}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i];});}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a);}),i.updated=!0;}});}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
9377
9377
  * @license
9378
9378
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9379
9379
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9380
- */const sr=document.createElement("template");sr.innerHTML=`
9380
+ */const ir=document.createElement("template");ir.innerHTML=`
9381
9381
  <style>
9382
9382
  :host {
9383
9383
  --vaadin-infinite-scroller-item-height: 270px;
@@ -9389,11 +9389,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9389
9389
  height: 100%;
9390
9390
  }
9391
9391
  </style>
9392
- `;class rd extends ir{static get is(){return "vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(sr.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=er(e);}}y$1(rd);/**
9392
+ `;class od extends tr{static get is(){return "vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ir.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Zo(e);}}y$1(od);/**
9393
9393
  * @license
9394
9394
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9395
9395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9396
- */const or=document.createElement("template");or.innerHTML=`
9396
+ */const sr=document.createElement("template");sr.innerHTML=`
9397
9397
  <style>
9398
9398
  :host {
9399
9399
  --vaadin-infinite-scroller-item-height: 80px;
@@ -9427,15 +9427,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9427
9427
  border-left-color: #000;
9428
9428
  }
9429
9429
  </style>
9430
- `;class nd extends ir{static get is(){return "vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(or.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e);}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}y$1(nd);/**
9430
+ `;class rd extends tr{static get is(){return "vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(sr.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e);}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}y$1(rd);/**
9431
9431
  * @license
9432
9432
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9433
9433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9434
- */const ad=s=>class extends s{static get properties(){return {year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return ["__updateSelected(year, selectedDate)"]}__updateSelected(e,i){this.toggleAttribute("selected",i&&i.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear());}};/**
9434
+ */const nd=s=>class extends s{static get properties(){return {year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return ["__updateSelected(year, selectedDate)"]}__updateSelected(e,i){this.toggleAttribute("selected",i&&i.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear());}};/**
9435
9435
  * @license
9436
9436
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9437
9437
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9438
- */class ld extends I$1(ad(k$1)){static get is(){return "vaadin-date-picker-year"}static get template(){return P`
9438
+ */class ad extends I$1(nd(k$1)){static get is(){return "vaadin-date-picker-year"}static get template(){return P`
9439
9439
  <style>
9440
9440
  :host {
9441
9441
  display: block;
@@ -9444,7 +9444,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9444
9444
  </style>
9445
9445
  <div part="year-number">[[year]]</div>
9446
9446
  <div part="year-separator" aria-hidden="true"></div>
9447
- `}}y$1(ld);/**
9447
+ `}}y$1(ad);/**
9448
9448
  @license
9449
9449
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9450
9450
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9452,7 +9452,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9452
9452
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9453
9453
  Code distributed by Google as part of the polymer project is also
9454
9454
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9455
- */function zi(s,t,e,i,o){let r;o&&(r=typeof e=="object"&&e!==null,r&&(i=s.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(s.__dataTemp[t]=e),n}const Ni=v$1(s=>{class t extends s{_shouldPropertyChange(i,o,r){return zi(this,i,o,r,!0)}}return t}),dd=v$1(s=>{class t extends s{static get properties(){return {mutableData:Boolean}}_shouldPropertyChange(i,o,r){return zi(this,i,o,r,this.mutableData)}}return t});Ni._mutablePropertyChange=zi;/**
9455
+ */function Mi(s,t,e,i,o){let r;o&&(r=typeof e=="object"&&e!==null,r&&(i=s.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(s.__dataTemp[t]=e),n}const zi=v$1(s=>{class t extends s{_shouldPropertyChange(i,o,r){return Mi(this,i,o,r,!0)}}return t}),ld=v$1(s=>{class t extends s{static get properties(){return {mutableData:Boolean}}_shouldPropertyChange(i,o,r){return Mi(this,i,o,r,this.mutableData)}}return t});zi._mutablePropertyChange=Mi;/**
9456
9456
  @license
9457
9457
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9458
9458
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9460,7 +9460,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9460
9460
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9461
9461
  Code distributed by Google as part of the polymer project is also
9462
9462
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9463
- */let ii=null;function si(){return ii}si.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:si,writable:!0}});const rr=_i(si),hd=Ni(rr);function cd(s,t){ii=s,Object.setPrototypeOf(s,t.prototype),new t,ii=null;}const ud=_i(class{});function pd(s,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),A$1(A$1(i).parentNode).replaceChild(i.__polymerReplaced__,i);else {const o=i.__polymerReplaced__;o&&A$1(A$1(o).parentNode).replaceChild(i,o);}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s);}}class U$1 extends ud{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let o=this.root.firstChild;o;o=o.nextSibling)e.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties();}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i]);}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this);}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,o=>{o.model=this,i(o);});else {let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(t,e,i);}}_showHideChildren(t){pd(t,this.children);}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i);}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t;}return t}dispatchEvent(t){return !0}}const _d=Ni(U$1);function As(s){let t=s.__dataHost;return t&&t._methodHost||t}function fd(s,t,e){let i=e.mutableData?_d:U$1;oi.mixin&&(i=oi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(s),vd(o,s,t,e),o}function md(s,t,e,i){let o=e.forwardHostProp;if(o&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?hd:rr;class d extends l{}n=t.templatizeTemplateClass=d;}else {const l=s.constructor;class d extends l{}n=t.templatizeTemplateClass=d;}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:gd(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Js&&i&&xd(t,e,i);}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)cd(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else {Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d;}}}}function gd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,o.substring(6),r[o]);}}function vd(s,t,e,i){let o=e.hostProps||{};for(let r in i.instanceProps){delete o[r];let n=i.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bd(r,n)});}if(i.forwardHostProp&&t.__dataHost)for(let r in o)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:yd()});}function bd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,i,o,r[o]);}}function yd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0);}}function oi(s,t,e){if(tt$1&&!As(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let o=(t?t.constructor:U$1)._parseTemplate(s),r=o.templatizeInstanceClass;r||(r=fd(s,o,e),o.templatizeInstanceClass=r);const n=As(s);md(s,o,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=o.hostProps,a=a,a}function xd(s,t,e){const i=e.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=t;for(let n in o)if(!i[n]&&!(r&&r[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function wd(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=A$1(t).parentNode;return null}/**
9463
+ */let ii=null;function si(){return ii}si.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:si,writable:!0}});const or=_i(si),dd=zi(or);function hd(s,t){ii=s,Object.setPrototypeOf(s,t.prototype),new t,ii=null;}const cd=_i(class{});function ud(s,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),A$1(A$1(i).parentNode).replaceChild(i.__polymerReplaced__,i);else {const o=i.__polymerReplaced__;o&&A$1(A$1(o).parentNode).replaceChild(i,o);}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s);}}class U$1 extends cd{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let o=this.root.firstChild;o;o=o.nextSibling)e.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties();}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i]);}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this);}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,o=>{o.model=this,i(o);});else {let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(t,e,i);}}_showHideChildren(t){ud(t,this.children);}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i);}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t;}return t}dispatchEvent(t){return !0}}const pd=zi(U$1);function Cs(s){let t=s.__dataHost;return t&&t._methodHost||t}function _d(s,t,e){let i=e.mutableData?pd:U$1;oi.mixin&&(i=oi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(s),gd(o,s,t,e),o}function fd(s,t,e,i){let o=e.forwardHostProp;if(o&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?dd:or;class d extends l{}n=t.templatizeTemplateClass=d;}else {const l=s.constructor;class d extends l{}n=t.templatizeTemplateClass=d;}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:md(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Xs&&i&&yd(t,e,i);}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)hd(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else {Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d;}}}}function md(s,t){return function(i,o,r){t.call(i.__templatizeOwner,o.substring(6),r[o]);}}function gd(s,t,e,i){let o=e.hostProps||{};for(let r in i.instanceProps){delete o[r];let n=i.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vd(r,n)});}if(i.forwardHostProp&&t.__dataHost)for(let r in o)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bd()});}function vd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,i,o,r[o]);}}function bd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0);}}function oi(s,t,e){if(tt$1&&!Cs(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let o=(t?t.constructor:U$1)._parseTemplate(s),r=o.templatizeInstanceClass;r||(r=_d(s,o,e),o.templatizeInstanceClass=r);const n=Cs(s);fd(s,o,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=o.hostProps,a=a,a}function yd(s,t,e){const i=e.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=t;for(let n in o)if(!i[n]&&!(r&&r[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function xd(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=A$1(t).parentNode;return null}/**
9464
9464
  @license
9465
9465
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9466
9466
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9468,7 +9468,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9468
9468
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9469
9469
  Code distributed by Google as part of the polymer project is also
9470
9470
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9471
- */let Es=!1;function Cd(){if(Xs&&!Ks){if(!Es){Es=!0;const s=document.createElement("style");s.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(s);}return !0}return !1}/**
9471
+ */let As=!1;function wd(){if(Ks&&!Gs){if(!As){As=!0;const s=document.createElement("style");s.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(s);}return !0}return !1}/**
9472
9472
  @license
9473
9473
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9474
9474
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9476,15 +9476,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9476
9476
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9477
9477
  Code distributed by Google as part of the polymer project is also
9478
9478
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9479
- */const Ad=dd(k$1);class Ps extends Ad{static get is(){return "dom-repeat"}static get template(){return null}static get properties(){return {items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Qi,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return ["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null;}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId);}connectedCallback(){if(super.connectedCallback(),Cd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=A$1(A$1(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render();}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=oi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,r);},notifyInstanceProp:function(o,r,n){if(bn(this.as,r)){let a=o[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Me(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n);}}});}return !0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ");}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay);}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render));}__debounceRender(t,e=0){this.__renderDebouncer=rt$1.debounce(this.__renderDebouncer,e>0?En.after(e):ao,t.bind(this)),sd(this.__renderDebouncer);}render(){this.__debounceRender(this.__render),Mi();}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking();})),this._setRenderedItemCount(this.__instances.length),(!Qi||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}));}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,o,r)=>this.__filterFn(t[i],o,r))),this.__sortFn&&e.sort((i,o)=>this.__sortFn(t[i],t[o])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),o=Math.max(e-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+o,t)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now();}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1;}this.__shouldContinueChunking&&this.__debounceRender(this.__render);}__updateInstances(t,e,i){const o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];o[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a);}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n);}__detachInstance(t){let e=this.__instances[t];const i=A$1(e.root);for(let o=0;o<e.children.length;o++){let r=e.children[o];i.appendChild(r);}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this);}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1);}__stampInstance(t,e,i){let o={};return o[this.as]=t,o[this.indexAs]=e,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(t,e,i){const o=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return A$1(A$1(this).parentNode).insertBefore(o.root,n),this.__instances[e]=o,o}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t);}__handleItemPath(t,e){let i=t.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties();}return !0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return wd(this.template,t)}}customElements.define(Ps.is,Ps);/**
9479
+ */const Cd=ld(k$1);class Es extends Cd{static get is(){return "dom-repeat"}static get template(){return null}static get properties(){return {items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Ji,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return ["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null;}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId);}connectedCallback(){if(super.connectedCallback(),wd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=A$1(A$1(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render();}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=oi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,r);},notifyInstanceProp:function(o,r,n){if(vn(this.as,r)){let a=o[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Me(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n);}}});}return !0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ");}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay);}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render));}__debounceRender(t,e=0){this.__renderDebouncer=rt$1.debounce(this.__renderDebouncer,e>0?An.after(e):no,t.bind(this)),id(this.__renderDebouncer);}render(){this.__debounceRender(this.__render),Oi();}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking();})),this._setRenderedItemCount(this.__instances.length),(!Ji||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}));}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,o,r)=>this.__filterFn(t[i],o,r))),this.__sortFn&&e.sort((i,o)=>this.__sortFn(t[i],t[o])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),o=Math.max(e-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+o,t)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now();}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1;}this.__shouldContinueChunking&&this.__debounceRender(this.__render);}__updateInstances(t,e,i){const o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];o[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a);}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n);}__detachInstance(t){let e=this.__instances[t];const i=A$1(e.root);for(let o=0;o<e.children.length;o++){let r=e.children[o];i.appendChild(r);}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this);}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1);}__stampInstance(t,e,i){let o={};return o[this.as]=t,o[this.indexAs]=e,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(t,e,i){const o=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return A$1(A$1(this).parentNode).insertBefore(o.root,n),this.__instances[e]=o,o}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t);}__handleItemPath(t,e){let i=t.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties();}return !0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return xd(this.template,t)}}customElements.define(Es.is,Es);/**
9480
9480
  * @license
9481
9481
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9482
9482
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9483
- */const Ed=s=>class extends _e(s){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return ["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return [...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>L$1(e.date,this.focusedDate))}ready(){super.ready(),z$1(this.$.monthGrid,"tap",this._handleTap.bind(this));}_isDisabled(e,i,o){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&o&&i.getMonth()===o.getMonth()&&i.getMonth()===e.getMonth()&&o.getDate()-i.getDate()>=0?!1:!le(r,i,o)&&!le(n,i,o)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300);}_dateAdd(e,i){e.setDate(e.getDate()+i);}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return [];const{weekdays:o,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(o,n).map((d,h)=>({weekDay:d,weekDayShort:a[h]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(o=>L$1(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true");}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return L$1(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return [];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==i.firstDayOfWeek;)this._dateAdd(o,-1);const r=[],n=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===n;)r.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return r}_getWeeks(e){return e.reduce((i,o,r)=>(r%7===0&&i.push([]),i[i.length-1].push(o),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})));}_preventDefault(e){e.preventDefault();}__getWeekNumber(e){const i=e.reduce((o,r)=>!o&&r?r:o);return Zl(i)}__getDayAriaLabel(e){if(!e)return "";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
9483
+ */const Ad=s=>class extends _e(s){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return ["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return [...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>L$1(e.date,this.focusedDate))}ready(){super.ready(),z$1(this.$.monthGrid,"tap",this._handleTap.bind(this));}_isDisabled(e,i,o){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&o&&i.getMonth()===o.getMonth()&&i.getMonth()===e.getMonth()&&o.getDate()-i.getDate()>=0?!1:!le(r,i,o)&&!le(n,i,o)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300);}_dateAdd(e,i){e.setDate(e.getDate()+i);}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return [];const{weekdays:o,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(o,n).map((d,h)=>({weekDay:d,weekDayShort:a[h]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(o=>L$1(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true");}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return L$1(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return [];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==i.firstDayOfWeek;)this._dateAdd(o,-1);const r=[],n=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===n;)r.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return r}_getWeeks(e){return e.reduce((i,o,r)=>(r%7===0&&i.push([]),i[i.length-1].push(o),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})));}_preventDefault(e){e.preventDefault();}__getWeekNumber(e){const i=e.reduce((o,r)=>!o&&r?r:o);return Ql(i)}__getDayAriaLabel(e){if(!e)return "";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
9484
9484
  * @license
9485
9485
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9486
9486
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9487
- */const Pd=_$1`
9487
+ */const Ed=_$1`
9488
9488
  :host {
9489
9489
  display: block;
9490
9490
  }
@@ -9544,7 +9544,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9544
9544
  * @license
9545
9545
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9546
9546
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9547
- */m$1("vaadin-month-calendar",Pd,{moduleId:"vaadin-month-calendar-styles"});class kd extends Ed(I$1(k$1)){static get template(){return P`
9547
+ */m$1("vaadin-month-calendar",Ed,{moduleId:"vaadin-month-calendar-styles"});class Pd extends Ad(I$1(k$1)){static get template(){return P`
9548
9548
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
9549
9549
  <table
9550
9550
  id="monthGrid"
@@ -9586,19 +9586,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9586
9586
  </template>
9587
9587
  </tbody>
9588
9588
  </table>
9589
- `}static get is(){return "vaadin-month-calendar"}static get properties(){return {_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return ["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers");}__getDatePart(t,e,i,o,r,n){const a=["date"],l=t>ti(new Date),d=t<ti(new Date);return this.__isDayDisabled(t,o,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return L$1(t,e)}__isDaySelected(t,e){return L$1(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return "true"}__isDayDisabled(t,e,i,o){return !le(t,e,i,o)}__getDayAriaDisabled(t,e,i,o){if(!(t===void 0||e===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(t,e,i,o))return "true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}y$1(kd);/**
9589
+ `}static get is(){return "vaadin-month-calendar"}static get properties(){return {_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return ["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers");}__getDatePart(t,e,i,o,r,n){const a=["date"],l=t>ti(new Date),d=t<ti(new Date);return this.__isDayDisabled(t,o,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return L$1(t,e)}__isDaySelected(t,e){return L$1(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return "true"}__isDayDisabled(t,e,i,o){return !le(t,e,i,o)}__getDayAriaDisabled(t,e,i,o){if(!(t===void 0||e===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(t,e,i,o))return "true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}y$1(Pd);/**
9590
9590
  * @license
9591
9591
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9592
9592
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9593
- */class nr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this);}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery);}hostDisconnected(){this._removeListener();}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler);}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null;}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches);}}/**
9593
+ */class rr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this);}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery);}hostDisconnected(){this._removeListener();}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler);}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null;}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches);}}/**
9594
9594
  * @license
9595
9595
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9596
9596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9597
- */const Sd=s=>class extends s{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return ["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Io(this.$.scrollers,"pan-y"),z$1(this.$.scrollers,"track",this._track.bind(this)),z$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),z$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),z$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new nr(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new R$1(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),z$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new R$1(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),z$1(e,"tap",this._cancel.bind(this)),this._cancelButton=e;}})),this.__initMonthScroller(),this.__initYearScroller();}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0);}focusCancel(){this._cancelButton.focus();}scrollToDate(e,i){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new R$1(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll();}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart();}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i);}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new R$1(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),z$1(e,"tap",i=>{this._onYearTap(i);}),e.addEventListener("custom-scroll",()=>{this._onYearScroll();}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart();}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")];}),this._yearScroller=e;}}));}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel);}__updateTodayButton(e,i,o,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,r,n));}__updateCalendars(e,i,o,r,n,a,l,d,h,c){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=o,u.maxDate=r,u.isDateDisabled=c,u.focusedDate=a,u.selectedDate=n,u.showWeekNumbers=l,u.ignoreTaps=d,h?u.setAttribute("theme",h):u.removeAttribute("theme");});}__updateYears(e,i,o){e&&e.length&&e.forEach(r=>{r.selectedDate=i,o?r.setAttribute("theme",o):r.removeAttribute("theme");});}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e);}_focusedDateChanged(e){this.revealDate(e);}revealDate(e,i=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+d,i);return}const r=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;r?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e);}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12;}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position);}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps();}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps();}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300),this._repositionMonthScroller();}_onMonthScrollTouchStart(){this._repositionYearScroller();}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=O.debounce(this._debouncer,G$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Oi(e)):o}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth();}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0);}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0);}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let o;this._revealPromise=new Promise(d=>{o=d;});const r=(d,h,c,u)=>(d/=u/2,d<1?c/2*d*d+h:(d-=1,-c/2*(d*(d-2)-1)+h));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const h=d-n;if(h<this.scrollDuration){const c=r(h,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(l);}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1);};window.requestAnimationFrame(l);}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth});}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate");}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller();}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","");}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth;}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`);}_yearAfterXMonths(e){return er(e).getFullYear()}_differenceInMonths(e,i){return (e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("");}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}));}_cancel(){this.focusedDate=this.selectedDate,this._close();}_preventDefault(e){e.preventDefault();}__toggleDate(e){L$1(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e);}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation());}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today");}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel");}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&L$1(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return Ue(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Yo(this,()=>{Mi(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(Zo(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,o=this.maxDate,r=this.isDateDisabled){return le(e,i,o,r)}_isTodayAllowed(e,i,o){return this._dateAllowed(this._getTodayMidnight(),e,i,o)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
9597
+ */const kd=s=>class extends s{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return ["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){To(this.$.scrollers,"pan-y"),z$1(this.$.scrollers,"track",this._track.bind(this)),z$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),z$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),z$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new rr(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new R$1(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),z$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new R$1(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),z$1(e,"tap",this._cancel.bind(this)),this._cancelButton=e;}})),this.__initMonthScroller(),this.__initYearScroller();}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0);}focusCancel(){this._cancelButton.focus();}scrollToDate(e,i){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new R$1(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll();}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart();}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i);}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new R$1(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),z$1(e,"tap",i=>{this._onYearTap(i);}),e.addEventListener("custom-scroll",()=>{this._onYearScroll();}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart();}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")];}),this._yearScroller=e;}}));}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel);}__updateTodayButton(e,i,o,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,r,n));}__updateCalendars(e,i,o,r,n,a,l,d,h,c){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=o,u.maxDate=r,u.isDateDisabled=c,u.focusedDate=a,u.selectedDate=n,u.showWeekNumbers=l,u.ignoreTaps=d,h?u.setAttribute("theme",h):u.removeAttribute("theme");});}__updateYears(e,i,o){e&&e.length&&e.forEach(r=>{r.selectedDate=i,o?r.setAttribute("theme",o):r.removeAttribute("theme");});}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e);}_focusedDateChanged(e){this.revealDate(e);}revealDate(e,i=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+d,i);return}const r=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;r?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e);}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12;}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position);}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps();}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps();}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300),this._repositionMonthScroller();}_onMonthScrollTouchStart(){this._repositionYearScroller();}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=O.debounce(this._debouncer,G$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Di(e)):o}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth();}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0);}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0);}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let o;this._revealPromise=new Promise(d=>{o=d;});const r=(d,h,c,u)=>(d/=u/2,d<1?c/2*d*d+h:(d-=1,-c/2*(d*(d-2)-1)+h));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const h=d-n;if(h<this.scrollDuration){const c=r(h,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(l);}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1);};window.requestAnimationFrame(l);}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth});}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate");}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller();}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","");}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth;}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`);}_yearAfterXMonths(e){return Zo(e).getFullYear()}_differenceInMonths(e,i){return (e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("");}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}));}_cancel(){this.focusedDate=this.selectedDate,this._close();}_preventDefault(e){e.preventDefault();}__toggleDate(e){L$1(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e);}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation());}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today");}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel");}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&L$1(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return Ue(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{qo(this,()=>{Oi(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(Qo(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,o=this.maxDate,r=this.isDateDisabled){return le(e,i,o,r)}_isTodayAllowed(e,i,o){return this._dateAllowed(this._getTodayMidnight(),e,i,o)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
9598
9598
  * @license
9599
9599
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9600
9600
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9601
- */const Td=_$1`
9601
+ */const Sd=_$1`
9602
9602
  :host {
9603
9603
  display: flex;
9604
9604
  flex-direction: column;
@@ -9662,7 +9662,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9662
9662
  * @license
9663
9663
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9664
9664
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9665
- */m$1("vaadin-date-picker-overlay-content",Td,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Id extends Sd(Z$1(I$1(Q$1(k$1)))){static get template(){return P`
9665
+ */m$1("vaadin-date-picker-overlay-content",Sd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Td extends kd(Z$1(I$1(Q$1(k$1)))){static get template(){return P`
9666
9666
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
9667
9667
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
9668
9668
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -9682,23 +9682,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9682
9682
  <slot name="today-button"></slot>
9683
9683
  <slot name="cancel-button"></slot>
9684
9684
  </div>
9685
- `}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}y$1(Id);/**
9685
+ `}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}y$1(Td);/**
9686
9686
  * @license
9687
9687
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9688
9688
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9689
- */const zt=new WeakMap;function Dd(s){return zt.has(s)||zt.set(s,new Set),zt.get(s)}function Od(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const ar=v$1(s=>class extends s{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=Dd(e);this.slotStyles.forEach(o=>{i.has(o)||(Od(o,e),i.add(o));});}});/**
9689
+ */const zt=new WeakMap;function Id(s){return zt.has(s)||zt.set(s,new Set),zt.get(s)}function Dd(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const nr=v$1(s=>class extends s{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=Id(e);this.slotStyles.forEach(o=>{i.has(o)||(Dd(o,e),i.add(o));});}});/**
9690
9690
  * @license
9691
9691
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9692
9692
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9693
- */const Md=s=>class extends He(Re(s)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),Zt||this.inputElement.focus();}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}));}};/**
9693
+ */const Od=s=>class extends He(Re(s)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),Zt||this.inputElement.focus();}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}));}};/**
9694
9694
  * @license
9695
9695
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9696
9696
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9697
- */const Fi=v$1(s=>class extends No(ki(He(s))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const o=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o;}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}));}__isValidConstraint(e){return !!e||e===0}});/**
9697
+ */const Ni=v$1(s=>class extends zo(Pi(He(s))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const o=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o;}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}));}__isValidConstraint(e){return !!e||e===0}});/**
9698
9698
  * @license
9699
9699
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9700
9700
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9701
- */const Li=s=>class extends ar(Ai(Fi(Si(Md(Re(s)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
9701
+ */const Fi=s=>class extends nr(Ci(Ni(ki(Od(Re(s)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
9702
9702
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
9703
9703
  font: inherit;
9704
9704
  color: inherit;
@@ -9707,7 +9707,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9707
9707
  * @license
9708
9708
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9709
9709
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9710
- */const zd=_$1`
9710
+ */const Md=_$1`
9711
9711
  [part='clear-button'] {
9712
9712
  display: none;
9713
9713
  cursor: default;
@@ -9724,7 +9724,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9724
9724
  * @license
9725
9725
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9726
9726
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9727
- */const Nd=_$1`
9727
+ */const zd=_$1`
9728
9728
  :host {
9729
9729
  display: inline-flex;
9730
9730
  outline: none;
@@ -9762,7 +9762,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9762
9762
  * @license
9763
9763
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9764
9764
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9765
- */const Fd=_$1`
9765
+ */const Nd=_$1`
9766
9766
  [class$='container'] {
9767
9767
  display: flex;
9768
9768
  flex-direction: column;
@@ -9774,23 +9774,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9774
9774
  * @license
9775
9775
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9776
9776
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9777
- */const Vi=[Nd,Fd,zd];/**
9777
+ */const Li=[zd,Nd,Md];/**
9778
9778
  * @license
9779
9779
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
9780
9780
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9781
- */const lr=s=>class extends s{static get properties(){return {overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return ["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:o}=i;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&o.remove(...n);}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&o.add(...r),this.__previousClasses=r;}};/**
9781
+ */const ar=s=>class extends s{static get properties(){return {overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return ["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:o}=i;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&o.remove(...n);}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&o.add(...r),this.__previousClasses=r;}};/**
9782
9782
  * @license
9783
9783
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9784
9784
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9785
- */class dr{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1);}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0));}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none");}}/**
9785
+ */class lr{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1);}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0));}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none");}}/**
9786
9786
  * @license
9787
9787
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9788
9788
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9789
- */const Ld=s=>class extends lr(Z$1(Ai(Fi(Re(s))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let r,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?xe(this.referenceDate):new Date;a=ed(l,a,n,r);}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return {day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:jo},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return ["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return [...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this);}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1;}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return !this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ct$1()&&e.target.blur();}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate());}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new nr(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new dr(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront());}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.$.overlay.close();}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close();}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close();}),i.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value;}),i.addEventListener("click",o=>o.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=xe(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Oi(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||le(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&o&&r}_shouldSetFocus(e){return !this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive;}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e;}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange();}_close(){this._focus(),this.close();}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront();});}_isNoInput(e,i,o,r,n,a){return !e||i&&(!a||n)||o&&n||!r.parseDate}_formatISO(e){return id(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate));}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e);}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1);}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e);}_valueChanged(e,i){const o=xe(e);if(e&&!o){this.value=i;return}e?L$1(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,o,r,n,a,l,d,h){e&&(e.i18n=i,e.label=o,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=h);}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"));}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i);}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1;}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Wo(n);}_getInitialPosition(){const e=xe(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||le(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?Zo(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1);}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1;}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate();}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller();}_focus(){this._noInput||this.inputElement.focus();}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length);}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):"";}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i);}_onChange(e){e.stopPropagation();}_onClick(e){this._isClearButton(e)||this._onHostClick(e);}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open());}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null);}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate();}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate);}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,L$1(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return xe(e)}};/**
9789
+ */const Fd=s=>class extends ar(Z$1(Ci(Ni(Re(s))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let r,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?xe(this.referenceDate):new Date;a=Zl(l,a,n,r);}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return {day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Yo},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return ["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return [...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this);}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1;}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return !this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ct$1()&&e.target.blur();}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate());}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new rr(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new lr(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront());}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.$.overlay.close();}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close();}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close();}),i.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value;}),i.addEventListener("click",o=>o.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=xe(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Di(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||le(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&o&&r}_shouldSetFocus(e){return !this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive;}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e;}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange();}_close(){this._focus(),this.close();}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront();});}_isNoInput(e,i,o,r,n,a){return !e||i&&(!a||n)||o&&n||!r.parseDate}_formatISO(e){return td(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate));}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e);}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1);}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e);}_valueChanged(e,i){const o=xe(e);if(e&&!o){this.value=i;return}e?L$1(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,o,r,n,a,l,d,h){e&&(e.i18n=i,e.label=o,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=h);}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"));}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i);}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1;}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=jo(n);}_getInitialPosition(){const e=xe(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||le(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?Qo(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1);}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1;}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate();}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller();}_focus(){this._noInput||this.inputElement.focus();}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length);}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):"";}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i);}_onChange(e){e.stopPropagation();}_onClick(e){this._isClearButton(e)||this._onHostClick(e);}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open());}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null);}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate();}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate);}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,L$1(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return xe(e)}};/**
9790
9790
  * @license
9791
9791
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9792
9792
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9793
- */const Vd=_$1`
9793
+ */const Ld=_$1`
9794
9794
  :host([opened]) {
9795
9795
  pointer-events: auto;
9796
9796
  }
@@ -9807,7 +9807,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9807
9807
  * @license
9808
9808
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9809
9809
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9810
- */m$1("vaadin-date-picker",[Vi,Vd],{moduleId:"vaadin-date-picker-styles"});class Bd extends Ld(Li(I$1(ce(k$1)))){static get is(){return "vaadin-date-picker"}static get template(){return P`
9810
+ */m$1("vaadin-date-picker",[Li,Ld],{moduleId:"vaadin-date-picker-styles"});class Vd extends Fd(Fi(I$1(ce(k$1)))){static get is(){return "vaadin-date-picker"}static get template(){return P`
9811
9811
  <div class="vaadin-date-picker-container">
9812
9812
  <div part="label">
9813
9813
  <slot name="label"></slot>
@@ -9849,7 +9849,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9849
9849
  ></vaadin-date-picker-overlay>
9850
9850
 
9851
9851
  <slot name="tooltip"></slot>
9852
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new pt$1(this.inputElement,this._labelController)),this._tooltipController=new ue(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this));}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault();}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open();}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0;}}y$1(Bd);/**
9852
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new pt$1(this.inputElement,this._labelController)),this._tooltipController=new ue(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this));}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault();}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open();}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0;}}y$1(Vd);/**
9853
9853
  * @license
9854
9854
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9855
9855
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9857,15 +9857,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9857
9857
  * @license
9858
9858
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9859
9859
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9860
- */const Rd=s=>class extends Li(s){static get properties(){return {autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e;}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value));}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_onInput(e){super._onInput(e),this.invalid&&this.validate();}_valueChanged(e,i){super._valueChanged(e,i),i!==void 0&&this.invalid&&this.validate();}};/**
9860
+ */const Bd=s=>class extends Fi(s){static get properties(){return {autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e;}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value));}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_onInput(e){super._onInput(e),this.invalid&&this.validate();}_valueChanged(e,i){super._valueChanged(e,i),i!==void 0&&this.invalid&&this.validate();}};/**
9861
9861
  * @license
9862
9862
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9863
9863
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9864
- */const Hd=s=>class extends Rd(s){static get properties(){return {maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return [...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text");}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new pt$1(this.inputElement,this._labelController));}};/**
9864
+ */const Rd=s=>class extends Bd(s){static get properties(){return {maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return [...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text");}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new pt$1(this.inputElement,this._labelController));}};/**
9865
9865
  * @license
9866
9866
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9867
9867
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9868
- */m$1("vaadin-text-field",Vi,{moduleId:"vaadin-text-field-styles"});class hr extends Hd(I$1(ce(k$1))){static get is(){return "vaadin-text-field"}static get template(){return P`
9868
+ */m$1("vaadin-text-field",Li,{moduleId:"vaadin-text-field-styles"});class dr extends Rd(I$1(ce(k$1))){static get is(){return "vaadin-text-field"}static get template(){return P`
9869
9869
  <div class="vaadin-field-container">
9870
9870
  <div part="label">
9871
9871
  <slot name="label"></slot>
@@ -9894,11 +9894,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9894
9894
  </div>
9895
9895
  </div>
9896
9896
  <slot name="tooltip"></slot>
9897
- `}static get properties(){return {maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(hr);/**
9897
+ `}static get properties(){return {maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(dr);/**
9898
9898
  * @license
9899
9899
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9900
9900
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9901
- */const $d=_$1`
9901
+ */const Hd=_$1`
9902
9902
  :host {
9903
9903
  position: absolute;
9904
9904
  right: 0;
@@ -9911,11 +9911,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9911
9911
  background: transparent;
9912
9912
  outline: none;
9913
9913
  }
9914
- `;m$1("vaadin-password-field-button",[Ro,$d],{moduleId:"lumo-password-field-button"});/**
9914
+ `;m$1("vaadin-password-field-button",[Bo,Hd],{moduleId:"lumo-password-field-button"});/**
9915
9915
  * @license
9916
9916
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9917
9917
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9918
- */const Ud=_$1`
9918
+ */const $d=_$1`
9919
9919
  [part='reveal-button']::before {
9920
9920
  content: var(--lumo-icons-eye);
9921
9921
  }
@@ -9933,15 +9933,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9933
9933
  [part='reveal-button'][hidden] {
9934
9934
  display: none !important;
9935
9935
  }
9936
- `;m$1("vaadin-password-field",[$e,Ud],{moduleId:"lumo-password-field"});/**
9936
+ `;m$1("vaadin-password-field",[$e,$d],{moduleId:"lumo-password-field"});/**
9937
9937
  * @license
9938
9938
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9939
9939
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9940
- */m$1("vaadin-password-field-button",Jo,{moduleId:"vaadin-password-field-button-styles"});class qd extends Qo(Q$1(I$1(k$1))){static get is(){return "vaadin-password-field-button"}static get template(){return P``}}y$1(qd);/**
9940
+ */m$1("vaadin-password-field-button",Xo,{moduleId:"vaadin-password-field-button-styles"});class Ud extends Jo(Q$1(I$1(k$1))){static get is(){return "vaadin-password-field-button"}static get template(){return P``}}y$1(Ud);/**
9941
9941
  * @license
9942
9942
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9943
9943
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9944
- */const Yd=s=>class extends ar(pe(_e(He(s)))){static get properties(){return {revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return ["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange="";}get slotStyles(){const e=this.localName;return [...super.slotStyles,`
9944
+ */const qd=s=>class extends nr(pe(_e(He(s)))){static get properties(){return {revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return ["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange="";}get slotStyles(){const e=this.localName;return [...super.slotStyles,`
9945
9945
  ${e} [slot="input"]::-ms-reveal {
9946
9946
  display: none;
9947
9947
  }
@@ -9949,11 +9949,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9949
9949
  * @license
9950
9950
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9951
9951
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9952
- */const jd=P`
9952
+ */const Yd=P`
9953
9953
  <div part="reveal-button" slot="suffix">
9954
9954
  <slot name="reveal"></slot>
9955
9955
  </div>
9956
- `;let Ke;class Wd extends Yd(hr){static get is(){return "vaadin-password-field"}static get template(){if(!Ke){Ke=super.template.cloneNode(!0);const t=jd.content.querySelector('[part="reveal-button"]');Ke.content.querySelector('[part="input-field"]').appendChild(t);}return Ke}}y$1(Wd);const cr=_$1`
9956
+ `;let Ke;class jd extends qd(dr){static get is(){return "vaadin-password-field"}static get template(){if(!Ke){Ke=super.template.cloneNode(!0);const t=Yd.content.querySelector('[part="reveal-button"]');Ke.content.querySelector('[part="input-field"]').appendChild(t);}return Ke}}y$1(jd);const hr=_$1`
9957
9957
  :host {
9958
9958
  display: flex;
9959
9959
  align-items: center;
@@ -10037,7 +10037,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10037
10037
  width: var(--lumo-icon-size-m);
10038
10038
  height: var(--lumo-icon-size-m);
10039
10039
  }
10040
- `;m$1("vaadin-item",cr,{moduleId:"lumo-item"});const Gd=_$1`
10040
+ `;m$1("vaadin-item",hr,{moduleId:"lumo-item"});const Wd=_$1`
10041
10041
  :host {
10042
10042
  transition: background-color 100ms;
10043
10043
  overflow: hidden;
@@ -10049,11 +10049,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10049
10049
  :host([focused]:not([disabled])) {
10050
10050
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
10051
10051
  }
10052
- `;m$1("vaadin-combo-box-item",[cr,Gd],{moduleId:"lumo-combo-box-item"});/**
10052
+ `;m$1("vaadin-combo-box-item",[hr,Wd],{moduleId:"lumo-combo-box-item"});/**
10053
10053
  * @license
10054
10054
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
10055
10055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10056
- */const Kd=_$1`
10056
+ */const Gd=_$1`
10057
10057
  [part~='loader'] {
10058
10058
  box-sizing: border-box;
10059
10059
  width: var(--lumo-icon-size-s);
@@ -10095,7 +10095,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10095
10095
  transform: rotate(360deg);
10096
10096
  }
10097
10097
  }
10098
- `,Xd=_$1`
10098
+ `,Kd=_$1`
10099
10099
  [part='content'] {
10100
10100
  padding: 0;
10101
10101
  }
@@ -10116,7 +10116,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10116
10116
  :host([bottom-aligned]) [part~='overlay'] {
10117
10117
  margin-bottom: var(--lumo-space-xs);
10118
10118
  }
10119
- `,Jd=_$1`
10119
+ `,Xd=_$1`
10120
10120
  [part~='loader'] {
10121
10121
  position: absolute;
10122
10122
  z-index: 1;
@@ -10124,24 +10124,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10124
10124
  top: var(--lumo-space-s);
10125
10125
  margin-inline: auto 0;
10126
10126
  }
10127
- `;m$1("vaadin-combo-box-overlay",[Ii,Di,Xd,Kd,Jd,_$1`
10127
+ `;m$1("vaadin-combo-box-overlay",[Ti,Ii,Kd,Gd,Xd,_$1`
10128
10128
  :host {
10129
10129
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
10130
10130
  --_vaadin-combo-box-items-container-border-style: solid;
10131
10131
  }
10132
- `],{moduleId:"lumo-combo-box-overlay"});const Qd=_$1`
10132
+ `],{moduleId:"lumo-combo-box-overlay"});const Jd=_$1`
10133
10133
  [part='toggle-button']::before {
10134
10134
  content: var(--lumo-icons-dropdown);
10135
10135
  }
10136
- `;m$1("vaadin-combo-box",[$e,Qd],{moduleId:"lumo-combo-box"});/**
10136
+ `;m$1("vaadin-combo-box",[$e,Jd],{moduleId:"lumo-combo-box"});/**
10137
10137
  * @license
10138
10138
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10139
10139
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10140
- */const Zd=s=>class extends s{static get properties(){return {index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return ["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return [...super.observedAttributes,"hidden"]}attributeChangedCallback(e,i,o){e==="hidden"&&o!==null?this.index=void 0:super.attributeChangedCallback(e,i,o);}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e);}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e);}__rendererOrItemChanged(e,i,o){o===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()));}__updateLabel(e,i){i||(this.textContent=e);}};/**
10140
+ */const Qd=s=>class extends s{static get properties(){return {index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return ["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return [...super.observedAttributes,"hidden"]}attributeChangedCallback(e,i,o){e==="hidden"&&o!==null?this.index=void 0:super.attributeChangedCallback(e,i,o);}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e);}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e);}__rendererOrItemChanged(e,i,o){o===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()));}__updateLabel(e,i){i||(this.textContent=e);}};/**
10141
10141
  * @license
10142
10142
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10143
10143
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10144
- */class eh extends Zd(I$1(Q$1(k$1))){static get template(){return P`
10144
+ */class Zd extends Qd(I$1(Q$1(k$1))){static get template(){return P`
10145
10145
  <style>
10146
10146
  :host {
10147
10147
  display: block;
@@ -10155,15 +10155,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10155
10155
  <div part="content">
10156
10156
  <slot></slot>
10157
10157
  </div>
10158
- `}static get is(){return "vaadin-combo-box-item"}}y$1(eh);/**
10158
+ `}static get is(){return "vaadin-combo-box-item"}}y$1(Zd);/**
10159
10159
  * @license
10160
10160
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10161
10161
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10162
- */const th=s=>class extends Xo(s){static get observers(){return ["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200;}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i);}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return !i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ci(e.composedPath()[0])&&e.preventDefault();}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);i===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i);}_setOverlayWidth(e,i){e&&i&&(this._updateOverlayWidth(),this._updatePosition());}};/**
10162
+ */const eh=s=>class extends Ko(s){static get observers(){return ["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200;}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i);}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return !i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!wi(e.composedPath()[0])&&e.preventDefault();}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);i===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i);}_setOverlayWidth(e,i){e&&i&&(this._updateOverlayWidth(),this._updatePosition());}};/**
10163
10163
  * @license
10164
10164
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10165
10165
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10166
- */const ih=_$1`
10166
+ */const th=_$1`
10167
10167
  #overlay {
10168
10168
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
10169
10169
  }
@@ -10173,13 +10173,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10173
10173
  flex-direction: column;
10174
10174
  height: 100%;
10175
10175
  }
10176
- `;m$1("vaadin-combo-box-overlay",[$o,ih],{moduleId:"vaadin-combo-box-overlay-styles"});class sh extends th(Ko(Q$1(I$1(k$1)))){static get is(){return "vaadin-combo-box-overlay"}static get template(){return P`
10176
+ `;m$1("vaadin-combo-box-overlay",[Ho,th],{moduleId:"vaadin-combo-box-overlay-styles"});class ih extends eh(Go(Q$1(I$1(k$1)))){static get is(){return "vaadin-combo-box-overlay"}static get template(){return P`
10177
10177
  <div id="backdrop" part="backdrop" hidden></div>
10178
10178
  <div part="overlay" id="overlay">
10179
10179
  <div part="loader"></div>
10180
10180
  <div part="content" id="content"><slot></slot></div>
10181
10181
  </div>
10182
- `}}y$1(sh);/**
10182
+ `}}y$1(ih);/**
10183
10183
  * @license
10184
10184
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
10185
10185
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10191,11 +10191,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10191
10191
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
10192
10192
  * Code distributed by Google as part of the polymer project is also
10193
10193
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10194
- */const ks=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),oh=ks&&ks[1]>=8,Ss=3,rh={_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 s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s;}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=s;}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update();}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),st$1);}},_getReusables(s){let t,e,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,u=this._scrollBottom;for(s?(t=this._physicalStart,e=c-d):(t=this._physicalEnd,e=h-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(o.length>=l||e<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=c-this._scrollOffset)break;o.push(t),d+=i,t=(t+1)%l;}else {if(n-o.length<=0||d+this._physicalSize-i<=u)break;o.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:o,physicalTop:d-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e);}this._positionItems(),this._updateScrollerSize();}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,Ss,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,i=Math.round(this._physicalCount*.5);}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Co):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),st$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Ss));},_itemsChanged(s){s.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,Fe));},_iterateItems(s,t){let e,i,o,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(o=s.call(this,e,i))!=null)return o}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((o=s.call(this,e,i))!=null)return o;for(e=0;e<this._physicalStart;e++,i++)if((o=s.call(this,e,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!oh&&t>0&&this._resetScrollPosition(t-s);}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop);},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t);},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(Ae(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;e<s&&i<=o;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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);},Fe);},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return (this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=O.debounce(this._debouncers[s],e,t.bind(this)),Ao(this._debouncers[s]);}};/**
10194
+ */const Ps=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),sh=Ps&&Ps[1]>=8,ks=3,oh={_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 s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s;}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=s;}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update();}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),st$1);}},_getReusables(s){let t,e,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,u=this._scrollBottom;for(s?(t=this._physicalStart,e=c-d):(t=this._physicalEnd,e=h-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(o.length>=l||e<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=c-this._scrollOffset)break;o.push(t),d+=i,t=(t+1)%l;}else {if(n-o.length<=0||d+this._physicalSize-i<=u)break;o.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:o,physicalTop:d-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e);}this._positionItems(),this._updateScrollerSize();}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,ks,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,i=Math.round(this._physicalCount*.5);}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),wo):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),st$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(ks));},_itemsChanged(s){s.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,Fe));},_iterateItems(s,t){let e,i,o,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(o=s.call(this,e,i))!=null)return o}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((o=s.call(this,e,i))!=null)return o;for(e=0;e<this._physicalStart;e++,i++)if((o=s.call(this,e,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!sh&&t>0&&this._resetScrollPosition(t-s);}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop);},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t);},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(Ae(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;e<s&&i<=o;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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);},Fe);},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return (this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=O.debounce(this._debouncers[s],e,t.bind(this)),Co(this._debouncers[s]);}};/**
10195
10195
  * @license
10196
10196
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10197
10197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10198
- */const nh=1e5,Nt$1=1e3;class ur{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,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()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d;}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}));}),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}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<Nt$1?(i=t,this._vidxOffset=0):(i=Nt$1,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t);}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Ae(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush());}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=t&&o.__virtualIndex<=e&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o));}),this.__afterElementsUpdated(i);}_updateMetrics(t){Ae();let e=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0;},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const o=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+o+r+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e);}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=O.debounce(this.__placeholderClearDebouncer,Fe,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length);}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex);}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Ae(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const o=this.__getIndexScrollOffset(e);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Ae(),this._debounce("_update",this._update,st$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,nh)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return {items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics();}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r));},t),this.__afterElementsUpdated(e);}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0;}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,o){o.style.transform=`translateY(${e})`;}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,o)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush());}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler());}t&&(this.__fixInvalidItemPositioningDebouncer=O.debounce(this.__fixInvalidItemPositioningDebouncer,G$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=O.debounce(this.__scrollReorderDebouncer,G$1.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0);}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!o){const r=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n;}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=O.debounce(this.__debouncerWheelAnimationFrame,Fe,()=>{this._wheelAnimationFrame=!1;});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=O.debounce(this._debouncerIgnoreNewWheel,G$1.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1;})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i;}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return !1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return !0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)));}else super._increasePoolIfNeeded(t);}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const o=i.__virtualIndex-t,r=e.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(e[n]);else if(r<0)for(let n=e.length+r;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(Vl){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n;});}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e);}else {const i=this._vidxOffset,o=Nt$1,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(ur.prototype,rh);class ah{constructor(t){this.__adapter=new ur(t);}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t;}scrollToIndex(t){this.__adapter.scrollToIndex(t);}update(t=0,e=this.size-1){this.__adapter.update(t,e);}flush(){this.__adapter.flush();}}/**
10198
+ */const rh=1e5,Nt$1=1e3;class cr{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,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()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d;}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}));}),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}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<Nt$1?(i=t,this._vidxOffset=0):(i=Nt$1,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t);}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Ae(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush());}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=t&&o.__virtualIndex<=e&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o));}),this.__afterElementsUpdated(i);}_updateMetrics(t){Ae();let e=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0;},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const o=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+o+r+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e);}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=O.debounce(this.__placeholderClearDebouncer,Fe,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length);}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex);}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Ae(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const o=this.__getIndexScrollOffset(e);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Ae(),this._debounce("_update",this._update,st$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,rh)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return {items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics();}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r));},t),this.__afterElementsUpdated(e);}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0;}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,o){o.style.transform=`translateY(${e})`;}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,o)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush());}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler());}t&&(this.__fixInvalidItemPositioningDebouncer=O.debounce(this.__fixInvalidItemPositioningDebouncer,G$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=O.debounce(this.__scrollReorderDebouncer,G$1.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0);}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!o){const r=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n;}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=O.debounce(this.__debouncerWheelAnimationFrame,Fe,()=>{this._wheelAnimationFrame=!1;});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=O.debounce(this._debouncerIgnoreNewWheel,G$1.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1;})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i;}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return !1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return !0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)));}else super._increasePoolIfNeeded(t);}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const o=i.__virtualIndex-t,r=e.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(e[n]);else if(r<0)for(let n=e.length+r;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(Ll){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n;});}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e);}else {const i=this._vidxOffset,o=Nt$1,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(cr.prototype,oh);class nh{constructor(t){this.__adapter=new cr(t);}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t;}scrollToIndex(t){this.__adapter.scrollToIndex(t);}update(t=0,e=this.size-1){this.__adapter.update(t,e);}flush(){this.__adapter.flush();}}/**
10199
10199
  * @license
10200
10200
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10201
10201
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10203,11 +10203,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10203
10203
  * @license
10204
10204
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10205
10205
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10206
- */const lh=s=>class extends s{static get properties(){return {items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this);}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,o)=>i+o);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${mi()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling();}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update());}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l);}_isItemSelected(e,i,o){return e instanceof de?!1:o&&e!==void 0&&i!==void 0?nt$1(o,e)===nt$1(o,i):e===i}__initVirtualizer(){this.__virtualizer=new ah({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0});}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate();}__loadingChanged(){this.requestContentUpdate();}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate());}__selectedItemChanged(){this.requestContentUpdate();}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate();}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e);}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate();}__createElements(e){return [...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const o=this.items[i],r=this.focusedIndex,n=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:i,label:this.getItemLabel(o),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof de&&this.__requestItemByIndex(i);}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}));}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault();});}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}));});}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
10206
+ */const ah=s=>class extends s{static get properties(){return {items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this);}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,o)=>i+o);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${mi()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling();}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update());}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l);}_isItemSelected(e,i,o){return e instanceof de?!1:o&&e!==void 0&&i!==void 0?nt$1(o,e)===nt$1(o,i):e===i}__initVirtualizer(){this.__virtualizer=new nh({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0});}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate();}__loadingChanged(){this.requestContentUpdate();}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate());}__selectedItemChanged(){this.requestContentUpdate();}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate();}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e);}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate();}__createElements(e){return [...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const o=this.items[i],r=this.focusedIndex,n=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:i,label:this.getItemLabel(o),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof de&&this.__requestItemByIndex(i);}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}));}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault();});}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}));});}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
10207
10207
  * @license
10208
10208
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10209
10209
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10210
- */class dh extends lh(k$1){static get is(){return "vaadin-combo-box-scroller"}static get template(){return P`
10210
+ */class lh extends ah(k$1){static get is(){return "vaadin-combo-box-scroller"}static get template(){return P`
10211
10211
  <style>
10212
10212
  :host {
10213
10213
  display: block;
@@ -10234,39 +10234,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10234
10234
  <div id="selector">
10235
10235
  <slot></slot>
10236
10236
  </div>
10237
- `}}y$1(dh);/**
10237
+ `}}y$1(lh);/**
10238
10238
  * @license
10239
10239
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10240
10240
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10241
- */const hh=s=>class extends Fi(s){static get properties(){return {pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"pattern"]}static get constraints(){return [...super.constraints,"pattern"]}};/**
10241
+ */const dh=s=>class extends Ni(s){static get properties(){return {pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"pattern"]}static get constraints(){return [...super.constraints,"pattern"]}};/**
10242
10242
  * @license
10243
10243
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10244
10244
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10245
- */function at$1(s,t,e=0){let i=t;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return at$1(o,i-r-1,e+1);i-=o.flatSize;}return {cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:e}}function pr({getItemId:s},t,e,i=0,o=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&s(n)===s(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:o+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=o+t.getFlatIndex(r.parentCacheIndex),a=pr({getItemId:s},r,e,i+1,n+1);if(a)return a}}function _r(s,[t,...e],i=0){t===1/0&&(t=s.size-1);const o=s.getFlatIndex(t),r=s.getSubCache(t);return r&&r.flatSize>0&&e.length?_r(r,e,i+o+1):i+o}/**
10245
+ */function at$1(s,t,e=0){let i=t;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return at$1(o,i-r-1,e+1);i-=o.flatSize;}return {cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:e}}function ur({getItemId:s},t,e,i=0,o=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&s(n)===s(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:o+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=o+t.getFlatIndex(r.parentCacheIndex),a=ur({getItemId:s},r,e,i+1,n+1);if(a)return a}}function pr(s,[t,...e],i=0){t===1/0&&(t=s.size-1);const o=s.getFlatIndex(t),r=s.getSubCache(t);return r&&r.flatSize>0&&e.length?pr(r,e,i+o+1):i+o}/**
10246
10246
  * @license
10247
10247
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10248
10248
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10249
- */class Bi{constructor(t,e,i,o,r){C$1(this,"context");C$1(this,"pageSize");C$1(this,"items",[]);C$1(this,"pendingRequests",{});C$1(this,"__subCacheByIndex",{});C$1(this,"__size",0);C$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0;}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(t=>t.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var i;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let o=0;o<t;o++)(i=this.items)[o]||(i[o]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o];});}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0;}setPage(t,e){const i=t*this.pageSize;e.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new Bi(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return e>r?i+o.flatSize:i},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=at$1(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=at$1(this,t);return {cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize();}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0);}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
10249
+ */class Vi{constructor(t,e,i,o,r){C$1(this,"context");C$1(this,"pageSize");C$1(this,"items",[]);C$1(this,"pendingRequests",{});C$1(this,"__subCacheByIndex",{});C$1(this,"__size",0);C$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0;}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(t=>t.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var i;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let o=0;o<t;o++)(i=this.items)[o]||(i[o]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o];});}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0;}setPage(t,e){const i=t*this.pageSize;e.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new Vi(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return e>r?i+o.flatSize:i},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=at$1(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=at$1(this,t);return {cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize();}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0);}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
10250
10250
  * @license
10251
10251
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10252
10252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10253
- */class ch extends EventTarget{constructor(e,{size:i,pageSize:o,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super();C$1(this,"host");C$1(this,"dataProvider");C$1(this,"dataProviderParams");C$1(this,"pageSize");C$1(this,"isExpanded");C$1(this,"getItemId");C$1(this,"rootCache");C$1(this,"placeholder");C$1(this,"isPlaceholder");this.host=e,this.pageSize=o,this.getItemId=n,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=h,this.rootCache=this.__createRootCache(i);}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return {isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache();}setDataProvider(e){this.dataProvider=e,this.clearCache();}recalculateFlatSize(){this.rootCache.recalculateFlatSize();}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size);}getFlatIndexContext(e){return at$1(this.rootCache,e)}getItemContext(e){return pr({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return _r(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,o);}ensureFlatIndexHierarchy(e){const{cache:i,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new Bi(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let o={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=me(me({},o),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")));};e.pendingRequests[i]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
10253
+ */class hh extends EventTarget{constructor(e,{size:i,pageSize:o,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super();C$1(this,"host");C$1(this,"dataProvider");C$1(this,"dataProviderParams");C$1(this,"pageSize");C$1(this,"isExpanded");C$1(this,"getItemId");C$1(this,"rootCache");C$1(this,"placeholder");C$1(this,"isPlaceholder");this.host=e,this.pageSize=o,this.getItemId=n,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=h,this.rootCache=this.__createRootCache(i);}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return {isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache();}setDataProvider(e){this.dataProvider=e,this.clearCache();}recalculateFlatSize(){this.rootCache.recalculateFlatSize();}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size);}getFlatIndexContext(e){return at$1(this.rootCache,e)}getItemContext(e){return ur({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return pr(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,o);}ensureFlatIndexHierarchy(e){const{cache:i,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new Vi(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let o={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=me(me({},o),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")));};e.pendingRequests[i]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
10254
10254
  * @license
10255
10255
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10256
10256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10257
- */const uh=s=>class extends s{static get properties(){return {pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return ["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new ch(this,{placeholder:new de,isPlaceholder:e=>e instanceof de,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this));}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const i=e.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i);}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState();}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1);}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0));}__onDataProviderPageRequested(){this.loading=!0;}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue();}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0);}_sizeChanged(e){const{rootCache:i}=this.__dataProviderController;i.size!==e&&(i.size=e,i.items=[...i.items],this.__synchronizeControllerState());}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:i}=this.__dataProviderController;i.items!==e&&(i.items=e,this.__synchronizeControllerState());}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading();}}_pageSizeChanged(e,i){if(Math.floor(e)!==e||e<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache();}_dataProviderChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i;}),this.__dataProviderController.setDataProvider(e),this.clearCache();}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,i){if(e&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const o=this.__getItemIndexByValue(this.filteredItems,i);(o<0||!this._getItemLabel(this.filteredItems[o]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`");}}};/**
10257
+ */const ch=s=>class extends s{static get properties(){return {pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return ["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new hh(this,{placeholder:new de,isPlaceholder:e=>e instanceof de,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this));}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const i=e.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i);}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState();}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1);}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0));}__onDataProviderPageRequested(){this.loading=!0;}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue();}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0);}_sizeChanged(e){const{rootCache:i}=this.__dataProviderController;i.size!==e&&(i.size=e,i.items=[...i.items],this.__synchronizeControllerState());}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:i}=this.__dataProviderController;i.items!==e&&(i.items=e,this.__synchronizeControllerState());}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading();}}_pageSizeChanged(e,i){if(Math.floor(e)!==e||e<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache();}_dataProviderChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i;}),this.__dataProviderController.setDataProvider(e),this.clearCache();}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,i){if(e&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const o=this.__getItemIndexByValue(this.filteredItems,i);(o<0||!this._getItemLabel(this.filteredItems[o]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`");}}};/**
10258
10258
  * @license
10259
10259
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10260
10260
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10261
- */function ph(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
10261
+ */function uh(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
10262
10262
  * @license
10263
10263
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10264
10264
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10265
- */function Ts(s){return s!=null}function Is(s,t){return s.findIndex(e=>e instanceof de?!1:t(e))}const _h=s=>class extends lr(Z$1(ki(_e(Re(He(pe(s))))))){static get properties(){return {opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return ["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}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(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.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 e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront();});};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),ph(this),this.addController(new dr(this));}disconnectedCallback(){super.disconnectedCallback(),this.close();}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate();}));}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.opened=!1;}_propertiesChanged(e,i,o){super._propertiesChanged(e,i,o),i.filter!==void 0&&this._filterChanged(i.filter);}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter);}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value;}),this._overlayElement=e;}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(i);},o.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,o,r,n,a,l,d,h,c){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?i:[],opened:o,loading:r,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate();}catch(u){}}_openedOrItemsChanged(e,i,o,r){this._overlayOpened=e&&(r||o||!!(i&&i.length));}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})));}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e);}_isInputFocused(){return this.inputElement&&Oo(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const o=this._getItemElements().find(r=>r.index===e);o?i.setAttribute("aria-activedescendant",o.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!Zt&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"));}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1;}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate();}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open();}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open());}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e);}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault());}_getItemLabel(e){let i=e&&this.itemLabelPath?nt$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?nt$1(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.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 e=this._dropdownItems;e&&(this._focusedIndex=e.length-1);}this._prefillFocusedItemLabel();}else this.open();}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange();}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i);}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length);}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e);}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close();}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit();}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{Zt&&!this._isInputFocused()&&document.activeElement.blur();}));}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange();}_clearFilter(){this.filter="";}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 e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),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 e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o);}else !this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue();}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter();}_onInput(e){const i=this._inputElementValue,o={};this.filter===i?this._filterChanged(this.filter):o.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o);}_onChange(e){e.stopPropagation();}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string");}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):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(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else {const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e);}}_valueChanged(e,i){e===""&&i===void 0||(Ts(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),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(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i;}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null);}_filteredItemsChanged(e){this._setDropdownItems(e);}_filterItems(e,i){return e&&e.filter(r=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const o=i?i[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter);}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e);}__getItemIndexByValue(e,i){return !e||!Ts(i)?-1:Is(e,o=>this._getItemValue(o)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:Is(e,o=>this._getItemLabel(o).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof de)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close());}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(ct$1()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue();}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction());}};/**
10265
+ */function Ss(s){return s!=null}function Ts(s,t){return s.findIndex(e=>e instanceof de?!1:t(e))}const ph=s=>class extends ar(Z$1(Pi(_e(Re(He(pe(s))))))){static get properties(){return {opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return ["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}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(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.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 e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront();});};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),uh(this),this.addController(new lr(this));}disconnectedCallback(){super.disconnectedCallback(),this.close();}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate();}));}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.opened=!1;}_propertiesChanged(e,i,o){super._propertiesChanged(e,i,o),i.filter!==void 0&&this._filterChanged(i.filter);}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter);}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value;}),this._overlayElement=e;}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(i);},o.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,o,r,n,a,l,d,h,c){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?i:[],opened:o,loading:r,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate();}catch(u){}}_openedOrItemsChanged(e,i,o,r){this._overlayOpened=e&&(r||o||!!(i&&i.length));}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})));}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e);}_isInputFocused(){return this.inputElement&&Do(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const o=this._getItemElements().find(r=>r.index===e);o?i.setAttribute("aria-activedescendant",o.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!Zt&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"));}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1;}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate();}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open();}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open());}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e);}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault());}_getItemLabel(e){let i=e&&this.itemLabelPath?nt$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?nt$1(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.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 e=this._dropdownItems;e&&(this._focusedIndex=e.length-1);}this._prefillFocusedItemLabel();}else this.open();}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange();}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i);}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length);}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e);}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close();}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit();}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{Zt&&!this._isInputFocused()&&document.activeElement.blur();}));}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange();}_clearFilter(){this.filter="";}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 e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),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 e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o);}else !this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue();}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter();}_onInput(e){const i=this._inputElementValue,o={};this.filter===i?this._filterChanged(this.filter):o.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o);}_onChange(e){e.stopPropagation();}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string");}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):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(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else {const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e);}}_valueChanged(e,i){e===""&&i===void 0||(Ss(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),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(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i;}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null);}_filteredItemsChanged(e){this._setDropdownItems(e);}_filterItems(e,i){return e&&e.filter(r=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const o=i?i[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter);}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e);}__getItemIndexByValue(e,i){return !e||!Ss(i)?-1:Ts(e,o=>this._getItemValue(o)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:Ts(e,o=>this._getItemLabel(o).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof de)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close());}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(ct$1()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue();}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction());}};/**
10266
10266
  * @license
10267
10267
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10268
10268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10269
- */m$1("vaadin-combo-box",Vi,{moduleId:"vaadin-combo-box-styles"});class fh extends uh(_h(hh(Li(I$1(ce(k$1)))))){static get is(){return "vaadin-combo-box"}static get template(){return P`
10269
+ */m$1("vaadin-combo-box",Li,{moduleId:"vaadin-combo-box-styles"});class _h extends ch(ph(dh(Fi(I$1(ce(k$1)))))){static get is(){return "vaadin-combo-box"}static get template(){return P`
10270
10270
  <style>
10271
10271
  :host([opened]) {
10272
10272
  pointer-events: auto;
@@ -10311,7 +10311,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10311
10311
  ></vaadin-combo-box-overlay>
10312
10312
 
10313
10313
  <slot name="tooltip"></slot>
10314
- `}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new pt$1(this.inputElement,this._labelController)),this._tooltipController=new ue(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton;}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t);}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t);}}y$1(fh);
10314
+ `}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new pt$1(this.inputElement,this._labelController)),this._tooltipController=new ue(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton;}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t);}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t);}}y$1(_h);
10315
10315
 
10316
10316
  const generalInputCss = ":host{display:block;height:100%}";
10317
10317
  const GeneralInputStyle0 = generalInputCss;
@@ -11437,14 +11437,14 @@ const dispatchCustomEvent = (type, data = {}) => {
11437
11437
  document.dispatchEvent(event);
11438
11438
  };
11439
11439
 
11440
- var PlayerConsentsDl0Aiebh = {};
11440
+ var PlayerConsentsCHapKEQ3 = {};
11441
11441
 
11442
- var GeneralAnimationLoadingAcwReDLO = {};
11442
+ var GeneralAnimationLoadingSk__cGd0 = {};
11443
11443
 
11444
- var st=Object.defineProperty,it=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var S=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&S(e,n,t[n]);if(H)for(var n of H(t))ot.call(t,n)&&S(e,n,t[n]);return e},R=(e,t)=>it(e,ct(t));var f=(e,t,n)=>(S(e,typeof t!="symbol"?t+"":t,n),n);var U=(e,t,n)=>new Promise((s,c)=>{var i=o=>{try{u(n.next(o));}catch(l){c(l);}},r=o=>{try{u(n.throw(o));}catch(l){c(l);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,r);u((n=n.apply(e,t)).next());});function h(){}function I(e){return e()}function z(){return Object.create(null)}function b(e){e.forEach(I);}function N(e){return typeof e=="function"}function D(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function lt(e){return Object.keys(e).length===0}function F(e,...t){if(e==null){for(const s of t)s(void 0);return h}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(F(t,n));}function ft(e){return e==null?"":e}function J(e,t){e.appendChild(t);}function V(e,t,n){const s=dt(e);if(!s.getElementById(t)){const c=w("style");c.id=t,c.textContent=n,ht(s,c);}}function dt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ht(e,t){return J(e.head||e,t),t.sheet}function v(e,t,n){e.insertBefore(t,n||null);}function y(e){e.parentNode&&e.parentNode.removeChild(e);}function at(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t);}function w(e){return document.createElement(e)}function q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function $t(){return T(" ")}function mt(){return T("")}function _t(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function M(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function gt(e,t,n){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:M(e,t,n);}function pt(e){return Array.from(e.childNodes)}function bt(e,t){t=""+t,e.data!==t&&(e.data=t);}class yt{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,n,s=null){this.e||(this.is_svg?this.e=q(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(s);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let n=0;n<this.n.length;n+=1)v(this.t,this.n[n],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(y);}}function wt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let p;function g(e){p=e;}function xt(){if(!p)throw new Error("Function called outside component initialization");return p}function K(e){xt().$$.on_mount.push(e);}const $=[],L=[];let m=[];const G=[],Et=Promise.resolve();let C=!1;function Lt(){C||(C=!0,Et.then(_));}function A(e){m.push(e);}const k=new Set;let a=0;function _(){if(a!==0)return;const e=p;do{try{for(;a<$.length;){const t=$[a];a++,g(t),vt(t.$$);}}catch(t){throw $.length=0,a=0,t}for(g(null),$.length=0,a=0;L.length;)L.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while($.length);for(;G.length;)G.pop()();C=!1,k.clear(),g(e);}function vt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A);}}function St(e){const t=[],n=[];m.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),m=t;}const kt=new Set;function Ct(e,t){e&&e.i&&(kt.delete(e),e.i(t));}function At(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nt(e,t,n){const{fragment:s,after_update:c}=e.$$;s&&s.m(t,n),A(()=>{const i=e.$$.on_mount.map(I).filter(N);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),c.forEach(A);}function Tt(e,t){const n=e.$$;n.fragment!==null&&(St(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function Mt(e,t){e.$$.dirty[0]===-1&&($.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function Q(e,t,n,s,c,i,r=null,u=[-1]){const o=p;g(e);const l=e.$$={fragment:null,ctx:[],props:i,update:h,not_equal:c,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:z(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};r&&r(l.root);let x=!1;if(l.ctx=n?n(e,t.props||{},(d,j,...O)=>{const P=O.length?O[0]:j;return l.ctx&&c(l.ctx[d],l.ctx[d]=P)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](P),x&&Mt(e,d)),j}):[],l.update(),x=!0,b(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const d=pt(t.target);l.fragment&&l.fragment.l(d),d.forEach(y);}else l.fragment&&l.fragment.c();t.intro&&Ct(e.$$.fragment),Nt(e,t.target,t.anchor),_();}g(o);}let W;typeof HTMLElement=="function"&&(W=class extends HTMLElement{constructor(t,n,s){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const c=this.$$c.$on(t,n);this.$$l_u.set(n,c);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n));}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let r;return {c:function(){r=w("slot"),i!=="default"&&M(r,"name",i);},m:function(l,x){v(l,r,x);},d:function(l){l&&y(r);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=wt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=E(r,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:R(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const c=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=E(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r);}this.$$r=!1;};this.$$c.$$.after_update.push(c),c();for(const i in this.$$l)for(const r of this.$$l[i]){const u=this.$$c.$on(i,r);this.$$l_u.set(r,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var c;this.$$r||(t=this.$$g_p(t),this.$$d[t]=E(t,s,this.$$p_d,"toProp"),(c=this.$$c)==null||c.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function E(e,t,n,s){var i;const c=(i=n[e])==null?void 0:i.type;if(t=c==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(c){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(c){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function X(e,t,n,s,c,i){let r=class extends W{constructor(){super(e,n,c),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(r.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=E(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(r.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=r,r}class Y{constructor(){f(this,"$$");f(this,"$$set");}$destroy(){Tt(this,1),this.$destroy=h;}$on(t,n){if(!N(n))return h;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const c=s.indexOf(n);c!==-1&&s.splice(c,1);}}$set(t){this.$$set&&!lt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const jt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jt);function Z(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function tt(e,t){const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const c=document.createElement("style");c.innerHTML=s,e&&e.appendChild(c);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function et(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,c=>{s.innerHTML=c,e&&e.appendChild(s);});}}function Ot(e){V(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function Pt(e){let t;return {c(){t=w("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){v(n,t,s),e[4](t);},p:h,i:h,o:h,d(n){n&&y(t),e[4](null);}}}function Ht(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,r;K(()=>()=>{});function u(o){L[o?"unshift":"push"](()=>{r=o,n(0,r);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,c=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&r&&Z(r,s),e.$$.dirty&5&&c&&r&&tt(r,c),e.$$.dirty&9&&i&&r&&et(r,`${i}.Style`);},[r,s,c,i,u]}class nt extends Y{constructor(t){super(),Q(this,t,Ht,Pt,D,{clientstyling:1,clientstylingurl:2,mbsource:3},Ot);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),_();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),_();}}X(nt,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"}));GeneralAnimationLoadingAcwReDLO.GeneralAnimationLoading_ce=Bt;GeneralAnimationLoadingAcwReDLO.HtmlTag=yt;GeneralAnimationLoadingAcwReDLO.SvelteComponent=Y;GeneralAnimationLoadingAcwReDLO.append=J;GeneralAnimationLoadingAcwReDLO.append_styles=V;GeneralAnimationLoadingAcwReDLO.attr=M;GeneralAnimationLoadingAcwReDLO.binding_callbacks=L;GeneralAnimationLoadingAcwReDLO.component_subscribe=ut;GeneralAnimationLoadingAcwReDLO.create_custom_element=X;GeneralAnimationLoadingAcwReDLO.destroy_each=at;GeneralAnimationLoadingAcwReDLO.detach=y;GeneralAnimationLoadingAcwReDLO.element=w;GeneralAnimationLoadingAcwReDLO.empty=mt;GeneralAnimationLoadingAcwReDLO.ensure_array_like=At;GeneralAnimationLoadingAcwReDLO.flush=_;GeneralAnimationLoadingAcwReDLO.init=Q;GeneralAnimationLoadingAcwReDLO.insert=v;GeneralAnimationLoadingAcwReDLO.is_function=N;GeneralAnimationLoadingAcwReDLO.listen=_t;GeneralAnimationLoadingAcwReDLO.noop=h;GeneralAnimationLoadingAcwReDLO.null_to_empty=ft;GeneralAnimationLoadingAcwReDLO.onMount=K;GeneralAnimationLoadingAcwReDLO.run_all=b;GeneralAnimationLoadingAcwReDLO.safe_not_equal=D;GeneralAnimationLoadingAcwReDLO.setClientStyling=Z;GeneralAnimationLoadingAcwReDLO.setClientStylingURL=tt;GeneralAnimationLoadingAcwReDLO.setStreamStyling=et;GeneralAnimationLoadingAcwReDLO.set_custom_element_data=gt;GeneralAnimationLoadingAcwReDLO.set_data=bt;GeneralAnimationLoadingAcwReDLO.space=$t;GeneralAnimationLoadingAcwReDLO.subscribe=F;GeneralAnimationLoadingAcwReDLO.svg_element=q;GeneralAnimationLoadingAcwReDLO.text=T;
11444
+ var st=Object.defineProperty,it=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var S=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&S(e,n,t[n]);if(H)for(var n of H(t))ot.call(t,n)&&S(e,n,t[n]);return e},R=(e,t)=>it(e,ct(t));var f=(e,t,n)=>(S(e,typeof t!="symbol"?t+"":t,n),n);var U=(e,t,n)=>new Promise((s,c)=>{var i=o=>{try{u(n.next(o));}catch(l){c(l);}},r=o=>{try{u(n.throw(o));}catch(l){c(l);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,r);u((n=n.apply(e,t)).next());});function h(){}function I(e){return e()}function z(){return Object.create(null)}function b(e){e.forEach(I);}function N(e){return typeof e=="function"}function D(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function lt(e){return Object.keys(e).length===0}function F(e,...t){if(e==null){for(const s of t)s(void 0);return h}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(F(t,n));}function ft(e){return e}function J(e,t){e.appendChild(t);}function V(e,t,n){const s=dt(e);if(!s.getElementById(t)){const c=w("style");c.id=t,c.textContent=n,ht(s,c);}}function dt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ht(e,t){return J(e.head||e,t),t.sheet}function v(e,t,n){e.insertBefore(t,n||null);}function y(e){e.parentNode&&e.parentNode.removeChild(e);}function at(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t);}function w(e){return document.createElement(e)}function q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function $t(){return T(" ")}function mt(){return T("")}function _t(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function M(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function gt(e,t,n){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:M(e,t,n);}function pt(e){return Array.from(e.childNodes)}function bt(e,t){t=""+t,e.data!==t&&(e.data=t);}class yt{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,n,s=null){this.e||(this.is_svg?this.e=q(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(s);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let n=0;n<this.n.length;n+=1)v(this.t,this.n[n],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(y);}}function wt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let p;function g(e){p=e;}function xt(){if(!p)throw new Error("Function called outside component initialization");return p}function K(e){xt().$$.on_mount.push(e);}const $=[],L=[];let m=[];const G=[],Et=Promise.resolve();let C=!1;function Lt(){C||(C=!0,Et.then(_));}function A(e){m.push(e);}const k=new Set;let a=0;function _(){if(a!==0)return;const e=p;do{try{for(;a<$.length;){const t=$[a];a++,g(t),vt(t.$$);}}catch(t){throw $.length=0,a=0,t}for(g(null),$.length=0,a=0;L.length;)L.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while($.length);for(;G.length;)G.pop()();C=!1,k.clear(),g(e);}function vt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A);}}function St(e){const t=[],n=[];m.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),m=t;}const kt=new Set;function Ct(e,t){e&&e.i&&(kt.delete(e),e.i(t));}function At(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nt(e,t,n){const{fragment:s,after_update:c}=e.$$;s&&s.m(t,n),A(()=>{const i=e.$$.on_mount.map(I).filter(N);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),c.forEach(A);}function Tt(e,t){const n=e.$$;n.fragment!==null&&(St(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function Mt(e,t){e.$$.dirty[0]===-1&&($.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function Q(e,t,n,s,c,i,r=null,u=[-1]){const o=p;g(e);const l=e.$$={fragment:null,ctx:[],props:i,update:h,not_equal:c,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:z(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};r&&r(l.root);let x=!1;if(l.ctx=n?n(e,t.props||{},(d,j,...O)=>{const P=O.length?O[0]:j;return l.ctx&&c(l.ctx[d],l.ctx[d]=P)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](P),x&&Mt(e,d)),j}):[],l.update(),x=!0,b(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const d=pt(t.target);l.fragment&&l.fragment.l(d),d.forEach(y);}else l.fragment&&l.fragment.c();t.intro&&Ct(e.$$.fragment),Nt(e,t.target,t.anchor),_();}g(o);}let W;typeof HTMLElement=="function"&&(W=class extends HTMLElement{constructor(t,n,s){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const c=this.$$c.$on(t,n);this.$$l_u.set(n,c);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n));}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let r;return {c:function(){r=w("slot"),i!=="default"&&M(r,"name",i);},m:function(l,x){v(l,r,x);},d:function(l){l&&y(r);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=wt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=E(r,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:R(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const c=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=E(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r);}this.$$r=!1;};this.$$c.$$.after_update.push(c),c();for(const i in this.$$l)for(const r of this.$$l[i]){const u=this.$$c.$on(i,r);this.$$l_u.set(r,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var c;this.$$r||(t=this.$$g_p(t),this.$$d[t]=E(t,s,this.$$p_d,"toProp"),(c=this.$$c)==null||c.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function E(e,t,n,s){var i;const c=(i=n[e])==null?void 0:i.type;if(t=c==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(c){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(c){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function X(e,t,n,s,c,i){let r=class extends W{constructor(){super(e,n,c),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(r.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=E(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(r.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=r,r}class Y{constructor(){f(this,"$$");f(this,"$$set");}$destroy(){Tt(this,1),this.$destroy=h;}$on(t,n){if(!N(n))return h;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const c=s.indexOf(n);c!==-1&&s.splice(c,1);}}$set(t){this.$$set&&!lt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const jt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jt);function Z(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function tt(e,t){const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const c=document.createElement("style");c.innerHTML=s,e&&e.appendChild(c);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function et(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,c=>{s.innerHTML=c,e&&e.appendChild(s);});}}function Ot(e){V(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function Pt(e){let t;return {c(){t=w("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){v(n,t,s),e[4](t);},p:h,i:h,o:h,d(n){n&&y(t),e[4](null);}}}function Ht(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,r;K(()=>()=>{});function u(o){L[o?"unshift":"push"](()=>{r=o,n(0,r);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,c=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&r&&Z(r,s),e.$$.dirty&5&&c&&r&&tt(r,c),e.$$.dirty&9&&i&&r&&et(r,`${i}.Style`);},[r,s,c,i,u]}class nt extends Y{constructor(t){super(),Q(this,t,Ht,Pt,D,{clientstyling:1,clientstylingurl:2,mbsource:3},Ot);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),_();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),_();}}X(nt,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"}));GeneralAnimationLoadingSk__cGd0.GeneralAnimationLoading_ce=Bt;GeneralAnimationLoadingSk__cGd0.HtmlTag=yt;GeneralAnimationLoadingSk__cGd0.SvelteComponent=Y;GeneralAnimationLoadingSk__cGd0.append=J;GeneralAnimationLoadingSk__cGd0.append_styles=V;GeneralAnimationLoadingSk__cGd0.attr=M;GeneralAnimationLoadingSk__cGd0.binding_callbacks=L;GeneralAnimationLoadingSk__cGd0.component_subscribe=ut;GeneralAnimationLoadingSk__cGd0.create_custom_element=X;GeneralAnimationLoadingSk__cGd0.destroy_each=at;GeneralAnimationLoadingSk__cGd0.detach=y;GeneralAnimationLoadingSk__cGd0.element=w;GeneralAnimationLoadingSk__cGd0.empty=mt;GeneralAnimationLoadingSk__cGd0.ensure_array_like=At;GeneralAnimationLoadingSk__cGd0.flush=_;GeneralAnimationLoadingSk__cGd0.init=Q;GeneralAnimationLoadingSk__cGd0.insert=v;GeneralAnimationLoadingSk__cGd0.is_function=N;GeneralAnimationLoadingSk__cGd0.listen=_t;GeneralAnimationLoadingSk__cGd0.noop=h;GeneralAnimationLoadingSk__cGd0.null_to_empty=ft;GeneralAnimationLoadingSk__cGd0.onMount=K;GeneralAnimationLoadingSk__cGd0.run_all=b;GeneralAnimationLoadingSk__cGd0.safe_not_equal=D;GeneralAnimationLoadingSk__cGd0.setClientStyling=Z;GeneralAnimationLoadingSk__cGd0.setClientStylingURL=tt;GeneralAnimationLoadingSk__cGd0.setStreamStyling=et;GeneralAnimationLoadingSk__cGd0.set_custom_element_data=gt;GeneralAnimationLoadingSk__cGd0.set_data=bt;GeneralAnimationLoadingSk__cGd0.space=$t;GeneralAnimationLoadingSk__cGd0.subscribe=F;GeneralAnimationLoadingSk__cGd0.svg_element=q;GeneralAnimationLoadingSk__cGd0.text=T;
11445
11445
 
11446
11446
  (function (exports) {
11447
- var fr=Object.defineProperty,_r=Object.defineProperties;var br=Object.getOwnPropertyDescriptors;var We=Object.getOwnPropertySymbols;var yr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable;var Ze=(e,t,r)=>t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&Ze(e,r,t[r]);if(We)for(var r of We(t))vr.call(t,r)&&Ze(e,r,t[r]);return e},Je=(e,t)=>_r(e,br(t));var ne=(e,t,r)=>new Promise((n,i)=>{var o=d=>{try{l(r.next(d));}catch(h){i(h);}},s=d=>{try{l(r.throw(d));}catch(h){i(h);}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=GeneralAnimationLoadingAcwReDLO,X=[];function kr(e,t){return {subscribe:ye(e,t).subscribe}}function ye(e,t=a.noop){let r;const n=new Set;function i(l){if(a.safe_not_equal(e,l)&&(e=l,r)){const d=!X.length;for(const h of n)h[1](),X.push(h,e);if(d){for(let h=0;h<X.length;h+=2)X[h][0](X[h+1]);X.length=0;}}}function o(l){i(l(e));}function s(l,d=a.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,o)||a.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:s}}function Q(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return kr(r,(s,l)=>{let d=!1;const h=[];let c=0,m=a.noop;const g=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},y=i.map((_,p)=>a.subscribe(_,S=>{h[p]=S,c&=~(1<<p),d&&g();},()=>{c|=1<<p;}));return d=!0,g(),function(){a.run_all(y),m(),d=!1;}})}function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cr=function(t){return Sr(t)&&!xr(t)};function Sr(e){return !!e&&typeof e=="object"}function xr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Tr(e)}var zr=typeof Symbol=="function"&&Symbol.for,Mr=zr?Symbol.for("react.element"):60103;function Tr(e){return e.$$typeof===Mr}function wr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?q(wr(e),e,t):e}function Nr(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function Ar(e,t){if(!t.customMerge)return q;var r=t.customMerge(e);return typeof r=="function"?r:q}function Hr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Qe(e){return Object.keys(e).concat(Hr(e))}function Ct(e,t){try{return t in e}catch(r){return !1}}function Pr(e,t){return Ct(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Br(e,t,r){var n={};return r.isMergeableObject(e)&&Qe(e).forEach(function(i){n[i]=ae(e[i],r);}),Qe(t).forEach(function(i){Pr(e,i)||(Ct(e,i)&&r.isMergeableObject(t[i])?n[i]=Ar(i,r)(e[i],t[i],r):n[i]=ae(t[i],r));}),n}function q(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Nr,r.isMergeableObject=r.isMergeableObject||Cr,r.cloneUnlessOtherwiseSpecified=ae;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Br(e,t,r):ae(t,r)}q.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return q(n,i,r)},{})};var Or=q,Ir=Or;const Lr=Er(Ir);/*! *****************************************************************************
11447
+ var mr=Object.defineProperty,gr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var Ve=Object.getOwnPropertySymbols;var fr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable;var Xe=(e,t,r)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t)=>{for(var r in t||(t={}))fr.call(t,r)&&Xe(e,r,t[r]);if(Ve)for(var r of Ve(t))_r.call(t,r)&&Xe(e,r,t[r]);return e},qe=(e,t)=>gr(e,pr(t));var re=(e,t,r)=>new Promise((n,i)=>{var o=d=>{try{l(r.next(d));}catch(h){i(h);}},s=d=>{try{l(r.throw(d));}catch(h){i(h);}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=GeneralAnimationLoadingSk__cGd0,V=[];function br(e,t){return {subscribe:be(e,t).subscribe}}function be(e,t=a.noop){let r;const n=new Set;function i(l){if(a.safe_not_equal(e,l)&&(e=l,r)){const d=!V.length;for(const h of n)h[1](),V.push(h,e);if(d){for(let h=0;h<V.length;h+=2)V[h][0](V[h+1]);V.length=0;}}}function o(l){i(l(e));}function s(l,d=a.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,o)||a.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:s}}function J(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return br(r,(s,l)=>{let d=!1;const h=[];let c=0,m=a.noop;const g=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},v=i.map((_,p)=>a.subscribe(_,C=>{h[p]=C,c&=~(1<<p),d&&g();},()=>{c|=1<<p;}));return d=!0,g(),function(){a.run_all(v),m(),d=!1;}})}function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vr=function(t){return kr(t)&&!Er(t)};function kr(e){return !!e&&typeof e=="object"}function Er(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||xr(e)}var Cr=typeof Symbol=="function"&&Symbol.for,Sr=Cr?Symbol.for("react.element"):60103;function xr(e){return e.$$typeof===Sr}function zr(e){return Array.isArray(e)?[]:{}}function ie(e,t){return t.clone!==!1&&t.isMergeableObject(e)?X(zr(e),e,t):e}function Tr(e,t,r){return e.concat(t).map(function(n){return ie(n,r)})}function Mr(e,t){if(!t.customMerge)return X;var r=t.customMerge(e);return typeof r=="function"?r:X}function wr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function We(e){return Object.keys(e).concat(wr(e))}function vt(e,t){try{return t in e}catch(r){return !1}}function Nr(e,t){return vt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ar(e,t,r){var n={};return r.isMergeableObject(e)&&We(e).forEach(function(i){n[i]=ie(e[i],r);}),We(t).forEach(function(i){Nr(e,i)||(vt(e,i)&&r.isMergeableObject(t[i])?n[i]=Mr(i,r)(e[i],t[i],r):n[i]=ie(t[i],r));}),n}function X(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Tr,r.isMergeableObject=r.isMergeableObject||vr,r.cloneUnlessOtherwiseSpecified=ie;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Ar(e,t,r):ie(t,r)}X.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return X(n,i,r)},{})};var Hr=X,Pr=Hr;const Br=yr(Pr);/*! *****************************************************************************
11448
11448
  Copyright (c) Microsoft Corporation.
11449
11449
 
11450
11450
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11457,12 +11457,12 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11457
11457
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11458
11458
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
11459
11459
  PERFORMANCE OF THIS SOFTWARE.
11460
- ***************************************************************************** */var Ae=function(e,t){return Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},Ae(e,t)};function ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ae(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var w=function(){return w=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},w.apply(this,arguments)};function jr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function xe(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}function ze(e,t){var r=t&&t.cache?t.cache:Vr,n=t&&t.serializer?t.serializer:Fr,i=t&&t.strategy?t.strategy:Ur;return i(e,{cache:r,serializer:n})}function Rr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function St(e,t,r,n){var i=Rr(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function xt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function Ue(e,t,r,n,i){return r.bind(t,e,n,i)}function Ur(e,t){var r=e.length===1?St:xt;return Ue(e,this,r,t.cache.create(),t.serializer)}function Dr(e,t){return Ue(e,this,xt,t.cache.create(),t.serializer)}function Gr(e,t){return Ue(e,this,St,t.cache.create(),t.serializer)}var Fr=function(){return JSON.stringify(arguments)};function De(){this.cache=Object.create(null);}De.prototype.get=function(e){return this.cache[e]};De.prototype.set=function(e,t){this.cache[e]=t;};var Vr={create:function(){return new De}},Me={variadic:Dr,monadic:Gr},M;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(M||(M={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(A||(A={}));var W;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(W||(W={}));function Ye(e){return e.type===A.literal}function Xr(e){return e.type===A.argument}function zt(e){return e.type===A.number}function Mt(e){return e.type===A.date}function Tt(e){return e.type===A.time}function wt(e){return e.type===A.select}function Nt(e){return e.type===A.plural}function qr(e){return e.type===A.pound}function At(e){return e.type===A.tag}function Ht(e){return !!(e&&typeof e=="object"&&e.type===W.number)}function He(e){return !!(e&&typeof e=="object"&&e.type===W.dateTime)}var Pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Zr(e){var t={};return e.replace(Wr,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var Jr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Jr).filter(function(g){return g.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],d=s.slice(1),h=0,c=d;h<c.length;h++){var m=c[h];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:d});}return r}function Yr(e){return e.replace(/^(.*?)-/,"")}var Ke=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bt=/^(@+)?(\+|#+)?[rs]?$/g,Kr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function $e(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Bt,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function It(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function $r(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ot.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function et(e){var t={},r=It(e);return r||t}function en(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Yr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=w(w(w({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return w(w({},d),et(h))},{}));continue;case"engineering":t=w(w(w({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return w(w({},d),et(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Kr,function(d,h,c,m,g,y){if(h)t.minimumIntegerDigits=c.length;else {if(m&&g)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Ot.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ke.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ke,function(d,h,c,m,g,y){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:g&&y?(t.minimumFractionDigits=g.length,t.maximumFractionDigits=g.length+y.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=w(w({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=w(w({},t),$e(o)));continue}if(Bt.test(i.stem)){t=w(w({},t),$e(i.stem));continue}var s=It(i.stem);s&&(t=w(w({},t),s));var l=$r(i.stem);l&&(t=w(w({},t),l));}return t}var ge={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function tn(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),l=o<2?1:3+(o>>1),d="a",h=rn(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)r+=d;for(;s-- >0;)r=h+r;}else i==="J"?r+="H":r+=i;}return r}function rn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=ge[n||""]||ge[r||""]||ge["".concat(r,"-001")]||ge["001"];return i[0]}var Te,nn=new RegExp("^".concat(Pt.source,"*")),an=new RegExp("".concat(Pt.source,"*$"));function T(e,t){return {start:e,end:t}}var on=!!String.prototype.startsWith&&"_a".startsWith("a",1),sn=!!String.fromCodePoint,ln=!!Object.fromEntries,cn=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,dn=!!Number.isSafeInteger,mn=dn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pe=!0;try{var gn=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pe=((Te=gn.exec("a"))===null||Te===void 0?void 0:Te[0])==="a";}catch(e){Pe=!1;}var tt=on?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Be=sn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},rt=ln?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],l=o[1];r[s]=l;}return r},Lt=cn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},pn=un?function(t){return t.trimStart()}:function(t){return t.replace(nn,"")},fn=hn?function(t){return t.trimEnd()}:function(t){return t.replace(an,"")};function jt(e,t){return new RegExp(e,t)}var Oe;if(Pe){var nt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oe=function(t,r){var n;nt.lastIndex=r;var i=nt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else Oe=function(t,r){for(var n=[];;){var i=Lt(t,r);if(i===void 0||Rt(i)||vn(i))break;n.push(i),r+=i>=65536?2:1;}return Be.apply(void 0,n)};var _n=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:A.pound,location:T(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(M.UNMATCHED_CLOSING_TAG,T(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ie(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:A.literal,value:"<".concat(i,"/>"),location:T(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ie(this.char()))return this.error(M.INVALID_TAG,T(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(M.UNMATCHED_CLOSING_TAG,T(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:s,location:T(n,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,T(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,T(n,this.clonePosition()))}else return this.error(M.INVALID_TAG,T(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&yn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=T(n,this.clonePosition());return {val:{type:A.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!bn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return Be.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Be(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,T(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,T(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:T(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(M.MALFORMED_ARGUMENT,T(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Oe(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=T(t,o);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,T(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=fn(m.val);if(g.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,T(this.clonePosition(),this.clonePosition()));var y=T(c,this.clonePosition());h={style:g,styleLocation:y};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var p=T(i,this.clonePosition());if(h&&tt(h==null?void 0:h.style,"::",0)){var S=pn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(S,h.styleLocation);return m.err?m:{val:{type:A.number,value:n,location:p,style:m.val},err:null}}else {if(S.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,p);var b=S;this.locale&&(b=tn(S,this.locale));var g={type:W.dateTime,pattern:b,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(b):{}},v=l==="date"?A.date:A.time;return {val:{type:v,value:n,location:p,style:g},err:null}}}return {val:{type:l==="number"?A.number:l==="date"?A.date:A.time,value:n,location:p,style:(o=h==null?void 0:h.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,T(C,w({},C)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),E=0;if(l!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),N=this.parseIdentifierIfPossible(),E=m.val;}var H=this.tryParsePluralOrSelectOptions(t,l,r,N);if(H.err)return H;var _=this.tryParseArgumentClose(i);if(_.err)return _;var D=T(i,this.clonePosition());return l==="select"?{val:{type:A.select,value:n,options:rt(H.val),location:D},err:null}:{val:{type:A.plural,value:n,options:rt(H.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,T(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,T(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,T(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Qr(t);}catch(i){return this.error(M.INVALID_NUMBER_SKELETON,r)}return {val:{type:W.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?en(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,l=[],d=new Set,h=i.value,c=i.location;;){if(h.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;c=T(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,T(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var p=this.tryParseArgumentClose(y);if(p.err)return p;l.push([h,{value:_.val,location:T(y,this.clonePosition())}]),d.add(h),this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=o.value,c=o.location;}return l.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,T(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var d=T(i,this.clonePosition());return o?(s*=n,mn(s)?{val:s,err:null}:this.error(r,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Lt(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(tt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Rt(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Ie(e){return e>=97&&e<=122||e>=65&&e<=90}function bn(e){return Ie(e)||e===47}function yn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Rt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function vn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Le(e){e.forEach(function(t){if(delete t.location,wt(t)||Nt(t))for(var r in t.options)delete t.options[r].location,Le(t.options[r].value);else zt(t)&&Ht(t.style)||(Mt(t)||Tt(t))&&He(t.style)?delete t.style.location:At(t)&&Le(t.children);});}function kn(e,t){t===void 0&&(t={}),t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _n(e,t).parse();if(r.err){var n=SyntaxError(M[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Le(r.val),r.val}var Z;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(Z||(Z={}));var ke=function(e){ve(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),it=function(e){ve(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Z.INVALID_VALUE,o)||this}return t}(ke),En=function(e){ve(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Z.INVALID_VALUE,i)||this}return t}(ke),Cn=function(e){ve(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Z.MISSING_VALUE,n)||this}return t}(ke),L;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(L||(L={}));function Sn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==L.literal||r.type!==L.literal?t.push(r):n.value+=r.value,t},[])}function xn(e){return typeof e=="function"}function pe(e,t,r,n,i,o,s){if(e.length===1&&Ye(e[0]))return [{type:L.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Ye(c)){l.push({type:L.literal,value:c.value});continue}if(qr(c)){typeof o=="number"&&l.push({type:L.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new Cn(m,s);var g=i[m];if(Xr(c)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),l.push({type:typeof g=="string"?L.literal:L.object,value:g});continue}if(Mt(c)){var y=typeof c.style=="string"?n.date[c.style]:He(c.style)?c.style.parsedOptions:void 0;l.push({type:L.literal,value:r.getDateTimeFormat(t,y).format(g)});continue}if(Tt(c)){var y=typeof c.style=="string"?n.time[c.style]:He(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:L.literal,value:r.getDateTimeFormat(t,y).format(g)});continue}if(zt(c)){var y=typeof c.style=="string"?n.number[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;y&&y.scale&&(g=g*(y.scale||1)),l.push({type:L.literal,value:r.getNumberFormat(t,y).format(g)});continue}if(At(c)){var _=c.children,p=c.value,S=i[p];if(!xn(S))throw new En(p,"function",s);var b=pe(_,t,r,n,i,o),v=S(b.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(E){return {type:typeof E=="string"?L.literal:L.object,value:E}}));}if(wt(c)){var C=c.options[g]||c.options.other;if(!C)throw new it(c.value,g,Object.keys(c.options),s);l.push.apply(l,pe(C.value,t,r,n,i));continue}if(Nt(c)){var C=c.options["=".concat(g)];if(!C){if(!Intl.PluralRules)throw new ke(`Intl.PluralRules is not available in this environment.
11460
+ ***************************************************************************** */var Ne=function(e,t){return Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},Ne(e,t)};function ye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ne(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var w=function(){return w=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},w.apply(this,arguments)};function Or(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Se(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}function xe(e,t){var r=t&&t.cache?t.cache:Gr,n=t&&t.serializer?t.serializer:Ur,i=t&&t.strategy?t.strategy:jr;return i(e,{cache:r,serializer:n})}function Ir(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Lr(e,t,r,n){var i=Ir(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function kt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function Et(e,t,r,n,i){return r.bind(t,e,n,i)}function jr(e,t){var r=e.length===1?Lr:kt;return Et(e,this,r,t.cache.create(),t.serializer)}function Rr(e,t){return Et(e,this,kt,t.cache.create(),t.serializer)}var Ur=function(){return JSON.stringify(arguments)},Dr=function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e}(),Gr={create:function(){return new Dr}},ze={variadic:Rr},T;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(T||(T={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(A||(A={}));var q;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(q||(q={}));function Ze(e){return e.type===A.literal}function Fr(e){return e.type===A.argument}function Ct(e){return e.type===A.number}function St(e){return e.type===A.date}function xt(e){return e.type===A.time}function zt(e){return e.type===A.select}function Tt(e){return e.type===A.plural}function Vr(e){return e.type===A.pound}function Mt(e){return e.type===A.tag}function wt(e){return !!(e&&typeof e=="object"&&e.type===q.number)}function Ae(e){return !!(e&&typeof e=="object"&&e.type===q.dateTime)}var Nt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Xr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qr(e){var t={};return e.replace(Xr,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var Wr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Zr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Wr).filter(function(g){return g.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],d=s.slice(1),h=0,c=d;h<c.length;h++){var m=c[h];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:d});}return r}function Jr(e){return e.replace(/^(.*?)-/,"")}var Je=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,At=/^(@+)?(\+|#+)?[rs]?$/g,Qr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ht=/^(0+)$/;function Qe(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(At,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Pt(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function Yr(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ht.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function Ye(e){var t={},r=Pt(e);return r||t}function Kr(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Jr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=w(w(w({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return w(w({},d),Ye(h))},{}));continue;case"engineering":t=w(w(w({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return w(w({},d),Ye(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Qr,function(d,h,c,m,g,v){if(h)t.minimumIntegerDigits=c.length;else {if(m&&g)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Ht.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Je.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Je,function(d,h,c,m,g,v){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:g&&v?(t.minimumFractionDigits=g.length,t.maximumFractionDigits=g.length+v.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=w(w({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=w(w({},t),Qe(o)));continue}if(At.test(i.stem)){t=w(w({},t),Qe(i.stem));continue}var s=Pt(i.stem);s&&(t=w(w({},t),s));var l=Yr(i.stem);l&&(t=w(w({},t),l));}return t}var me={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function $r(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),l=o<2?1:3+(o>>1),d="a",h=en(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)r+=d;for(;s-- >0;)r=h+r;}else i==="J"?r+="H":r+=i;}return r}function en(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=me[n||""]||me[r||""]||me["".concat(r,"-001")]||me["001"];return i[0]}var Te,tn=new RegExp("^".concat(Nt.source,"*")),rn=new RegExp("".concat(Nt.source,"*$"));function M(e,t){return {start:e,end:t}}var nn=!!String.prototype.startsWith&&"_a".startsWith("a",1),an=!!String.fromCodePoint,on=!!Object.fromEntries,sn=!!String.prototype.codePointAt,ln=!!String.prototype.trimStart,cn=!!String.prototype.trimEnd,un=!!Number.isSafeInteger,hn=un?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},He=!0;try{var dn=Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");He=((Te=dn.exec("a"))===null||Te===void 0?void 0:Te[0])==="a";}catch(e){He=!1;}var Ke=nn?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Pe=an?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},$e=on?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],l=o[1];r[s]=l;}return r},Bt=sn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},mn=ln?function(t){return t.trimStart()}:function(t){return t.replace(tn,"")},gn=cn?function(t){return t.trimEnd()}:function(t){return t.replace(rn,"")};function Ot(e,t){return new RegExp(e,t)}var Be;if(He){var et=Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Be=function(t,r){var n;et.lastIndex=r;var i=et.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else Be=function(t,r){for(var n=[];;){var i=Bt(t,r);if(i===void 0||It(i)||bn(i))break;n.push(i),r+=i>=65536?2:1;}return Pe.apply(void 0,n)};var pn=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:A.pound,location:M(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(T.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Oe(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:A.literal,value:"<".concat(i,"/>"),location:M(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Oe(this.char()))return this.error(T.INVALID_TAG,M(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(T.UNMATCHED_CLOSING_TAG,M(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:s,location:M(n,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,M(l,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,M(n,this.clonePosition()))}else return this.error(T.INVALID_TAG,M(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&_n(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=M(n,this.clonePosition());return {val:{type:A.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!fn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return Pe.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Pe(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,M(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(T.MALFORMED_ARGUMENT,M(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:M(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(T.MALFORMED_ARGUMENT,M(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Be(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=M(t,o);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,M(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=gn(m.val);if(g.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));var v=M(c,this.clonePosition());h={style:g,styleLocation:v};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var p=M(i,this.clonePosition());if(h&&Ke(h==null?void 0:h.style,"::",0)){var C=mn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(C,h.styleLocation);return m.err?m:{val:{type:A.number,value:n,location:p,style:m.val},err:null}}else {if(C.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,p);var b=C;this.locale&&(b=$r(C,this.locale));var g={type:q.dateTime,pattern:b,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?qr(b):{}},y=l==="date"?A.date:A.time;return {val:{type:y,value:n,location:p,style:g},err:null}}}return {val:{type:l==="number"?A.number:l==="date"?A.date:A.time,value:n,location:p,style:(o=h==null?void 0:h.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,M(S,w({},S)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),E=0;if(l!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),N=this.parseIdentifierIfPossible(),E=m.val;}var H=this.tryParsePluralOrSelectOptions(t,l,r,N);if(H.err)return H;var _=this.tryParseArgumentClose(i);if(_.err)return _;var P=M(i,this.clonePosition());return l==="select"?{val:{type:A.select,value:n,options:$e(H.val),location:P},err:null}:{val:{type:A.plural,value:n,options:$e(H.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,M(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Zr(t);}catch(i){return this.error(T.INVALID_NUMBER_SKELETON,r)}return {val:{type:q.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Kr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,l=[],d=new Set,h=i.value,c=i.location;;){if(h.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;c=M(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,M(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var p=this.tryParseArgumentClose(v);if(p.err)return p;l.push([h,{value:_.val,location:M(v,this.clonePosition())}]),d.add(h),this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=o.value,c=o.location;}return l.length===0?this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,M(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(T.MISSING_OTHER_CLAUSE,M(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var d=M(i,this.clonePosition());return o?(s*=n,hn(s)?{val:s,err:null}:this.error(r,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Bt(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(Ke(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&It(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Oe(e){return e>=97&&e<=122||e>=65&&e<=90}function fn(e){return Oe(e)||e===47}function _n(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function It(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ie(e){e.forEach(function(t){if(delete t.location,zt(t)||Tt(t))for(var r in t.options)delete t.options[r].location,Ie(t.options[r].value);else Ct(t)&&wt(t.style)||(St(t)||xt(t))&&Ae(t.style)?delete t.style.location:Mt(t)&&Ie(t.children);});}function yn(e,t){t===void 0&&(t={}),t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new pn(e,t).parse();if(r.err){var n=SyntaxError(T[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ie(r.val),r.val}var W;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(W||(W={}));var ve=function(e){ye(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),tt=function(e){ye(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),W.INVALID_VALUE,o)||this}return t}(ve),vn=function(e){ye(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),W.INVALID_VALUE,i)||this}return t}(ve),kn=function(e){ye(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),W.MISSING_VALUE,n)||this}return t}(ve),L;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(L||(L={}));function En(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==L.literal||r.type!==L.literal?t.push(r):n.value+=r.value,t},[])}function Cn(e){return typeof e=="function"}function ge(e,t,r,n,i,o,s){if(e.length===1&&Ze(e[0]))return [{type:L.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Ze(c)){l.push({type:L.literal,value:c.value});continue}if(Vr(c)){typeof o=="number"&&l.push({type:L.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new kn(m,s);var g=i[m];if(Fr(c)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),l.push({type:typeof g=="string"?L.literal:L.object,value:g});continue}if(St(c)){var v=typeof c.style=="string"?n.date[c.style]:Ae(c.style)?c.style.parsedOptions:void 0;l.push({type:L.literal,value:r.getDateTimeFormat(t,v).format(g)});continue}if(xt(c)){var v=typeof c.style=="string"?n.time[c.style]:Ae(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:L.literal,value:r.getDateTimeFormat(t,v).format(g)});continue}if(Ct(c)){var v=typeof c.style=="string"?n.number[c.style]:wt(c.style)?c.style.parsedOptions:void 0;v&&v.scale&&(g=g*(v.scale||1)),l.push({type:L.literal,value:r.getNumberFormat(t,v).format(g)});continue}if(Mt(c)){var _=c.children,p=c.value,C=i[p];if(!Cn(C))throw new vn(p,"function",s);var b=ge(_,t,r,n,i,o),y=C(b.map(function(E){return E.value}));Array.isArray(y)||(y=[y]),l.push.apply(l,y.map(function(E){return {type:typeof E=="string"?L.literal:L.object,value:E}}));}if(zt(c)){var S=c.options[g]||c.options.other;if(!S)throw new tt(c.value,g,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i));continue}if(Tt(c)){var S=c.options["=".concat(g)];if(!S){if(!Intl.PluralRules)throw new ve(`Intl.PluralRules is not available in this environment.
11461
11461
  Try polyfilling it using "@formatjs/intl-pluralrules"
11462
- `,Z.MISSING_INTL_API,s);var N=r.getPluralRules(t,{type:c.pluralType}).select(g-(c.offset||0));C=c.options[N]||c.options.other;}if(!C)throw new it(c.value,g,Object.keys(c.options),s);l.push.apply(l,pe(C.value,t,r,n,i,g-(c.offset||0)));continue}}return Sn(l)}function zn(e,t){return t?w(w(w({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=w(w({},e[n]),t[n]||{}),r},{})):e}function Mn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=zn(e[n],t[n]),r},w({},e)):e}function we(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function Tn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ze(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,xe([void 0],r,!1)))},{cache:we(e.number),strategy:Me.variadic}),getDateTimeFormat:ze(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,xe([void 0],r,!1)))},{cache:we(e.dateTime),strategy:Me.variadic}),getPluralRules:ze(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,xe([void 0],r,!1)))},{cache:we(e.pluralRules),strategy:Me.variadic})}}var wn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=o.formatToParts(d);if(h.length===1)return h[0].value;var c=h.reduce(function(m,g){return !m.length||g.type!==L.literal||typeof m[m.length-1]!="string"?m.push(g.value):m[m.length-1]+=g.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return pe(o.ast,o.locales,o.formatters,o.formats,d,void 0,o.message)},this.resolvedOptions=function(){var d;return {locale:((d=o.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};var l=jr(s,["formatters"]);this.ast=e.__parse(t,w(w({},l),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Mn(e.formats,n),this.formatters=i&&i.formatters||Tn(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=kn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Nn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const F={},An=(e,t,r)=>r&&(t in F||(F[t]={}),e in F[t]||(F[t][e]=r),r),Ut=(e,t)=>{if(t==null)return;if(t in F&&e in F[t])return F[t][e];const r=Ee(t);for(let n=0;n<r.length;n++){const i=r[n],o=Pn(i,e);if(o)return An(e,t,o)}};let Ge;const se=ye({});function Hn(e){return Ge[e]||null}function Dt(e){return e in Ge}function Pn(e,t){if(!Dt(e))return null;const r=Hn(e);return Nn(r,t)}function Bn(e){if(e==null)return;const t=Ee(e);for(let r=0;r<t.length;r++){const n=t[r];if(Dt(n))return n}}function Gt(e,...t){delete F[e],se.update(r=>(r[e]=Lr.all([r[e]||{},...t]),r));}Q([se],([e])=>Object.keys(e));se.subscribe(e=>Ge=e);const fe={};function On(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e];}function Ft(e){return fe[e]}function In(e){return Ee(e).map(t=>{const r=Ft(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function je(e){return e==null?!1:Ee(e).some(t=>{var r;return (r=Ft(t))==null?void 0:r.size})}function Ln(e,t){return Promise.all(t.map(n=>(On(e,n),n().then(i=>i.default||i)))).then(n=>Gt(e,...n))}const ie={};function Vt(e){if(!je(e))return e in ie?ie[e]:Promise.resolve();const t=In(e);return ie[e]=Promise.all(t.map(([r,n])=>Ln(r,n))).then(()=>{if(je(e))return Vt(e);delete ie[e];}),ie[e]}const jn={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Rn={fallbackLocale:null,loadingDelay:200,formats:jn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Un=Rn;function J(){return Un}const Ne=ye(!1);var Dn=Object.defineProperty,Gn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,ot=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qn=(e,t)=>{for(var r in t||(t={}))Vn.call(t,r)&&ot(e,r,t[r]);if(at)for(var r of at(t))Xn.call(t,r)&&ot(e,r,t[r]);return e},Wn=(e,t)=>Gn(e,Fn(t));let Re;const _e=ye(null);function st(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ee(e,t=J().fallbackLocale){const r=st(e);return t?[...new Set([...r,...st(t)])]:r}function V(){return Re!=null?Re:void 0}_e.subscribe(e=>{Re=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const Zn=e=>{if(e&&Bn(e)&&je(e)){const{loadingDelay:t}=J();let r;return typeof window!="undefined"&&V()!=null&&t?r=window.setTimeout(()=>Ne.set(!0),t):Ne.set(!0),Vt(e).then(()=>{_e.set(e);}).finally(()=>{clearTimeout(r),Ne.set(!1);})}return _e.set(e)},Y=Wn(qn({},_e),{set:Zn}),Ce=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Jn=Object.defineProperty,be=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,lt=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fe=(e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&lt(e,r,t[r]);if(be)for(var r of be(t))qt.call(t,r)&&lt(e,r,t[r]);return e},K=(e,t)=>{var r={};for(var n in e)Xt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&be)for(var n of be(e))t.indexOf(n)<0&&qt.call(e,n)&&(r[n]=e[n]);return r};const oe=(e,t)=>{const{formats:r}=J();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qn=Ce(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=oe("number",n)),new Intl.NumberFormat(r,i)}),Yn=Ce(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=oe("date",n):Object.keys(i).length===0&&(i=oe("date","short")),new Intl.DateTimeFormat(r,i)}),Kn=Ce(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=oe("time",n):Object.keys(i).length===0&&(i=oe("time","short")),new Intl.DateTimeFormat(r,i)}),$n=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Qn(Fe({locale:r},n))},ei=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Yn(Fe({locale:r},n))},ti=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Kn(Fe({locale:r},n))},ri=Ce((e,t=V())=>new wn(e,t,J().formats,{ignoreTag:J().ignoreTag})),ni=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=V(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ut(e,d);if(!c)c=(o=(i=(n=(r=J()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let m=c;try{m=ri(c,d).format(l);}catch(g){g instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,g.message);}return m},ii=(e,t)=>ti(t).format(e),ai=(e,t)=>ei(t).format(e),oi=(e,t)=>$n(t).format(e),si=(e,t=V())=>Ut(e,t),li=Q([Y,se],()=>ni);Q([Y],()=>ii);Q([Y],()=>ai);Q([Y],()=>oi);Q([Y,se],()=>si);function ct(e,t){Gt(e,t);}function ci(e){Y.set(e);}const ut={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingAcwReDLO).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function ui(e){let t,r;return {c(){t=a.svg_element("svg"),r=a.svg_element("path"),a.attr(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),a.attr(t,"xmlns","http://www.w3.org/2000/svg"),a.attr(t,"viewBox","0 0 512 512");},m(n,i){a.insert(n,t,i),a.append(t,r);},p:a.noop,i:a.noop,o:a.noop,d(n){n&&a.detach(t);}}}class hi extends a.SvelteComponent{constructor(t){super(),a.init(this,t,null,ui,a.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",a.create_custom_element(hi,{},[],[],!0));function di(e){a.append_styles(e,"svelte-1kygizb",'.DisplayNone.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:none}.ContainerCenter.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:30px}.AccordionHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:10px}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:block;padding:10px 0}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{padding-bottom:0}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{margin-bottom:0}.ConsentItem.svelte-1kygizb .ConsentName.svelte-1kygizb.svelte-1kygizb{margin:0}.ConsentItem.svelte-1kygizb .ConsentDescription.svelte-1kygizb.svelte-1kygizb{font-size:0.8rem}.ToggleSwitch.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:53px;height:30px}.ToggleSwitch.Big.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb.svelte-1kygizb{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:disabled+.Slider.svelte-1kygizb{opacity:0.1}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:focus+.Slider.svelte-1kygizb{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb{border-radius:34px}.ToggleSwitch.svelte-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb:before{border-radius:50%}.SaveConsentsButton.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1kygizb circle-exclamation-icon.svelte-1kygizb.svelte-1kygizb{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox.svelte-1kygizb.svelte-1kygizb{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1kygizb.svelte-1kygizb{position:relative}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__input.svelte-1kygizb.svelte-1kygizb{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__label.svelte-1kygizb.svelte-1kygizb{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1kygizb.svelte-1kygizb{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__error-message.svelte-1kygizb.svelte-1kygizb{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1kygizb.svelte-1kygizb{width:16px;height:auto}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip.svelte-1kygizb.svelte-1kygizb{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1kygizb.svelte-1kygizb{opacity:1}');}function ht(e,t,r){const n=e.slice();return n[64]=t[r],n}function dt(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function mt(e,t,r){const n=e.slice();return n[64]=t[r],n}function mi(e){let t,r,n=a.ensure_array_like(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=gt(ht(e,n,o));return {c(){t=a.element("div"),r=a.element("form");for(let o=0;o<i.length;o+=1)i[o].c();a.attr(r,"class","checkbox svelte-1kygizb"),a.attr(t,"class","legacyStyle");},m(o,s){a.insert(o,t,s),a.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(o,s){if(s[0]&590336){n=a.ensure_array_like(o[9]);let l;for(l=0;l<n.length;l+=1){const d=ht(o,n,l);i[l]?i[l].p(d,s):(i[l]=gt(d),i[l].c(),i[l].m(r,null));}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length;}},d(o){o&&a.detach(t),a.destroy_each(i,o),e[31](null);}}}function gi(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&pt(e),g=a.ensure_array_like(e[8]),y=[];for(let p=0;p<g.length;p+=1)y[p]=kt(dt(e,g,p));let _=e[6]&&Et(e);return {c(){m&&m.c(),r=a.space();for(let p=0;p<y.length;p+=1)y[p].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-1kygizb"),i.disabled=s=!e[14];},m(p,S){m&&m.m(p,S),a.insert(p,r,S);for(let b=0;b<y.length;b+=1)y[b]&&y[b].m(p,S);a.insert(p,n,S),a.insert(p,i,S),i.innerHTML=o,a.insert(p,l,S),_&&_.m(p,S),a.insert(p,d,S),h||(c=a.listen(i,"click",e[17]),h=!0);},p(p,S){if(S[0]&65536&&(t=p[16]("title")||p[16]("description")),t?m?m.p(p,S):(m=pt(p),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),S[0]&867088){g=a.ensure_array_like(p[8]);let b;for(b=0;b<g.length;b+=1){const v=dt(p,g,b);y[b]?y[b].p(v,S):(y[b]=kt(v),y[b].c(),y[b].m(n.parentNode,n));}for(;b<y.length;b+=1)y[b].d(1);y.length=g.length;}S[0]&65536&&o!==(o=(p[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),S[0]&16384&&s!==(s=!p[14])&&(i.disabled=s),p[6]?_?_.p(p,S):(_=Et(p),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(p){p&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(p),a.destroy_each(y,p),_&&_.d(p),h=!1,c();}}}function pi(e){let t,r,n;return {c(){t=a.element("div"),r=a.element("strong"),n=a.text(e[7]),a.attr(r,"class","ErrorMessage svelte-1kygizb"),a.attr(t,"class","ContainerCenter svelte-1kygizb");},m(i,o){a.insert(i,t,o),a.append(t,r),a.append(r,n);},p(i,o){o[0]&128&&a.set_data(n,i[7]);},d(i){i&&a.detach(t);}}}function fi(e){let t;return {c(){t=a.element("general-animation-loading"),a.set_custom_element_data(t,"clientstyling",e[1]),a.set_custom_element_data(t,"clientstylingurl",e[2]),a.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){a.insert(r,t,n);},p(r,n){n[0]&2&&a.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&a.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&a.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&a.detach(t);}}}function gt(e){let t,r,n,i,o,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,g,y,_,p,S,b,v,C;function N(...E){return e[30](e[64],...E)}return {c(){t=a.element("div"),r=a.element("input"),o=a.space(),s=a.element("label"),l=a.element("div"),d=new a.HtmlTag(!1),m=a.text(c),y=a.space(),_=a.element("small"),S=a.space(),a.attr(r,"class","checkbox__input svelte-1kygizb"),a.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",a.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,a.attr(l,"class","checkbox__label-text svelte-1kygizb"),a.attr(s,"class","checkbox__label svelte-1kygizb"),a.attr(s,"for",g=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-1kygizb"),a.attr(_,"id",p="checkBoxError__"+e[64].tagCode),a.attr(t,"class",b="checkbox__wrapper "+e[64].tagCode+"__input svelte-1kygizb");},m(E,H){a.insert(E,t,H),a.append(t,r),a.append(t,o),a.append(t,s),a.append(s,l),d.m(h,l),a.append(l,m),a.append(t,y),a.append(t,_),a.append(t,S),v||(C=a.listen(r,"input",N),v=!0);},p(E,H){e=E,H[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),H[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&a.attr(r,"id",i),H[0]&66048&&h!==(h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&d.p(h),H[0]&512&&c!==(c=e[64].mustAccept?" *":"")&&a.set_data(m,c),H[0]&512&&g!==(g=`${e[64].tagCode}__input`)&&a.attr(s,"for",g),H[0]&512&&p!==(p="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",p),H[0]&512&&b!==(b="checkbox__wrapper "+e[64].tagCode+"__input svelte-1kygizb")&&a.attr(t,"class",b);},d(E){E&&a.detach(t),v=!1,C();}}}function pt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&ft(e),s=i&&_t(e);return {c(){t=a.element("div"),o&&o.c(),n=a.space(),s&&s.c(),a.attr(t,"class","PlayerConsentsHeader svelte-1kygizb");},m(l,d){a.insert(l,t,d),o&&o.m(t,null),a.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?o?o.p(l,d):(o=ft(l),o.c(),o.m(t,n)):o&&(o.d(1),o=null),d[0]&65536&&(i=l[16]("description")),i?s?s.p(l,d):(s=_t(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null);},d(l){l&&a.detach(t),o&&o.d(),s&&s.d();}}}function ft(e){let t,r=e[16]("title")+"",n;return {c(){t=a.element("h2"),n=a.text(r),a.attr(t,"class","PlayerConsentsTitle");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function _t(e){let t,r=e[16]("description")+"",n;return {c(){t=a.element("p"),n=a.text(r),a.attr(t,"class","PlayerConsentsDescription");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function bt(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-1kygizb");},m(r,n){a.insert(r,t,n);},d(r){r&&a.detach(t);}}}function yt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=a.element("p"),a.attr(t,"class","ConsentDescription svelte-1kygizb");},m(n,i){a.insert(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&a.detach(t);}}}function vt(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,g,y,_,p,S,b=e[64].mustAccept===!0&&bt(),v=e[4]==="true"&&yt(e);function C(...N){return e[29](e[64],...N)}return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h4"),i=new a.HtmlTag(!1),s=a.space(),b&&b.c(),l=a.space(),v&&v.c(),d=a.space(),h=a.element("label"),c=a.element("input"),y=a.space(),_=a.element("span"),i.a=s,a.attr(n,"class","ConsentName svelte-1kygizb"),a.attr(r,"class","ConsentContent"),a.attr(c,"type","checkbox"),c.disabled=m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,c.checked=g=e[13][e[64].tagCode],a.attr(c,"class","svelte-1kygizb"),a.attr(_,"class","Slider Round svelte-1kygizb"),a.attr(h,"class","ToggleSwitch svelte-1kygizb"),a.attr(t,"class","ConsentItem svelte-1kygizb");},m(N,E){a.insert(N,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),b&&b.m(n,null),a.append(r,l),v&&v.m(r,null),a.append(t,d),a.append(t,h),a.append(h,c),a.append(h,y),a.append(h,_),p||(S=a.listen(c,"input",C),p=!0);},p(N,E){e=N,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?b||(b=bt(),b.c(),b.m(n,null)):b&&(b.d(1),b=null),e[4]==="true"?v?v.p(e,E):(v=yt(e),v.c(),v.m(r,null)):v&&(v.d(1),v=null),E[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),E[0]&8960&&g!==(g=e[13][e[64].tagCode])&&(c.checked=g);},d(N){N&&a.detach(t),b&&b.d(),v&&v.d(),p=!1,S();}}}function kt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,g,y;function _(){e[26].call(l,e[61]);}function p(){return e[27](e[61])}function S(...C){return e[28](e[61],...C)}let b=a.ensure_array_like(e[9].filter(S)),v=[];for(let C=0;C<b.length;C+=1)v[C]=vt(mt(e,b,C));return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h3"),o=a.space(),s=a.element("label"),l=a.element("input"),d=a.space(),h=a.element("span"),c=a.space(),m=a.element("div");for(let C=0;C<v.length;C+=1)v[C].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-1kygizb"),a.attr(h,"class","Slider Round svelte-1kygizb"),a.attr(s,"class","ToggleSwitch Big svelte-1kygizb"),a.attr(r,"class","AccordionHeader svelte-1kygizb"),a.attr(m,"class","AccordionContent svelte-1kygizb"),a.attr(t,"class","AccordionItem svelte-1kygizb");},m(C,N){a.insert(C,t,N),a.append(t,r),a.append(r,n),n.innerHTML=i,a.append(r,o),a.append(r,s),a.append(s,l),l.checked=e[11][e[61].categoryTagCode],a.append(s,d),a.append(s,h),a.append(t,c),a.append(t,m);for(let E=0;E<v.length;E+=1)v[E]&&v[E].m(m,null);g||(y=[a.listen(l,"change",_),a.listen(l,"change",p)],g=!0);},p(C,N){if(e=C,N[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),N[0]&2304&&(l.checked=e[11][e[61].categoryTagCode]),N[0]&602896){b=a.ensure_array_like(e[9].filter(S));let E;for(E=0;E<b.length;E+=1){const H=mt(e,b,E);v[E]?v[E].p(H,N):(v[E]=vt(H),v[E].c(),v[E].m(m,null));}for(;E<v.length;E+=1)v[E].d(1);v.length=b.length;}},d(C){C&&a.detach(t),a.destroy_each(v,C),g=!1,a.run_all(y);}}}function Et(e){let t,r,n,i,o;return {c(){t=a.element("div"),r=a.element("circle-exclamation-icon"),n=a.space(),i=a.element("strong"),o=a.text(e[6]),a.set_custom_element_data(r,"class","svelte-1kygizb"),a.attr(i,"class","ErrorMessage svelte-1kygizb"),a.attr(t,"class","ConsentErrorContainer svelte-1kygizb");},m(s,l){a.insert(s,t,l),a.append(t,r),a.append(t,n),a.append(t,i),a.append(i,o);},p(s,l){l[0]&64&&a.set_data(o,s[6]);},d(s){s&&a.detach(t);}}}function _i(e){let t,r;function n(s,l){if(s[10])return fi;if(s[7])return pi;if(s[0])return gi;if(!s[0])return mi}let i=n(e),o=i&&i(e);return {c(){t=a.element("div"),r=a.element("div"),o&&o.c(),a.attr(r,"class","ConsentsContainer svelte-1kygizb"),a.attr(t,"class",a.null_to_empty("")+" svelte-1kygizb");},m(s,l){a.insert(s,t,l),a.append(t,r),o&&o.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&o?o.p(s,l):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(r,null)));},i:a.noop,o:a.noop,d(s){s&&a.detach(t),o&&o.d(),e[32](null);}}}function bi(e,t,r){let n;a.component_subscribe(e,li,u=>r(16,n=u));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:g=""}=t,{modalconsents:y="false"}=t,_,p,S=!1,b=!1,v="",C="",N="",E="",H=[],D=[],P=[],$=!0,le=!0,j={},ce={},G={},I={},ee,ue,O={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},he=!1;Object.keys(ut).forEach(u=>{ct(u,ut[u]);});const Zt=()=>{ci(c);},Jt=()=>{let u=new URL(g);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(z=>{ct(z,f[z]);});}).catch(f=>{console.log(f);});},Qt=()=>{i&&(v=i,b=!0),o&&(C=o);},de=(u,f=!1)=>{f?r(7,E=u):(rr(),r(6,N=u));},te=(u,f,z,k=!1)=>ne(this,null,function*(){try{const x=yield fetch(u,z);if(!x.ok)throw new Error(n(f));const B=yield x.json();return b?B:B.filter(R=>R.showOnRegister===!0)}catch(x){throw de(x instanceof TypeError?n(f):x.message,k),x}}),Yt=()=>ne(this,null,function*(){try{let u=[],f=[];if(b?[u,f]=yield Ve():u=yield Ve(),r(10,$=!1),D=[...u],r(8,H=$t(D).sort((z,k)=>z.categoryTagCode.localeCompare(k.categoryTagCode))),r(11,j=er(H)),ce=U({},j),r(9,P=[...f]),D.forEach(z=>{let k=P.find(x=>x.tagCode===z.tagCode);k||(k=Je(U({},z),{status:O.denied.value}),P.push(k)),k.description=z.description,k.orderNumber=z.orderNumber;}),y==="true"){if(r(9,P=P.filter(z=>z.status===O.expired.value)),P.length!==0)return;de(n("wrongModalConfig"),!0);}tr();}catch(u){throw r(10,$=!1),de(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),Ve=()=>ne(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!b)return yield te(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${C}`);return yield Promise.all([te(u.href,"fetchConsentsError",{method:"GET"},!0),te(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":v,"Content-Type":"application/json"}})])}),Kt=()=>{he=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},z={method:"GET",headers:f};fetch(u.href,z).then(k=>k.ok?k.json():(he=!0,k.json().then(x=>(console.error(x),me(x))))).then(k=>{if(!he){if(D=k,localStorage.getItem("playerConsents")){try{r(9,P=JSON.parse(localStorage.getItem("playerConsents")));}catch(x){return console.error(x),me(x)}return}return r(9,P=D.map(x=>({id:x.id,status:O.denied.key,friendlyName:x.friendlyName,tagCode:x.tagCode,selected:null,mustAccept:x.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(P)),P}}).catch(k=>(console.error(k),me(k))).finally(()=>{r(10,$=!1);});},$t=u=>{const f=new Map;return u.forEach(z=>{f.has(z.category.categoryTagCode)||f.set(z.category.categoryTagCode,z.category);}),Array.from(f.values())},er=u=>{const f=localStorage.getItem("categoryToggle"+C);if(f===null){const z=u.reduce((k,x)=>(k[x.categoryTagCode]=!1,k),{});return localStorage.setItem("categoryToggle"+C,JSON.stringify(z)),z}else return JSON.parse(f)},tr=()=>{P.forEach(u=>{r(12,G[u.tagCode]=u.status===O.accepted.value,G);}),r(13,I=U({},G));},rr=()=>{r(13,I=U({},G)),r(11,j=U({},ce));},nr=()=>ne(this,null,function*(){if(!le)return;le=!1;const u=[],f=[];if(Object.keys(I).forEach(k=>{const x=P.find(B=>B.tagCode===k);I[k]!==G[k]&&(x?u.push({tagCode:k,status:I[k]?O.accepted.value:O.denied.value}):f.push({tagCode:k,status:I[k]?O.accepted.value:O.denied.value}));}),!b){localStorage.setItem("categoryToggle"+C,JSON.stringify(j)),ce=U({},j),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),le=!0;return}const z=new URL(`${s}/api/v1/gm/user-consents/${C}`);try{const k=yield Promise.allSettled([f.length>0&&te(z.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(z.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);k.forEach((x,B)=>{if(x.status==="rejected"||x.value.ok===!1){const R=B<f.length?f[B]:u[B-f.length];r(13,I[R.tagCode]=G[R.tagCode],I);}}),k.every(x=>x.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+C,JSON.stringify(j)),ce=U({},j),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,G=U({},I)));}catch(k){de(k instanceof TypeError?n("saveChangesError"):k.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{le=!0,r(14,ee=!1);}}),ir=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),z={"Content-Type":"application/json",Accept:"application/json"},k={playerConsents:P,registrationId:u},x={method:"POST",body:JSON.stringify(k),headers:z};fetch(f.href,x).then(B=>{B.ok||(he=!0);}).catch(B=>(console.error(B),me(B))).finally(()=>{r(10,$=!1);});},Xe=u=>{P.filter(f=>f.category.categoryTagCode===u).forEach(f=>{f.status=f.status===O.denied.value?O.accepted.value:O.denied.value,r(13,I[f.tagCode]=j[u]||!1,I);}),r(14,ee=qe());},Se=(u,f,z)=>{const k=P.find(R=>R.id===z),x=f?"value":"key";let B;if(!f&&k.mustAccept){const R=Array.from(ue.children);for(const re of R)if(B=Array.from(re.children).find(pr=>pr.getAttribute("id")===`checkBoxError__${k.tagCode}`),B)break}if(k.status===O.accepted[x]?(k.status=O.denied[x],B&&(B.innerHTML=n("requiredError"))):(k.status=O.accepted[x],B&&(B.innerHTML="")),f){r(13,I[k.tagCode]=!I[k.tagCode],I);const R=P.filter(re=>re.category.categoryTagCode===f.categoryTagCode).every(re=>re.status!==O.denied.value);r(11,j[f.categoryTagCode]=R,j);}ar();},ar=((u,f)=>{let z;return function(...k){const x=this;clearTimeout(z),z=setTimeout(()=>{u.apply(x,k);},f);}})(()=>or(),500),or=()=>{r(14,ee=qe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(P)));},qe=()=>P.filter(f=>P.some(z=>f.tagCode===z.tagCode&&z.mustAccept&&(f.status===O.denied.key||f.status===O.denied.value))).length===0,me=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},sr=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||ir(u.data.registerid);};a.onMount(()=>{setTimeout(()=>{r(25,S=!0);},50);const u=f=>sr(f);return window.addEventListener("message",u),()=>{window.emMessageBus&&p&&p.unsubscribe(),window.removeEventListener("message",u);}});function lr(u){j[u.categoryTagCode]=this.checked,r(11,j);}const cr=u=>Xe(u.categoryTagCode),ur=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,hr=(u,f)=>Se(f,u.category,u.id),dr=(u,f)=>Se(f,null,u.id);function mr(u){a.binding_callbacks[u?"unshift":"push"](()=>{ue=u,r(15,ue);});}function gr(u){a.binding_callbacks[u?"unshift":"push"](()=>{_=u,r(5,_);});}return e.$$set=u=>{"session"in u&&r(0,i=u.session),"userid"in u&&r(20,o=u.userid),"endpoint"in u&&r(21,s=u.endpoint),"clientstyling"in u&&r(1,l=u.clientstyling),"clientstylingurl"in u&&r(2,d=u.clientstylingurl),"mbsource"in u&&r(3,h=u.mbsource),"lang"in u&&r(22,c=u.lang),"displayconsentdescription"in u&&r(4,m=u.displayconsentdescription),"translationurl"in u&&r(23,g=u.translationurl),"modalconsents"in u&&r(24,y=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&S&&i&&(Qt(),Yt()),e.$$.dirty[0]&1&&(i||Kt()),e.$$.dirty[0]&34&&l&&_&&a.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&a.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&a.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Zt(),e.$$.dirty[0]&8388608&&g&&Jt();},[i,l,d,h,m,_,N,E,H,P,$,j,G,I,ee,ue,n,nr,Xe,Se,o,s,c,g,y,S,lr,cr,ur,hr,dr,mr,gr]}class Wt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,bi,_i,a.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},di,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),a.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),a.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),a.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),a.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),a.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),a.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),a.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),a.flush();}}a.create_custom_element(Wt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=Wt;
11463
- }(PlayerConsentsDl0Aiebh));
11462
+ `,W.MISSING_INTL_API,s);var N=r.getPluralRules(t,{type:c.pluralType}).select(g-(c.offset||0));S=c.options[N]||c.options.other;}if(!S)throw new tt(c.value,g,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i,g-(c.offset||0)));continue}}return En(l)}function Sn(e,t){return t?w(w(w({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=w(w({},e[n]),t[n]||{}),r},{})):e}function xn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Sn(e[n],t[n]),r},w({},e)):e}function Me(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function zn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Se([void 0],r,!1)))},{cache:Me(e.number),strategy:ze.variadic}),getDateTimeFormat:xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Se([void 0],r,!1)))},{cache:Me(e.dateTime),strategy:ze.variadic}),getPluralRules:xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Se([void 0],r,!1)))},{cache:Me(e.pluralRules),strategy:ze.variadic})}}var Tn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=o.formatToParts(d);if(h.length===1)return h[0].value;var c=h.reduce(function(m,g){return !m.length||g.type!==L.literal||typeof m[m.length-1]!="string"?m.push(g.value):m[m.length-1]+=g.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return ge(o.ast,o.locales,o.formatters,o.formats,d,void 0,o.message)},this.resolvedOptions=function(){var d;return {locale:((d=o.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};var l=Or(s,["formatters"]);this.ast=e.__parse(t,w(w({},l),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=xn(e.formats,n),this.formatters=i&&i.formatters||zn(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=yn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Mn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const G={},wn=(e,t,r)=>r&&(t in G||(G[t]={}),e in G[t]||(G[t][e]=r),r),Lt=(e,t)=>{if(t==null)return;if(t in G&&e in G[t])return G[t][e];const r=ke(t);for(let n=0;n<r.length;n++){const i=r[n],o=An(i,e);if(o)return wn(e,t,o)}};let Re;const oe=be({});function Nn(e){return Re[e]||null}function jt(e){return e in Re}function An(e,t){if(!jt(e))return null;const r=Nn(e);return Mn(r,t)}function Hn(e){if(e==null)return;const t=ke(e);for(let r=0;r<t.length;r++){const n=t[r];if(jt(n))return n}}function Rt(e,...t){delete G[e],oe.update(r=>(r[e]=Br.all([r[e]||{},...t]),r));}J([oe],([e])=>Object.keys(e));oe.subscribe(e=>Re=e);const pe={};function Pn(e,t){pe[e].delete(t),pe[e].size===0&&delete pe[e];}function Ut(e){return pe[e]}function Bn(e){return ke(e).map(t=>{const r=Ut(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Le(e){return e==null?!1:ke(e).some(t=>{var r;return (r=Ut(t))==null?void 0:r.size})}function On(e,t){return Promise.all(t.map(n=>(Pn(e,n),n().then(i=>i.default||i)))).then(n=>Rt(e,...n))}const ne={};function Dt(e){if(!Le(e))return e in ne?ne[e]:Promise.resolve();const t=Bn(e);return ne[e]=Promise.all(t.map(([r,n])=>On(r,n))).then(()=>{if(Le(e))return Dt(e);delete ne[e];}),ne[e]}const In={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Ln={fallbackLocale:null,loadingDelay:200,formats:In,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},jn=Ln;function Z(){return jn}const we=be(!1);var Rn=Object.defineProperty,Un=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,nt=(e,t,r)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vn=(e,t)=>{for(var r in t||(t={}))Gn.call(t,r)&&nt(e,r,t[r]);if(rt)for(var r of rt(t))Fn.call(t,r)&&nt(e,r,t[r]);return e},Xn=(e,t)=>Un(e,Dn(t));let je;const fe=be(null);function it(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ke(e,t=Z().fallbackLocale){const r=it(e);return t?[...new Set([...r,...it(t)])]:r}function F(){return je!=null?je:void 0}fe.subscribe(e=>{je=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const qn=e=>{if(e&&Hn(e)&&Le(e)){const{loadingDelay:t}=Z();let r;return typeof window!="undefined"&&F()!=null&&t?r=window.setTimeout(()=>we.set(!0),t):we.set(!0),Dt(e).then(()=>{fe.set(e);}).finally(()=>{clearTimeout(r),we.set(!1);})}return fe.set(e)},Q=Xn(Vn({},fe),{set:qn}),Ee=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Wn=Object.defineProperty,_e=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,at=(e,t,r)=>t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ue=(e,t)=>{for(var r in t||(t={}))Gt.call(t,r)&&at(e,r,t[r]);if(_e)for(var r of _e(t))Ft.call(t,r)&&at(e,r,t[r]);return e},Y=(e,t)=>{var r={};for(var n in e)Gt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_e)for(var n of _e(e))t.indexOf(n)<0&&Ft.call(e,n)&&(r[n]=e[n]);return r};const ae=(e,t)=>{const{formats:r}=Z();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zn=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ae("number",n)),new Intl.NumberFormat(r,i)}),Jn=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ae("date",n):Object.keys(i).length===0&&(i=ae("date","short")),new Intl.DateTimeFormat(r,i)}),Qn=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ae("time",n):Object.keys(i).length===0&&(i=ae("time","short")),new Intl.DateTimeFormat(r,i)}),Yn=(e={})=>{var t=e,{locale:r=F()}=t,n=Y(t,["locale"]);return Zn(Ue({locale:r},n))},Kn=(e={})=>{var t=e,{locale:r=F()}=t,n=Y(t,["locale"]);return Jn(Ue({locale:r},n))},$n=(e={})=>{var t=e,{locale:r=F()}=t,n=Y(t,["locale"]);return Qn(Ue({locale:r},n))},ei=Ee((e,t=F())=>new Tn(e,t,Z().formats,{ignoreTag:Z().ignoreTag})),ti=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=F(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Lt(e,d);if(!c)c=(o=(i=(n=(r=Z()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let m=c;try{m=ei(c,d).format(l);}catch(g){g instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,g.message);}return m},ri=(e,t)=>$n(t).format(e),ni=(e,t)=>Kn(t).format(e),ii=(e,t)=>Yn(t).format(e),ai=(e,t=F())=>Lt(e,t),oi=J([Q,oe],()=>ti);J([Q],()=>ri);J([Q],()=>ni);J([Q],()=>ii);J([Q,oe],()=>ai);function ot(e,t){Rt(e,t);}function si(e){Q.set(e);}const st={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingSk__cGd0).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function li(e){let t,r;return {c(){t=a.svg_element("svg"),r=a.svg_element("path"),a.attr(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),a.attr(t,"xmlns","http://www.w3.org/2000/svg"),a.attr(t,"viewBox","0 0 512 512");},m(n,i){a.insert(n,t,i),a.append(t,r);},p:a.noop,i:a.noop,o:a.noop,d(n){n&&a.detach(t);}}}class ci extends a.SvelteComponent{constructor(t){super(),a.init(this,t,null,li,a.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",a.create_custom_element(ci,{},[],[],!0));function ui(e){a.append_styles(e,"svelte-1kygizb",'.DisplayNone.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:none}.ContainerCenter.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:30px}.AccordionHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:10px}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:block;padding:10px 0}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{padding-bottom:0}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{margin-bottom:0}.ConsentItem.svelte-1kygizb .ConsentName.svelte-1kygizb.svelte-1kygizb{margin:0}.ConsentItem.svelte-1kygizb .ConsentDescription.svelte-1kygizb.svelte-1kygizb{font-size:0.8rem}.ToggleSwitch.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:53px;height:30px}.ToggleSwitch.Big.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb.svelte-1kygizb{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:disabled+.Slider.svelte-1kygizb{opacity:0.1}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:focus+.Slider.svelte-1kygizb{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb{border-radius:34px}.ToggleSwitch.svelte-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb:before{border-radius:50%}.SaveConsentsButton.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1kygizb circle-exclamation-icon.svelte-1kygizb.svelte-1kygizb{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox.svelte-1kygizb.svelte-1kygizb{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1kygizb.svelte-1kygizb{position:relative}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__input.svelte-1kygizb.svelte-1kygizb{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__label.svelte-1kygizb.svelte-1kygizb{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1kygizb.svelte-1kygizb{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__error-message.svelte-1kygizb.svelte-1kygizb{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1kygizb.svelte-1kygizb{width:16px;height:auto}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip.svelte-1kygizb.svelte-1kygizb{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1kygizb.svelte-1kygizb{opacity:1}');}function lt(e,t,r){const n=e.slice();return n[64]=t[r],n}function ct(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function ut(e,t,r){const n=e.slice();return n[64]=t[r],n}function hi(e){let t,r,n=a.ensure_array_like(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=ht(lt(e,n,o));return {c(){t=a.element("div"),r=a.element("form");for(let o=0;o<i.length;o+=1)i[o].c();a.attr(r,"class","checkbox svelte-1kygizb"),a.attr(t,"class","legacyStyle");},m(o,s){a.insert(o,t,s),a.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(o,s){if(s[0]&590336){n=a.ensure_array_like(o[9]);let l;for(l=0;l<n.length;l+=1){const d=lt(o,n,l);i[l]?i[l].p(d,s):(i[l]=ht(d),i[l].c(),i[l].m(r,null));}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length;}},d(o){o&&a.detach(t),a.destroy_each(i,o),e[31](null);}}}function di(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&dt(e),g=a.ensure_array_like(e[8]),v=[];for(let p=0;p<g.length;p+=1)v[p]=bt(ct(e,g,p));let _=e[6]&&yt(e);return {c(){m&&m.c(),r=a.space();for(let p=0;p<v.length;p+=1)v[p].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-1kygizb"),i.disabled=s=!e[14];},m(p,C){m&&m.m(p,C),a.insert(p,r,C);for(let b=0;b<v.length;b+=1)v[b]&&v[b].m(p,C);a.insert(p,n,C),a.insert(p,i,C),i.innerHTML=o,a.insert(p,l,C),_&&_.m(p,C),a.insert(p,d,C),h||(c=a.listen(i,"click",e[17]),h=!0);},p(p,C){if(C[0]&65536&&(t=p[16]("title")||p[16]("description")),t?m?m.p(p,C):(m=dt(p),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),C[0]&867088){g=a.ensure_array_like(p[8]);let b;for(b=0;b<g.length;b+=1){const y=ct(p,g,b);v[b]?v[b].p(y,C):(v[b]=bt(y),v[b].c(),v[b].m(n.parentNode,n));}for(;b<v.length;b+=1)v[b].d(1);v.length=g.length;}C[0]&65536&&o!==(o=(p[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),C[0]&16384&&s!==(s=!p[14])&&(i.disabled=s),p[6]?_?_.p(p,C):(_=yt(p),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(p){p&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(p),a.destroy_each(v,p),_&&_.d(p),h=!1,c();}}}function mi(e){let t,r,n;return {c(){t=a.element("div"),r=a.element("strong"),n=a.text(e[7]),a.attr(r,"class","ErrorMessage svelte-1kygizb"),a.attr(t,"class","ContainerCenter svelte-1kygizb");},m(i,o){a.insert(i,t,o),a.append(t,r),a.append(r,n);},p(i,o){o[0]&128&&a.set_data(n,i[7]);},d(i){i&&a.detach(t);}}}function gi(e){let t;return {c(){t=a.element("general-animation-loading"),a.set_custom_element_data(t,"clientstyling",e[1]),a.set_custom_element_data(t,"clientstylingurl",e[2]),a.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){a.insert(r,t,n);},p(r,n){n[0]&2&&a.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&a.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&a.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&a.detach(t);}}}function ht(e){let t,r,n,i,o,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,g,v,_,p,C,b,y,S;function N(...E){return e[30](e[64],...E)}return {c(){t=a.element("div"),r=a.element("input"),o=a.space(),s=a.element("label"),l=a.element("div"),d=new a.HtmlTag(!1),m=a.text(c),v=a.space(),_=a.element("small"),C=a.space(),a.attr(r,"class","checkbox__input svelte-1kygizb"),a.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",a.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,a.attr(l,"class","checkbox__label-text svelte-1kygizb"),a.attr(s,"class","checkbox__label svelte-1kygizb"),a.attr(s,"for",g=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-1kygizb"),a.attr(_,"id",p="checkBoxError__"+e[64].tagCode),a.attr(t,"class",b="checkbox__wrapper "+e[64].tagCode+"__input svelte-1kygizb");},m(E,H){a.insert(E,t,H),a.append(t,r),a.append(t,o),a.append(t,s),a.append(s,l),d.m(h,l),a.append(l,m),a.append(t,v),a.append(t,_),a.append(t,C),y||(S=a.listen(r,"input",N),y=!0);},p(E,H){e=E,H[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),H[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&a.attr(r,"id",i),H[0]&66048&&h!==(h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&d.p(h),H[0]&512&&c!==(c=e[64].mustAccept?" *":"")&&a.set_data(m,c),H[0]&512&&g!==(g=`${e[64].tagCode}__input`)&&a.attr(s,"for",g),H[0]&512&&p!==(p="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",p),H[0]&512&&b!==(b="checkbox__wrapper "+e[64].tagCode+"__input svelte-1kygizb")&&a.attr(t,"class",b);},d(E){E&&a.detach(t),y=!1,S();}}}function dt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&mt(e),s=i&&gt(e);return {c(){t=a.element("div"),o&&o.c(),n=a.space(),s&&s.c(),a.attr(t,"class","PlayerConsentsHeader svelte-1kygizb");},m(l,d){a.insert(l,t,d),o&&o.m(t,null),a.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?o?o.p(l,d):(o=mt(l),o.c(),o.m(t,n)):o&&(o.d(1),o=null),d[0]&65536&&(i=l[16]("description")),i?s?s.p(l,d):(s=gt(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null);},d(l){l&&a.detach(t),o&&o.d(),s&&s.d();}}}function mt(e){let t,r=e[16]("title")+"",n;return {c(){t=a.element("h2"),n=a.text(r),a.attr(t,"class","PlayerConsentsTitle");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function gt(e){let t,r=e[16]("description")+"",n;return {c(){t=a.element("p"),n=a.text(r),a.attr(t,"class","PlayerConsentsDescription");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function pt(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-1kygizb");},m(r,n){a.insert(r,t,n);},d(r){r&&a.detach(t);}}}function ft(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=a.element("p"),a.attr(t,"class","ConsentDescription svelte-1kygizb");},m(n,i){a.insert(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&a.detach(t);}}}function _t(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,g,v,_,p,C,b=e[64].mustAccept===!0&&pt(),y=e[4]==="true"&&ft(e);function S(...N){return e[29](e[64],...N)}return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h4"),i=new a.HtmlTag(!1),s=a.space(),b&&b.c(),l=a.space(),y&&y.c(),d=a.space(),h=a.element("label"),c=a.element("input"),v=a.space(),_=a.element("span"),i.a=s,a.attr(n,"class","ConsentName svelte-1kygizb"),a.attr(r,"class","ConsentContent"),a.attr(c,"type","checkbox"),c.disabled=m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,c.checked=g=e[13][e[64].tagCode],a.attr(c,"class","svelte-1kygizb"),a.attr(_,"class","Slider Round svelte-1kygizb"),a.attr(h,"class","ToggleSwitch svelte-1kygizb"),a.attr(t,"class","ConsentItem svelte-1kygizb");},m(N,E){a.insert(N,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),b&&b.m(n,null),a.append(r,l),y&&y.m(r,null),a.append(t,d),a.append(t,h),a.append(h,c),a.append(h,v),a.append(h,_),p||(C=a.listen(c,"input",S),p=!0);},p(N,E){e=N,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?b||(b=pt(),b.c(),b.m(n,null)):b&&(b.d(1),b=null),e[4]==="true"?y?y.p(e,E):(y=ft(e),y.c(),y.m(r,null)):y&&(y.d(1),y=null),E[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),E[0]&8960&&g!==(g=e[13][e[64].tagCode])&&(c.checked=g);},d(N){N&&a.detach(t),b&&b.d(),y&&y.d(),p=!1,C();}}}function bt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,g,v;function _(){e[26].call(l,e[61]);}function p(){return e[27](e[61])}function C(...S){return e[28](e[61],...S)}let b=a.ensure_array_like(e[9].filter(C)),y=[];for(let S=0;S<b.length;S+=1)y[S]=_t(ut(e,b,S));return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h3"),o=a.space(),s=a.element("label"),l=a.element("input"),d=a.space(),h=a.element("span"),c=a.space(),m=a.element("div");for(let S=0;S<y.length;S+=1)y[S].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-1kygizb"),a.attr(h,"class","Slider Round svelte-1kygizb"),a.attr(s,"class","ToggleSwitch Big svelte-1kygizb"),a.attr(r,"class","AccordionHeader svelte-1kygizb"),a.attr(m,"class","AccordionContent svelte-1kygizb"),a.attr(t,"class","AccordionItem svelte-1kygizb");},m(S,N){a.insert(S,t,N),a.append(t,r),a.append(r,n),n.innerHTML=i,a.append(r,o),a.append(r,s),a.append(s,l),l.checked=e[11][e[61].categoryTagCode],a.append(s,d),a.append(s,h),a.append(t,c),a.append(t,m);for(let E=0;E<y.length;E+=1)y[E]&&y[E].m(m,null);g||(v=[a.listen(l,"change",_),a.listen(l,"change",p)],g=!0);},p(S,N){if(e=S,N[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),N[0]&2304&&(l.checked=e[11][e[61].categoryTagCode]),N[0]&602896){b=a.ensure_array_like(e[9].filter(C));let E;for(E=0;E<b.length;E+=1){const H=ut(e,b,E);y[E]?y[E].p(H,N):(y[E]=_t(H),y[E].c(),y[E].m(m,null));}for(;E<y.length;E+=1)y[E].d(1);y.length=b.length;}},d(S){S&&a.detach(t),a.destroy_each(y,S),g=!1,a.run_all(v);}}}function yt(e){let t,r,n,i,o;return {c(){t=a.element("div"),r=a.element("circle-exclamation-icon"),n=a.space(),i=a.element("strong"),o=a.text(e[6]),a.set_custom_element_data(r,"class","svelte-1kygizb"),a.attr(i,"class","ErrorMessage svelte-1kygizb"),a.attr(t,"class","ConsentErrorContainer svelte-1kygizb");},m(s,l){a.insert(s,t,l),a.append(t,r),a.append(t,n),a.append(t,i),a.append(i,o);},p(s,l){l[0]&64&&a.set_data(o,s[6]);},d(s){s&&a.detach(t);}}}function pi(e){let t,r;function n(s,l){if(s[10])return gi;if(s[7])return mi;if(s[0])return di;if(!s[0])return hi}let i=n(e),o=i&&i(e);return {c(){t=a.element("div"),r=a.element("div"),o&&o.c(),a.attr(r,"class","ConsentsContainer svelte-1kygizb"),a.attr(t,"class",a.null_to_empty("")+" svelte-1kygizb");},m(s,l){a.insert(s,t,l),a.append(t,r),o&&o.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&o?o.p(s,l):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(r,null)));},i:a.noop,o:a.noop,d(s){s&&a.detach(t),o&&o.d(),e[32](null);}}}function fi(e,t,r){let n;a.component_subscribe(e,oi,u=>r(16,n=u));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:g=""}=t,{modalconsents:v="false"}=t,_,p=!1,C=!1,b="",y="",S="",N="",E=[],H=[],P=[],K=!0,se=!0,j={},le={},D={},I={},$,ce,O={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},ue=!1;Object.keys(st).forEach(u=>{ot(u,st[u]);});const Xt=()=>{si(c);},qt=()=>{let u=new URL(g);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(z=>{ot(z,f[z]);});}).catch(f=>{console.log(f);});},Wt=()=>{i&&(b=i,C=!0),o&&(y=o);},he=(u,f=!1)=>{f?r(7,N=u):($t(),r(6,S=u));},ee=(u,f,z,k=!1)=>re(this,null,function*(){try{const x=yield fetch(u,z);if(!x.ok)throw new Error(n(f));const B=yield x.json();return C?B:B.filter(R=>R.showOnRegister===!0)}catch(x){throw he(x instanceof TypeError?n(f):x.message,k),x}}),Zt=()=>re(this,null,function*(){try{let u=[],f=[];if(C?[u,f]=yield De():u=yield De(),r(10,K=!1),H=[...u],r(8,E=Qt(H).sort((z,k)=>z.categoryTagCode.localeCompare(k.categoryTagCode))),r(11,j=Yt(E)),le=U({},j),r(9,P=[...f]),H.forEach(z=>{let k=P.find(x=>x.tagCode===z.tagCode);k||(k=qe(U({},z),{status:O.denied.value}),P.push(k)),k.description=z.description,k.orderNumber=z.orderNumber;}),v==="true"){if(r(9,P=P.filter(z=>z.status===O.expired.value)),P.length!==0)return;he(n("wrongModalConfig"),!0);}Kt();}catch(u){throw r(10,K=!1),he(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),De=()=>re(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!C)return yield ee(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${y}`);return yield Promise.all([ee(u.href,"fetchConsentsError",{method:"GET"},!0),ee(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":b,"Content-Type":"application/json"}})])}),Jt=()=>{ue=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},z={method:"GET",headers:f};fetch(u.href,z).then(k=>k.ok?k.json():(ue=!0,k.json().then(x=>(console.error(x),de(x))))).then(k=>{if(!ue){if(H=k,localStorage.getItem("playerConsents")){try{r(9,P=JSON.parse(localStorage.getItem("playerConsents")));}catch(x){return console.error(x),de(x)}return}return r(9,P=H.map(x=>({id:x.id,status:O.denied.key,friendlyName:x.friendlyName,tagCode:x.tagCode,selected:null,mustAccept:x.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(P)),P}}).catch(k=>(console.error(k),de(k))).finally(()=>{r(10,K=!1);});},Qt=u=>{const f=new Map;return u.forEach(z=>{f.has(z.category.categoryTagCode)||f.set(z.category.categoryTagCode,z.category);}),Array.from(f.values())},Yt=u=>{const f=localStorage.getItem("categoryToggle"+y);if(f===null){const z=u.reduce((k,x)=>(k[x.categoryTagCode]=!1,k),{});return localStorage.setItem("categoryToggle"+y,JSON.stringify(z)),z}else return JSON.parse(f)},Kt=()=>{P.forEach(u=>{r(12,D[u.tagCode]=u.status===O.accepted.value,D);}),r(13,I=U({},D));},$t=()=>{r(13,I=U({},D)),r(11,j=U({},le));},er=()=>re(this,null,function*(){if(!se)return;se=!1;const u=[],f=[];if(Object.keys(I).forEach(k=>{const x=P.find(B=>B.tagCode===k);I[k]!==D[k]&&(x?u.push({tagCode:k,status:I[k]?O.accepted.value:O.denied.value}):f.push({tagCode:k,status:I[k]?O.accepted.value:O.denied.value}));}),!C){localStorage.setItem("categoryToggle"+y,JSON.stringify(j)),le=U({},j),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),se=!0;return}const z=new URL(`${s}/api/v1/gm/user-consents/${y}`);try{const k=yield Promise.allSettled([f.length>0&&ee(z.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":b,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&ee(z.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":b,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);k.forEach((x,B)=>{if(x.status==="rejected"||x.value.ok===!1){const R=B<f.length?f[B]:u[B-f.length];r(13,I[R.tagCode]=D[R.tagCode],I);}}),k.every(x=>x.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+y,JSON.stringify(j)),le=U({},j),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,D=U({},I)));}catch(k){he(k instanceof TypeError?n("saveChangesError"):k.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{se=!0,r(14,$=!1);}}),tr=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),z={"Content-Type":"application/json",Accept:"application/json"},k={playerConsents:P,registrationId:u},x={method:"POST",body:JSON.stringify(k),headers:z};fetch(f.href,x).then(B=>{B.ok||(ue=!0);}).catch(B=>(console.error(B),de(B))).finally(()=>{r(10,K=!1);});},Ge=u=>{P.filter(f=>f.category.categoryTagCode===u).forEach(f=>{f.status=f.status===O.denied.value?O.accepted.value:O.denied.value,r(13,I[f.tagCode]=j[u]||!1,I);}),r(14,$=Fe());},Ce=(u,f,z)=>{const k=P.find(R=>R.id===z),x=f?"value":"key";let B;if(!f&&k.mustAccept){const R=Array.from(ce.children);for(const te of R)if(B=Array.from(te.children).find(dr=>dr.getAttribute("id")===`checkBoxError__${k.tagCode}`),B)break}if(k.status===O.accepted[x]?(k.status=O.denied[x],B&&(B.innerHTML=n("requiredError"))):(k.status=O.accepted[x],B&&(B.innerHTML="")),f){r(13,I[k.tagCode]=!I[k.tagCode],I);const R=P.filter(te=>te.category.categoryTagCode===f.categoryTagCode).every(te=>te.status!==O.denied.value);r(11,j[f.categoryTagCode]=R,j);}rr();},rr=((u,f)=>{let z;return function(...k){const x=this;clearTimeout(z),z=setTimeout(()=>{u.apply(x,k);},f);}})(()=>nr(),500),nr=()=>{r(14,$=Fe()),i||(window.postMessage({type:"isConsentsValid",isValid:$}),localStorage.setItem("playerConsents",JSON.stringify(P)));},Fe=()=>P.filter(f=>P.some(z=>f.tagCode===z.tagCode&&z.mustAccept&&(f.status===O.denied.key||f.status===O.denied.value))).length===0,de=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},ir=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||tr(u.data.registerid);};a.onMount(()=>{setTimeout(()=>{r(25,p=!0);},50);const u=f=>ir(f);return window.addEventListener("message",u),()=>{window.removeEventListener("message",u);}});function ar(u){j[u.categoryTagCode]=this.checked,r(11,j);}const or=u=>Ge(u.categoryTagCode),sr=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,lr=(u,f)=>Ce(f,u.category,u.id),cr=(u,f)=>Ce(f,null,u.id);function ur(u){a.binding_callbacks[u?"unshift":"push"](()=>{ce=u,r(15,ce);});}function hr(u){a.binding_callbacks[u?"unshift":"push"](()=>{_=u,r(5,_);});}return e.$$set=u=>{"session"in u&&r(0,i=u.session),"userid"in u&&r(20,o=u.userid),"endpoint"in u&&r(21,s=u.endpoint),"clientstyling"in u&&r(1,l=u.clientstyling),"clientstylingurl"in u&&r(2,d=u.clientstylingurl),"mbsource"in u&&r(3,h=u.mbsource),"lang"in u&&r(22,c=u.lang),"displayconsentdescription"in u&&r(4,m=u.displayconsentdescription),"translationurl"in u&&r(23,g=u.translationurl),"modalconsents"in u&&r(24,v=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&p&&i&&(Wt(),Zt()),e.$$.dirty[0]&1&&(i||Jt()),e.$$.dirty[0]&34&&l&&_&&a.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&a.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&a.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Xt(),e.$$.dirty[0]&8388608&&g&&qt();},[i,l,d,h,m,_,S,N,E,P,K,j,D,I,$,ce,n,er,Ge,Ce,o,s,c,g,v,p,ar,or,sr,lr,cr,ur,hr]}class Vt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,fi,pi,a.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},ui,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),a.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),a.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),a.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),a.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),a.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),a.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),a.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),a.flush();}}a.create_custom_element(Vt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=Vt;
11463
+ }(PlayerConsentsCHapKEQ3));
11464
11464
 
11465
- if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>PlayerConsentsDl0Aiebh).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
11465
+ if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>PlayerConsentsCHapKEQ3).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
11466
11466
 
11467
11467
  const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: 13px;\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
11468
11468
  const GeneralRegistrationStyle0 = generalRegistrationCss;
@@ -11472,6 +11472,7 @@ const GeneralRegistration = class {
11472
11472
  index.registerInstance(this, hostRef);
11473
11473
  this.registrationWidgetLoaded = index.createEvent(this, "registrationWidgetLoaded", 7);
11474
11474
  this.registrationStepUpdated = index.createEvent(this, "registrationStepUpdated", 7);
11475
+ this.isInitialInteraction = true;
11475
11476
  this.listOfInputValues = [];
11476
11477
  this.listOfInputValidity = [];
11477
11478
  this.listOfActions = [];
@@ -11499,6 +11500,16 @@ const GeneralRegistration = class {
11499
11500
  setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
11500
11501
  });
11501
11502
  };
11503
+ // handles sending a custom event for initial interaction with the registration form
11504
+ this.handleInitialClick = (e) => {
11505
+ e.preventDefault();
11506
+ if (!this.isInitialInteraction)
11507
+ return;
11508
+ if (this.isInitialInteraction) {
11509
+ dispatchCustomEvent('register_start', { field: e.target.name });
11510
+ this.isInitialInteraction = false;
11511
+ }
11512
+ };
11502
11513
  this.endpoint = undefined;
11503
11514
  this.language = 'en';
11504
11515
  this.clientStyling = '';
@@ -11779,12 +11790,36 @@ const GeneralRegistration = class {
11779
11790
  }
11780
11791
  });
11781
11792
  }
11782
- if (this.registrationStep === 'Step1')
11783
- dispatchCustomEvent('register_step1', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration' });
11784
- else if (this.registrationStep === 'Step2')
11785
- dispatchCustomEvent('register_step2', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration' });
11786
- else if (this.registrationStep === 'Step3')
11787
- dispatchCustomEvent('register_step3', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration' });
11793
+ // handles sending suctom events and the requested data for each registration step
11794
+ if (this.registrationStep === 'Step1') {
11795
+ const eventData = {
11796
+ // @ts-ignore
11797
+ IBAN: registerStep.registerUserDto.IBAN,
11798
+ // @ts-ignore
11799
+ username: registerStep.registerUserDto.Username,
11800
+ };
11801
+ dispatchCustomEvent('register_step1', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration', eventData: eventData });
11802
+ }
11803
+ else if (this.registrationStep === 'Step2') {
11804
+ const eventData = {
11805
+ // @ts-ignore
11806
+ gender: registerStep.registerUserDto.Gender,
11807
+ // @ts-ignore
11808
+ fullName: `${registerStep.registerUserDto.FirstnameOnDocument} ${registerStep.registerUserDto.LastNameOnDocument}`,
11809
+ // @ts-ignore
11810
+ city: registerStep.registerUserDto.City
11811
+ };
11812
+ dispatchCustomEvent('register_step2', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration', eventData: eventData });
11813
+ }
11814
+ else if (this.registrationStep === 'Step3') {
11815
+ const eventData = {
11816
+ // @ts-ignore
11817
+ OIB: registerStep.registerUserDto.PersonalID,
11818
+ // @ts-ignore
11819
+ documentType: registerStep.registerUserDto.DocumentType,
11820
+ };
11821
+ dispatchCustomEvent('register_step3', { eventLabel: this.registrationStep, eventAction: 'nextStep', eventCategory: 'Registration', eventData: eventData });
11822
+ }
11788
11823
  return res.json();
11789
11824
  })
11790
11825
  .then((data) => {
@@ -11876,7 +11911,7 @@ const GeneralRegistration = class {
11876
11911
  type: 'success',
11877
11912
  message: translate('successMessage', this.language)
11878
11913
  } }, window.location.href);
11879
- dispatchCustomEvent('register_success', { userId: data.userId });
11914
+ dispatchCustomEvent('register_closed', { userId: data.userId });
11880
11915
  }
11881
11916
  })
11882
11917
  .catch((err) => {
@@ -12049,7 +12084,7 @@ const GeneralRegistration = class {
12049
12084
  }
12050
12085
  renderForm() {
12051
12086
  return this.forms.map((form, index$1) => {
12052
- return index.h("form", { action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index$1 + 1}` ? 'hidden' : ''}`, ref: el => this.form = el }, form[this.registrationStep] && form[this.registrationStep].map(input => index.h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
12087
+ return index.h("form", { onClick: this.handleInitialClick, action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index$1 + 1}` ? 'hidden' : ''}`, ref: el => this.form = el }, form[this.registrationStep] && form[this.registrationStep].map(input => index.h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
12053
12088
  ? (input.inputType.toLowerCase() == 'checkboxgroup' || input.inputType.toLowerCase() == 'togglecheckbox')
12054
12089
  ? input.data.subFields
12055
12090
  : input.data.values