@everymatrix/general-registration 1.61.0 → 1.62.0

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 (26) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +244 -224
  2. package/dist/cjs/general-registration.cjs.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/general-registration/general-registration.js +57 -19
  5. package/dist/collection/components/general-registration/general-registration.stories.js +24 -7
  6. package/dist/esm/checkbox-group-input_13.entry.js +244 -224
  7. package/dist/esm/general-registration.js +1 -1
  8. package/dist/esm/loader.js +1 -1
  9. package/dist/general-registration/general-registration.esm.js +1 -1
  10. package/dist/general-registration/{p-6bdde858.entry.js → p-e0a5de25.entry.js} +120 -120
  11. package/dist/storybook/main.js +1 -0
  12. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
  13. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
  14. package/dist/types/components/general-registration/general-registration.d.ts +9 -2
  15. package/dist/types/components.d.ts +8 -0
  16. package/package.json +1 -1
  17. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
  19. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  20. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/main.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/preview.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -5762,51 +5762,51 @@ const EmailInput = class {
5762
5762
  };
5763
5763
  EmailInput.style = EmailInputStyle0;
5764
5764
 
5765
- var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnPropertyDescriptors;var Bi=Object.getOwnPropertySymbols;var gr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable;var ft$1=(s,t,e)=>t in s?_r(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,me=(s,t)=>{for(var e in t||(t={}))gr.call(t,e)&&ft$1(s,e,t[e]);if(Bi)for(var e of Bi(t))vr.call(t,e)&&ft$1(s,e,t[e]);return s},mt$1=(s,t)=>fr(s,mr(t));var C$1=(s,t,e)=>(ft$1(s,typeof t!="symbol"?t+"":t,e),e);var Ue=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
5765
+ 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());});/**
5766
5766
  * @license
5767
5767
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5768
5768
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5769
- */function y$1(s,t="24.5.12"){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.`);}}/**
5769
+ */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.`);}}/**
5770
5770
  * @license
5771
5771
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5772
5772
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5773
- */class br extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}y$1(br);/**
5773
+ */class yr extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}y$1(yr);/**
5774
5774
  * @license
5775
5775
  * Copyright 2019 Google LLC
5776
5776
  * SPDX-License-Identifier: BSD-3-Clause
5777
- */const Xe=globalThis,ri=Xe.ShadowRoot&&(Xe.ShadyCSS===void 0||Xe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ni=Symbol(),Ri=new WeakMap;let ai=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==ni)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const e=this.t;if(ri&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Ri.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ri.set(e,t));}return t}toString(){return this.cssText}};const yr=s=>new ai(typeof s=="string"?s:s+"",void 0,ni),_$1=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new ai(e,s,ni)},Fs=(s,t)=>{if(ri)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=Xe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i);}},Hi=ri?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return yr(e)})(s):s;/**
5777
+ */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;/**
5778
5778
  * @license
5779
5779
  * Copyright 2017 Google LLC
5780
5780
  * SPDX-License-Identifier: BSD-3-Clause
5781
- */const{is:xr,defineProperty:wr,getOwnPropertyDescriptor:Cr,getOwnPropertyNames:Ar,getOwnPropertySymbols:Er,getPrototypeOf:Pr}=Object,H$1=globalThis,$i=H$1.trustedTypes,kr=$i?$i.emptyScript:"",gt$1=H$1.reactiveElementPolyfillSupport,Ee=(s,t)=>s,Ft={toAttribute(s,t){switch(t){case Boolean:s=s?kr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s);}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s);}catch(i){e=null;}}return e}},Ls=(s,t)=>!xr(s,t),Ui={attribute:!0,type:String,converter:Ft,reflect:!1,hasChanged:Ls};(Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(H$1.litPropertyMetadata)!=null||(H$1.litPropertyMetadata=new WeakMap);class te extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ui){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&wr(this.prototype,t,o);}}static getPropertyDescriptor(t,e,i){var n;const{get:o,set:r}=(n=Cr(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a;}};return {get(){return o==null?void 0:o.call(this)},set(a){const l=o==null?void 0:o.call(this);r.call(this,a),this.requestUpdate(t,l,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return (e=this.elementProperties.get(t))!=null?e:Ui}static _$Ei(){if(this.hasOwnProperty(Ee("elementProperties")))return;const t=Pr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(Ee("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ee("properties"))){const e=this.properties,i=[...Ar(e),...Er(e)];for(const o of i)this.createProperty(o,e[o]);}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o);}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(Hi(o));}else t!==void 0&&e.push(Hi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this));}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t));}removeController(t){var e;(e=this._$EO)==null||e.delete(t);}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Fs(t,this.constructor.elementStyles),t}connectedCallback(){var e;(this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostConnected)==null?void 0:o.call(i)});}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return (i=e.hostDisconnected)==null?void 0:i.call(e)});}attributeChangedCallback(t,e,i){this._$AK(t,i);}_$EC(t,e){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Ft).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null;}}_$AK(t,e){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const n=i.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:Ft;this._$Em=o,this[o]=a.fromAttribute(e,n.type),this._$Em=null;}}requestUpdate(t,e,i){var o;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((o=i.hasChanged)!=null?o:Ls)(this[t],e))return;this.P(t,e,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(t,e,i){var o;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t);}_$ET(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES;}catch(e){Promise.reject(e);}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0;}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a);}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(r=>{var n;return (n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU();}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e);}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU();}updated(t){}firstUpdated(t){}}var Os;te.elementStyles=[],te.shadowRootOptions={mode:"open"},te[Ee("elementProperties")]=new Map,te[Ee("finalized")]=new Map,gt$1==null||gt$1({ReactiveElement:te}),((Os=H$1.reactiveElementVersions)!=null?Os:H$1.reactiveElementVersions=[]).push("2.0.4");/**
5781
+ */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");/**
5782
5782
  * @license
5783
5783
  * Copyright 2017 Google LLC
5784
5784
  * SPDX-License-Identifier: BSD-3-Clause
5785
- */const Pe=globalThis,Qe=Pe.trustedTypes,qi=Qe?Qe.createPolicy("lit-html",{createHTML:s=>s}):void 0,Vs="$lit$",B$1=`lit$${Math.random().toFixed(9).slice(2)}$`,Bs="?"+B$1,Sr=`<${Bs}>`,X$1=document,Se=()=>X$1.createComment(""),Te=s=>s===null||typeof s!="object"&&typeof s!="function",li=Array.isArray,Tr=s=>li(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",vt$1=`[
5786
- \f\r]`,ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yi=/-->/g,ji=/>/g,Y$1=RegExp(`>|${vt$1}(?:([^\\s"'>=/]+)(${vt$1}*=${vt$1}*(?:[^
5787
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Wi=/'/g,Gi=/"/g,Rs=/^(?:script|style|textarea|title)$/i,ne=Symbol.for("lit-noChange"),w$1=Symbol.for("lit-nothing"),Ki=new WeakMap,j=X$1.createTreeWalker(X$1,129);function Hs(s,t){if(!li(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return qi!==void 0?qi.createHTML(t):t}const Ir=(s,t)=>{const e=s.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",n=ge;for(let a=0;a<e;a++){const l=s[a];let d,h,c=-1,u=0;for(;u<l.length&&(n.lastIndex=u,h=n.exec(l),h!==null);)u=n.lastIndex,n===ge?h[1]==="!--"?n=Yi:h[1]!==void 0?n=ji:h[2]!==void 0?(Rs.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=Y$1):h[3]!==void 0&&(n=Y$1):n===Y$1?h[0]===">"?(n=o!=null?o:ge,c=-1):h[1]===void 0?c=-2:(c=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?Y$1:h[3]==='"'?Gi:Wi):n===Gi||n===Wi?n=Y$1:n===Yi||n===ji?n=ge:(n=Y$1,o=void 0);const p=n===Y$1&&s[a+1].startsWith("/>")?" ":"";r+=n===ge?l+Sr:c>=0?(i.push(d),l.slice(0,c)+Vs+l.slice(c)+B$1+p):l+B$1+(c===-2?a:p);}return [Hs(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ie{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,h]=Ir(t,e);if(this.el=Ie.createElement(d,i),j.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes);}for(;(o=j.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Vs)){const u=h[n++],p=o.getAttribute(c).split(B$1),f=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:f[2],strings:p,ctor:f[1]==="."?Or:f[1]==="?"?Mr:f[1]==="@"?zr:lt$1}),o.removeAttribute(c);}else c.startsWith(B$1)&&(l.push({type:6,index:r}),o.removeAttribute(c));if(Rs.test(o.tagName)){const c=o.textContent.split(B$1),u=c.length-1;if(u>0){o.textContent=Qe?Qe.emptyScript:"";for(let p=0;p<u;p++)o.append(c[p],Se()),j.nextNode(),l.push({type:2,index:++r});o.append(c[u],Se());}}}else if(o.nodeType===8)if(o.data===Bs)l.push({type:2,index:r});else {let c=-1;for(;(c=o.data.indexOf(B$1,c+1))!==-1;)l.push({type:7,index:r}),c+=B$1.length-1;}r++;}}static createElement(t,e){const i=X$1.createElement("template");return i.innerHTML=t,i}}function ae(s,t,e=s,i){var n,a,l;if(t===ne)return t;let o=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Te(t)?void 0:t._$litDirective$;return (o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(s),o._$AT(s,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=o:e._$Cl=o),o!==void 0&&(t=ae(s,o._$AS(s,t.values),o,i)),t}class Dr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,o=((d=t==null?void 0:t.creationScope)!=null?d:X$1).importNode(e,!0);j.currentNode=o;let r=j.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new Be(r,r.nextSibling,this,t):l.type===1?h=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(h=new Nr(r,this,t)),this._$AV.push(h),l=i[++a];}n!==(l==null?void 0:l.index)&&(r=j.nextNode(),n++);}return j.currentNode=X$1,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++;}}class Be{get _$AU(){var t,e;return (e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,o){var r;this.type=2,this._$AH=w$1,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.isConnected)!=null?r:!0;}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ae(this,t,e),Te(t)?t===w$1||t==null||t===""?(this._$AH!==w$1&&this._$AR(),this._$AH=w$1):t!==this._$AH&&t!==ne&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Tr(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==w$1&&Te(this._$AH)?this._$AA.nextSibling.data=t:this.T(X$1.createTextNode(t)),this._$AH=t;}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ie.createElement(Hs(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else {const n=new Dr(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n;}}_$AC(t){let e=Ki.get(t.strings);return e===void 0&&Ki.set(t.strings,e=new Ie(t)),e}k(t){li(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new Be(this.O(Se()),this.O(Se()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o);}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o;}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t));}}class lt$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=w$1,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w$1;}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(r===void 0)t=ae(this,t,e,0),n=!Te(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else {const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=ae(this,a[i+l],e,l),d===ne&&(d=this._$AH[l]),n||(n=!Te(d)||d!==this._$AH[l]),d===w$1?t=w$1:t!==w$1&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d;}n&&!o&&this.j(t);}j(t){t===w$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"");}}class Or extends lt$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===w$1?void 0:t;}}class Mr extends lt$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==w$1);}}class zr extends lt$1{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5;}_$AI(t,e=this){var n;if((t=(n=ae(this,t,e,0))!=null?n:w$1)===ne)return;const i=this._$AH,o=t===w$1&&i!==w$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==w$1&&(i===w$1||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t);}}class Nr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t);}}const bt$1=Pe.litHtmlPolyfillSupport;var Ms;bt$1==null||bt$1(Ie,Be),((Ms=Pe.litHtmlVersions)!=null?Ms:Pe.litHtmlVersions=[]).push("3.2.1");const Fr=(s,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let o=i._$litPart$;if(o===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=o=new Be(t.insertBefore(Se(),a),a,void 0,e!=null?e:{});}return o._$AI(s),o};/**
5785
+ */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=`[
5786
+ \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}*(?:[^
5787
+ \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};/**
5788
5788
  * @license
5789
5789
  * Copyright 2017 Google LLC
5790
5790
  * SPDX-License-Identifier: BSD-3-Clause
5791
- */class ie extends te{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;const t=super.createRenderRoot();return ((e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fr(e,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1);}render(){return ne}}var zs;ie._$litElement$=!0,ie.finalized=!0,(zs=globalThis.litElementHydrateSupport)==null||zs.call(globalThis,{LitElement:ie});const yt$1=globalThis.litElementPolyfillSupport;yt$1==null||yt$1({LitElement:ie});var Ns;((Ns=globalThis.litElementVersions)!=null?Ns:globalThis.litElementVersions=[]).push("4.1.1");/**
5791
+ */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");/**
5792
5792
  * @license
5793
5793
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5794
5794
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5795
- */const Lr=s=>class extends s{static get properties(){return {_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return [...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,o){super.attributeChangedCallback(e,i,o),e==="theme"&&this._set_theme(o);}};/**
5795
+ */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);}};/**
5796
5796
  * @license
5797
5797
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5798
5798
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5799
- */const $s=[],Lt$1=new Set,di=new Set;function Us(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Vr(s){return Us(customElements.get(s))}function Br(s=[]){return [s].flat(1/0).filter(t=>t instanceof ai?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function qs(s,t){return (s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Ys(s){return s.map(t=>t.cssText).join(`
5800
- `)}const Ze="vaadin-themable-mixin-style";function Rr(s,t){const e=document.createElement("style");e.id=Ze,e.textContent=Ys(s),t.content.appendChild(e);}function Hr(s){if(!s.shadowRoot)return;const t=s.constructor;if(s instanceof ie)[...s.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Fs(s.shadowRoot,t.elementStyles);else {const e=s.shadowRoot.getElementById(Ze),i=t.prototype._template;e.textContent=i.content.getElementById(Ze).textContent;}}function $r(s){Lt$1.forEach(t=>{const e=t.deref();e instanceof s?Hr(e):e||Lt$1.delete(t);});}function js(s){if(s.prototype instanceof ie)s.elementStyles=s.finalizeStyles(s.styles);else {const t=s.prototype._template;t.content.getElementById(Ze).textContent=Ys(s.getStylesForThis());}di.forEach(t=>{const e=customElements.get(t);e!==s&&e.prototype instanceof s&&js(e);});}function Ur(s,t){const e=s.__themes;return !e||!t?!1:e.some(i=>i.styles.some(o=>t.some(r=>r.cssText===o.cssText)))}function m$1(s,t,e={}){t=Br(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):$s.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId}),s&&di.forEach(i=>{if(qs(s,i)&&Vr(i)){const o=customElements.get(i);Ur(o,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),js(o),$r(o);}});}function Vt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():$s}function qr(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function Ws(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=Vt().find(o=>o.moduleId===e);i?t.push(...Ws(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`);},s.styles),t}function Yr(s){const t=`${s}-default-theme`,e=Vt().filter(i=>i.moduleId!==t&&qs(i.themeFor,s)).map(i=>mt$1(me({},i),{styles:[...Ws(i),...i.styles],includePriority:qr(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return e.length>0?e:Vt().filter(i=>i.moduleId===t)}const I$1=s=>class extends Lr(s){constructor(){super(),Lt$1.add(new WeakRef(this));}static finalize(){if(super.finalize(),this.is&&di.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Us(this)||Rr(this.getStylesForThis(),e);}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=s.__themes||[],i=Object.getPrototypeOf(this.prototype),o=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...o,...Yr(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
5799
+ */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(`
5800
+ `)}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))}};/**
5801
5801
  * @license
5802
5802
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5803
5803
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5804
- */const jr=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
5805
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},he=(s,...t)=>{jr(`lumo-${s}`,t);};/**
5804
+ */const Wr=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
5805
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},he=(s,...t)=>{Wr(`lumo-${s}`,t);};/**
5806
5806
  * @license
5807
5807
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5808
5808
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5809
- */const Wr=_$1`
5809
+ */const Gr=_$1`
5810
5810
  :host {
5811
5811
  /* Base (background) */
5812
5812
  --lumo-base-color: #fff;
@@ -5891,7 +5891,7 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
5891
5891
  --lumo-disabled-text-color: GrayText;
5892
5892
  }
5893
5893
  }
5894
- `;he("color-props",Wr);const Gr=_$1`
5894
+ `;he("color-props",Gr);const Kr=_$1`
5895
5895
  [theme~='dark'] {
5896
5896
  /* Base (background) */
5897
5897
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -6009,11 +6009,11 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
6009
6009
  pre code {
6010
6010
  background: transparent;
6011
6011
  }
6012
- `;m$1("",Gr,{moduleId:"lumo-color"});/**
6012
+ `;m$1("",Kr,{moduleId:"lumo-color"});/**
6013
6013
  * @license
6014
6014
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6015
6015
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6016
- */const Kr=_$1`
6016
+ */const Xr=_$1`
6017
6017
  @font-face {
6018
6018
  font-family: 'lumo-icons';
6019
6019
  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==)
@@ -6066,11 +6066,11 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
6066
6066
  --lumo-icons-upload: '\\ea29';
6067
6067
  --lumo-icons-user: '\\ea2a';
6068
6068
  }
6069
- `;he("font-icons",Kr);/**
6069
+ `;he("font-icons",Xr);/**
6070
6070
  * @license
6071
6071
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6072
6072
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6073
- */const Xr=_$1`
6073
+ */const Jr=_$1`
6074
6074
  :host {
6075
6075
  --lumo-size-xs: 1.625rem;
6076
6076
  --lumo-size-s: 1.875rem;
@@ -6085,11 +6085,11 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
6085
6085
  /* For backwards compatibility */
6086
6086
  --lumo-icon-size: var(--lumo-icon-size-m);
6087
6087
  }
6088
- `;he("sizing-props",Xr);/**
6088
+ `;he("sizing-props",Jr);/**
6089
6089
  * @license
6090
6090
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6091
6091
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6092
- */const Jr=_$1`
6092
+ */const Qr=_$1`
6093
6093
  :host {
6094
6094
  /* Square */
6095
6095
  --lumo-space-xs: 0.25rem;
@@ -6112,11 +6112,11 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
6112
6112
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
6113
6113
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
6114
6114
  }
6115
- `;he("spacing-props",Jr);/**
6115
+ `;he("spacing-props",Qr);/**
6116
6116
  * @license
6117
6117
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6118
6118
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6119
- */const Qr=_$1`
6119
+ */const Zr=_$1`
6120
6120
  :host {
6121
6121
  /* Border radius */
6122
6122
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -6216,11 +6216,11 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
6216
6216
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
6217
6217
  --vaadin-input-field-value-font-weight: 500;
6218
6218
  }
6219
- `;he("style-props",Qr);/**
6219
+ `;he("style-props",Zr);/**
6220
6220
  * @license
6221
6221
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6222
6222
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6223
- */const Zr=_$1`
6223
+ */const en=_$1`
6224
6224
  :host {
6225
6225
  /* prettier-ignore */
6226
6226
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -6240,7 +6240,7 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
6240
6240
  --lumo-line-height-s: 1.375;
6241
6241
  --lumo-line-height-m: 1.625;
6242
6242
  }
6243
- `,en=_$1`
6243
+ `,tn=_$1`
6244
6244
  body,
6245
6245
  :host {
6246
6246
  font-family: var(--lumo-font-family);
@@ -6332,7 +6332,7 @@ var _r=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnProp
6332
6332
  border-left: none;
6333
6333
  border-right: 2px solid var(--lumo-contrast-30pct);
6334
6334
  }
6335
- `;m$1("",en,{moduleId:"lumo-typography"});he("typography-props",Zr);m$1("vaadin-checkbox",_$1`
6335
+ `;m$1("",tn,{moduleId:"lumo-typography"});he("typography-props",en);m$1("vaadin-checkbox",_$1`
6336
6336
  :host {
6337
6337
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
6338
6338
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -6652,7 +6652,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6652
6652
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6653
6653
  Code distributed by Google as part of the polymer project is also
6654
6654
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6655
- */let tn=/(url\()([^)]*)(\))/g,sn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,qe,D$1;function ke(s,t){if(s&&sn.test(s)||s==="//")return s;if(qe===void 0){qe=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",qe=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),qe)try{return new URL(s,t).href}catch(e){return s}return D$1||(D$1=document.implementation.createHTMLDocument("temp"),D$1.base=D$1.createElement("base"),D$1.head.appendChild(D$1.base),D$1.anchor=D$1.createElement("a"),D$1.body.appendChild(D$1.anchor)),D$1.base.href=t,D$1.anchor.href=s,D$1.anchor.href||s}function hi(s,t){return s.replace(tn,function(e,i,o,r){return i+"'"+ke(o.replace(/["']/g,""),t)+"'"+r})}function ci(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
6655
+ */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)}/**
6656
6656
  @license
6657
6657
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6658
6658
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6660,7 +6660,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6660
6660
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6661
6661
  Code distributed by Google as part of the polymer project is also
6662
6662
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6663
- */const Gs=!window.ShadyDOM||!window.ShadyDOM.inUse;const on=Gs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return !1}})();let rn=window.Polymer&&window.Polymer.rootPath||ci(document.baseURI||window.location.href),et$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let tt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,nn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ks=window.Polymer&&window.Polymer.legacyOptimizations||!1,Xs=window.Polymer&&window.Polymer.legacyWarnings||!1,an=window.Polymer&&window.Polymer.syncInitialRender||!1,Bt$1=window.Polymer&&window.Polymer.legacyUndefined||!1,ln=window.Polymer&&window.Polymer.orderedComputed||!1,Xi=window.Polymer&&window.Polymer.removeNestedTemplates||!1,dn=window.Polymer&&window.Polymer.fastDomIf||!1,Ji=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let hn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
6663
+ */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;/**
6664
6664
  @license
6665
6665
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6666
6666
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6668,7 +6668,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6668
6668
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6669
6669
  Code distributed by Google as part of the polymer project is also
6670
6670
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6671
- */let cn=0;const v$1=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=cn++;function i(o){let r=o.__mixinSet;if(r&&r[e])return o;let n=t,a=n.get(o);if(!a){a=s(o),n.set(o,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l;}return a}return i};/**
6671
+ */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};/**
6672
6672
  @license
6673
6673
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6674
6674
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6676,7 +6676,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6676
6676
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6677
6677
  Code distributed by Google as part of the polymer project is also
6678
6678
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6679
- */let ui={},Js={};function Qi(s,t){ui[s]=Js[s.toLowerCase()]=t;}function Zi(s){return ui[s]||Js[s.toLowerCase()]}function un(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id);}class De extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=Zi(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,o){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=ke(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ci(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(tt$1&&Zi(t)!==void 0)throw Qi(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Qi(t,this),un(this);}}}De.prototype.modules=ui;customElements.define("dom-module",De);/**
6679
+ */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);/**
6680
6680
  @license
6681
6681
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6682
6682
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6684,7 +6684,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6684
6684
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6685
6685
  Code distributed by Google as part of the polymer project is also
6686
6686
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6687
- */const pn="link[rel=import][type~=css]",_n="include",es="shady-unscoped";function Qs(s){return De.import(s)}function ts(s){let t=s.body?s.body:s;const e=hi(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function fn(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...mn(t[i]));return e}function mn(s){const t=Qs(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...eo(t));const i=t.querySelector("template");i&&e.push(...Zs(i,t.assetpath)),t._styles=e;}return t._styles}function Zs(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(_n);n&&e.push(...fn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=hi(r.textContent,t)),e.push(r);}s._styles=e;}return s._styles}function gn(s){let t=Qs(s);return t?eo(t):[]}function eo(s){const t=[],e=s.querySelectorAll(pn);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const r=o.import,n=o.hasAttribute(es);if(n&&!r._unscopedStyle){const a=ts(r);a.setAttribute(es,""),r._unscopedStyle=a;}else r._style||(r._style=ts(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
6687
+ */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}/**
6688
6688
  @license
6689
6689
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6690
6690
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6700,7 +6700,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6700
6700
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6701
6701
  Code distributed by Google as part of the polymer project is also
6702
6702
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6703
- */function Rt(s){return s.indexOf(".")>=0}function J$1(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function to(s,t){return s.indexOf(t+".")===0}function Oe(s,t){return t.indexOf(s+".")===0}function Me(s,t,e){return t+e.slice(s.length)}function vn(s,t){return s===t||to(s,t)||Oe(s,t)}function we(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let o=0;o<i.length;o++)t.push(i[o]);}return t.join(".")}else return s}function io(s){return Array.isArray(s)?we(s).split("."):s.toString().split(".")}function T$1(s,t,e){let i=s,o=io(t);for(let r=0;r<o.length;r++){if(!i)return;let n=o[r];i=i[n];}return e&&(e.path=o.join(".")),i}function is(s,t,e){let i=s,o=io(t),r=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[r]=e;}else i[t]=e;return o.join(".")}/**
6703
+ */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(".")}/**
6704
6704
  @license
6705
6705
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6706
6706
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6708,7 +6708,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6708
6708
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6709
6709
  Code distributed by Google as part of the polymer project is also
6710
6710
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6711
- */const it$1={},bn=/-[a-z]/g,yn=/([A-Z])/g;function so(s){return it$1[s]||(it$1[s]=s.indexOf("-")<0?s:s.replace(bn,t=>t[1].toUpperCase()))}function dt$1(s){return it$1[s]||(it$1[s]=s.replace(yn,"-$1").toLowerCase())}/**
6711
+ */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())}/**
6712
6712
  @license
6713
6713
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6714
6714
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6716,7 +6716,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6716
6716
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6717
6717
  Code distributed by Google as part of the polymer project is also
6718
6718
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6719
- */let xn=0,oo=0,se=[],wn=0,Ht$1=!1,ro=document.createTextNode("");new window.MutationObserver(Cn).observe(ro,{characterData:!0});function Cn(){Ht$1=!1;const s=se.length;for(let t=0;t<s;t++){let e=se[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}se.splice(0,s),oo+=s;}const An={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},no={run(s){return Ht$1||(Ht$1=!0,ro.textContent=wn++),se.push(s),xn++},cancel(s){const t=s-oo;if(t>=0){if(!se[t])throw new Error("invalid async handle: "+s);se[t]=null;}}};/**
6719
+ */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;}}};/**
6720
6720
  @license
6721
6721
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6722
6722
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6724,7 +6724,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6724
6724
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6725
6725
  Code distributed by Google as part of the polymer project is also
6726
6726
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6727
- */const En=no,ao=v$1(s=>{class t extends s{static createProperties(i){const o=this.prototype;for(let r in i)r in o||o._createPropertyAccessor(r);}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o));}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties();}});}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties();}ready(){this.__dataReady=!0,this._flushProperties();}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i]);}_initializeInstanceProperties(i){Object.assign(this,i);}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties();}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,r){let n=this.__data[i],a=this._shouldPropertyChange(i,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return !!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,En.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties());}));}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready());}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,o,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,r)),this.__dataCounter--;}_shouldPropertiesChange(i,o,r){return !!o}_propertiesChanged(i,o,r){}_shouldPropertyChange(i,o,r){return r!==o&&(r===r||o===o)}attributeChangedCallback(i,o,r,n){o!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,r,n);}_attributeToProperty(i,o,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(o,r||this.constructor.typeForProperty(a));}}_propertyToAttribute(i,o,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1;}_valueToNodeAttribute(i,o,r){const n=this._serializeValue(o);(r==="class"||r==="name"||r==="slot")&&(i=A$1(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n);}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
6727
+ */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});/**
6728
6728
  @license
6729
6729
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6730
6730
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6732,7 +6732,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6732
6732
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6733
6733
  Code distributed by Google as part of the polymer project is also
6734
6734
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6735
- */const lo={};let Ye=HTMLElement.prototype;for(;Ye;){let s=Object.getOwnPropertyNames(Ye);for(let t=0;t<s.length;t++)lo[s[t]]=!0;Ye=Object.getPrototypeOf(Ye);}const Pn=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function kn(s,t){if(!lo[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e));}}const Sn=v$1(s=>{const t=ao(s);class e extends t{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let r=0;r<o.length;r++)this.prototype._createPropertyAccessor(so(o[r]));}static attributeNameForProperty(o){return dt$1(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties();}_initializeProtoProperties(o){for(let r in o)this._setProperty(r,o[r]);}_ensureAttribute(o,r){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,r,o);}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Pn(o))return o;try{return JSON.stringify(o)}catch(r){return ""}}default:return super._serializeValue(o)}}_deserializeValue(o,r){let n;switch(r){case Object:try{n=JSON.parse(o);}catch(a){n=o;}break;case Array:try{n=JSON.parse(o);}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`);}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,r);break}return n}_definePropertyAccessor(o,r){kn(this,o),super._definePropertyAccessor(o,r);}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return !!(this.__dataPending&&o in this.__dataPending)}}return e});/**
6735
+ */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});/**
6736
6736
  @license
6737
6737
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6738
6738
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6740,7 +6740,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6740
6740
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6741
6741
  Code distributed by Google as part of the polymer project is also
6742
6742
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6743
- */const Tn={"dom-if":!0,"dom-repeat":!0};let ss=!1,os=!1;function In(){if(!ss){ss=!0;const s=document.createElement("textarea");s.placeholder="a",os=s.placeholder===s.textContent;}return os}function Dn(s){In()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null);}const On=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return (t,e,i)=>{const o=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(o,i));return}t.setAttribute(i,o);}})();function Mn(s){let t=s.getAttribute("is");if(t&&Tn[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];On(s,e,i),e.removeAttribute(i);}}return s}function ho(s,t){let e=t.parentInfo&&ho(s,t.parentInfo);if(e){for(let i=e.firstChild,o=0;i;i=i.nextSibling)if(t.parentIndex===o++)return i}else return s}function zn(s,t,e,i){i.id&&(t[i.id]=e);}function Nn(s,t,e){if(e.events&&e.events.length)for(let i=0,o=e.events,r;i<o.length&&(r=o[i]);i++)s._addMethodEventListenerToNode(t,r.name,r.value,s);}function Fn(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i);}function Ln(s,t,e){return s=s._methodHost||s,function(o){s[e]?s[e](o,o.detail):console.warn("listener method `"+e+"` not defined");}}const Vn=v$1(s=>{class t extends s{static _parseTemplate(i,o){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!o,r.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null});}return i._templateInfo}static _parseTemplateContent(i,o,r){return this._parseTemplateNode(i.content,o,r)}static _parseTemplateNode(i,o,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,r)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),Dn(a),a.firstChild&&this._parseTemplateChildNodes(a,o,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,r)||n),n||r.noted}static _parseTemplateChildNodes(i,o,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Mn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,i.removeChild(h),h=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&a++;}}static _parseTemplateNestedTemplate(i,o,r){let n=i,a=this._parseTemplate(n,o);return (a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,o,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let r=o.nodeInfoList,n=o.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,h=r.length,c;d<h&&(c=r[d]);d++){let u=l[d]=ho(a,c);zn(this,a.$,u,c),Fn(this,u,c,o),Nn(this,u,c);}return a=a,a}_addMethodEventListenerToNode(i,o,r,n){n=n||i;let a=Ln(n,o,r);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,r){i.addEventListener(o,r);}_removeEventListenerFromNode(i,o,r){i.removeEventListener(o,r);}}return t});/**
6743
+ */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});/**
6744
6744
  * @fileoverview
6745
6745
  * @suppress {checkPrototypalTypes}
6746
6746
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -6750,7 +6750,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6750
6750
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
6751
6751
  * Google as part of the polymer project is also subject to an additional IP
6752
6752
  * rights grant found at http://polymer.github.io/PATENTS.txt
6753
- */let ze=0;const Ne=[],g$1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},co="__computeInfo",Bn=/[A-Z]/;function xt$1(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Ce(s,t,e,i,o,r){if(t){let n=!1;const a=ze++;for(let l in e){let d=o?J$1(l):l,h=t[d];if(h)for(let c=0,u=h.length,p;c<u&&(p=h[c]);c++)(!p.info||p.info.lastRun!==a)&&(!o||pi(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(s,l,e,i,p.info,o,r),n=!0);}return n}return !1}function Rn(s,t,e,i,o,r,n,a){let l=!1,d=n?J$1(i):i,h=t[d];if(h)for(let c=0,u=h.length,p;c<u&&(p=h[c]);c++)(!p.info||p.info.lastRun!==e)&&(!n||pi(i,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(s,i,o,r,p.info,n,a),l=!0);return l}function pi(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&to(e,s))||!!(t.wildcard&&Oe(e,s))}else return !0}function rs(s,t,e,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined");}function Hn(s,t,e,i,o){let r=s[g$1.NOTIFY],n,a=ze++;for(let d in t)t[d]&&(r&&Rn(s,r,a,d,e,i,o)||o&&$n(s,d,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function $n(s,t,e){let i=J$1(t);if(i!==t){let o=dt$1(i)+"-changed";return uo(s,o,e[t],t),!0}return !1}function uo(s,t,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),A$1(s).dispatchEvent(new CustomEvent(t,{detail:o}));}function Un(s,t,e,i,o,r){let a=(r?J$1(t):t)!=t?t:null,l=a?T$1(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),uo(s,o.eventName,l,a);}function qn(s,t,e,i,o){let r,n=s.detail,a=n&&n.path;a?(i=Me(e,i,a),r=n&&n.value):r=s.currentTarget[e],r=o?!r:r,(!t[g$1.READ_ONLY]||!t[g$1.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function Yn(s,t,e,i,o){let r=s.__data[t];et$1&&(r=et$1(r,o.attrName,"attribute",s)),s._propertyToAttribute(t,o.attrName,r);}function jn(s,t,e,i){let o=s[g$1.COMPUTE];if(o)if(ln){ze++;const r=Gn(s),n=[];for(let l in t)ns(l,o,n,r,i);let a;for(;a=n.shift();)po(s,"",t,e,a)&&ns(a.methodInfo,o,n,r,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null;}else {let r=t;for(;Ce(s,o,r,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null;}}const Wn=(s,t,e)=>{let i=0,o=t.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else {r=n;break}}r<0&&(r=o+1),t.splice(r,0,s);},ns=(s,t,e,i,o)=>{const r=o?J$1(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ze&&(!o||pi(s,l.trigger))&&(l.info.lastRun=ze,Wn(l.info,e,i));}};function Gn(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[g$1.COMPUTE];let{counts:i,ready:o,total:r}=Kn(s),n;for(;n=o.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d);});}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t;}return t}function Kn(s){const t=s[co],e={},i=s[g$1.COMPUTE],o=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0);}for(let n in i)t[n]||o.push(n);return {counts:e,ready:o,total:r}}function po(s,t,e,i,o){let r=$t$1(s,t,e,i,o);if(r===Ne)return !1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function Xn(s,t,e){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Oe(r,t)?(o=Me(r,n,t),s._setPendingPropertyOrPath(o,e,!0,!0)):Oe(n,t)&&(o=Me(n,r,t),s._setPendingPropertyOrPath(o,e,!0,!0));}}}function wt$1(s,t,e,i,o,r,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ta(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||dt$1(o)+"-changed",a.listenerNegate=h;}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Jn(s,t,a,h,l);}}function Jn(s,t,e,i,o){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else {let r=i.dependencies,n={index:o,binding:e,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=fo(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Qn,info:n,trigger:l});}}}function Qn(s,t,e,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=Me(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&s._enqueueClient(a);}else {let h=o.evaluator._evaluateBinding(s,d,t,e,i,r);h!==Ne&&Zn(s,a,l,d,h);}}function Zn(s,t,e,i,o){if(o=ea(t,o,e,i),et$1&&(o=et$1(o,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,o,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[g$1.READ_ONLY]||!t[g$1.READ_ONLY][r])&&t._setPendingProperty(r,o)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,o);}}function ea(s,t,e,i){if(e.isCompound){let o=s.__dataCompoundStorage[e.target];o[i.compoundIndex]=t,t=o.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function ta(s){return !!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function ia(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=e[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];sa(n,d),oa(n,s,d);}n.__dataHost=s;}}function sa(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=t.target;e[r]=o,t.literal&&t.kind=="property"&&(r==="className"&&(s=A$1(s)),s[r]=t.literal);}}function oa(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(o){qn(o,t,e.target,i.source,i.negate);});}}function as(s,t,e,i,o,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function $t$1(s,t,e,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,t,e);return a===Ne?Ne:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined");}const ra=[],_o="(?:[a-zA-Z_$][\\w.:$\\-*]*)",na="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",aa="(?:'(?:[^'\\\\]|\\\\.)*')",la='(?:"(?:[^"\\\\]|\\\\.)*")',da="(?:"+aa+"|"+la+")",ls="(?:("+_o+"|"+na+"|"+da+")\\s*)",ha="(?:"+ls+"(?:,\\s*"+ls+")*)",ca="(?:\\(\\s*(?:"+ha+"?)\\)\\s*)",ua="("+_o+"\\s*"+ca+"?)",pa="(\\[\\[|{{)\\s*",_a="(?:]]|}})",fa="(?:(!)\\s*)?",ma=pa+fa+ua+_a,ds=new RegExp(ma,"g");function hs(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||"";}return t}function Ct$1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:ra};if(t[2].trim()){let o=t[2].replace(/\\,/g,"&comma;").split(",");return ga(o,i)}else return i}return null}function ga(s,t){return t.args=s.map(function(e){let i=fo(e);return i.literal||(t.static=!1),i},this),t}function fo(s){let t=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=J$1(t),e.structured=Rt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function cs(s,t,e){let i=T$1(s,e);return i===void 0&&(i=t[e]),i}function mo(s,t,e,i){const o={indexSplices:i};Bt$1&&!s._overrideLegacyUndefined&&(t.splices=o),s.notifyPath(e+".splices",o),s.notifyPath(e+".length",t.length),Bt$1&&!s._overrideLegacyUndefined&&(o.indexSplices=[]);}function ve(s,t,e,i,o,r){mo(s,t,e,[{index:i,addedCount:o,removed:r,object:t,type:"splice"}]);}function va(s){return s[0].toUpperCase()+s.substring(1)}const _i=v$1(s=>{const t=Vn(Sn(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return g$1}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1;}_registerHost(){if(be.length){let o=be[be.length-1];o._enqueueClient(this),this.__dataHost=o;}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={};}_initializeInstanceProperties(o){let r=this[g$1.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n]);}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==g$1.READ_ONLY);let a=xt$1(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n);}_removePropertyEffect(o,r,n){let a=xt$1(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(o,r){let n=this[r];return !!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,g$1.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,g$1.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,g$1.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,g$1.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||J$1(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=T$1(this,o);if(o=is(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return Xn(this,o,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r;}return !1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=A$1(o)),o[r]=n);}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&Rt(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[g$1.NOTIFY]&&this[g$1.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties();}_invalidateProperties(){this.__dataReady&&this._flushProperties();}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o);}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0);}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(o,r){for(let n in o)(r||!this[g$1.READ_ONLY]||!this[g$1.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;jn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ce(this,this[g$1.REFLECT],r,n,a),Ce(this,this[g$1.OBSERVE],r,n,a),l&&Hn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(o,r,n){this[g$1.PROPAGATE]&&Ce(this,this[g$1.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n);}_runEffectsForTemplate(o,r,n,a){const l=(d,h)=>{Ce(this,o.propertyEffects,d,n,h,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,d,n,h);};o.runEffects?o.runEffects(l,r,a):l(r,a);}linkPaths(o,r){o=we(o),r=we(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r;}unlinkPaths(o){o=we(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o];}notifySplices(o,r){let n={path:""},a=T$1(this,o,n);mo(this,a,n.path,r);}get(o,r){return T$1(r||this,o)}set(o,r,n){n?is(n,o,r):(!this[g$1.READ_ONLY]||!this[g$1.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties();}push(o,...r){let n={path:""},a=T$1(this,o,n),l=a.length,d=a.push(...r);return r.length&&ve(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=T$1(this,o,r),a=!!n.length,l=n.pop();return a&&ve(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=T$1(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let h;return arguments.length===2?h=d.splice(r):h=d.splice(r,n,...a),(a.length||h.length)&&ve(this,d,l.path,r,a.length,h),h}shift(o){let r={path:""},n=T$1(this,o,r),a=!!n.length,l=n.shift();return a&&ve(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=T$1(this,o,n),l=a.unshift(...r);return r.length&&ve(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=T$1(this,o,a),n=a.path;}else Array.isArray(o)?n=we(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,g$1.READ_ONLY),r&&(this["_set"+va(o)]=function(n){this._setProperty(o,n);});}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,g$1.OBSERVE,{fn:rs,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,g$1.OBSERVE,{fn:rs,info:a,trigger:{name:r}});}_createMethodObserver(o,r){let n=Ct$1(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");as(this,n,g$1.OBSERVE,$t$1,null,r);}_createNotifyingProperty(o){this._addPropertyEffect(o,g$1.NOTIFY,{fn:Un,info:{eventName:dt$1(o)+"-changed",property:o}});}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,g$1.REFLECT,{fn:Yn,info:{attrName:r}});}_createComputedProperty(o,r,n){let a=Ct$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=as(this,a,g$1.COMPUTE,po,o,n);xt$1(this,co)[o]=l;}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,h=o.length;d<h;d++){let{name:c,structured:u,wildcard:p,value:f,literal:E}=o[d];if(!E)if(p){const S=Oe(c,r),x=cs(a,n,S?r:c);f={path:S?r:c,value:x,base:S?T$1(a,c):x};}else f=u?cs(a,n,c):a[c];if(Bt$1&&!this._overrideLegacyUndefined&&f===void 0&&o.length>1)return Ne;l[d]=f;}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n);}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n);}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r);}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o);}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r);}static createReflectedProperty(o){this.prototype._createReflectedProperty(o);}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n);}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else {const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n;}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),be.push(this);let n=super._stampTemplate(o,r);if(be.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l);}return n.templateInfo=r,ia(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let h=0;h<d.length;h++){let c=d[h];A$1(A$1(c).parentNode).removeChild(c);}}static _parseTemplateNode(o,r,n){let a=t._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=hs(l)||" ",wt$1(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let h=a,c="property";Bn.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let u=hs(d);return u&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),c=="attribute"&&h=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&h==="value"&&o.setAttribute(h,""),o.removeAttribute(h),c==="property"&&(a=so(a)),wt$1(this,r,n,c,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=t._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,h=l.localName==="dom-if",c=l.localName==="dom-repeat";Xi&&(h||c)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(dn&&h)u&&(r.hostProps=Object.assign(r.hostProps||{},u),Xi||(n.parentInfo.noted=!0));else {let p="{";for(let f in u){let E=[{mode:p,source:f,dependencies:[f],hostProp:!0}];wt$1(this,r,n,"property","_host_"+f,E);}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=ds.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],h=!!l[2],c=l[3].trim(),u=!1,p="",f=-1;d=="{"&&(f=c.indexOf("::"))>0&&(p=c.substring(f+2),c=c.substring(0,f),u=!0);let E=Ct$1(c),S=[];if(E){let{args:x,methodName:b}=E;for(let fe=0;fe<x.length;fe++){let q=x[fe];q.literal||S.push(q);}let V=r.dynamicFns;(V&&V[b]||E.static)&&(S.push(b),E.dynamicFn=!0);}else S.push(c);n.push({source:c,mode:d,negate:h,customEvent:u,signature:E,dependencies:S,event:p}),a=ds.lastIndex;}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let h;return r.signature?h=$t$1(o,n,a,l,r.signature):n!=r.source?h=T$1(o,r.source):d&&Rt(n)?h=T$1(o,n):h=o.__data[n],r.negate&&(h=!h),h}}return e}),be=[];/**
6753
+ */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=[];/**
6754
6754
  @license
6755
6755
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6756
6756
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6766,7 +6766,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6766
6766
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6767
6767
  Code distributed by Google as part of the polymer project is also
6768
6768
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6769
- */function ba(s){const t={};for(let e in s){const i=s[e];t[e]=typeof i=="function"?{type:i}:i;}return t}const ya=v$1(s=>{const t=ao(s);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof o?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=ba(a));}r.__ownProperties=n;}return r.__ownProperties}class o extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[];}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass();}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n);}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this));}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties();}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties();}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback();}}return o});/**
6769
+ */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});/**
6770
6770
  * @fileoverview
6771
6771
  * @suppress {checkPrototypalTypes}
6772
6772
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -6776,7 +6776,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6776
6776
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
6777
6777
  * Google as part of the polymer project is also subject to an additional IP
6778
6778
  * rights grant found at http://polymer.github.io/PATENTS.txt
6779
- */const xa="3.5.2",us=window.ShadyCSS&&window.ShadyCSS.cssBuild,wa=v$1(s=>{const t=ya(_i(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let c=d[h];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=c);}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,h,c){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,c)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,c[h.observer]),l._addPropertyToAttributeMap(d);}function r(l,d,h,c){if(!us){const u=d.content.querySelectorAll("style"),p=Zs(d),f=gn(h),E=d.content.firstElementChild;for(let x=0;x<f.length;x++){let b=f[x];b.textContent=l._processStyleText(b.textContent,c),d.content.insertBefore(b,E);}let S=0;for(let x=0;x<p.length;x++){let b=p[x],V=u[S];V!==b?(b=b.cloneNode(!0),V.parentNode.insertBefore(b,V)):S++,b.textContent=l._processStyleText(b.textContent,c);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),hn&&us&&on){const u=d.content.querySelectorAll("style");if(u){let p="";Array.from(u).forEach(f=>{p+=f.textContent,f.parentNode.removeChild(f);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p);}}}function n(l){let d=null;if(l&&(!tt$1||nn)&&(d=De.import(l,"template"),tt$1&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return xa}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate();}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Ks||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let h in d)o(this.prototype,h,d[h],d);}static createObservers(d,h){const c=this.prototype;for(let u=0;u<d.length;u++)c._createMethodObserver(d[u],h);}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template;}return this._template}static set template(d){this._template=d;}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=ci(d.url);else {const h=De.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath;}}return this._importPath}constructor(){super();}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=rn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let h in d){let c=d[h];if(this._canApplyPropertyDefault(h)){let u=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(h)?this._setPendingProperty(h,u,!0):this[h]=u;}}}_canApplyPropertyDefault(d){return !this.hasOwnProperty(d)}static _processStyleText(d,h){return hi(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const c=this.importPath,u=c?ke(c):"";r(this,h,d,u),this.prototype._bindTemplate(h);}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback();}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready();}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients();}_attachDom(d){const h=A$1(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),an&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d);}resolveUrl(d,h){return !h&&this.importPath&&(h=ke(this.importPath)),ke(d,h)}static _parseTemplateContent(d,h,c){return h.dynamicFns=h.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,h,c)}static _addTemplatePropertyEffect(d,h,c){return Xs&&!(h in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,h,c)}}return a});/**
6779
+ */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});/**
6780
6780
  @license
6781
6781
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6782
6782
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6784,7 +6784,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6784
6784
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6785
6785
  Code distributed by Google as part of the polymer project is also
6786
6786
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6787
- */const ps=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class go{constructor(t,e){bo(t,e);const i=e.reduce((o,r,n)=>o+vo(r)+t[n+1],t[0]);this.value=i.toString();}toString(){return this.value}}function vo(s){if(s instanceof go)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function Ca(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof go)return vo(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const P=function(t,...e){bo(t,e);const i=document.createElement("template");let o=e.reduce((r,n,a)=>r+Ca(n)+t[a+1],t[0]);return ps&&(o=ps.createHTML(o)),i.innerHTML=o,i},bo=(s,t)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||t.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
6787
+ */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")};/**
6788
6788
  @license
6789
6789
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6790
6790
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -6792,7 +6792,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6792
6792
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6793
6793
  Code distributed by Google as part of the polymer project is also
6794
6794
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6795
- */const k$1=wa(HTMLElement),Aa=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Je=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ea(){function s(){return !0}return yo(s)}function Pa(){try{return ka()?!0:Sa()?Je?!Ta():!Ea():!1}catch(s){return !1}}function ka(){return localStorage.getItem("vaadin.developmentmode.force")}function Sa(){return ["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ta(){return !!(Je&&Object.keys(Je).map(t=>Je[t]).filter(t=>t.productionMode).length>0)}function yo(s,t){if(typeof s!="function")return;const e=Aa.exec(s.toString());if(e)try{s=new Function(e[1]);}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i);}return s(t)}window.Vaadin=window.Vaadin||{};const _s=function(s,t){if(window.Vaadin.developmentMode)return yo(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Pa());function Ia(){/*! vaadin-dev-mode:start
6795
+ */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
6796
6796
  (function () {
6797
6797
  'use strict';
6798
6798
 
@@ -7270,7 +7270,7 @@ try {
7270
7270
 
7271
7271
  }());
7272
7272
 
7273
- vaadin-dev-mode:end **/}const Da=function(){if(typeof _s=="function")return _s(Ia)};/**
7273
+ vaadin-dev-mode:end **/}const Oa=function(){if(typeof fs=="function")return fs(Da)};/**
7274
7274
  * @license
7275
7275
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7276
7276
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7278,7 +7278,7 @@ try {
7278
7278
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7279
7279
  * Code distributed by Google as part of the polymer project is also
7280
7280
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7281
- */let fs=0,xo=0;const oe=[];let Ut=!1;function Oa(){Ut=!1;const s=oe.length;for(let t=0;t<s;t++){const e=oe[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}oe.splice(0,s),xo+=s;}const G$1={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Fe={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s);}},wo={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s);}},st$1={run(s){Ut||(Ut=!0,queueMicrotask(()=>Oa())),oe.push(s);const t=fs;return fs+=1,t},cancel(s){const t=s-xo;if(t>=0){if(!oe[t])throw new Error(`invalid async handle: ${s}`);oe[t]=null;}}};/**
7281
+ */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;}}};/**
7282
7282
  @license
7283
7283
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7284
7284
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7286,31 +7286,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7286
7286
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7287
7287
  Code distributed by Google as part of the polymer project is also
7288
7288
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7289
- */const Le=new Set;let O=class qt{static debounce(t,e,i){return t instanceof qt?t._cancelAsync():t=new qt,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Le.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Le.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}};function Co(s){Le.add(s);}function Ma(){const s=!!Le.size;return Le.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s}const Ae=()=>{let s;do s=Ma();while(s)};/**
7289
+ */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)};/**
7290
7290
  * @license
7291
7291
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7292
7292
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7293
- */const N$1=[];function Yt(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir");}function jt$1(){return document.documentElement.getAttribute("dir")}function za(){const s=jt$1();N$1.forEach(t=>{Yt(t,s);});}const Na=new MutationObserver(za);Na.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Q$1=s=>class extends s{static get properties(){return {dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Yt(this,jt$1(),null));}attributeChangedCallback(e,i,o){if(super.attributeChangedCallback(e,i,o),e!=="dir")return;const r=jt$1(),n=o===r&&N$1.indexOf(this)===-1,a=!o&&i&&N$1.indexOf(this)===-1;n||a?(this.__subscribe(),Yt(this,r,o)):o!==r&&i===r&&this.__unsubscribe();}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=N$1.includes(this),this.__unsubscribe();}_valueToNodeAttribute(e,i,o){o==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,o);}_attributeToProperty(e,i,o){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,o);}__subscribe(){N$1.includes(this)||N$1.push(this);}__unsubscribe(){N$1.includes(this)&&N$1.splice(N$1.indexOf(this),1);}};/**
7293
+ */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);}};/**
7294
7294
  * @license
7295
7295
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7296
7296
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7297
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Da();};let At$1;const ms=new Set,ce=s=>class extends Q$1(s){static finalize(){super.finalize();const{is:e}=this;e&&!ms.has(e)&&(window.Vaadin.registrations.push(this),ms.add(e),window.Vaadin.developmentModeCallback&&(At$1=O.debounce(At$1,wo,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();}),Co(At$1)));}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.');}};/**
7297
+ */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.');}};/**
7298
7298
  * @license
7299
7299
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7300
7300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7301
- */function Fa(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode;}return t}function fi(s){return s?new Set(s.split(" ")):new Set}function ht$1(s){return s?[...s].join(" "):""}function Ao(s,t,e){const i=fi(s.getAttribute(t));i.add(e),s.setAttribute(t,ht$1(i));}function La(s,t,e){const i=fi(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,ht$1(i));}function Va(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
7301
+ */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()===""}/**
7302
7302
  * @license
7303
7303
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7304
7304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7305
- */class Eo{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule();},this.connect(),this._schedule();}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0;}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1;}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush();}));}flush(){this._connected&&(this._scheduled=!1,this._processNodes());}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r);}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=t;}}/**
7305
+ */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;}}/**
7306
7306
  * @license
7307
7307
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7308
7308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7309
- */let Ba=0;function mi(){return Ba++}/**
7309
+ */let Ra=0;function mi(){return Ra++}/**
7310
7310
  * @license
7311
7311
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7312
7312
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7313
- */class R$1 extends EventTarget{static generateId(t,e="default"){return `${e}-${t.localName}-${mi()}`}constructor(t,e,i,o={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e));}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0);}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t));}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e));}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e);});}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let o=this.defaultNode;return !o&&i&&(o=document.createElement(i),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,t.appendChild(o)),o}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host);}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t));}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Eo(i,({addedNodes:o,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Va(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l);})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l);})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)));});}}/**
7313
+ */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)));});}}/**
7314
7314
  * @license
7315
7315
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7316
7316
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7322,7 +7322,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7322
7322
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7323
7323
  Code distributed by Google as part of the polymer project is also
7324
7324
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7325
- */const Ra=s=>s,Po=typeof document.head.style.touchAction=="string",Wt="__polymerGestures",Et$1="__polymerGesturesHandled",Gt="__polymerGesturesTouchAction",gs=25,vs=5,Ha=2,$a=["mousedown","mousemove","mouseup","click"],Ua=[0,1,4,2],qa=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return !1}}();function gi(s){return $a.indexOf(s)>-1}(function(){try{const s=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s);}catch(s){}})();function ja(s){}const Wa=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ga={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function K$1(s){const t=s.type;if(!gi(t))return !1;if(t==="mousemove"){let i=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!qa&&(i=Ua[s.which]||0),!!(i&1)}return (s.button===void 0?0:s.button)===0}function Ka(s){if(s.type==="click"){if(s.detail===0)return !0;const t=$$1(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=s.pageX,o=s.pageY;return !(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return !1}const F$1={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Xa(s){let t="auto";const e=So(s);for(let i=0,o;i<e.length;i++)if(o=e[i],o[Gt]){t=o[Gt];break}return t}function ko(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e);}function re(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null;}const So=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],vi={},W$1=[];function Ja(s,t){let e=document.elementFromPoint(s,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,t),o===i)break;i&&(e=i);}return e}function $$1(s){const t=So(s);return t.length>0?t[0]:s.target}function Qa(s){const t=s.type,i=s.currentTarget[Wt];if(!i)return;const o=i[t];if(!o)return;if(!s[Et$1]&&(s[Et$1]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(F$1.touch.id=n.identifier),F$1.touch.id!==n.identifier)return;Po||(t==="touchstart"||t==="touchmove")&&Za(s);}const r=s[Et$1];if(!r.skip){for(let n=0,a;n<W$1.length;n++)a=W$1[n],o[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<W$1.length;n++)a=W$1[n],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s));}}function Za(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")F$1.touch.x=t.clientX,F$1.touch.y=t.clientY,F$1.touch.scrollDecided=!1;else if(e==="touchmove"){if(F$1.touch.scrollDecided)return;F$1.touch.scrollDecided=!0;const i=Xa(s);let o=!1;const r=Math.abs(F$1.touch.x-t.clientX),n=Math.abs(F$1.touch.y-t.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>r:i==="pan-y"&&(o=r>n)),o?s.preventDefault():ot$1("track");}}function z$1(s,t,e){return vi[t]?(el(s,t,e),!0):!1}function el(s,t,e){const i=vi[t],o=i.deps,r=i.name;let n=s[Wt];n||(s[Wt]=n={});for(let a=0,l,d;a<o.length;a++)l=o[a],!(Wa&&gi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&s.addEventListener(l,Qa,ja()),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(t,e),i.touchAction&&To(s,i.touchAction);}function bi(s){W$1.push(s),s.emits.forEach(t=>{vi[t]=s;});}function tl(s){for(let t=0,e;t<W$1.length;t++){e=W$1[t];for(let i=0,o;i<e.emits.length;i++)if(o=e.emits[i],o===s)return e}return null}function To(s,t){Po&&s instanceof HTMLElement&&st$1.run(()=>{s.style.touchAction=t;}),s[Gt]=t;}function yi(s,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Ra(s).dispatchEvent(i),i.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault();}}function ot$1(s){const t=tl(s);t.info&&(t.info.prevent=!0);}bi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){re(this.info);},mousedown(s){if(!K$1(s))return;const t=$$1(s),e=this,i=r=>{K$1(r)||(ye("up",t,r),re(e.info));},o=r=>{K$1(r)&&ye("up",t,r),re(e.info);};ko(this.info,i,o),ye("down",t,s);},touchstart(s){ye("down",$$1(s),s.changedTouches[0],s);},touchend(s){ye("up",$$1(s),s.changedTouches[0],s);}});function ye(s,t,e,i){t&&yi(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(o){return ot$1(o)}});}bi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(s){this.moves.length>Ha&&this.moves.shift(),this.moves.push(s);},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,re(this.info);},mousedown(s){if(!K$1(s))return;const t=$$1(s),e=this,i=r=>{const n=r.clientX,a=r.clientY;bs(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ot$1("tap"),e.info.addMove({x:n,y:a}),K$1(r)||(e.info.state="end",re(e.info)),t&&Pt$1(e.info,t,r),e.info.started=!0);},o=r=>{e.info.started&&i(r),re(e.info);};ko(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY;},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchmove(s){const t=$$1(s),e=s.changedTouches[0],i=e.clientX,o=e.clientY;bs(this.info,i,o)&&(this.info.state==="start"&&ot$1("tap"),this.info.addMove({x:i,y:o}),Pt$1(this.info,t,e),this.info.state="track",this.info.started=!0);},touchend(s){const t=$$1(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Pt$1(this.info,t,e));}});function bs(s,t,e){if(s.prevent)return !1;if(s.started)return !0;const i=Math.abs(s.x-t),o=Math.abs(s.y-e);return i>=vs||o>=vs}function Pt$1(s,t,e){if(!t)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,n=o.y-s.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),yi(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Ja(e.clientX,e.clientY)}});}bi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1;},mousedown(s){K$1(s)&&(this.info.x=s.clientX,this.info.y=s.clientY);},click(s){K$1(s)&&ys(this.info,s);},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchend(s){ys(this.info,s.changedTouches[0],s);}});function ys(s,t,e){const i=Math.abs(t.clientX-s.x),o=Math.abs(t.clientY-s.y),r=$$1(e||t);!r||Ga[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=gs&&o<=gs||Ka(t))&&(s.prevent||yi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}));}/**
7325
+ */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}));}/**
7326
7326
  * @license
7327
7327
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7328
7328
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7334,11 +7334,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7334
7334
  * @license
7335
7335
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7336
7336
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7337
- */const Io=s=>class extends pe(Re(s)){get _activeKeys(){return [" "]}ready(){super.ready(),z$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),z$1(this,"up",()=>{this._setActive(!1);});}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1);}_shouldSetActive(e){return !this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1);},{once:!0}));}_setActive(e){this.toggleAttribute("active",e);}};/**
7337
+ */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);}};/**
7338
7338
  * @license
7339
7339
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7340
7340
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7341
- */let xi=!1;window.addEventListener("keydown",()=>{xi=!0;},{capture:!0});window.addEventListener("mousedown",()=>{xi=!1;},{capture:!0});function Kt(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function ct$1(){return xi}function il(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function sl(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function ol(s,t){const e=[];for(;s.length>0&&t.length>0;)sl(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function Xt(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=Xt(s.slice(0,e)),o=Xt(s.slice(e));return ol(i,o)}function wi(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Do(s){return s.getRootNode().activeElement===s}function rl(s){if(!wi(s))return -1;const t=s.getAttribute("tabindex")||0;return Number(t)}function Oo(s,t){if(s.nodeType!==Node.ELEMENT_NODE||il(s))return !1;const e=s,i=rl(e);let o=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{o=Oo(n,t)||o;}),o}function nl(s){const t=[];return Oo(s,t)?Xt(t):t}/**
7341
+ */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}/**
7342
7342
  * @license
7343
7343
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7344
7344
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7346,15 +7346,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7346
7346
  * @license
7347
7347
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7348
7348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7349
- */const Mo=s=>class extends pe(s){static get properties(){return {tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex);}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1);}};/**
7349
+ */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);}};/**
7350
7350
  * @license
7351
7351
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7352
7352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7353
- */const Ci=v$1(s=>class extends _e(Mo(s)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i);}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus);}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus);}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"));}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"));}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur();}_tabindexChanged(e){this.__forwardTabIndex(e);}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0);}});/**
7353
+ */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);}});/**
7354
7354
  * @license
7355
7355
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7356
7356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7357
- */const zo=v$1(s=>class extends s{static get properties(){return {stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return []}static get delegateProps(){return []}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver();}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated());}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`);}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`);}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e]);});}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e]);});}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,o)=>{this._delegateAttribute(i,e[o]);});}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,o)=>{this._delegateProperty(i,e[o]);});}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e));}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i);}});/**
7357
+ */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);}});/**
7358
7358
  * @license
7359
7359
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7360
7360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7362,15 +7362,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7362
7362
  * @license
7363
7363
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7364
7364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7365
- */const al=v$1(s=>class extends zo(pe(He(s))){static get properties(){return {checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return [...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked);}_toggleChecked(e){this.checked=e;}});/**
7365
+ */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;}});/**
7366
7366
  * @license
7367
7367
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7368
7368
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7369
- */const kt$1=new Map;function Ai(s){return kt$1.has(s)||kt$1.set(s,new WeakMap),kt$1.get(s)}function No(s,t){s&&s.removeAttribute(t);}function Fo(s,t){if(!s||!t)return;const e=Ai(t);if(e.has(s))return;const i=fi(s.getAttribute(t));e.set(s,new Set(i));}function ll(s,t){if(!s)return;const e=Ai(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):Ao(s,t,ht$1(i)),e.delete(s);}function St$1(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:o,fromUser:r}=e,n=Ai(t),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):Fo(s,t),No(s,t)),La(s,t,o);const l=i||ht$1(a);l&&Ao(s,t,l);}function dl(s,t){Fo(s,t),No(s,t);}/**
7369
+ */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);}/**
7370
7370
  * @license
7371
7371
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7372
7372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7373
- */class hl{constructor(t){this.host=t,this.__required=!1;}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label);}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t;}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t;}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t;}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t;}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t;}__setAriaLabelToAttribute(t){this.__target&&(t?(dl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(ll(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")));}__setLabelIdToAriaAttribute(t,e,i){St$1(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){St$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){St$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")));}}/**
7373
+ */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")));}}/**
7374
7374
  * @license
7375
7375
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7376
7376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7378,35 +7378,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7378
7378
  * @license
7379
7379
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7380
7380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7381
- */const M$1=document.createElement("div");M$1.style.position="fixed";M$1.style.clip="rect(0px, 0px, 0px, 0px)";M$1.setAttribute("aria-live","polite");document.body.appendChild(M$1);let je;function cl(s,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(M$1.removeAttribute("aria-live"),M$1.removeAttribute("role"),je=O.debounce(je,Fe,()=>{M$1.setAttribute("role","alert");})):(je&&je.cancel(),M$1.removeAttribute("role"),M$1.setAttribute("aria-live",e)),M$1.textContent="",setTimeout(()=>{M$1.textContent=s;},i);}/**
7381
+ */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);}/**
7382
7382
  * @license
7383
7383
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7384
7384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7385
- */class Ei extends R$1{constructor(t,e,i,o={}){super(t,e,i,mt$1(me({},o),{useUniqueId:!0}));}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t);}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node));}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t);}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node);});}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0});}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}));}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId);}}/**
7385
+ */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);}}/**
7386
7386
  * @license
7387
7387
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7388
7388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7389
- */class ul extends Ei{constructor(t){super(t,"error-message","div");}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node);}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node);}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t);}initNode(t){this.updateDefaultNode(t);}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t);}restoreDefaultNode(){this.attachDefaultNode();}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");t&&(t.textContent=o?e:"",t.hidden=!o,o&&cl(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
7389
+ */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);}}/**
7390
7390
  * @license
7391
7391
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7392
7392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7393
- */class pl extends Ei{constructor(t){super(t,"helper",null);}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
7393
+ */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);}}/**
7394
7394
  * @license
7395
7395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7396
7396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7397
- */class _l extends Ei{constructor(t){super(t,"label","label");}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
7397
+ */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);}}/**
7398
7398
  * @license
7399
7399
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7400
7400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7401
- */const fl=v$1(s=>class extends Z$1(s){static get properties(){return {label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new _l(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent);});}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController);}_labelChanged(e){this._labelController.setLabel(e);}});/**
7401
+ */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);}});/**
7402
7402
  * @license
7403
7403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7404
7404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7405
- */const Pi=v$1(s=>class extends s{static get properties(){return {invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return !this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e);}_shouldSetInvalid(e){return !0}});/**
7405
+ */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}});/**
7406
7406
  * @license
7407
7407
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7408
7408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7409
- */const ki=s=>class extends Pi(fl(Z$1(s))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new hl(this),this._helperController=new pl(this),this._errorController=new ul(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent);}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.__labelChanged(i,o);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o);});}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController);}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null);}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e);}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0);}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null);}_errorMessageChanged(e){this._errorController.setErrorMessage(e);}_helperTextChanged(e){this._helperController.setHelperText(e);}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e);}_requiredChanged(e){this._fieldAriaController.setRequired(e);}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id);}else this._fieldAriaController.setErrorId(null);});}};/**
7409
+ */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);});}};/**
7410
7410
  * @license
7411
7411
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7412
7412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7418,11 +7418,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7418
7418
  * @license
7419
7419
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7420
7420
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7421
- */const ml=s=>class extends ki(al(Ci(Io(s)))){static get properties(){return {indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return ["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return [...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return [...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on";}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new pt$1(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)");}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick);}_onInputClick(e){this.readonly&&e.preventDefault();}__readonlyChanged(e,i){i&&(e?i.setAttribute("aria-readonly","true"):i.removeAttribute("aria-readonly"));}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e);}checkValidity(){return !this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e;}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}_onRequiredIndicatorClick(){this._labelNode.click();}};/**
7421
+ */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();}};/**
7422
7422
  * @license
7423
7423
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7424
7424
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7425
- */const gl=_$1`
7425
+ */const vl=_$1`
7426
7426
  :host {
7427
7427
  display: inline-block;
7428
7428
  }
@@ -7514,7 +7514,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7514
7514
  * @license
7515
7515
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7516
7516
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7517
- */m$1("vaadin-checkbox",gl,{moduleId:"vaadin-checkbox-styles"});class vl extends ml(ce(I$1(k$1))){static get is(){return "vaadin-checkbox"}static get template(){return P`
7517
+ */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`
7518
7518
  <div class="vaadin-checkbox-container">
7519
7519
  <div part="checkbox" aria-hidden="true"></div>
7520
7520
  <slot name="input"></slot>
@@ -7530,11 +7530,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7530
7530
  </div>
7531
7531
  </div>
7532
7532
  <slot name="tooltip"></slot>
7533
- `}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(vl);/**
7533
+ `}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(bl);/**
7534
7534
  * @license
7535
7535
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7536
7536
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7537
- */const Lo=_$1`
7537
+ */const Vo=_$1`
7538
7538
  :host {
7539
7539
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
7540
7540
  }
@@ -7594,7 +7594,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7594
7594
  * @license
7595
7595
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7596
7596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7597
- */const Si=_$1`
7597
+ */const Ti=_$1`
7598
7598
  [part='label'] {
7599
7599
  align-self: flex-start;
7600
7600
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -7706,7 +7706,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7706
7706
  margin-left: 0;
7707
7707
  margin-right: calc(var(--lumo-border-radius-m) / 4);
7708
7708
  }
7709
- `;m$1("",Si,{moduleId:"lumo-required-field"});const bl=_$1`
7709
+ `;m$1("",Ti,{moduleId:"lumo-required-field"});const yl=_$1`
7710
7710
  :host {
7711
7711
  color: var(--lumo-body-text-color);
7712
7712
  font-size: var(--lumo-font-size-m);
@@ -7749,15 +7749,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7749
7749
  color: var(--lumo-secondary-text-color);
7750
7750
  }
7751
7751
  }
7752
- `;m$1("vaadin-checkbox-group",[Si,Lo,bl],{moduleId:"lumo-checkbox-group"});/**
7752
+ `;m$1("vaadin-checkbox-group",[Ti,Vo,yl],{moduleId:"lumo-checkbox-group"});/**
7753
7753
  * @license
7754
7754
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7755
7755
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7756
- */const yl=s=>class extends ki(_e(pe(s))){static get properties(){return {value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ue(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o);}else this._tooltipController.setAriaTarget([]);});}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Eo(e,({addedNodes:i,removedNodes:o})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r);}),this.addController(this._tooltipController);}checkValidity(){return !this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(i=>i.nodeType===Node.ELEMENT_NODE&&i.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(o=>{const{value:r}=o;return !o.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.");}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0);}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value);}_disabledChanged(e,i){super._disabledChanged(e,i),!(!e&&i===void 0)&&i!==e&&this.__checkboxes.forEach(o=>{o.disabled=e;});}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e];}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(i=>i!==e));}__onCheckboxCheckedChanged(e){const i=e.target;i.checked?this.__addCheckboxToValue(i.value):this.__removeCheckboxFromValue(i.value);}__valueChanged(e,i){e&&e.length===0&&i===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(o=>{o.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
7756
+ */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();}};/**
7757
7757
  * @license
7758
7758
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7759
7759
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7760
- */const xl=_$1`
7760
+ */const wl=_$1`
7761
7761
  :host {
7762
7762
  display: inline-flex;
7763
7763
  }
@@ -7790,7 +7790,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7790
7790
  * @license
7791
7791
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
7792
7792
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7793
- */m$1("vaadin-checkbox-group",xl,{moduleId:"vaadin-checkbox-group-styles"});class wl extends yl(ce(I$1(k$1))){static get is(){return "vaadin-checkbox-group"}static get template(){return P`
7793
+ */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`
7794
7794
  <div class="vaadin-group-field-container">
7795
7795
  <div part="label">
7796
7796
  <slot name="label"></slot>
@@ -7811,11 +7811,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7811
7811
  </div>
7812
7812
 
7813
7813
  <slot name="tooltip"></slot>
7814
- `}}y$1(wl);/**
7814
+ `}}y$1(Cl);/**
7815
7815
  * @license
7816
7816
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7817
7817
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7818
- */const Ti=_$1`
7818
+ */const Ii=_$1`
7819
7819
  :host {
7820
7820
  top: var(--lumo-space-m);
7821
7821
  right: var(--lumo-space-m);
@@ -7880,11 +7880,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7880
7880
  opacity: 1;
7881
7881
  }
7882
7882
  }
7883
- `;m$1("",Ti,{moduleId:"lumo-overlay"});/**
7883
+ `;m$1("",Ii,{moduleId:"lumo-overlay"});/**
7884
7884
  * @license
7885
7885
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7886
7886
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7887
- */const Ii=_$1`
7887
+ */const Di=_$1`
7888
7888
  :host([opening]),
7889
7889
  :host([closing]) {
7890
7890
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -7914,7 +7914,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7914
7914
  opacity: 0;
7915
7915
  }
7916
7916
  }
7917
- `;m$1("",Ii,{moduleId:"lumo-menu-overlay-core"});const Cl=_$1`
7917
+ `;m$1("",Di,{moduleId:"lumo-menu-overlay-core"});const Al=_$1`
7918
7918
  /* Small viewport (bottom sheet) styles */
7919
7919
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
7920
7920
  @media (max-width: 450px), (max-height: 450px) {
@@ -7976,7 +7976,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7976
7976
  transform: translateY(150%);
7977
7977
  }
7978
7978
  }
7979
- `,Vo=[Ti,Ii,Cl];m$1("",Vo,{moduleId:"lumo-menu-overlay"});const Al=_$1`
7979
+ `,Bo=[Ii,Di,Al];m$1("",Bo,{moduleId:"lumo-menu-overlay"});const El=_$1`
7980
7980
  [part='overlay'] {
7981
7981
  /*
7982
7982
  Width:
@@ -8021,7 +8021,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8021
8021
  max-height: 70vh;
8022
8022
  }
8023
8023
  }
8024
- `;m$1("vaadin-date-picker-overlay",[Vo,Al],{moduleId:"lumo-date-picker-overlay"});const Bo=_$1`
8024
+ `;m$1("vaadin-date-picker-overlay",[Bo,El],{moduleId:"lumo-date-picker-overlay"});const Ro=_$1`
8025
8025
  :host {
8026
8026
  /* Sizing */
8027
8027
  --lumo-button-size: var(--lumo-size-m);
@@ -8297,7 +8297,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8297
8297
  margin-left: 0;
8298
8298
  margin-right: 0;
8299
8299
  }
8300
- `;m$1("vaadin-button",Bo,{moduleId:"lumo-button"});m$1("vaadin-date-picker-year",_$1`
8300
+ `;m$1("vaadin-button",Ro,{moduleId:"lumo-button"});m$1("vaadin-date-picker-year",_$1`
8301
8301
  :host([current]) [part='year-number'] {
8302
8302
  color: var(--lumo-primary-text-color);
8303
8303
  }
@@ -8800,7 +8800,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8800
8800
  * @license
8801
8801
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8802
8802
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8803
- */const Ro=_$1`
8803
+ */const Ho=_$1`
8804
8804
  [part$='button'] {
8805
8805
  flex: none;
8806
8806
  width: 1em;
@@ -8827,11 +8827,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8827
8827
  font-family: 'lumo-icons';
8828
8828
  display: block;
8829
8829
  }
8830
- `;m$1("",Ro,{moduleId:"lumo-field-button"});/**
8830
+ `;m$1("",Ho,{moduleId:"lumo-field-button"});/**
8831
8831
  * @license
8832
8832
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8833
8833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8834
- */const El=_$1`
8834
+ */const Pl=_$1`
8835
8835
  :host {
8836
8836
  --lumo-text-field-size: var(--lumo-size-m);
8837
8837
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -8962,7 +8962,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8962
8962
  [part='clear-button']::before {
8963
8963
  content: var(--lumo-icons-cross);
8964
8964
  }
8965
- `,$e=[Si,Ro,Lo,El];m$1("",$e,{moduleId:"lumo-input-field-shared-styles"});const Pl=_$1`
8965
+ `,$e=[Ti,Ho,Vo,Pl];m$1("",$e,{moduleId:"lumo-input-field-shared-styles"});const kl=_$1`
8966
8966
  [part='toggle-button']::before {
8967
8967
  content: var(--lumo-icons-calendar);
8968
8968
  }
@@ -8984,15 +8984,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8984
8984
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
8985
8985
  --_lumo-text-field-overflow-mask-image: none;
8986
8986
  }
8987
- `;m$1("vaadin-date-picker",[$e,Pl],{moduleId:"lumo-date-picker"});/**
8987
+ `;m$1("vaadin-date-picker",[$e,kl],{moduleId:"lumo-date-picker"});/**
8988
8988
  * @license
8989
8989
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
8990
8990
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8991
- */const kl=s=>class extends s{static get properties(){return {disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault();}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus());});}};/**
8991
+ */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());});}};/**
8992
8992
  * @license
8993
8993
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
8994
8994
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8995
- */const Sl=_$1`
8995
+ */const Tl=_$1`
8996
8996
  :host {
8997
8997
  display: flex;
8998
8998
  align-items: center;
@@ -9061,15 +9061,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9061
9061
  * @license
9062
9062
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9063
9063
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9064
- */m$1("vaadin-input-container",Sl,{moduleId:"vaadin-input-container-styles"});class Tl extends kl(I$1(Q$1(k$1))){static get is(){return "vaadin-input-container"}static get template(){return P`
9064
+ */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`
9065
9065
  <slot name="prefix"></slot>
9066
9066
  <slot></slot>
9067
9067
  <slot name="suffix"></slot>
9068
- `}}y$1(Tl);/**
9068
+ `}}y$1(Il);/**
9069
9069
  * @license
9070
9070
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9071
9071
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9072
- */const Ho=_$1`
9072
+ */const $o=_$1`
9073
9073
  :host {
9074
9074
  z-index: 200;
9075
9075
  position: fixed;
@@ -9136,55 +9136,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9136
9136
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9137
9137
  Code distributed by Google as part of the polymer project is also
9138
9138
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9139
- */let Jt=!1,Il=[],$o=[];function Dl(){Jt=!0,requestAnimationFrame(function(){Jt=!1,Ol(Il),setTimeout(function(){Ml($o);});});}function Ol(s){for(;s.length;)Uo(s.shift());}function Ml(s){for(let t=0,e=s.length;t<e;t++)Uo(s.shift());}function Uo(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i);}catch(o){setTimeout(()=>{throw o});}}function qo(s,t,e){Jt||Dl(),$o.push([s,t,e]);}/**
9139
+ */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]);}/**
9140
9140
  * @license
9141
9141
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9142
9142
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9143
- */const _t$1=s=>s.test(navigator.userAgent),Qt=s=>s.test(navigator.platform),zl=s=>s.test(navigator.vendor);_t$1(/Android/u);_t$1(/Chrome/u)&&zl(/Google Inc/u);_t$1(/Firefox/u);const Nl=Qt(/^iPad/u)||Qt(/^Mac/u)&&navigator.maxTouchPoints>1,Fl=Qt(/^iPhone/u),Yo=Fl||Nl,Ll=_t$1(/^((?!chrome|android).)*safari/iu),Zt=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return !1}})();/**
9143
+ */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}})();/**
9144
9144
  * @license
9145
9145
  * Copyright (c) 2017 Anton Korzunov
9146
9146
  * SPDX-License-Identifier: MIT
9147
- */let ee=new WeakMap,We=new WeakMap,Ge={},Tt$1=0;const xs=s=>s&&s.nodeType===Node.ELEMENT_NODE,It=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);},Vl=(s,t)=>xs(s)?t.map(e=>{if(!xs(e))return It(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host;}return It(e,"is not contained inside",s),null}).filter(e=>!!e):(It(s,"is not a valid element"),[]),Bl=(s,t,e,i)=>{const o=Vl(t,Array.isArray(s)?s:[s]);Ge[e]||(Ge[e]=new WeakMap);const r=Ge[e],n=[],a=new Set,l=new Set(o),d=c=>{if(!c||a.has(c))return;a.add(c);const u=c.assignedSlot;u&&d(u),d(c.parentNode||c.host);};o.forEach(d);const h=c=>{if(!c||l.has(c))return;const u=c.shadowRoot;(u?[...c.children,...u.children]:[...c.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))h(f);else {const E=f.getAttribute(i),S=E!==null&&E!=="false",x=(ee.get(f)||0)+1,b=(r.get(f)||0)+1;ee.set(f,x),r.set(f,b),n.push(f),x===1&&S&&We.set(f,!0),b===1&&f.setAttribute(e,"true"),S||f.setAttribute(i,"true");}});};return h(t),a.clear(),Tt$1+=1,()=>{n.forEach(c=>{const u=ee.get(c)-1,p=r.get(c)-1;ee.set(c,u),r.set(c,p),u||(We.has(c)?We.delete(c):c.removeAttribute(i)),p||c.removeAttribute(e);}),Tt$1-=1,Tt$1||(ee=new WeakMap,ee=new WeakMap,We=new WeakMap,Ge={});}},jo=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Bl(i,t,e,"aria-hidden")};/**
9147
+ */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")};/**
9148
9148
  * @license
9149
9149
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9150
9150
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9151
- */class Rl{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t;}showModal(){const t=this.callback();this.__showOthers=jo(t);}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null);}}/**
9151
+ */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);}}/**
9152
9152
  * @license
9153
9153
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9154
9154
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9155
- */class Hl{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;}}/**
9155
+ */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;}}/**
9156
9156
  * @license
9157
9157
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9158
9158
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9159
- */const Dt=[];class $l{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return nl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Do).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown);}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown);}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Dt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Dt.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Dt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,o=this.__focusedElementIndex,r=(e.length+o+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
9159
+ */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();}}/**
9160
9160
  * @license
9161
9161
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9162
9162
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9163
- */const Ul=s=>class extends Z$1(s){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Rl(this),this.__focusTrapController=new $l(this),this.__focusRestorationController=new Hl;}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController);}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!ct$1();this.__focusRestorationController.restoreFocus({preventScroll:e});}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode);}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay));}_shouldRestoreFocus(){const e=Kt();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
9163
+ */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}};/**
9164
9164
  * @license
9165
9165
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9166
9166
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9167
- */const Wo=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),ei=()=>Wo().filter(s=>s.$.overlay),ql=s=>s===ei().pop(),Yl=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return ql(this)}bringToFront(){let e="";const i=Wo().filter(o=>o!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex);}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ei().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none");});}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=ei();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
9167
+ */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)););}};/**
9168
9168
  * @license
9169
9169
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9170
9170
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9171
- */const Go=s=>class extends Ul(Yl(s)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Yo&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus();});}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener));}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener);}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model);}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1);}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,r=document.documentElement.clientHeight;o&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0");}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0);}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0);}_rendererOrDataChanged(e,i,o,r){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate();}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState());}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),qo(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o);}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners());}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing");}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return !(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const o=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[o]);};this[o]=r,this.addEventListener("animationend",r);}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]();}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening();}):this._finishOpening();}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront();}_finishOpening(){this.removeAttribute("opening");}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"));}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing();}):this._finishClosing());}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder);}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0;}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0;}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}}};/**
9171
+ */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);}}};/**
9172
9172
  * @license
9173
9173
  * Copyright (c) 2024 Vaadin Ltd.
9174
9174
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9175
- */function jl(s,t){let e=null;const i=document.documentElement;function o(){e&&e.disconnect(),e=null;}function r(n=!1,a=1){o();const{left:l,top:d,width:h,height:c}=s.getBoundingClientRect();if(n||t(),!h||!c)return;const u=Math.floor(d),p=Math.floor(i.clientWidth-(l+h)),f=Math.floor(i.clientHeight-(d+c)),E=Math.floor(l),x={rootMargin:`${-u}px ${-p}px ${-f}px ${-E}px`,threshold:Math.max(0,Math.min(1,a))||1};let b=!0;function V(fe){let q=fe[0].intersectionRatio;if(q!==a){if(!b)return r();q===0&&(q=1e-7),r(!1,q);}b=!1;}e=new IntersectionObserver(V,x),e.observe(s);}return r(!0),o}/**
9175
+ */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}/**
9176
9176
  * @license
9177
9177
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9178
9178
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9179
- */const Ot$1={start:"top",end:"bottom"},Mt$1={start:"left",end:"right"},ws=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Ko=s=>class extends s{static get properties(){return {positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return ["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this);}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners();}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners();}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Fa(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=jl(this.positionTarget,()=>{this._updatePosition();}));}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0);}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null);}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,ws.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,ws.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[r],10);})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition());}}__positionSettingsChanged(){this._updatePosition();}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition();}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),n=!o&&r||o&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Ot$1,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Mt$1,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n);}__shouldAlignStartHorizontally(e,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,r,this.__margins,n,this.noHorizontalOverlap,Mt$1)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noVerticalOverlap,Ot$1)}__shouldAlignStart(e,i,o,r,n,a,l){const d=o-e[a?l.end:l.start]-r[l.end],h=e[a?l.start:l.end]-r[l.start],c=n?d:h,p=c>(n?h:d)||c>i;return n===p}__adjustBottomProperty(e,i,o){let r;if(e===i.end){if(i.end===Ot$1.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=o-a;}this.__oldViewportHeight=n;}if(i.end===Mt$1.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=o-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,o,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,h=parseFloat(n.style[l]||getComputedStyle(n)[l]),c=this.__adjustBottomProperty(l,r,h),u=i[a?r.start:r.end]-e[o===a?r.end:r.start],p=c?`${c}px`:`${h+u*(a?-1:1)}px`;return {[l]:p,[d]:""}}};/**
9179
+ */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]:""}}};/**
9180
9180
  * @license
9181
9181
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
9182
9182
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9183
- */const Wl=s=>class extends Ko(Go(s)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!wi(e.composedPath()[0])&&e.preventDefault();}};/**
9183
+ */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();}};/**
9184
9184
  * @license
9185
9185
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9186
9186
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9187
- */const Gl=_$1`
9187
+ */const Kl=_$1`
9188
9188
  [part='overlay'] {
9189
9189
  display: flex;
9190
9190
  flex: auto;
@@ -9203,18 +9203,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9203
9203
  * @license
9204
9204
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9205
9205
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9206
- */m$1("vaadin-date-picker-overlay",[Ho,Gl],{moduleId:"vaadin-date-picker-overlay-styles"});class Kl extends Wl(Q$1(I$1(k$1))){static get is(){return "vaadin-date-picker-overlay"}static get template(){return P`
9206
+ */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`
9207
9207
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
9208
9208
  <div part="overlay" id="overlay">
9209
9209
  <div part="content" id="content">
9210
9210
  <slot></slot>
9211
9211
  </div>
9212
9212
  </div>
9213
- `}}y$1(Kl);/**
9213
+ `}}y$1(Xl);/**
9214
9214
  * @license
9215
9215
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9216
9216
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9217
- */const Xo=_$1`
9217
+ */const Jo=_$1`
9218
9218
  :host {
9219
9219
  display: inline-block;
9220
9220
  position: relative;
@@ -9274,7 +9274,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9274
9274
  outline-color: GrayText;
9275
9275
  }
9276
9276
  }
9277
- `,Xl=s=>s`
9277
+ `,Jl=s=>s`
9278
9278
  <div class="vaadin-button-container">
9279
9279
  <span part="prefix" aria-hidden="true">
9280
9280
  <slot name="prefix"></slot>
@@ -9291,15 +9291,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9291
9291
  * @license
9292
9292
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9293
9293
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9294
- */const Jo=s=>class extends Io(Mo(_e(s))){static get properties(){return {tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return ["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button");}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click());}};/**
9294
+ */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());}};/**
9295
9295
  * @license
9296
9296
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9297
9297
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9298
- */m$1("vaadin-button",Xo,{moduleId:"vaadin-button-styles"});class Jl extends Jo(ce(I$1(Z$1(k$1)))){static get is(){return "vaadin-button"}static get template(){return Xl(P)}ready(){super.ready(),this._tooltipController=new ue(this),this.addController(this._tooltipController);}}y$1(Jl);/**
9298
+ */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);/**
9299
9299
  * @license
9300
9300
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9301
9301
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9302
- */function Ql(s){let t=s.getDay();t===0&&(t=7);const e=4-t,i=new Date(s.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function ti(s){const t=new Date(s);return t.setHours(0,0,0,0),t}function L$1(s,t,e=ti){return s instanceof Date&&t instanceof Date&&e(s).getTime()===e(t).getTime()}function Di(s){return {day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function le(s,t,e,i){let o=!1;if(typeof i=="function"&&s){const r=Di(s);o=i(r);}return (!t||s>=t)&&(!e||s<=e)&&!o}function Qo(s,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(e.getTime()-s.getTime());return o<r?i:e})}function Zo(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function Zl(s,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let o=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,e,i)?o-=100:s>new Date(o+50,e,i)&&(o+=100),o}function xe(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function ed(s){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",o=s.year;o<0?(o=-o,e="-",i="000000"):s.year>=1e4&&(e="+",i="000000");const r=e+t(o,i),n=t(s.month+1),a=t(s.day);return [r,n,a].join("-")}function td(s){return s instanceof Date?ed({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
9302
+ */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()}):""}/**
9303
9303
  @license
9304
9304
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9305
9305
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9307,7 +9307,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9307
9307
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9308
9308
  Code distributed by Google as part of the polymer project is also
9309
9309
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9310
- */class rt$1{constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ve.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Ve.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof rt$1?t._cancelAsync():t=new rt$1,t.setConfig(e,i),t}}let Ve=new Set;const id=function(s){Ve.add(s);},sd=function(){const s=!!Ve.size;return Ve.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s};/**
9310
+ */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};/**
9311
9311
  @license
9312
9312
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9313
9313
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9315,11 +9315,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9315
9315
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9316
9316
  Code distributed by Google as part of the polymer project is also
9317
9317
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9318
- */const Oi=function(){let s,t;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=sd();while(s||t)};/**
9318
+ */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)};/**
9319
9319
  * @license
9320
9320
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9321
9321
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9322
- */const er=document.createElement("template");er.innerHTML=`
9322
+ */const tr=document.createElement("template");tr.innerHTML=`
9323
9323
  <style>
9324
9324
  :host {
9325
9325
  display: block;
@@ -9369,11 +9369,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9369
9369
  <div class="buffer"></div>
9370
9370
  <div id="fullHeight"></div>
9371
9371
  </div>
9372
- `;class tr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(er.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1;}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0);}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i);}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return (this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll");},10));}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t;}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`);}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Oi();}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper);});}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")));}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse();}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,o=t<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=O.debounce(this._debouncerScrollFinish,G$1.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position);});}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`;}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=O.debounce(this._debouncerUpdateClones,G$1.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones();}),this._scrollDisabled=!1;}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${mi()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,t)&&this._ensureStampedInstance(o);}}),requestAnimationFrame(()=>{this._finishInit();});}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i];});}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a);}),i.updated=!0;}});}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
9372
+ `;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}}/**
9373
9373
  * @license
9374
9374
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9375
9375
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9376
- */const ir=document.createElement("template");ir.innerHTML=`
9376
+ */const sr=document.createElement("template");sr.innerHTML=`
9377
9377
  <style>
9378
9378
  :host {
9379
9379
  --vaadin-infinite-scroller-item-height: 270px;
@@ -9385,11 +9385,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9385
9385
  height: 100%;
9386
9386
  }
9387
9387
  </style>
9388
- `;class od extends tr{static get is(){return "vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ir.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Zo(e);}}y$1(od);/**
9388
+ `;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);/**
9389
9389
  * @license
9390
9390
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9391
9391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9392
- */const sr=document.createElement("template");sr.innerHTML=`
9392
+ */const or=document.createElement("template");or.innerHTML=`
9393
9393
  <style>
9394
9394
  :host {
9395
9395
  --vaadin-infinite-scroller-item-height: 80px;
@@ -9423,15 +9423,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9423
9423
  border-left-color: #000;
9424
9424
  }
9425
9425
  </style>
9426
- `;class rd extends tr{static get is(){return "vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(sr.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e);}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}y$1(rd);/**
9426
+ `;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);/**
9427
9427
  * @license
9428
9428
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9429
9429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9430
- */const nd=s=>class extends s{static get properties(){return {year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return ["__updateSelected(year, selectedDate)"]}__updateSelected(e,i){this.toggleAttribute("selected",i&&i.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear());}};/**
9430
+ */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());}};/**
9431
9431
  * @license
9432
9432
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9433
9433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9434
- */class ad extends I$1(nd(k$1)){static get is(){return "vaadin-date-picker-year"}static get template(){return P`
9434
+ */class ld extends I$1(ad(k$1)){static get is(){return "vaadin-date-picker-year"}static get template(){return P`
9435
9435
  <style>
9436
9436
  :host {
9437
9437
  display: block;
@@ -9440,7 +9440,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9440
9440
  </style>
9441
9441
  <div part="year-number">[[year]]</div>
9442
9442
  <div part="year-separator" aria-hidden="true"></div>
9443
- `}}y$1(ad);/**
9443
+ `}}y$1(ld);/**
9444
9444
  @license
9445
9445
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9446
9446
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9448,7 +9448,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9448
9448
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9449
9449
  Code distributed by Google as part of the polymer project is also
9450
9450
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9451
- */function Mi(s,t,e,i,o){let r;o&&(r=typeof e=="object"&&e!==null,r&&(i=s.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(s.__dataTemp[t]=e),n}const zi=v$1(s=>{class t extends s{_shouldPropertyChange(i,o,r){return Mi(this,i,o,r,!0)}}return t}),ld=v$1(s=>{class t extends s{static get properties(){return {mutableData:Boolean}}_shouldPropertyChange(i,o,r){return Mi(this,i,o,r,this.mutableData)}}return t});zi._mutablePropertyChange=Mi;/**
9451
+ */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;/**
9452
9452
  @license
9453
9453
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9454
9454
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9456,7 +9456,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9456
9456
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9457
9457
  Code distributed by Google as part of the polymer project is also
9458
9458
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9459
- */let ii=null;function si(){return ii}si.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:si,writable:!0}});const or=_i(si),dd=zi(or);function hd(s,t){ii=s,Object.setPrototypeOf(s,t.prototype),new t,ii=null;}const cd=_i(class{});function ud(s,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),A$1(A$1(i).parentNode).replaceChild(i.__polymerReplaced__,i);else {const o=i.__polymerReplaced__;o&&A$1(A$1(o).parentNode).replaceChild(i,o);}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s);}}class U$1 extends cd{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let o=this.root.firstChild;o;o=o.nextSibling)e.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties();}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i]);}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this);}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,o=>{o.model=this,i(o);});else {let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(t,e,i);}}_showHideChildren(t){ud(t,this.children);}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i);}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t;}return t}dispatchEvent(t){return !0}}const pd=zi(U$1);function Cs(s){let t=s.__dataHost;return t&&t._methodHost||t}function _d(s,t,e){let i=e.mutableData?pd:U$1;oi.mixin&&(i=oi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(s),gd(o,s,t,e),o}function fd(s,t,e,i){let o=e.forwardHostProp;if(o&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?dd:or;class d extends l{}n=t.templatizeTemplateClass=d;}else {const l=s.constructor;class d extends l{}n=t.templatizeTemplateClass=d;}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:md(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Xs&&i&&yd(t,e,i);}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)hd(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else {Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d;}}}}function md(s,t){return function(i,o,r){t.call(i.__templatizeOwner,o.substring(6),r[o]);}}function gd(s,t,e,i){let o=e.hostProps||{};for(let r in i.instanceProps){delete o[r];let n=i.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vd(r,n)});}if(i.forwardHostProp&&t.__dataHost)for(let r in o)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bd()});}function vd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,i,o,r[o]);}}function bd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0);}}function oi(s,t,e){if(tt$1&&!Cs(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let o=(t?t.constructor:U$1)._parseTemplate(s),r=o.templatizeInstanceClass;r||(r=_d(s,o,e),o.templatizeInstanceClass=r);const n=Cs(s);fd(s,o,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=o.hostProps,a=a,a}function yd(s,t,e){const i=e.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=t;for(let n in o)if(!i[n]&&!(r&&r[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function xd(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=A$1(t).parentNode;return null}/**
9459
+ */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}/**
9460
9460
  @license
9461
9461
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9462
9462
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9464,7 +9464,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9464
9464
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9465
9465
  Code distributed by Google as part of the polymer project is also
9466
9466
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9467
- */let As=!1;function wd(){if(Ks&&!Gs){if(!As){As=!0;const s=document.createElement("style");s.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(s);}return !0}return !1}/**
9467
+ */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}/**
9468
9468
  @license
9469
9469
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9470
9470
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9472,15 +9472,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9472
9472
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9473
9473
  Code distributed by Google as part of the polymer project is also
9474
9474
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9475
- */const Cd=ld(k$1);class Es extends Cd{static get is(){return "dom-repeat"}static get template(){return null}static get properties(){return {items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Ji,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return ["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null;}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId);}connectedCallback(){if(super.connectedCallback(),wd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=A$1(A$1(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render();}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=oi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,r);},notifyInstanceProp:function(o,r,n){if(vn(this.as,r)){let a=o[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Me(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n);}}});}return !0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ");}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay);}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render));}__debounceRender(t,e=0){this.__renderDebouncer=rt$1.debounce(this.__renderDebouncer,e>0?An.after(e):no,t.bind(this)),id(this.__renderDebouncer);}render(){this.__debounceRender(this.__render),Oi();}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking();})),this._setRenderedItemCount(this.__instances.length),(!Ji||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}));}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,o,r)=>this.__filterFn(t[i],o,r))),this.__sortFn&&e.sort((i,o)=>this.__sortFn(t[i],t[o])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),o=Math.max(e-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+o,t)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now();}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1;}this.__shouldContinueChunking&&this.__debounceRender(this.__render);}__updateInstances(t,e,i){const o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];o[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a);}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n);}__detachInstance(t){let e=this.__instances[t];const i=A$1(e.root);for(let o=0;o<e.children.length;o++){let r=e.children[o];i.appendChild(r);}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this);}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1);}__stampInstance(t,e,i){let o={};return o[this.as]=t,o[this.indexAs]=e,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(t,e,i){const o=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return A$1(A$1(this).parentNode).insertBefore(o.root,n),this.__instances[e]=o,o}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t);}__handleItemPath(t,e){let i=t.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties();}return !0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return xd(this.template,t)}}customElements.define(Es.is,Es);/**
9475
+ */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);/**
9476
9476
  * @license
9477
9477
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9478
9478
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9479
- */const Ad=s=>class extends _e(s){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return ["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return [...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>L$1(e.date,this.focusedDate))}ready(){super.ready(),z$1(this.$.monthGrid,"tap",this._handleTap.bind(this));}_isDisabled(e,i,o){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&o&&i.getMonth()===o.getMonth()&&i.getMonth()===e.getMonth()&&o.getDate()-i.getDate()>=0?!1:!le(r,i,o)&&!le(n,i,o)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300);}_dateAdd(e,i){e.setDate(e.getDate()+i);}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return [];const{weekdays:o,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(o,n).map((d,h)=>({weekDay:d,weekDayShort:a[h]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(o=>L$1(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true");}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return L$1(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return [];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==i.firstDayOfWeek;)this._dateAdd(o,-1);const r=[],n=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===n;)r.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return r}_getWeeks(e){return e.reduce((i,o,r)=>(r%7===0&&i.push([]),i[i.length-1].push(o),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})));}_preventDefault(e){e.preventDefault();}__getWeekNumber(e){const i=e.reduce((o,r)=>!o&&r?r:o);return Ql(i)}__getDayAriaLabel(e){if(!e)return "";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
9479
+ */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}};/**
9480
9480
  * @license
9481
9481
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9482
9482
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9483
- */const Ed=_$1`
9483
+ */const Pd=_$1`
9484
9484
  :host {
9485
9485
  display: block;
9486
9486
  }
@@ -9540,7 +9540,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9540
9540
  * @license
9541
9541
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9542
9542
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9543
- */m$1("vaadin-month-calendar",Ed,{moduleId:"vaadin-month-calendar-styles"});class Pd extends Ad(I$1(k$1)){static get template(){return P`
9543
+ */m$1("vaadin-month-calendar",Pd,{moduleId:"vaadin-month-calendar-styles"});class kd extends Ed(I$1(k$1)){static get template(){return P`
9544
9544
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
9545
9545
  <table
9546
9546
  id="monthGrid"
@@ -9582,19 +9582,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9582
9582
  </template>
9583
9583
  </tbody>
9584
9584
  </table>
9585
- `}static get is(){return "vaadin-month-calendar"}static get properties(){return {_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return ["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers");}__getDatePart(t,e,i,o,r,n){const a=["date"],l=t>ti(new Date),d=t<ti(new Date);return this.__isDayDisabled(t,o,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return L$1(t,e)}__isDaySelected(t,e){return L$1(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return "true"}__isDayDisabled(t,e,i,o){return !le(t,e,i,o)}__getDayAriaDisabled(t,e,i,o){if(!(t===void 0||e===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(t,e,i,o))return "true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}y$1(Pd);/**
9585
+ `}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);/**
9586
9586
  * @license
9587
9587
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9588
9588
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9589
- */class rr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this);}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery);}hostDisconnected(){this._removeListener();}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler);}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null;}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches);}}/**
9589
+ */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);}}/**
9590
9590
  * @license
9591
9591
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9592
9592
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9593
- */const kd=s=>class extends s{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return ["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){To(this.$.scrollers,"pan-y"),z$1(this.$.scrollers,"track",this._track.bind(this)),z$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),z$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),z$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new rr(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new R$1(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),z$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new R$1(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),z$1(e,"tap",this._cancel.bind(this)),this._cancelButton=e;}})),this.__initMonthScroller(),this.__initYearScroller();}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0);}focusCancel(){this._cancelButton.focus();}scrollToDate(e,i){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new R$1(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll();}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart();}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i);}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new R$1(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),z$1(e,"tap",i=>{this._onYearTap(i);}),e.addEventListener("custom-scroll",()=>{this._onYearScroll();}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart();}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")];}),this._yearScroller=e;}}));}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel);}__updateTodayButton(e,i,o,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,r,n));}__updateCalendars(e,i,o,r,n,a,l,d,h,c){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=o,u.maxDate=r,u.isDateDisabled=c,u.focusedDate=a,u.selectedDate=n,u.showWeekNumbers=l,u.ignoreTaps=d,h?u.setAttribute("theme",h):u.removeAttribute("theme");});}__updateYears(e,i,o){e&&e.length&&e.forEach(r=>{r.selectedDate=i,o?r.setAttribute("theme",o):r.removeAttribute("theme");});}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e);}_focusedDateChanged(e){this.revealDate(e);}revealDate(e,i=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+d,i);return}const r=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;r?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e);}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12;}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position);}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps();}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps();}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300),this._repositionMonthScroller();}_onMonthScrollTouchStart(){this._repositionYearScroller();}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=O.debounce(this._debouncer,G$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Di(e)):o}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth();}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0);}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0);}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let o;this._revealPromise=new Promise(d=>{o=d;});const r=(d,h,c,u)=>(d/=u/2,d<1?c/2*d*d+h:(d-=1,-c/2*(d*(d-2)-1)+h));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const h=d-n;if(h<this.scrollDuration){const c=r(h,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(l);}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1);};window.requestAnimationFrame(l);}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth});}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate");}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller();}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","");}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth;}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`);}_yearAfterXMonths(e){return Zo(e).getFullYear()}_differenceInMonths(e,i){return (e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("");}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}));}_cancel(){this.focusedDate=this.selectedDate,this._close();}_preventDefault(e){e.preventDefault();}__toggleDate(e){L$1(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e);}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation());}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today");}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel");}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&L$1(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return Ue(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{qo(this,()=>{Oi(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(Qo(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,o=this.maxDate,r=this.isDateDisabled){return le(e,i,o,r)}_isTodayAllowed(e,i,o){return this._dateAllowed(this._getTodayMidnight(),e,i,o)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
9593
+ */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}};/**
9594
9594
  * @license
9595
9595
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9596
9596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9597
- */const Sd=_$1`
9597
+ */const Td=_$1`
9598
9598
  :host {
9599
9599
  display: flex;
9600
9600
  flex-direction: column;
@@ -9658,7 +9658,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9658
9658
  * @license
9659
9659
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9660
9660
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9661
- */m$1("vaadin-date-picker-overlay-content",Sd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Td extends kd(Z$1(I$1(Q$1(k$1)))){static get template(){return P`
9661
+ */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`
9662
9662
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
9663
9663
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
9664
9664
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -9678,23 +9678,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9678
9678
  <slot name="today-button"></slot>
9679
9679
  <slot name="cancel-button"></slot>
9680
9680
  </div>
9681
- `}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}y$1(Td);/**
9681
+ `}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}y$1(Id);/**
9682
9682
  * @license
9683
9683
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9684
9684
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9685
- */const zt=new WeakMap;function Id(s){return zt.has(s)||zt.set(s,new Set),zt.get(s)}function Dd(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const nr=v$1(s=>class extends s{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=Id(e);this.slotStyles.forEach(o=>{i.has(o)||(Dd(o,e),i.add(o));});}});/**
9685
+ */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));});}});/**
9686
9686
  * @license
9687
9687
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9688
9688
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9689
- */const Od=s=>class extends He(Re(s)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),Zt||this.inputElement.focus();}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}));}};/**
9689
+ */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}));}};/**
9690
9690
  * @license
9691
9691
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9692
9692
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9693
- */const Ni=v$1(s=>class extends zo(Pi(He(s))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const o=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o;}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}));}__isValidConstraint(e){return !!e||e===0}});/**
9693
+ */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}});/**
9694
9694
  * @license
9695
9695
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9696
9696
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9697
- */const Fi=s=>class extends nr(Ci(Ni(ki(Od(Re(s)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
9697
+ */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 [`
9698
9698
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
9699
9699
  font: inherit;
9700
9700
  color: inherit;
@@ -9703,7 +9703,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9703
9703
  * @license
9704
9704
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9705
9705
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9706
- */const Md=_$1`
9706
+ */const zd=_$1`
9707
9707
  [part='clear-button'] {
9708
9708
  display: none;
9709
9709
  cursor: default;
@@ -9720,7 +9720,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9720
9720
  * @license
9721
9721
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9722
9722
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9723
- */const zd=_$1`
9723
+ */const Nd=_$1`
9724
9724
  :host {
9725
9725
  display: inline-flex;
9726
9726
  outline: none;
@@ -9758,7 +9758,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9758
9758
  * @license
9759
9759
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9760
9760
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9761
- */const Nd=_$1`
9761
+ */const Fd=_$1`
9762
9762
  [class$='container'] {
9763
9763
  display: flex;
9764
9764
  flex-direction: column;
@@ -9770,23 +9770,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9770
9770
  * @license
9771
9771
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
9772
9772
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9773
- */const Li=[zd,Nd,Md];/**
9773
+ */const Vi=[Nd,Fd,zd];/**
9774
9774
  * @license
9775
9775
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
9776
9776
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9777
- */const ar=s=>class extends s{static get properties(){return {overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return ["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:o}=i;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&o.remove(...n);}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&o.add(...r),this.__previousClasses=r;}};/**
9777
+ */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;}};/**
9778
9778
  * @license
9779
9779
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9780
9780
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9781
- */class lr{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1);}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0));}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none");}}/**
9781
+ */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");}}/**
9782
9782
  * @license
9783
9783
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9784
9784
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9785
- */const Fd=s=>class extends ar(Z$1(Ci(Ni(Re(s))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let r,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?xe(this.referenceDate):new Date;a=Zl(l,a,n,r);}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return {day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Yo},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return ["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return [...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this);}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1;}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return !this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ct$1()&&e.target.blur();}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate());}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new rr(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new lr(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront());}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.$.overlay.close();}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close();}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close();}),i.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value;}),i.addEventListener("click",o=>o.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=xe(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Di(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||le(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&o&&r}_shouldSetFocus(e){return !this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive;}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e;}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange();}_close(){this._focus(),this.close();}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront();});}_isNoInput(e,i,o,r,n,a){return !e||i&&(!a||n)||o&&n||!r.parseDate}_formatISO(e){return td(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate));}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e);}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1);}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e);}_valueChanged(e,i){const o=xe(e);if(e&&!o){this.value=i;return}e?L$1(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,o,r,n,a,l,d,h){e&&(e.i18n=i,e.label=o,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=h);}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"));}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i);}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1;}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=jo(n);}_getInitialPosition(){const e=xe(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||le(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?Qo(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1);}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1;}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate();}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller();}_focus(){this._noInput||this.inputElement.focus();}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length);}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):"";}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i);}_onChange(e){e.stopPropagation();}_onClick(e){this._isClearButton(e)||this._onHostClick(e);}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open());}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null);}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate();}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate);}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,L$1(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return xe(e)}};/**
9785
+ */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)}};/**
9786
9786
  * @license
9787
9787
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9788
9788
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9789
- */const Ld=_$1`
9789
+ */const Vd=_$1`
9790
9790
  :host([opened]) {
9791
9791
  pointer-events: auto;
9792
9792
  }
@@ -9803,7 +9803,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9803
9803
  * @license
9804
9804
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9805
9805
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9806
- */m$1("vaadin-date-picker",[Li,Ld],{moduleId:"vaadin-date-picker-styles"});class Vd extends Fd(Fi(I$1(ce(k$1)))){static get is(){return "vaadin-date-picker"}static get template(){return P`
9806
+ */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`
9807
9807
  <div class="vaadin-date-picker-container">
9808
9808
  <div part="label">
9809
9809
  <slot name="label"></slot>
@@ -9845,7 +9845,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9845
9845
  ></vaadin-date-picker-overlay>
9846
9846
 
9847
9847
  <slot name="tooltip"></slot>
9848
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new pt$1(this.inputElement,this._labelController)),this._tooltipController=new ue(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this));}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault();}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open();}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0;}}y$1(Vd);/**
9848
+ `}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);/**
9849
9849
  * @license
9850
9850
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9851
9851
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9853,15 +9853,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9853
9853
  * @license
9854
9854
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9855
9855
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9856
- */const Bd=s=>class extends Fi(s){static get properties(){return {autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e;}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value));}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_onInput(e){super._onInput(e),this.invalid&&this.validate();}_valueChanged(e,i){super._valueChanged(e,i),i!==void 0&&this.invalid&&this.validate();}};/**
9856
+ */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();}};/**
9857
9857
  * @license
9858
9858
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9859
9859
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9860
- */const Rd=s=>class extends Bd(s){static get properties(){return {maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return [...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text");}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new pt$1(this.inputElement,this._labelController));}};/**
9860
+ */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));}};/**
9861
9861
  * @license
9862
9862
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9863
9863
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9864
- */m$1("vaadin-text-field",Li,{moduleId:"vaadin-text-field-styles"});class dr extends Rd(I$1(ce(k$1))){static get is(){return "vaadin-text-field"}static get template(){return P`
9864
+ */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`
9865
9865
  <div class="vaadin-field-container">
9866
9866
  <div part="label">
9867
9867
  <slot name="label"></slot>
@@ -9890,11 +9890,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9890
9890
  </div>
9891
9891
  </div>
9892
9892
  <slot name="tooltip"></slot>
9893
- `}static get properties(){return {maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ue(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}y$1(dr);/**
9893
+ `}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);/**
9894
9894
  * @license
9895
9895
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9896
9896
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9897
- */const Hd=_$1`
9897
+ */const $d=_$1`
9898
9898
  :host {
9899
9899
  position: absolute;
9900
9900
  right: 0;
@@ -9907,11 +9907,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9907
9907
  background: transparent;
9908
9908
  outline: none;
9909
9909
  }
9910
- `;m$1("vaadin-password-field-button",[Bo,Hd],{moduleId:"lumo-password-field-button"});/**
9910
+ `;m$1("vaadin-password-field-button",[Ro,$d],{moduleId:"lumo-password-field-button"});/**
9911
9911
  * @license
9912
9912
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9913
9913
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9914
- */const $d=_$1`
9914
+ */const Ud=_$1`
9915
9915
  [part='reveal-button']::before {
9916
9916
  content: var(--lumo-icons-eye);
9917
9917
  }
@@ -9929,15 +9929,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9929
9929
  [part='reveal-button'][hidden] {
9930
9930
  display: none !important;
9931
9931
  }
9932
- `;m$1("vaadin-password-field",[$e,$d],{moduleId:"lumo-password-field"});/**
9932
+ `;m$1("vaadin-password-field",[$e,Ud],{moduleId:"lumo-password-field"});/**
9933
9933
  * @license
9934
9934
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9935
9935
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9936
- */m$1("vaadin-password-field-button",Xo,{moduleId:"vaadin-password-field-button-styles"});class Ud extends Jo(Q$1(I$1(k$1))){static get is(){return "vaadin-password-field-button"}static get template(){return P``}}y$1(Ud);/**
9936
+ */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);/**
9937
9937
  * @license
9938
9938
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9939
9939
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9940
- */const qd=s=>class extends nr(pe(_e(He(s)))){static get properties(){return {revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return ["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange="";}get slotStyles(){const e=this.localName;return [...super.slotStyles,`
9940
+ */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,`
9941
9941
  ${e} [slot="input"]::-ms-reveal {
9942
9942
  display: none;
9943
9943
  }
@@ -9945,11 +9945,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9945
9945
  * @license
9946
9946
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9947
9947
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9948
- */const Yd=P`
9948
+ */const jd=P`
9949
9949
  <div part="reveal-button" slot="suffix">
9950
9950
  <slot name="reveal"></slot>
9951
9951
  </div>
9952
- `;let Ke;class jd extends qd(dr){static get is(){return "vaadin-password-field"}static get template(){if(!Ke){Ke=super.template.cloneNode(!0);const t=Yd.content.querySelector('[part="reveal-button"]');Ke.content.querySelector('[part="input-field"]').appendChild(t);}return Ke}}y$1(jd);const hr=_$1`
9952
+ `;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`
9953
9953
  :host {
9954
9954
  display: flex;
9955
9955
  align-items: center;
@@ -10033,7 +10033,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10033
10033
  width: var(--lumo-icon-size-m);
10034
10034
  height: var(--lumo-icon-size-m);
10035
10035
  }
10036
- `;m$1("vaadin-item",hr,{moduleId:"lumo-item"});const Wd=_$1`
10036
+ `;m$1("vaadin-item",cr,{moduleId:"lumo-item"});const Gd=_$1`
10037
10037
  :host {
10038
10038
  transition: background-color 100ms;
10039
10039
  overflow: hidden;
@@ -10045,11 +10045,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10045
10045
  :host([focused]:not([disabled])) {
10046
10046
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
10047
10047
  }
10048
- `;m$1("vaadin-combo-box-item",[hr,Wd],{moduleId:"lumo-combo-box-item"});/**
10048
+ `;m$1("vaadin-combo-box-item",[cr,Gd],{moduleId:"lumo-combo-box-item"});/**
10049
10049
  * @license
10050
10050
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
10051
10051
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10052
- */const Gd=_$1`
10052
+ */const Kd=_$1`
10053
10053
  [part~='loader'] {
10054
10054
  box-sizing: border-box;
10055
10055
  width: var(--lumo-icon-size-s);
@@ -10091,7 +10091,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10091
10091
  transform: rotate(360deg);
10092
10092
  }
10093
10093
  }
10094
- `,Kd=_$1`
10094
+ `,Xd=_$1`
10095
10095
  [part='content'] {
10096
10096
  padding: 0;
10097
10097
  }
@@ -10112,7 +10112,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10112
10112
  :host([bottom-aligned]) [part~='overlay'] {
10113
10113
  margin-bottom: var(--lumo-space-xs);
10114
10114
  }
10115
- `,Xd=_$1`
10115
+ `,Jd=_$1`
10116
10116
  [part~='loader'] {
10117
10117
  position: absolute;
10118
10118
  z-index: 1;
@@ -10120,24 +10120,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10120
10120
  top: var(--lumo-space-s);
10121
10121
  margin-inline: auto 0;
10122
10122
  }
10123
- `;m$1("vaadin-combo-box-overlay",[Ti,Ii,Kd,Gd,Xd,_$1`
10123
+ `;m$1("vaadin-combo-box-overlay",[Ii,Di,Xd,Kd,Jd,_$1`
10124
10124
  :host {
10125
10125
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
10126
10126
  --_vaadin-combo-box-items-container-border-style: solid;
10127
10127
  }
10128
- `],{moduleId:"lumo-combo-box-overlay"});const Jd=_$1`
10128
+ `],{moduleId:"lumo-combo-box-overlay"});const Qd=_$1`
10129
10129
  [part='toggle-button']::before {
10130
10130
  content: var(--lumo-icons-dropdown);
10131
10131
  }
10132
- `;m$1("vaadin-combo-box",[$e,Jd],{moduleId:"lumo-combo-box"});/**
10132
+ `;m$1("vaadin-combo-box",[$e,Qd],{moduleId:"lumo-combo-box"});/**
10133
10133
  * @license
10134
10134
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10135
10135
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10136
- */const Qd=s=>class extends s{static get properties(){return {index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return ["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return [...super.observedAttributes,"hidden"]}attributeChangedCallback(e,i,o){e==="hidden"&&o!==null?this.index=void 0:super.attributeChangedCallback(e,i,o);}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e);}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e);}__rendererOrItemChanged(e,i,o){o===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()));}__updateLabel(e,i){i||(this.textContent=e);}};/**
10136
+ */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);}};/**
10137
10137
  * @license
10138
10138
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10139
10139
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10140
- */class Zd extends Qd(I$1(Q$1(k$1))){static get template(){return P`
10140
+ */class eh extends Zd(I$1(Q$1(k$1))){static get template(){return P`
10141
10141
  <style>
10142
10142
  :host {
10143
10143
  display: block;
@@ -10151,15 +10151,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10151
10151
  <div part="content">
10152
10152
  <slot></slot>
10153
10153
  </div>
10154
- `}static get is(){return "vaadin-combo-box-item"}}y$1(Zd);/**
10154
+ `}static get is(){return "vaadin-combo-box-item"}}y$1(eh);/**
10155
10155
  * @license
10156
10156
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10157
10157
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10158
- */const eh=s=>class extends Ko(s){static get observers(){return ["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200;}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i);}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return !i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!wi(e.composedPath()[0])&&e.preventDefault();}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);i===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i);}_setOverlayWidth(e,i){e&&i&&(this._updateOverlayWidth(),this._updatePosition());}};/**
10158
+ */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());}};/**
10159
10159
  * @license
10160
10160
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10161
10161
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10162
- */const th=_$1`
10162
+ */const ih=_$1`
10163
10163
  #overlay {
10164
10164
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
10165
10165
  }
@@ -10169,13 +10169,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10169
10169
  flex-direction: column;
10170
10170
  height: 100%;
10171
10171
  }
10172
- `;m$1("vaadin-combo-box-overlay",[Ho,th],{moduleId:"vaadin-combo-box-overlay-styles"});class ih extends eh(Go(Q$1(I$1(k$1)))){static get is(){return "vaadin-combo-box-overlay"}static get template(){return P`
10172
+ `;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`
10173
10173
  <div id="backdrop" part="backdrop" hidden></div>
10174
10174
  <div part="overlay" id="overlay">
10175
10175
  <div part="loader"></div>
10176
10176
  <div part="content" id="content"><slot></slot></div>
10177
10177
  </div>
10178
- `}}y$1(ih);/**
10178
+ `}}y$1(sh);/**
10179
10179
  * @license
10180
10180
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
10181
10181
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10187,11 +10187,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10187
10187
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
10188
10188
  * Code distributed by Google as part of the polymer project is also
10189
10189
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10190
- */const Ps=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),sh=Ps&&Ps[1]>=8,ks=3,oh={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s;}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=s;}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update();}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),st$1);}},_getReusables(s){let t,e,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,u=this._scrollBottom;for(s?(t=this._physicalStart,e=c-d):(t=this._physicalEnd,e=h-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(o.length>=l||e<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=c-this._scrollOffset)break;o.push(t),d+=i,t=(t+1)%l;}else {if(n-o.length<=0||d+this._physicalSize-i<=u)break;o.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:o,physicalTop:d-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e);}this._positionItems(),this._updateScrollerSize();}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,ks,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,i=Math.round(this._physicalCount*.5);}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),wo):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),st$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(ks));},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Fe));},_iterateItems(s,t){let e,i,o,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(o=s.call(this,e,i))!=null)return o}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((o=s.call(this,e,i))!=null)return o;for(e=0;e<this._physicalStart;e++,i++)if((o=s.call(this,e,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!sh&&t>0&&this._resetScrollPosition(t-s);}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop);},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t);},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(Ae(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;e<s&&i<=o;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null;},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0;},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1);},Fe);},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return (this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=O.debounce(this._debouncers[s],e,t.bind(this)),Co(this._debouncers[s]);}};/**
10190
+ */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]);}};/**
10191
10191
  * @license
10192
10192
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10193
10193
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10194
- */const rh=1e5,Nt$1=1e3;class cr{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d;}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}));}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0;}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements();}));}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<Nt$1?(i=t,this._vidxOffset=0):(i=Nt$1,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t);}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Ae(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush());}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=t&&o.__virtualIndex<=e&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o));}),this.__afterElementsUpdated(i);}_updateMetrics(t){Ae();let e=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0;},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const o=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+o+r+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e);}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=O.debounce(this.__placeholderClearDebouncer,Fe,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length);}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex);}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Ae(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const o=this.__getIndexScrollOffset(e);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Ae(),this._debounce("_update",this._update,st$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,rh)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return {items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics();}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r));},t),this.__afterElementsUpdated(e);}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0;}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,o){o.style.transform=`translateY(${e})`;}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,o)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush());}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler());}t&&(this.__fixInvalidItemPositioningDebouncer=O.debounce(this.__fixInvalidItemPositioningDebouncer,G$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=O.debounce(this.__scrollReorderDebouncer,G$1.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0);}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!o){const r=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n;}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=O.debounce(this.__debouncerWheelAnimationFrame,Fe,()=>{this._wheelAnimationFrame=!1;});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=O.debounce(this._debouncerIgnoreNewWheel,G$1.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1;})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i;}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return !1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return !0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)));}else super._increasePoolIfNeeded(t);}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const o=i.__virtualIndex-t,r=e.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(e[n]);else if(r<0)for(let n=e.length+r;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(Ll){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n;});}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e);}else {const i=this._vidxOffset,o=Nt$1,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(cr.prototype,oh);class nh{constructor(t){this.__adapter=new cr(t);}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t;}scrollToIndex(t){this.__adapter.scrollToIndex(t);}update(t=0,e=this.size-1){this.__adapter.update(t,e);}flush(){this.__adapter.flush();}}/**
10194
+ */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();}}/**
10195
10195
  * @license
10196
10196
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10197
10197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10199,11 +10199,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10199
10199
  * @license
10200
10200
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10201
10201
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10202
- */const ah=s=>class extends s{static get properties(){return {items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this);}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,o)=>i+o);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${mi()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling();}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update());}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l);}_isItemSelected(e,i,o){return e instanceof de?!1:o&&e!==void 0&&i!==void 0?nt$1(o,e)===nt$1(o,i):e===i}__initVirtualizer(){this.__virtualizer=new nh({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0});}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate();}__loadingChanged(){this.requestContentUpdate();}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate());}__selectedItemChanged(){this.requestContentUpdate();}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate();}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e);}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate();}__createElements(e){return [...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const o=this.items[i],r=this.focusedIndex,n=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:i,label:this.getItemLabel(o),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof de&&this.__requestItemByIndex(i);}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}));}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault();});}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}));});}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
10202
+ */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}};/**
10203
10203
  * @license
10204
10204
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10205
10205
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10206
- */class lh extends ah(k$1){static get is(){return "vaadin-combo-box-scroller"}static get template(){return P`
10206
+ */class dh extends lh(k$1){static get is(){return "vaadin-combo-box-scroller"}static get template(){return P`
10207
10207
  <style>
10208
10208
  :host {
10209
10209
  display: block;
@@ -10230,39 +10230,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10230
10230
  <div id="selector">
10231
10231
  <slot></slot>
10232
10232
  </div>
10233
- `}}y$1(lh);/**
10233
+ `}}y$1(dh);/**
10234
10234
  * @license
10235
10235
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10236
10236
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10237
- */const dh=s=>class extends Ni(s){static get properties(){return {pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"pattern"]}static get constraints(){return [...super.constraints,"pattern"]}};/**
10237
+ */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"]}};/**
10238
10238
  * @license
10239
10239
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10240
10240
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10241
- */function at$1(s,t,e=0){let i=t;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return at$1(o,i-r-1,e+1);i-=o.flatSize;}return {cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:e}}function ur({getItemId:s},t,e,i=0,o=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&s(n)===s(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:o+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=o+t.getFlatIndex(r.parentCacheIndex),a=ur({getItemId:s},r,e,i+1,n+1);if(a)return a}}function pr(s,[t,...e],i=0){t===1/0&&(t=s.size-1);const o=s.getFlatIndex(t),r=s.getSubCache(t);return r&&r.flatSize>0&&e.length?pr(r,e,i+o+1):i+o}/**
10241
+ */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}/**
10242
10242
  * @license
10243
10243
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10244
10244
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10245
- */class Vi{constructor(t,e,i,o,r){C$1(this,"context");C$1(this,"pageSize");C$1(this,"items",[]);C$1(this,"pendingRequests",{});C$1(this,"__subCacheByIndex",{});C$1(this,"__size",0);C$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0;}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(t=>t.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var i;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let o=0;o<t;o++)(i=this.items)[o]||(i[o]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o];});}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0;}setPage(t,e){const i=t*this.pageSize;e.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new Vi(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return e>r?i+o.flatSize:i},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=at$1(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=at$1(this,t);return {cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize();}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0);}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
10245
+ */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}}/**
10246
10246
  * @license
10247
10247
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10248
10248
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10249
- */class hh extends EventTarget{constructor(e,{size:i,pageSize:o,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super();C$1(this,"host");C$1(this,"dataProvider");C$1(this,"dataProviderParams");C$1(this,"pageSize");C$1(this,"isExpanded");C$1(this,"getItemId");C$1(this,"rootCache");C$1(this,"placeholder");C$1(this,"isPlaceholder");this.host=e,this.pageSize=o,this.getItemId=n,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=h,this.rootCache=this.__createRootCache(i);}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return {isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache();}setDataProvider(e){this.dataProvider=e,this.clearCache();}recalculateFlatSize(){this.rootCache.recalculateFlatSize();}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size);}getFlatIndexContext(e){return at$1(this.rootCache,e)}getItemContext(e){return ur({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return pr(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,o);}ensureFlatIndexHierarchy(e){const{cache:i,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new Vi(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let o={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=me(me({},o),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")));};e.pendingRequests[i]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
10249
+ */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}}/**
10250
10250
  * @license
10251
10251
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10252
10252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10253
- */const ch=s=>class extends s{static get properties(){return {pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return ["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new hh(this,{placeholder:new de,isPlaceholder:e=>e instanceof de,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this));}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const i=e.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i);}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState();}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1);}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0));}__onDataProviderPageRequested(){this.loading=!0;}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue();}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0);}_sizeChanged(e){const{rootCache:i}=this.__dataProviderController;i.size!==e&&(i.size=e,i.items=[...i.items],this.__synchronizeControllerState());}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:i}=this.__dataProviderController;i.items!==e&&(i.items=e,this.__synchronizeControllerState());}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading();}}_pageSizeChanged(e,i){if(Math.floor(e)!==e||e<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache();}_dataProviderChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i;}),this.__dataProviderController.setDataProvider(e),this.clearCache();}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,i){if(e&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const o=this.__getItemIndexByValue(this.filteredItems,i);(o<0||!this._getItemLabel(this.filteredItems[o]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`");}}};/**
10253
+ */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`");}}};/**
10254
10254
  * @license
10255
10255
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10256
10256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10257
- */function uh(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
10257
+ */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.`);}/**
10258
10258
  * @license
10259
10259
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10260
10260
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10261
- */function Ss(s){return s!=null}function Ts(s,t){return s.findIndex(e=>e instanceof de?!1:t(e))}const ph=s=>class extends ar(Z$1(Pi(_e(Re(He(pe(s))))))){static get properties(){return {opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return ["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this);}get _tagNamePrefix(){return "vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown));}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront();});};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),uh(this),this.addController(new lr(this));}disconnectedCallback(){super.disconnectedCallback(),this.close();}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate();}));}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.opened=!1;}_propertiesChanged(e,i,o){super._propertiesChanged(e,i,o),i.filter!==void 0&&this._filterChanged(i.filter);}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter);}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value;}),this._overlayElement=e;}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(i);},o.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,o,r,n,a,l,d,h,c){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?i:[],opened:o,loading:r,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate();}catch(u){}}_openedOrItemsChanged(e,i,o,r){this._overlayOpened=e&&(r||o||!!(i&&i.length));}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})));}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e);}_isInputFocused(){return this.inputElement&&Do(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const o=this._getItemElements().find(r=>r.index===e);o?i.setAttribute("aria-activedescendant",o.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!Zt&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"));}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1;}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate();}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open();}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open());}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e);}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault());}_getItemLabel(e){let i=e&&this.itemLabelPath?nt$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?nt$1(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel());}else this.open();}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else {const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1);}this._prefillFocusedItemLabel();}else this.open();}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange();}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i);}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length);}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e);}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close();}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit();}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{Zt&&!this._isInputFocused()&&document.activeElement.blur();}));}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange();}_clearFilter(){this.filter="";}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit();}_onOpened(){this._lastCommittedValue=this.value;}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue();}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1;}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else {const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o);}else !this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue();}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter();}_onInput(e){const i=this._inputElementValue,o={};this.filter===i?this._filterChanged(this.filter):o.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o);}_onChange(e){e.stopPropagation();}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string");}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems);}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange();}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem);}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else {const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e);}}_valueChanged(e,i){e===""&&i===void 0||(Ss(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0);}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value);}_itemsChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i;}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null);}_filteredItemsChanged(e){this._setDropdownItems(e);}_filterItems(e,i){return e&&e.filter(r=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const o=i?i[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter);}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e);}__getItemIndexByValue(e,i){return !e||!Ss(i)?-1:Ts(e,o=>this._getItemValue(o)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:Ts(e,o=>this._getItemLabel(o).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof de)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close());}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(ct$1()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue();}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction());}};/**
10261
+ */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());}};/**
10262
10262
  * @license
10263
10263
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10264
10264
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10265
- */m$1("vaadin-combo-box",Li,{moduleId:"vaadin-combo-box-styles"});class _h extends ch(ph(dh(Fi(I$1(ce(k$1)))))){static get is(){return "vaadin-combo-box"}static get template(){return P`
10265
+ */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`
10266
10266
  <style>
10267
10267
  :host([opened]) {
10268
10268
  pointer-events: auto;
@@ -10307,7 +10307,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10307
10307
  ></vaadin-combo-box-overlay>
10308
10308
 
10309
10309
  <slot name="tooltip"></slot>
10310
- `}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ut$1(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new pt$1(this.inputElement,this._labelController)),this._tooltipController=new ue(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton;}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t);}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t);}}y$1(_h);
10310
+ `}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);
10311
10311
 
10312
10312
  const generalInputCss = ":host{display:block;height:100%}";
10313
10313
  const GeneralInputStyle0 = generalInputCss;
@@ -11433,14 +11433,14 @@ const dispatchCustomEvent = (type, data = {}) => {
11433
11433
  document.dispatchEvent(event);
11434
11434
  };
11435
11435
 
11436
- var PlayerConsentsDENip2_x = {};
11436
+ var PlayerConsentsBqVrR8JW = {};
11437
11437
 
11438
- var GeneralAnimationLoadingSk__cGd0 = {};
11438
+ var GeneralAnimationLoadingAcwReDLO = {};
11439
11439
 
11440
- 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;
11440
+ 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;
11441
11441
 
11442
11442
  (function (exports) {
11443
- var mr=Object.defineProperty,pr=Object.defineProperties;var gr=Object.getOwnPropertyDescriptors;var Fe=Object.getOwnPropertySymbols;var fr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable;var Ve=(e,t,r)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t)=>{for(var r in t||(t={}))fr.call(t,r)&&Ve(e,r,t[r]);if(Fe)for(var r of Fe(t))_r.call(t,r)&&Ve(e,r,t[r]);return e},Xe=(e,t)=>pr(e,gr(t));var re=(e,t,r)=>new Promise((n,i)=>{var a=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(a,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=GeneralAnimationLoadingSk__cGd0,F=[];function vr(e,t){return {subscribe:ve(e,t).subscribe}}function ve(e,t=o.noop){let r;const n=new Set;function i(l){if(o.safe_not_equal(e,l)&&(e=l,r)){const d=!F.length;for(const h of n)h[1](),F.push(h,e);if(d){for(let h=0;h<F.length;h+=2)F[h][0](F[h+1]);F.length=0;}}}function a(l){i(l(e));}function s(l,d=o.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,a)||o.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:a,subscribe:s}}function J(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return vr(r,(s,l)=>{let d=!1;const h=[];let c=0,m=o.noop;const p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);a?s(_):m=o.is_function(_)?_:o.noop;},y=i.map((_,g)=>o.subscribe(_,C=>{h[g]=C,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){o.run_all(y),m(),d=!1;}})}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yr=function(t){return Er(t)&&!kr(t)};function Er(e){return !!e&&typeof e=="object"}function kr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Sr(e)}var Cr=typeof Symbol=="function"&&Symbol.for,wr=Cr?Symbol.for("react.element"):60103;function Sr(e){return e.$$typeof===wr}function xr(e){return Array.isArray(e)?[]:{}}function ie(e,t){return t.clone!==!1&&t.isMergeableObject(e)?V(xr(e),e,t):e}function Tr(e,t,r){return e.concat(t).map(function(n){return ie(n,r)})}function Mr(e,t){if(!t.customMerge)return V;var r=t.customMerge(e);return typeof r=="function"?r:V}function Nr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function We(e){return Object.keys(e).concat(Nr(e))}function yt(e,t){try{return t in e}catch(r){return !1}}function Ar(e,t){return yt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Hr(e,t,r){var n={};return r.isMergeableObject(e)&&We(e).forEach(function(i){n[i]=ie(e[i],r);}),We(t).forEach(function(i){Ar(e,i)||(yt(e,i)&&r.isMergeableObject(t[i])?n[i]=Mr(i,r)(e[i],t[i],r):n[i]=ie(t[i],r));}),n}function V(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Tr,r.isMergeableObject=r.isMergeableObject||yr,r.cloneUnlessOtherwiseSpecified=ie;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):Hr(e,t,r):ie(t,r)}V.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return V(n,i,r)},{})};var Pr=V,Br=Pr;const zr=br(Br);/*! *****************************************************************************
11443
+ var fr=Object.defineProperty,_r=Object.defineProperties;var vr=Object.getOwnPropertyDescriptors;var We=Object.getOwnPropertySymbols;var br=Object.prototype.hasOwnProperty,yr=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={}))br.call(t,r)&&Ze(e,r,t[r]);if(We)for(var r of We(t))yr.call(t,r)&&Ze(e,r,t[r]);return e},Je=(e,t)=>_r(e,vr(t));var ne=(e,t,r)=>new Promise((n,i)=>{var a=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(a,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=GeneralAnimationLoadingAcwReDLO,V=[];function Er(e,t){return {subscribe:be(e,t).subscribe}}function be(e,t=o.noop){let r;const n=new Set;function i(l){if(o.safe_not_equal(e,l)&&(e=l,r)){const d=!V.length;for(const h of n)h[1](),V.push(h,e);if(d){for(let h=0;h<V.length;h+=2)V[h][0](V[h+1]);V.length=0;}}}function a(l){i(l(e));}function s(l,d=o.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,a)||o.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:a,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 a=t.length<2;return Er(r,(s,l)=>{let d=!1;const h=[];let c=0,m=o.noop;const p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);a?s(_):m=o.is_function(_)?_:o.noop;},b=i.map((_,g)=>o.subscribe(_,w=>{h[g]=w,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){o.run_all(b),m(),d=!1;}})}function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cr=function(t){return wr(t)&&!Sr(t)};function wr(e){return !!e&&typeof e=="object"}function Sr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Tr(e)}var xr=typeof Symbol=="function"&&Symbol.for,Mr=xr?Symbol.for("react.element"):60103;function Tr(e){return e.$$typeof===Mr}function Nr(e){return Array.isArray(e)?[]:{}}function oe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?X(Nr(e),e,t):e}function Ar(e,t,r){return e.concat(t).map(function(n){return oe(n,r)})}function Hr(e,t){if(!t.customMerge)return X;var r=t.customMerge(e);return typeof r=="function"?r:X}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]=oe(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]=oe(t[i],r));}),n}function X(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ar,r.isMergeableObject=r.isMergeableObject||Cr,r.cloneUnlessOtherwiseSpecified=oe;var n=Array.isArray(t),i=Array.isArray(e),a=n===i;return a?n?r.arrayMerge(e,t,r):zr(e,t,r):oe(t,r)}X.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return X(n,i,r)},{})};var Or=X,Ir=Or;const Lr=kr(Ir);/*! *****************************************************************************
11444
11444
  Copyright (c) Microsoft Corporation.
11445
11445
 
11446
11446
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11453,12 +11453,12 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11453
11453
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11454
11454
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
11455
11455
  PERFORMANCE OF THIS SOFTWARE.
11456
- ***************************************************************************** */var Ae=function(e,t){return Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},Ae(e,t)};function be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ae(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var N=function(){return N=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);}return t},N.apply(this,arguments)};function Or(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function we(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||t)}function Se(e,t){var r=t&&t.cache?t.cache:qr,n=t&&t.serializer?t.serializer:Ur,i=t&&t.strategy?t.strategy:jr;return i(e,{cache:r,serializer:n})}function Ir(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Lr(e,t,r,n){var i=Ir(n)?n:r(n),a=t.get(i);return typeof a=="undefined"&&(a=e.call(this,n),t.set(i,a)),a}function Et(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a=="undefined"&&(a=e.apply(this,n),t.set(i,a)),a}function kt(e,t,r,n,i){return r.bind(t,e,n,i)}function jr(e,t){var r=e.length===1?Lr:Et;return kt(e,this,r,t.cache.create(),t.serializer)}function Rr(e,t){return kt(e,this,Et,t.cache.create(),t.serializer)}var Ur=function(){return JSON.stringify(arguments)},Dr=function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e}(),qr={create:function(){return new Dr}},xe={variadic:Rr},T;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(T||(T={}));var 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 X;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(X||(X={}));function Ze(e){return e.type===H.literal}function Gr(e){return e.type===H.argument}function Ct(e){return e.type===H.number}function wt(e){return e.type===H.date}function St(e){return e.type===H.time}function xt(e){return e.type===H.select}function Tt(e){return e.type===H.plural}function Fr(e){return e.type===H.pound}function Mt(e){return e.type===H.tag}function Nt(e){return !!(e&&typeof e=="object"&&e.type===X.number)}function He(e){return !!(e&&typeof e=="object"&&e.type===X.dateTime)}var At=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Vr=/(?:[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 Xr(e){var t={};return e.replace(Vr,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var Wr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Zr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Wr).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var a=i[n],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],d=s.slice(1),h=0,c=d;h<c.length;h++){var m=c[h];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:d});}return r}function Jr(e){return e.replace(/^(.*?)-/,"")}var Je=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ht=/^(@+)?(\+|#+)?[rs]?$/g,Qr=/(\*)(0+)|(#+)(0+)|(0+)/g,Pt=/^(0+)$/;function Qe(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ht,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 Bt(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function Yr(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Pt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function Ye(e){var t={},r=Bt(e);return r||t}function Kr(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Jr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return N(N({},d),Ye(h))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return N(N({},d),Ye(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Qr,function(d,h,c,m,p,y){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Pt.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Je.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Je,function(d,h,c,m,p,y){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&y?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+y.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var a=i.options[0];a==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=N(N({},t),Qe(a)));continue}if(Ht.test(i.stem)){t=N(N({},t),Qe(i.stem));continue}var s=Bt(i.stem);s&&(t=N(N({},t),s));var l=Yr(i.stem);l&&(t=N(N({},t),l));}return t}var me={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function $r(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(a&1),l=a<2?1:3+(a>>1),d="a",h=en(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)r+=d;for(;s-- >0;)r=h+r;}else i==="J"?r+="H":r+=i;}return r}function en(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=me[n||""]||me[r||""]||me["".concat(r,"-001")]||me["001"];return i[0]}var Te,tn=new RegExp("^".concat(At.source,"*")),rn=new RegExp("".concat(At.source,"*$"));function M(e,t){return {start:e,end:t}}var nn=!!String.prototype.startsWith&&"_a".startsWith("a",1),on=!!String.fromCodePoint,an=!!Object.fromEntries,sn=!!String.prototype.codePointAt,ln=!!String.prototype.trimStart,cn=!!String.prototype.trimEnd,un=!!Number.isSafeInteger,hn=un?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pe=!0;try{var dn=Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pe=((Te=dn.exec("a"))===null||Te===void 0?void 0:Te[0])==="a";}catch(e){Pe=!1;}var Ke=nn?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Be=on?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},$e=an?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var a=i[n],s=a[0],l=a[1];r[s]=l;}return r},zt=sn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},mn=ln?function(t){return t.trimStart()}:function(t){return t.replace(tn,"")},pn=cn?function(t){return t.trimEnd()}:function(t){return t.replace(rn,"")};function Ot(e,t){return new RegExp(e,t)}var ze;if(Pe){var et=Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ze=function(t,r){var n;et.lastIndex=r;var i=et.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else ze=function(t,r){for(var n=[];;){var i=zt(t,r);if(i===void 0||It(i)||vn(i))break;n.push(i),r+=i>=65536?2:1;}return Be.apply(void 0,n)};var gn=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 a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:H.pound,location:M(l,this.clonePosition())});}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(T.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Oe(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:H.literal,value:"<".concat(i,"/>"),location:M(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Oe(this.char()))return this.error(T.INVALID_TAG,M(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(T.UNMATCHED_CLOSING_TAG,M(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:i,children:s,location:M(n,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,M(l,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,M(n,this.clonePosition()))}else return this.error(T.INVALID_TAG,M(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&_n(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=M(n,this.clonePosition());return {val:{type:H.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!fn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return Be.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Be(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,M(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(T.MALFORMED_ARGUMENT,M(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:i,location:M(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(T.MALFORMED_ARGUMENT,M(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ze(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=M(t,a);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,M(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=pn(m.val);if(p.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));var y=M(c,this.clonePosition());h={style:p,styleLocation:y};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=M(i,this.clonePosition());if(h&&Ke(h==null?void 0:h.style,"::",0)){var C=mn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(C,h.styleLocation);return m.err?m:{val:{type:H.number,value:n,location:g,style:m.val},err:null}}else {if(C.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,g);var v=C;this.locale&&(v=$r(C,this.locale));var p={type:X.dateTime,pattern:v,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Xr(v):{}},b=l==="date"?H.date:H.time;return {val:{type:b,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:(a=h==null?void 0:h.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,M(w,N({},w)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),k=0;if(l!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),A=this.parseIdentifierIfPossible(),k=m.val;}var P=this.tryParsePluralOrSelectOptions(t,l,r,A);if(P.err)return P;var _=this.tryParseArgumentClose(i);if(_.err)return _;var B=M(i,this.clonePosition());return l==="select"?{val:{type:H.select,value:n,options:$e(P.val),location:B},err:null}:{val:{type:H.plural,value:n,options:$e(P.val),offset:k,pluralType:l==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,M(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,M(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Zr(t);}catch(i){return this.error(T.INVALID_NUMBER_SKELETON,r)}return {val:{type:X.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Kr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,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=M(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,M(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(y);if(g.err)return g;l.push([h,{value:_.val,location:M(y,this.clonePosition())}]),d.add(h),this.bumpSpace(),a=this.parseIdentifierIfPossible(),h=a.value,c=a.location;}return l.length===0?this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,M(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(T.MISSING_OTHER_CLAUSE,M(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)a=!0,s=s*10+(l-48),this.bump();else break}var d=M(i,this.clonePosition());return a?(s*=n,hn(s)?{val:s,err:null}:this.error(r,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=zt(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(Ke(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&It(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Oe(e){return e>=97&&e<=122||e>=65&&e<=90}function fn(e){return Oe(e)||e===47}function _n(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function It(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function vn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ie(e){e.forEach(function(t){if(delete t.location,xt(t)||Tt(t))for(var r in t.options)delete t.options[r].location,Ie(t.options[r].value);else Ct(t)&&Nt(t.style)||(wt(t)||St(t))&&He(t.style)?delete t.style.location:Mt(t)&&Ie(t.children);});}function bn(e,t){t===void 0&&(t={}),t=N({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new gn(e,t).parse();if(r.err){var n=SyntaxError(T[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ie(r.val),r.val}var W;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(W||(W={}));var ye=function(e){be(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),tt=function(e){be(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),W.INVALID_VALUE,a)||this}return t}(ye),yn=function(e){be(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),W.INVALID_VALUE,i)||this}return t}(ye),En=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,'"'),W.MISSING_VALUE,n)||this}return t}(ye),L;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(L||(L={}));function kn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==L.literal||r.type!==L.literal?t.push(r):n.value+=r.value,t},[])}function Cn(e){return typeof e=="function"}function pe(e,t,r,n,i,a,s){if(e.length===1&&Ze(e[0]))return [{type:L.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Ze(c)){l.push({type:L.literal,value:c.value});continue}if(Fr(c)){typeof a=="number"&&l.push({type:L.literal,value:r.getNumberFormat(t).format(a)});continue}var m=c.value;if(!(i&&m in i))throw new En(m,s);var p=i[m];if(Gr(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(wt(c)){var y=typeof c.style=="string"?n.date[c.style]:He(c.style)?c.style.parsedOptions:void 0;l.push({type:L.literal,value:r.getDateTimeFormat(t,y).format(p)});continue}if(St(c)){var y=typeof c.style=="string"?n.time[c.style]:He(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:L.literal,value:r.getDateTimeFormat(t,y).format(p)});continue}if(Ct(c)){var y=typeof c.style=="string"?n.number[c.style]:Nt(c.style)?c.style.parsedOptions:void 0;y&&y.scale&&(p=p*(y.scale||1)),l.push({type:L.literal,value:r.getNumberFormat(t,y).format(p)});continue}if(Mt(c)){var _=c.children,g=c.value,C=i[g];if(!Cn(C))throw new yn(g,"function",s);var v=pe(_,t,r,n,i,a),b=C(v.map(function(k){return k.value}));Array.isArray(b)||(b=[b]),l.push.apply(l,b.map(function(k){return {type:typeof k=="string"?L.literal:L.object,value:k}}));}if(xt(c)){var w=c.options[p]||c.options.other;if(!w)throw new tt(c.value,p,Object.keys(c.options),s);l.push.apply(l,pe(w.value,t,r,n,i));continue}if(Tt(c)){var w=c.options["=".concat(p)];if(!w){if(!Intl.PluralRules)throw new ye(`Intl.PluralRules is not available in this environment.
11456
+ ***************************************************************************** */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 ye(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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);}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 Se(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||t)}function xe(e,t){var r=t&&t.cache?t.cache:Fr,n=t&&t.serializer?t.serializer:Gr,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 wt(e,t,r,n){var i=Rr(n)?n:r(n),a=t.get(i);return typeof a=="undefined"&&(a=e.call(this,n),t.set(i,a)),a}function St(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a=="undefined"&&(a=e.apply(this,n),t.set(i,a)),a}function Ue(e,t,r,n,i){return r.bind(t,e,n,i)}function Ur(e,t){var r=e.length===1?wt:St;return Ue(e,this,r,t.cache.create(),t.serializer)}function Dr(e,t){return Ue(e,this,St,t.cache.create(),t.serializer)}function qr(e,t){return Ue(e,this,wt,t.cache.create(),t.serializer)}var Gr=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 Fr={create:function(){return new De}},Me={variadic:Dr,monadic:qr},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 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 Vr(e){return e.type===H.argument}function xt(e){return e.type===H.number}function Mt(e){return e.type===H.date}function Tt(e){return e.type===H.time}function Nt(e){return e.type===H.select}function At(e){return e.type===H.plural}function Xr(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 a=i[n],s=a.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,b){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)throw new Error("We currently do not support maximum integer digits");if(b)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,b){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&b?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+b.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var a=i.options[0];a==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=N(N({},t),$e(a)));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 a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(a&1),l=a<2?1:3+(a>>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 Te,nn=new RegExp("^".concat(Bt.source,"*")),on=new RegExp("".concat(Bt.source,"*$"));function T(e,t){return {start:e,end:t}}var an=!!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=((Te=pn.exec("a"))===null||Te===void 0?void 0:Te[0])==="a";}catch(e){Be=!1;}var tt=an?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,a=0,s;i>a;){if(s=t[a++],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 a=i[n],s=a[0],l=a[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),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-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(on,"")};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)||yn(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 a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:H.pound,location:T(l,this.clonePosition())});}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(M.UNMATCHED_CLOSING_TAG,T(this.clonePosition(),this.clonePosition()))}else if(a===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:T(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ie(this.char()))return this.error(M.INVALID_TAG,T(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(M.UNMATCHED_CLOSING_TAG,T(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:i,children:s,location:T(n,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,T(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,T(n,this.clonePosition()))}else return this.error(M.INVALID_TAG,T(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=T(n,this.clonePosition());return {val:{type:H.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!vn(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,T(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,T(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,T(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:i,location:T(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(M.MALFORMED_ARGUMENT,T(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Oe(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=T(t,a);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,T(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=fn(m.val);if(p.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,T(this.clonePosition(),this.clonePosition()));var b=T(c,this.clonePosition());h={style:p,styleLocation:b};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=T(i,this.clonePosition());if(h&&tt(h==null?void 0:h.style,"::",0)){var w=gn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(w,h.styleLocation);return m.err?m:{val:{type:H.number,value:n,location:g,style:m.val},err:null}}else {if(w.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,g);var v=w;this.locale&&(v=tn(w,this.locale));var p={type:W.dateTime,pattern:v,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(v):{}},y=l==="date"?H.date:H.time;return {val:{type:y,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:(a=h==null?void 0:h.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,T(C,N({},C)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),k=0;if(l!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),A=this.parseIdentifierIfPossible(),k=m.val;}var P=this.tryParsePluralOrSelectOptions(t,l,r,A);if(P.err)return P;var _=this.tryParseArgumentClose(i);if(_.err)return _;var D=T(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:k,pluralType:l==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,T(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,T(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,T(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Qr(t);}catch(i){return this.error(M.INVALID_NUMBER_SKELETON,r)}return {val:{type:W.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?en(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,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=T(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,T(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(b);if(g.err)return g;l.push([h,{value:_.val,location:T(b,this.clonePosition())}]),d.add(h),this.bumpSpace(),a=this.parseIdentifierIfPossible(),h=a.value,c=a.location;}return l.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,T(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)a=!0,s=s*10+(l-48),this.bump();else break}var d=T(i,this.clonePosition());return a?(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 vn(e){return Ie(e)||e===47}function bn(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 yn(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 xt(t)&&Pt(t.style)||(Mt(t)||Tt(t))&&Pe(t.style)?delete t.style.location:Ht(t)&&Le(t.children);});}function En(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(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){ye(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),it=function(e){ye(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Z.INVALID_VALUE,a)||this}return t}(Ee),kn=function(e){ye(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){ye(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Z.MISSING_VALUE,n)||this}return t}(Ee),L;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(L||(L={}));function wn(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 Sn(e){return typeof e=="function"}function ge(e,t,r,n,i,a,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(Xr(c)){typeof a=="number"&&l.push({type:L.literal,value:r.getNumberFormat(t).format(a)});continue}var m=c.value;if(!(i&&m in i))throw new Cn(m,s);var p=i[m];if(Vr(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(Mt(c)){var b=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,b).format(p)});continue}if(Tt(c)){var b=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,b).format(p)});continue}if(xt(c)){var b=typeof c.style=="string"?n.number[c.style]:Pt(c.style)?c.style.parsedOptions:void 0;b&&b.scale&&(p=p*(b.scale||1)),l.push({type:L.literal,value:r.getNumberFormat(t,b).format(p)});continue}if(Ht(c)){var _=c.children,g=c.value,w=i[g];if(!Sn(w))throw new kn(g,"function",s);var v=ge(_,t,r,n,i,a),y=w(v.map(function(k){return k.value}));Array.isArray(y)||(y=[y]),l.push.apply(l,y.map(function(k){return {type:typeof k=="string"?L.literal:L.object,value:k}}));}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 Ee(`Intl.PluralRules is not available in this environment.
11457
11457
  Try polyfilling it using "@formatjs/intl-pluralrules"
11458
- `,W.MISSING_INTL_API,s);var A=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));w=c.options[A]||c.options.other;}if(!w)throw new tt(c.value,p,Object.keys(c.options),s);l.push.apply(l,pe(w.value,t,r,n,i,p-(c.offset||0)));continue}}return kn(l)}function wn(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 Sn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=wn(e[n],t[n]),r},N({},e)):e}function Me(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function xn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Se(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,we([void 0],r,!1)))},{cache:Me(e.number),strategy:xe.variadic}),getDateTimeFormat:Se(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,we([void 0],r,!1)))},{cache:Me(e.dateTime),strategy:xe.variadic}),getPluralRules:Se(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,we([void 0],r,!1)))},{cache:Me(e.pluralRules),strategy:xe.variadic})}}var Tn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=a.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 pe(a.ast,a.locales,a.formatters,a.formats,d,void 0,a.message)},this.resolvedOptions=function(){var d;return {locale:((d=a.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};var l=Or(s,["formatters"]);this.ast=e.__parse(t,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=Sn(e.formats,n),this.formatters=i&&i.formatters||xn(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 Mn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const a=r.slice(i,r.length).join(".");if(a in n){n=n[a];break}}n=n[r[i]];}else n=void 0;return n}const q={},Nn=(e,t,r)=>r&&(t in q||(q[t]={}),e in q[t]||(q[t][e]=r),r),Lt=(e,t)=>{if(t==null)return;if(t in q&&e in q[t])return q[t][e];const r=Ee(t);for(let n=0;n<r.length;n++){const i=r[n],a=Hn(i,e);if(a)return Nn(e,t,a)}};let Re;const ae=ve({});function An(e){return Re[e]||null}function jt(e){return e in Re}function Hn(e,t){if(!jt(e))return null;const r=An(e);return Mn(r,t)}function Pn(e){if(e==null)return;const t=Ee(e);for(let r=0;r<t.length;r++){const n=t[r];if(jt(n))return n}}function Rt(e,...t){delete q[e],ae.update(r=>(r[e]=zr.all([r[e]||{},...t]),r));}J([ae],([e])=>Object.keys(e));ae.subscribe(e=>Re=e);const ge={};function Bn(e,t){ge[e].delete(t),ge[e].size===0&&delete ge[e];}function Ut(e){return ge[e]}function zn(e){return Ee(e).map(t=>{const r=Ut(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Le(e){return e==null?!1:Ee(e).some(t=>{var r;return (r=Ut(t))==null?void 0:r.size})}function On(e,t){return Promise.all(t.map(n=>(Bn(e,n),n().then(i=>i.default||i)))).then(n=>Rt(e,...n))}const ne={};function Dt(e){if(!Le(e))return e in ne?ne[e]:Promise.resolve();const t=zn(e);return ne[e]=Promise.all(t.map(([r,n])=>On(r,n))).then(()=>{if(Le(e))return Dt(e);delete ne[e];}),ne[e]}const In={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Ln={fallbackLocale:null,loadingDelay:200,formats:In,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},jn=Ln;function Z(){return jn}const Ne=ve(!1);var Rn=Object.defineProperty,Un=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,nt=(e,t,r)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fn=(e,t)=>{for(var r in t||(t={}))qn.call(t,r)&&nt(e,r,t[r]);if(rt)for(var r of rt(t))Gn.call(t,r)&&nt(e,r,t[r]);return e},Vn=(e,t)=>Un(e,Dn(t));let je;const fe=ve(null);function it(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ee(e,t=Z().fallbackLocale){const r=it(e);return t?[...new Set([...r,...it(t)])]:r}function G(){return je!=null?je:void 0}fe.subscribe(e=>{je=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const Xn=e=>{if(e&&Pn(e)&&Le(e)){const{loadingDelay:t}=Z();let r;return typeof window!="undefined"&&G()!=null&&t?r=window.setTimeout(()=>Ne.set(!0),t):Ne.set(!0),Dt(e).then(()=>{fe.set(e);}).finally(()=>{clearTimeout(r),Ne.set(!1);})}return fe.set(e)},Q=Vn(Fn({},fe),{set:Xn}),ke=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Wn=Object.defineProperty,_e=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,ot=(e,t,r)=>t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ue=(e,t)=>{for(var r in t||(t={}))qt.call(t,r)&&ot(e,r,t[r]);if(_e)for(var r of _e(t))Gt.call(t,r)&&ot(e,r,t[r]);return e},Y=(e,t)=>{var r={};for(var n in e)qt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_e)for(var n of _e(e))t.indexOf(n)<0&&Gt.call(e,n)&&(r[n]=e[n]);return r};const oe=(e,t)=>{const{formats:r}=Z();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zn=ke(e=>{var t=e,{locale:r,format:n}=t,i=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=oe("number",n)),new Intl.NumberFormat(r,i)}),Jn=ke(e=>{var t=e,{locale:r,format:n}=t,i=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=oe("date",n):Object.keys(i).length===0&&(i=oe("date","short")),new Intl.DateTimeFormat(r,i)}),Qn=ke(e=>{var t=e,{locale:r,format:n}=t,i=Y(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=oe("time",n):Object.keys(i).length===0&&(i=oe("time","short")),new Intl.DateTimeFormat(r,i)}),Yn=(e={})=>{var t=e,{locale:r=G()}=t,n=Y(t,["locale"]);return Zn(Ue({locale:r},n))},Kn=(e={})=>{var t=e,{locale:r=G()}=t,n=Y(t,["locale"]);return Jn(Ue({locale:r},n))},$n=(e={})=>{var t=e,{locale:r=G()}=t,n=Y(t,["locale"]);return Qn(Ue({locale:r},n))},ei=ke((e,t=G())=>new Tn(e,t,Z().formats,{ignoreTag:Z().ignoreTag})),ti=(e,t={})=>{var r,n,i,a;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=G(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Lt(e,d);if(!c)c=(a=(i=(n=(r=Z()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?a:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let m=c;try{m=ei(c,d).format(l);}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message);}return m},ri=(e,t)=>$n(t).format(e),ni=(e,t)=>Kn(t).format(e),ii=(e,t)=>Yn(t).format(e),oi=(e,t=G())=>Lt(e,t),ai=J([Q,ae],()=>ti);J([Q],()=>ri);J([Q],()=>ni);J([Q],()=>ii);J([Q,ae],()=>oi);function at(e,t){Rt(e,t);}function si(e){Q.set(e);}const st={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingSk__cGd0).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function li(e){let t,r;return {c(){t=o.svg_element("svg"),r=o.svg_element("path"),o.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"),o.attr(t,"xmlns","http://www.w3.org/2000/svg"),o.attr(t,"viewBox","0 0 512 512");},m(n,i){o.insert(n,t,i),o.append(t,r);},p:o.noop,i:o.noop,o:o.noop,d(n){n&&o.detach(t);}}}class ci extends o.SvelteComponent{constructor(t){super(),o.init(this,t,null,li,o.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",o.create_custom_element(ci,{},[],[],!0));function ui(e){o.append_styles(e,"svelte-1w14oq2",'.DisplayNone.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:none}.ContainerCenter.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:30px}.AccordionHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:10px}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;padding:10px 0}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{padding-bottom:0}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{margin-bottom:0}.ConsentItem.svelte-1w14oq2 .ConsentName.svelte-1w14oq2.svelte-1w14oq2{margin:0}.ConsentItem.svelte-1w14oq2 .ConsentDescription.svelte-1w14oq2.svelte-1w14oq2{font-size:0.8rem}.ToggleSwitch.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:53px;height:30px}.ToggleSwitch.Big.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2.svelte-1w14oq2{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:disabled+.Slider.svelte-1w14oq2{opacity:0.1}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:focus+.Slider.svelte-1w14oq2{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2: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-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2{border-radius:34px}.ToggleSwitch.svelte-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2:before{border-radius:50%}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1w14oq2 circle-exclamation-icon.svelte-1w14oq2.svelte-1w14oq2{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox.svelte-1w14oq2.svelte-1w14oq2{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1w14oq2.svelte-1w14oq2{position:relative}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__input.svelte-1w14oq2.svelte-1w14oq2{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));width:46px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__label.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1w14oq2.svelte-1w14oq2{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__error-message.svelte-1w14oq2.svelte-1w14oq2{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1w14oq2.svelte-1w14oq2{width:16px;height:auto}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1w14oq2.svelte-1w14oq2{opacity:1}');}function lt(e,t,r){const n=e.slice();return n[64]=t[r],n}function ct(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function ut(e,t,r){const n=e.slice();return n[64]=t[r],n}function hi(e){let t,r,n=o.ensure_array_like(e[9]),i=[];for(let a=0;a<n.length;a+=1)i[a]=ht(lt(e,n,a));return {c(){t=o.element("div"),r=o.element("form");for(let a=0;a<i.length;a+=1)i[a].c();o.attr(r,"class","checkbox svelte-1w14oq2"),o.attr(t,"class","legacyStyle");},m(a,s){o.insert(a,t,s),o.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(a,s){if(s[0]&590336){n=o.ensure_array_like(a[9]);let l;for(l=0;l<n.length;l+=1){const d=lt(a,n,l);i[l]?i[l].p(d,s):(i[l]=ht(d),i[l].c(),i[l].m(r,null));}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length;}},d(a){a&&o.detach(t),o.destroy_each(i,a),e[31](null);}}}function di(e){let t=e[16]("title")||e[16]("description"),r,n,i,a=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&dt(e),p=o.ensure_array_like(e[8]),y=[];for(let g=0;g<p.length;g+=1)y[g]=vt(ct(e,p,g));let _=e[6]&&bt(e);return {c(){m&&m.c(),r=o.space();for(let g=0;g<y.length;g+=1)y[g].c();n=o.space(),i=o.element("button"),l=o.space(),_&&_.c(),d=o.empty(),o.attr(i,"class","SaveConsentsButton svelte-1w14oq2"),i.disabled=s=!e[14];},m(g,C){m&&m.m(g,C),o.insert(g,r,C);for(let v=0;v<y.length;v+=1)y[v]&&y[v].m(g,C);o.insert(g,n,C),o.insert(g,i,C),i.innerHTML=a,o.insert(g,l,C),_&&_.m(g,C),o.insert(g,d,C),h||(c=o.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=dt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),C[0]&867088){p=o.ensure_array_like(g[8]);let v;for(v=0;v<p.length;v+=1){const b=ct(g,p,v);y[v]?y[v].p(b,C):(y[v]=vt(b),y[v].c(),y[v].m(n.parentNode,n));}for(;v<y.length;v+=1)y[v].d(1);y.length=p.length;}C[0]&65536&&a!==(a=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=a),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&&(o.detach(r),o.detach(n),o.detach(i),o.detach(l),o.detach(d)),m&&m.d(g),o.destroy_each(y,g),_&&_.d(g),h=!1,c();}}}function mi(e){let t,r,n;return {c(){t=o.element("div"),r=o.element("strong"),n=o.text(e[7]),o.attr(r,"class","ErrorMessage svelte-1w14oq2"),o.attr(t,"class","ContainerCenter svelte-1w14oq2");},m(i,a){o.insert(i,t,a),o.append(t,r),o.append(r,n);},p(i,a){a[0]&128&&o.set_data(n,i[7]);},d(i){i&&o.detach(t);}}}function pi(e){let t;return {c(){t=o.element("general-animation-loading"),o.set_custom_element_data(t,"clientstyling",e[1]),o.set_custom_element_data(t,"clientstylingurl",e[2]),o.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){o.insert(r,t,n);},p(r,n){n[0]&2&&o.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&o.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&o.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&o.detach(t);}}}function ht(e){let t,r,n,i,a,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,p,y,_,g,C,v,b,w;function A(...k){return e[30](e[64],...k)}return {c(){t=o.element("div"),r=o.element("input"),a=o.space(),s=o.element("label"),l=o.element("div"),d=new o.HtmlTag(!1),m=o.text(c),y=o.space(),_=o.element("small"),C=o.space(),o.attr(r,"class","checkbox__input svelte-1w14oq2"),o.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",o.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,o.attr(l,"class","checkbox__label-text svelte-1w14oq2"),o.attr(s,"class","checkbox__label svelte-1w14oq2"),o.attr(s,"for",p=`${e[64].tagCode}__input`),o.attr(_,"class","checkbox__error-message svelte-1w14oq2"),o.attr(_,"id",g="checkBoxError__"+e[64].tagCode),o.attr(t,"class",v="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2");},m(k,P){o.insert(k,t,P),o.append(t,r),o.append(t,a),o.append(t,s),o.append(s,l),d.m(h,l),o.append(l,m),o.append(t,y),o.append(t,_),o.append(t,C),b||(w=o.listen(r,"input",A),b=!0);},p(k,P){e=k,P[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),P[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&o.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?" *":"")&&o.set_data(m,c),P[0]&512&&p!==(p=`${e[64].tagCode}__input`)&&o.attr(s,"for",p),P[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&o.attr(_,"id",g),P[0]&512&&v!==(v="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2")&&o.attr(t,"class",v);},d(k){k&&o.detach(t),b=!1,w();}}}function dt(e){let t,r=e[16]("title"),n,i=e[16]("description"),a=r&&mt(e),s=i&&pt(e);return {c(){t=o.element("div"),a&&a.c(),n=o.space(),s&&s.c(),o.attr(t,"class","PlayerConsentsHeader svelte-1w14oq2");},m(l,d){o.insert(l,t,d),a&&a.m(t,null),o.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?a?a.p(l,d):(a=mt(l),a.c(),a.m(t,n)):a&&(a.d(1),a=null),d[0]&65536&&(i=l[16]("description")),i?s?s.p(l,d):(s=pt(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null);},d(l){l&&o.detach(t),a&&a.d(),s&&s.d();}}}function mt(e){let t,r=e[16]("title")+"",n;return {c(){t=o.element("h2"),n=o.text(r),o.attr(t,"class","PlayerConsentsTitle");},m(i,a){o.insert(i,t,a),o.append(t,n);},p(i,a){a[0]&65536&&r!==(r=i[16]("title")+"")&&o.set_data(n,r);},d(i){i&&o.detach(t);}}}function pt(e){let t,r=e[16]("description")+"",n;return {c(){t=o.element("p"),n=o.text(r),o.attr(t,"class","PlayerConsentsDescription");},m(i,a){o.insert(i,t,a),o.append(t,n);},p(i,a){a[0]&65536&&r!==(r=i[16]("description")+"")&&o.set_data(n,r);},d(i){i&&o.detach(t);}}}function gt(e){let t;return {c(){t=o.element("sup"),t.textContent="*",o.attr(t,"class","ConsentRequired svelte-1w14oq2");},m(r,n){o.insert(r,t,n);},d(r){r&&o.detach(t);}}}function ft(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=o.element("p"),o.attr(t,"class","ConsentDescription svelte-1w14oq2");},m(n,i){o.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&&o.detach(t);}}}function _t(e){let t,r,n,i,a=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,p,y,_,g,C,v=e[64].mustAccept===!0&&gt(),b=e[4]==="true"&&ft(e);function w(...A){return e[29](e[64],...A)}return {c(){t=o.element("div"),r=o.element("div"),n=o.element("h4"),i=new o.HtmlTag(!1),s=o.space(),v&&v.c(),l=o.space(),b&&b.c(),d=o.space(),h=o.element("label"),c=o.element("input"),y=o.space(),_=o.element("span"),i.a=s,o.attr(n,"class","ConsentName svelte-1w14oq2"),o.attr(r,"class","ConsentContent"),o.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],o.attr(c,"class","svelte-1w14oq2"),o.attr(_,"class","Slider Round svelte-1w14oq2"),o.attr(h,"class","ToggleSwitch svelte-1w14oq2"),o.attr(t,"class","ConsentItem svelte-1w14oq2");},m(A,k){o.insert(A,t,k),o.append(t,r),o.append(r,n),i.m(a,n),o.append(n,s),v&&v.m(n,null),o.append(r,l),b&&b.m(r,null),o.append(t,d),o.append(t,h),o.append(h,c),o.append(h,y),o.append(h,_),g||(C=o.listen(c,"input",w),g=!0);},p(A,k){e=A,k[0]&66304&&a!==(a=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(a),e[64].mustAccept===!0?v||(v=gt(),v.c(),v.m(n,null)):v&&(v.d(1),v=null),e[4]==="true"?b?b.p(e,k):(b=ft(e),b.c(),b.m(r,null)):b&&(b.d(1),b=null),k[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),k[0]&8960&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(A){A&&o.detach(t),v&&v.d(),b&&b.d(),g=!1,C();}}}function vt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",a,s,l,d,h,c,m,p,y;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function C(...w){return e[28](e[61],...w)}let v=o.ensure_array_like(e[9].filter(C)),b=[];for(let w=0;w<v.length;w+=1)b[w]=_t(ut(e,v,w));return {c(){t=o.element("div"),r=o.element("div"),n=o.element("h3"),a=o.space(),s=o.element("label"),l=o.element("input"),d=o.space(),h=o.element("span"),c=o.space(),m=o.element("div");for(let w=0;w<b.length;w+=1)b[w].c();o.attr(l,"type","checkbox"),o.attr(l,"class","svelte-1w14oq2"),o.attr(h,"class","Slider Round svelte-1w14oq2"),o.attr(s,"class","ToggleSwitch Big svelte-1w14oq2"),o.attr(r,"class","AccordionHeader svelte-1w14oq2"),o.attr(m,"class","AccordionContent svelte-1w14oq2"),o.attr(t,"class","AccordionItem svelte-1w14oq2");},m(w,A){o.insert(w,t,A),o.append(t,r),o.append(r,n),n.innerHTML=i,o.append(r,a),o.append(r,s),o.append(s,l),l.checked=e[11][e[61].categoryTagCode],o.append(s,d),o.append(s,h),o.append(t,c),o.append(t,m);for(let k=0;k<b.length;k+=1)b[k]&&b[k].m(m,null);p||(y=[o.listen(l,"change",_),o.listen(l,"change",g)],p=!0);},p(w,A){if(e=w,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){v=o.ensure_array_like(e[9].filter(C));let k;for(k=0;k<v.length;k+=1){const P=ut(e,v,k);b[k]?b[k].p(P,A):(b[k]=_t(P),b[k].c(),b[k].m(m,null));}for(;k<b.length;k+=1)b[k].d(1);b.length=v.length;}},d(w){w&&o.detach(t),o.destroy_each(b,w),p=!1,o.run_all(y);}}}function bt(e){let t,r,n,i,a;return {c(){t=o.element("div"),r=o.element("circle-exclamation-icon"),n=o.space(),i=o.element("strong"),a=o.text(e[6]),o.set_custom_element_data(r,"class","svelte-1w14oq2"),o.attr(i,"class","ErrorMessage svelte-1w14oq2"),o.attr(t,"class","ConsentErrorContainer svelte-1w14oq2");},m(s,l){o.insert(s,t,l),o.append(t,r),o.append(t,n),o.append(t,i),o.append(i,a);},p(s,l){l[0]&64&&o.set_data(a,s[6]);},d(s){s&&o.detach(t);}}}function gi(e){let t,r;function n(s,l){if(s[10])return pi;if(s[7])return mi;if(s[0])return di;if(!s[0])return hi}let i=n(e),a=i&&i(e);return {c(){t=o.element("div"),r=o.element("div"),a&&a.c(),o.attr(r,"class","ConsentsContainer svelte-1w14oq2"),o.attr(t,"class",o.null_to_empty("")+" svelte-1w14oq2");},m(s,l){o.insert(s,t,l),o.append(t,r),a&&a.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&a?a.p(s,l):(a&&a.d(1),a=i&&i(s),a&&(a.c(),a.m(r,null)));},i:o.noop,o:o.noop,d(s){s&&o.detach(t),a&&a.d(),e[32](null);}}}function fi(e,t,r){let n;o.component_subscribe(e,ai,u=>r(16,n=u));let{session:i=""}=t,{userid:a=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:p=""}=t,{modalconsents:y="false"}=t,_,g=!1,C=!1,v="",b="",w="",A="",k=[],P=[],B=[],K=!0,se=!0,j={},le={},D={},I={},$,ce,O={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},ue=!1;Object.keys(st).forEach(u=>{at(u,st[u]);});const Vt=()=>{si(c);},Xt=()=>{let u=new URL(p);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(x=>{at(x,f[x]);});}).catch(f=>{console.log(f);});},Wt=()=>{i&&(v=i,C=!0),a&&(b=a);},he=(u,f=!1)=>{f?r(7,A=u):($t(),r(6,w=u));},ee=(u,f,x,E=!1)=>re(this,null,function*(){try{const S=yield fetch(u,x);if(!S.ok)throw new Error(n(f));const z=yield S.json();return C?z:z.filter(R=>R.showOnRegister===!0)}catch(S){throw he(S instanceof TypeError?n(f):S.message,E),S}}),Zt=()=>re(this,null,function*(){try{let u=[],f=[];if(C?[u,f]=yield De():u=yield De(),r(10,K=!1),P=[...u],r(8,k=Qt(P).sort((x,E)=>x.categoryTagCode.localeCompare(E.categoryTagCode))),r(11,j=Yt(k)),le=U({},j),r(9,B=[...f]),P.forEach(x=>{let E=B.find(S=>S.tagCode===x.tagCode);E||(E=Xe(U({},x),{status:O.denied.value}),B.push(E)),E.description=x.description,E.orderNumber=x.orderNumber;}),y==="true"){if(r(9,B=B.filter(x=>x.status===O.expired.value)),B.length!==0)return;he(n("wrongModalConfig"),!0);}Kt();}catch(u){throw r(10,K=!1),he(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),De=()=>re(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!C)return yield ee(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${b}`);return yield Promise.all([ee(u.href,"fetchConsentsError",{method:"GET"},!0),ee(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":v,"Content-Type":"application/json"}})])}),Jt=()=>{ue=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},x={method:"GET",headers:f};fetch(u.href,x).then(E=>E.ok?E.json():(ue=!0,E.json().then(S=>(console.error(S),de(S))))).then(E=>{if(!ue){if(P=E,localStorage.getItem("playerConsents")){try{r(9,B=JSON.parse(localStorage.getItem("playerConsents")));}catch(S){return console.error(S),de(S)}return}return r(9,B=P.map(S=>({id:S.id,status:O.denied.key,friendlyName:S.friendlyName,tagCode:S.tagCode,selected:null,mustAccept:S.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(B)),B}}).catch(E=>(console.error(E),de(E))).finally(()=>{r(10,K=!1);});},Qt=u=>{const f=new Map;return u.forEach(x=>{f.has(x.category.categoryTagCode)||f.set(x.category.categoryTagCode,x.category);}),Array.from(f.values())},Yt=u=>{const f=localStorage.getItem("categoryToggle"+b);if(f===null){const x=u.reduce((E,S)=>(E[S.categoryTagCode]=!1,E),{});return localStorage.setItem("categoryToggle"+b,JSON.stringify(x)),x}else return JSON.parse(f)},Kt=()=>{B.forEach(u=>{r(12,D[u.tagCode]=u.status===O.accepted.value,D);}),r(13,I=U({},D));},$t=()=>{r(13,I=U({},D)),r(11,j=U({},le));},er=()=>re(this,null,function*(){if(!se)return;se=!1;const u=[],f=[];if(Object.keys(I).forEach(E=>{const S=B.find(z=>z.tagCode===E);I[E]!==D[E]&&(S?u.push({tagCode:E,status:I[E]?O.accepted.value:O.denied.value}):f.push({tagCode:E,status:I[E]?O.accepted.value:O.denied.value}));}),!C){localStorage.setItem("categoryToggle"+b,JSON.stringify(j)),le=U({},j),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),se=!0;return}const x=new URL(`${s}/api/v1/gm/user-consents/${b}`);try{const E=yield Promise.allSettled([f.length>0&&ee(x.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&ee(x.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);E.forEach((S,z)=>{if(S.status==="rejected"||S.value.ok===!1){const R=z<f.length?f[z]:u[z-f.length];r(13,I[R.tagCode]=D[R.tagCode],I);}}),E.every(S=>S.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+b,JSON.stringify(j)),le=U({},j),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,D=U({},I)));}catch(E){he(E instanceof TypeError?n("saveChangesError"):E.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{se=!0,r(14,$=!1);}}),tr=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),x={"Content-Type":"application/json",Accept:"application/json"},E={playerConsents:B,registrationId:u},S={method:"POST",body:JSON.stringify(E),headers:x};fetch(f.href,S).then(z=>{z.ok||(ue=!0);}).catch(z=>(console.error(z),de(z))).finally(()=>{r(10,K=!1);});},qe=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,$=Ge());},Ce=(u,f,x)=>{const E=B.find(R=>R.id===x),S=f?"value":"key";let z;if(!f&&E.mustAccept){const R=Array.from(ce.children);for(const te of R)if(z=Array.from(te.children).find(dr=>dr.getAttribute("id")===`checkBoxError__${E.tagCode}`),z)break}if(E.status===O.accepted[S]?(E.status=O.denied[S],z&&(z.innerHTML=n("requiredError"))):(E.status=O.accepted[S],z&&(z.innerHTML="")),f){r(13,I[E.tagCode]=!I[E.tagCode],I);const R=B.filter(te=>te.category.categoryTagCode===f.categoryTagCode).every(te=>te.status!==O.denied.value);r(11,j[f.categoryTagCode]=R,j);}rr();},rr=((u,f)=>{let x;return function(...E){const S=this;clearTimeout(x),x=setTimeout(()=>{u.apply(S,E);},f);}})(()=>nr(),500),nr=()=>{r(14,$=Ge()),i||(window.postMessage({type:"isConsentsValid",isValid:$}),localStorage.setItem("playerConsents",JSON.stringify(B)));},Ge=()=>B.filter(f=>B.some(x=>f.tagCode===x.tagCode&&x.mustAccept&&(f.status===O.denied.key||f.status===O.denied.value))).length===0,de=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},ir=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||tr(u.data.registerid);};o.onMount(()=>{setTimeout(()=>{r(25,g=!0);},50);const u=f=>ir(f);return window.addEventListener("message",u),()=>{window.removeEventListener("message",u);}});function or(u){j[u.categoryTagCode]=this.checked,r(11,j);}const ar=u=>qe(u.categoryTagCode),sr=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,lr=(u,f)=>Ce(f,u.category,u.id),cr=(u,f)=>Ce(f,null,u.id);function ur(u){o.binding_callbacks[u?"unshift":"push"](()=>{ce=u,r(15,ce);});}function hr(u){o.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,a=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,y=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&g&&i&&(Wt(),Zt()),e.$$.dirty[0]&1&&(i||Jt()),e.$$.dirty[0]&34&&l&&_&&o.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&o.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&o.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Vt(),e.$$.dirty[0]&8388608&&p&&Xt();},[i,l,d,h,m,_,w,A,k,B,K,j,D,I,$,ce,n,er,qe,Ce,a,s,c,p,y,g,or,ar,sr,lr,cr,ur,hr]}class Ft extends o.SvelteComponent{constructor(t){super(),o.init(this,t,fi,gi,o.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},ui,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),o.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),o.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),o.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),o.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),o.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),o.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),o.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),o.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),o.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),o.flush();}}o.create_custom_element(Ft,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=Ft;
11459
- }(PlayerConsentsDENip2_x));
11458
+ `,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 wn(l)}function xn(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 Mn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=xn(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 Tn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Se([void 0],r,!1)))},{cache:Ne(e.number),strategy:Me.variadic}),getDateTimeFormat:xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Se([void 0],r,!1)))},{cache:Ne(e.dateTime),strategy:Me.variadic}),getPluralRules:xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Se([void 0],r,!1)))},{cache:Ne(e.pluralRules),strategy:Me.variadic})}}var Nn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=a.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(a.ast,a.locales,a.formatters,a.formats,d,void 0,a.message)},this.resolvedOptions=function(){var d;return {locale:((d=a.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.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=Mn(e.formats,n),this.formatters=i&&i.formatters||Tn(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=En,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 a=r.slice(i,r.length).join(".");if(a in n){n=n[a];break}}n=n[r[i]];}else n=void 0;return n}const G={},Hn=(e,t,r)=>r&&(t in G||(G[t]={}),e in G[t]||(G[t][e]=r),r),Ut=(e,t)=>{if(t==null)return;if(t in G&&e in G[t])return G[t][e];const r=ke(t);for(let n=0;n<r.length;n++){const i=r[n],a=Bn(i,e);if(a)return Hn(e,t,a)}};let qe;const se=be({});function Pn(e){return qe[e]||null}function Dt(e){return e in qe}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=ke(e);for(let r=0;r<t.length;r++){const n=t[r];if(Dt(n))return n}}function qt(e,...t){delete G[e],se.update(r=>(r[e]=Lr.all([r[e]||{},...t]),r));}Q([se],([e])=>Object.keys(e));se.subscribe(e=>qe=e);const fe={};function On(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e];}function Gt(e){return fe[e]}function In(e){return ke(e).map(t=>{const r=Gt(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function je(e){return e==null?!1:ke(e).some(t=>{var r;return (r=Gt(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=>qt(e,...n))}const ie={};function Ft(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 Ft(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=be(!1);var Dn=Object.defineProperty,qn=Object.defineProperties,Gn=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,at=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xn=(e,t)=>{for(var r in t||(t={}))Fn.call(t,r)&&at(e,r,t[r]);if(ot)for(var r of ot(t))Vn.call(t,r)&&at(e,r,t[r]);return e},Wn=(e,t)=>qn(e,Gn(t));let Re;const _e=be(null);function st(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ke(e,t=J().fallbackLocale){const r=st(e);return t?[...new Set([...r,...st(t)])]:r}function F(){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"&&F()!=null&&t?r=window.setTimeout(()=>Ae.set(!0),t):Ae.set(!0),Ft(e).then(()=>{_e.set(e);}).finally(()=>{clearTimeout(r),Ae.set(!1);})}return _e.set(e)},Y=Wn(Xn({},_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,ve=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,lt=(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)&&lt(e,r,t[r]);if(ve)for(var r of ve(t))Xt.call(t,r)&&lt(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 ae=(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=ae("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=ae("date",n):Object.keys(i).length===0&&(i=ae("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=ae("time",n):Object.keys(i).length===0&&(i=ae("time","short")),new Intl.DateTimeFormat(r,i)}),$n=(e={})=>{var t=e,{locale:r=F()}=t,n=K(t,["locale"]);return Qn(Ge({locale:r},n))},ei=(e={})=>{var t=e,{locale:r=F()}=t,n=K(t,["locale"]);return Yn(Ge({locale:r},n))},ti=(e={})=>{var t=e,{locale:r=F()}=t,n=K(t,["locale"]);return Kn(Ge({locale:r},n))},ri=Ce((e,t=F())=>new Nn(e,t,J().formats,{ignoreTag:J().ignoreTag})),ni=(e,t={})=>{var r,n,i,a;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=F(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ut(e,d);if(!c)c=(a=(i=(n=(r=J()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?a: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),oi=(e,t)=>ei(t).format(e),ai=(e,t)=>$n(t).format(e),si=(e,t=F())=>Ut(e,t),li=Q([Y,se],()=>ni);Q([Y],()=>ii);Q([Y],()=>oi);Q([Y],()=>ai);Q([Y,se],()=>si);function ct(e,t){qt(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=o.svg_element("svg"),r=o.svg_element("path"),o.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"),o.attr(t,"xmlns","http://www.w3.org/2000/svg"),o.attr(t,"viewBox","0 0 512 512");},m(n,i){o.insert(n,t,i),o.append(t,r);},p:o.noop,i:o.noop,o:o.noop,d(n){n&&o.detach(t);}}}class hi extends o.SvelteComponent{constructor(t){super(),o.init(this,t,null,ui,o.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",o.create_custom_element(hi,{},[],[],!0));function di(e){o.append_styles(e,"svelte-1w14oq2",'.DisplayNone.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:none}.ContainerCenter.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:30px}.AccordionHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:10px}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;padding:10px 0}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{padding-bottom:0}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{margin-bottom:0}.ConsentItem.svelte-1w14oq2 .ConsentName.svelte-1w14oq2.svelte-1w14oq2{margin:0}.ConsentItem.svelte-1w14oq2 .ConsentDescription.svelte-1w14oq2.svelte-1w14oq2{font-size:0.8rem}.ToggleSwitch.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:53px;height:30px}.ToggleSwitch.Big.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2.svelte-1w14oq2{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:disabled+.Slider.svelte-1w14oq2{opacity:0.1}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:focus+.Slider.svelte-1w14oq2{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2: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-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2{border-radius:34px}.ToggleSwitch.svelte-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2:before{border-radius:50%}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1w14oq2 circle-exclamation-icon.svelte-1w14oq2.svelte-1w14oq2{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox.svelte-1w14oq2.svelte-1w14oq2{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1w14oq2.svelte-1w14oq2{position:relative}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__input.svelte-1w14oq2.svelte-1w14oq2{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));width:46px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__label.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1w14oq2.svelte-1w14oq2{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__error-message.svelte-1w14oq2.svelte-1w14oq2{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1w14oq2.svelte-1w14oq2{width:16px;height:auto}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.svelte-1w14oq2.svelte-1w14oq2{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-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1w14oq2.svelte-1w14oq2{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=o.ensure_array_like(e[9]),i=[];for(let a=0;a<n.length;a+=1)i[a]=pt(ht(e,n,a));return {c(){t=o.element("div"),r=o.element("form");for(let a=0;a<i.length;a+=1)i[a].c();o.attr(r,"class","checkbox svelte-1w14oq2"),o.attr(t,"class","legacyStyle");},m(a,s){o.insert(a,t,s),o.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(a,s){if(s[0]&590336){n=o.ensure_array_like(a[9]);let l;for(l=0;l<n.length;l+=1){const d=ht(a,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(a){a&&o.detach(t),o.destroy_each(i,a),e[31](null);}}}function pi(e){let t=e[16]("title")||e[16]("description"),r,n,i,a=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&gt(e),p=o.ensure_array_like(e[8]),b=[];for(let g=0;g<p.length;g+=1)b[g]=Et(dt(e,p,g));let _=e[6]&&kt(e);return {c(){m&&m.c(),r=o.space();for(let g=0;g<b.length;g+=1)b[g].c();n=o.space(),i=o.element("button"),l=o.space(),_&&_.c(),d=o.empty(),o.attr(i,"class","SaveConsentsButton svelte-1w14oq2"),i.disabled=s=!e[14];},m(g,w){m&&m.m(g,w),o.insert(g,r,w);for(let v=0;v<b.length;v+=1)b[v]&&b[v].m(g,w);o.insert(g,n,w),o.insert(g,i,w),i.innerHTML=a,o.insert(g,l,w),_&&_.m(g,w),o.insert(g,d,w),h||(c=o.listen(i,"click",e[17]),h=!0);},p(g,w){if(w[0]&65536&&(t=g[16]("title")||g[16]("description")),t?m?m.p(g,w):(m=gt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),w[0]&867088){p=o.ensure_array_like(g[8]);let v;for(v=0;v<p.length;v+=1){const y=dt(g,p,v);b[v]?b[v].p(y,w):(b[v]=Et(y),b[v].c(),b[v].m(n.parentNode,n));}for(;v<b.length;v+=1)b[v].d(1);b.length=p.length;}w[0]&65536&&a!==(a=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=a),w[0]&16384&&s!==(s=!g[14])&&(i.disabled=s),g[6]?_?_.p(g,w):(_=kt(g),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(g){g&&(o.detach(r),o.detach(n),o.detach(i),o.detach(l),o.detach(d)),m&&m.d(g),o.destroy_each(b,g),_&&_.d(g),h=!1,c();}}}function gi(e){let t,r,n;return {c(){t=o.element("div"),r=o.element("strong"),n=o.text(e[7]),o.attr(r,"class","ErrorMessage svelte-1w14oq2"),o.attr(t,"class","ContainerCenter svelte-1w14oq2");},m(i,a){o.insert(i,t,a),o.append(t,r),o.append(r,n);},p(i,a){a[0]&128&&o.set_data(n,i[7]);},d(i){i&&o.detach(t);}}}function fi(e){let t;return {c(){t=o.element("general-animation-loading"),o.set_custom_element_data(t,"clientstyling",e[1]),o.set_custom_element_data(t,"clientstylingurl",e[2]),o.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){o.insert(r,t,n);},p(r,n){n[0]&2&&o.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&o.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&o.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&o.detach(t);}}}function pt(e){let t,r,n,i,a,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,p,b,_,g,w,v,y,C;function A(...k){return e[30](e[64],...k)}return {c(){t=o.element("div"),r=o.element("input"),a=o.space(),s=o.element("label"),l=o.element("div"),d=new o.HtmlTag(!1),m=o.text(c),b=o.space(),_=o.element("small"),w=o.space(),o.attr(r,"class","checkbox__input svelte-1w14oq2"),o.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",o.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,o.attr(l,"class","checkbox__label-text svelte-1w14oq2"),o.attr(s,"class","checkbox__label svelte-1w14oq2"),o.attr(s,"for",p=`${e[64].tagCode}__input`),o.attr(_,"class","checkbox__error-message svelte-1w14oq2"),o.attr(_,"id",g="checkBoxError__"+e[64].tagCode),o.attr(t,"class",v="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2");},m(k,P){o.insert(k,t,P),o.append(t,r),o.append(t,a),o.append(t,s),o.append(s,l),d.m(h,l),o.append(l,m),o.append(t,b),o.append(t,_),o.append(t,w),y||(C=o.listen(r,"input",A),y=!0);},p(k,P){e=k,P[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),P[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&o.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?" *":"")&&o.set_data(m,c),P[0]&512&&p!==(p=`${e[64].tagCode}__input`)&&o.attr(s,"for",p),P[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&o.attr(_,"id",g),P[0]&512&&v!==(v="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2")&&o.attr(t,"class",v);},d(k){k&&o.detach(t),y=!1,C();}}}function gt(e){let t,r=e[16]("title"),n,i=e[16]("description"),a=r&&ft(e),s=i&&_t(e);return {c(){t=o.element("div"),a&&a.c(),n=o.space(),s&&s.c(),o.attr(t,"class","PlayerConsentsHeader svelte-1w14oq2");},m(l,d){o.insert(l,t,d),a&&a.m(t,null),o.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?a?a.p(l,d):(a=ft(l),a.c(),a.m(t,n)):a&&(a.d(1),a=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&&o.detach(t),a&&a.d(),s&&s.d();}}}function ft(e){let t,r=e[16]("title")+"",n;return {c(){t=o.element("h2"),n=o.text(r),o.attr(t,"class","PlayerConsentsTitle");},m(i,a){o.insert(i,t,a),o.append(t,n);},p(i,a){a[0]&65536&&r!==(r=i[16]("title")+"")&&o.set_data(n,r);},d(i){i&&o.detach(t);}}}function _t(e){let t,r=e[16]("description")+"",n;return {c(){t=o.element("p"),n=o.text(r),o.attr(t,"class","PlayerConsentsDescription");},m(i,a){o.insert(i,t,a),o.append(t,n);},p(i,a){a[0]&65536&&r!==(r=i[16]("description")+"")&&o.set_data(n,r);},d(i){i&&o.detach(t);}}}function vt(e){let t;return {c(){t=o.element("sup"),t.textContent="*",o.attr(t,"class","ConsentRequired svelte-1w14oq2");},m(r,n){o.insert(r,t,n);},d(r){r&&o.detach(t);}}}function bt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=o.element("p"),o.attr(t,"class","ConsentDescription svelte-1w14oq2");},m(n,i){o.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&&o.detach(t);}}}function yt(e){let t,r,n,i,a=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,p,b,_,g,w,v=e[64].mustAccept===!0&&vt(),y=e[4]==="true"&&bt(e);function C(...A){return e[29](e[64],...A)}return {c(){t=o.element("div"),r=o.element("div"),n=o.element("h4"),i=new o.HtmlTag(!1),s=o.space(),v&&v.c(),l=o.space(),y&&y.c(),d=o.space(),h=o.element("label"),c=o.element("input"),b=o.space(),_=o.element("span"),i.a=s,o.attr(n,"class","ConsentName svelte-1w14oq2"),o.attr(r,"class","ConsentContent"),o.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],o.attr(c,"class","svelte-1w14oq2"),o.attr(_,"class","Slider Round svelte-1w14oq2"),o.attr(h,"class","ToggleSwitch svelte-1w14oq2"),o.attr(t,"class","ConsentItem svelte-1w14oq2");},m(A,k){o.insert(A,t,k),o.append(t,r),o.append(r,n),i.m(a,n),o.append(n,s),v&&v.m(n,null),o.append(r,l),y&&y.m(r,null),o.append(t,d),o.append(t,h),o.append(h,c),o.append(h,b),o.append(h,_),g||(w=o.listen(c,"input",C),g=!0);},p(A,k){e=A,k[0]&66304&&a!==(a=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(a),e[64].mustAccept===!0?v||(v=vt(),v.c(),v.m(n,null)):v&&(v.d(1),v=null),e[4]==="true"?y?y.p(e,k):(y=bt(e),y.c(),y.m(r,null)):y&&(y.d(1),y=null),k[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),k[0]&8960&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(A){A&&o.detach(t),v&&v.d(),y&&y.d(),g=!1,w();}}}function Et(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",a,s,l,d,h,c,m,p,b;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function w(...C){return e[28](e[61],...C)}let v=o.ensure_array_like(e[9].filter(w)),y=[];for(let C=0;C<v.length;C+=1)y[C]=yt(mt(e,v,C));return {c(){t=o.element("div"),r=o.element("div"),n=o.element("h3"),a=o.space(),s=o.element("label"),l=o.element("input"),d=o.space(),h=o.element("span"),c=o.space(),m=o.element("div");for(let C=0;C<y.length;C+=1)y[C].c();o.attr(l,"type","checkbox"),o.attr(l,"class","svelte-1w14oq2"),o.attr(h,"class","Slider Round svelte-1w14oq2"),o.attr(s,"class","ToggleSwitch Big svelte-1w14oq2"),o.attr(r,"class","AccordionHeader svelte-1w14oq2"),o.attr(m,"class","AccordionContent svelte-1w14oq2"),o.attr(t,"class","AccordionItem svelte-1w14oq2");},m(C,A){o.insert(C,t,A),o.append(t,r),o.append(r,n),n.innerHTML=i,o.append(r,a),o.append(r,s),o.append(s,l),l.checked=e[11][e[61].categoryTagCode],o.append(s,d),o.append(s,h),o.append(t,c),o.append(t,m);for(let k=0;k<y.length;k+=1)y[k]&&y[k].m(m,null);p||(b=[o.listen(l,"change",_),o.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){v=o.ensure_array_like(e[9].filter(w));let k;for(k=0;k<v.length;k+=1){const P=mt(e,v,k);y[k]?y[k].p(P,A):(y[k]=yt(P),y[k].c(),y[k].m(m,null));}for(;k<y.length;k+=1)y[k].d(1);y.length=v.length;}},d(C){C&&o.detach(t),o.destroy_each(y,C),p=!1,o.run_all(b);}}}function kt(e){let t,r,n,i,a;return {c(){t=o.element("div"),r=o.element("circle-exclamation-icon"),n=o.space(),i=o.element("strong"),a=o.text(e[6]),o.set_custom_element_data(r,"class","svelte-1w14oq2"),o.attr(i,"class","ErrorMessage svelte-1w14oq2"),o.attr(t,"class","ConsentErrorContainer svelte-1w14oq2");},m(s,l){o.insert(s,t,l),o.append(t,r),o.append(t,n),o.append(t,i),o.append(i,a);},p(s,l){l[0]&64&&o.set_data(a,s[6]);},d(s){s&&o.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),a=i&&i(e);return {c(){t=o.element("div"),r=o.element("div"),a&&a.c(),o.attr(r,"class","ConsentsContainer svelte-1w14oq2"),o.attr(t,"class",o.null_to_empty("")+" svelte-1w14oq2");},m(s,l){o.insert(s,t,l),o.append(t,r),a&&a.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&a?a.p(s,l):(a&&a.d(1),a=i&&i(s),a&&(a.c(),a.m(r,null)));},i:o.noop,o:o.noop,d(s){s&&o.detach(t),a&&a.d(),e[32](null);}}}function vi(e,t,r){let n;o.component_subscribe(e,li,u=>r(16,n=u));let{session:i=""}=t,{userid:a=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:p=""}=t,{modalconsents:b="false"}=t,_,g,w=!1,v=!1,y="",C="",A="",k="",P=[],D=[],B=[],$=!0,le=!0,j={},ce={},q={},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(x=>{ct(x,f[x]);});}).catch(f=>{console.log(f);});},Qt=()=>{i&&(y=i,v=!0),a&&(C=a);},de=(u,f=!1)=>{f?r(7,k=u):(rr(),r(6,A=u));},te=(u,f,x,E=!1)=>ne(this,null,function*(){try{const S=yield fetch(u,x);if(!S.ok)throw new Error(n(f));const z=yield S.json();return v?z:z.filter(R=>R.showOnRegister===!0)}catch(S){throw de(S instanceof TypeError?n(f):S.message,E),S}}),Yt=()=>ne(this,null,function*(){try{let u=[],f=[];if(v?[u,f]=yield Fe():u=yield Fe(),r(10,$=!1),D=[...u],r(8,P=$t(D).sort((x,E)=>x.categoryTagCode.localeCompare(E.categoryTagCode))),r(11,j=er(P)),ce=U({},j),r(9,B=[...f]),D.forEach(x=>{let E=B.find(S=>S.tagCode===x.tagCode);E||(E=Je(U({},x),{status:O.denied.value}),B.push(E)),E.description=x.description,E.orderNumber=x.orderNumber;}),b==="true"){if(r(9,B=B.filter(x=>x.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}}),Fe=()=>ne(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!v)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":y,"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"},x={method:"GET",headers:f};fetch(u.href,x).then(E=>E.ok?E.json():(he=!0,E.json().then(S=>(console.error(S),me(S))))).then(E=>{if(!he){if(D=E,localStorage.getItem("playerConsents")){try{r(9,B=JSON.parse(localStorage.getItem("playerConsents")));}catch(S){return console.error(S),me(S)}return}return r(9,B=D.map(S=>({id:S.id,status:O.denied.key,friendlyName:S.friendlyName,tagCode:S.tagCode,selected:null,mustAccept:S.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(B)),B}}).catch(E=>(console.error(E),me(E))).finally(()=>{r(10,$=!1);});},$t=u=>{const f=new Map;return u.forEach(x=>{f.has(x.category.categoryTagCode)||f.set(x.category.categoryTagCode,x.category);}),Array.from(f.values())},er=u=>{const f=localStorage.getItem("categoryToggle"+C);if(f===null){const x=u.reduce((E,S)=>(E[S.categoryTagCode]=!1,E),{});return localStorage.setItem("categoryToggle"+C,JSON.stringify(x)),x}else return JSON.parse(f)},tr=()=>{B.forEach(u=>{r(12,q[u.tagCode]=u.status===O.accepted.value,q);}),r(13,I=U({},q));},rr=()=>{r(13,I=U({},q)),r(11,j=U({},ce));},nr=()=>ne(this,null,function*(){if(!le)return;le=!1;const u=[],f=[];if(Object.keys(I).forEach(E=>{const S=B.find(z=>z.tagCode===E);I[E]!==q[E]&&(S?u.push({tagCode:E,status:I[E]?O.accepted.value:O.denied.value}):f.push({tagCode:E,status:I[E]?O.accepted.value:O.denied.value}));}),!v){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 x=new URL(`${s}/api/v1/gm/user-consents/${C}`);try{const E=yield Promise.allSettled([f.length>0&&te(x.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(x.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);E.forEach((S,z)=>{if(S.status==="rejected"||S.value.ok===!1){const R=z<f.length?f[z]:u[z-f.length];r(13,I[R.tagCode]=q[R.tagCode],I);}}),E.every(S=>S.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+C,JSON.stringify(j)),ce=U({},j),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,q=U({},I)));}catch(E){de(E instanceof TypeError?n("saveChangesError"):E.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`),x={"Content-Type":"application/json",Accept:"application/json"},E={playerConsents:B,registrationId:u},S={method:"POST",body:JSON.stringify(E),headers:x};fetch(f.href,S).then(z=>{z.ok||(he=!0);}).catch(z=>(console.error(z),me(z))).finally(()=>{r(10,$=!1);});},Ve=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=Xe());},we=(u,f,x)=>{const E=B.find(R=>R.id===x),S=f?"value":"key";let z;if(!f&&E.mustAccept){const R=Array.from(ue.children);for(const re of R)if(z=Array.from(re.children).find(gr=>gr.getAttribute("id")===`checkBoxError__${E.tagCode}`),z)break}if(E.status===O.accepted[S]?(E.status=O.denied[S],z&&(z.innerHTML=n("requiredError"))):(E.status=O.accepted[S],z&&(z.innerHTML="")),f){r(13,I[E.tagCode]=!I[E.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);}or();},or=((u,f)=>{let x;return function(...E){const S=this;clearTimeout(x),x=setTimeout(()=>{u.apply(S,E);},f);}})(()=>ar(),500),ar=()=>{r(14,ee=Xe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(B)));},Xe=()=>B.filter(f=>B.some(x=>f.tagCode===x.tagCode&&x.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);};o.onMount(()=>{setTimeout(()=>{r(25,w=!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=>Ve(u.categoryTagCode),ur=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,hr=(u,f)=>we(f,u.category,u.id),dr=(u,f)=>we(f,null,u.id);function mr(u){o.binding_callbacks[u?"unshift":"push"](()=>{ue=u,r(15,ue);});}function pr(u){o.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,a=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,b=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&w&&i&&(Qt(),Yt()),e.$$.dirty[0]&1&&(i||Kt()),e.$$.dirty[0]&34&&l&&_&&o.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&o.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&o.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Zt(),e.$$.dirty[0]&8388608&&p&&Jt();},[i,l,d,h,m,_,A,k,P,B,$,j,q,I,ee,ue,n,nr,Ve,we,a,s,c,p,b,w,lr,cr,ur,hr,dr,mr,pr]}class Wt extends o.SvelteComponent{constructor(t){super(),o.init(this,t,vi,_i,o.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}),o.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),o.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),o.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),o.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),o.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),o.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),o.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),o.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),o.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),o.flush();}}o.create_custom_element(Wt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=Wt;
11459
+ }(PlayerConsentsBqVrR8JW));
11460
11460
 
11461
- 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(()=>PlayerConsentsDENip2_x).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
11461
+ 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(()=>PlayerConsentsBqVrR8JW).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
11462
11462
 
11463
11463
  const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: 13px;\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
11464
11464
  const GeneralRegistrationStyle0 = generalRegistrationCss;
@@ -11469,7 +11469,6 @@ const GeneralRegistration = class {
11469
11469
  this.registrationWidgetLoaded = createEvent(this, "registrationWidgetLoaded", 7);
11470
11470
  this.registrationStepUpdated = createEvent(this, "registrationStepUpdated", 7);
11471
11471
  this.validationChange = createEvent(this, "validationChange", 7);
11472
- this.isInitialInteraction = true;
11473
11472
  this.listOfInputValues = [];
11474
11473
  this.listOfInputValidity = [];
11475
11474
  this.listOfActions = [];
@@ -11498,19 +11497,27 @@ const GeneralRegistration = class {
11498
11497
  setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
11499
11498
  });
11500
11499
  };
11500
+ this.setStreamStyling = (domain) => {
11501
+ if (window.emMessageBus) {
11502
+ const sheet = document.createElement('style');
11503
+ this.stylingSubscription = window.emMessageBus.subscribe(domain, (data) => {
11504
+ sheet.innerHTML = data;
11505
+ this.clientStyling = data;
11506
+ this.host.shadowRoot.prepend(sheet);
11507
+ });
11508
+ }
11509
+ };
11501
11510
  // handles sending a custom event for initial interaction with the registration form
11502
11511
  this.handleInitialClick = (e) => {
11503
- if (!this.isInitialInteraction)
11512
+ if (!this.isInitalInteraction)
11504
11513
  return;
11505
- e.preventDefault();
11506
- if (this.isInitialInteraction) {
11507
- dispatchCustomEvent('register_start', { field: e.target.name });
11508
- this.isInitialInteraction = false;
11509
- }
11514
+ dispatchCustomEvent('register_start', { field: e.target.name });
11515
+ this.isInitalInteraction = false;
11510
11516
  };
11511
11517
  this.endpoint = undefined;
11512
11518
  this.language = 'en';
11513
11519
  this.clientStyling = '';
11520
+ this.mbSource = undefined;
11514
11521
  this.clientStylingUrl = '';
11515
11522
  this.translationUrl = '';
11516
11523
  this.dateFormat = undefined;
@@ -11527,6 +11534,7 @@ const GeneralRegistration = class {
11527
11534
  this.forms = [];
11528
11535
  this.limitStylingAppends = false;
11529
11536
  this.autofilled = false;
11537
+ this.isInitalInteraction = true;
11530
11538
  }
11531
11539
  sendStep() {
11532
11540
  this.registrationStepUpdated.emit(this.registrationStep);
@@ -11649,20 +11657,32 @@ const GeneralRegistration = class {
11649
11657
  this.registrationWidgetLoaded.emit();
11650
11658
  window.postMessage({ type: 'registrationWidgetLoaded' }, window.location.href);
11651
11659
  if (!this.limitStylingAppends && this.host) {
11652
- if (this.clientStyling)
11653
- this.setClientStyling();
11654
- if (this.clientStylingUrl)
11655
- this.setClientStylingURL();
11656
- this.limitStylingAppends = true;
11660
+ if (window.emMessageBus != undefined) {
11661
+ this.setStreamStyling(`${this.mbSource}.Style`);
11662
+ }
11663
+ else {
11664
+ if (this.clientStyling)
11665
+ this.setClientStyling();
11666
+ if (this.clientStylingUrl)
11667
+ this.setClientStylingURL();
11668
+ this.limitStylingAppends = true;
11669
+ }
11657
11670
  }
11658
11671
  }
11672
+ disconnectedCallback() {
11673
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
11674
+ }
11659
11675
  messageHandler(e) {
11660
11676
  //Handle Consents Message
11661
- if (e.data && e.data.type != "isConsentsValid")
11677
+ if (!e.data)
11662
11678
  return;
11663
- this.listOfInputValidity.find((input) => input.name === "Consents").isValid = e.data.isValid ? true : false;
11664
- this.isConsentValid = e.data.isValid ? true : false;
11665
- this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
11679
+ switch (e.data.type) {
11680
+ case "isConsentsValid":
11681
+ this.listOfInputValidity.find((input) => input.name === "Consents").isValid = e.data.isValid ? true : false;
11682
+ this.isConsentValid = e.data.isValid ? true : false;
11683
+ this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
11684
+ break;
11685
+ }
11666
11686
  }
11667
11687
  nextHandler(e) {
11668
11688
  e.preventDefault();
@@ -12153,11 +12173,11 @@ const GeneralRegistration = class {
12153
12173
  }
12154
12174
  renderForm() {
12155
12175
  return this.forms.map((form, index) => {
12156
- return h$1("form", { onClick: this.handleInitialClick, action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index + 1}` ? 'hidden' : ''}`, ref: el => this.form = el }, form[this.registrationStep] && form[this.registrationStep].map(input => h$1("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
12176
+ return h$1("form", { action: '.', id: `RegistrationForm${this.registrationStep}`, class: `registration__form ${this.registrationStep !== `Step${index + 1}` ? 'hidden' : ''}`, ref: el => this.form = el, onClick: this.handleInitialClick }, form[this.registrationStep] && form[this.registrationStep].map(input => h$1("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
12157
12177
  ? (input.inputType.toLowerCase() == 'checkboxgroup' || input.inputType.toLowerCase() == 'togglecheckbox')
12158
12178
  ? input.data.subFields
12159
12179
  : input.data.values
12160
- : [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip, placeholder: input.placeholder == null ? '' : input.placeholder, dateFormat: this.dateFormat, "translation-url": this.translationUrl, emitOnClick: this.emitOnClick })), this.isConsentReady && this.renderConsents(), this.buttonInsideForm && this.renderButtons(), h$1("div", { class: 'registration__wrapper--flex' }, h$1("p", { class: 'registration__error-message', innerHTML: this.errorMessage })));
12180
+ : [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip, placeholder: input.placeholder == null ? '' : input.placeholder, dateFormat: this.dateFormat, "translation-url": this.translationUrl, emitOnClick: this.emitOnClick, onClick: this.handleInitialClick })), this.isConsentReady && this.renderConsents(), this.buttonInsideForm && this.renderButtons(), h$1("div", { class: 'registration__wrapper--flex' }, h$1("p", { class: 'registration__error-message', innerHTML: this.errorMessage })));
12161
12181
  });
12162
12182
  }
12163
12183
  ;