@everymatrix/general-registration 1.65.0 → 1.65.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 (17) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +1323 -242
  2. package/dist/collection/components/general-registration/general-registration.js +9 -5
  3. package/dist/esm/checkbox-group-input_13.entry.js +1323 -242
  4. package/dist/general-registration/general-registration.esm.js +1 -1
  5. package/dist/general-registration/p-b5292504.entry.js +5614 -0
  6. package/package.json +1 -1
  7. package/dist/general-registration/p-aa189445.entry.js +0 -4524
  8. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  9. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
  10. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -0
  11. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -0
  12. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/main.d.ts +0 -0
  13. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/preview.d.ts +0 -0
  14. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
  15. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  16. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  17. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -5769,51 +5769,51 @@ const EmailInput = class {
5769
5769
  };
5770
5770
  EmailInput.style = EmailInputStyle0;
5771
5771
 
5772
- 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());});/**
5772
+ var Rr=Object.defineProperty,$r=Object.defineProperties;var Hr=Object.getOwnPropertyDescriptors;var ns=Object.getOwnPropertySymbols;var Ur=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Mt$1=(o,t,e)=>t in o?Rr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,ye=(o,t)=>{for(var e in t||(t={}))Ur.call(t,e)&&Mt$1(o,e,t[e]);if(ns)for(var e of ns(t))qr.call(t,e)&&Mt$1(o,e,t[e]);return o},zt=(o,t)=>$r(o,Hr(t));var I$1=(o,t,e)=>(Mt$1(o,typeof t!="symbol"?t+"":t,e),e);var xe=(o,t,e)=>new Promise((i,s)=>{var r=l=>{try{a(e.next(l));}catch(d){s(d);}},n=l=>{try{a(e.throw(l));}catch(d){s(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next());});/**
5773
5773
  * @license
5774
5774
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5775
5775
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5776
- */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.`);}}/**
5776
+ */function g$1(o,t="24.5.12"){Object.defineProperty(o,"version",{get(){return t}});const e=customElements.get(o.is);if(!e)customElements.define(o.is,o);else {const i=e.version;i&&o.version&&i===o.version?console.warn(`The component ${o.is} has been loaded twice`):console.error(`Tried to define ${o.is} version ${o.version} when version ${e.version} is already in use. Something will probably break.`);}}/**
5777
5777
  * @license
5778
5778
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5779
5779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5780
- */class yr extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}y$1(yr);/**
5780
+ */class Wr extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}g$1(Wr);/**
5781
5781
  * @license
5782
5782
  * Copyright 2019 Google LLC
5783
5783
  * SPDX-License-Identifier: BSD-3-Clause
5784
- */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;/**
5784
+ */const it$1=globalThis,wi=it$1.ShadowRoot&&(it$1.ShadyCSS===void 0||it$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ai=Symbol(),as=new WeakMap;let Ei=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ai)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(wi&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=as.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&as.set(e,t));}return t}toString(){return this.cssText}};const jr=o=>new Ei(typeof o=="string"?o:o+"",void 0,Ai),p$1=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,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.")})(s)+o[r+1],o[0]);return new Ei(e,o,Ai)},so=(o,t)=>{if(wi)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=it$1.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i);}},ls=wi?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return jr(e)})(o):o;/**
5785
5785
  * @license
5786
5786
  * Copyright 2017 Google LLC
5787
5787
  * SPDX-License-Identifier: BSD-3-Clause
5788
- */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");/**
5788
+ */const{is:Yr,defineProperty:Kr,getOwnPropertyDescriptor:Gr,getOwnPropertyNames:Xr,getOwnPropertySymbols:Jr,getPrototypeOf:Qr}=Object,q$1=globalThis,ds=q$1.trustedTypes,Zr=ds?ds.emptyScript:"",Nt$1=q$1.reactiveElementPolyfillSupport,Te=(o,t)=>o,Zt={toAttribute(o,t){switch(t){case Boolean:o=o?Zr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o);}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o);}catch(i){e=null;}}return e}},oo=(o,t)=>!Yr(o,t),hs={attribute:!0,type:String,converter:Zt,reflect:!1,useDefault:!1,hasChanged:oo};(Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(q$1.litPropertyMetadata)!=null||(q$1.litPropertyMetadata=new WeakMap);class de 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=hs){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Kr(this.prototype,t,s);}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=Gr(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a;}};return {get:s,set(a){const l=s==null?void 0:s.call(this);r==null||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:hs}static _$Ei(){if(this.hasOwnProperty(Te("elementProperties")))return;const t=Qr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(Te("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Te("properties"))){const e=this.properties,i=[...Xr(e),...Jr(e)];for(const s of i)this.createProperty(s,e[s]);}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s);}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,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 s of i)e.unshift(ls(s));}else t!==void 0&&e.push(ls(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 so(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 s;return (s=i.hostConnected)==null?void 0:s.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);}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Zt).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null;}}_$AK(t,e){var r,n,a,l;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const d=i.getPropertyOptions(s),h=typeof d.converter=="function"?{fromAttribute:d.converter}:((r=d.converter)==null?void 0:r.fromAttribute)!==void 0?d.converter:Zt;this._$Em=s,this[s]=(l=(a=h.fromAttribute(e,d.type))!=null?a:(n=this._$Ej)==null?void 0:n.get(s))!=null?l:null,this._$Em=null;}}requestUpdate(t,e,i){var s,r;if(t!==void 0){const n=this.constructor,a=this[t];if(i!=null||(i=n.getPropertyOptions(t)),!(((s=i.hasChanged)!=null?s:oo)(a,e)||i.useDefault&&i.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i);}this.isUpdatePending===!1&&(this._$ES=this._$EP());}C(t,e,{useDefault:i,reflect:s,wrapped:r},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t));}_$EP(){return xe(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 s;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){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d);}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return (n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM();}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e);}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return (s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM();}updated(t){}firstUpdated(t){}}var Zs;de.elementStyles=[],de.shadowRootOptions={mode:"open"},de[Te("elementProperties")]=new Map,de[Te("finalized")]=new Map,Nt$1==null||Nt$1({ReactiveElement:de}),((Zs=q$1.reactiveElementVersions)!=null?Zs:q$1.reactiveElementVersions=[]).push("2.1.0");/**
5789
5789
  * @license
5790
5790
  * Copyright 2017 Google LLC
5791
5791
  * SPDX-License-Identifier: BSD-3-Clause
5792
- */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=`[
5793
- \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}*(?:[^
5794
- \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};/**
5792
+ */const De=globalThis,nt$1=De.trustedTypes,cs=nt$1?nt$1.createPolicy("lit-html",{createHTML:o=>o}):void 0,ro="$lit$",U$1=`lit$${Math.random().toFixed(9).slice(2)}$`,no="?"+U$1,en=`<${no}>`,se=document,Me=()=>se.createComment(""),ze=o=>o===null||typeof o!="object"&&typeof o!="function",Ii=Array.isArray,tn=o=>Ii(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Lt$1=`[
5793
+ \f\r]`,Ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,us=/-->/g,ps=/>/g,Q$1=RegExp(`>|${Lt$1}(?:([^\\s"'>=/]+)(${Lt$1}*=${Lt$1}*(?:[^
5794
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_s=/'/g,fs=/"/g,ao=/^(?:script|style|textarea|title)$/i,_e=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),ms=new WeakMap,Z$1=se.createTreeWalker(se,129);function lo(o,t){if(!Ii(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return cs!==void 0?cs.createHTML(t):t}const sn=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Ce;for(let a=0;a<e;a++){const l=o[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===Ce?h[1]==="!--"?n=us:h[1]!==void 0?n=ps:h[2]!==void 0?(ao.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=Q$1):h[3]!==void 0&&(n=Q$1):n===Q$1?h[0]===">"?(n=s!=null?s:Ce,c=-1):h[1]===void 0?c=-2:(c=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?Q$1:h[3]==='"'?fs:_s):n===fs||n===_s?n=Q$1:n===us||n===ps?n=Ce:(n=Q$1,s=void 0);const f=n===Q$1&&o[a+1].startsWith("/>")?" ":"";r+=n===Ce?l+en:c>=0?(i.push(d),l.slice(0,c)+ro+l.slice(c)+U$1+f):l+U$1+(c===-2?a:f);}return [lo(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ne{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,h]=sn(t,e);if(this.el=Ne.createElement(d,i),Z$1.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes);}for(;(s=Z$1.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const c of s.getAttributeNames())if(c.endsWith(ro)){const u=h[n++],f=s.getAttribute(c).split(U$1),m=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:m[2],strings:f,ctor:m[1]==="."?rn:m[1]==="?"?nn:m[1]==="@"?an:mt$1}),s.removeAttribute(c);}else c.startsWith(U$1)&&(l.push({type:6,index:r}),s.removeAttribute(c));if(ao.test(s.tagName)){const c=s.textContent.split(U$1),u=c.length-1;if(u>0){s.textContent=nt$1?nt$1.emptyScript:"";for(let f=0;f<u;f++)s.append(c[f],Me()),Z$1.nextNode(),l.push({type:2,index:++r});s.append(c[u],Me());}}}else if(s.nodeType===8)if(s.data===no)l.push({type:2,index:r});else {let c=-1;for(;(c=s.data.indexOf(U$1,c+1))!==-1;)l.push({type:7,index:r}),c+=U$1.length-1;}r++;}}static createElement(t,e){const i=se.createElement("template");return i.innerHTML=t,i}}function fe(o,t,e=o,i){var n,a,l;if(t===_e)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=ze(t)?void 0:t._$litDirective$;return (s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(o),s._$AT(o,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=fe(o,s._$AS(o,t.values),s,i)),t}class on{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,s=((d=t==null?void 0:t.creationScope)!=null?d:se).importNode(e,!0);Z$1.currentNode=s;let r=Z$1.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new qe(r,r.nextSibling,this,t):l.type===1?h=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(h=new ln(r,this,t)),this._$AV.push(h),l=i[++a];}n!==(l==null?void 0:l.index)&&(r=Z$1.nextNode(),n++);}return Z$1.currentNode=se,s}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 qe{get _$AU(){var t,e;return (e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var r;this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(r=s==null?void 0:s.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=fe(this,t,e),ze(t)?t===E$1||t==null||t===""?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==_e&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):tn(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!==E$1&&ze(this._$AH)?this._$AA.nextSibling.data=t:this.T(se.createTextNode(t)),this._$AH=t;}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ne.createElement(lo(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else {const n=new on(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n;}}_$AC(t){let e=ms.get(t.strings);return e===void 0&&ms.set(t.strings,e=new Ne(t)),e}k(t){Ii(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new qe(this.O(Me()),this.O(Me()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s);}_$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 s=t.nextSibling;t.remove(),t=s;}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t));}}class mt$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=E$1,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E$1;}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=fe(this,t,e,0),n=!ze(t)||t!==this._$AH&&t!==_e,n&&(this._$AH=t);else {const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=fe(this,a[i+l],e,l),d===_e&&(d=this._$AH[l]),n||(n=!ze(d)||d!==this._$AH[l]),d===E$1?t=E$1:t!==E$1&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d;}n&&!s&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"");}}class rn extends mt$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}}class nn extends mt$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}}class an extends mt$1{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5;}_$AI(t,e=this){var n;if((t=(n=fe(this,t,e,0))!=null?n:E$1)===_e)return;const i=this._$AH,s=t===E$1&&i!==E$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==E$1&&(i===E$1||s);s&&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 ln{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){fe(this,t);}}const Ft=De.litHtmlPolyfillSupport;var eo;Ft==null||Ft(Ne,qe),((eo=De.litHtmlVersions)!=null?eo:De.litHtmlVersions=[]).push("3.3.0");const ho=(o,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new qe(t.insertBefore(Me(),a),a,void 0,e!=null?e:{});}return s._$AI(o),s};/**
5795
5795
  * @license
5796
5796
  * Copyright 2017 Google LLC
5797
5797
  * SPDX-License-Identifier: BSD-3-Clause
5798
- */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");/**
5798
+ */const te=globalThis;class he extends de{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=ho(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 _e}}var to;he._$litElement$=!0,he.finalized=!0,(to=te.litElementHydrateSupport)==null||to.call(te,{LitElement:he});const Bt$1=te.litElementPolyfillSupport;Bt$1==null||Bt$1({LitElement:he});var io;((io=te.litElementVersions)!=null?io:te.litElementVersions=[]).push("4.2.0");/**
5799
5799
  * @license
5800
5800
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5801
5801
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5802
- */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);}};/**
5802
+ */const co=o=>class extends o{static get properties(){return {_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return [...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,s){super.attributeChangedCallback(e,i,s),e==="theme"&&this._set_theme(s);}};/**
5803
5803
  * @license
5804
5804
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5805
5805
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5806
- */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(`
5807
- `)}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))}};/**
5806
+ */const uo=[],ei=new Set,ki=new Set;function po(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function dn(o){return po(customElements.get(o))}function hn(o=[]){return [o].flat(1/0).filter(t=>t instanceof Ei?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function _o(o,t){return (o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function fo(o){return o.map(t=>t.cssText).join(`
5807
+ `)}const at$1="vaadin-themable-mixin-style";function cn(o,t){const e=document.createElement("style");e.id=at$1,e.textContent=fo(o),t.content.appendChild(e);}function un(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof he)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),so(o.shadowRoot,t.elementStyles);else {const e=o.shadowRoot.getElementById(at$1),i=t.prototype._template;e.textContent=i.content.getElementById(at$1).textContent;}}function pn(o){ei.forEach(t=>{const e=t.deref();e instanceof o?un(e):e||ei.delete(t);});}function mo(o){if(o.prototype instanceof he)o.elementStyles=o.finalizeStyles(o.styles);else {const t=o.prototype._template;t.content.getElementById(at$1).textContent=fo(o.getStylesForThis());}ki.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&mo(e);});}function _n(o,t){const e=o.__themes;return !e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function _$1(o,t,e={}){t=hn(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):uo.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&ki.forEach(i=>{if(_o(o,i)&&dn(i)){const s=customElements.get(i);_n(s,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".`),mo(s),pn(s);}});}function ti(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():uo}function fn(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function go(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=ti().find(s=>s.moduleId===e);i?t.push(...go(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`);},o.styles),t}function mn(o){const t=`${o}-default-theme`,e=ti().filter(i=>i.moduleId!==t&&_o(i.themeFor,o)).map(i=>zt(ye({},i),{styles:[...go(i),...i.styles],includePriority:fn(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:ti().filter(i=>i.moduleId===t)}const x=o=>class extends co(o){constructor(){super(),ei.add(new WeakRef(this));}static finalize(){if(super.finalize(),this.is&&ki.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||po(this)||cn(this.getStylesForThis(),e);}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...mn(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
5808
5808
  * @license
5809
5809
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5810
5810
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5811
- */const Wr=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
5812
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},he=(s,...t)=>{Wr(`lumo-${s}`,t);};/**
5811
+ */const gn=(o,...t)=>{const e=document.createElement("style");e.id=o,e.textContent=t.map(i=>i.toString()).join(`
5812
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},ge=(o,...t)=>{gn(`lumo-${o}`,t);};/**
5813
5813
  * @license
5814
5814
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5815
5815
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5816
- */const Gr=_$1`
5816
+ */const vn=p$1`
5817
5817
  :host {
5818
5818
  /* Base (background) */
5819
5819
  --lumo-base-color: #fff;
@@ -5898,7 +5898,7 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
5898
5898
  --lumo-disabled-text-color: GrayText;
5899
5899
  }
5900
5900
  }
5901
- `;he("color-props",Gr);const Kr=_$1`
5901
+ `;ge("color-props",vn);const bn=p$1`
5902
5902
  [theme~='dark'] {
5903
5903
  /* Base (background) */
5904
5904
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -6016,11 +6016,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6016
6016
  pre code {
6017
6017
  background: transparent;
6018
6018
  }
6019
- `;m$1("",Kr,{moduleId:"lumo-color"});/**
6019
+ `;_$1("",bn,{moduleId:"lumo-color"});/**
6020
6020
  * @license
6021
6021
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6022
6022
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6023
- */const Xr=_$1`
6023
+ */const yn=p$1`
6024
6024
  @font-face {
6025
6025
  font-family: 'lumo-icons';
6026
6026
  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==)
@@ -6073,11 +6073,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6073
6073
  --lumo-icons-upload: '\\ea29';
6074
6074
  --lumo-icons-user: '\\ea2a';
6075
6075
  }
6076
- `;he("font-icons",Xr);/**
6076
+ `;ge("font-icons",yn);/**
6077
6077
  * @license
6078
6078
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6079
6079
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6080
- */const Jr=_$1`
6080
+ */const xn=p$1`
6081
6081
  :host {
6082
6082
  --lumo-size-xs: 1.625rem;
6083
6083
  --lumo-size-s: 1.875rem;
@@ -6092,11 +6092,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6092
6092
  /* For backwards compatibility */
6093
6093
  --lumo-icon-size: var(--lumo-icon-size-m);
6094
6094
  }
6095
- `;he("sizing-props",Jr);/**
6095
+ `;ge("sizing-props",xn);/**
6096
6096
  * @license
6097
6097
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6098
6098
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6099
- */const Qr=_$1`
6099
+ */const Cn=p$1`
6100
6100
  :host {
6101
6101
  /* Square */
6102
6102
  --lumo-space-xs: 0.25rem;
@@ -6119,11 +6119,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6119
6119
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
6120
6120
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
6121
6121
  }
6122
- `;he("spacing-props",Qr);/**
6122
+ `;ge("spacing-props",Cn);/**
6123
6123
  * @license
6124
6124
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6125
6125
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6126
- */const Zr=_$1`
6126
+ */const wn=p$1`
6127
6127
  :host {
6128
6128
  /* Border radius */
6129
6129
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -6140,7 +6140,7 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6140
6140
  /* Clickable element cursor */
6141
6141
  --lumo-clickable-cursor: default;
6142
6142
  }
6143
- `;_$1`
6143
+ `;p$1`
6144
6144
  html {
6145
6145
  /* Button */
6146
6146
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -6223,11 +6223,11 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6223
6223
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
6224
6224
  --vaadin-input-field-value-font-weight: 500;
6225
6225
  }
6226
- `;he("style-props",Zr);/**
6226
+ `;ge("style-props",wn);/**
6227
6227
  * @license
6228
6228
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6229
6229
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6230
- */const en=_$1`
6230
+ */const An=p$1`
6231
6231
  :host {
6232
6232
  /* prettier-ignore */
6233
6233
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -6247,7 +6247,7 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6247
6247
  --lumo-line-height-s: 1.375;
6248
6248
  --lumo-line-height-m: 1.625;
6249
6249
  }
6250
- `,tn=_$1`
6250
+ `,En=p$1`
6251
6251
  body,
6252
6252
  :host {
6253
6253
  font-family: var(--lumo-font-family);
@@ -6339,7 +6339,7 @@ var fr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnProp
6339
6339
  border-left: none;
6340
6340
  border-right: 2px solid var(--lumo-contrast-30pct);
6341
6341
  }
6342
- `;m$1("",tn,{moduleId:"lumo-typography"});he("typography-props",en);m$1("vaadin-checkbox",_$1`
6342
+ `;_$1("",En,{moduleId:"lumo-typography"});ge("typography-props",An);_$1("vaadin-checkbox",p$1`
6343
6343
  :host {
6344
6344
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
6345
6345
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -6651,7 +6651,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6651
6651
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6652
6652
  Code distributed by Google as part of the polymer project is also
6653
6653
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6654
- */window.JSCompiler_renameProperty=function(s,t){return s};/**
6654
+ */window.JSCompiler_renameProperty=function(o,t){return o};/**
6655
6655
  @license
6656
6656
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6657
6657
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6659,7 +6659,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6659
6659
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6660
6660
  Code distributed by Google as part of the polymer project is also
6661
6661
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6662
- */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)}/**
6662
+ */let In=/(url\()([^)]*)(\))/g,kn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ke,D$1;function Oe(o,t){if(o&&kn.test(o)||o==="//")return o;if(Ke===void 0){Ke=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ke=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),Ke)try{return new URL(o,t).href}catch(e){return o}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=o,D$1.anchor.href||o}function Si(o,t){return o.replace(In,function(e,i,s,r){return i+"'"+Oe(s.replace(/["']/g,""),t)+"'"+r})}function Pi(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
6663
6663
  @license
6664
6664
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6665
6665
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6667,7 +6667,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6667
6667
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6668
6668
  Code distributed by Google as part of the polymer project is also
6669
6669
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6670
- */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;/**
6670
+ */const vo=!window.ShadyDOM||!window.ShadyDOM.inUse;const Sn=vo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return !1}})();let Pn=window.Polymer&&window.Polymer.rootPath||Pi(document.baseURI||window.location.href),lt$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let dt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Tn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,bo=window.Polymer&&window.Polymer.legacyOptimizations||!1,yo=window.Polymer&&window.Polymer.legacyWarnings||!1,Dn=window.Polymer&&window.Polymer.syncInitialRender||!1,ii=window.Polymer&&window.Polymer.legacyUndefined||!1,On=window.Polymer&&window.Polymer.orderedComputed||!1,gs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Mn=window.Polymer&&window.Polymer.fastDomIf||!1,vs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let zn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
6671
6671
  @license
6672
6672
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6673
6673
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6675,7 +6675,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6675
6675
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6676
6676
  Code distributed by Google as part of the polymer project is also
6677
6677
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6678
- */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};/**
6678
+ */let Nn=0;const C$1=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=Nn++;function i(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=o(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l;}return a}return i};/**
6679
6679
  @license
6680
6680
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6681
6681
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6683,7 +6683,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6683
6683
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6684
6684
  Code distributed by Google as part of the polymer project is also
6685
6685
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6686
- */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);/**
6686
+ */let Ti={},xo={};function bs(o,t){Ti[o]=xo[o.toLowerCase()]=t;}function ys(o){return Ti[o]||xo[o.toLowerCase()]}function Ln(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id);}class Le extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=ys(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Oe(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Pi(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(dt$1&&ys(t)!==void 0)throw bs(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,bs(t,this),Ln(this);}}}Le.prototype.modules=Ti;customElements.define("dom-module",Le);/**
6687
6687
  @license
6688
6688
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6689
6689
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6691,7 +6691,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6691
6691
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6692
6692
  Code distributed by Google as part of the polymer project is also
6693
6693
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6694
- */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}/**
6694
+ */const Fn="link[rel=import][type~=css]",Bn="include",xs="shady-unscoped";function Co(o){return Le.import(o)}function Cs(o){let t=o.body?o.body:o;const e=Si(t.textContent,o.baseURI),i=document.createElement("style");return i.textContent=e,i}function Vn(o){const t=o.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...Rn(t[i]));return e}function Rn(o){const t=Co(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...Ao(t));const i=t.querySelector("template");i&&e.push(...wo(i,t.assetpath)),t._styles=e;}return t._styles}function wo(o,t){if(!o._styles){const e=[],i=o.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let r=i[s],n=r.getAttribute(Bn);n&&e.push(...Vn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=Si(r.textContent,t)),e.push(r);}o._styles=e;}return o._styles}function $n(o){let t=Co(o);return t?Ao(t):[]}function Ao(o){const t=[],e=o.querySelectorAll(Fn);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const r=s.import,n=s.hasAttribute(xs);if(n&&!r._unscopedStyle){const a=Cs(r);a.setAttribute(xs,""),r._unscopedStyle=a;}else r._style||(r._style=Cs(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
6695
6695
  @license
6696
6696
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6697
6697
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6699,7 +6699,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6699
6699
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6700
6700
  Code distributed by Google as part of the polymer project is also
6701
6701
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6702
- */const A$1=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?s=>ShadyDOM.patch(s):s=>s;/**
6702
+ */const k$1=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?o=>ShadyDOM.patch(o):o=>o;/**
6703
6703
  @license
6704
6704
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6705
6705
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6707,7 +6707,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6707
6707
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6708
6708
  Code distributed by Google as part of the polymer project is also
6709
6709
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6710
- */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(".")}/**
6710
+ */function si(o){return o.indexOf(".")>=0}function oe(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function Eo(o,t){return o.indexOf(t+".")===0}function Fe(o,t){return t.indexOf(o+".")===0}function Be(o,t,e){return t+e.slice(o.length)}function Hn(o,t){return o===t||Eo(o,t)||Fe(o,t)}function ke(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s]);}return t.join(".")}else return o}function Io(o){return Array.isArray(o)?ke(o).split("."):o.toString().split(".")}function T$1(o,t,e){let i=o,s=Io(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n];}return e&&(e.path=s.join(".")),i}function ws(o,t,e){let i=o,s=Io(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e;}else i[t]=e;return s.join(".")}/**
6711
6711
  @license
6712
6712
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6713
6713
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6715,7 +6715,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6715
6715
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6716
6716
  Code distributed by Google as part of the polymer project is also
6717
6717
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6718
- */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())}/**
6718
+ */const ht$1={},Un=/-[a-z]/g,qn=/([A-Z])/g;function ko(o){return ht$1[o]||(ht$1[o]=o.indexOf("-")<0?o:o.replace(Un,t=>t[1].toUpperCase()))}function gt$1(o){return ht$1[o]||(ht$1[o]=o.replace(qn,"-$1").toLowerCase())}/**
6719
6719
  @license
6720
6720
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6721
6721
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6723,7 +6723,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6723
6723
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6724
6724
  Code distributed by Google as part of the polymer project is also
6725
6725
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6726
- */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;}}};/**
6726
+ */let Wn=0,So=0,ce=[],jn=0,oi=!1,Po=document.createTextNode("");new window.MutationObserver(Yn).observe(Po,{characterData:!0});function Yn(){oi=!1;const o=ce.length;for(let t=0;t<o;t++){let e=ce[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}ce.splice(0,o),So+=o;}const Kn={after(o){return {run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t);}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o);}},To={run(o){return oi||(oi=!0,Po.textContent=jn++),ce.push(o),Wn++},cancel(o){const t=o-So;if(t>=0){if(!ce[t])throw new Error("invalid async handle: "+o);ce[t]=null;}}};/**
6727
6727
  @license
6728
6728
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6729
6729
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6731,7 +6731,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6731
6731
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6732
6732
  Code distributed by Google as part of the polymer project is also
6733
6733
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6734
- */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});/**
6734
+ */const Gn=To,Do=C$1(o=>{class t extends o{static createProperties(i){const s=this.prototype;for(let r in i)r in s||s._createPropertyAccessor(r);}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){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,s));}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?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,s){this._setPendingProperty(i,s)&&this._invalidateProperties();}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,r){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return !!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Gn.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,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,r)),this.__dataCounter--;}_shouldPropertiesChange(i,s,r){return !!s}_propertiesChanged(i,s,r){}_shouldPropertyChange(i,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(i,s,r,n){s!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,r,n);}_attributeToProperty(i,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a));}}_propertyToAttribute(i,s,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1;}_valueToNodeAttribute(i,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(i=k$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,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
6735
6735
  @license
6736
6736
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6737
6737
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6739,7 +6739,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6739
6739
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6740
6740
  Code distributed by Google as part of the polymer project is also
6741
6741
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6742
- */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});/**
6742
+ */const Oo={};let Ge=HTMLElement.prototype;for(;Ge;){let o=Object.getOwnPropertyNames(Ge);for(let t=0;t<o.length;t++)Oo[o[t]]=!0;Ge=Object.getPrototypeOf(Ge);}const Xn=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function Jn(o,t){if(!Oo[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e));}}const Qn=C$1(o=>{const t=Do(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(ko(s[r]));}static attributeNameForProperty(s){return gt$1(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties();}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r]);}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s);}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Xn(s))return s;try{return JSON.stringify(s)}catch(r){return ""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s);}catch(a){n=s;}break;case Array:try{n=JSON.parse(s);}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`);}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){Jn(this,s),super._definePropertyAccessor(s,r);}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return !!(this.__dataPending&&s in this.__dataPending)}}return e});/**
6743
6743
  @license
6744
6744
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6745
6745
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6747,7 +6747,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6747
6747
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6748
6748
  Code distributed by Google as part of the polymer project is also
6749
6749
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6750
- */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});/**
6750
+ */const Zn={"dom-if":!0,"dom-repeat":!0};let As=!1,Es=!1;function ea(){if(!As){As=!0;const o=document.createElement("textarea");o.placeholder="a",Es=o.placeholder===o.textContent;}return Es}function ta(o){ea()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null);}const ia=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return (t,e,i)=>{const s=e.getAttribute(i);if(o&&i.startsWith("on-")){t.setAttribute(i,o.createScript(s,i));return}t.setAttribute(i,s);}})();function sa(o){let t=o.getAttribute("is");if(t&&Zn[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];ia(o,e,i),e.removeAttribute(i);}}return o}function Mo(o,t){let e=t.parentInfo&&Mo(o,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return o}function oa(o,t,e,i){i.id&&(t[i.id]=e);}function ra(o,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,r;i<s.length&&(r=s[i]);i++)o._addMethodEventListenerToNode(t,r.name,r.value,o);}function na(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i);}function aa(o,t,e){return o=o._methodHost||o,function(s){o[e]?o[e](s,s.detail):console.warn("listener method `"+e+"` not defined");}}const la=C$1(o=>{class t extends o{static _parseTemplate(i,s){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null});}return i._templateInfo}static _parseTemplateContent(i,s,r){return this._parseTemplateNode(i.content,s,r)}static _parseTemplateNode(i,s,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),ta(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(i,s,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=sa(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(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++;}}static _parseTemplateNestedTemplate(i,s,r){let n=i,a=this._parseTemplate(n,s);return (a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,s,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 s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let r=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.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]=Mo(a,c);oa(this,a.$,u,c),na(this,u,c,s),ra(this,u,c);}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=aa(n,s,r);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,r){i.addEventListener(s,r);}_removeEventListenerFromNode(i,s,r){i.removeEventListener(s,r);}}return t});/**
6751
6751
  * @fileoverview
6752
6752
  * @suppress {checkPrototypalTypes}
6753
6753
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -6757,7 +6757,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6757
6757
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
6758
6758
  * Google as part of the polymer project is also subject to an additional IP
6759
6759
  * rights grant found at http://polymer.github.io/PATENTS.txt
6760
- */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=[];/**
6760
+ */let Ve=0;const Re=[],v$1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},zo="__computeInfo",da=/[A-Z]/;function Vt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Se(o,t,e,i,s,r){if(t){let n=!1;const a=Ve++;for(let l in e){let d=s?oe(l):l,h=t[d];if(h)for(let c=0,u=h.length,f;c<u&&(f=h[c]);c++)(!f.info||f.info.lastRun!==a)&&(!s||Di(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(o,l,e,i,f.info,s,r),n=!0);}return n}return !1}function ha(o,t,e,i,s,r,n,a){let l=!1,d=n?oe(i):i,h=t[d];if(h)for(let c=0,u=h.length,f;c<u&&(f=h[c]);c++)(!f.info||f.info.lastRun!==e)&&(!n||Di(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(o,i,s,r,f.info,n,a),l=!0);return l}function Di(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&Eo(e,o))||!!(t.wildcard&&Fe(e,o))}else return !0}function Is(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined");}function ca(o,t,e,i,s){let r=o[v$1.NOTIFY],n,a=Ve++;for(let d in t)t[d]&&(r&&ha(o,r,a,d,e,i,s)||s&&ua(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function ua(o,t,e){let i=oe(t);if(i!==t){let s=gt$1(i)+"-changed";return No(o,s,e[t],t),!0}return !1}function No(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),k$1(o).dispatchEvent(new CustomEvent(t,{detail:s}));}function pa(o,t,e,i,s,r){let a=(r?oe(t):t)!=t?t:null,l=a?T$1(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),No(o,s.eventName,l,a);}function _a(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=Be(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[v$1.READ_ONLY]||!t[v$1.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function fa(o,t,e,i,s){let r=o.__data[t];lt$1&&(r=lt$1(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r);}function ma(o,t,e,i){let s=o[v$1.COMPUTE];if(s)if(On){Ve++;const r=va(o),n=[];for(let l in t)ks(l,s,n,r,i);let a;for(;a=n.shift();)Lo(o,"",t,e,a)&&ks(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null;}else {let r=t;for(;Se(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null;}}const ga=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else {r=n;break}}r<0&&(r=s+1),t.splice(r,0,o);},ks=(o,t,e,i,s)=>{const r=s?oe(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Ve&&(!s||Di(o,l.trigger))&&(l.info.lastRun=Ve,ga(l.info,e,i));}};function va(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[v$1.COMPUTE];let{counts:i,ready:s,total:r}=ba(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d);});}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t;}return t}function ba(o){const t=o[zo],e={},i=o[v$1.COMPUTE],s=[];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]||s.push(n);return {counts:e,ready:s,total:r}}function Lo(o,t,e,i,s){let r=ri(o,t,e,i,s);if(r===Re)return !1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function ya(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];Fe(r,t)?(s=Be(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):Fe(n,t)&&(s=Be(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0));}}}function Rt(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Ea(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||gt$1(s)+"-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,xa(o,t,a,h,l);}}function xa(o,t,e,i,s){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:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Bo(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ca,info:n,trigger:l});}}}function Ca(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.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=Be(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&o._enqueueClient(a);}else {let h=s.evaluator._evaluateBinding(o,d,t,e,i,r);h!==Re&&wa(o,a,l,d,h);}}function wa(o,t,e,i,s){if(s=Aa(t,s,e,i),lt$1&&(s=lt$1(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[v$1.READ_ONLY]||!t[v$1.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s);}}function Aa(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function Ea(o){return !!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function Ia(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];ka(n,d),Sa(n,o,d);}n.__dataHost=o;}}function ka(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=k$1(o)),o[r]=t.literal);}}function Sa(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){_a(s,t,e.target,i.source,i.negate);});}}function Ss(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ri(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===Re?Re:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined");}const Pa=[],Fo="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ta="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Da="(?:'(?:[^'\\\\]|\\\\.)*')",Oa='(?:"(?:[^"\\\\]|\\\\.)*")',Ma="(?:"+Da+"|"+Oa+")",Ps="(?:("+Fo+"|"+Ta+"|"+Ma+")\\s*)",za="(?:"+Ps+"(?:,\\s*"+Ps+")*)",Na="(?:\\(\\s*(?:"+za+"?)\\)\\s*)",La="("+Fo+"\\s*"+Na+"?)",Fa="(\\[\\[|{{)\\s*",Ba="(?:]]|}})",Va="(?:(!)\\s*)?",Ra=Fa+Va+La+Ba,Ts=new RegExp(Ra,"g");function Ds(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||"";}return t}function $t$1(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Pa};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return $a(s,i)}else return i}return null}function $a(o,t){return t.args=o.map(function(e){let i=Bo(e);return i.literal||(t.static=!1),i},this),t}function Bo(o){let t=o.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=oe(t),e.structured=si(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Os(o,t,e){let i=T$1(o,e);return i===void 0&&(i=t[e]),i}function Vo(o,t,e,i){const s={indexSplices:i};ii&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ii&&!o._overrideLegacyUndefined&&(s.indexSplices=[]);}function we(o,t,e,i,s,r){Vo(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}]);}function Ha(o){return o[0].toUpperCase()+o.substring(1)}const Oi=C$1(o=>{const t=la(Qn(o));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return v$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(Ae.length){let s=Ae[Ae.length-1];s._enqueueClient(this),this.__dataHost=s;}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={};}_initializeInstanceProperties(s){let r=this[v$1.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n]);}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==v$1.READ_ONLY);let a=Vt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n);}_removePropertyEffect(s,r,n){let a=Vt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(s,r){let n=this[r];return !!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,v$1.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,v$1.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,v$1.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,v$1.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||oe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=T$1(this,s);if(s=ws(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return ya(this,s,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r;}return !1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=k$1(s)),s[r]=n);}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&si(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[v$1.NOTIFY]&&this[v$1.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties();}_invalidateProperties(){this.__dataReady&&this._flushProperties();}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s);}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0);}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(s,r){for(let n in s)(r||!this[v$1.READ_ONLY]||!this[v$1.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;ma(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Se(this,this[v$1.REFLECT],r,n,a),Se(this,this[v$1.OBSERVE],r,n,a),l&&ca(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(s,r,n){this[v$1.PROPAGATE]&&Se(this,this[v$1.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n);}_runEffectsForTemplate(s,r,n,a){const l=(d,h)=>{Se(this,s.propertyEffects,d,n,h,s.nodeList);for(let c=s.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,d,n,h);};s.runEffects?s.runEffects(l,r,a):l(r,a);}linkPaths(s,r){s=ke(s),r=ke(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r;}unlinkPaths(s){s=ke(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s];}notifySplices(s,r){let n={path:""},a=T$1(this,s,n);Vo(this,a,n.path,r);}get(s,r){return T$1(r||this,s)}set(s,r,n){n?ws(n,s,r):(!this[v$1.READ_ONLY]||!this[v$1.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties();}push(s,...r){let n={path:""},a=T$1(this,s,n),l=a.length,d=a.push(...r);return r.length&&we(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=T$1(this,s,r),a=!!n.length,l=n.pop();return a&&we(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=T$1(this,s,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)&&we(this,d,l.path,r,a.length,h),h}shift(s){let r={path:""},n=T$1(this,s,r),a=!!n.length,l=n.shift();return a&&we(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=T$1(this,s,n),l=a.unshift(...r);return r.length&&we(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=T$1(this,s,a),n=a.path;}else Array.isArray(s)?n=ke(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,v$1.READ_ONLY),r&&(this["_set"+Ha(s)]=function(n){this._setProperty(s,n);});}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,v$1.OBSERVE,{fn:Is,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,v$1.OBSERVE,{fn:Is,info:a,trigger:{name:r}});}_createMethodObserver(s,r){let n=$t$1(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Ss(this,n,v$1.OBSERVE,ri,null,r);}_createNotifyingProperty(s){this._addPropertyEffect(s,v$1.NOTIFY,{fn:pa,info:{eventName:gt$1(s)+"-changed",property:s}});}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" 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(s,v$1.REFLECT,{fn:fa,info:{attrName:r}});}_createComputedProperty(s,r,n){let a=$t$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Ss(this,a,v$1.COMPUTE,Lo,s,n);Vt(this,zo)[s]=l;}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,h=s.length;d<h;d++){let{name:c,structured:u,wildcard:f,value:m,literal:S}=s[d];if(!S)if(f){const P=Fe(c,r),A=Os(a,n,P?r:c);m={path:P?r:c,value:A,base:P?T$1(a,c):A};}else m=u?Os(a,n,c):a[c];if(ii&&!this._overrideLegacyUndefined&&m===void 0&&s.length>1)return Re;l[d]=m;}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n);}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n);}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r);}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s);}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r);}static createReflectedProperty(s){this.prototype._createReflectedProperty(s);}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n);}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),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=s._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(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Ae.push(this);let n=super._stampTemplate(s,r);if(Ae.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(s){const r=s.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];k$1(k$1(c).parentNode).removeChild(c);}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Ds(l)||" ",Rt(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let h=a,c="property";da.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=Ds(d);return u&&c=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(u+=" "+s.getAttribute(a)),s.setAttribute(a,u)),c=="attribute"&&h=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&h==="value"&&s.setAttribute(h,""),s.removeAttribute(h),c==="property"&&(a=ko(a)),Rt(this,r,n,c,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,d=n.templateInfo,h=l.localName==="dom-if",c=l.localName==="dom-repeat";gs&&(h||c)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(Mn&&h)u&&(r.hostProps=Object.assign(r.hostProps||{},u),gs||(n.parentInfo.noted=!0));else {let f="{";for(let m in u){let S=[{mode:f,source:m,dependencies:[m],hostProp:!0}];Rt(this,r,n,"property","_host_"+m,S);}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=Ts.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],h=!!l[2],c=l[3].trim(),u=!1,f="",m=-1;d=="{"&&(m=c.indexOf("::"))>0&&(f=c.substring(m+2),c=c.substring(0,m),u=!0);let S=$t$1(c),P=[];if(S){let{args:A,methodName:w}=S;for(let be=0;be<A.length;be++){let J=A[be];J.literal||P.push(J);}let H=r.dynamicFns;(H&&H[w]||S.static)&&(P.push(w),S.dynamicFn=!0);}else P.push(c);n.push({source:c,mode:d,negate:h,customEvent:u,signature:S,dependencies:P,event:f}),a=Ts.lastIndex;}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let h;return r.signature?h=ri(s,n,a,l,r.signature):n!=r.source?h=T$1(s,r.source):d&&si(n)?h=T$1(s,n):h=s.__data[n],r.negate&&(h=!h),h}}return e}),Ae=[];/**
6761
6761
  @license
6762
6762
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6763
6763
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6773,7 +6773,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6773
6773
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6774
6774
  Code distributed by Google as part of the polymer project is also
6775
6775
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6776
- */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});/**
6776
+ */function Ua(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i;}return t}const qa=C$1(o=>{const t=Do(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?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=Ua(a));}r.__ownProperties=n;}return r.__ownProperties}class s 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 s});/**
6777
6777
  * @fileoverview
6778
6778
  * @suppress {checkPrototypalTypes}
6779
6779
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -6783,7 +6783,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6783
6783
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
6784
6784
  * Google as part of the polymer project is also subject to an additional IP
6785
6785
  * rights grant found at http://polymer.github.io/PATENTS.txt
6786
- */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});/**
6786
+ */const Wa="3.5.2",Ms=window.ShadyCSS&&window.ShadyCSS.cssBuild,ja=C$1(o=>{const t=qa(Oi(o));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 s(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(!Ms){const u=d.content.querySelectorAll("style"),f=wo(d),m=$n(h),S=d.content.firstElementChild;for(let A=0;A<m.length;A++){let w=m[A];w.textContent=l._processStyleText(w.textContent,c),d.content.insertBefore(w,S);}let P=0;for(let A=0;A<f.length;A++){let w=f[A],H=u[P];H!==w?(w=w.cloneNode(!0),H.parentNode.insertBefore(w,H)):P++,w.textContent=l._processStyleText(w.textContent,c);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),zn&&Ms&&Sn){const u=d.content.querySelectorAll("style");if(u){let f="";Array.from(u).forEach(m=>{f+=m.textContent,m.parentNode.removeChild(m);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f);}}}function n(l){let d=null;if(l&&(!dt$1||Tn)&&(d=Le.import(l,"template"),dt$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):bo||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let h in d)s(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=Pi(d.url);else {const h=Le.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=Pn,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 Si(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const c=this.importPath,u=c?Oe(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=k$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])),Dn&&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=Oe(this.importPath)),Oe(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 yo&&!(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});/**
6787
6787
  @license
6788
6788
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6789
6789
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6791,7 +6791,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6791
6791
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6792
6792
  Code distributed by Google as part of the polymer project is also
6793
6793
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6794
- */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")};/**
6794
+ */const zs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class Ro{constructor(t,e){Ho(t,e);const i=e.reduce((s,r,n)=>s+$o(r)+t[n+1],t[0]);this.value=i.toString();}toString(){return this.value}}function $o(o){if(o instanceof Ro)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function Ya(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof Ro)return $o(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const b$1=function(t,...e){Ho(t,e);const i=document.createElement("template");let s=e.reduce((r,n,a)=>r+Ya(n)+t[a+1],t[0]);return zs&&(s=zs.createHTML(s)),i.innerHTML=s,i},Ho=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
6795
6795
  @license
6796
6796
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6797
6797
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6799,7 +6799,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6799
6799
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6800
6800
  Code distributed by Google as part of the polymer project is also
6801
6801
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6802
- */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
6802
+ */const y$1=ja(HTMLElement),Ka=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,st$1=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ga(){function o(){return !0}return Uo(o)}function Xa(){try{return Ja()?!0:Qa()?st$1?!Za():!Ga():!1}catch(o){return !1}}function Ja(){return localStorage.getItem("vaadin.developmentmode.force")}function Qa(){return ["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Za(){return !!(st$1&&Object.keys(st$1).map(t=>st$1[t]).filter(t=>t.productionMode).length>0)}function Uo(o,t){if(typeof o!="function")return;const e=Ka.exec(o.toString());if(e)try{o=new Function(e[1]);}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i);}return o(t)}window.Vaadin=window.Vaadin||{};const Ns=function(o,t){if(window.Vaadin.developmentMode)return Uo(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Xa());function el(){/*! vaadin-dev-mode:start
6803
6803
  (function () {
6804
6804
  'use strict';
6805
6805
 
@@ -7277,7 +7277,7 @@ try {
7277
7277
 
7278
7278
  }());
7279
7279
 
7280
- vaadin-dev-mode:end **/}const Oa=function(){if(typeof fs=="function")return fs(Da)};/**
7280
+ vaadin-dev-mode:end **/}const tl=function(){if(typeof Ns=="function")return Ns(el)};/**
7281
7281
  * @license
7282
7282
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7283
7283
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7285,7 +7285,7 @@ try {
7285
7285
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7286
7286
  * Code distributed by Google as part of the polymer project is also
7287
7287
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7288
- */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;}}};/**
7288
+ */let Ls=0,qo=0;const ue=[];let ni=!1;function il(){ni=!1;const o=ue.length;for(let t=0;t<o;t++){const e=ue[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}ue.splice(0,o),qo+=o;}const W$1={after(o){return {run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t);}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o);}},$e={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o);}},Wo={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o);}},ct$1={run(o){ni||(ni=!0,queueMicrotask(()=>il())),ue.push(o);const t=Ls;return Ls+=1,t},cancel(o){const t=o-qo;if(t>=0){if(!ue[t])throw new Error(`invalid async handle: ${o}`);ue[t]=null;}}};/**
7289
7289
  @license
7290
7290
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7291
7291
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7293,35 +7293,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7293
7293
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7294
7294
  Code distributed by Google as part of the polymer project is also
7295
7295
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7296
- */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)};/**
7296
+ */const He=new Set;let O=class ai{static debounce(t,e,i){return t instanceof ai?t._cancelAsync():t=new ai,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,He.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),He.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 jo(o){He.add(o);}function sl(){const o=!!He.size;return He.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),o}const Pe=()=>{let o;do o=sl();while(o)};/**
7297
7297
  * @license
7298
7298
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7299
7299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7300
- */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);}};/**
7300
+ */const B$1=[];function li(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir");}function di(){return document.documentElement.getAttribute("dir")}function ol(){const o=di();B$1.forEach(t=>{li(t,o);});}const rl=new MutationObserver(ol);rl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const M$1=o=>class extends o{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(),li(this,di(),null));}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const r=di(),n=s===r&&B$1.indexOf(this)===-1,a=!s&&i&&B$1.indexOf(this)===-1;n||a?(this.__subscribe(),li(this,r,s)):s!==r&&i===r&&this.__unsubscribe();}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=B$1.includes(this),this.__unsubscribe();}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s);}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s);}__subscribe(){B$1.includes(this)||B$1.push(this);}__unsubscribe(){B$1.includes(this)&&B$1.splice(B$1.indexOf(this),1);}};/**
7301
7301
  * @license
7302
7302
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7303
7303
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7304
- */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.');}};/**
7304
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tl();};let Ht$1;const Fs=new Set,F$1=o=>class extends M$1(o){static finalize(){super.finalize();const{is:e}=this;e&&!Fs.has(e)&&(window.Vaadin.registrations.push(this),Fs.add(e),window.Vaadin.developmentModeCallback&&(Ht$1=O.debounce(Ht$1,Wo,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();}),jo(Ht$1)));}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.');}};/**
7305
7305
  * @license
7306
7306
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7307
7307
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7308
- */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()===""}/**
7308
+ */function nl(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode;}return t}function Yo(o){const t=[];let e;return o.localName==="slot"?e=o.assignedElements():(t.push(o),e=[...o.children]),e.forEach(i=>t.push(...Yo(i))),t}function Mi(o){return o?new Set(o.split(" ")):new Set}function vt$1(o){return o?[...o].join(" "):""}function Ko(o,t,e){const i=Mi(o.getAttribute(t));i.add(e),o.setAttribute(t,vt$1(i));}function al(o,t,e){const i=Mi(o.getAttribute(t));if(i.delete(e),i.size===0){o.removeAttribute(t);return}o.setAttribute(t,vt$1(i));}function ll(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
7309
7309
  * @license
7310
7310
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7311
7311
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7312
- */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;}}/**
7312
+ */class zi{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=[],s=[];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&&s.push(r);}),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t;}}/**
7313
7313
  * @license
7314
7314
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7315
7315
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7316
- */let Ra=0;function mi(){return Ra++}/**
7316
+ */let dl=0;function bt$1(){return dl++}/**
7317
7317
  * @license
7318
7318
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7319
7319
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7320
- */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)));});}}/**
7320
+ */class L$1 extends EventTarget{static generateId(t,e="default"){return `${e}-${t.localName}-${bt$1()}`}constructor(t,e,i,s={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;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 s=this.defaultNode;return !s&&i&&(s=document.createElement(i),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}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 zi(i,({addedNodes:s,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!ll(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)));});}}/**
7321
7321
  * @license
7322
7322
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7323
7323
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7324
- */class ue extends R$1{constructor(t){super(t,"tooltip"),this.setTarget(t);}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange();}teardownNode(){this.__notifyChange();}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t);}setContext(t){this.context=t;const e=this.node;e&&(e.context=t);}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t);}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t);}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t);}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t);}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t);}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}));}}/**
7324
+ */class K$1 extends L$1{constructor(t){super(t,"tooltip"),this.setTarget(t);}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange();}teardownNode(){this.__notifyChange();}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t);}setContext(t){this.context=t;const e=this.node;e&&(e.context=t);}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t);}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t);}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t);}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t);}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t);}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}));}}/**
7325
7325
  @license
7326
7326
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7327
7327
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7329,107 +7329,107 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7329
7329
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7330
7330
  Code distributed by Google as part of the polymer project is also
7331
7331
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7332
- */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}));}/**
7332
+ */const hl=o=>o,Go=typeof document.head.style.touchAction=="string",hi="__polymerGestures",Ut="__polymerGesturesHandled",ci="__polymerGesturesTouchAction",Bs=25,Vs=5,cl=2,ul=["mousedown","mousemove","mouseup","click"],pl=[0,1,4,2],_l=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return !1}}();function Ni(o){return ul.indexOf(o)>-1}(function(){try{const o=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o);}catch(o){}})();function ml(o){}const gl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),vl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ie(o){const t=o.type;if(!Ni(t))return !1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!_l&&(i=pl[o.which]||0),!!(i&1)}return (o.button===void 0?0:o.button)===0}function bl(o){if(o.type==="click"){if(o.detail===0)return !0;const t=j(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return !(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return !1}const V$1={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function yl(o){let t="auto";const e=Jo(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[ci]){t=s[ci];break}return t}function Xo(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e);}function pe(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null;}const Jo=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Li={},ee=[];function xl(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i);}return e}function j(o){const t=Jo(o);return t.length>0?t[0]:o.target}function Cl(o){const t=o.type,i=o.currentTarget[hi];if(!i)return;const s=i[t];if(!s)return;if(!o[Ut]&&(o[Ut]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(V$1.touch.id=n.identifier),V$1.touch.id!==n.identifier)return;Go||(t==="touchstart"||t==="touchmove")&&wl(o);}const r=o[Ut];if(!r.skip){for(let n=0,a;n<ee.length;n++)a=ee[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ee.length;n++)a=ee[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o));}}function wl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")V$1.touch.x=t.clientX,V$1.touch.y=t.clientY,V$1.touch.scrollDecided=!1;else if(e==="touchmove"){if(V$1.touch.scrollDecided)return;V$1.touch.scrollDecided=!0;const i=yl(o);let s=!1;const r=Math.abs(V$1.touch.x-t.clientX),n=Math.abs(V$1.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():ut$1("track");}}function N$1(o,t,e){return Li[t]?(Al(o,t,e),!0):!1}function Al(o,t,e){const i=Li[t],s=i.deps,r=i.name;let n=o[hi];n||(o[hi]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(gl&&Ni(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Cl,ml()),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&Qo(o,i.touchAction);}function Fi(o){ee.push(o),o.emits.forEach(t=>{Li[t]=o;});}function El(o){for(let t=0,e;t<ee.length;t++){e=ee[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function Qo(o,t){Go&&o instanceof HTMLElement&&ct$1.run(()=>{o.style.touchAction=t;}),o[ci]=t;}function Bi(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,hl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault();}}function ut$1(o){const t=El(o);t.info&&(t.info.prevent=!0);}Fi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){pe(this.info);},mousedown(o){if(!ie(o))return;const t=j(o),e=this,i=r=>{ie(r)||(Ee("up",t,r),pe(e.info));},s=r=>{ie(r)&&Ee("up",t,r),pe(e.info);};Xo(this.info,i,s),Ee("down",t,o);},touchstart(o){Ee("down",j(o),o.changedTouches[0],o);},touchend(o){Ee("up",j(o),o.changedTouches[0],o);}});function Ee(o,t,e,i){t&&Bi(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return ut$1(s)}});}Fi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>cl&&this.moves.shift(),this.moves.push(o);},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,pe(this.info);},mousedown(o){if(!ie(o))return;const t=j(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Rs(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ut$1("tap"),e.info.addMove({x:n,y:a}),ie(r)||(e.info.state="end",pe(e.info)),t&&qt(e.info,t,r),e.info.started=!0);},s=r=>{e.info.started&&i(r),pe(e.info);};Xo(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY;},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchmove(o){const t=j(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Rs(this.info,i,s)&&(this.info.state==="start"&&ut$1("tap"),this.info.addMove({x:i,y:s}),qt(this.info,t,e),this.info.state="track",this.info.started=!0);},touchend(o){const t=j(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),qt(this.info,t,e));}});function Rs(o,t,e){if(o.prevent)return !1;if(o.started)return !0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=Vs||s>=Vs}function qt(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),Bi(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return xl(e.clientX,e.clientY)}});}Fi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1;},mousedown(o){ie(o)&&(this.info.x=o.clientX,this.info.y=o.clientY);},click(o){ie(o)&&$s(this.info,o);},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchend(o){$s(this.info,o.changedTouches[0],o);}});function $s(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=j(e||t);!r||vl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=Bs&&s<=Bs||bl(t))&&(o.prevent||Bi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}));}/**
7333
7333
  * @license
7334
7334
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7335
7335
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7336
- */const pe=v$1(s=>class extends s{static get properties(){return {disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e);}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled");}click(){this.disabled||super.click();}});/**
7336
+ */const ve=C$1(o=>class extends o{static get properties(){return {disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e);}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled");}click(){this.disabled||super.click();}});/**
7337
7337
  * @license
7338
7338
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7339
7339
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7340
- */const Re=v$1(s=>class extends s{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e);}),this.addEventListener("keyup",e=>{this._onKeyUp(e);});}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
7340
+ */const re=C$1(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e);}),this.addEventListener("keyup",e=>{this._onKeyUp(e);});}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
7341
7341
  * @license
7342
7342
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7343
7343
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7344
- */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);}};/**
7344
+ */const Vi=o=>class extends ve(re(o)){get _activeKeys(){return [" "]}ready(){super.ready(),N$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),N$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);}};/**
7345
7345
  * @license
7346
7346
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7347
7347
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7348
- */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}/**
7348
+ */let Ri=!1;window.addEventListener("keydown",()=>{Ri=!0;},{capture:!0});window.addEventListener("mousedown",()=>{Ri=!1;},{capture:!0});function ui(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function yt$1(){return Ri}function Zo(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function Il(o,t){const e=Math.max(o.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function kl(o,t){const e=[];for(;o.length>0&&t.length>0;)Il(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function pi(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),i=pi(o.slice(0,e)),s=pi(o.slice(e));return kl(i,s)}function _i(o){return o.offsetParent===null&&o.clientWidth===0&&o.clientHeight===0?!0:Zo(o)}function $i(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Hi(o){return o.getRootNode().activeElement===o}function Sl(o){if(!$i(o))return -1;const t=o.getAttribute("tabindex")||0;return Number(t)}function er(o,t){if(o.nodeType!==Node.ELEMENT_NODE||Zo(o))return !1;const e=o,i=Sl(e);let s=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=>{s=er(n,t)||s;}),s}function Pl(o){const t=[];return er(o,t)?pi(t):t}/**
7349
7349
  * @license
7350
7350
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7351
7351
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7352
- */const _e=v$1(s=>class extends s{get _keyboardActive(){return ct$1()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0);}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1);}),super.ready();}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1);}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive);}_shouldSetFocus(e){return !0}_shouldRemoveFocus(e){return !0}});/**
7352
+ */const ne=C$1(o=>class extends o{get _keyboardActive(){return yt$1()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0);}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1);}),super.ready();}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1);}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive);}_shouldSetFocus(e){return !0}_shouldRemoveFocus(e){return !0}});/**
7353
7353
  * @license
7354
7354
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7355
7355
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7356
- */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);}};/**
7356
+ */const tr=o=>class extends ve(o){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);}};/**
7357
7357
  * @license
7358
7358
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7359
7359
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7360
- */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);}});/**
7360
+ */const xt$1=C$1(o=>class extends ne(tr(o)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,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);}});/**
7361
7361
  * @license
7362
7362
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7363
7363
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7364
- */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);}});/**
7364
+ */const Ui=C$1(o=>class extends o{static get properties(){return {stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return []}static get delegateProps(){return []}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver();}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated());}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`);}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`);}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e]);});}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e]);});}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,e[s]);});}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s]);});}_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);}});/**
7365
7365
  * @license
7366
7366
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7367
7367
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7368
- */const He=v$1(s=>class extends s{static get properties(){return {inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this);}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return "value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e);}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue="";}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange);}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange);}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"");}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i);}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"));}__onInput(e){this._setHasInputValue(e),this._onInput(e);}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1;}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e);}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e));}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0;}});/**
7368
+ */const We=C$1(o=>class extends o{static get properties(){return {inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this);}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return "value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e);}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue="";}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange);}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange);}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"");}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i);}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"));}__onInput(e){this._setHasInputValue(e),this._onInput(e);}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1;}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e);}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e));}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0;}});/**
7369
7369
  * @license
7370
7370
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7371
7371
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7372
- */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;}});/**
7372
+ */const Tl=C$1(o=>class extends Ui(ve(We(o))){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;}});/**
7373
7373
  * @license
7374
7374
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7375
7375
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7376
- */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);}/**
7376
+ */const Wt=new Map;function qi(o){return Wt.has(o)||Wt.set(o,new WeakMap),Wt.get(o)}function ir(o,t){o&&o.removeAttribute(t);}function sr(o,t){if(!o||!t)return;const e=qi(t);if(e.has(o))return;const i=Mi(o.getAttribute(t));e.set(o,new Set(i));}function Dl(o,t){if(!o)return;const e=qi(t),i=e.get(o);!i||i.size===0?o.removeAttribute(t):Ko(o,t,vt$1(i)),e.delete(o);}function ot$1(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:i,oldId:s,fromUser:r}=e,n=qi(t),a=n.get(o);if(!r&&a){s&&a.delete(s),i&&a.add(i);return}r&&(a?i||n.delete(o):sr(o,t),ir(o,t)),al(o,t,s);const l=i||vt$1(a);l&&Ko(o,t,l);}function Ol(o,t){sr(o,t),ir(o,t);}/**
7377
7377
  * @license
7378
7378
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7379
7379
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7380
- */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")));}}/**
7380
+ */class Ml{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?(Ol(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){ot$1(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){ot$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){ot$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")));}}/**
7381
7381
  * @license
7382
7382
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7383
7383
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7384
- */const Z$1=v$1(s=>typeof s.prototype.addController=="function"?s:class extends s{constructor(){super(),this.__controllers=new Set;}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected();});}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected();});}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected();}removeController(e){this.__controllers.delete(e);}});/**
7384
+ */const G$1=C$1(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set;}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected();});}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected();});}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected();}removeController(e){this.__controllers.delete(e);}});/**
7385
7385
  * @license
7386
7386
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7387
7387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7388
- */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);}/**
7388
+ */const z$1=document.createElement("div");z$1.style.position="fixed";z$1.style.clip="rect(0px, 0px, 0px, 0px)";z$1.setAttribute("aria-live","polite");document.body.appendChild(z$1);let Xe;function rt$1(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(z$1.removeAttribute("aria-live"),z$1.removeAttribute("role"),Xe=O.debounce(Xe,$e,()=>{z$1.setAttribute("role","alert");})):(Xe&&Xe.cancel(),z$1.removeAttribute("role"),z$1.setAttribute("aria-live",e)),z$1.textContent="",setTimeout(()=>{z$1.textContent=o;},i);}/**
7389
7389
  * @license
7390
7390
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7391
7391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7392
- */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);}}/**
7392
+ */class Wi extends L$1{constructor(t,e,i,s={}){super(t,e,i,zt(ye({},s),{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 s=i.target,r=s===this.node;i.type==="attributes"?r&&this.__updateNodeId(s):(r||s.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);}}/**
7393
7393
  * @license
7394
7394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7395
7395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7396
- */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);}}/**
7396
+ */class zl extends Wi{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,s=!!(i&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s&&rt$1(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
7397
7397
  * @license
7398
7398
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7399
7399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7400
- */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);}}/**
7400
+ */class Nl extends Wi{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);}}/**
7401
7401
  * @license
7402
7402
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7403
7403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7404
- */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);}}/**
7404
+ */class or extends Wi{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);}}/**
7405
7405
  * @license
7406
7406
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7407
7407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7408
- */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);}});/**
7408
+ */const Ll=C$1(o=>class extends G$1(o){static get properties(){return {label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new or(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);}});/**
7409
7409
  * @license
7410
7410
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7411
7411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7412
- */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}});/**
7412
+ */const ji=C$1(o=>class extends o{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}});/**
7413
7413
  * @license
7414
7414
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7415
7415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7416
- */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);});}};/**
7416
+ */const Ct$1=o=>class extends ji(Ll(G$1(o))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Ml(this),this._helperController=new Nl(this),this._errorController=new zl(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:s}=e.detail;this.__labelChanged(i,s);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s);});}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);});}};/**
7417
7417
  * @license
7418
7418
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7419
7419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7420
- */class ut$1 extends R$1{constructor(t,e,i={}){const{uniqueIdPrefix:o}=i;super(t,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof e=="function"&&e(r);},useUniqueId:!0,uniqueIdPrefix:o});}}/**
7420
+ */class je extends L$1{constructor(t,e,i={}){const{uniqueIdPrefix:s}=i;super(t,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof e=="function"&&e(r);},useUniqueId:!0,uniqueIdPrefix:s});}}/**
7421
7421
  * @license
7422
7422
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7423
7423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7424
- */class pt$1{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node);}),this.__initLabel(e.node);}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id));}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t);};this.input.addEventListener("click",t);}}/**
7424
+ */class Ye{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node);}),this.__initLabel(e.node);}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id));}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t);};this.input.addEventListener("click",t);}}/**
7425
7425
  * @license
7426
7426
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7427
7427
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7428
- */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();}};/**
7428
+ */const Fl=o=>class extends Ct$1(Tl(xt$1(Vi(o)))){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 je(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Ye(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();}};/**
7429
7429
  * @license
7430
7430
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7431
7431
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7432
- */const vl=_$1`
7432
+ */const Bl=p$1`
7433
7433
  :host {
7434
7434
  display: inline-block;
7435
7435
  }
@@ -7521,7 +7521,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7521
7521
  * @license
7522
7522
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7523
7523
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7524
- */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`
7524
+ */_$1("vaadin-checkbox",Bl,{moduleId:"vaadin-checkbox-styles"});class Vl extends Fl(F$1(x(y$1))){static get is(){return "vaadin-checkbox"}static get template(){return b$1`
7525
7525
  <div class="vaadin-checkbox-container">
7526
7526
  <div part="checkbox" aria-hidden="true"></div>
7527
7527
  <slot name="input"></slot>
@@ -7537,11 +7537,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7537
7537
  </div>
7538
7538
  </div>
7539
7539
  <slot name="tooltip"></slot>
7540
- `}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(bl);/**
7540
+ `}ready(){super.ready(),this._tooltipController=new K$1(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}g$1(Vl);/**
7541
7541
  * @license
7542
7542
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7543
7543
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7544
- */const Vo=_$1`
7544
+ */const rr=p$1`
7545
7545
  :host {
7546
7546
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
7547
7547
  }
@@ -7601,7 +7601,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7601
7601
  * @license
7602
7602
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7603
7603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7604
- */const Ti=_$1`
7604
+ */const Yi=p$1`
7605
7605
  [part='label'] {
7606
7606
  align-self: flex-start;
7607
7607
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -7713,7 +7713,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7713
7713
  margin-left: 0;
7714
7714
  margin-right: calc(var(--lumo-border-radius-m) / 4);
7715
7715
  }
7716
- `;m$1("",Ti,{moduleId:"lumo-required-field"});const yl=_$1`
7716
+ `;_$1("",Yi,{moduleId:"lumo-required-field"});const Rl=p$1`
7717
7717
  :host {
7718
7718
  color: var(--lumo-body-text-color);
7719
7719
  font-size: var(--lumo-font-size-m);
@@ -7756,15 +7756,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7756
7756
  color: var(--lumo-secondary-text-color);
7757
7757
  }
7758
7758
  }
7759
- `;m$1("vaadin-checkbox-group",[Ti,Vo,yl],{moduleId:"lumo-checkbox-group"});/**
7759
+ `;_$1("vaadin-checkbox-group",[Yi,rr,Rl],{moduleId:"lumo-checkbox-group"});/**
7760
7760
  * @license
7761
7761
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7762
7762
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7763
- */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();}};/**
7763
+ */const $l=o=>class extends Ct$1(ne(ve(o))){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 K$1(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const s=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(s);}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 zi(e,({addedNodes:i,removedNodes:s})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(s);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(s=>{const{value:r}=s;return !s.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(s=>{s.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(s=>{s.checked=e&&e.includes(s.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(s=>{s.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
7764
7764
  * @license
7765
7765
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7766
7766
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7767
- */const wl=_$1`
7767
+ */const Hl=p$1`
7768
7768
  :host {
7769
7769
  display: inline-flex;
7770
7770
  }
@@ -7797,7 +7797,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7797
7797
  * @license
7798
7798
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7799
7799
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7800
- */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`
7800
+ */_$1("vaadin-checkbox-group",Hl,{moduleId:"vaadin-checkbox-group-styles"});class Ul extends $l(F$1(x(y$1))){static get is(){return "vaadin-checkbox-group"}static get template(){return b$1`
7801
7801
  <div class="vaadin-group-field-container">
7802
7802
  <div part="label">
7803
7803
  <slot name="label"></slot>
@@ -7818,11 +7818,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7818
7818
  </div>
7819
7819
 
7820
7820
  <slot name="tooltip"></slot>
7821
- `}}y$1(Cl);/**
7821
+ `}}g$1(Ul);/**
7822
7822
  * @license
7823
7823
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7824
7824
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7825
- */const Ii=_$1`
7825
+ */const wt$1=p$1`
7826
7826
  :host {
7827
7827
  top: var(--lumo-space-m);
7828
7828
  right: var(--lumo-space-m);
@@ -7887,11 +7887,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7887
7887
  opacity: 1;
7888
7888
  }
7889
7889
  }
7890
- `;m$1("",Ii,{moduleId:"lumo-overlay"});/**
7890
+ `;_$1("",wt$1,{moduleId:"lumo-overlay"});/**
7891
7891
  * @license
7892
7892
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7893
7893
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7894
- */const Di=_$1`
7894
+ */const At$1=p$1`
7895
7895
  :host([opening]),
7896
7896
  :host([closing]) {
7897
7897
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -7921,7 +7921,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7921
7921
  opacity: 0;
7922
7922
  }
7923
7923
  }
7924
- `;m$1("",Di,{moduleId:"lumo-menu-overlay-core"});const Al=_$1`
7924
+ `;_$1("",At$1,{moduleId:"lumo-menu-overlay-core"});const ql=p$1`
7925
7925
  /* Small viewport (bottom sheet) styles */
7926
7926
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
7927
7927
  @media (max-width: 450px), (max-height: 450px) {
@@ -7983,7 +7983,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7983
7983
  transform: translateY(150%);
7984
7984
  }
7985
7985
  }
7986
- `,Bo=[Ii,Di,Al];m$1("",Bo,{moduleId:"lumo-menu-overlay"});const El=_$1`
7986
+ `,Ki=[wt$1,At$1,ql];_$1("",Ki,{moduleId:"lumo-menu-overlay"});const Wl=p$1`
7987
7987
  [part='overlay'] {
7988
7988
  /*
7989
7989
  Width:
@@ -8028,7 +8028,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8028
8028
  max-height: 70vh;
8029
8029
  }
8030
8030
  }
8031
- `;m$1("vaadin-date-picker-overlay",[Bo,El],{moduleId:"lumo-date-picker-overlay"});const Ro=_$1`
8031
+ `;_$1("vaadin-date-picker-overlay",[Ki,Wl],{moduleId:"lumo-date-picker-overlay"});const nr=p$1`
8032
8032
  :host {
8033
8033
  /* Sizing */
8034
8034
  --lumo-button-size: var(--lumo-size-m);
@@ -8304,7 +8304,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8304
8304
  margin-left: 0;
8305
8305
  margin-right: 0;
8306
8306
  }
8307
- `;m$1("vaadin-button",Ro,{moduleId:"lumo-button"});m$1("vaadin-date-picker-year",_$1`
8307
+ `;_$1("vaadin-button",nr,{moduleId:"lumo-button"});_$1("vaadin-date-picker-year",p$1`
8308
8308
  :host([current]) [part='year-number'] {
8309
8309
  color: var(--lumo-primary-text-color);
8310
8310
  }
@@ -8328,7 +8328,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8328
8328
  color: var(--lumo-disabled-text-color);
8329
8329
  content: '\\2022';
8330
8330
  }
8331
- `,{moduleId:"lumo-date-picker-year"});m$1("vaadin-date-picker-overlay-content",_$1`
8331
+ `,{moduleId:"lumo-date-picker-year"});_$1("vaadin-date-picker-overlay-content",p$1`
8332
8332
  :host {
8333
8333
  position: relative;
8334
8334
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -8478,7 +8478,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8478
8478
  padding-left: 50px;
8479
8479
  }
8480
8480
  }
8481
- `,{moduleId:"lumo-date-picker-overlay-content"});m$1("vaadin-month-calendar",_$1`
8481
+ `,{moduleId:"lumo-date-picker-overlay-content"});_$1("vaadin-month-calendar",p$1`
8482
8482
  :host {
8483
8483
  -moz-user-select: none;
8484
8484
  -webkit-user-select: none;
@@ -8625,7 +8625,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8625
8625
  :host([disabled]) * {
8626
8626
  color: var(--lumo-disabled-text-color) !important;
8627
8627
  }
8628
- `,{moduleId:"lumo-month-calendar"});m$1("vaadin-input-container",_$1`
8628
+ `,{moduleId:"lumo-month-calendar"});_$1("vaadin-input-container",p$1`
8629
8629
  :host {
8630
8630
  background: var(--_background);
8631
8631
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -8807,7 +8807,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8807
8807
  * @license
8808
8808
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8809
8809
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8810
- */const Ho=_$1`
8810
+ */const Gi=p$1`
8811
8811
  [part$='button'] {
8812
8812
  flex: none;
8813
8813
  width: 1em;
@@ -8834,11 +8834,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8834
8834
  font-family: 'lumo-icons';
8835
8835
  display: block;
8836
8836
  }
8837
- `;m$1("",Ho,{moduleId:"lumo-field-button"});/**
8837
+ `;_$1("",Gi,{moduleId:"lumo-field-button"});/**
8838
8838
  * @license
8839
8839
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8840
8840
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8841
- */const Pl=_$1`
8841
+ */const jl=p$1`
8842
8842
  :host {
8843
8843
  --lumo-text-field-size: var(--lumo-size-m);
8844
8844
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -8969,7 +8969,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8969
8969
  [part='clear-button']::before {
8970
8970
  content: var(--lumo-icons-cross);
8971
8971
  }
8972
- `,$e=[Ti,Ho,Vo,Pl];m$1("",$e,{moduleId:"lumo-input-field-shared-styles"});const kl=_$1`
8972
+ `,ae=[Yi,Gi,rr,jl];_$1("",ae,{moduleId:"lumo-input-field-shared-styles"});const Yl=p$1`
8973
8973
  [part='toggle-button']::before {
8974
8974
  content: var(--lumo-icons-calendar);
8975
8975
  }
@@ -8991,15 +8991,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8991
8991
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
8992
8992
  --_lumo-text-field-overflow-mask-image: none;
8993
8993
  }
8994
- `;m$1("vaadin-date-picker",[$e,kl],{moduleId:"lumo-date-picker"});/**
8994
+ `;_$1("vaadin-date-picker",[ae,Yl],{moduleId:"lumo-date-picker"});/**
8995
8995
  * @license
8996
8996
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
8997
8997
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8998
- */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());});}};/**
8998
+ */const Kl=o=>class extends o{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());});}};/**
8999
8999
  * @license
9000
9000
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9001
9001
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9002
- */const Tl=_$1`
9002
+ */const Gl=p$1`
9003
9003
  :host {
9004
9004
  display: flex;
9005
9005
  align-items: center;
@@ -9068,15 +9068,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9068
9068
  * @license
9069
9069
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9070
9070
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9071
- */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`
9071
+ */_$1("vaadin-input-container",Gl,{moduleId:"vaadin-input-container-styles"});class ar extends Kl(x(M$1(y$1))){static get is(){return "vaadin-input-container"}static get template(){return b$1`
9072
9072
  <slot name="prefix"></slot>
9073
9073
  <slot></slot>
9074
9074
  <slot name="suffix"></slot>
9075
- `}}y$1(Il);/**
9075
+ `}}g$1(ar);/**
9076
9076
  * @license
9077
9077
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9078
9078
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9079
- */const $o=_$1`
9079
+ */const Et$1=p$1`
9080
9080
  :host {
9081
9081
  z-index: 200;
9082
9082
  position: fixed;
@@ -9143,55 +9143,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9143
9143
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9144
9144
  Code distributed by Google as part of the polymer project is also
9145
9145
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9146
- */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]);}/**
9146
+ */let fi=!1,Xl=[],lr=[];function Jl(){fi=!0,requestAnimationFrame(function(){fi=!1,Ql(Xl),setTimeout(function(){Zl(lr);});});}function Ql(o){for(;o.length;)dr(o.shift());}function Zl(o){for(let t=0,e=o.length;t<e;t++)dr(o.shift());}function dr(o){const t=o[0],e=o[1],i=o[2];try{e.apply(t,i);}catch(s){setTimeout(()=>{throw s});}}function hr(o,t,e){fi||Jl(),lr.push([o,t,e]);}/**
9147
9147
  * @license
9148
9148
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9149
9149
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9150
- */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}})();/**
9150
+ */const It=o=>o.test(navigator.userAgent),mi=o=>o.test(navigator.platform),ed=o=>o.test(navigator.vendor);It(/Android/u);It(/Chrome/u)&&ed(/Google Inc/u);It(/Firefox/u);const td=mi(/^iPad/u)||mi(/^Mac/u)&&navigator.maxTouchPoints>1,id=mi(/^iPhone/u),Xi=id||td,sd=It(/^((?!chrome|android).)*safari/iu),gi=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return !1}})();/**
9151
9151
  * @license
9152
9152
  * Copyright (c) 2017 Anton Korzunov
9153
9153
  * SPDX-License-Identifier: MIT
9154
- */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")};/**
9154
+ */let le=new WeakMap,Je=new WeakMap,Qe={},jt$1=0;const Hs=o=>o&&o.nodeType===Node.ELEMENT_NODE,Yt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`);},od=(o,t)=>Hs(o)?t.map(e=>{if(!Hs(e))return Yt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host;}return Yt(e,"is not contained inside",o),null}).filter(e=>!!e):(Yt(o,"is not a valid element"),[]),rd=(o,t,e,i)=>{const s=od(t,Array.isArray(o)?o:[o]);Qe[e]||(Qe[e]=new WeakMap);const r=Qe[e],n=[],a=new Set,l=new Set(s),d=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&d(u),d(c.parentNode||c.host);};s.forEach(d);const h=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(a.has(m))h(m);else {const S=m.getAttribute(i),P=S!==null&&S!=="false",A=(le.get(m)||0)+1,w=(r.get(m)||0)+1;le.set(m,A),r.set(m,w),n.push(m),A===1&&P&&Je.set(m,!0),w===1&&m.setAttribute(e,"true"),P||m.setAttribute(i,"true");}});};return h(t),a.clear(),jt$1+=1,()=>{n.forEach(c=>{const u=le.get(c)-1,f=r.get(c)-1;le.set(c,u),r.set(c,f),u||(Je.has(c)?Je.delete(c):c.removeAttribute(i)),f||c.removeAttribute(e);}),jt$1-=1,jt$1||(le=new WeakMap,le=new WeakMap,Je=new WeakMap,Qe={});}},cr=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),rd(i,t,e,"aria-hidden")};/**
9155
9155
  * @license
9156
9156
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9157
9157
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9158
- */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);}}/**
9158
+ */class nd{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t;}showModal(){const t=this.callback();this.__showOthers=cr(t);}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null);}}/**
9159
9159
  * @license
9160
9160
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9161
9161
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9162
- */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;}}/**
9162
+ */class ad{saveFocus(t){this.focusNode=t||ui();}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;ui()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null;}}/**
9163
9163
  * @license
9164
9164
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9165
9165
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9166
- */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();}}/**
9166
+ */const Kt=[];class ld{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return Pl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Hi).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.");Kt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Kt.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Kt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,s=this.__focusedElementIndex,r=(e.length+s+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
9167
9167
  * @license
9168
9168
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9169
9169
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9170
- */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}};/**
9170
+ */const dd=o=>class extends G$1(o){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new nd(this),this.__focusTrapController=new ld(this),this.__focusRestorationController=new ad;}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=!yt$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=ui();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const s=e.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
9171
9171
  * @license
9172
9172
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9173
9173
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9174
- */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)););}};/**
9174
+ */const ur=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),vi=()=>ur().filter(o=>o.$.overlay),hd=o=>o===vi().pop(),pr=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return hd(this)}bringToFront(){let e="";const i=ur().filter(s=>s!==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"),vi().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=vi();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
9175
9175
  * @license
9176
9176
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9177
9177
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9178
- */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);}}};/**
9178
+ */const kt$1=o=>class extends dd(pr(o)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Xi&&(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,s=window.innerWidth>e,r=document.documentElement.clientHeight;s&&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,s,r){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,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(),hr(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s);}),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 s=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[s]);};this[s]=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);}}};/**
9179
9179
  * @license
9180
9180
  * Copyright (c) 2024 Vaadin Ltd.
9181
9181
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9182
- */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}/**
9182
+ */function cd(o,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null;}function r(n=!1,a=1){s();const{left:l,top:d,width:h,height:c}=o.getBoundingClientRect();if(n||t(),!h||!c)return;const u=Math.floor(d),f=Math.floor(i.clientWidth-(l+h)),m=Math.floor(i.clientHeight-(d+c)),S=Math.floor(l),A={rootMargin:`${-u}px ${-f}px ${-m}px ${-S}px`,threshold:Math.max(0,Math.min(1,a))||1};let w=!0;function H(be){let J=be[0].intersectionRatio;if(J!==a){if(!w)return r();J===0&&(J=1e-7),r(!1,J);}w=!1;}e=new IntersectionObserver(H,A),e.observe(o);}return r(!0),s}/**
9183
9183
  * @license
9184
9184
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9185
9185
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9186
- */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]:""}}};/**
9186
+ */const Gt={start:"top",end:"bottom"},Xt={start:"left",end:"right"},Us=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Ji=o=>class extends o{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=nl(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=cd(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,Us.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Us.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[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 s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Gt,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Xt,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 s=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,s,r,this.__margins,n,this.noHorizontalOverlap,Xt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,Gt)}__shouldAlignStart(e,i,s,r,n,a,l){const d=s-e[a?l.end:l.start]-r[l.end],h=e[a?l.start:l.end]-r[l.start],c=n?d:h,f=c>(n?h:d)||c>i;return n===f}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===Gt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a;}this.__oldViewportHeight=n;}if(i.end===Xt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,s,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[s===a?r.end:r.start],f=c?`${c}px`:`${h+u*(a?-1:1)}px`;return {[l]:f,[d]:""}}};/**
9187
9187
  * @license
9188
9188
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
9189
9189
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9190
- */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();}};/**
9190
+ */const ud=o=>class extends Ji(kt$1(o)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!$i(e.composedPath()[0])&&e.preventDefault();}};/**
9191
9191
  * @license
9192
9192
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9193
9193
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9194
- */const Kl=_$1`
9194
+ */const pd=p$1`
9195
9195
  [part='overlay'] {
9196
9196
  display: flex;
9197
9197
  flex: auto;
@@ -9210,18 +9210,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9210
9210
  * @license
9211
9211
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9212
9212
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9213
- */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`
9213
+ */_$1("vaadin-date-picker-overlay",[Et$1,pd],{moduleId:"vaadin-date-picker-overlay-styles"});class _d extends ud(M$1(x(y$1))){static get is(){return "vaadin-date-picker-overlay"}static get template(){return b$1`
9214
9214
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
9215
9215
  <div part="overlay" id="overlay">
9216
9216
  <div part="content" id="content">
9217
9217
  <slot></slot>
9218
9218
  </div>
9219
9219
  </div>
9220
- `}}y$1(Xl);/**
9220
+ `}}g$1(_d);/**
9221
9221
  * @license
9222
9222
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9223
9223
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9224
- */const Jo=_$1`
9224
+ */const _r=p$1`
9225
9225
  :host {
9226
9226
  display: inline-block;
9227
9227
  position: relative;
@@ -9281,7 +9281,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9281
9281
  outline-color: GrayText;
9282
9282
  }
9283
9283
  }
9284
- `,Jl=s=>s`
9284
+ `,fd=o=>o`
9285
9285
  <div class="vaadin-button-container">
9286
9286
  <span part="prefix" aria-hidden="true">
9287
9287
  <slot name="prefix"></slot>
@@ -9298,15 +9298,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9298
9298
  * @license
9299
9299
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9300
9300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9301
- */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());}};/**
9301
+ */const Qi=o=>class extends Vi(tr(ne(o))){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());}};/**
9302
9302
  * @license
9303
9303
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9304
9304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9305
- */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);/**
9305
+ */_$1("vaadin-button",_r,{moduleId:"vaadin-button-styles"});class md extends Qi(F$1(x(G$1(y$1)))){static get is(){return "vaadin-button"}static get template(){return fd(b$1)}ready(){super.ready(),this._tooltipController=new K$1(this),this.addController(this._tooltipController);}}g$1(md);/**
9306
9306
  * @license
9307
9307
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9308
9308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9309
- */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()}):""}/**
9309
+ */function gd(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function bi(o){const t=new Date(o);return t.setHours(0,0,0,0),t}function $$1(o,t,e=bi){return o instanceof Date&&t instanceof Date&&e(o).getTime()===e(t).getTime()}function Zi(o){return {day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function me(o,t,e,i){let s=!1;if(typeof i=="function"&&o){const r=Zi(o);s=i(r);}return (!t||o>=t)&&(!e||o<=e)&&!s}function fr(o,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const s=Math.abs(o.getTime()-i.getTime()),r=Math.abs(e.getTime()-o.getTime());return s<r?i:e})}function mr(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function vd(o,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 s=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(s-50,e,i)?s-=100:o>new Date(s+50,e,i)&&(s+=100),s}function Ie(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function bd(o){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",s=o.year;s<0?(s=-s,e="-",i="000000"):o.year>=1e4&&(e="+",i="000000");const r=e+t(s,i),n=t(o.month+1),a=t(o.day);return [r,n,a].join("-")}function yd(o){return o instanceof Date?bd({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
9310
9310
  @license
9311
9311
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9312
9312
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9314,7 +9314,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9314
9314
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9315
9315
  Code distributed by Google as part of the polymer project is also
9316
9316
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9317
- */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};/**
9317
+ */class pt$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,Ue.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Ue.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof pt$1?t._cancelAsync():t=new pt$1,t.setConfig(e,i),t}}let Ue=new Set;const xd=function(o){Ue.add(o);},Cd=function(){const o=!!Ue.size;return Ue.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),o};/**
9318
9318
  @license
9319
9319
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9320
9320
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9322,11 +9322,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9322
9322
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9323
9323
  Code distributed by Google as part of the polymer project is also
9324
9324
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9325
- */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)};/**
9325
+ */const es=function(){let o,t;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=Cd();while(o||t)};/**
9326
9326
  * @license
9327
9327
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9328
9328
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9329
- */const tr=document.createElement("template");tr.innerHTML=`
9329
+ */const gr=document.createElement("template");gr.innerHTML=`
9330
9330
  <style>
9331
9331
  :host {
9332
9332
  display: block;
@@ -9376,11 +9376,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9376
9376
  <div class="buffer"></div>
9377
9377
  <div id="fullHeight"></div>
9378
9378
  </div>
9379
- `;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}}/**
9379
+ `;class vr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(gr.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()),es();}_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,s=t<this._buffers[0].translateY+e;(i||s)&&(this._translateBuffer(s),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,W$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,W$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 s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const r=`vaadin-infinite-scroller-item-content-${bt$1()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=s,e.appendChild(n),s.setAttribute("slot",r),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s);}}),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,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...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}}/**
9380
9380
  * @license
9381
9381
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9382
9382
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9383
- */const sr=document.createElement("template");sr.innerHTML=`
9383
+ */const br=document.createElement("template");br.innerHTML=`
9384
9384
  <style>
9385
9385
  :host {
9386
9386
  --vaadin-infinite-scroller-item-height: 270px;
@@ -9392,11 +9392,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9392
9392
  height: 100%;
9393
9393
  }
9394
9394
  </style>
9395
- `;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);/**
9395
+ `;class wd extends vr{static get is(){return "vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(br.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=mr(e);}}g$1(wd);/**
9396
9396
  * @license
9397
9397
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9398
9398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9399
- */const or=document.createElement("template");or.innerHTML=`
9399
+ */const yr=document.createElement("template");yr.innerHTML=`
9400
9400
  <style>
9401
9401
  :host {
9402
9402
  --vaadin-infinite-scroller-item-height: 80px;
@@ -9430,15 +9430,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9430
9430
  border-left-color: #000;
9431
9431
  }
9432
9432
  </style>
9433
- `;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);/**
9433
+ `;class Ad extends vr{static get is(){return "vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(yr.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()}}g$1(Ad);/**
9434
9434
  * @license
9435
9435
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9436
9436
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9437
- */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());}};/**
9437
+ */const Ed=o=>class extends o{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());}};/**
9438
9438
  * @license
9439
9439
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9440
9440
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9441
- */class ld extends I$1(ad(k$1)){static get is(){return "vaadin-date-picker-year"}static get template(){return P`
9441
+ */class Id extends x(Ed(y$1)){static get is(){return "vaadin-date-picker-year"}static get template(){return b$1`
9442
9442
  <style>
9443
9443
  :host {
9444
9444
  display: block;
@@ -9447,7 +9447,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9447
9447
  </style>
9448
9448
  <div part="year-number">[[year]]</div>
9449
9449
  <div part="year-separator" aria-hidden="true"></div>
9450
- `}}y$1(ld);/**
9450
+ `}}g$1(Id);/**
9451
9451
  @license
9452
9452
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9453
9453
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9455,7 +9455,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9455
9455
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9456
9456
  Code distributed by Google as part of the polymer project is also
9457
9457
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9458
- */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;/**
9458
+ */function ts(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const is=C$1(o=>{class t extends o{_shouldPropertyChange(i,s,r){return ts(this,i,s,r,!0)}}return t}),kd=C$1(o=>{class t extends o{static get properties(){return {mutableData:Boolean}}_shouldPropertyChange(i,s,r){return ts(this,i,s,r,this.mutableData)}}return t});is._mutablePropertyChange=ts;/**
9459
9459
  @license
9460
9460
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9461
9461
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9463,7 +9463,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9463
9463
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9464
9464
  Code distributed by Google as part of the polymer project is also
9465
9465
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9466
- */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}/**
9466
+ */let yi=null;function xi(){return yi}xi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:xi,writable:!0}});const xr=Oi(xi),Sd=is(xr);function Pd(o,t){yi=o,Object.setPrototypeOf(o,t.prototype),new t,yi=null;}const Td=Oi(class{});function Dd(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),k$1(k$1(i).parentNode).replaceChild(i.__polymerReplaced__,i);else {const s=i.__polymerReplaced__;s&&k$1(k$1(s).parentNode).replaceChild(i,s);}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o);}}class X$1 extends Td{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__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,s=>{s.model=this,i(s);});else {let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i);}}_showHideChildren(t){Dd(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 Od=is(X$1);function qs(o){let t=o.__dataHost;return t&&t._methodHost||t}function Md(o,t,e){let i=e.mutableData?Od:X$1;Ci.mixin&&(i=Ci.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),Ld(s,o,t,e),s}function zd(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?Sd:xr;class d extends l{}n=t.templatizeTemplateClass=d;}else {const l=o.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:Nd(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);yo&&i&&Vd(t,e,i);}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)Pd(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else {Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d;}}}}function Nd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s]);}}function Ld(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Fd(r,n)});}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Bd()});}function Fd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s]);}}function Bd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0);}}function Ci(o,t,e){if(dt$1&&!qs(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:X$1)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=Md(o,s,e),s.templatizeInstanceClass=r);const n=qs(o);zd(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function Vd(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[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 Rd(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=k$1(t).parentNode;return null}/**
9467
9467
  @license
9468
9468
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9469
9469
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9471,7 +9471,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9471
9471
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9472
9472
  Code distributed by Google as part of the polymer project is also
9473
9473
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9474
- */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}/**
9474
+ */let Ws=!1;function $d(){if(bo&&!vo){if(!Ws){Ws=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o);}return !0}return !1}/**
9475
9475
  @license
9476
9476
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9477
9477
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9479,15 +9479,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9479
9479
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9480
9480
  Code distributed by Google as part of the polymer project is also
9481
9481
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9482
- */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);/**
9482
+ */const Hd=kd(y$1);class js extends Hd{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:!vs,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(),$d()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=k$1(k$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 s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ci(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r);},notifyInstanceProp:function(s,r,n){if(Hn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Be(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=pt$1.debounce(this.__renderDebouncer,e>0?Kn.after(e):To,t.bind(this)),xd(this.__renderDebouncer);}render(){this.__debounceRender(this.__render),es();}__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),(!vs||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,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===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 s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[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=k$1(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];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 s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return k$1(k$1(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t);}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+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 Rd(this.template,t)}}customElements.define(js.is,js);/**
9483
9483
  * @license
9484
9484
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9485
9485
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9486
- */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}};/**
9486
+ */const Ud=o=>class extends ne(o){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},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=>$$1(e.date,this.focusedDate))}ready(){super.ready(),N$1(this.$.monthGrid,"tap",this._handleTap.bind(this));}_isDisabled(e,i,s){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&&s&&i.getMonth()===s.getMonth()&&i.getMonth()===e.getMonth()&&s.getDate()-i.getDate()>=0?!1:!me(r,i,s)&&!me(n,i,s)}_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:s,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(s,n).map((d,h)=>({weekDay:d,weekDayShort:a[h]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(s=>$$1(s,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 $$1(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return [];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==i.firstDayOfWeek;)this._dateAdd(s,-1);const r=[],n=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===n;)r.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return r}_getWeeks(e){return e.reduce((i,s,r)=>(r%7===0&&i.push([]),i[i.length-1].push(s),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((s,r)=>!s&&r?r:s);return gd(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}};/**
9487
9487
  * @license
9488
9488
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9489
9489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9490
- */const Pd=_$1`
9490
+ */const qd=p$1`
9491
9491
  :host {
9492
9492
  display: block;
9493
9493
  }
@@ -9547,7 +9547,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9547
9547
  * @license
9548
9548
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9549
9549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9550
- */m$1("vaadin-month-calendar",Pd,{moduleId:"vaadin-month-calendar-styles"});class kd extends Ed(I$1(k$1)){static get template(){return P`
9550
+ */_$1("vaadin-month-calendar",qd,{moduleId:"vaadin-month-calendar-styles"});class Wd extends Ud(x(y$1)){static get template(){return b$1`
9551
9551
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
9552
9552
  <table
9553
9553
  id="monthGrid"
@@ -9589,19 +9589,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9589
9589
  </template>
9590
9590
  </tbody>
9591
9591
  </table>
9592
- `}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);/**
9592
+ `}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,s,r,n){const a=["date"],l=t>bi(new Date),d=t<bi(new Date);return this.__isDayDisabled(t,s,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 $$1(t,e)}__isDaySelected(t,e){return $$1(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return "true"}__isDayDisabled(t,e,i,s){return !me(t,e,i,s)}__getDayAriaDisabled(t,e,i,s){if(!(t===void 0||e===void 0&&i===void 0&&s===void 0)&&this.__isDayDisabled(t,e,i,s))return "true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}g$1(Wd);/**
9593
9593
  * @license
9594
9594
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9595
9595
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9596
- */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);}}/**
9596
+ */class ss{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);}}/**
9597
9597
  * @license
9598
9598
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9599
9599
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9600
- */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}};/**
9600
+ */const jd=o=>class extends o{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},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(){Qo(this.$.scrollers,"pan-y"),N$1(this.$.scrollers,"track",this._track.bind(this)),N$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),N$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),N$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new ss(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new L$1(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),N$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new L$1(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),N$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 s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new L$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(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new L$1(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),N$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,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n));}__updateCalendars(e,i,s,r,n,a,l,d,h,c){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=s,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,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):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 s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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,W$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Zi(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*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 s;this._revealPromise=new Promise(d=>{s=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,s(),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 mr(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){$$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&&$$1(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return xe(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return xe(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{hr(this,()=>{es(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(fr(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return me(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
9601
9601
  * @license
9602
9602
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9603
9603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9604
- */const Td=_$1`
9604
+ */const Yd=p$1`
9605
9605
  :host {
9606
9606
  display: flex;
9607
9607
  flex-direction: column;
@@ -9665,7 +9665,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9665
9665
  * @license
9666
9666
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9667
9667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9668
- */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`
9668
+ */_$1("vaadin-date-picker-overlay-content",Yd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Kd extends jd(G$1(x(M$1(y$1)))){static get template(){return b$1`
9669
9669
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
9670
9670
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
9671
9671
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -9685,32 +9685,32 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9685
9685
  <slot name="today-button"></slot>
9686
9686
  <slot name="cancel-button"></slot>
9687
9687
  </div>
9688
- `}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}y$1(Id);/**
9688
+ `}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}g$1(Kd);/**
9689
9689
  * @license
9690
9690
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9691
9691
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9692
- */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));});}});/**
9692
+ */const Jt=new WeakMap;function Gd(o){return Jt.has(o)||Jt.set(o,new Set),Jt.get(o)}function Xd(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const Cr=C$1(o=>class extends o{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=Gd(e);this.slotStyles.forEach(s=>{i.has(s)||(Xd(s,e),i.add(s));});}});/**
9693
9693
  * @license
9694
9694
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9695
9695
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9696
- */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}));}};/**
9696
+ */const Jd=o=>class extends We(re(o)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),gi||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}));}};/**
9697
9697
  * @license
9698
9698
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9699
9699
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9700
- */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}});/**
9700
+ */const os=C$1(o=>class extends Ui(ji(We(o))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s;}_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}});/**
9701
9701
  * @license
9702
9702
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9703
9703
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9704
- */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 [`
9704
+ */const St$1=o=>class extends Cr(xt$1(os(Ct$1(Jd(re(o)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
9705
9705
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
9706
9706
  font: inherit;
9707
9707
  color: inherit;
9708
9708
  }
9709
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select();}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}));}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput);}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented());}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=O.debounce(this._preventInputDebouncer,G$1.after(200),()=>{this.removeAttribute("input-prevented");});}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented());}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented());}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented());}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u");}catch(i){console.error(i);}}};/**
9709
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select();}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}));}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput);}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented());}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=O.debounce(this._preventInputDebouncer,W$1.after(200),()=>{this.removeAttribute("input-prevented");});}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented());}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented());}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented());}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u");}catch(i){console.error(i);}}};/**
9710
9710
  * @license
9711
9711
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9712
9712
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9713
- */const zd=_$1`
9713
+ */const Qd=p$1`
9714
9714
  [part='clear-button'] {
9715
9715
  display: none;
9716
9716
  cursor: default;
@@ -9727,7 +9727,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9727
9727
  * @license
9728
9728
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9729
9729
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9730
- */const Nd=_$1`
9730
+ */const wr=p$1`
9731
9731
  :host {
9732
9732
  display: inline-flex;
9733
9733
  outline: none;
@@ -9765,7 +9765,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9765
9765
  * @license
9766
9766
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9767
9767
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9768
- */const Fd=_$1`
9768
+ */const Ar=p$1`
9769
9769
  [class$='container'] {
9770
9770
  display: flex;
9771
9771
  flex-direction: column;
@@ -9777,23 +9777,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9777
9777
  * @license
9778
9778
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9779
9779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9780
- */const Vi=[Nd,Fd,zd];/**
9780
+ */const Pt$1=[wr,Ar,Qd];/**
9781
9781
  * @license
9782
9782
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
9783
9783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9784
- */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;}};/**
9784
+ */const Tt$1=o=>class extends o{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:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n);}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&s.add(...r),this.__previousClasses=r;}};/**
9785
9785
  * @license
9786
9786
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9787
9787
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9788
- */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");}}/**
9788
+ */class Er{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");}}/**
9789
9789
  * @license
9790
9790
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9791
9791
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9792
- */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)}};/**
9792
+ */const Zd=o=>class extends Tt$1(G$1(xt$1(os(re(o))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 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,s=>"0000".substr(s.length)+s);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.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?Ie(this.referenceDate):new Date;a=vd(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:Xi},_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&&!yt$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 ss(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new Er(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",s=>{this.__commitDate(s.detail.date),this._close();}),i.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value;}),i.addEventListener("click",s=>s.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Ie(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Zi(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||me(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&&s&&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,s,r,n,a){return !e||i&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){return yd(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 s=Ie(e);if(e&&!s){this.value=i;return}e?$$1(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,s,r,n,a,l,d,h){e&&(e.i18n=i,e.label=s,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 s=e.focusedDate||i;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,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=cr(n);}_getInitialPosition(){const e=Ie(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||me(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?fr(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,$$1(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return Ie(e)}};/**
9793
9793
  * @license
9794
9794
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9795
9795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9796
- */const Vd=_$1`
9796
+ */const eh=p$1`
9797
9797
  :host([opened]) {
9798
9798
  pointer-events: auto;
9799
9799
  }
@@ -9810,7 +9810,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9810
9810
  * @license
9811
9811
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9812
9812
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9813
- */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`
9813
+ */_$1("vaadin-date-picker",[Pt$1,eh],{moduleId:"vaadin-date-picker-styles"});class th extends Zd(St$1(x(F$1(y$1)))){static get is(){return "vaadin-date-picker"}static get template(){return b$1`
9814
9814
  <div class="vaadin-date-picker-container">
9815
9815
  <div part="label">
9816
9816
  <slot name="label"></slot>
@@ -9852,23 +9852,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9852
9852
  ></vaadin-date-picker-overlay>
9853
9853
 
9854
9854
  <slot name="tooltip"></slot>
9855
- `}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);/**
9855
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new je(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new Ye(this.inputElement,this._labelController)),this._tooltipController=new K$1(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;}}g$1(th);/**
9856
9856
  * @license
9857
9857
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9858
9858
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9859
- */m$1("vaadin-text-field",$e,{moduleId:"lumo-text-field-styles"});/**
9859
+ */_$1("vaadin-text-field",ae,{moduleId:"lumo-text-field-styles"});/**
9860
9860
  * @license
9861
9861
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9862
9862
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9863
- */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();}};/**
9863
+ */const ih=o=>class extends St$1(o){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();}};/**
9864
9864
  * @license
9865
9865
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9866
9866
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9867
- */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));}};/**
9867
+ */const sh=o=>class extends ih(o){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 je(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Ye(this.inputElement,this._labelController));}};/**
9868
9868
  * @license
9869
9869
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9870
9870
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9871
- */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`
9871
+ */_$1("vaadin-text-field",Pt$1,{moduleId:"vaadin-text-field-styles"});class Ir extends sh(x(F$1(y$1))){static get is(){return "vaadin-text-field"}static get template(){return b$1`
9872
9872
  <div class="vaadin-field-container">
9873
9873
  <div part="label">
9874
9874
  <slot name="label"></slot>
@@ -9897,11 +9897,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9897
9897
  </div>
9898
9898
  </div>
9899
9899
  <slot name="tooltip"></slot>
9900
- `}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);/**
9900
+ `}static get properties(){return {maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new K$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}g$1(Ir);/**
9901
9901
  * @license
9902
9902
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9903
9903
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9904
- */const $d=_$1`
9904
+ */const oh=p$1`
9905
9905
  :host {
9906
9906
  position: absolute;
9907
9907
  right: 0;
@@ -9914,11 +9914,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9914
9914
  background: transparent;
9915
9915
  outline: none;
9916
9916
  }
9917
- `;m$1("vaadin-password-field-button",[Ro,$d],{moduleId:"lumo-password-field-button"});/**
9917
+ `;_$1("vaadin-password-field-button",[nr,oh],{moduleId:"lumo-password-field-button"});/**
9918
9918
  * @license
9919
9919
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9920
9920
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9921
- */const Ud=_$1`
9921
+ */const rh=p$1`
9922
9922
  [part='reveal-button']::before {
9923
9923
  content: var(--lumo-icons-eye);
9924
9924
  }
@@ -9936,27 +9936,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9936
9936
  [part='reveal-button'][hidden] {
9937
9937
  display: none !important;
9938
9938
  }
9939
- `;m$1("vaadin-password-field",[$e,Ud],{moduleId:"lumo-password-field"});/**
9939
+ `;_$1("vaadin-password-field",[ae,rh],{moduleId:"lumo-password-field"});/**
9940
9940
  * @license
9941
9941
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9942
9942
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9943
- */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);/**
9943
+ */_$1("vaadin-password-field-button",_r,{moduleId:"vaadin-password-field-button-styles"});class nh extends Qi(M$1(x(y$1))){static get is(){return "vaadin-password-field-button"}static get template(){return b$1``}}g$1(nh);/**
9944
9944
  * @license
9945
9945
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9946
9946
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9947
- */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,`
9947
+ */const ah=o=>class extends Cr(ve(ne(We(o)))){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,`
9948
9948
  ${e} [slot="input"]::-ms-reveal {
9949
9949
  display: none;
9950
9950
  }
9951
- `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new R$1(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown);}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off");}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value;}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return !(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else {const i=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!i);}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal);}__i18nChanged(e){this.__updateAriaLabel(e);}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e);}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible);}_onRevealButtonClick(){this._togglePasswordVisibility();}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")));}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false");}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e);}_disabledChanged(e,i){super._disabledChanged(e,i),this._revealNode&&(this._revealNode.disabled=e);}};/**
9951
+ `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new L$1(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown);}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off");}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value;}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return !(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else {const i=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!i);}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal);}__i18nChanged(e){this.__updateAriaLabel(e);}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e);}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible);}_onRevealButtonClick(){this._togglePasswordVisibility();}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")));}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false");}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e);}_disabledChanged(e,i){super._disabledChanged(e,i),this._revealNode&&(this._revealNode.disabled=e);}};/**
9952
9952
  * @license
9953
9953
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9954
9954
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9955
- */const jd=P`
9955
+ */const lh=b$1`
9956
9956
  <div part="reveal-button" slot="suffix">
9957
9957
  <slot name="reveal"></slot>
9958
9958
  </div>
9959
- `;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`
9959
+ `;let Ze;class dh extends ah(Ir){static get is(){return "vaadin-password-field"}static get template(){if(!Ze){Ze=super.template.cloneNode(!0);const t=lh.content.querySelector('[part="reveal-button"]');Ze.content.querySelector('[part="input-field"]').appendChild(t);}return Ze}}g$1(dh);const Dt=p$1`
9960
9960
  :host {
9961
9961
  display: flex;
9962
9962
  align-items: center;
@@ -10040,7 +10040,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10040
10040
  width: var(--lumo-icon-size-m);
10041
10041
  height: var(--lumo-icon-size-m);
10042
10042
  }
10043
- `;m$1("vaadin-item",cr,{moduleId:"lumo-item"});const Gd=_$1`
10043
+ `;_$1("vaadin-item",Dt,{moduleId:"lumo-item"});const kr=p$1`
10044
10044
  :host {
10045
10045
  transition: background-color 100ms;
10046
10046
  overflow: hidden;
@@ -10052,11 +10052,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10052
10052
  :host([focused]:not([disabled])) {
10053
10053
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
10054
10054
  }
10055
- `;m$1("vaadin-combo-box-item",[cr,Gd],{moduleId:"lumo-combo-box-item"});/**
10055
+ `;_$1("vaadin-combo-box-item",[Dt,kr],{moduleId:"lumo-combo-box-item"});/**
10056
10056
  * @license
10057
10057
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
10058
10058
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10059
- */const Kd=_$1`
10059
+ */const Sr=p$1`
10060
10060
  [part~='loader'] {
10061
10061
  box-sizing: border-box;
10062
10062
  width: var(--lumo-icon-size-s);
@@ -10098,7 +10098,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10098
10098
  transform: rotate(360deg);
10099
10099
  }
10100
10100
  }
10101
- `,Xd=_$1`
10101
+ `,Pr=p$1`
10102
10102
  [part='content'] {
10103
10103
  padding: 0;
10104
10104
  }
@@ -10119,7 +10119,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10119
10119
  :host([bottom-aligned]) [part~='overlay'] {
10120
10120
  margin-bottom: var(--lumo-space-xs);
10121
10121
  }
10122
- `,Jd=_$1`
10122
+ `,Tr=p$1`
10123
10123
  [part~='loader'] {
10124
10124
  position: absolute;
10125
10125
  z-index: 1;
@@ -10127,24 +10127,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10127
10127
  top: var(--lumo-space-s);
10128
10128
  margin-inline: auto 0;
10129
10129
  }
10130
- `;m$1("vaadin-combo-box-overlay",[Ii,Di,Xd,Kd,Jd,_$1`
10130
+ `;_$1("vaadin-combo-box-overlay",[wt$1,At$1,Pr,Sr,Tr,p$1`
10131
10131
  :host {
10132
10132
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
10133
10133
  --_vaadin-combo-box-items-container-border-style: solid;
10134
10134
  }
10135
- `],{moduleId:"lumo-combo-box-overlay"});const Qd=_$1`
10135
+ `],{moduleId:"lumo-combo-box-overlay"});const hh=p$1`
10136
10136
  [part='toggle-button']::before {
10137
10137
  content: var(--lumo-icons-dropdown);
10138
10138
  }
10139
- `;m$1("vaadin-combo-box",[$e,Qd],{moduleId:"lumo-combo-box"});/**
10139
+ `;_$1("vaadin-combo-box",[ae,hh],{moduleId:"lumo-combo-box"});/**
10140
10140
  * @license
10141
10141
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10142
10142
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10143
- */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);}};/**
10143
+ */const Dr=o=>class extends o{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,s){e==="hidden"&&s!==null?this.index=void 0:super.attributeChangedCallback(e,i,s);}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,s){s===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);}};/**
10144
10144
  * @license
10145
10145
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10146
10146
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10147
- */class eh extends Zd(I$1(Q$1(k$1))){static get template(){return P`
10147
+ */class ch extends Dr(x(M$1(y$1))){static get template(){return b$1`
10148
10148
  <style>
10149
10149
  :host {
10150
10150
  display: block;
@@ -10158,15 +10158,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10158
10158
  <div part="content">
10159
10159
  <slot></slot>
10160
10160
  </div>
10161
- `}static get is(){return "vaadin-combo-box-item"}}y$1(eh);/**
10161
+ `}static get is(){return "vaadin-combo-box-item"}}g$1(ch);/**
10162
10162
  * @license
10163
10163
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10164
10164
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10165
- */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());}};/**
10165
+ */const Or=o=>class extends Ji(o){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)&&!$i(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());}};/**
10166
10166
  * @license
10167
10167
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10168
10168
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10169
- */const ih=_$1`
10169
+ */const uh=p$1`
10170
10170
  #overlay {
10171
10171
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
10172
10172
  }
@@ -10176,17 +10176,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10176
10176
  flex-direction: column;
10177
10177
  height: 100%;
10178
10178
  }
10179
- `;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`
10179
+ `;_$1("vaadin-combo-box-overlay",[Et$1,uh],{moduleId:"vaadin-combo-box-overlay-styles"});class ph extends Or(kt$1(M$1(x(y$1)))){static get is(){return "vaadin-combo-box-overlay"}static get template(){return b$1`
10180
10180
  <div id="backdrop" part="backdrop" hidden></div>
10181
10181
  <div part="overlay" id="overlay">
10182
10182
  <div part="loader"></div>
10183
10183
  <div part="content" id="content"><slot></slot></div>
10184
10184
  </div>
10185
- `}}y$1(sh);/**
10185
+ `}}g$1(ph);/**
10186
10186
  * @license
10187
10187
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
10188
10188
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10189
- */function nt$1(s,t){return s.split(".").reduce((e,i)=>e?e[i]:void 0,t)}/**
10189
+ */function _t$1(o,t){return o.split(".").reduce((e,i)=>e?e[i]:void 0,t)}/**
10190
10190
  * @license
10191
10191
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
10192
10192
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -10194,23 +10194,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10194
10194
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
10195
10195
  * Code distributed by Google as part of the polymer project is also
10196
10196
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10197
- */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]);}};/**
10197
+ */const Ys=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),_h=Ys&&Ys[1]>=8,Ks=3,fh={_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 o=this._virtualCount;return Math.max(0,o-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(o){o=this._clamp(o,0,this._maxVirtualStart),this._virtualStartVal=o;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(o){o%=this._physicalCount,o<0&&(o=this._physicalCount+o),this._physicalStartVal=o;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(o){this._physicalCountVal=o;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let o=this._firstVisibleIndexVal;if(o==null){let t=this._physicalTop+this._scrollOffset;o=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=o;}return o},get lastVisibleIndex(){let o=this._lastVisibleIndexVal;if(o==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(o=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=o;}return o},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const o=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=o-this._scrollPosition;const e=t>=0;if(this._scrollPosition=o,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),ct$1);}},_getReusables(o){let t,e,i;const s=[],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(o?(t=this._physicalStart,e=c-d):(t=this._physicalEnd,e=h-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(s.length>=l||e<=r);)if(o){if(a+s.length+1>=this._virtualCount||d+i>=c-this._scrollOffset)break;s.push(t),d+=i,t=(t+1)%l;}else {if(n-s.length<=0||d+this._physicalSize-i<=u)break;s.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:s,physicalTop:d-this._scrollOffset}},_update(o,t){if(!(o&&o.length===0||this._physicalCount===0)){if(this._assignModels(o),this._updateMetrics(o),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(o){const e=this._clamp(this._physicalCount+o,Ks,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const s=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()-s)/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),ct$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const o=this._getReusables(!0);this._physicalTop=o.physicalTop,this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length,this._update(o.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Ks));},_itemsChanged(o){o.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,$e));},_iterateItems(o,t){let e,i,s,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(s=o.call(this,e,i))!=null)return s}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((s=o.call(this,e,i))!=null)return s;for(e=0;e<this._physicalStart;e++,i++)if((s=o.call(this,e,i))!=null)return s}},_computeVidx(o){return o>=this._physicalStart?this._virtualStart+(o-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+o},_positionItems(){this._adjustScrollPosition();let o=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${o}px`,0,this._physicalItems[t]),o+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(o){return this._physicalSizes[o]},_adjustScrollPosition(){const o=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(o!==0){this._physicalTop-=o;const t=this._scrollPosition;!_h&&t>0&&this._resetScrollPosition(t-o);}},_resetScrollPosition(o){this.scrollTarget&&o>=0&&(this._scrollTop=o,this._scrollPosition=this._scrollTop);},_updateScrollerSize(o){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(o||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(o){if(typeof o!="number"||o<0||o>this.items.length-1||(Pe(),this._physicalCount===0))return;o=this._clamp(o,0,this._virtualCount-1),(!this._isIndexRendered(o)||o>=this._maxVirtualStart)&&(this._virtualStart=o-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const s=this._hiddenContentSize;for(;e<o&&i<=s;)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);},$e);},_isIndexRendered(o){return o>=this._virtualStart&&o<=this._virtualEnd},_getPhysicalIndex(o){return (this._physicalStart+(o-this._virtualStart))%this._physicalCount},_clamp(o,t,e){return Math.min(e,Math.max(t,o))},_debounce(o,t,e){this._debouncers||(this._debouncers={}),this._debouncers[o]=O.debounce(this._debouncers[o],e,t.bind(this)),jo(this._debouncers[o]);}};/**
10198
10198
  * @license
10199
10199
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10200
10200
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10201
- */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();}}/**
10201
+ */const mh=1e5,Qt=1e3;class Mr{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:s,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=r||s,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<Qt?(i=t,this._vidxOffset=0):(i=Qt,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(),Pe(),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(s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s));}),this.__afterElementsUpdated(i);}_updateMetrics(t){Pe();let e=0,i=0;const s=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!==s&&(this._physicalAverage=Math.round((r*s+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const s=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+s+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,$e,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(s.reduce((r,n)=>r+n,0)/s.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"}),Pe(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);i!==void 0&&s!==void 0&&(this._scrollTop+=i-s);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Pe(),this._debounce("_update",this._update,ct$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,mh)}}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(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,s)=>{const r=this._physicalItems[i];r.hidden=s>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=s+(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,s){s.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 s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(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,W$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=O.debounce(this.__scrollReorderDebouncer,W$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,s=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!s){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,$e,()=>{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,W$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 s=i.__virtualIndex-t,r=e.indexOf(i)-s;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(sd){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,s=Qt,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&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-s&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(Mr.prototype,fh);class gh{constructor(t){this.__adapter=new Mr(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();}}/**
10202
10202
  * @license
10203
10203
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10204
10204
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10205
- */const de=class{toString(){return ""}};/**
10205
+ */const Y$1=class{toString(){return ""}};/**
10206
10206
  * @license
10207
10207
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10208
10208
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10209
- */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}};/**
10209
+ */const zr=o=>class extends o{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,s)=>i+s);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${bt$1()}`,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 s=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),s=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(s=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,s));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,s){return e instanceof Y$1?!1:s&&e!==void 0&&i!==void 0?_t$1(s,e)===_t$1(s,i):e===i}__initVirtualizer(){this.__virtualizer=new gh({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 s=this.items[i],r=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);e.setProperties({item:s,index:i,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(s):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"),s instanceof Y$1&&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,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||s&&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}};/**
10210
10210
  * @license
10211
10211
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10212
10212
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10213
- */class dh extends lh(k$1){static get is(){return "vaadin-combo-box-scroller"}static get template(){return P`
10213
+ */class vh extends zr(y$1){static get is(){return "vaadin-combo-box-scroller"}static get template(){return b$1`
10214
10214
  <style>
10215
10215
  :host {
10216
10216
  display: block;
@@ -10237,39 +10237,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10237
10237
  <div id="selector">
10238
10238
  <slot></slot>
10239
10239
  </div>
10240
- `}}y$1(dh);/**
10240
+ `}}g$1(vh);/**
10241
10241
  * @license
10242
10242
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10243
10243
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10244
- */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"]}};/**
10244
+ */const bh=o=>class extends os(o){static get properties(){return {pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"pattern"]}static get constraints(){return [...super.constraints,"pattern"]}};/**
10245
10245
  * @license
10246
10246
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10247
10247
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10248
- */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}/**
10248
+ */function ft$1(o,t,e=0){let i=t;for(const s of o.subCaches){const r=s.parentCacheIndex;if(i<=r)break;if(i<=r+s.flatSize)return ft$1(s,i-r-1,e+1);i-=s.flatSize;}return {cache:o,item:o.items[i],index:i,page:Math.floor(i/o.pageSize),level:e}}function Nr({getItemId:o},t,e,i=0,s=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&o(n)===o(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:s+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=s+t.getFlatIndex(r.parentCacheIndex),a=Nr({getItemId:o},r,e,i+1,n+1);if(a)return a}}function Lr(o,[t,...e],i=0){t===1/0&&(t=o.size-1);const s=o.getFlatIndex(t),r=o.getSubCache(t);return r&&r.flatSize>0&&e.length?Lr(r,e,i+s+1):i+s}/**
10249
10249
  * @license
10250
10250
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10251
10251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10252
- */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}}/**
10252
+ */class rs{constructor(t,e,i,s,r){I$1(this,"context");I$1(this,"pageSize");I$1(this,"items",[]);I$1(this,"pendingRequests",{});I$1(this,"__subCacheByIndex",{});I$1(this,"__size",0);I$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=s,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 s=0;s<t;s++)(i=this.items)[s]||(i[s]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(s=>{parseInt(s)*this.pageSize>=this.size&&delete this.pendingRequests[s];});}}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((s,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=s);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new rs(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,s)=>{const r=s.parentCacheIndex;return e>r?i+s.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}=ft$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}=ft$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}}/**
10253
10253
  * @license
10254
10254
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10255
10255
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10256
- */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}}/**
10256
+ */class yh extends EventTarget{constructor(e,{size:i,pageSize:s,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super();I$1(this,"host");I$1(this,"dataProvider");I$1(this,"dataProviderParams");I$1(this,"pageSize");I$1(this,"isExpanded");I$1(this,"getItemId");I$1(this,"rootCache");I$1(this,"placeholder");I$1(this,"isPlaceholder");this.host=e,this.pageSize=s,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 ft$1(this.rootCache,e)}getItemContext(e){return Nr({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Lr(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:s,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,s);}ensureFlatIndexHierarchy(e){const{cache:i,item:s,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(s)&&this.isExpanded(s)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new rs(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let s={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(s=ye(ye({},s),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:s.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(s,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
10257
10257
  * @license
10258
10258
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10259
10259
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10260
- */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`");}}};/**
10260
+ */const Fr=o=>class extends o{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 yh(this,{placeholder:new Y$1,isPlaceholder:e=>e instanceof Y$1,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 s=this.__getItemIndexByValue(this.filteredItems,i);(s<0||!this._getItemLabel(this.filteredItems[s]))&&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`");}}};/**
10261
10261
  * @license
10262
10262
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10263
10263
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10264
- */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.`);}/**
10264
+ */function Ot$1(o){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(o);return}o.querySelector("template")&&console.warn(`WARNING: <template> inside <${o.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
10265
10265
  * @license
10266
10266
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10267
10267
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10268
- */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());}};/**
10268
+ */function Gs(o){return o!=null}function Xs(o,t){return o.findIndex(e=>e instanceof Y$1?!1:t(e))}const Br=o=>class extends Tt$1(G$1(ji(ne(re(We(ve(o))))))){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),Ot$1(this),this.addController(new Er(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,s){super._propertiesChanged(e,i,s),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 s=this._overlayElement;s.renderer=r=>{r.innerHTML||r.appendChild(i);},s.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,s,r,n,a,l,d,h,c){if(e&&(s&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:s?i:[],opened:s,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,s,r){this._overlayOpened=e&&(r||s||!!(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&&Hi(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(r=>r.index===e);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!gi&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!e),e?s.setAttribute("aria-controls",this._scroller.id):s.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?_t$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?_t$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",()=>{gi&&!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 s=this._inputElementValue;this._lastCustomValue=s;const r=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=s);}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,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s);}_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||(Gs(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),s=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&&s===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const s=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(s));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||!Gs(i)?-1:Xs(e,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:Xs(e,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Y$1)&&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(yt$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());}};/**
10269
10269
  * @license
10270
10270
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10271
10271
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10272
- */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`
10272
+ */_$1("vaadin-combo-box",Pt$1,{moduleId:"vaadin-combo-box-styles"});class xh extends Fr(Br(bh(St$1(x(F$1(y$1)))))){static get is(){return "vaadin-combo-box"}static get template(){return b$1`
10273
10273
  <style>
10274
10274
  :host([opened]) {
10275
10275
  pointer-events: auto;
@@ -10314,7 +10314,1097 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10314
10314
  ></vaadin-combo-box-overlay>
10315
10315
 
10316
10316
  <slot name="tooltip"></slot>
10317
- `}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);
10317
+ `}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new je(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Ye(this.inputElement,this._labelController)),this._tooltipController=new K$1(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);}}g$1(xh);/**
10318
+ * @license
10319
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10320
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10321
+ */const Ch=p$1`
10322
+ :host {
10323
+ font-size: var(--lumo-font-size-xxs);
10324
+ line-height: 1;
10325
+ color: var(--lumo-body-text-color);
10326
+ border-radius: var(--lumo-border-radius-s);
10327
+ background-color: var(--lumo-contrast-20pct);
10328
+ cursor: var(--lumo-clickable-cursor);
10329
+ -webkit-font-smoothing: antialiased;
10330
+ -moz-osx-font-smoothing: grayscale;
10331
+ }
10332
+
10333
+ :host([disabled]) {
10334
+ background-color: var(--lumo-contrast-10pct);
10335
+ }
10336
+
10337
+ :host([focused]) [part='remove-button'] {
10338
+ color: inherit;
10339
+ }
10340
+
10341
+ :host([slot='overflow']) {
10342
+ position: relative;
10343
+ min-width: var(--lumo-size-xxs);
10344
+ margin-inline-start: var(--lumo-space-s);
10345
+ }
10346
+
10347
+ :host([slot='overflow'])::before,
10348
+ :host([slot='overflow'])::after {
10349
+ position: absolute;
10350
+ content: '';
10351
+ width: 100%;
10352
+ height: 100%;
10353
+ border-left: calc(var(--lumo-space-s) / 4) solid;
10354
+ border-radius: var(--lumo-border-radius-s);
10355
+ border-color: var(--lumo-contrast-30pct);
10356
+ }
10357
+
10358
+ :host([slot='overflow'])::before {
10359
+ left: calc(-1 * var(--lumo-space-s) / 2);
10360
+ }
10361
+
10362
+ :host([slot='overflow'])::after {
10363
+ left: calc(-1 * var(--lumo-space-s));
10364
+ }
10365
+
10366
+ :host([count='2']) {
10367
+ margin-inline-start: calc(var(--lumo-space-s) / 2);
10368
+ }
10369
+
10370
+ :host([count='2'])::after {
10371
+ display: none;
10372
+ }
10373
+
10374
+ :host([count='1']) {
10375
+ margin-inline-start: 0;
10376
+ }
10377
+
10378
+ :host([count='1'])::before,
10379
+ :host([count='1'])::after {
10380
+ display: none;
10381
+ }
10382
+
10383
+ [part='label'] {
10384
+ font-weight: 500;
10385
+ line-height: 1.25;
10386
+ }
10387
+
10388
+ [part='remove-button'] {
10389
+ display: flex;
10390
+ align-items: center;
10391
+ justify-content: center;
10392
+ margin-top: -0.3125em;
10393
+ margin-bottom: -0.3125em;
10394
+ margin-inline-start: auto;
10395
+ width: 1.25em;
10396
+ height: 1.25em;
10397
+ font-size: 1.5em;
10398
+ transition: none;
10399
+ }
10400
+
10401
+ [part='remove-button']::before {
10402
+ content: var(--lumo-icons-cross);
10403
+ }
10404
+
10405
+ :host([disabled]) [part='label'] {
10406
+ color: var(--lumo-disabled-text-color);
10407
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
10408
+ pointer-events: none;
10409
+ }
10410
+ `;_$1("vaadin-multi-select-combo-box-chip",[Gi,Ch],{moduleId:"lumo-multi-select-combo-box-chip"});/**
10411
+ * @license
10412
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10413
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10414
+ */const wh=p$1`
10415
+ @media (any-hover: hover) {
10416
+ :host(:hover[readonly]) {
10417
+ background-color: transparent;
10418
+ cursor: default;
10419
+ }
10420
+ }
10421
+ `;_$1("vaadin-multi-select-combo-box-item",[Dt,kr,wh],{moduleId:"lumo-multi-select-combo-box-item"});_$1("vaadin-multi-select-combo-box-overlay",[wt$1,At$1,Pr,Sr,Tr,p$1`
10422
+ :host {
10423
+ --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
10424
+ --_vaadin-multi-select-combo-box-items-container-border-style: solid;
10425
+ }
10426
+ `],{moduleId:"lumo-multi-select-combo-box-overlay"});_$1("vaadin-multi-select-combo-box-container",p$1`
10427
+ :host([auto-expand-vertically]) {
10428
+ padding-block: var(--lumo-space-xs);
10429
+ }
10430
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const Ah=p$1`
10431
+ :host([has-value]) {
10432
+ padding-inline-start: 0;
10433
+ }
10434
+
10435
+ :host([has-value]) ::slotted(input:placeholder-shown) {
10436
+ caret-color: var(--lumo-body-text-color) !important;
10437
+ }
10438
+
10439
+ [part='label'] {
10440
+ flex-shrink: 0;
10441
+ }
10442
+
10443
+ /* Override input-container styles */
10444
+ [part='input-field'] ::slotted([slot='chip']),
10445
+ [part='input-field'] ::slotted([slot='overflow']) {
10446
+ min-height: auto;
10447
+ padding: 0.3125em calc(0.5em + var(--lumo-border-radius-s) / 4);
10448
+ color: var(--lumo-body-text-color);
10449
+ -webkit-mask-image: none;
10450
+ mask-image: none;
10451
+ }
10452
+
10453
+ :host([auto-expand-vertically]) ::slotted([slot='chip']) {
10454
+ margin-block: calc(var(--lumo-space-xs) / 2);
10455
+ }
10456
+
10457
+ ::slotted([slot='chip']:not([readonly]):not([disabled])) {
10458
+ padding-inline-end: 0;
10459
+ }
10460
+
10461
+ :host([auto-expand-vertically]) ::slotted([slot='input']) {
10462
+ min-height: calc(var(--lumo-text-field-size, var(--lumo-size-m)) - 2 * var(--lumo-space-xs));
10463
+ }
10464
+
10465
+ ::slotted([slot='chip']:not(:last-of-type)),
10466
+ ::slotted([slot='overflow']:not(:last-of-type)) {
10467
+ margin-inline-end: var(--lumo-space-xs);
10468
+ }
10469
+
10470
+ ::slotted([slot='chip'][focused]) {
10471
+ background-color: var(--vaadin-selection-color, var(--lumo-primary-color));
10472
+ color: var(--lumo-primary-contrast-color);
10473
+ }
10474
+
10475
+ [part='toggle-button']::before {
10476
+ content: var(--lumo-icons-dropdown);
10477
+ }
10478
+
10479
+ :host([readonly][has-value]) [part='toggle-button'] {
10480
+ color: var(--lumo-contrast-60pct);
10481
+ cursor: var(--lumo-clickable-cursor);
10482
+ }
10483
+ `;_$1("vaadin-multi-select-combo-box",[ae,Ah],{moduleId:"lumo-multi-select-combo-box"});/**
10484
+ * @license
10485
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10486
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10487
+ */class Eh extends x(y$1){static get is(){return "vaadin-multi-select-combo-box-chip"}static get properties(){return {disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return b$1`
10488
+ <style>
10489
+ :host {
10490
+ display: inline-flex;
10491
+ align-items: center;
10492
+ align-self: center;
10493
+ white-space: nowrap;
10494
+ box-sizing: border-box;
10495
+ }
10496
+
10497
+ [part='label'] {
10498
+ overflow: hidden;
10499
+ text-overflow: ellipsis;
10500
+ }
10501
+
10502
+ :host([hidden]),
10503
+ :host(:is([readonly], [disabled], [slot='overflow'])) [part='remove-button'] {
10504
+ display: none !important;
10505
+ }
10506
+
10507
+ @media (forced-colors: active) {
10508
+ :host {
10509
+ outline: 1px solid;
10510
+ outline-offset: -1px;
10511
+ }
10512
+ }
10513
+ </style>
10514
+ <div part="label">[[label]]</div>
10515
+ <div part="remove-button" on-click="_onRemoveClick"></div>
10516
+ `}_onRemoveClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}));}}g$1(Eh);/**
10517
+ * @license
10518
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10519
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10520
+ */_$1("vaadin-multi-select-combo-box-container",p$1`
10521
+ #wrapper {
10522
+ display: flex;
10523
+ width: 100%;
10524
+ min-width: 0;
10525
+ }
10526
+
10527
+ :host([auto-expand-vertically]) #wrapper {
10528
+ flex-wrap: wrap;
10529
+ }
10530
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let et$1;class Ih extends ar{static get is(){return "vaadin-multi-select-combo-box-container"}static get template(){if(!et$1){et$1=super.template.cloneNode(!0);const t=et$1.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1]);}return et$1}static get properties(){return {autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}g$1(Ih);/**
10531
+ * @license
10532
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10533
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10534
+ */class kh extends Dr(x(M$1(y$1))){static get is(){return "vaadin-multi-select-combo-box-item"}static get template(){return b$1`
10535
+ <style>
10536
+ :host {
10537
+ display: block;
10538
+ }
10539
+
10540
+ :host([hidden]) {
10541
+ display: none !important;
10542
+ }
10543
+ </style>
10544
+ <span part="checkmark" aria-hidden="true"></span>
10545
+ <div part="content">
10546
+ <slot></slot>
10547
+ </div>
10548
+ `}}g$1(kh);/**
10549
+ * @license
10550
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10551
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10552
+ */const Sh=p$1`
10553
+ #overlay {
10554
+ width: var(
10555
+ --vaadin-multi-select-combo-box-overlay-width,
10556
+ var(--_vaadin-multi-select-combo-box-overlay-default-width, auto)
10557
+ );
10558
+ }
10559
+
10560
+ [part='content'] {
10561
+ display: flex;
10562
+ flex-direction: column;
10563
+ height: 100%;
10564
+ }
10565
+ `;_$1("vaadin-multi-select-combo-box-overlay",[Et$1,Sh],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Ph extends Or(kt$1(M$1(x(y$1)))){static get is(){return "vaadin-multi-select-combo-box-overlay"}static get template(){return b$1`
10566
+ <div id="backdrop" part="backdrop" hidden></div>
10567
+ <div part="overlay" id="overlay">
10568
+ <div part="loader"></div>
10569
+ <div part="content" id="content"><slot></slot></div>
10570
+ </div>
10571
+ `}}g$1(Ph);/**
10572
+ * @license
10573
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10574
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10575
+ */class Th extends zr(y$1){static get is(){return "vaadin-multi-select-combo-box-scroller"}static get template(){return b$1`
10576
+ <style>
10577
+ :host {
10578
+ display: block;
10579
+ min-height: 1px;
10580
+ overflow: auto;
10581
+
10582
+ /* Fixes item background from getting on top of scrollbars on Safari */
10583
+ transform: translate3d(0, 0, 0);
10584
+
10585
+ /* Enable momentum scrolling on iOS */
10586
+ -webkit-overflow-scrolling: touch;
10587
+
10588
+ /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
10589
+ box-shadow: 0 0 0 white;
10590
+ }
10591
+
10592
+ #selector {
10593
+ border-width: var(--_vaadin-multi-select-combo-box-items-container-border-width);
10594
+ border-style: var(--_vaadin-multi-select-combo-box-items-container-border-style);
10595
+ border-color: var(--_vaadin-multi-select-combo-box-items-container-border-color, transparent);
10596
+ position: relative;
10597
+ }
10598
+ </style>
10599
+ <div id="selector">
10600
+ <slot></slot>
10601
+ </div>
10602
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true");}_isItemSelected(t,e,i){return t instanceof Y$1||this.owner.readonly?!1:this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly);}}g$1(Th);/**
10603
+ * @license
10604
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10605
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10606
+ */class Dh extends Fr(Br(x(y$1))){static get is(){return "vaadin-multi-select-combo-box-internal"}static get template(){return b$1`
10607
+ <style>
10608
+ :host([opened]) {
10609
+ pointer-events: auto;
10610
+ }
10611
+ </style>
10612
+
10613
+ <slot></slot>
10614
+
10615
+ <vaadin-multi-select-combo-box-overlay
10616
+ id="overlay"
10617
+ opened="[[_overlayOpened]]"
10618
+ loading$="[[loading]]"
10619
+ theme$="[[_theme]]"
10620
+ position-target="[[_target]]"
10621
+ no-vertical-overlap
10622
+ restore-focus-node="[[inputElement]]"
10623
+ ></vaadin-multi-select-combo-box-overlay>
10624
+ `}static get properties(){return {filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return ["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return "vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this));}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0);}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button");}_readonlyChanged(){this._setDropdownItems(this.filteredItems);}_setDropdownItems(t){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(t);return}if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(e));return}super._setDropdownItems(t);}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems);}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t);}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const e=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(e);}return}super._onEnter(t);}_onEscape(t){if(this.readonly){t.stopPropagation(),this.opened&&this.close();return}super._onEscape(t);}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter();}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter="";}_commitValue(){this.lastFilter=this.filter,super._commitValue();}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown();}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp();}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close();}_onClosed(){this._ignoreCommitValue=!0,super._onClosed();}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange();}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof Y$1||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))));}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache();}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation();}}g$1(Dh);/**
10625
+ * @license
10626
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10627
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10628
+ */const tt$1=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.resizables?t.target.resizables.forEach(e=>{e._onResize(t.contentRect);}):t.target._onResize(t.contentRect);});});}),Oh=C$1(o=>class extends o{get _observeParent(){return !1}connectedCallback(){if(super.connectedCallback(),tt$1.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,tt$1.observe(e)),e.resizables.add(this),this.__parent=e;}}disconnectedCallback(){super.disconnectedCallback(),tt$1.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const i=e.resizables;i&&(i.delete(this),i.size===0&&tt$1.unobserve(e)),this.__parent=null;}}_onResize(e){}});/**
10629
+ * @license
10630
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
10631
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10632
+ */const Mh=p$1`
10633
+ :host {
10634
+ --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
10635
+ --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
10636
+ }
10637
+
10638
+ #chips {
10639
+ display: flex;
10640
+ align-items: center;
10641
+ }
10642
+
10643
+ ::slotted(input) {
10644
+ box-sizing: border-box;
10645
+ flex: 1 0 var(--input-min-width);
10646
+ }
10647
+
10648
+ ::slotted([slot='chip']),
10649
+ ::slotted([slot='overflow']) {
10650
+ flex: 0 1 auto;
10651
+ }
10652
+
10653
+ ::slotted([slot='chip']) {
10654
+ overflow: hidden;
10655
+ }
10656
+
10657
+ :host(:is([readonly], [disabled])) ::slotted(input) {
10658
+ flex-grow: 0;
10659
+ flex-basis: 0;
10660
+ padding: 0;
10661
+ }
10662
+
10663
+ :host([auto-expand-vertically]) #chips {
10664
+ display: contents;
10665
+ }
10666
+
10667
+ :host([auto-expand-horizontally]) [class$='container'] {
10668
+ width: auto;
10669
+ }
10670
+ `;_$1("vaadin-multi-select-combo-box",[Pt$1,Mh],{moduleId:"vaadin-multi-select-combo-box-styles"});class zh extends Oh(St$1(x(F$1(y$1)))){static get is(){return "vaadin-multi-select-combo-box"}static get template(){return b$1`
10671
+ <div class="vaadin-multi-select-combo-box-container">
10672
+ <div part="label">
10673
+ <slot name="label"></slot>
10674
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
10675
+ </div>
10676
+
10677
+ <vaadin-multi-select-combo-box-internal
10678
+ id="comboBox"
10679
+ items="[[items]]"
10680
+ item-id-path="[[itemIdPath]]"
10681
+ item-label-path="[[itemLabelPath]]"
10682
+ item-value-path="[[itemValuePath]]"
10683
+ disabled="[[disabled]]"
10684
+ readonly="[[readonly]]"
10685
+ auto-open-disabled="[[autoOpenDisabled]]"
10686
+ allow-custom-value="[[allowCustomValue]]"
10687
+ overlay-class="[[overlayClass]]"
10688
+ data-provider="[[dataProvider]]"
10689
+ filter="{{filter}}"
10690
+ last-filter="{{_lastFilter}}"
10691
+ loading="{{loading}}"
10692
+ size="{{size}}"
10693
+ filtered-items="[[filteredItems]]"
10694
+ selected-items="[[selectedItems]]"
10695
+ selected-items-on-top="[[selectedItemsOnTop]]"
10696
+ item-class-name-generator="[[itemClassNameGenerator]]"
10697
+ top-group="[[_topGroup]]"
10698
+ opened="{{opened}}"
10699
+ renderer="[[renderer]]"
10700
+ keep-filter="[[keepFilter]]"
10701
+ theme$="[[_theme]]"
10702
+ on-combo-box-item-selected="_onComboBoxItemSelected"
10703
+ on-change="_onComboBoxChange"
10704
+ on-custom-value-set="_onCustomValueSet"
10705
+ on-filtered-items-changed="_onFilteredItemsChanged"
10706
+ >
10707
+ <vaadin-multi-select-combo-box-container
10708
+ part="input-field"
10709
+ auto-expand-vertically="[[autoExpandVertically]]"
10710
+ readonly="[[readonly]]"
10711
+ disabled="[[disabled]]"
10712
+ invalid="[[invalid]]"
10713
+ theme$="[[_theme]]"
10714
+ >
10715
+ <slot name="overflow" slot="prefix"></slot>
10716
+ <div id="chips" part="chips" slot="prefix">
10717
+ <slot name="chip"></slot>
10718
+ </div>
10719
+ <slot name="input"></slot>
10720
+ <div
10721
+ id="clearButton"
10722
+ part="clear-button"
10723
+ slot="suffix"
10724
+ on-touchend="_onClearButtonTouchend"
10725
+ aria-hidden="true"
10726
+ ></div>
10727
+ <div id="toggleButton" class="toggle-button" part="toggle-button" slot="suffix" aria-hidden="true"></div>
10728
+ </vaadin-multi-select-combo-box-container>
10729
+ </vaadin-multi-select-combo-box-internal>
10730
+
10731
+ <div part="helper-text">
10732
+ <slot name="helper"></slot>
10733
+ </div>
10734
+
10735
+ <div part="error-message">
10736
+ <slot name="error-message"></slot>
10737
+ </div>
10738
+ </div>
10739
+
10740
+ <slot name="tooltip"></slot>
10741
+ `}static get properties(){return {autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandHorizontallyChanged"},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandVerticallyChanged"},autoOpenDisabled:Boolean,clearButtonVisible:{type:Boolean,reflectToAttribute:!0,observer:"_clearButtonVisibleChanged",value:!1},items:{type:Array},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemLabelPath:{type:String,value:"label"},itemValuePath:{type:String,value:"value"},itemIdPath:{type:String},i18n:{type:Object,value:()=>({cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"})},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0},overlayClass:{type:String},readonly:{type:Boolean,value:!1,observer:"_readonlyChanged",reflectToAttribute:!0},selectedItems:{type:Array,value:()=>[],notify:!0},opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},size:{type:Number},pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},dataProvider:{type:Object},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged"},renderer:Function,filter:{type:String,value:"",notify:!0},filteredItems:Array,selectedItemsOnTop:{type:Boolean,value:!1},value:{type:String},_overflowItems:{type:Array,value:()=>[]},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String},_topGroup:{type:Array}}}static get observers(){return ["_selectedItemsChanged(selectedItems, selectedItems.*)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}get slotStyles(){const t=this.localName;return [...super.slotStyles,`
10742
+ ${t}[has-value] input::placeholder {
10743
+ color: transparent !important;
10744
+ forced-color-adjust: none;
10745
+ }
10746
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return [...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new je(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Ye(this.inputElement,this._labelController)),this._tooltipController=new K$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new L$1(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",e=>this._preventBlur(e)),this._overflow=t;}}),this.addController(this._overflowController),this.__updateChips(),Ot$1(this);}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),rt$1(this.i18n.cleared);}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache();}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate();}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips();}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t);}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate());}_onResize(){this.__updateChips();}_delegateAttribute(t,e){if(this.stateTarget){if(t==="required"){this._delegateAttribute("aria-required",e?"true":!1);return}super._delegateAttribute(t,e);}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips();}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips();}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips();}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||e==null)&&(this.filteredItems=e);}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache();}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips();}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize;}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e));}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e;}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth();}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map(e=>this._getItemLabel(e)).join(", ")}_findIndex(t,e,i){if(i&&t){for(let s=0;s<e.length;s++)if(e[s]&&e[s][i]===t[i])return s;return -1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter);}__announceItem(t,e,i){const s=e?"selected":"deselected",r=this.i18n.total.replace("{count}",i||0);rt$1(`${t} ${this.i18n[s]} ${r}`);}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length);}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),s=this._getItemLabel(t);let r=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===s.toLowerCase()){this.__clearInternalValue();return}e.splice(i,1);}else e.push(t),r=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(s,r,e.length);}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}));}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[];}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",s=>this._onItemRemoved(s)),e.addEventListener("mousedown",s=>this._preventBlur(s)),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),s=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",s}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove();});const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let s=e-i;t.length>1&&(s-=this.__getOverflowWidth());const r=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=t.length-1,h=null;d>=0;d--){const c=this.__createChip(t[d]);this.insertBefore(c,h),h=c,n.unshift(c);}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(t.pop());const h=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=h)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(r,s)}px`);}this._overflowItems=a;return}for(let n=t.length-1,a=null;n>=0;n--){const l=this.__createChip(t[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>s)if(a===null)l.style.maxWidth=`${Math.max(r,s)}px`;else {l.remove();break}t.pop(),a=l;}this._overflowItems=t;}__updateOverflowChip(t,e,i,s){if(t){const r=e.length;t.label=`${r}`,t.setAttribute("count",`${r}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",r===0),t.disabled=i,t.readonly=s;}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear();}_onClearButtonClick(t){t.stopPropagation(),this.clear();}_onChange(t){t.stopPropagation();}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[]);}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let s;this.__isRTL?i===t.length-1?s=-1:i>-1&&(s=i+1):i===-1?s=t.length-1:i>0&&(s=i-1),s!==void 0&&(this._focusedChipIndex=s);}_onArrowRight(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let s;this.__isRTL?i===-1?s=t.length-1:i>0&&(s=i-1):i===t.length-1?s=-1:i>-1&&(s=i+1),s!==void 0&&(this._focusedChipIndex=s);}_onBackSpace(t){if(this.inputElement.selectionStart!==0)return;const e=this._focusedChipIndex;e===-1?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1);}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const i=this._chips;if(i.forEach((s,r)=>{s.toggleAttribute("focused",r===t);}),t>-1){const s=i[t].item,r=this._getItemLabel(s);rt$1(`${r} ${this.i18n.focused}`);}}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t);}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item);}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}));}_onItemRemoved(t){this.__removeItem(t.detail.item);}_preventBlur(t){t.preventDefault();}}g$1(zh);_$1("vaadin-notification-card",p$1`
10747
+ :host {
10748
+ position: relative;
10749
+ margin: var(--lumo-space-s);
10750
+ }
10751
+
10752
+ [part='overlay'] {
10753
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
10754
+ border-radius: var(--lumo-border-radius-l);
10755
+ box-shadow:
10756
+ 0 0 0 1px var(--lumo-contrast-10pct),
10757
+ var(--lumo-box-shadow-l);
10758
+ font-family: var(--lumo-font-family);
10759
+ font-size: var(--lumo-font-size-m);
10760
+ font-weight: 400;
10761
+ line-height: var(--lumo-line-height-s);
10762
+ letter-spacing: 0;
10763
+ text-transform: none;
10764
+ -webkit-text-size-adjust: 100%;
10765
+ -webkit-font-smoothing: antialiased;
10766
+ -moz-osx-font-smoothing: grayscale;
10767
+ }
10768
+
10769
+ [part='content'] {
10770
+ padding: var(--lumo-space-wide-l);
10771
+ display: flex;
10772
+ align-items: center;
10773
+ justify-content: space-between;
10774
+ }
10775
+
10776
+ [part='content'] ::slotted(vaadin-button) {
10777
+ flex: none;
10778
+ margin: 0 calc(var(--lumo-space-s) * -1) 0 var(--lumo-space-m);
10779
+ }
10780
+
10781
+ :host([slot^='middle']) {
10782
+ max-width: 80vw;
10783
+ margin: var(--lumo-space-s) auto;
10784
+ }
10785
+
10786
+ :host([slot$='stretch']) {
10787
+ margin: 0;
10788
+ }
10789
+
10790
+ :host([slot$='stretch']) [part='overlay'] {
10791
+ border-radius: 0;
10792
+ }
10793
+
10794
+ @media (min-width: 421px) {
10795
+ :host(:not([slot$='stretch'])) {
10796
+ display: flex;
10797
+ }
10798
+
10799
+ :host([slot$='end']) {
10800
+ justify-content: flex-end;
10801
+ }
10802
+
10803
+ :host([slot^='middle']),
10804
+ :host([slot$='center']) {
10805
+ display: flex;
10806
+ justify-content: center;
10807
+ }
10808
+ }
10809
+
10810
+ @keyframes lumo-notification-exit-fade-out {
10811
+ 100% {
10812
+ opacity: 0;
10813
+ }
10814
+ }
10815
+
10816
+ @keyframes lumo-notification-enter-fade-in {
10817
+ 0% {
10818
+ opacity: 0;
10819
+ }
10820
+ }
10821
+
10822
+ @keyframes lumo-notification-enter-slide-down {
10823
+ 0% {
10824
+ transform: translateY(-200%);
10825
+ opacity: 0;
10826
+ }
10827
+ }
10828
+
10829
+ @keyframes lumo-notification-exit-slide-up {
10830
+ 100% {
10831
+ transform: translateY(-200%);
10832
+ opacity: 0;
10833
+ }
10834
+ }
10835
+
10836
+ @keyframes lumo-notification-enter-slide-up {
10837
+ 0% {
10838
+ transform: translateY(200%);
10839
+ opacity: 0;
10840
+ }
10841
+ }
10842
+
10843
+ @keyframes lumo-notification-exit-slide-down {
10844
+ 100% {
10845
+ transform: translateY(200%);
10846
+ opacity: 0;
10847
+ }
10848
+ }
10849
+
10850
+ :host([slot='middle'][opening]) {
10851
+ animation: lumo-notification-enter-fade-in 300ms;
10852
+ }
10853
+
10854
+ :host([slot='middle'][closing]) {
10855
+ animation: lumo-notification-exit-fade-out 300ms;
10856
+ }
10857
+
10858
+ :host([slot^='top'][opening]) {
10859
+ animation: lumo-notification-enter-slide-down 300ms;
10860
+ }
10861
+
10862
+ :host([slot^='top'][closing]) {
10863
+ animation: lumo-notification-exit-slide-up 300ms;
10864
+ }
10865
+
10866
+ :host([slot^='bottom'][opening]) {
10867
+ animation: lumo-notification-enter-slide-up 300ms;
10868
+ }
10869
+
10870
+ :host([slot^='bottom'][closing]) {
10871
+ animation: lumo-notification-exit-slide-down 300ms;
10872
+ }
10873
+
10874
+ :host([theme='success']) {
10875
+ --_focus-ring-gap-color: var(--lumo-success-color);
10876
+ --vaadin-focus-ring-color: var(--lumo-success-contrast-color);
10877
+ }
10878
+
10879
+ :host([theme='warning']) {
10880
+ --_focus-ring-gap-color: var(--lumo-warning-color);
10881
+ --vaadin-focus-ring-color: var(--lumo-warning-contrast-color);
10882
+ }
10883
+
10884
+ :host([theme='error']) {
10885
+ --_focus-ring-gap-color: var(--lumo-error-color);
10886
+ --vaadin-focus-ring-color: var(--lumo-error-contrast-color);
10887
+ }
10888
+
10889
+ :host([theme='primary']) {
10890
+ --_focus-ring-gap-color: var(--lumo-primary-color);
10891
+ --vaadin-focus-ring-color: var(--lumo-primary-contrast-color);
10892
+ }
10893
+
10894
+ :host([theme~='primary']) [part='overlay'] {
10895
+ background: var(--lumo-primary-color);
10896
+ color: var(--lumo-primary-contrast-color);
10897
+ box-shadow: var(--lumo-box-shadow-l);
10898
+ }
10899
+
10900
+ :host([theme~='primary']) {
10901
+ --vaadin-button-background: var(--lumo-shade-20pct);
10902
+ --vaadin-button-text-color: var(--lumo-primary-contrast-color);
10903
+ --vaadin-button-primary-background: var(--lumo-primary-contrast-color);
10904
+ --vaadin-button-primary-text-color: var(--lumo-primary-text-color);
10905
+ }
10906
+
10907
+ :host([theme~='contrast']) [part='overlay'] {
10908
+ background: var(--lumo-contrast);
10909
+ color: var(--lumo-base-color);
10910
+ box-shadow: var(--lumo-box-shadow-l);
10911
+ }
10912
+
10913
+ :host([theme~='contrast']) {
10914
+ --vaadin-button-background: var(--lumo-contrast-20pct);
10915
+ --vaadin-button-text-color: var(--lumo-base-color);
10916
+ --vaadin-button-primary-background: var(--lumo-base-color);
10917
+ --vaadin-button-primary-text-color: var(--lumo-contrast);
10918
+ }
10919
+
10920
+ :host([theme~='success']) [part='overlay'] {
10921
+ background: var(--lumo-success-color);
10922
+ color: var(--lumo-success-contrast-color);
10923
+ box-shadow: var(--lumo-box-shadow-l);
10924
+ }
10925
+
10926
+ :host([theme~='success']) {
10927
+ --vaadin-button-background: var(--lumo-shade-20pct);
10928
+ --vaadin-button-text-color: var(--lumo-success-contrast-color);
10929
+ --vaadin-button-primary-background: var(--lumo-success-contrast-color);
10930
+ --vaadin-button-primary-text-color: var(--lumo-success-text-color);
10931
+ }
10932
+
10933
+ :host([theme~='error']) [part='overlay'] {
10934
+ background: var(--lumo-error-color);
10935
+ color: var(--lumo-error-contrast-color);
10936
+ box-shadow: var(--lumo-box-shadow-l);
10937
+ }
10938
+
10939
+ :host([theme~='error']) {
10940
+ --vaadin-button-background: var(--lumo-shade-20pct);
10941
+ --vaadin-button-text-color: var(--lumo-error-contrast-color);
10942
+ --vaadin-button-primary-background: var(--lumo-error-contrast-color);
10943
+ --vaadin-button-primary-text-color: var(--lumo-error-text-color);
10944
+ }
10945
+
10946
+ :host([theme~='warning']) [part='overlay'] {
10947
+ background: var(--lumo-warning-color);
10948
+ color: var(--lumo-warning-contrast-color);
10949
+ box-shadow:
10950
+ inset 0 0 0 1px var(--lumo-contrast-20pct),
10951
+ var(--lumo-box-shadow-l);
10952
+ }
10953
+
10954
+ :host([theme~='warning']) {
10955
+ --vaadin-button-background: var(--lumo-shade-20pct);
10956
+ --vaadin-button-text-color: var(--lumo-warning-contrast-color);
10957
+ --vaadin-button-primary-background: var(--lumo-shade-50pct);
10958
+ --vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
10959
+ }
10960
+ `,{moduleId:"lumo-notification-card"});/**
10961
+ * @license
10962
+ * Copyright 2020 Google LLC
10963
+ * SPDX-License-Identifier: BSD-3-Clause
10964
+ */const Nh=(o,t)=>(o==null?void 0:o._$litType$)!==void 0;/**
10965
+ * @license
10966
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
10967
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10968
+ */class Lh extends pr(x(F$1(y$1))){static get template(){return b$1`
10969
+ <style>
10970
+ :host {
10971
+ position: fixed;
10972
+ z-index: 1000;
10973
+ top: 0;
10974
+ left: 0;
10975
+ bottom: 0;
10976
+ right: 0;
10977
+ box-sizing: border-box;
10978
+
10979
+ display: flex;
10980
+ flex-direction: column;
10981
+ align-items: stretch;
10982
+ pointer-events: none;
10983
+ }
10984
+
10985
+ [region-group] {
10986
+ flex: 1 1 0%;
10987
+ display: flex;
10988
+ }
10989
+
10990
+ [region-group='top'] {
10991
+ align-items: flex-start;
10992
+ }
10993
+
10994
+ [region-group='bottom'] {
10995
+ align-items: flex-end;
10996
+ }
10997
+
10998
+ [region-group] > [region] {
10999
+ flex: 1 1 0%;
11000
+ }
11001
+
11002
+ @media (max-width: 420px) {
11003
+ [region-group] {
11004
+ flex-direction: column;
11005
+ align-items: stretch;
11006
+ }
11007
+
11008
+ [region-group='top'] {
11009
+ justify-content: flex-start;
11010
+ }
11011
+
11012
+ [region-group='bottom'] {
11013
+ justify-content: flex-end;
11014
+ }
11015
+
11016
+ [region-group] > [region] {
11017
+ flex: initial;
11018
+ }
11019
+ }
11020
+ </style>
11021
+
11022
+ <div region="top-stretch"><slot name="top-stretch"></slot></div>
11023
+ <div region-group="top">
11024
+ <div region="top-start"><slot name="top-start"></slot></div>
11025
+ <div region="top-center"><slot name="top-center"></slot></div>
11026
+ <div region="top-end"><slot name="top-end"></slot></div>
11027
+ </div>
11028
+ <div region="middle"><slot name="middle"></slot></div>
11029
+ <div region-group="bottom">
11030
+ <div region="bottom-start"><slot name="bottom-start"></slot></div>
11031
+ <div region="bottom-center"><slot name="bottom-center"></slot></div>
11032
+ <div region="bottom-end"><slot name="bottom-end"></slot></div>
11033
+ </div>
11034
+ <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
11035
+ `}static get is(){return "vaadin-notification-container"}static get properties(){return {opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Xi&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener));}_detectIosNavbar(){const t=window.innerHeight,i=window.innerWidth>t,s=document.documentElement.clientHeight;i&&s>t?this.style.bottom=`${s-t}px`:this.style.bottom="0";}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault();}}class Fh extends x(y$1){static get template(){return b$1`
11036
+ <style>
11037
+ :host {
11038
+ display: block;
11039
+ }
11040
+
11041
+ [part='overlay'] {
11042
+ pointer-events: auto;
11043
+ }
11044
+
11045
+ @media (forced-colors: active) {
11046
+ [part='overlay'] {
11047
+ outline: 3px solid;
11048
+ }
11049
+ }
11050
+ </style>
11051
+
11052
+ <div part="overlay">
11053
+ <div part="content">
11054
+ <slot></slot>
11055
+ </div>
11056
+ </div>
11057
+ `}static get is(){return "vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite");}}class R$1 extends Tt$1(co(F$1(y$1))){static get template(){return b$1`
11058
+ <style>
11059
+ :host {
11060
+ display: none !important;
11061
+ }
11062
+ </style>
11063
+ <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
11064
+ `}static get is(){return "vaadin-notification"}static get properties(){return {duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return ["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Nh(t)?R$1._createAndShowNotification(i=>{ho(t,i);},e):R$1._createAndShowNotification(i=>{i.innerText=t;},e)}static _createAndShowNotification(t,e){const i=document.createElement(R$1.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",s=>{s.detail.value||i.remove();}),i}get _container(){return R$1._container||(R$1._container=document.createElement("vaadin-notification-container"),document.body.appendChild(R$1._container)),R$1._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ot$1(this);}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1);});}requestContentUpdate(){this.renderer&&this.renderer(this._card,this);}_rendererChanged(t,e,i){if(!i)return;const s=this._oldRenderer!==t;this._oldRenderer=t,s&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate());}open(){this.opened=!0;}close(){this.opened=!1;}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard();}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener);}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1;}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card);}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"));}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard();}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&t!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState();},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard();}_positionChanged(){this.opened&&this._animatedAppendNotificationCard();}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),t)));}}g$1(Lh);g$1(Fh);g$1(R$1);const Vr=p$1`
11065
+ :host {
11066
+ -webkit-tap-highlight-color: transparent;
11067
+ --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
11068
+ }
11069
+
11070
+ /* Dividers */
11071
+ [part='items'] ::slotted(hr) {
11072
+ height: 1px;
11073
+ border: 0;
11074
+ padding: 0;
11075
+ margin: var(--lumo-space-s) var(--lumo-border-radius-m);
11076
+ background-color: var(--lumo-contrast-10pct);
11077
+ }
11078
+ `;_$1("vaadin-list-box",Vr,{moduleId:"lumo-list-box"});/**
11079
+ * @license
11080
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11081
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11082
+ */_$1("vaadin-select-item",Dt,{moduleId:"lumo-select-item"});_$1("vaadin-select-list-box",Vr,{moduleId:"lumo-select-list-box"});const Bh=p$1`
11083
+ :host(:not([theme*='align'])) ::slotted([slot='value']) {
11084
+ text-align: start;
11085
+ }
11086
+
11087
+ [part='input-field'] {
11088
+ cursor: var(--lumo-clickable-cursor);
11089
+ }
11090
+
11091
+ [part='input-field'] ::slotted([slot='value']) {
11092
+ font-weight: var(--vaadin-input-field-value-font-weight, 500);
11093
+ }
11094
+
11095
+ [part='input-field'] ::slotted([slot='value']:not([placeholder])) {
11096
+ color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
11097
+ }
11098
+
11099
+ :host([readonly]) [part='input-field'] ::slotted([slot='value']:not([placeholder])) {
11100
+ color: var(--lumo-secondary-text-color);
11101
+ }
11102
+
11103
+ /* placeholder styles */
11104
+ [part='input-field'] ::slotted([slot='value'][placeholder]) {
11105
+ color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
11106
+ }
11107
+
11108
+ :host(:is([readonly], [disabled])) ::slotted([slot='value'][placeholder]) {
11109
+ opacity: 0;
11110
+ }
11111
+
11112
+ [part='toggle-button']::before {
11113
+ content: var(--lumo-icons-dropdown);
11114
+ }
11115
+
11116
+ /* Highlight the toggle button when hovering over the entire component */
11117
+ :host(:hover:not([readonly]):not([disabled])) [part='toggle-button'] {
11118
+ color: var(--lumo-contrast-80pct);
11119
+ }
11120
+
11121
+ :host([theme~='small']) [part='input-field'] ::slotted([slot='value']) {
11122
+ --_lumo-selected-item-height: var(--lumo-size-s);
11123
+ --_lumo-selected-item-padding: 0;
11124
+ }
11125
+ `;_$1("vaadin-select",[ae,Bh],{moduleId:"lumo-select"});_$1("vaadin-select-value-button",p$1`
11126
+ :host {
11127
+ font-family: var(--lumo-font-family);
11128
+ font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
11129
+ padding: 0 0.25em;
11130
+ --_lumo-selected-item-height: var(--lumo-size-m);
11131
+ --_lumo-selected-item-padding: 0.5em;
11132
+ }
11133
+
11134
+ ::slotted(*) {
11135
+ min-height: var(--_lumo-selected-item-height);
11136
+ padding-top: var(--_lumo-selected-item-padding);
11137
+ padding-bottom: var(--_lumo-selected-item-padding);
11138
+ font-size: inherit;
11139
+ }
11140
+
11141
+ ::slotted(*:hover) {
11142
+ background-color: transparent;
11143
+ }
11144
+ `,{moduleId:"lumo-select-value-button"});const Vh=p$1`
11145
+ :host {
11146
+ --_lumo-item-selected-icon-display: block;
11147
+ }
11148
+
11149
+ /* Small viewport adjustment */
11150
+ :host([phone]) {
11151
+ /* stylelint-disable declaration-block-no-redundant-longhand-properties */
11152
+ top: 0 !important;
11153
+ right: 0 !important;
11154
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
11155
+ left: 0 !important;
11156
+ /* stylelint-enable declaration-block-no-redundant-longhand-properties */
11157
+ align-items: stretch;
11158
+ justify-content: flex-end;
11159
+ }
11160
+
11161
+ :host([no-vertical-overlap][top-aligned]) [part='overlay'] {
11162
+ margin-block-start: var(--lumo-space-xs);
11163
+ }
11164
+
11165
+ :host([no-vertical-overlap][bottom-aligned]) [part='overlay'] {
11166
+ margin-block-end: var(--lumo-space-xs);
11167
+ }
11168
+
11169
+ :host([theme~='align-left']) {
11170
+ text-align: left;
11171
+ }
11172
+
11173
+ :host([theme~='align-right']) {
11174
+ text-align: right;
11175
+ }
11176
+
11177
+ :host([theme~='align-center']) {
11178
+ text-align: center;
11179
+ }
11180
+ `;_$1("vaadin-select-overlay",[Ki,Vh],{moduleId:"lumo-select-overlay"});/**
11181
+ * @license
11182
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11183
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11184
+ */const Rh=o=>class extends Vi(ne(o)){static get properties(){return {_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return ["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e;}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e);}focus(){this.disabled||(super.focus(),this._setFocused(!0));}_shouldSetActive(e){return !this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e);}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur());}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click());}};/**
11185
+ * @license
11186
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11187
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11188
+ */class $h extends Rh(x(M$1(y$1))){static get is(){return "vaadin-select-item"}static get template(){return b$1`
11189
+ <style>
11190
+ :host {
11191
+ display: inline-block;
11192
+ }
11193
+
11194
+ :host([hidden]) {
11195
+ display: none !important;
11196
+ }
11197
+ </style>
11198
+ <span part="checkmark" aria-hidden="true"></span>
11199
+ <div part="content">
11200
+ <slot></slot>
11201
+ </div>
11202
+ `}ready(){super.ready(),this.setAttribute("role","option");}}g$1($h);/**
11203
+ * @license
11204
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
11205
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11206
+ */function Hh(o,t){const{scrollLeft:e}=o;return t!=="rtl"?e:o.scrollWidth-o.clientWidth+e}function Uh(o,t,e){t!=="rtl"?o.scrollLeft=e:o.scrollLeft=o.clientWidth-o.scrollWidth+e;}/**
11207
+ * @license
11208
+ * Copyright (c) 2022 - 2024 Vaadin Ltd.
11209
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11210
+ */const qh=o=>class extends re(o){get focused(){return (this._getItems()||[]).find(Hi)}get _vertical(){return !0}focus(){const e=this._getItems();if(Array.isArray(e)){const i=this._getAvailableIndex(e,0,null,s=>!_i(s));i>=0&&this._focus(i);}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:i}=e,s=this._getItems()||[],r=s.indexOf(this.focused);let n,a;const d=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(i)?(a=-d,n=r-d):this.__isNextKey(i)?(a=d,n=r+d):i==="Home"?(a=1,n=0):i==="End"&&(a=-1,n=s.length-1),n=this._getAvailableIndex(s,n,a,h=>!_i(h)),n>=0&&(e.preventDefault(),this._focus(n,!0));}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,i=!1){const s=this._getItems();this._focusItem(s[e],i);}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""));}_getAvailableIndex(e,i,s,r){const n=e.length;let a=i;for(let l=0;typeof a=="number"&&l<n;l+=1,a+=s||1){a<0?a=n-1:a>=n&&(a=0);const d=e[a];if(!d.hasAttribute("disabled")&&this.__isMatchingItem(d,r))return a}return -1}__isMatchingItem(e,i){return typeof i=="function"?i(e):!0}};/**
11211
+ * @license
11212
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11213
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11214
+ */const Wh=o=>class extends qh(o){static get properties(){return {disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return ["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return !this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],i=this._getAvailableIndex(e,0,null,s=>s.tabIndex===0&&!_i(s));i>=0?this._focus(i):super.focus();}ready(){super.ready(),this.addEventListener("click",i=>this._onClick(i));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new zi(e,()=>{this._setItems(this._filterItems(Yo(this)));});}_getItems(){return this.items}_enhanceItems(e,i,s,r){if(!r&&e){this.setAttribute("aria-orientation",i||"vertical"),e.forEach(a=>{i?a.setAttribute("orientation",i):a.removeAttribute("orientation");}),this._setFocusable(s<0||!s?0:s);const n=e[s];e.forEach(a=>{a.selected=a===n;}),n&&!n.disabled&&this._scrollToItem(s);}}_filterItems(e){return e.filter(i=>i._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const i=this._filterItems(e.composedPath())[0];let s;i&&!i.disabled&&(s=this.items.indexOf(i))>=0&&(this.selected=s);}_searchKey(e,i){this._searchReset=O.debounce(this._searchReset,W$1.after(500),()=>{this._searchBuf="";}),this._searchBuf+=i.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=i.toLowerCase());const s=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,s,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const i=e.key,s=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(i)&&i.length===1){const r=this._searchKey(s,i);r>=0&&this._focus(r);return}super._onKeyDown(e);}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const i=this.items[e];this.items.forEach(s=>{s.tabIndex=s===i?0:-1;});}_focus(e){this.items.forEach((i,s)=>{i.focused=s===e;}),this._setFocusable(e),this._scrollToItem(e),super._focus(e);}_scrollToItem(e){const i=this.items[e];if(!i)return;const s=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||i).getBoundingClientRect(),a=(this.items[e-1]||i).getBoundingClientRect();let l=0;!this._isRTL&&n[s[1]]>=r[s[1]]||this._isRTL&&n[s[1]]<=r[s[1]]?l=n[s[1]]-r[s[1]]:(!this._isRTL&&a[s[0]]<=r[s[0]]||this._isRTL&&a[s[0]]>=r[s[0]])&&(l=a[s[0]]-r[s[0]]),this._scroll(l);}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else {const i=this.getAttribute("dir")||"ltr",s=Hh(this._scrollerElement,i)+e;Uh(this._scrollerElement,i,s);}}};/**
11215
+ * @license
11216
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11217
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11218
+ */class jh extends Wh(x(M$1(G$1(y$1)))){static get is(){return "vaadin-select-list-box"}static get template(){return b$1`
11219
+ <style>
11220
+ :host {
11221
+ display: flex;
11222
+ }
11223
+
11224
+ :host([hidden]) {
11225
+ display: none !important;
11226
+ }
11227
+
11228
+ [part='items'] {
11229
+ height: 100%;
11230
+ width: 100%;
11231
+ overflow-y: auto;
11232
+ -webkit-overflow-scrolling: touch;
11233
+ }
11234
+ </style>
11235
+ <div part="items">
11236
+ <slot></slot>
11237
+ </div>
11238
+ `}static get properties(){return {orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox");}}g$1(jh);/**
11239
+ * @license
11240
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11241
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11242
+ */const Yh=o=>class extends Ji(kt$1(M$1(o))){static get observers(){return ["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0;}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,i){if(e&&i){const s="--vaadin-select-overlay-width",r=getComputedStyle(i).getPropertyValue(s);r===""?this.style.removeProperty(s):this.style.setProperty(s,r);}}};/**
11243
+ * @license
11244
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11245
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11246
+ */const Kh=p$1`
11247
+ :host {
11248
+ align-items: flex-start;
11249
+ justify-content: flex-start;
11250
+ }
11251
+
11252
+ :host(:not([phone])) [part='overlay'] {
11253
+ min-width: var(--vaadin-select-overlay-width, var(--vaadin-select-text-field-width));
11254
+ }
11255
+
11256
+ @media (forced-colors: active) {
11257
+ [part='overlay'] {
11258
+ outline: 3px solid;
11259
+ }
11260
+ }
11261
+ `;_$1("vaadin-select-overlay",[Et$1,Kh],{moduleId:"vaadin-select-overlay-styles"});class Gh extends Yh(x(y$1)){static get is(){return "vaadin-select-overlay"}static get template(){return b$1`
11262
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
11263
+ <div part="overlay" id="overlay" tabindex="0">
11264
+ <div part="content" id="content">
11265
+ <slot></slot>
11266
+ </div>
11267
+ </div>
11268
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this;}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const t=this._getMenuElement();this.owner._assignMenuElement(t);}}}g$1(Gh);/**
11269
+ * @license
11270
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11271
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11272
+ */const Xh=p$1`
11273
+ :host {
11274
+ display: inline-block;
11275
+ position: relative;
11276
+ outline: none;
11277
+ white-space: nowrap;
11278
+ -webkit-user-select: none;
11279
+ -moz-user-select: none;
11280
+ user-select: none;
11281
+ min-width: 0;
11282
+ width: 0;
11283
+ }
11284
+
11285
+ ::slotted(*) {
11286
+ padding-left: 0;
11287
+ padding-right: 0;
11288
+ flex: auto;
11289
+ }
11290
+
11291
+ /* placeholder styles */
11292
+ ::slotted(*:not([selected])) {
11293
+ line-height: 1;
11294
+ }
11295
+
11296
+ .vaadin-button-container {
11297
+ display: inline-flex;
11298
+ align-items: center;
11299
+ justify-content: center;
11300
+ text-align: inherit;
11301
+ width: 100%;
11302
+ height: 100%;
11303
+ min-height: inherit;
11304
+ text-shadow: inherit;
11305
+ }
11306
+
11307
+ [part='label'] {
11308
+ white-space: nowrap;
11309
+ overflow: hidden;
11310
+ text-overflow: ellipsis;
11311
+ width: 100%;
11312
+ line-height: inherit;
11313
+ }
11314
+ `;/**
11315
+ * @license
11316
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11317
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11318
+ */_$1("vaadin-select-value-button",Xh,{moduleId:"vaadin-select-value-button-styles"});class Jh extends Qi(x(y$1)){static get is(){return "vaadin-select-value-button"}static get template(){return b$1`
11319
+ <div class="vaadin-button-container">
11320
+ <span part="label">
11321
+ <slot></slot>
11322
+ </span>
11323
+ </div>
11324
+ `}}g$1(Jh);/**
11325
+ * @license
11326
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
11327
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11328
+ */const Qh=p$1`
11329
+ .sr-only {
11330
+ border: 0 !important;
11331
+ clip: rect(1px, 1px, 1px, 1px) !important;
11332
+ -webkit-clip-path: inset(50%) !important;
11333
+ clip-path: inset(50%) !important;
11334
+ height: 1px !important;
11335
+ margin: -1px !important;
11336
+ overflow: hidden !important;
11337
+ padding: 0 !important;
11338
+ position: absolute !important;
11339
+ width: 1px !important;
11340
+ white-space: nowrap !important;
11341
+ }
11342
+ `;/**
11343
+ * @license
11344
+ * Copyright (c) 2023 - 2024 Vaadin Ltd.
11345
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11346
+ */class Zh extends L$1{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(e,i)=>{i._setFocusElement(e),i.ariaTarget=e,i.stateTarget=e,e.setAttribute("aria-haspopup","listbox");}});}}/**
11347
+ * @license
11348
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11349
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11350
+ */const ec=o=>class extends Tt$1(xt$1(Ui(re(Ct$1(o))))){static get properties(){return {items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return [...super.delegateAttrs,"invalid"]}static get observers(){return ["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${bt$1()}`,this._srLabelController=new or(this),this._srLabelController.slotName="sr-label";}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Zh(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ss(this._phoneMediaQuery,e=>{this._phone=e;})),this._tooltipController=new K$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController);}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items));}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}__itemsChanged(e,i){(e||i)&&this.requestContentUpdate();}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e);}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",i=>this._onKeyDownInside(i),!0),e.addEventListener("click",i=>{const s=i.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(s&&s.value!==void 0&&s.value!==this.value),this.opened=!1;},!0),this.__lastMenuElement=e);}__initMenuItems(e){e.items&&(this._items=e.items);}_valueChanged(e,i){this.toggleAttribute("has-value",!!e),i!==void 0&&!this.__dispatchChangePending&&this.validate();}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly);}_onToggleMouseDown(e){e.preventDefault();}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const i=this._menuElement.selected,s=i!==void 0?i:-1,r=this._menuElement._searchKey(s,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r);}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1);}_openedChanged(e,i,s){if(!(!i||!s)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),i.style.setProperty("--vaadin-select-text-field-width",`${s.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring");}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e;}}_updateAriaExpanded(e,i){i&&i.setAttribute("aria-expanded",e?"true":"false");}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"));}__attachSelectedItem(e){let i;const s=e.getAttribute("label");s?i=this.__createItemElement({label:s}):i=e.cloneNode(!0),i._sourceItem=e,this.__appendValueItemElement(i,this.focusElement),i.selected=!0;}__createItemElement(e){const i=document.createElement(e.component||"vaadin-select-item");return e.label&&(i.textContent=e.label),e.value&&(i.value=e.value),e.disabled&&(i.disabled=e.disabled),e.className&&(i.className=e.className),i}__appendValueItemElement(e,i){i.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId);}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null);}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e);}_setCustomAriaLabelledBy(e){const i=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(i,!0);}_getLabelIdWithItemId(e){const s=(this._items?this._items[this._menuElement.selected]:!1)||this.placeholder?this._itemId:"";return e?`${e} ${s}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const i=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(i))this.__attachSelectedItem(i);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","");}!this._valueChanging&&i&&(this._selectedChanging=!0,this.value=i.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const s=i||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};ot$1(e,"aria-labelledby",s),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId);}_hasContent(e){if(!e)return !1;const i=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),s=e.childElementCount>0;return i||s}_updateSelectedItem(e,i){if(i){const s=e==null?e:e.toString();this._menuElement.selected=i.reduce((r,n,a)=>r===void 0&&n.value===s?a:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging);}}_shouldRemoveFocus(){return !this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}checkValidity(){return !this.required||this.readonly||!!this.value}__defaultRenderer(e,i){if(!this.items||this.items.length===0){e.textContent="";return}let s=e.firstElementChild;s||(s=document.createElement("vaadin-select-list-box"),e.appendChild(s)),s.textContent="",this.items.forEach(r=>{s.appendChild(this.__createItemElement(r));});}__dispatchChange(){return xe(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1;})}};/**
11351
+ * @license
11352
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
11353
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11354
+ */_$1("vaadin-select",[wr,Ar,Qh],{moduleId:"vaadin-select-styles"});class tc extends ec(F$1(x(y$1))){static get is(){return "vaadin-select"}static get template(){return b$1`
11355
+ <style>
11356
+ :host {
11357
+ position: relative;
11358
+ }
11359
+
11360
+ ::slotted([slot='value']) {
11361
+ flex-grow: 1;
11362
+ }
11363
+ </style>
11364
+
11365
+ <div class="vaadin-select-container">
11366
+ <div part="label" on-click="_onClick">
11367
+ <slot name="label"></slot>
11368
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
11369
+ </div>
11370
+
11371
+ <vaadin-input-container
11372
+ part="input-field"
11373
+ readonly="[[readonly]]"
11374
+ disabled="[[disabled]]"
11375
+ invalid="[[invalid]]"
11376
+ theme$="[[_theme]]"
11377
+ on-click="_onClick"
11378
+ >
11379
+ <slot name="prefix" slot="prefix"></slot>
11380
+ <slot name="value"></slot>
11381
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-mousedown="_onToggleMouseDown"></div>
11382
+ </vaadin-input-container>
11383
+
11384
+ <div part="helper-text">
11385
+ <slot name="helper"></slot>
11386
+ </div>
11387
+
11388
+ <div part="error-message">
11389
+ <slot name="error-message"></slot>
11390
+ </div>
11391
+ </div>
11392
+
11393
+ <vaadin-select-overlay
11394
+ position-target="[[_inputContainer]]"
11395
+ opened="{{opened}}"
11396
+ with-backdrop="[[_phone]]"
11397
+ phone$="[[_phone]]"
11398
+ theme$="[[_theme]]"
11399
+ no-vertical-overlap$="[[noVerticalOverlap]]"
11400
+ on-vaadin-overlay-open="_onOverlayOpen"
11401
+ ></vaadin-select-overlay>
11402
+
11403
+ <slot name="tooltip"></slot>
11404
+ <div class="sr-only">
11405
+ <slot name="sr-label"></slot>
11406
+ </div>
11407
+ `}static get observers(){return ["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ot$1(this);}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate());}_onOverlayOpen(){this._menuElement&&this._menuElement.focus();}}g$1(tc);
10318
11408
 
10319
11409
  const generalInputCss = ":host{display:block;height:100%}";
10320
11410
  const GeneralInputStyle0 = generalInputCss;
@@ -11440,32 +12530,19 @@ const dispatchCustomEvent = (type, data = {}) => {
11440
12530
  document.dispatchEvent(event);
11441
12531
  };
11442
12532
 
11443
- var PlayerConsentsCXlt0JBF = {};
12533
+ var PlayerConsentsDrhcDBLh = {};
11444
12534
 
11445
- var GeneralAnimationLoadingAcwReDLO = {};
12535
+ var GeneralAnimationLoadingSk__cGd0 = {};
11446
12536
 
11447
- 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;
12537
+ 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;
11448
12538
 
11449
12539
  (function (exports) {
11450
- var fr=Object.defineProperty,_r=Object.defineProperties;var yr=Object.getOwnPropertyDescriptors;var We=Object.getOwnPropertySymbols;var vr=Object.prototype.hasOwnProperty,kr=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={}))vr.call(t,r)&&Ze(e,r,t[r]);if(We)for(var r of We(t))kr.call(t,r)&&Ze(e,r,t[r]);return e},Je=(e,t)=>_r(e,yr(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 br(e,t){return {subscribe:ve(e,t).subscribe}}function ve(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 br(r,(s,l)=>{let d=!1;const h=[];let c=0,m=a.noop;const p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},v=i.map((_,g)=>a.subscribe(_,S=>{h[g]=S,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){a.run_all(v),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]"||wr(e)}var Mr=typeof Symbol=="function"&&Symbol.for,Tr=Mr?Symbol.for("react.element"):60103;function wr(e){return e.$$typeof===Tr}function Nr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?q(Nr(e),e,t):e}function Ar(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function Hr(e,t){if(!t.customMerge)return q;var r=t.customMerge(e);return typeof r=="function"?r:q}function Pr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Qe(e){return Object.keys(e).concat(Pr(e))}function Ct(e,t){try{return t in e}catch(r){return !1}}function Br(e,t){return Ct(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function zr(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){Br(e,i)||(Ct(e,i)&&r.isMergeableObject(t[i])?n[i]=Hr(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||Ar,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):zr(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);/*! *****************************************************************************
11451
- Copyright (c) Microsoft Corporation.
11452
-
11453
- Permission to use, copy, modify, and/or distribute this software for any
11454
- purpose with or without fee is hereby granted.
11455
-
11456
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11457
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11458
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11459
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11460
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11461
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
11462
- PERFORMANCE OF THIS SOFTWARE.
11463
- ***************************************************************************** */var He=function(e,t){return He=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]);},He(e,t)};function ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");He(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var N=function(){return N=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},N.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 Me(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}},Te={variadic:Dr,monadic:Gr},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 H;(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";})(H||(H={}));var W;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(W||(W={}));function Ye(e){return e.type===H.literal}function Xr(e){return e.type===H.argument}function Mt(e){return e.type===H.number}function Tt(e){return e.type===H.date}function wt(e){return e.type===H.time}function Nt(e){return e.type===H.select}function At(e){return e.type===H.plural}function qr(e){return e.type===H.pound}function Ht(e){return e.type===H.tag}function Pt(e){return !!(e&&typeof e=="object"&&e.type===W.number)}function Pe(e){return !!(e&&typeof e=="object"&&e.type===W.dateTime)}var Bt=/[ \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(p){return p.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,zt=/^(@+)?(\+|#+)?[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(zt,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=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return N(N({},d),et(h))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return N(N({},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,p,v){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)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(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,p,v){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&v?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+v.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),$e(o)));continue}if(zt.test(i.stem)){t=N(N({},t),$e(i.stem));continue}var s=It(i.stem);s&&(t=N(N({},t),s));var l=$r(i.stem);l&&(t=N(N({},t),l));}return t}var pe={"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=pe[n||""]||pe[r||""]||pe["".concat(r,"-001")]||pe["001"];return i[0]}var we,nn=new RegExp("^".concat(Bt.source,"*")),an=new RegExp("".concat(Bt.source,"*$"));function w(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},Be=!0;try{var pn=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Be=((we=pn.exec("a"))===null||we===void 0?void 0:we[0])==="a";}catch(e){Be=!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},ze=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}},gn=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(Be){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)||kn(i))break;n.push(i),r+=i>=65536?2:1;}return ze.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:H.pound,location:w(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(T.UNMATCHED_CLOSING_TAG,w(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:H.literal,value:"<".concat(i,"/>"),location:w(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(T.INVALID_TAG,w(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(T.UNMATCHED_CLOSING_TAG,w(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:i,children:s,location:w(n,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,w(l,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(T.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vn(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=w(n,this.clonePosition());return {val:{type:H.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!yn(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 ze.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(),ze(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,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,w(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(T.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:i,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(T.MALFORMED_ARGUMENT,w(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=w(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,w(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 p=fn(m.val);if(p.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var v=w(c,this.clonePosition());h={style:p,styleLocation:v};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=w(i,this.clonePosition());if(h&&tt(h==null?void 0:h.style,"::",0)){var S=gn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(S,h.styleLocation);return m.err?m:{val:{type:H.number,value:n,location:g,style:m.val},err:null}}else {if(S.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,g);var y=S;this.locale&&(y=tn(S,this.locale));var p={type:W.dateTime,pattern:y,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(y):{}},k=l==="date"?H.date:H.time;return {val:{type:k,value:n,location:g,style:p},err:null}}}return {val:{type:l==="number"?H.number:l==="date"?H.date:H.time,value:n,location:g,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(T.EXPECT_SELECT_ARGUMENT_OPTIONS,w(C,N({},C)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),E=0;if(l!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(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(),A=this.parseIdentifierIfPossible(),E=m.val;}var P=this.tryParsePluralOrSelectOptions(t,l,r,A);if(P.err)return P;var _=this.tryParseArgumentClose(i);if(_.err)return _;var D=w(i,this.clonePosition());return l==="select"?{val:{type:H.select,value:n,options:rt(P.val),location:D},err:null}:{val:{type:H.plural,value:n,options:rt(P.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,w(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,w(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,w(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(T.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 p=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=w(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,w(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(v);if(g.err)return g;l.push([h,{value:_.val,location:w(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,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(T.MISSING_OTHER_CLAUSE,w(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=w(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 yn(e){return Ie(e)||e===47}function vn(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 kn(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,Nt(t)||At(t))for(var r in t.options)delete t.options[r].location,Le(t.options[r].value);else Mt(t)&&Pt(t.style)||(Tt(t)||wt(t))&&Pe(t.style)?delete t.style.location:Ht(t)&&Le(t.children);});}function bn(e,t){t===void 0&&(t={}),t=N({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _n(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||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 be=function(e){ke(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){ke(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}(be),En=function(e){ke(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}(be),Cn=function(e){ke(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}(be),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 ge(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 p=i[m];if(Xr(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?L.literal:L.object,value:p});continue}if(Tt(c)){var v=typeof c.style=="string"?n.date[c.style]:Pe(c.style)?c.style.parsedOptions:void 0;l.push({type:L.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(wt(c)){var v=typeof c.style=="string"?n.time[c.style]:Pe(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:L.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(Mt(c)){var v=typeof c.style=="string"?n.number[c.style]:Pt(c.style)?c.style.parsedOptions:void 0;v&&v.scale&&(p=p*(v.scale||1)),l.push({type:L.literal,value:r.getNumberFormat(t,v).format(p)});continue}if(Ht(c)){var _=c.children,g=c.value,S=i[g];if(!xn(S))throw new En(g,"function",s);var y=ge(_,t,r,n,i,o),k=S(y.map(function(E){return E.value}));Array.isArray(k)||(k=[k]),l.push.apply(l,k.map(function(E){return {type:typeof E=="string"?L.literal:L.object,value:E}}));}if(Nt(c)){var C=c.options[p]||c.options.other;if(!C)throw new it(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(C.value,t,r,n,i));continue}if(At(c)){var C=c.options["=".concat(p)];if(!C){if(!Intl.PluralRules)throw new be(`Intl.PluralRules is not available in this environment.
12540
+ var gr=Object.defineProperty,fr=Object.defineProperties;var _r=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var yr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable;var We=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&We(e,r,t[r]);if(qe)for(var r of qe(t))vr.call(t,r)&&We(e,r,t[r]);return e},Ze=(e,t)=>fr(e,_r(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=GeneralAnimationLoadingSk__cGd0,X=[];function kr(e,t){return {subscribe:ke(e,t).subscribe}}function ke(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 p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},k=i.map((_,g)=>a.subscribe(_,C=>{h[g]=C,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){a.run_all(k),m(),d=!1;}})}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er=function(t){return Cr(t)&&!Sr(t)};function Cr(e){return !!e&&typeof e=="object"}function Sr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mr(e)}var xr=typeof Symbol=="function"&&Symbol.for,Tr=xr?Symbol.for("react.element"):60103;function Mr(e){return e.$$typeof===Tr}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 Je(e){return Object.keys(e).concat(Hr(e))}function Et(e,t){try{return t in e}catch(r){return !1}}function Pr(e,t){return Et(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Br(e,t,r){var n={};return r.isMergeableObject(e)&&Je(e).forEach(function(i){n[i]=ae(e[i],r);}),Je(t).forEach(function(i){Pr(e,i)||(Et(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||Er,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,zr=Or;const Ir=br(zr);var Pe=function(e,t){return Pe=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]);},Pe(e,t)};function be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pe(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var U=function(){return U=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},U.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 Te(e,t,r){if(r||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||Array.prototype.slice.call(t))}function Me(e,t){var r=t&&t.cache?t.cache:Vr,n=t&&t.serializer?t.serializer:Gr,i=t&&t.strategy?t.strategy:Ur;return i(e,{cache:r,serializer:n})}function Lr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rr(e,t,r,n){var i=Lr(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Ct(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 St(e,t,r,n,i){return r.bind(t,e,n,i)}function Ur(e,t){var r=e.length===1?Rr:Ct;return St(e,this,r,t.cache.create(),t.serializer)}function Dr(e,t){return St(e,this,Ct,t.cache.create(),t.serializer)}var Gr=function(){return JSON.stringify(arguments)},Fr=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}(),Vr={create:function(){return new Fr}},we={variadic:Dr},_e=function(){return _e=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},_e.apply(this,arguments)};var 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 Qe(e){return e.type===A.literal}function Xr(e){return e.type===A.argument}function xt(e){return e.type===A.number}function Tt(e){return e.type===A.date}function Mt(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 Be(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 B=function(){return B=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},B.apply(this,arguments)};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(p){return p.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 Ye=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bt=/^(@+)?(\+|#+)?[rs]?$/g,Kr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function Ke(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 zt(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 $e(e){var t={},r=zt(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=B(B(B({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return B(B({},d),$e(h))},{}));continue;case"engineering":t=B(B(B({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return B(B({},d),$e(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,p,k){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)throw new Error("We currently do not support maximum integer digits");if(k)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(Ye.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ye,function(d,h,c,m,p,k){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&k?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+k.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=B(B({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=B(B({},t),Ke(o)));continue}if(Bt.test(i.stem)){t=B(B({},t),Ke(i.stem));continue}var s=zt(i.stem);s&&(t=B(B({},t),s));var l=$r(i.stem);l&&(t=B(B({},t),l));}return t}var pe={"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=pe[n||""]||pe[r||""]||pe["".concat(r,"-001")]||pe["001"];return i[0]}var Ne,nn=new RegExp("^".concat(Pt.source,"*")),an=new RegExp("".concat(Pt.source,"*$"));function w(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},Oe=!0;try{var pn=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oe=((Ne=pn.exec("a"))===null||Ne===void 0?void 0:Ne[0])==="a";}catch(e){Oe=!1;}var et=on?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ze=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},tt=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},It=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}},gn=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 Ie;if(Oe){var rt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ie=function(t,r){var n;rt.lastIndex=r;var i=rt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else Ie=function(t,r){for(var n=[];;){var i=It(t,r);if(i===void 0||Lt(i)||kn(i))break;n.push(i),r+=i>=65536?2:1;}return ze.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:w(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(M.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&je(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:w(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()||!je(this.char()))return this.error(M.INVALID_TAG,w(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(M.UNMATCHED_CLOSING_TAG,w(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:s,location:w(n,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,w(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(M.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vn(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=w(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||!yn(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 ze.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(),ze(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,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,w(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ie(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=w(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,w(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 p=fn(m.val);if(p.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var k=w(c,this.clonePosition());h={style:p,styleLocation:k};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=w(i,this.clonePosition());if(h&&et(h==null?void 0:h.style,"::",0)){var C=gn(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:g,style:m.val},err:null}}else {if(C.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,g);var y=C;this.locale&&(y=tn(C,this.locale));var p={type:W.dateTime,pattern:y,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(y):{}},v=l==="date"?A.date:A.time;return {val:{type:v,value:n,location:g,style:p},err:null}}}return {val:{type:l==="number"?A.number:l==="date"?A.date:A.time,value:n,location:g,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(M.EXPECT_SELECT_ARGUMENT_OPTIONS,w(S,_e({},S)));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,w(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 P=w(i,this.clonePosition());return l==="select"?{val:{type:A.select,value:n,options:tt(H.val),location:P},err:null}:{val:{type:A.plural,value:n,options:tt(H.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,w(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(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,w(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 p=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=w(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 k=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(k);if(g.err)return g;l.push([h,{value:_.val,location:w(k,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,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,w(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=w(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=It(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(et(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()&&Lt(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 je(e){return e>=97&&e<=122||e>=65&&e<=90}function yn(e){return je(e)||e===47}function vn(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 Lt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kn(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 xt(t)&&Ht(t.style)||(Tt(t)||Mt(t))&&Be(t.style)?delete t.style.location:At(t)&&Le(t.children);});}function bn(e,t){t===void 0&&(t={}),t=_e({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 Ee=function(e){be(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),nt=function(e){be(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}(Ee),En=function(e){be(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}(Ee),Cn=function(e){be(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}(Ee),j;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(j||(j={}));function Sn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==j.literal||r.type!==j.literal?t.push(r):n.value+=r.value,t},[])}function xn(e){return typeof e=="function"}function ge(e,t,r,n,i,o,s){if(e.length===1&&Qe(e[0]))return [{type:j.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Qe(c)){l.push({type:j.literal,value:c.value});continue}if(qr(c)){typeof o=="number"&&l.push({type:j.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new Cn(m,s);var p=i[m];if(Xr(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?j.literal:j.object,value:p});continue}if(Tt(c)){var k=typeof c.style=="string"?n.date[c.style]:Be(c.style)?c.style.parsedOptions:void 0;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(Mt(c)){var k=typeof c.style=="string"?n.time[c.style]:Be(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(xt(c)){var k=typeof c.style=="string"?n.number[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;k&&k.scale&&(p=p*(k.scale||1)),l.push({type:j.literal,value:r.getNumberFormat(t,k).format(p)});continue}if(At(c)){var _=c.children,g=c.value,C=i[g];if(!xn(C))throw new En(g,"function",s);var y=ge(_,t,r,n,i,o),v=C(y.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(E){return {type:typeof E=="string"?j.literal:j.object,value:E}}));}if(wt(c)){var S=c.options[p]||c.options.other;if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i));continue}if(Nt(c)){var S=c.options["=".concat(p)];if(!S){if(!Intl.PluralRules)throw new Ee(`Intl.PluralRules is not available in this environment.
11464
12541
  Try polyfilling it using "@formatjs/intl-pluralrules"
11465
- `,Z.MISSING_INTL_API,s);var A=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));C=c.options[A]||c.options.other;}if(!C)throw new it(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(C.value,t,r,n,i,p-(c.offset||0)));continue}}return Sn(l)}function Mn(e,t){return t?N(N(N({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=N(N({},e[n]),t[n]||{}),r},{})):e}function Tn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Mn(e[n],t[n]),r},N({},e)):e}function Ne(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function wn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Me(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:Ne(e.number),strategy:Te.variadic}),getDateTimeFormat:Me(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:Ne(e.dateTime),strategy:Te.variadic}),getPluralRules:Me(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:Ne(e.pluralRules),strategy:Te.variadic})}}var Nn=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,p){return !m.length||p.type!==L.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.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=jr(s,["formatters"]);this.ast=e.__parse(t,N(N({},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=Tn(e.formats,n),this.formatters=i&&i.formatters||wn(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=bn,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 An(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={},Hn=(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=Bn(i,e);if(o)return Hn(e,t,o)}};let Ge;const se=ve({});function Pn(e){return Ge[e]||null}function Dt(e){return e in Ge}function Bn(e,t){if(!Dt(e))return null;const r=Pn(e);return An(r,t)}function zn(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 Ae=ve(!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=ve(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&&zn(e)&&je(e)){const{loadingDelay:t}=J();let r;return typeof window!="undefined"&&V()!=null&&t?r=window.setTimeout(()=>Ae.set(!0),t):Ae.set(!0),Vt(e).then(()=>{_e.set(e);}).finally(()=>{clearTimeout(r),Ae.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,ye=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(ye)for(var r of ye(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&&ye)for(var n of ye(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 Nn(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(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.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-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{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-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty: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-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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, 10px);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-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{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]=pt(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-etk3ty"),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]=pt(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 pi(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&&gt(e),p=a.ensure_array_like(e[8]),v=[];for(let g=0;g<p.length;g+=1)v[g]=bt(dt(e,p,g));let _=e[6]&&Et(e);return {c(){m&&m.c(),r=a.space();for(let g=0;g<v.length;g+=1)v[g].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=s=!e[14];},m(g,S){m&&m.m(g,S),a.insert(g,r,S);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(g,S);a.insert(g,n,S),a.insert(g,i,S),i.innerHTML=o,a.insert(g,l,S),_&&_.m(g,S),a.insert(g,d,S),h||(c=a.listen(i,"click",e[17]),h=!0);},p(g,S){if(S[0]&65536&&(t=g[16]("title")||g[16]("description")),t?m?m.p(g,S):(m=gt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),S[0]&867088){p=a.ensure_array_like(g[8]);let y;for(y=0;y<p.length;y+=1){const k=dt(g,p,y);v[y]?v[y].p(k,S):(v[y]=bt(k),v[y].c(),v[y].m(n.parentNode,n));}for(;y<v.length;y+=1)v[y].d(1);v.length=p.length;}S[0]&65536&&o!==(o=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),S[0]&16384&&s!==(s=!g[14])&&(i.disabled=s),g[6]?_?_.p(g,S):(_=Et(g),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(g){g&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(g),a.destroy_each(v,g),_&&_.d(g),h=!1,c();}}}function gi(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-etk3ty"),a.attr(t,"class","ContainerCenter svelte-etk3ty");},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 pt(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,p,v,_,g,S,y,k,C;function A(...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"),S=a.space(),a.attr(r,"class","checkbox__input svelte-etk3ty"),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-etk3ty"),a.attr(s,"class","checkbox__label svelte-etk3ty"),a.attr(s,"for",p=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-etk3ty"),a.attr(_,"id",g="checkBoxError__"+e[64].tagCode),a.attr(t,"class",y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},m(E,P){a.insert(E,t,P),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,S),k||(C=a.listen(r,"input",A),k=!0);},p(E,P){e=E,P[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),P[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&a.attr(r,"id",i),P[0]&66048&&h!==(h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&d.p(h),P[0]&512&&c!==(c=e[64].mustAccept?" *":"")&&a.set_data(m,c),P[0]&512&&p!==(p=`${e[64].tagCode}__input`)&&a.attr(s,"for",p),P[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",g),P[0]&512&&y!==(y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&a.attr(t,"class",y);},d(E){E&&a.detach(t),k=!1,C();}}}function gt(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-etk3ty");},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 yt(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-etk3ty");},m(r,n){a.insert(r,t,n);},d(r){r&&a.detach(t);}}}function vt(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-etk3ty");},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 kt(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,p,v,_,g,S,y=e[64].mustAccept===!0&&yt(),k=e[4]==="true"&&vt(e);function C(...A){return e[29](e[64],...A)}return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h4"),i=new a.HtmlTag(!1),s=a.space(),y&&y.c(),l=a.space(),k&&k.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-etk3ty"),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=p=e[13][e[64].tagCode],a.attr(c,"class","svelte-etk3ty"),a.attr(_,"class","Slider Round svelte-etk3ty"),a.attr(h,"class","ToggleSwitch svelte-etk3ty"),a.attr(t,"class","ConsentItem svelte-etk3ty");},m(A,E){a.insert(A,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),y&&y.m(n,null),a.append(r,l),k&&k.m(r,null),a.append(t,d),a.append(t,h),a.append(h,c),a.append(h,v),a.append(h,_),g||(S=a.listen(c,"input",C),g=!0);},p(A,E){e=A,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?y||(y=yt(),y.c(),y.m(n,null)):y&&(y.d(1),y=null),e[4]==="true"?k?k.p(e,E):(k=vt(e),k.c(),k.m(r,null)):k&&(k.d(1),k=null),E[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),E[0]&8960&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(A){A&&a.detach(t),y&&y.d(),k&&k.d(),g=!1,S();}}}function bt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,p,v;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function S(...C){return e[28](e[61],...C)}let y=a.ensure_array_like(e[9].filter(S)),k=[];for(let C=0;C<y.length;C+=1)k[C]=kt(mt(e,y,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<k.length;C+=1)k[C].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-etk3ty"),a.attr(h,"class","Slider Round svelte-etk3ty"),a.attr(s,"class","ToggleSwitch Big svelte-etk3ty"),a.attr(r,"class","AccordionHeader svelte-etk3ty"),a.attr(m,"class","AccordionContent svelte-etk3ty"),a.attr(t,"class","AccordionItem svelte-etk3ty");},m(C,A){a.insert(C,t,A),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<k.length;E+=1)k[E]&&k[E].m(m,null);p||(v=[a.listen(l,"change",_),a.listen(l,"change",g)],p=!0);},p(C,A){if(e=C,A[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),A[0]&2304&&(l.checked=e[11][e[61].categoryTagCode]),A[0]&602896){y=a.ensure_array_like(e[9].filter(S));let E;for(E=0;E<y.length;E+=1){const P=mt(e,y,E);k[E]?k[E].p(P,A):(k[E]=kt(P),k[E].c(),k[E].m(m,null));}for(;E<k.length;E+=1)k[E].d(1);k.length=y.length;}},d(C){C&&a.detach(t),a.destroy_each(k,C),p=!1,a.run_all(v);}}}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-etk3ty"),a.attr(i,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ConsentErrorContainer svelte-etk3ty");},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 gi;if(s[0])return pi;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-etk3ty"),a.attr(t,"class",a.null_to_empty("")+" svelte-etk3ty");},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 yi(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:p=""}=t,{modalconsents:v="false"}=t,_,g,S=!1,y=!1,k="",C="",A="",E="",P=[],D=[],B=[],$=!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(p);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(M=>{ct(M,f[M]);});}).catch(f=>{console.log(f);});},Qt=()=>{i&&(k=i,y=!0),o&&(C=o);},de=(u,f=!1)=>{f?r(7,E=u):(rr(),r(6,A=u));},te=(u,f,M,b=!1)=>ne(this,null,function*(){try{const x=yield fetch(u,M);if(!x.ok)throw new Error(n(f));const z=yield x.json();return y?z:z.filter(R=>R.showOnRegister===!0)}catch(x){throw de(x instanceof TypeError?n(f):x.message,b),x}}),Yt=()=>ne(this,null,function*(){try{let u=[],f=[];if(y?[u,f]=yield Ve():u=yield Ve(),r(10,$=!1),D=[...u],r(8,P=$t(D).sort((M,b)=>M.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,j=er(P)),ce=U({},j),r(9,B=[...f]),D.forEach(M=>{let b=B.find(x=>x.tagCode===M.tagCode);b||(b=Je(U({},M),{status:O.denied.value}),B.push(b)),b.description=M.description,b.orderNumber=M.orderNumber;}),v==="true"){if(r(9,B=B.filter(M=>M.status===O.expired.value)),B.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"),!y)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":k,"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"},M={method:"GET",headers:f};fetch(u.href,M).then(b=>b.ok?b.json():(he=!0,b.json().then(x=>(console.error(x),me(x))))).then(b=>{if(!he){if(D=b,localStorage.getItem("playerConsents")){try{r(9,B=JSON.parse(localStorage.getItem("playerConsents")));}catch(x){return console.error(x),me(x)}return}return r(9,B=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(B)),B}}).catch(b=>(console.error(b),me(b))).finally(()=>{r(10,$=!1);});},$t=u=>{const f=new Map;return u.forEach(M=>{f.has(M.category.categoryTagCode)||f.set(M.category.categoryTagCode,M.category);}),Array.from(f.values())},er=u=>{const f=localStorage.getItem("categoryToggle"+C);if(f===null){const M=u.reduce((b,x)=>(b[x.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+C,JSON.stringify(M)),M}else return JSON.parse(f)},tr=()=>{B.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(b=>{const x=B.find(z=>z.tagCode===b);I[b]!==G[b]&&(x?u.push({tagCode:b,status:I[b]?O.accepted.value:O.denied.value}):f.push({tagCode:b,status:I[b]?O.accepted.value:O.denied.value}));}),!y){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 M=new URL(`${s}/api/v1/gm/user-consents/${C}`);try{const b=yield Promise.allSettled([f.length>0&&te(M.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":k,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(M.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":k,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);b.forEach((x,z)=>{if(x.status==="rejected"||x.value.ok===!1){const R=z<f.length?f[z]:u[z-f.length];r(13,I[R.tagCode]=G[R.tagCode],I);}}),b.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(b){de(b instanceof TypeError?n("saveChangesError"):b.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`),M={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:B,registrationId:u},x={method:"POST",body:JSON.stringify(b),headers:M};fetch(f.href,x).then(z=>{z.ok||(he=!0);}).catch(z=>(console.error(z),me(z))).finally(()=>{r(10,$=!1);});},Xe=u=>{B.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,M)=>{const b=B.find(R=>R.id===M),x=f?"value":"key";let z;if(!f&&b.mustAccept){const R=Array.from(ue.children);for(const re of R)if(z=Array.from(re.children).find(gr=>gr.getAttribute("id")===`checkBoxError__${b.tagCode}`),z)break}if(b.status===O.accepted[x]?(b.status=O.denied[x],z&&(z.innerHTML=n("requiredError"))):(b.status=O.accepted[x],z&&(z.innerHTML="")),f){r(13,I[b.tagCode]=!I[b.tagCode],I);const R=B.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 M;return function(...b){const x=this;clearTimeout(M),M=setTimeout(()=>{u.apply(x,b);},f);}})(()=>or(),500),or=()=>{r(14,ee=qe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(B)));},qe=()=>B.filter(f=>B.some(M=>f.tagCode===M.tagCode&&M.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&&g&&g.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 pr(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,p=u.translationurl),"modalconsents"in u&&r(24,v=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&&p&&Jt();},[i,l,d,h,m,_,A,E,P,B,$,j,G,I,ee,ue,n,nr,Xe,Se,o,s,c,p,v,S,lr,cr,ur,hr,dr,mr,pr]}class Wt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,yi,_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;
11466
- }(PlayerConsentsCXlt0JBF));
12542
+ `,Z.MISSING_INTL_API,s);var N=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));S=c.options[N]||c.options.other;}if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i,p-(c.offset||0)));continue}}return Sn(l)}function Tn(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Mn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Tn(e[n],t[n]),r},U({},e)):e}function Ae(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function wn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.number),strategy:we.variadic}),getDateTimeFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.dateTime),strategy:we.variadic}),getPluralRules:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.pluralRules),strategy:we.variadic})}}var Nn=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,p){return !m.length||p.type!==j.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.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=jr(s,["formatters"]);this.ast=e.__parse(t,U(U({},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||wn(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=bn,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 An(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={},Hn=(e,t,r)=>r&&(t in F||(F[t]={}),e in F[t]||(F[t][e]=r),r),Rt=(e,t)=>{if(t==null)return;if(t in F&&e in F[t])return F[t][e];const r=Ce(t);for(let n=0;n<r.length;n++){const i=r[n],o=Bn(i,e);if(o)return Hn(e,t,o)}};let De;const se=ke({});function Pn(e){return De[e]||null}function Ut(e){return e in De}function Bn(e,t){if(!Ut(e))return null;const r=Pn(e);return An(r,t)}function On(e){if(e==null)return;const t=Ce(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ut(n))return n}}function Dt(e,...t){delete F[e],se.update(r=>(r[e]=Ir.all([r[e]||{},...t]),r));}Q([se],([e])=>Object.keys(e));se.subscribe(e=>De=e);const fe={};function zn(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e];}function Gt(e){return fe[e]}function In(e){return Ce(e).map(t=>{const r=Gt(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Re(e){return e==null?!1:Ce(e).some(t=>{var r;return (r=Gt(t))==null?void 0:r.size})}function jn(e,t){return Promise.all(t.map(n=>(zn(e,n),n().then(i=>i.default||i)))).then(n=>Dt(e,...n))}const ie={};function Ft(e){if(!Re(e))return e in ie?ie[e]:Promise.resolve();const t=In(e);return ie[e]=Promise.all(t.map(([r,n])=>jn(r,n))).then(()=>{if(Re(e))return Ft(e);delete ie[e];}),ie[e]}const Ln={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:Ln,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Un=Rn;function J(){return Un}const He=ke(!1);var Dn=Object.defineProperty,Gn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,at=(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)&&at(e,r,t[r]);if(it)for(var r of it(t))Xn.call(t,r)&&at(e,r,t[r]);return e},Wn=(e,t)=>Gn(e,Fn(t));let Ue;const ye=ke(null);function ot(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ce(e,t=J().fallbackLocale){const r=ot(e);return t?[...new Set([...r,...ot(t)])]:r}function V(){return Ue!=null?Ue:void 0}ye.subscribe(e=>{Ue=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const Zn=e=>{if(e&&On(e)&&Re(e)){const{loadingDelay:t}=J();let r;return typeof window!="undefined"&&V()!=null&&t?r=window.setTimeout(()=>He.set(!0),t):He.set(!0),Ft(e).then(()=>{ye.set(e);}).finally(()=>{clearTimeout(r),He.set(!1);})}return ye.set(e)},Y=Wn(qn({},ye),{set:Zn}),Se=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,ve=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,st=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ge=(e,t)=>{for(var r in t||(t={}))Vt.call(t,r)&&st(e,r,t[r]);if(ve)for(var r of ve(t))Xt.call(t,r)&&st(e,r,t[r]);return e},K=(e,t)=>{var r={};for(var n in e)Vt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&Xt.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=Se(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=Se(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=Se(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(Ge({locale:r},n))},ei=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Yn(Ge({locale:r},n))},ti=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Kn(Ge({locale:r},n))},ri=Se((e,t=V())=>new Nn(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=Rt(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(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.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())=>Rt(e,t),li=Q([Y,se],()=>ni);Q([Y],()=>ii);Q([Y],()=>ai);Q([Y],()=>oi);Q([Y,se],()=>si);function lt(e,t){Dt(e,t);}function ci(e){Y.set(e);}const ct={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 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-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{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-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty: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-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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, 10px);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-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');}function ut(e,t,r){const n=e.slice();return n[64]=t[r],n}function ht(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function dt(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]=mt(ut(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-etk3ty"),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=ut(o,n,l);i[l]?i[l].p(d,s):(i[l]=mt(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 pi(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),p=a.ensure_array_like(e[8]),k=[];for(let g=0;g<p.length;g+=1)k[g]=kt(ht(e,p,g));let _=e[6]&&bt(e);return {c(){m&&m.c(),r=a.space();for(let g=0;g<k.length;g+=1)k[g].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=s=!e[14];},m(g,C){m&&m.m(g,C),a.insert(g,r,C);for(let y=0;y<k.length;y+=1)k[y]&&k[y].m(g,C);a.insert(g,n,C),a.insert(g,i,C),i.innerHTML=o,a.insert(g,l,C),_&&_.m(g,C),a.insert(g,d,C),h||(c=a.listen(i,"click",e[17]),h=!0);},p(g,C){if(C[0]&65536&&(t=g[16]("title")||g[16]("description")),t?m?m.p(g,C):(m=pt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),C[0]&867088){p=a.ensure_array_like(g[8]);let y;for(y=0;y<p.length;y+=1){const v=ht(g,p,y);k[y]?k[y].p(v,C):(k[y]=kt(v),k[y].c(),k[y].m(n.parentNode,n));}for(;y<k.length;y+=1)k[y].d(1);k.length=p.length;}C[0]&65536&&o!==(o=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),C[0]&16384&&s!==(s=!g[14])&&(i.disabled=s),g[6]?_?_.p(g,C):(_=bt(g),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(g){g&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(g),a.destroy_each(k,g),_&&_.d(g),h=!1,c();}}}function gi(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-etk3ty"),a.attr(t,"class","ContainerCenter svelte-etk3ty");},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 mt(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,p,k,_,g,C,y,v,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),k=a.space(),_=a.element("small"),C=a.space(),a.attr(r,"class","checkbox__input svelte-etk3ty"),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-etk3ty"),a.attr(s,"class","checkbox__label svelte-etk3ty"),a.attr(s,"for",p=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-etk3ty"),a.attr(_,"id",g="checkBoxError__"+e[64].tagCode),a.attr(t,"class",y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},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,k),a.append(t,_),a.append(t,C),v||(S=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&&p!==(p=`${e[64].tagCode}__input`)&&a.attr(s,"for",p),H[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",g),H[0]&512&&y!==(y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&a.attr(t,"class",y);},d(E){E&&a.detach(t),v=!1,S();}}}function pt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&gt(e),s=i&&ft(e);return {c(){t=a.element("div"),o&&o.c(),n=a.space(),s&&s.c(),a.attr(t,"class","PlayerConsentsHeader svelte-etk3ty");},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=gt(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=ft(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 gt(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 ft(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 _t(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-etk3ty");},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-etk3ty");},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,p,k,_,g,C,y=e[64].mustAccept===!0&&_t(),v=e[4]==="true"&&yt(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(),y&&y.c(),l=a.space(),v&&v.c(),d=a.space(),h=a.element("label"),c=a.element("input"),k=a.space(),_=a.element("span"),i.a=s,a.attr(n,"class","ConsentName svelte-etk3ty"),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=p=e[13][e[64].tagCode],a.attr(c,"class","svelte-etk3ty"),a.attr(_,"class","Slider Round svelte-etk3ty"),a.attr(h,"class","ToggleSwitch svelte-etk3ty"),a.attr(t,"class","ConsentItem svelte-etk3ty");},m(N,E){a.insert(N,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),y&&y.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,k),a.append(h,_),g||(C=a.listen(c,"input",S),g=!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?y||(y=_t(),y.c(),y.m(n,null)):y&&(y.d(1),y=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&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(N){N&&a.detach(t),y&&y.d(),v&&v.d(),g=!1,C();}}}function kt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,p,k;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function C(...S){return e[28](e[61],...S)}let y=a.ensure_array_like(e[9].filter(C)),v=[];for(let S=0;S<y.length;S+=1)v[S]=vt(dt(e,y,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<v.length;S+=1)v[S].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-etk3ty"),a.attr(h,"class","Slider Round svelte-etk3ty"),a.attr(s,"class","ToggleSwitch Big svelte-etk3ty"),a.attr(r,"class","AccordionHeader svelte-etk3ty"),a.attr(m,"class","AccordionContent svelte-etk3ty"),a.attr(t,"class","AccordionItem svelte-etk3ty");},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<v.length;E+=1)v[E]&&v[E].m(m,null);p||(k=[a.listen(l,"change",_),a.listen(l,"change",g)],p=!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){y=a.ensure_array_like(e[9].filter(C));let E;for(E=0;E<y.length;E+=1){const H=dt(e,y,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=y.length;}},d(S){S&&a.detach(t),a.destroy_each(v,S),p=!1,a.run_all(k);}}}function bt(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-etk3ty"),a.attr(i,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ConsentErrorContainer svelte-etk3ty");},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 gi;if(s[0])return pi;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-etk3ty"),a.attr(t,"class",a.null_to_empty("")+" svelte-etk3ty");},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 yi(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:p=""}=t,{modalconsents:k="false"}=t,_,g=!1,C=!1,y="",v="",S="",N="",E=[],H=[],P=[],$=!0,le=!0,L={},ce={},G={},I={},ee,ue,z={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(ct).forEach(u=>{lt(u,ct[u]);});const Wt=()=>{ci(c);},Zt=()=>{let u=new URL(p);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(T=>{lt(T,f[T]);});}).catch(f=>{console.log(f);});},Jt=()=>{i&&(y=i,C=!0),o&&(v=o);},de=(u,f=!1)=>{f?r(7,N=u):(tr(),r(6,S=u));},te=(u,f,T,b=!1)=>ne(this,null,function*(){try{const x=yield fetch(u,T);if(!x.ok)throw new Error(n(f));const O=yield x.json();return C?O:O.filter(R=>R.showOnRegister===!0)}catch(x){throw de(x instanceof TypeError?n(f):x.message,b),x}}),Qt=()=>ne(this,null,function*(){try{let u=[],f=[];if(C?[u,f]=yield Fe():u=yield Fe(),r(10,$=!1),H=[...u],r(8,E=Kt(H).sort((T,b)=>T.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,L=$t(E)),ce=D({},L),r(9,P=[...f]),H.forEach(T=>{let b=P.find(x=>x.tagCode===T.tagCode);b||(b=Ze(D({},T),{status:z.denied.value}),P.push(b)),b.description=T.description,b.orderNumber=T.orderNumber;}),k==="true"){if(r(9,P=P.filter(T=>T.status===z.expired.value)),P.length!==0)return;de(n("wrongModalConfig"),!0);}er();}catch(u){throw r(10,$=!1),de(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),Fe=()=>ne(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!C)return yield te(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${v}`);return yield Promise.all([te(u.href,"fetchConsentsError",{method:"GET"},!0),te(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":y,"Content-Type":"application/json"}})])}),Yt=()=>{he=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},T={method:"GET",headers:f};fetch(u.href,T).then(b=>b.ok?b.json():(he=!0,b.json().then(x=>(console.error(x),me(x))))).then(b=>{if(!he){if(H=b,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=H.map(x=>({id:x.id,status:z.denied.key,friendlyName:x.friendlyName,tagCode:x.tagCode,selected:null,mustAccept:x.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(P)),P}}).catch(b=>(console.error(b),me(b))).finally(()=>{r(10,$=!1);});},Kt=u=>{const f=new Map;return u.forEach(T=>{f.has(T.category.categoryTagCode)||f.set(T.category.categoryTagCode,T.category);}),Array.from(f.values())},$t=u=>{const f=localStorage.getItem("categoryToggle"+v);if(f===null){const T=u.reduce((b,x)=>(b[x.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+v,JSON.stringify(T)),T}else return JSON.parse(f)},er=()=>{P.forEach(u=>{r(12,G[u.tagCode]=u.status===z.accepted.value,G);}),r(13,I=D({},G));},tr=()=>{r(13,I=D({},G)),r(11,L=D({},ce));},rr=()=>ne(this,null,function*(){if(!le)return;le=!1;const u=[],f=[];if(Object.keys(I).forEach(b=>{const x=P.find(O=>O.tagCode===b);I[b]!==G[b]&&(x?u.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}):f.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}));}),!C){localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),le=!0;return}const T=new URL(`${s}/api/v1/gm/user-consents/${v}`);try{const b=yield Promise.allSettled([f.length>0&&te(T.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(T.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);b.forEach((x,O)=>{if(x.status==="rejected"||x.value.ok===!1){const R=O<f.length?f[O]:u[O-f.length];r(13,I[R.tagCode]=G[R.tagCode],I);}}),b.every(x=>x.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,G=D({},I)));}catch(b){de(b instanceof TypeError?n("saveChangesError"):b.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{le=!0,r(14,ee=!1);}}),nr=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),T={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:P,registrationId:u},x={method:"POST",body:JSON.stringify(b),headers:T};fetch(f.href,x).then(O=>{O.ok||(he=!0);}).catch(O=>(console.error(O),me(O))).finally(()=>{r(10,$=!1);});},Ve=u=>{P.filter(f=>f.category.categoryTagCode===u).forEach(f=>{f.status=f.status===z.denied.value?z.accepted.value:z.denied.value,r(13,I[f.tagCode]=L[u]||!1,I);}),r(14,ee=Xe());},xe=(u,f,T)=>{const b=P.find(R=>R.id===T),x=f?"value":"key";let O;if(!f&&b.mustAccept){const R=Array.from(ue.children);for(const re of R)if(O=Array.from(re.children).find(pr=>pr.getAttribute("id")===`checkBoxError__${b.tagCode}`),O)break}if(b.status===z.accepted[x]?(b.status=z.denied[x],O&&(O.innerHTML=n("requiredError"))):(b.status=z.accepted[x],O&&(O.innerHTML="")),f){r(13,I[b.tagCode]=!I[b.tagCode],I);const R=P.filter(re=>re.category.categoryTagCode===f.categoryTagCode).every(re=>re.status!==z.denied.value);r(11,L[f.categoryTagCode]=R,L);}ir();},ir=((u,f)=>{let T;return function(...b){const x=this;clearTimeout(T),T=setTimeout(()=>{u.apply(x,b);},f);}})(()=>ar(),500),ar=()=>{r(14,ee=Xe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(P)));},Xe=()=>P.filter(f=>P.some(T=>f.tagCode===T.tagCode&&T.mustAccept&&(f.status===z.denied.key||f.status===z.denied.value))).length===0,me=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},or=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||nr(u.data.registerid);};a.onMount(()=>{setTimeout(()=>{r(25,g=!0);},50);const u=f=>or(f);return window.addEventListener("message",u),()=>{window.removeEventListener("message",u);}});function sr(u){L[u.categoryTagCode]=this.checked,r(11,L);}const lr=u=>Ve(u.categoryTagCode),cr=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,ur=(u,f)=>xe(f,u.category,u.id),hr=(u,f)=>xe(f,null,u.id);function dr(u){a.binding_callbacks[u?"unshift":"push"](()=>{ue=u,r(15,ue);});}function mr(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,p=u.translationurl),"modalconsents"in u&&r(24,k=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&g&&i&&(Jt(),Qt()),e.$$.dirty[0]&1&&(i||Yt()),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&&Wt(),e.$$.dirty[0]&8388608&&p&&Zt();},[i,l,d,h,m,_,S,N,E,P,$,L,G,I,ee,ue,n,rr,Ve,xe,o,s,c,p,k,g,sr,lr,cr,ur,hr,dr,mr]}class qt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,yi,_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(qt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=qt;
12543
+ }(PlayerConsentsDrhcDBLh));
11467
12544
 
11468
- 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(()=>PlayerConsentsCXlt0JBF).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
12545
+ 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(()=>PlayerConsentsDrhcDBLh).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
11469
12546
 
11470
12547
  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, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\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, #22B04E));\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}";
11471
12548
  const GeneralRegistrationStyle0 = generalRegistrationCss;
@@ -11793,7 +12870,7 @@ const GeneralRegistration = class {
11793
12870
  }
11794
12871
  }
11795
12872
  getRegisterConfig(registrationID) {
11796
- const url = new URL(`${this.endpoint}/v1/player/legislation/registration/config`);
12873
+ const url = new URL('/v1/player/legislation/registration/config/', this.endpoint);
11797
12874
  const headers = new Headers();
11798
12875
  headers.append('Content-Type', 'application/json');
11799
12876
  headers.append('Accept', 'application/json');
@@ -11989,10 +13066,12 @@ const GeneralRegistration = class {
11989
13066
  this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
11990
13067
  }
11991
13068
  window.postMessage({ type: 'registrationFailed', errorMessage: error === null || error === void 0 ? void 0 : error.thirdPartyResponse.message }, window.location.href);
11992
- window.postMessage({ type: 'WidgetNotification', data: {
13069
+ window.postMessage({
13070
+ type: 'WidgetNotification', data: {
11993
13071
  type: 'error',
11994
13072
  message: this.errorMessage
11995
- } }, window.location.href);
13073
+ }
13074
+ }, window.location.href);
11996
13075
  dispatchCustomEvent('register_fail', { error: this.errorMessage });
11997
13076
  });
11998
13077
  }
@@ -12003,10 +13082,12 @@ const GeneralRegistration = class {
12003
13082
  if (!this.registerErrors) {
12004
13083
  this.dispatchRegisterCredentialsEvent();
12005
13084
  window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId, extraActions: this.extraActions }, window.location.href);
12006
- window.postMessage({ type: 'WidgetNotification', data: {
13085
+ window.postMessage({
13086
+ type: 'WidgetNotification', data: {
12007
13087
  type: 'success',
12008
13088
  message: translate('successMessage', this.language)
12009
- } }, window.location.href);
13089
+ }
13090
+ }, window.location.href);
12010
13091
  dispatchCustomEvent('register_closed', { userId: data.userId });
12011
13092
  }
12012
13093
  })