@everymatrix/player-account-self-exclusion 1.62.0 → 1.62.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var rl=Object.defineProperty,ol=Object.defineProperties;var nl=Object.getOwnPropertyDescriptors;var Po=Object.getOwnPropertySymbols;var sl=Object.prototype.hasOwnProperty,al=Object.prototype.propertyIsEnumerable;var $i=(t,i,e)=>i in t?rl(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,ei=(t,i)=>{for(var e in i||(i={}))sl.call(i,e)&&$i(t,e,i[e]);if(Po)for(var e of Po(i))al.call(i,e)&&$i(t,e,i[e]);return t},ti=(t,i)=>ol(t,nl(i));var xe=(t,i,e)=>($i(t,typeof i!="symbol"?i+"":i,e),e);var tt=(t,i,e)=>new Promise((r,o)=>{var n=l=>{try{a(e.next(l))}catch(u){o(u)}},s=l=>{try{a(e.throw(l))}catch(u){o(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(n,s);a((e=e.apply(t,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-Bhrn0PZm.cjs");function Ee(){}function Kn(t){return t()}function Do(){return Object.create(null)}function wt(t){t.forEach(Kn)}function Jr(t){return typeof t=="function"}function Jn(t,i){return t!=t?i==i:t!==i||t&&typeof t=="object"||typeof t=="function"}function ll(t){return Object.keys(t).length===0}function Zn(t,...i){if(t==null){for(const r of i)r(void 0);return Ee}const e=t.subscribe(...i);return e.unsubscribe?()=>e.unsubscribe():e}function ul(t,i,e){t.$$.on_destroy.push(Zn(i,e))}function m(t,i){t.appendChild(i)}function cl(t,i,e){const r=dl(t);if(!r.getElementById(i)){const o=C("style");o.id=i,o.textContent=e,hl(r,o)}}function dl(t){if(!t)return document;const i=t.getRootNode?t.getRootNode():t.ownerDocument;return i&&i.host?i:t.ownerDocument}function hl(t,i){return m(t.head||t,i),i.sheet}function ve(t,i,e){t.insertBefore(i,e||null)}function pe(t){t.parentNode&&t.parentNode.removeChild(t)}function fl(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function C(t){return document.createElement(t)}function Ie(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fe(t){return document.createTextNode(t)}function K(){return fe(" ")}function mi(t,i,e,r){return t.addEventListener(i,e,r),()=>t.removeEventListener(i,e,r)}function A(t,i,e){e==null?t.removeAttribute(i):t.getAttribute(i)!==e&&t.setAttribute(i,e)}function M(t,i,e){const r=i.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:i in t?t[i]=typeof t[i]=="boolean"&&e===""?!0:e:A(t,i,e)}function pl(t){return Array.from(t.childNodes)}function we(t,i){i=""+i,t.data!==i&&(t.data=i)}function Fi(t,i,e,r){e==null?t.style.removeProperty(i):t.style.setProperty(i,e,"")}function it(t,i,e){t.classList.toggle(i,!!e)}function ml(t){const i={};return t.childNodes.forEach(e=>{i[e.slot||"default"]=!0}),i}let Rt;function Ht(t){Rt=t}function _l(){if(!Rt)throw new Error("Function called outside component initialization");return Rt}function gl(t){_l().$$.on_mount.push(t)}const st=[],_i=[];let lt=[];const ko=[],bl=Promise.resolve();let fr=!1;function vl(){fr||(fr=!0,bl.then(le))}function pr(t){lt.push(t)}const Ri=new Set;let rt=0;function le(){if(rt!==0)return;const t=Rt;do{try{for(;rt<st.length;){const i=st[rt];rt++,Ht(i),yl(i.$$)}}catch(i){throw st.length=0,rt=0,i}for(Ht(null),st.length=0,rt=0;_i.length;)_i.pop()();for(let i=0;i<lt.length;i+=1){const e=lt[i];Ri.has(e)||(Ri.add(e),e())}lt.length=0}while(st.length);for(;ko.length;)ko.pop()();fr=!1,Ri.clear(),Ht(t)}function yl(t){if(t.fragment!==null){t.update(),wt(t.before_update);const i=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,i),t.after_update.forEach(pr)}}function xl(t){const i=[],e=[];lt.forEach(r=>t.indexOf(r)===-1?i.push(r):e.push(r)),e.forEach(r=>r()),lt=i}const wl=new Set;function El(t,i){t&&t.i&&(wl.delete(t),t.i(i))}function Mo(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Sl(t,i,e){const{fragment:r,after_update:o}=t.$$;r&&r.m(i,e),pr(()=>{const n=t.$$.on_mount.map(Kn).filter(Jr);t.$$.on_destroy?t.$$.on_destroy.push(...n):wt(n),t.$$.on_mount=[]}),o.forEach(pr)}function Al(t,i){const e=t.$$;e.fragment!==null&&(xl(e.after_update),wt(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function Cl(t,i){t.$$.dirty[0]===-1&&(st.push(t),vl(),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31}function Tl(t,i,e,r,o,n,s=null,a=[-1]){const l=Rt;Ht(t);const u=t.$$={fragment:null,ctx:[],props:n,update:Ee,not_equal:o,bound:Do(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(l?l.$$.context:[])),callbacks:Do(),dirty:a,skip_bound:!1,root:i.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(t,i.props||{},(d,h,...f)=>{const p=f.length?f[0]:h;return u.ctx&&o(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),c&&Cl(t,d)),h}):[],u.update(),c=!0,wt(u.before_update),u.fragment=r?r(u.ctx):!1,i.target){if(i.hydrate){const d=pl(i.target);u.fragment&&u.fragment.l(d),d.forEach(pe)}else u.fragment&&u.fragment.c();i.intro&&El(t.$$.fragment),Sl(t,i.target,i.anchor),le()}Ht(l)}let Qn;typeof HTMLElement=="function"&&(Qn=class extends HTMLElement{constructor(i,e,r){super();xe(this,"$$ctor");xe(this,"$$s");xe(this,"$$c");xe(this,"$$cn",!1);xe(this,"$$d",{});xe(this,"$$r",!1);xe(this,"$$p_d",{});xe(this,"$$l",{});xe(this,"$$l_u",new Map);this.$$ctor=i,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(i,e,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){const o=this.$$c.$on(i,e);this.$$l_u.set(e,o)}super.addEventListener(i,e,r)}removeEventListener(i,e,r){if(super.removeEventListener(i,e,r),this.$$c){const o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}connectedCallback(){return tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(n){return()=>{let s;return{c:function(){s=C("slot"),n!=="default"&&A(s,"name",n)},m:function(u,c){ve(u,s,c)},d:function(u){u&&pe(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=ml(this);for(const n of this.$$s)n in r&&(e[n]=[i(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ui(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ti(ei({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=ui(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(i,e,r){var o;this.$$r||(i=this.$$g_p(i),this.$$d[i]=ui(i,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function ui(t,i,e,r){var n;const o=(n=e[t])==null?void 0:n.type;if(i=o==="Boolean"&&typeof i!="boolean"?i!=null:i,!r||!e[t])return i;if(r==="toAttribute")switch(o){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i==null?null:i;default:return i}else switch(o){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function Pl(t,i,e,r,o,n){let s=class extends Qn{constructor(){super(t,e,o),this.$$p_d=i}static get observedAttributes(){return Object.keys(i).map(a=>(i[a].attribute||a).toLowerCase())}};return Object.keys(i).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=ui(a,l,i),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class Dl{constructor(){xe(this,"$$");xe(this,"$$set")}$destroy(){Al(this,1),this.$destroy=Ee}$on(i,e){if(!Jr(e))return Ee;const r=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return r.push(e),()=>{const o=r.indexOf(e);o!==-1&&r.splice(o,1)}}$set(i){this.$$set&&!ll(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const kl="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(kl);/*! *****************************************************************************
1
+ "use strict";var rl=Object.defineProperty,ol=Object.defineProperties;var nl=Object.getOwnPropertyDescriptors;var Do=Object.getOwnPropertySymbols;var sl=Object.prototype.hasOwnProperty,al=Object.prototype.propertyIsEnumerable;var Ri=(t,i,e)=>i in t?rl(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,ei=(t,i)=>{for(var e in i||(i={}))sl.call(i,e)&&Ri(t,e,i[e]);if(Do)for(var e of Do(i))al.call(i,e)&&Ri(t,e,i[e]);return t},ti=(t,i)=>ol(t,nl(i));var xe=(t,i,e)=>(Ri(t,typeof i!="symbol"?i+"":i,e),e);var tt=(t,i,e)=>new Promise((r,o)=>{var n=l=>{try{a(e.next(l))}catch(u){o(u)}},s=l=>{try{a(e.throw(l))}catch(u){o(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(n,s);a((e=e.apply(t,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-CCXvjIzA.cjs");function Ee(){}function Jn(t){return t()}function ko(){return Object.create(null)}function xt(t){t.forEach(Jn)}function to(t){return typeof t=="function"}function Zn(t,i){return t!=t?i==i:t!==i||t&&typeof t=="object"||typeof t=="function"}function ll(t){return Object.keys(t).length===0}function Qn(t,...i){if(t==null){for(const r of i)r(void 0);return Ee}const e=t.subscribe(...i);return e.unsubscribe?()=>e.unsubscribe():e}function ul(t,i,e){t.$$.on_destroy.push(Qn(i,e))}function m(t,i){t.appendChild(i)}function cl(t,i,e){const r=dl(t);if(!r.getElementById(i)){const o=C("style");o.id=i,o.textContent=e,hl(r,o)}}function dl(t){if(!t)return document;const i=t.getRootNode?t.getRootNode():t.ownerDocument;return i&&i.host?i:t.ownerDocument}function hl(t,i){return m(t.head||t,i),i.sheet}function ve(t,i,e){t.insertBefore(i,e||null)}function pe(t){t.parentNode&&t.parentNode.removeChild(t)}function fl(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function C(t){return document.createElement(t)}function Ne(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fe(t){return document.createTextNode(t)}function X(){return fe(" ")}function mi(t,i,e,r){return t.addEventListener(i,e,r),()=>t.removeEventListener(i,e,r)}function A(t,i,e){e==null?t.removeAttribute(i):t.getAttribute(i)!==e&&t.setAttribute(i,e)}function M(t,i,e){const r=i.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:i in t?t[i]=typeof t[i]=="boolean"&&e===""?!0:e:A(t,i,e)}function pl(t){return Array.from(t.childNodes)}function we(t,i){i=""+i,t.data!==i&&(t.data=i)}function zi(t,i,e,r){e==null?t.style.removeProperty(i):t.style.setProperty(i,e,"")}function it(t,i,e){t.classList.toggle(i,!!e)}function ml(t){const i={};return t.childNodes.forEach(e=>{i[e.slot||"default"]=!0}),i}let Ft;function Lt(t){Ft=t}function _l(){if(!Ft)throw new Error("Function called outside component initialization");return Ft}function gl(t){_l().$$.on_mount.push(t)}const st=[],_i=[];let lt=[];const Mo=[],bl=Promise.resolve();let mr=!1;function vl(){mr||(mr=!0,bl.then(le))}function _r(t){lt.push(t)}const Ui=new Set;let rt=0;function le(){if(rt!==0)return;const t=Ft;do{try{for(;rt<st.length;){const i=st[rt];rt++,Lt(i),yl(i.$$)}}catch(i){throw st.length=0,rt=0,i}for(Lt(null),st.length=0,rt=0;_i.length;)_i.pop()();for(let i=0;i<lt.length;i+=1){const e=lt[i];Ui.has(e)||(Ui.add(e),e())}lt.length=0}while(st.length);for(;Mo.length;)Mo.pop()();mr=!1,Ui.clear(),Lt(t)}function yl(t){if(t.fragment!==null){t.update(),xt(t.before_update);const i=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,i),t.after_update.forEach(_r)}}function xl(t){const i=[],e=[];lt.forEach(r=>t.indexOf(r)===-1?i.push(r):e.push(r)),e.forEach(r=>r()),lt=i}const wl=new Set;function El(t,i){t&&t.i&&(wl.delete(t),t.i(i))}function Oo(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Sl(t,i,e){const{fragment:r,after_update:o}=t.$$;r&&r.m(i,e),_r(()=>{const n=t.$$.on_mount.map(Jn).filter(to);t.$$.on_destroy?t.$$.on_destroy.push(...n):xt(n),t.$$.on_mount=[]}),o.forEach(_r)}function Al(t,i){const e=t.$$;e.fragment!==null&&(xl(e.after_update),xt(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function Cl(t,i){t.$$.dirty[0]===-1&&(st.push(t),vl(),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31}function Tl(t,i,e,r,o,n,s=null,a=[-1]){const l=Ft;Lt(t);const u=t.$$={fragment:null,ctx:[],props:n,update:Ee,not_equal:o,bound:ko(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(l?l.$$.context:[])),callbacks:ko(),dirty:a,skip_bound:!1,root:i.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(t,i.props||{},(d,h,...f)=>{const p=f.length?f[0]:h;return u.ctx&&o(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),c&&Cl(t,d)),h}):[],u.update(),c=!0,xt(u.before_update),u.fragment=r?r(u.ctx):!1,i.target){if(i.hydrate){const d=pl(i.target);u.fragment&&u.fragment.l(d),d.forEach(pe)}else u.fragment&&u.fragment.c();i.intro&&El(t.$$.fragment),Sl(t,i.target,i.anchor),le()}Lt(l)}let es;typeof HTMLElement=="function"&&(es=class extends HTMLElement{constructor(i,e,r){super();xe(this,"$$ctor");xe(this,"$$s");xe(this,"$$c");xe(this,"$$cn",!1);xe(this,"$$d",{});xe(this,"$$r",!1);xe(this,"$$p_d",{});xe(this,"$$l",{});xe(this,"$$l_u",new Map);this.$$ctor=i,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(i,e,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){const o=this.$$c.$on(i,e);this.$$l_u.set(e,o)}super.addEventListener(i,e,r)}removeEventListener(i,e,r){if(super.removeEventListener(i,e,r),this.$$c){const o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}connectedCallback(){return tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(n){return()=>{let s;return{c:function(){s=C("slot"),n!=="default"&&A(s,"name",n)},m:function(u,c){ve(u,s,c)},d:function(u){u&&pe(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=ml(this);for(const n of this.$$s)n in r&&(e[n]=[i(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ui(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ti(ei({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=ui(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(i,e,r){var o;this.$$r||(i=this.$$g_p(i),this.$$d[i]=ui(i,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function ui(t,i,e,r){var n;const o=(n=e[t])==null?void 0:n.type;if(i=o==="Boolean"&&typeof i!="boolean"?i!=null:i,!r||!e[t])return i;if(r==="toAttribute")switch(o){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i==null?null:i;default:return i}else switch(o){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function Pl(t,i,e,r,o,n){let s=class extends es{constructor(){super(t,e,o),this.$$p_d=i}static get observedAttributes(){return Object.keys(i).map(a=>(i[a].attribute||a).toLowerCase())}};return Object.keys(i).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=ui(a,l,i),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class Dl{constructor(){xe(this,"$$");xe(this,"$$set")}$destroy(){Al(this,1),this.$destroy=Ee}$on(i,e){if(!to(e))return Ee;const r=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return r.push(e),()=>{const o=r.indexOf(e);o!==-1&&r.splice(o,1)}}$set(i){this.$$set&&!ll(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const kl="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(kl);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,55 +11,55 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
11
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var mr=function(t,i){return mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])},mr(t,i)};function He(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");mr(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var U=function(){return U=Object.assign||function(i){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},U.apply(this,arguments)};function Ml(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]]);return e}function _r(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function gr(t,i){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var r=e.call(t),o,n=[],s;try{for(;(i===void 0||i-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return n}function ut(t,i,e){if(e||arguments.length===2)for(var r=0,o=i.length,n;r<o;r++)(n||!(r in i))&&(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||i)}function Ne(t){return typeof t=="function"}function es(t){var i=function(r){Error.call(r),r.stack=new Error().stack},e=t(i);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var zi=es(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
14
+ ***************************************************************************** */var gr=function(t,i){return gr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])},gr(t,i)};function Jt(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");gr(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}function br(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function vr(t,i){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var r=e.call(t),o,n=[],s;try{for(;(i===void 0||i-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return n}function yr(t,i,e){if(arguments.length===2)for(var r=0,o=i.length,n;r<o;r++)(n||!(r in i))&&(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||i)}function Le(t){return typeof t=="function"}function ts(t){var i=function(r){Error.call(r),r.stack=new Error().stack},e=t(i);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ji=ts(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
15
15
  `+e.map(function(r,o){return o+1+") "+r.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=e}});function br(t,i){if(t){var e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ti=function(){function t(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var i,e,r,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=_r(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(y){i={error:y}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}else s.remove(this);var c=this.initialTeardown;if(Ne(c))try{c()}catch(y){n=y instanceof zi?y.errors:[y]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=_r(d),f=h.next();!f.done;f=h.next()){var p=f.value;try{Oo(p)}catch(y){n=n!=null?n:[],y instanceof zi?n=ut(ut([],gr(n)),gr(y.errors)):n.push(y)}}}catch(y){r={error:y}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(n)throw new zi(n)}},t.prototype.add=function(i){var e;if(i&&i!==this)if(this.closed)Oo(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}},t.prototype._hasParent=function(i){var e=this._parentage;return e===i||Array.isArray(e)&&e.includes(i)},t.prototype._addParent=function(i){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i},t.prototype._removeParent=function(i){var e=this._parentage;e===i?this._parentage=null:Array.isArray(e)&&br(e,i)},t.prototype.remove=function(i){var e=this._finalizers;e&&br(e,i),i instanceof t&&i._removeParent(this)},t.EMPTY=function(){var i=new t;return i.closed=!0,i}(),t}(),ts=Ti.EMPTY;function is(t){return t instanceof Ti||t&&"closed"in t&&Ne(t.remove)&&Ne(t.add)&&Ne(t.unsubscribe)}function Oo(t){Ne(t)?t():t.unsubscribe()}var rs={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ol={setTimeout:function(t,i){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,ut([t,i],gr(e)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Il(t){Ol.setTimeout(function(){throw t})}function Io(){}function ci(t){t()}var os=function(t){He(i,t);function i(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,is(e)&&e.add(r)):r.destination=Bl,r}return i.create=function(e,r,o){return new vr(e,r,o)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(Ti),Nl=Function.prototype.bind;function Ui(t,i){return Nl.call(t,i)}var Ll=function(){function t(i){this.partialObserver=i}return t.prototype.next=function(i){var e=this.partialObserver;if(e.next)try{e.next(i)}catch(r){ii(r)}},t.prototype.error=function(i){var e=this.partialObserver;if(e.error)try{e.error(i)}catch(r){ii(r)}else ii(i)},t.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(e){ii(e)}},t}(),vr=function(t){He(i,t);function i(e,r,o){var n=t.call(this)||this,s;if(Ne(e)||!e)s={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0};else{var a;n&&rs.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.unsubscribe()},s={next:e.next&&Ui(e.next,a),error:e.error&&Ui(e.error,a),complete:e.complete&&Ui(e.complete,a)}):s=e}return n.destination=new Ll(s),n}return i}(os);function ii(t){Il(t)}function Hl(t){throw t}var Bl={closed:!0,next:Io,error:Hl,complete:Io},$l=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Fl(t){return t}function Rl(t){return t.length===0?Fl:t.length===1?t[0]:function(e){return t.reduce(function(r,o){return o(r)},e)}}var No=function(){function t(i){i&&(this._subscribe=i)}return t.prototype.lift=function(i){var e=new t;return e.source=this,e.operator=i,e},t.prototype.subscribe=function(i,e,r){var o=this,n=Ul(i)?i:new vr(i,e,r);return ci(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},t.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(e){i.error(e)}},t.prototype.forEach=function(i,e){var r=this;return e=Lo(e),new e(function(o,n){var s=new vr({next:function(a){try{i(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});r.subscribe(s)})},t.prototype._subscribe=function(i){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(i)},t.prototype[$l]=function(){return this},t.prototype.pipe=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return Rl(i)(this)},t.prototype.toPromise=function(i){var e=this;return i=Lo(i),new i(function(r,o){var n;e.subscribe(function(s){return n=s},function(s){return o(s)},function(){return r(n)})})},t.create=function(i){return new t(i)},t}();function Lo(t){var i;return(i=t!=null?t:rs.Promise)!==null&&i!==void 0?i:Promise}function zl(t){return t&&Ne(t.next)&&Ne(t.error)&&Ne(t.complete)}function Ul(t){return t&&t instanceof os||zl(t)&&is(t)}var jl=es(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ns=function(t){He(i,t);function i(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.prototype.lift=function(e){var r=new Ho(this,this);return r.operator=e,r},i.prototype._throwIfClosed=function(){if(this.closed)throw new jl},i.prototype.next=function(e){var r=this;ci(function(){var o,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=_r(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(e)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},i.prototype.error=function(e){var r=this;ci(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},i.prototype.complete=function(){var e=this;ci(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var r=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?ts:(this.currentObservers=null,a.push(e),new Ti(function(){r.currentObservers=null,br(a,e)}))},i.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,n=r.thrownError,s=r.isStopped;o?e.error(n):s&&e.complete()},i.prototype.asObservable=function(){var e=new No;return e.source=this,e},i.create=function(e,r){return new Ho(e,r)},i}(No),Ho=function(t){He(i,t);function i(e,r){var o=t.call(this)||this;return o.destination=e,o.source=r,o}return i.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},i.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},i.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},i.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:ts},i}(ns),ss={now:function(){return(ss.delegate||Date).now()},delegate:void 0},Vl=function(t){He(i,t);function i(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=ss);var n=t.call(this)||this;return n._bufferSize=e,n._windowTime=r,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,r),n}return i.prototype.next=function(e){var r=this,o=r.isStopped,n=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(n.push(e),!s&&n.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},i.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!e.closed;l+=n?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),r},i.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,n=e._buffer,s=e._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),u=0,c=1;c<n.length&&n[c]<=l;c+=2)u=c;u&&n.splice(0,u+1)}},i}(ns);const Bo=[],$o={},Yl=(t,i=0)=>{if(Bo.indexOf(t)==-1){const e=new Vl(i);$o[t]=e,Bo.push(t)}return $o[t]},ot=[];function Gl(t,i){return{subscribe:Pi(t,i).subscribe}}function Pi(t,i=Ee){let e;const r=new Set;function o(a){if(Jn(t,a)&&(t=a,e)){const l=!ot.length;for(const u of r)u[1](),ot.push(u,t);if(l){for(let u=0;u<ot.length;u+=2)ot[u][0](ot[u+1]);ot.length=0}}}function n(a){o(a(t))}function s(a,l=Ee){const u=[a,l];return r.add(u),r.size===1&&(e=i(o,n)||Ee),a(t),()=>{r.delete(u),r.size===0&&e&&(e(),e=null)}}return{set:o,update:n,subscribe:s}}function Et(t,i,e){const r=!Array.isArray(t),o=r?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=i.length<2;return Gl(e,(s,a)=>{let l=!1;const u=[];let c=0,d=Ee;const h=()=>{if(c)return;d();const p=i(r?u[0]:u,s,a);n?s(p):d=Jr(p)?p:Ee},f=o.map((p,y)=>Zn(p,D=>{u[y]=D,c&=~(1<<y),l&&h()},()=>{c|=1<<y}));return l=!0,h(),function(){wt(f),d(),l=!1}})}var Wl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function as(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ql=function(i){return Xl(i)&&!Kl(i)};function Xl(t){return!!t&&typeof t=="object"}function Kl(t){var i=Object.prototype.toString.call(t);return i==="[object RegExp]"||i==="[object Date]"||Ql(t)}var Jl=typeof Symbol=="function"&&Symbol.for,Zl=Jl?Symbol.for("react.element"):60103;function Ql(t){return t.$$typeof===Zl}function eu(t){return Array.isArray(t)?[]:{}}function zt(t,i){return i.clone!==!1&&i.isMergeableObject(t)?pt(eu(t),t,i):t}function tu(t,i,e){return t.concat(i).map(function(r){return zt(r,e)})}function iu(t,i){if(!i.customMerge)return pt;var e=i.customMerge(t);return typeof e=="function"?e:pt}function ru(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(i){return Object.propertyIsEnumerable.call(t,i)}):[]}function Fo(t){return Object.keys(t).concat(ru(t))}function ls(t,i){try{return i in t}catch(e){return!1}}function ou(t,i){return ls(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}function nu(t,i,e){var r={};return e.isMergeableObject(t)&&Fo(t).forEach(function(o){r[o]=zt(t[o],e)}),Fo(i).forEach(function(o){ou(t,o)||(ls(t,o)&&e.isMergeableObject(i[o])?r[o]=iu(o,e)(t[o],i[o],e):r[o]=zt(i[o],e))}),r}function pt(t,i,e){e=e||{},e.arrayMerge=e.arrayMerge||tu,e.isMergeableObject=e.isMergeableObject||ql,e.cloneUnlessOtherwiseSpecified=zt;var r=Array.isArray(i),o=Array.isArray(t),n=r===o;return n?r?e.arrayMerge(t,i,e):nu(t,i,e):zt(i,e)}pt.all=function(i,e){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(r,o){return pt(r,o,e)},{})};var su=pt,au=su;const lu=as(au);function ji(t,i){var e=i&&i.cache?i.cache:pu,r=i&&i.serializer?i.serializer:fu,o=i&&i.strategy?i.strategy:cu;return o(t,{cache:e,serializer:r})}function uu(t){return t==null||typeof t=="number"||typeof t=="boolean"}function us(t,i,e,r){var o=uu(r)?r:e(r),n=i.get(o);return typeof n=="undefined"&&(n=t.call(this,r),i.set(o,n)),n}function cs(t,i,e){var r=Array.prototype.slice.call(arguments,3),o=e(r),n=i.get(o);return typeof n=="undefined"&&(n=t.apply(this,r),i.set(o,n)),n}function Zr(t,i,e,r,o){return e.bind(i,t,r,o)}function cu(t,i){var e=t.length===1?us:cs;return Zr(t,this,e,i.cache.create(),i.serializer)}function du(t,i){return Zr(t,this,cs,i.cache.create(),i.serializer)}function hu(t,i){return Zr(t,this,us,i.cache.create(),i.serializer)}var fu=function(){return JSON.stringify(arguments)};function Qr(){this.cache=Object.create(null)}Qr.prototype.get=function(t){return this.cache[t]};Qr.prototype.set=function(t,i){this.cache[t]=i};var pu={create:function(){return new Qr}},Vi={variadic:du,monadic:hu},L;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(L||(L={}));var q;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(q||(q={}));var mt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(mt||(mt={}));function Ro(t){return t.type===q.literal}function mu(t){return t.type===q.argument}function ds(t){return t.type===q.number}function hs(t){return t.type===q.date}function fs(t){return t.type===q.time}function ps(t){return t.type===q.select}function ms(t){return t.type===q.plural}function _u(t){return t.type===q.pound}function _s(t){return t.type===q.tag}function gs(t){return!!(t&&typeof t=="object"&&t.type===mt.number)}function yr(t){return!!(t&&typeof t=="object"&&t.type===mt.dateTime)}var bs=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gu=/(?:[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 bu(t){var i={};return t.replace(gu,function(e){var r=e.length;switch(e[0]){case"G":i.era=r===4?"long":r===5?"narrow":"short";break;case"y":i.year=r===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":i.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][r-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][r-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][r-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][r-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":i.minute=["numeric","2-digit"][r-1];break;case"s":i.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=r<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""}),i}var vu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function yu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var i=t.split(vu).filter(function(h){return h.length>0}),e=[],r=0,o=i;r<o.length;r++){var n=o[r],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function xu(t){return t.replace(/^(.*?)-/,"")}var zo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vs=/^(@+)?(\+|#+)?[rs]?$/g,wu=/(\*)(0+)|(#+)(0+)|(0+)/g,ys=/^(0+)$/;function Uo(t){var i={};return t[t.length-1]==="r"?i.roundingPriority="morePrecision":t[t.length-1]==="s"&&(i.roundingPriority="lessPrecision"),t.replace(vs,function(e,r,o){return typeof o!="string"?(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length):o==="+"?i.minimumSignificantDigits=r.length:r[0]==="#"?i.maximumSignificantDigits=r.length:(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),i}function xs(t){switch(t){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 Eu(t){var i;if(t[0]==="E"&&t[1]==="E"?(i={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(i={notation:"scientific"},t=t.slice(1)),i){var e=t.slice(0,2);if(e==="+!"?(i.signDisplay="always",t=t.slice(2)):e==="+?"&&(i.signDisplay="exceptZero",t=t.slice(2)),!ys.test(t))throw new Error("Malformed concise eng/scientific notation");i.minimumIntegerDigits=t.length}return i}function jo(t){var i={},e=xs(t);return e||i}function Su(t){for(var i={},e=0,r=t;e<r.length;e++){var o=r[e];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=xu(o.options[0]);continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=U(U(U({},i),{notation:"scientific"}),o.options.reduce(function(l,u){return U(U({},l),jo(u))},{}));continue;case"engineering":i=U(U(U({},i),{notation:"engineering"}),o.options.reduce(function(l,u){return U(U({},l),jo(u))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":i.roundingMode="floor";continue;case"rounding-mode-ceiling":i.roundingMode="ceil";continue;case"rounding-mode-down":i.roundingMode="trunc";continue;case"rounding-mode-up":i.roundingMode="expand";continue;case"rounding-mode-half-even":i.roundingMode="halfEven";continue;case"rounding-mode-half-down":i.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":i.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(wu,function(l,u,c,d,h,f){if(u)i.minimumIntegerDigits=c.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ys.test(o.stem)){i.minimumIntegerDigits=o.stem.length;continue}if(zo.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(zo,function(l,u,c,d,h,f){return c==="*"?i.minimumFractionDigits=u.length:d&&d[0]==="#"?i.maximumFractionDigits=d.length:h&&f?(i.minimumFractionDigits=h.length,i.maximumFractionDigits=h.length+f.length):(i.minimumFractionDigits=u.length,i.maximumFractionDigits=u.length),""});var n=o.options[0];n==="w"?i=U(U({},i),{trailingZeroDisplay:"stripIfInteger"}):n&&(i=U(U({},i),Uo(n)));continue}if(vs.test(o.stem)){i=U(U({},i),Uo(o.stem));continue}var s=xs(o.stem);s&&(i=U(U({},i),s));var a=Eu(o.stem);a&&(i=U(U({},i),a))}return i}var ri={"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 Au(t,i){for(var e="",r=0;r<t.length;r++){var o=t.charAt(r);if(o==="j"){for(var n=0;r+1<t.length&&t.charAt(r+1)===o;)n++,r++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",u=Cu(i);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;s-- >0;)e=u+e}else o==="J"?e+="H":e+=o}return e}function Cu(t){var i=t.hourCycle;if(i===void 0&&t.hourCycles&&t.hourCycles.length&&(i=t.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,r;e!=="root"&&(r=t.maximize().region);var o=ri[r||""]||ri[e||""]||ri["".concat(e,"-001")]||ri["001"];return o[0]}var Yi,Tu=new RegExp("^".concat(bs.source,"*")),Pu=new RegExp("".concat(bs.source,"*$"));function H(t,i){return{start:t,end:i}}var Du=!!String.prototype.startsWith&&"_a".startsWith("a",1),ku=!!String.fromCodePoint,Mu=!!Object.fromEntries,Ou=!!String.prototype.codePointAt,Iu=!!String.prototype.trimStart,Nu=!!String.prototype.trimEnd,Lu=!!Number.isSafeInteger,Hu=Lu?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},xr=!0;try{var Bu=Es("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xr=((Yi=Bu.exec("a"))===null||Yi===void 0?void 0:Yi[0])==="a"}catch(t){xr=!1}var Vo=Du?function(i,e,r){return i.startsWith(e,r)}:function(i,e,r){return i.slice(r,r+e.length)===e},wr=ku?String.fromCodePoint:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];for(var r="",o=i.length,n=0,s;o>n;){if(s=i[n++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Yo=Mu?Object.fromEntries:function(i){for(var e={},r=0,o=i;r<o.length;r++){var n=o[r],s=n[0],a=n[1];e[s]=a}return e},ws=Ou?function(i,e){return i.codePointAt(e)}:function(i,e){var r=i.length;if(!(e<0||e>=r)){var o=i.charCodeAt(e),n;return o<55296||o>56319||e+1===r||(n=i.charCodeAt(e+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},$u=Iu?function(i){return i.trimStart()}:function(i){return i.replace(Tu,"")},Fu=Nu?function(i){return i.trimEnd()}:function(i){return i.replace(Pu,"")};function Es(t,i){return new RegExp(t,i)}var Er;if(xr){var Go=Es("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Er=function(i,e){var r;Go.lastIndex=e;var o=Go.exec(i);return(r=o[1])!==null&&r!==void 0?r:""}}else Er=function(i,e){for(var r=[];;){var o=ws(i,e);if(o===void 0||Ss(o)||ju(o))break;r.push(o),e+=o>=65536?2:1}return wr.apply(void 0,r)};var Ru=function(){function t(i,e){e===void 0&&(e={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(i,e,r){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(i,r);if(s.err)return s;o.push(s.val)}else{if(n===125&&i>0)break;if(n===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:q.pound,location:H(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(L.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Sr(this.peek()||0)){var s=this.parseTag(i,e);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(i,e);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},t.prototype.parseTag=function(i,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:q.literal,value:"<".concat(o,"/>"),location:H(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(i+1,e,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Sr(this.char()))return this.error(L.INVALID_TAG,H(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(L.UNMATCHED_CLOSING_TAG,H(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:q.tag,value:o,children:s,location:H(r,this.clonePosition())},err:null}:this.error(L.INVALID_TAG,H(a,this.clonePosition())))}else return this.error(L.UNCLOSED_TAG,H(r,this.clonePosition()))}else return this.error(L.INVALID_TAG,H(r,this.clonePosition()))},t.prototype.parseTagName=function(){var i=this.offset();for(this.bump();!this.isEOF()&&Uu(this.char());)this.bump();return this.message.slice(i,this.offset())},t.prototype.parseLiteral=function(i,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n){o+=n;continue}var s=this.tryParseUnquoted(i,e);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=H(r,this.clonePosition());return{val:{type:q.literal,value:o,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(i){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(i==="plural"||i==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return wr.apply(void 0,e)},t.prototype.tryParseUnquoted=function(i,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&i>0?null:(this.bump(),wr(r))},t.prototype.parseArgument=function(i,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(L.EMPTY_ARGUMENT,H(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(L.MALFORMED_ARGUMENT,H(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:q.argument,value:o,location:H(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition())):this.parseArgumentOptions(i,e,o,r);default:return this.error(L.MALFORMED_ARGUMENT,H(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),e=this.offset(),r=Er(this.message,e),o=e+r.length;this.bumpTo(o);var n=this.clonePosition(),s=H(i,n);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(i,e,r,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(L.EXPECT_ARGUMENT_TYPE,H(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=Fu(d.val);if(h.length===0)return this.error(L.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var f=H(c,this.clonePosition());u={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var y=H(o,this.clonePosition());if(u&&Vo(u==null?void 0:u.style,"::",0)){var D=$u(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(D,u.styleLocation);return d.err?d:{val:{type:q.number,value:r,location:y,style:d.val},err:null}}else{if(D.length===0)return this.error(L.EXPECT_DATE_TIME_SKELETON,y);var k=D;this.locale&&(k=Au(D,this.locale));var h={type:mt.dateTime,pattern:k,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?bu(k):{}},P=a==="date"?q.date:q.time;return{val:{type:P,value:r,location:y,style:h},err:null}}}return{val:{type:a==="number"?q.number:a==="date"?q.date:q.time,value:r,location:y,style:(n=u==null?void 0:u.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS,H(R,U({},R)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),O=0;if(a!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),j=this.parseIdentifierIfPossible(),O=d.val}var J=this.tryParsePluralOrSelectOptions(i,a,e,j);if(J.err)return J;var p=this.tryParseArgumentClose(o);if(p.err)return p;var ce=H(o,this.clonePosition());return a==="select"?{val:{type:q.select,value:r,options:Yo(J.val),location:ce},err:null}:{val:{type:q.plural,value:r,options:Yo(J.val),offset:O,pluralType:a==="plural"?"cardinal":"ordinal",location:ce},err:null}}default:return this.error(L.INVALID_ARGUMENT_TYPE,H(s,l))}},t.prototype.tryParseArgumentClose=function(i){return this.isEOF()||this.char()!==125?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(L.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(o,this.clonePosition()));this.bump();break}case 123:{i+=1,this.bump();break}case 125:{if(i>0)i-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(i,e){var r=[];try{r=yu(i)}catch(o){return this.error(L.INVALID_NUMBER_SKELETON,e)}return{val:{type:mt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Su(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(i,e,r,o){for(var n,s=!1,a=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR,L.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=H(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?L.DUPLICATE_SELECT_ARGUMENT_SELECTOR:L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(i+1,e,r);if(p.err)return p;var y=this.tryParseArgumentClose(f);if(y.err)return y;a.push([u,{value:p.val,location:H(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),n=this.parseIdentifierIfPossible(),u=n.value,c=n.location}return a.length===0?this.error(e==="select"?L.EXPECT_SELECT_ARGUMENT_SELECTOR:L.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(L.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(i,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=H(o,this.clonePosition());return n?(s*=r,Hu(s)?{val:s,err:null}:this.error(e,l)):this.error(i,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var e=ws(this.message,i);if(e===void 0)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(i,e){return{val:null,err:{kind:i,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var i=this.char();i===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=i<65536?1:2)}},t.prototype.bumpIf=function(i){if(Vo(this.message,i,this.offset())){for(var e=0;e<i.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(i){var e=this.offset(),r=this.message.indexOf(i,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(i){if(this.offset()>i)throw Error("targetOffset ".concat(i," must be greater than or equal to the current offset ").concat(this.offset()));for(i=Math.min(i,this.message.length);;){var e=this.offset();if(e===i)break;if(e>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ss(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(i>=65536?2:1));return r!=null?r:null},t}();function Sr(t){return t>=97&&t<=122||t>=65&&t<=90}function zu(t){return Sr(t)||t===47}function Uu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Ss(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function ju(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Ar(t){t.forEach(function(i){if(delete i.location,ps(i)||ms(i))for(var e in i.options)delete i.options[e].location,Ar(i.options[e].value);else ds(i)&&gs(i.style)||(hs(i)||fs(i))&&yr(i.style)?delete i.style.location:_s(i)&&Ar(i.children)})}function Vu(t,i){i===void 0&&(i={}),i=U({shouldParseSkeletons:!0,requiresOtherClause:!0},i);var e=new Ru(t,i).parse();if(e.err){var r=SyntaxError(L[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return i!=null&&i.captureLocation||Ar(e.val),e.val}var _t;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(_t||(_t={}));var Di=function(t){He(i,t);function i(e,r,o){var n=t.call(this,e)||this;return n.code=r,n.originalMessage=o,n}return i.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},i}(Error),Wo=function(t){He(i,t);function i(e,r,o,n){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),_t.INVALID_VALUE,n)||this}return i}(Di),Yu=function(t){He(i,t);function i(e,r,o){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),_t.INVALID_VALUE,o)||this}return i}(Di),Gu=function(t){He(i,t);function i(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),_t.MISSING_VALUE,r)||this}return i}(Di),ue;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ue||(ue={}));function Wu(t){return t.length<2?t:t.reduce(function(i,e){var r=i[i.length-1];return!r||r.type!==ue.literal||e.type!==ue.literal?i.push(e):r.value+=e.value,i},[])}function qu(t){return typeof t=="function"}function di(t,i,e,r,o,n,s){if(t.length===1&&Ro(t[0]))return[{type:ue.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Ro(c)){a.push({type:ue.literal,value:c.value});continue}if(_u(c)){typeof n=="number"&&a.push({type:ue.literal,value:e.getNumberFormat(i).format(n)});continue}var d=c.value;if(!(o&&d in o))throw new Gu(d,s);var h=o[d];if(mu(c)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ue.literal:ue.object,value:h});continue}if(hs(c)){var f=typeof c.style=="string"?r.date[c.style]:yr(c.style)?c.style.parsedOptions:void 0;a.push({type:ue.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(fs(c)){var f=typeof c.style=="string"?r.time[c.style]:yr(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ue.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(ds(c)){var f=typeof c.style=="string"?r.number[c.style]:gs(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ue.literal,value:e.getNumberFormat(i,f).format(h)});continue}if(_s(c)){var p=c.children,y=c.value,D=o[y];if(!qu(D))throw new Yu(y,"function",s);var k=di(p,i,e,r,o,n),P=D(k.map(function(O){return O.value}));Array.isArray(P)||(P=[P]),a.push.apply(a,P.map(function(O){return{type:typeof O=="string"?ue.literal:ue.object,value:O}}))}if(ps(c)){var R=c.options[h]||c.options.other;if(!R)throw new Wo(c.value,h,Object.keys(c.options),s);a.push.apply(a,di(R.value,i,e,r,o));continue}if(ms(c)){var R=c.options["=".concat(h)];if(!R){if(!Intl.PluralRules)throw new Di(`Intl.PluralRules is not available in this environment.
16
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function xr(t,i){if(t){var e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Pi=function(){function t(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var i,e,r,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=br(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(y){i={error:y}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}else s.remove(this);var c=this.initialTeardown;if(Le(c))try{c()}catch(y){n=y instanceof ji?y.errors:[y]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=br(d),f=h.next();!f.done;f=h.next()){var p=f.value;try{Io(p)}catch(y){n=n!=null?n:[],y instanceof ji?n=yr(yr([],vr(n)),vr(y.errors)):n.push(y)}}}catch(y){r={error:y}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(n)throw new ji(n)}},t.prototype.add=function(i){var e;if(i&&i!==this)if(this.closed)Io(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}},t.prototype._hasParent=function(i){var e=this._parentage;return e===i||Array.isArray(e)&&e.includes(i)},t.prototype._addParent=function(i){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i},t.prototype._removeParent=function(i){var e=this._parentage;e===i?this._parentage=null:Array.isArray(e)&&xr(e,i)},t.prototype.remove=function(i){var e=this._finalizers;e&&xr(e,i),i instanceof t&&i._removeParent(this)},t.EMPTY=function(){var i=new t;return i.closed=!0,i}(),t}(),is=Pi.EMPTY;function rs(t){return t instanceof Pi||t&&"closed"in t&&Le(t.remove)&&Le(t.add)&&Le(t.unsubscribe)}function Io(t){Le(t)?t():t.unsubscribe()}var Ml={Promise:void 0},Ol={setTimeout:function(t,i){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,yr([t,i],vr(e)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Il(t){Ol.setTimeout(function(){throw t})}function No(){}function ci(t){t()}var os=function(t){Jt(i,t);function i(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,rs(e)&&e.add(r)):r.destination=Hl,r}return i.create=function(e,r,o){return new wr(e,r,o)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(Pi),Nl=function(){function t(i){this.partialObserver=i}return t.prototype.next=function(i){var e=this.partialObserver;if(e.next)try{e.next(i)}catch(r){ii(r)}},t.prototype.error=function(i){var e=this.partialObserver;if(e.error)try{e.error(i)}catch(r){ii(r)}else ii(i)},t.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(e){ii(e)}},t}(),wr=function(t){Jt(i,t);function i(e,r,o){var n=t.call(this)||this,s;return Le(e)||!e?s={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:s=e,n.destination=new Nl(s),n}return i}(os);function ii(t){Il(t)}function Ll(t){throw t}var Hl={closed:!0,next:No,error:Ll,complete:No},Bl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function $l(t){return t}function Fl(t){return t.length===0?$l:t.length===1?t[0]:function(e){return t.reduce(function(r,o){return o(r)},e)}}var Lo=function(){function t(i){i&&(this._subscribe=i)}return t.prototype.lift=function(i){var e=new t;return e.source=this,e.operator=i,e},t.prototype.subscribe=function(i,e,r){var o=this,n=zl(i)?i:new wr(i,e,r);return ci(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},t.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(e){i.error(e)}},t.prototype.forEach=function(i,e){var r=this;return e=Ho(e),new e(function(o,n){var s=new wr({next:function(a){try{i(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});r.subscribe(s)})},t.prototype._subscribe=function(i){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(i)},t.prototype[Bl]=function(){return this},t.prototype.pipe=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return Fl(i)(this)},t.prototype.toPromise=function(i){var e=this;return i=Ho(i),new i(function(r,o){var n;e.subscribe(function(s){return n=s},function(s){return o(s)},function(){return r(n)})})},t.create=function(i){return new t(i)},t}();function Ho(t){var i;return(i=t!=null?t:Ml.Promise)!==null&&i!==void 0?i:Promise}function Rl(t){return t&&Le(t.next)&&Le(t.error)&&Le(t.complete)}function zl(t){return t&&t instanceof os||Rl(t)&&rs(t)}var Ul=ts(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ns=function(t){Jt(i,t);function i(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.prototype.lift=function(e){var r=new Bo(this,this);return r.operator=e,r},i.prototype._throwIfClosed=function(){if(this.closed)throw new Ul},i.prototype.next=function(e){var r=this;ci(function(){var o,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=br(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(e)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},i.prototype.error=function(e){var r=this;ci(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},i.prototype.complete=function(){var e=this;ci(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var r=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?is:(this.currentObservers=null,a.push(e),new Pi(function(){r.currentObservers=null,xr(a,e)}))},i.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,n=r.thrownError,s=r.isStopped;o?e.error(n):s&&e.complete()},i.prototype.asObservable=function(){var e=new Lo;return e.source=this,e},i.create=function(e,r){return new Bo(e,r)},i}(Lo),Bo=function(t){Jt(i,t);function i(e,r){var o=t.call(this)||this;return o.destination=e,o.source=r,o}return i.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},i.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},i.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},i.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:is},i}(ns),ss={now:function(){return(ss.delegate||Date).now()},delegate:void 0},jl=function(t){Jt(i,t);function i(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=ss);var n=t.call(this)||this;return n._bufferSize=e,n._windowTime=r,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,r),n}return i.prototype.next=function(e){var r=this,o=r.isStopped,n=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(n.push(e),!s&&n.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},i.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!e.closed;l+=n?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),r},i.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,n=e._buffer,s=e._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),u=0,c=1;c<n.length&&n[c]<=l;c+=2)u=c;u&&n.splice(0,u+1)}},i}(ns);const $o=[],Fo={},Vl=(t,i=0)=>{if($o.indexOf(t)==-1){const e=new jl(i);Fo[t]=e,$o.push(t)}return Fo[t]},ot=[];function Yl(t,i){return{subscribe:Di(t,i).subscribe}}function Di(t,i=Ee){let e;const r=new Set;function o(a){if(Zn(t,a)&&(t=a,e)){const l=!ot.length;for(const u of r)u[1](),ot.push(u,t);if(l){for(let u=0;u<ot.length;u+=2)ot[u][0](ot[u+1]);ot.length=0}}}function n(a){o(a(t))}function s(a,l=Ee){const u=[a,l];return r.add(u),r.size===1&&(e=i(o,n)||Ee),a(t),()=>{r.delete(u),r.size===0&&e&&(e(),e=null)}}return{set:o,update:n,subscribe:s}}function wt(t,i,e){const r=!Array.isArray(t),o=r?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=i.length<2;return Yl(e,(s,a)=>{let l=!1;const u=[];let c=0,d=Ee;const h=()=>{if(c)return;d();const p=i(r?u[0]:u,s,a);n?s(p):d=to(p)?p:Ee},f=o.map((p,y)=>Qn(p,D=>{u[y]=D,c&=~(1<<y),l&&h()},()=>{c|=1<<y}));return l=!0,h(),function(){xt(f),d(),l=!1}})}var Gl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function as(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wl=function(i){return ql(i)&&!Xl(i)};function ql(t){return!!t&&typeof t=="object"}function Xl(t){var i=Object.prototype.toString.call(t);return i==="[object RegExp]"||i==="[object Date]"||Zl(t)}var Kl=typeof Symbol=="function"&&Symbol.for,Jl=Kl?Symbol.for("react.element"):60103;function Zl(t){return t.$$typeof===Jl}function Ql(t){return Array.isArray(t)?[]:{}}function Rt(t,i){return i.clone!==!1&&i.isMergeableObject(t)?ft(Ql(t),t,i):t}function eu(t,i,e){return t.concat(i).map(function(r){return Rt(r,e)})}function tu(t,i){if(!i.customMerge)return ft;var e=i.customMerge(t);return typeof e=="function"?e:ft}function iu(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(i){return Object.propertyIsEnumerable.call(t,i)}):[]}function Ro(t){return Object.keys(t).concat(iu(t))}function ls(t,i){try{return i in t}catch(e){return!1}}function ru(t,i){return ls(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}function ou(t,i,e){var r={};return e.isMergeableObject(t)&&Ro(t).forEach(function(o){r[o]=Rt(t[o],e)}),Ro(i).forEach(function(o){ru(t,o)||(ls(t,o)&&e.isMergeableObject(i[o])?r[o]=tu(o,e)(t[o],i[o],e):r[o]=Rt(i[o],e))}),r}function ft(t,i,e){e=e||{},e.arrayMerge=e.arrayMerge||eu,e.isMergeableObject=e.isMergeableObject||Wl,e.cloneUnlessOtherwiseSpecified=Rt;var r=Array.isArray(i),o=Array.isArray(t),n=r===o;return n?r?e.arrayMerge(t,i,e):ou(t,i,e):Rt(i,e)}ft.all=function(i,e){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(r,o){return ft(r,o,e)},{})};var nu=ft,su=nu;const au=as(su);var Er=function(t,i){return Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])},Er(t,i)};function ki(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Er(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var De=function(){return De=Object.assign||function(i){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},De.apply(this,arguments)};function lu(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]]);return e}function Vi(t,i,e){if(e||arguments.length===2)for(var r=0,o=i.length,n;r<o;r++)(n||!(r in i))&&(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||Array.prototype.slice.call(i))}function Yi(t,i){var e=i&&i.cache?i.cache:mu,r=i&&i.serializer?i.serializer:fu,o=i&&i.strategy?i.strategy:du;return o(t,{cache:e,serializer:r})}function uu(t){return t==null||typeof t=="number"||typeof t=="boolean"}function cu(t,i,e,r){var o=uu(r)?r:e(r),n=i.get(o);return typeof n=="undefined"&&(n=t.call(this,r),i.set(o,n)),n}function us(t,i,e){var r=Array.prototype.slice.call(arguments,3),o=e(r),n=i.get(o);return typeof n=="undefined"&&(n=t.apply(this,r),i.set(o,n)),n}function cs(t,i,e,r,o){return e.bind(i,t,r,o)}function du(t,i){var e=t.length===1?cu:us;return cs(t,this,e,i.cache.create(),i.serializer)}function hu(t,i){return cs(t,this,us,i.cache.create(),i.serializer)}var fu=function(){return JSON.stringify(arguments)},pu=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(i){return this.cache[i]},t.prototype.set=function(i,e){this.cache[i]=e},t}(),mu={create:function(){return new pu}},Gi={variadic:hu},gi=function(){return gi=Object.assign||function(i){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},gi.apply(this,arguments)};var L;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(L||(L={}));var W;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(W||(W={}));var pt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(pt||(pt={}));function zo(t){return t.type===W.literal}function _u(t){return t.type===W.argument}function ds(t){return t.type===W.number}function hs(t){return t.type===W.date}function fs(t){return t.type===W.time}function ps(t){return t.type===W.select}function ms(t){return t.type===W.plural}function gu(t){return t.type===W.pound}function _s(t){return t.type===W.tag}function gs(t){return!!(t&&typeof t=="object"&&t.type===pt.number)}function Sr(t){return!!(t&&typeof t=="object"&&t.type===pt.dateTime)}var bs=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,bu=/(?:[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 vu(t){var i={};return t.replace(bu,function(e){var r=e.length;switch(e[0]){case"G":i.era=r===4?"long":r===5?"narrow":"short";break;case"y":i.year=r===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":i.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][r-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][r-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][r-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][r-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":i.minute=["numeric","2-digit"][r-1];break;case"s":i.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=r<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""}),i}var J=function(){return J=Object.assign||function(i){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},J.apply(this,arguments)};var yu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function xu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var i=t.split(yu).filter(function(h){return h.length>0}),e=[],r=0,o=i;r<o.length;r++){var n=o[r],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function wu(t){return t.replace(/^(.*?)-/,"")}var Uo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vs=/^(@+)?(\+|#+)?[rs]?$/g,Eu=/(\*)(0+)|(#+)(0+)|(0+)/g,ys=/^(0+)$/;function jo(t){var i={};return t[t.length-1]==="r"?i.roundingPriority="morePrecision":t[t.length-1]==="s"&&(i.roundingPriority="lessPrecision"),t.replace(vs,function(e,r,o){return typeof o!="string"?(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length):o==="+"?i.minimumSignificantDigits=r.length:r[0]==="#"?i.maximumSignificantDigits=r.length:(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),i}function xs(t){switch(t){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 Su(t){var i;if(t[0]==="E"&&t[1]==="E"?(i={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(i={notation:"scientific"},t=t.slice(1)),i){var e=t.slice(0,2);if(e==="+!"?(i.signDisplay="always",t=t.slice(2)):e==="+?"&&(i.signDisplay="exceptZero",t=t.slice(2)),!ys.test(t))throw new Error("Malformed concise eng/scientific notation");i.minimumIntegerDigits=t.length}return i}function Vo(t){var i={},e=xs(t);return e||i}function Au(t){for(var i={},e=0,r=t;e<r.length;e++){var o=r[e];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=wu(o.options[0]);continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=J(J(J({},i),{notation:"scientific"}),o.options.reduce(function(l,u){return J(J({},l),Vo(u))},{}));continue;case"engineering":i=J(J(J({},i),{notation:"engineering"}),o.options.reduce(function(l,u){return J(J({},l),Vo(u))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":i.roundingMode="floor";continue;case"rounding-mode-ceiling":i.roundingMode="ceil";continue;case"rounding-mode-down":i.roundingMode="trunc";continue;case"rounding-mode-up":i.roundingMode="expand";continue;case"rounding-mode-half-even":i.roundingMode="halfEven";continue;case"rounding-mode-half-down":i.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":i.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Eu,function(l,u,c,d,h,f){if(u)i.minimumIntegerDigits=c.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ys.test(o.stem)){i.minimumIntegerDigits=o.stem.length;continue}if(Uo.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Uo,function(l,u,c,d,h,f){return c==="*"?i.minimumFractionDigits=u.length:d&&d[0]==="#"?i.maximumFractionDigits=d.length:h&&f?(i.minimumFractionDigits=h.length,i.maximumFractionDigits=h.length+f.length):(i.minimumFractionDigits=u.length,i.maximumFractionDigits=u.length),""});var n=o.options[0];n==="w"?i=J(J({},i),{trailingZeroDisplay:"stripIfInteger"}):n&&(i=J(J({},i),jo(n)));continue}if(vs.test(o.stem)){i=J(J({},i),jo(o.stem));continue}var s=xs(o.stem);s&&(i=J(J({},i),s));var a=Su(o.stem);a&&(i=J(J({},i),a))}return i}var ri={"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 Cu(t,i){for(var e="",r=0;r<t.length;r++){var o=t.charAt(r);if(o==="j"){for(var n=0;r+1<t.length&&t.charAt(r+1)===o;)n++,r++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",u=Tu(i);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;s-- >0;)e=u+e}else o==="J"?e+="H":e+=o}return e}function Tu(t){var i=t.hourCycle;if(i===void 0&&t.hourCycles&&t.hourCycles.length&&(i=t.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,r;e!=="root"&&(r=t.maximize().region);var o=ri[r||""]||ri[e||""]||ri["".concat(e,"-001")]||ri["001"];return o[0]}var Wi,Pu=new RegExp("^".concat(bs.source,"*")),Du=new RegExp("".concat(bs.source,"*$"));function H(t,i){return{start:t,end:i}}var ku=!!String.prototype.startsWith&&"_a".startsWith("a",1),Mu=!!String.fromCodePoint,Ou=!!Object.fromEntries,Iu=!!String.prototype.codePointAt,Nu=!!String.prototype.trimStart,Lu=!!String.prototype.trimEnd,Hu=!!Number.isSafeInteger,Bu=Hu?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ar=!0;try{var $u=Es("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ar=((Wi=$u.exec("a"))===null||Wi===void 0?void 0:Wi[0])==="a"}catch(t){Ar=!1}var Yo=ku?function(i,e,r){return i.startsWith(e,r)}:function(i,e,r){return i.slice(r,r+e.length)===e},Cr=Mu?String.fromCodePoint:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];for(var r="",o=i.length,n=0,s;o>n;){if(s=i[n++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Go=Ou?Object.fromEntries:function(i){for(var e={},r=0,o=i;r<o.length;r++){var n=o[r],s=n[0],a=n[1];e[s]=a}return e},ws=Iu?function(i,e){return i.codePointAt(e)}:function(i,e){var r=i.length;if(!(e<0||e>=r)){var o=i.charCodeAt(e),n;return o<55296||o>56319||e+1===r||(n=i.charCodeAt(e+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},Fu=Nu?function(i){return i.trimStart()}:function(i){return i.replace(Pu,"")},Ru=Lu?function(i){return i.trimEnd()}:function(i){return i.replace(Du,"")};function Es(t,i){return new RegExp(t,i)}var Tr;if(Ar){var Wo=Es("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tr=function(i,e){var r;Wo.lastIndex=e;var o=Wo.exec(i);return(r=o[1])!==null&&r!==void 0?r:""}}else Tr=function(i,e){for(var r=[];;){var o=ws(i,e);if(o===void 0||Ss(o)||Vu(o))break;r.push(o),e+=o>=65536?2:1}return Cr.apply(void 0,r)};var zu=function(){function t(i,e){e===void 0&&(e={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(i,e,r){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(i,r);if(s.err)return s;o.push(s.val)}else{if(n===125&&i>0)break;if(n===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:W.pound,location:H(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(L.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Pr(this.peek()||0)){var s=this.parseTag(i,e);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(i,e);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},t.prototype.parseTag=function(i,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:W.literal,value:"<".concat(o,"/>"),location:H(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(i+1,e,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Pr(this.char()))return this.error(L.INVALID_TAG,H(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(L.UNMATCHED_CLOSING_TAG,H(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:W.tag,value:o,children:s,location:H(r,this.clonePosition())},err:null}:this.error(L.INVALID_TAG,H(a,this.clonePosition())))}else return this.error(L.UNCLOSED_TAG,H(r,this.clonePosition()))}else return this.error(L.INVALID_TAG,H(r,this.clonePosition()))},t.prototype.parseTagName=function(){var i=this.offset();for(this.bump();!this.isEOF()&&ju(this.char());)this.bump();return this.message.slice(i,this.offset())},t.prototype.parseLiteral=function(i,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n){o+=n;continue}var s=this.tryParseUnquoted(i,e);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=H(r,this.clonePosition());return{val:{type:W.literal,value:o,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Uu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(i){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(i==="plural"||i==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return Cr.apply(void 0,e)},t.prototype.tryParseUnquoted=function(i,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&i>0?null:(this.bump(),Cr(r))},t.prototype.parseArgument=function(i,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(L.EMPTY_ARGUMENT,H(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(L.MALFORMED_ARGUMENT,H(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:W.argument,value:o,location:H(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition())):this.parseArgumentOptions(i,e,o,r);default:return this.error(L.MALFORMED_ARGUMENT,H(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),e=this.offset(),r=Tr(this.message,e),o=e+r.length;this.bumpTo(o);var n=this.clonePosition(),s=H(i,n);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(i,e,r,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(L.EXPECT_ARGUMENT_TYPE,H(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=Ru(d.val);if(h.length===0)return this.error(L.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var f=H(c,this.clonePosition());u={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var y=H(o,this.clonePosition());if(u&&Yo(u==null?void 0:u.style,"::",0)){var D=Fu(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(D,u.styleLocation);return d.err?d:{val:{type:W.number,value:r,location:y,style:d.val},err:null}}else{if(D.length===0)return this.error(L.EXPECT_DATE_TIME_SKELETON,y);var k=D;this.locale&&(k=Cu(D,this.locale));var h={type:pt.dateTime,pattern:k,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?vu(k):{}},P=a==="date"?W.date:W.time;return{val:{type:P,value:r,location:y,style:h},err:null}}}return{val:{type:a==="number"?W.number:a==="date"?W.date:W.time,value:r,location:y,style:(n=u==null?void 0:u.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS,H(R,gi({},R)));this.bumpSpace();var U=this.parseIdentifierIfPossible(),O=0;if(a!=="select"&&U.value==="offset"){if(!this.bumpIf(":"))return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),U=this.parseIdentifierIfPossible(),O=d.val}var K=this.tryParsePluralOrSelectOptions(i,a,e,U);if(K.err)return K;var p=this.tryParseArgumentClose(o);if(p.err)return p;var ce=H(o,this.clonePosition());return a==="select"?{val:{type:W.select,value:r,options:Go(K.val),location:ce},err:null}:{val:{type:W.plural,value:r,options:Go(K.val),offset:O,pluralType:a==="plural"?"cardinal":"ordinal",location:ce},err:null}}default:return this.error(L.INVALID_ARGUMENT_TYPE,H(s,l))}},t.prototype.tryParseArgumentClose=function(i){return this.isEOF()||this.char()!==125?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,H(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(L.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(o,this.clonePosition()));this.bump();break}case 123:{i+=1,this.bump();break}case 125:{if(i>0)i-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(i,e){var r=[];try{r=xu(i)}catch(o){return this.error(L.INVALID_NUMBER_SKELETON,e)}return{val:{type:pt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Au(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(i,e,r,o){for(var n,s=!1,a=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR,L.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=H(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?L.DUPLICATE_SELECT_ARGUMENT_SELECTOR:L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(i+1,e,r);if(p.err)return p;var y=this.tryParseArgumentClose(f);if(y.err)return y;a.push([u,{value:p.val,location:H(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),n=this.parseIdentifierIfPossible(),u=n.value,c=n.location}return a.length===0?this.error(e==="select"?L.EXPECT_SELECT_ARGUMENT_SELECTOR:L.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(L.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(i,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=H(o,this.clonePosition());return n?(s*=r,Bu(s)?{val:s,err:null}:this.error(e,l)):this.error(i,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var e=ws(this.message,i);if(e===void 0)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(i,e){return{val:null,err:{kind:i,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var i=this.char();i===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=i<65536?1:2)}},t.prototype.bumpIf=function(i){if(Yo(this.message,i,this.offset())){for(var e=0;e<i.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(i){var e=this.offset(),r=this.message.indexOf(i,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(i){if(this.offset()>i)throw Error("targetOffset ".concat(i," must be greater than or equal to the current offset ").concat(this.offset()));for(i=Math.min(i,this.message.length);;){var e=this.offset();if(e===i)break;if(e>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ss(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(i>=65536?2:1));return r!=null?r:null},t}();function Pr(t){return t>=97&&t<=122||t>=65&&t<=90}function Uu(t){return Pr(t)||t===47}function ju(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Ss(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Vu(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Dr(t){t.forEach(function(i){if(delete i.location,ps(i)||ms(i))for(var e in i.options)delete i.options[e].location,Dr(i.options[e].value);else ds(i)&&gs(i.style)||(hs(i)||fs(i))&&Sr(i.style)?delete i.style.location:_s(i)&&Dr(i.children)})}function Yu(t,i){i===void 0&&(i={}),i=gi({shouldParseSkeletons:!0,requiresOtherClause:!0},i);var e=new zu(t,i).parse();if(e.err){var r=SyntaxError(L[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return i!=null&&i.captureLocation||Dr(e.val),e.val}var mt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(mt||(mt={}));var Mi=function(t){ki(i,t);function i(e,r,o){var n=t.call(this,e)||this;return n.code=r,n.originalMessage=o,n}return i.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},i}(Error),qo=function(t){ki(i,t);function i(e,r,o,n){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),mt.INVALID_VALUE,n)||this}return i}(Mi),Gu=function(t){ki(i,t);function i(e,r,o){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),mt.INVALID_VALUE,o)||this}return i}(Mi),Wu=function(t){ki(i,t);function i(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),mt.MISSING_VALUE,r)||this}return i}(Mi),ue;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ue||(ue={}));function qu(t){return t.length<2?t:t.reduce(function(i,e){var r=i[i.length-1];return!r||r.type!==ue.literal||e.type!==ue.literal?i.push(e):r.value+=e.value,i},[])}function Xu(t){return typeof t=="function"}function di(t,i,e,r,o,n,s){if(t.length===1&&zo(t[0]))return[{type:ue.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(zo(c)){a.push({type:ue.literal,value:c.value});continue}if(gu(c)){typeof n=="number"&&a.push({type:ue.literal,value:e.getNumberFormat(i).format(n)});continue}var d=c.value;if(!(o&&d in o))throw new Wu(d,s);var h=o[d];if(_u(c)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ue.literal:ue.object,value:h});continue}if(hs(c)){var f=typeof c.style=="string"?r.date[c.style]:Sr(c.style)?c.style.parsedOptions:void 0;a.push({type:ue.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(fs(c)){var f=typeof c.style=="string"?r.time[c.style]:Sr(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ue.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(ds(c)){var f=typeof c.style=="string"?r.number[c.style]:gs(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ue.literal,value:e.getNumberFormat(i,f).format(h)});continue}if(_s(c)){var p=c.children,y=c.value,D=o[y];if(!Xu(D))throw new Gu(y,"function",s);var k=di(p,i,e,r,o,n),P=D(k.map(function(O){return O.value}));Array.isArray(P)||(P=[P]),a.push.apply(a,P.map(function(O){return{type:typeof O=="string"?ue.literal:ue.object,value:O}}))}if(ps(c)){var R=c.options[h]||c.options.other;if(!R)throw new qo(c.value,h,Object.keys(c.options),s);a.push.apply(a,di(R.value,i,e,r,o));continue}if(ms(c)){var R=c.options["=".concat(h)];if(!R){if(!Intl.PluralRules)throw new Mi(`Intl.PluralRules is not available in this environment.
17
17
  Try polyfilling it using "@formatjs/intl-pluralrules"
18
- `,_t.MISSING_INTL_API,s);var j=e.getPluralRules(i,{type:c.pluralType}).select(h-(c.offset||0));R=c.options[j]||c.options.other}if(!R)throw new Wo(c.value,h,Object.keys(c.options),s);a.push.apply(a,di(R.value,i,e,r,o,h-(c.offset||0)));continue}}return Wu(a)}function Xu(t,i){return i?U(U(U({},t||{}),i||{}),Object.keys(t).reduce(function(e,r){return e[r]=U(U({},t[r]),i[r]||{}),e},{})):t}function Ku(t,i){return i?Object.keys(t).reduce(function(e,r){return e[r]=Xu(t[r],i[r]),e},U({},t)):t}function Gi(t){return{create:function(){return{get:function(i){return t[i]},set:function(i,e){t[i]=e}}}}}function Ju(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ji(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.NumberFormat).bind.apply(i,ut([void 0],e,!1)))},{cache:Gi(t.number),strategy:Vi.variadic}),getDateTimeFormat:ji(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.DateTimeFormat).bind.apply(i,ut([void 0],e,!1)))},{cache:Gi(t.dateTime),strategy:Vi.variadic}),getPluralRules:ji(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.PluralRules).bind.apply(i,ut([void 0],e,!1)))},{cache:Gi(t.pluralRules),strategy:Vi.variadic})}}var Zu=function(){function t(i,e,r,o){e===void 0&&(e=t.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=n.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,h){return!d.length||h.type!==ue.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return di(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof i=="string"){if(this.message=i,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Ml(s,["formatters"]);this.ast=t.__parse(i,U(U({},a),{locale:this.resolvedLocale}))}else this.ast=i;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ku(t.formats,r),this.formatters=o&&o.formatters||Ju(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(i){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(i);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof i=="string"?i:i[0])}},t.__parse=Vu,t.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"}}},t}();function Qu(t,i){if(i==null)return;if(i in t)return t[i];const e=i.split(".");let r=t;for(let o=0;o<e.length;o++)if(typeof r=="object"){if(o>0){const n=e.slice(o,e.length).join(".");if(n in r){r=r[n];break}}r=r[e[o]]}else r=void 0;return r}const Fe={},ec=(t,i,e)=>e&&(i in Fe||(Fe[i]={}),t in Fe[i]||(Fe[i][t]=e),e),As=(t,i)=>{if(i==null)return;if(i in Fe&&t in Fe[i])return Fe[i][t];const e=ki(i);for(let r=0;r<e.length;r++){const o=e[r],n=ic(o,t);if(n)return ec(t,i,n)}};let eo;const Zt=Pi({});function tc(t){return eo[t]||null}function Cs(t){return t in eo}function ic(t,i){if(!Cs(t))return null;const e=tc(t);return Qu(e,i)}function rc(t){if(t==null)return;const i=ki(t);for(let e=0;e<i.length;e++){const r=i[e];if(Cs(r))return r}}function Ts(t,...i){delete Fe[t],Zt.update(e=>(e[t]=lu.all([e[t]||{},...i]),e))}Et([Zt],([t])=>Object.keys(t));Zt.subscribe(t=>eo=t);const hi={};function oc(t,i){hi[t].delete(i),hi[t].size===0&&delete hi[t]}function Ps(t){return hi[t]}function nc(t){return ki(t).map(i=>{const e=Ps(i);return[i,e?[...e]:[]]}).filter(([,i])=>i.length>0)}function Cr(t){return t==null?!1:ki(t).some(i=>{var e;return(e=Ps(i))==null?void 0:e.size})}function sc(t,i){return Promise.all(i.map(r=>(oc(t,r),r().then(o=>o.default||o)))).then(r=>Ts(t,...r))}const Pt={};function Ds(t){if(!Cr(t))return t in Pt?Pt[t]:Promise.resolve();const i=nc(t);return Pt[t]=Promise.all(i.map(([e,r])=>sc(e,r))).then(()=>{if(Cr(t))return Ds(t);delete Pt[t]}),Pt[t]}const ac={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"}}},lc={fallbackLocale:null,loadingDelay:200,formats:ac,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},uc=lc;function gt(){return uc}const Wi=Pi(!1);var cc=Object.defineProperty,dc=Object.defineProperties,hc=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,pc=Object.prototype.propertyIsEnumerable,Xo=(t,i,e)=>i in t?cc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,mc=(t,i)=>{for(var e in i||(i={}))fc.call(i,e)&&Xo(t,e,i[e]);if(qo)for(var e of qo(i))pc.call(i,e)&&Xo(t,e,i[e]);return t},_c=(t,i)=>dc(t,hc(i));let Tr;const gi=Pi(null);function Ko(t){return t.split("-").map((i,e,r)=>r.slice(0,e+1).join("-")).reverse()}function ki(t,i=gt().fallbackLocale){const e=Ko(t);return i?[...new Set([...e,...Ko(i)])]:e}function Je(){return Tr!=null?Tr:void 0}gi.subscribe(t=>{Tr=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const gc=t=>{if(t&&rc(t)&&Cr(t)){const{loadingDelay:i}=gt();let e;return typeof window!="undefined"&&Je()!=null&&i?e=window.setTimeout(()=>Wi.set(!0),i):Wi.set(!0),Ds(t).then(()=>{gi.set(t)}).finally(()=>{clearTimeout(e),Wi.set(!1)})}return gi.set(t)},St=_c(mc({},gi),{set:gc}),Mi=t=>{const i=Object.create(null);return r=>{const o=JSON.stringify(r);return o in i?i[o]:i[o]=t(r)}};var bc=Object.defineProperty,bi=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Jo=(t,i,e)=>i in t?bc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,to=(t,i)=>{for(var e in i||(i={}))ks.call(i,e)&&Jo(t,e,i[e]);if(bi)for(var e of bi(i))Ms.call(i,e)&&Jo(t,e,i[e]);return t},At=(t,i)=>{var e={};for(var r in t)ks.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&bi)for(var r of bi(t))i.indexOf(r)<0&&Ms.call(t,r)&&(e[r]=t[r]);return e};const Ut=(t,i)=>{const{formats:e}=gt();if(t in e&&i in e[t])return e[t][i];throw new Error(`[svelte-i18n] Unknown "${i}" ${t} format.`)},vc=Mi(t=>{var i=t,{locale:e,format:r}=i,o=At(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Ut("number",r)),new Intl.NumberFormat(e,o)}),yc=Mi(t=>{var i=t,{locale:e,format:r}=i,o=At(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Ut("date",r):Object.keys(o).length===0&&(o=Ut("date","short")),new Intl.DateTimeFormat(e,o)}),xc=Mi(t=>{var i=t,{locale:e,format:r}=i,o=At(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Ut("time",r):Object.keys(o).length===0&&(o=Ut("time","short")),new Intl.DateTimeFormat(e,o)}),wc=(t={})=>{var i=t,{locale:e=Je()}=i,r=At(i,["locale"]);return vc(to({locale:e},r))},Ec=(t={})=>{var i=t,{locale:e=Je()}=i,r=At(i,["locale"]);return yc(to({locale:e},r))},Sc=(t={})=>{var i=t,{locale:e=Je()}=i,r=At(i,["locale"]);return xc(to({locale:e},r))},Ac=Mi((t,i=Je())=>new Zu(t,i,gt().formats,{ignoreTag:gt().ignoreTag})),Cc=(t,i={})=>{var e,r,o,n;let s=i;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=Je(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=As(t,l);if(!c)c=(n=(o=(r=(e=gt()).handleMissingMessage)==null?void 0:r.call(e,{locale:l,id:t,defaultValue:u}))!=null?o:u)!=null?n:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let d=c;try{d=Ac(c,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,h.message)}return d},Tc=(t,i)=>Sc(i).format(t),Pc=(t,i)=>Ec(i).format(t),Dc=(t,i)=>wc(i).format(t),kc=(t,i=Je())=>As(t,i),Mc=Et([St,Zt],()=>Cc);Et([St],()=>Tc);Et([St],()=>Pc);Et([St],()=>Dc);Et([St,Zt],()=>kc);window.emWidgets={topic:Yl};const Oc=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Os={exports:{}};(function(t,i){(function(e,r){t.exports=r()})(Wl,function(){var e=1e3,r=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",u="day",c="week",d="month",h="quarter",f="year",p="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var b=["th","st","nd","rd"],_=w%100;return"["+w+(b[(_-20)%10]||b[_]||b[0])+"]"}},R=function(w,b,_){var v=String(w);return!v||v.length>=b?w:""+Array(b+1-v.length).join(_)+w},j={s:R,z:function(w){var b=-w.utcOffset(),_=Math.abs(b),v=Math.floor(_/60),g=_%60;return(b<=0?"+":"-")+R(v,2,"0")+":"+R(g,2,"0")},m:function w(b,_){if(b.date()<_.date())return-w(_,b);var v=12*(_.year()-b.year())+(_.month()-b.month()),g=b.clone().add(v,d),S=_-g<0,E=b.clone().add(v+(S?-1:1),d);return+(-(v+(_-g)/(S?g-E:E-g))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:d,y:f,w:c,d:u,D:p,h:l,m:a,s,ms:n,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},O="en",J={};J[O]=P;var ce="$isDayjsObject",Q=function(w){return w instanceof me||!(!w||!w[ce])},ee=function w(b,_,v){var g;if(!b)return O;if(typeof b=="string"){var S=b.toLowerCase();J[S]&&(g=S),_&&(J[S]=_,g=S);var E=b.split("-");if(!g&&E.length>1)return w(E[0])}else{var B=b.name;J[B]=b,g=B}return!v&&g&&(O=g),g||!v&&O},I=function(w,b){if(Q(w))return w.clone();var _=typeof b=="object"?b:{};return _.date=w,_.args=arguments,new me(_)},N=j;N.l=ee,N.i=Q,N.w=function(w,b){return I(w,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var me=function(){function w(_){this.$L=ee(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[ce]=!0}var b=w.prototype;return b.parse=function(_){this.$d=function(v){var g=v.date,S=v.utc;if(g===null)return new Date(NaN);if(N.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var E=g.match(D);if(E){var B=E[2]-1||0,V=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)):new Date(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)}}return new Date(g)}(_),this.init()},b.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(_,v){var g=I(_);return this.startOf(v)<=g&&g<=this.endOf(v)},b.isAfter=function(_,v){return I(_)<this.startOf(v)},b.isBefore=function(_,v){return this.endOf(v)<I(_)},b.$g=function(_,v,g){return N.u(_)?this[v]:this.set(g,_)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(_,v){var g=this,S=!!N.u(v)||v,E=N.p(_),B=function(ne,$){var G=N.w(g.$u?Date.UTC(g.$y,$,ne):new Date(g.$y,$,ne),g);return S?G:G.endOf(u)},V=function(ne,$){return N.w(g.toDate()[ne].apply(g.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice($)),g)},Y=this.$W,W=this.$M,re=this.$D,_e="set"+(this.$u?"UTC":"");switch(E){case f:return S?B(1,0):B(31,11);case d:return S?B(1,W):B(0,W+1);case c:var ge=this.$locale().weekStart||0,ae=(Y<ge?Y+7:Y)-ge;return B(S?re-ae:re+(6-ae),W);case u:case p:return V(_e+"Hours",0);case l:return V(_e+"Minutes",1);case a:return V(_e+"Seconds",2);case s:return V(_e+"Milliseconds",3);default:return this.clone()}},b.endOf=function(_){return this.startOf(_,!1)},b.$set=function(_,v){var g,S=N.p(_),E="set"+(this.$u?"UTC":""),B=(g={},g[u]=E+"Date",g[p]=E+"Date",g[d]=E+"Month",g[f]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[s]=E+"Seconds",g[n]=E+"Milliseconds",g)[S],V=S===u?this.$D+(v-this.$W):v;if(S===d||S===f){var Y=this.clone().set(p,1);Y.$d[B](V),Y.init(),this.$d=Y.set(p,Math.min(this.$D,Y.daysInMonth())).$d}else B&&this.$d[B](V);return this.init(),this},b.set=function(_,v){return this.clone().$set(_,v)},b.get=function(_){return this[N.p(_)]()},b.add=function(_,v){var g,S=this;_=Number(_);var E=N.p(v),B=function(W){var re=I(S);return N.w(re.date(re.date()+Math.round(W*_)),S)};if(E===d)return this.set(d,this.$M+_);if(E===f)return this.set(f,this.$y+_);if(E===u)return B(1);if(E===c)return B(7);var V=(g={},g[a]=r,g[l]=o,g[s]=e,g)[E]||1,Y=this.$d.getTime()+_*V;return N.w(Y,this)},b.subtract=function(_,v){return this.add(-1*_,v)},b.format=function(_){var v=this,g=this.$locale();if(!this.isValid())return g.invalidDate||y;var S=_||"YYYY-MM-DDTHH:mm:ssZ",E=N.z(this),B=this.$H,V=this.$m,Y=this.$M,W=g.weekdays,re=g.months,_e=g.meridiem,ge=function($,G,Te,Se){return $&&($[G]||$(v,S))||Te[G].slice(0,Se)},ae=function($){return N.s(B%12||12,$,"0")},ne=_e||function($,G,Te){var Se=$<12?"AM":"PM";return Te?Se.toLowerCase():Se};return S.replace(k,function($,G){return G||function(Te){switch(Te){case"YY":return String(v.$y).slice(-2);case"YYYY":return N.s(v.$y,4,"0");case"M":return Y+1;case"MM":return N.s(Y+1,2,"0");case"MMM":return ge(g.monthsShort,Y,re,3);case"MMMM":return ge(re,Y);case"D":return v.$D;case"DD":return N.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ge(g.weekdaysMin,v.$W,W,2);case"ddd":return ge(g.weekdaysShort,v.$W,W,3);case"dddd":return W[v.$W];case"H":return String(B);case"HH":return N.s(B,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return ne(B,V,!0);case"A":return ne(B,V,!1);case"m":return String(V);case"mm":return N.s(V,2,"0");case"s":return String(v.$s);case"ss":return N.s(v.$s,2,"0");case"SSS":return N.s(v.$ms,3,"0");case"Z":return E}return null}($)||E.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(_,v,g){var S,E=this,B=N.p(v),V=I(_),Y=(V.utcOffset()-this.utcOffset())*r,W=this-V,re=function(){return N.m(E,V)};switch(B){case f:S=re()/12;break;case d:S=re();break;case h:S=re()/3;break;case c:S=(W-Y)/6048e5;break;case u:S=(W-Y)/864e5;break;case l:S=W/o;break;case a:S=W/r;break;case s:S=W/e;break;default:S=W}return g?S:N.a(S)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return J[this.$L]},b.locale=function(_,v){if(!_)return this.$L;var g=this.clone(),S=ee(_,v,!0);return S&&(g.$L=S),g},b.clone=function(){return N.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},w}(),Be=me.prototype;return I.prototype=Be,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",u],["$M",d],["$y",f],["$D",p]].forEach(function(w){Be[w[1]]=function(b){return this.$g(b,w[0],w[1])}}),I.extend=function(w,b){return w.$i||(w(b,me,I),w.$i=!0),I},I.locale=ee,I.isDayjs=Q,I.unix=function(w){return I(1e3*w)},I.en=J[O],I.Ls=J,I.p={},I})})(Os);var Ic=Os.exports;const qi=as(Ic);function Zo(t,i){Ts(t,i)}function Nc(t){St.set(t)}const Qo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};function Lc(t,i){if(t){const e=document.createElement("style");e.innerHTML=i,t.appendChild(e)}}function Hc(t,i){const e=new URL(i);fetch(e.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,t&&t.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Bc(t,i,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(i,o=>{r.innerHTML=o,t&&t.appendChild(r)})}}/**
18
+ `,mt.MISSING_INTL_API,s);var U=e.getPluralRules(i,{type:c.pluralType}).select(h-(c.offset||0));R=c.options[U]||c.options.other}if(!R)throw new qo(c.value,h,Object.keys(c.options),s);a.push.apply(a,di(R.value,i,e,r,o,h-(c.offset||0)));continue}}return qu(a)}function Ku(t,i){return i?De(De(De({},t||{}),i||{}),Object.keys(t).reduce(function(e,r){return e[r]=De(De({},t[r]),i[r]||{}),e},{})):t}function Ju(t,i){return i?Object.keys(t).reduce(function(e,r){return e[r]=Ku(t[r],i[r]),e},De({},t)):t}function qi(t){return{create:function(){return{get:function(i){return t[i]},set:function(i,e){t[i]=e}}}}}function Zu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Yi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.NumberFormat).bind.apply(i,Vi([void 0],e,!1)))},{cache:qi(t.number),strategy:Gi.variadic}),getDateTimeFormat:Yi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.DateTimeFormat).bind.apply(i,Vi([void 0],e,!1)))},{cache:qi(t.dateTime),strategy:Gi.variadic}),getPluralRules:Yi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.PluralRules).bind.apply(i,Vi([void 0],e,!1)))},{cache:qi(t.pluralRules),strategy:Gi.variadic})}}var Qu=function(){function t(i,e,r,o){e===void 0&&(e=t.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=n.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,h){return!d.length||h.type!==ue.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return di(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof i=="string"){if(this.message=i,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=lu(s,["formatters"]);this.ast=t.__parse(i,De(De({},a),{locale:this.resolvedLocale}))}else this.ast=i;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ju(t.formats,r),this.formatters=o&&o.formatters||Zu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(i){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(i);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof i=="string"?i:i[0])}},t.__parse=Yu,t.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"}}},t}();function ec(t,i){if(i==null)return;if(i in t)return t[i];const e=i.split(".");let r=t;for(let o=0;o<e.length;o++)if(typeof r=="object"){if(o>0){const n=e.slice(o,e.length).join(".");if(n in r){r=r[n];break}}r=r[e[o]]}else r=void 0;return r}const Fe={},tc=(t,i,e)=>e&&(i in Fe||(Fe[i]={}),t in Fe[i]||(Fe[i][t]=e),e),As=(t,i)=>{if(i==null)return;if(i in Fe&&t in Fe[i])return Fe[i][t];const e=Oi(i);for(let r=0;r<e.length;r++){const o=e[r],n=rc(o,t);if(n)return tc(t,i,n)}};let io;const Zt=Di({});function ic(t){return io[t]||null}function Cs(t){return t in io}function rc(t,i){if(!Cs(t))return null;const e=ic(t);return ec(e,i)}function oc(t){if(t==null)return;const i=Oi(t);for(let e=0;e<i.length;e++){const r=i[e];if(Cs(r))return r}}function Ts(t,...i){delete Fe[t],Zt.update(e=>(e[t]=au.all([e[t]||{},...i]),e))}wt([Zt],([t])=>Object.keys(t));Zt.subscribe(t=>io=t);const hi={};function nc(t,i){hi[t].delete(i),hi[t].size===0&&delete hi[t]}function Ps(t){return hi[t]}function sc(t){return Oi(t).map(i=>{const e=Ps(i);return[i,e?[...e]:[]]}).filter(([,i])=>i.length>0)}function kr(t){return t==null?!1:Oi(t).some(i=>{var e;return(e=Ps(i))==null?void 0:e.size})}function ac(t,i){return Promise.all(i.map(r=>(nc(t,r),r().then(o=>o.default||o)))).then(r=>Ts(t,...r))}const Tt={};function Ds(t){if(!kr(t))return t in Tt?Tt[t]:Promise.resolve();const i=sc(t);return Tt[t]=Promise.all(i.map(([e,r])=>ac(e,r))).then(()=>{if(kr(t))return Ds(t);delete Tt[t]}),Tt[t]}const lc={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"}}},uc={fallbackLocale:null,loadingDelay:200,formats:lc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},cc=uc;function _t(){return cc}const Xi=Di(!1);var dc=Object.defineProperty,hc=Object.defineProperties,fc=Object.getOwnPropertyDescriptors,Xo=Object.getOwnPropertySymbols,pc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,Ko=(t,i,e)=>i in t?dc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,_c=(t,i)=>{for(var e in i||(i={}))pc.call(i,e)&&Ko(t,e,i[e]);if(Xo)for(var e of Xo(i))mc.call(i,e)&&Ko(t,e,i[e]);return t},gc=(t,i)=>hc(t,fc(i));let Mr;const bi=Di(null);function Jo(t){return t.split("-").map((i,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Oi(t,i=_t().fallbackLocale){const e=Jo(t);return i?[...new Set([...e,...Jo(i)])]:e}function Je(){return Mr!=null?Mr:void 0}bi.subscribe(t=>{Mr=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const bc=t=>{if(t&&oc(t)&&kr(t)){const{loadingDelay:i}=_t();let e;return typeof window!="undefined"&&Je()!=null&&i?e=window.setTimeout(()=>Xi.set(!0),i):Xi.set(!0),Ds(t).then(()=>{bi.set(t)}).finally(()=>{clearTimeout(e),Xi.set(!1)})}return bi.set(t)},Et=gc(_c({},bi),{set:bc}),Ii=t=>{const i=Object.create(null);return r=>{const o=JSON.stringify(r);return o in i?i[o]:i[o]=t(r)}};var vc=Object.defineProperty,vi=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Zo=(t,i,e)=>i in t?vc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,ro=(t,i)=>{for(var e in i||(i={}))ks.call(i,e)&&Zo(t,e,i[e]);if(vi)for(var e of vi(i))Ms.call(i,e)&&Zo(t,e,i[e]);return t},St=(t,i)=>{var e={};for(var r in t)ks.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&vi)for(var r of vi(t))i.indexOf(r)<0&&Ms.call(t,r)&&(e[r]=t[r]);return e};const zt=(t,i)=>{const{formats:e}=_t();if(t in e&&i in e[t])return e[t][i];throw new Error(`[svelte-i18n] Unknown "${i}" ${t} format.`)},yc=Ii(t=>{var i=t,{locale:e,format:r}=i,o=St(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=zt("number",r)),new Intl.NumberFormat(e,o)}),xc=Ii(t=>{var i=t,{locale:e,format:r}=i,o=St(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=zt("date",r):Object.keys(o).length===0&&(o=zt("date","short")),new Intl.DateTimeFormat(e,o)}),wc=Ii(t=>{var i=t,{locale:e,format:r}=i,o=St(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=zt("time",r):Object.keys(o).length===0&&(o=zt("time","short")),new Intl.DateTimeFormat(e,o)}),Ec=(t={})=>{var i=t,{locale:e=Je()}=i,r=St(i,["locale"]);return yc(ro({locale:e},r))},Sc=(t={})=>{var i=t,{locale:e=Je()}=i,r=St(i,["locale"]);return xc(ro({locale:e},r))},Ac=(t={})=>{var i=t,{locale:e=Je()}=i,r=St(i,["locale"]);return wc(ro({locale:e},r))},Cc=Ii((t,i=Je())=>new Qu(t,i,_t().formats,{ignoreTag:_t().ignoreTag})),Tc=(t,i={})=>{var e,r,o,n;let s=i;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=Je(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=As(t,l);if(!c)c=(n=(o=(r=(e=_t()).handleMissingMessage)==null?void 0:r.call(e,{locale:l,id:t,defaultValue:u}))!=null?o:u)!=null?n:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let d=c;try{d=Cc(c,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,h.message)}return d},Pc=(t,i)=>Ac(i).format(t),Dc=(t,i)=>Sc(i).format(t),kc=(t,i)=>Ec(i).format(t),Mc=(t,i=Je())=>As(t,i),Oc=wt([Et,Zt],()=>Tc);wt([Et],()=>Pc);wt([Et],()=>Dc);wt([Et],()=>kc);wt([Et,Zt],()=>Mc);window.emWidgets={topic:Vl};const Ic=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Os={exports:{}};(function(t,i){(function(e,r){t.exports=r()})(Gl,function(){var e=1e3,r=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",u="day",c="week",d="month",h="quarter",f="year",p="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var b=["th","st","nd","rd"],_=w%100;return"["+w+(b[(_-20)%10]||b[_]||b[0])+"]"}},R=function(w,b,_){var v=String(w);return!v||v.length>=b?w:""+Array(b+1-v.length).join(_)+w},U={s:R,z:function(w){var b=-w.utcOffset(),_=Math.abs(b),v=Math.floor(_/60),g=_%60;return(b<=0?"+":"-")+R(v,2,"0")+":"+R(g,2,"0")},m:function w(b,_){if(b.date()<_.date())return-w(_,b);var v=12*(_.year()-b.year())+(_.month()-b.month()),g=b.clone().add(v,d),S=_-g<0,E=b.clone().add(v+(S?-1:1),d);return+(-(v+(_-g)/(S?g-E:E-g))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:d,y:f,w:c,d:u,D:p,h:l,m:a,s,ms:n,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},O="en",K={};K[O]=P;var ce="$isDayjsObject",Q=function(w){return w instanceof me||!(!w||!w[ce])},ee=function w(b,_,v){var g;if(!b)return O;if(typeof b=="string"){var S=b.toLowerCase();K[S]&&(g=S),_&&(K[S]=_,g=S);var E=b.split("-");if(!g&&E.length>1)return w(E[0])}else{var B=b.name;K[B]=b,g=B}return!v&&g&&(O=g),g||!v&&O},I=function(w,b){if(Q(w))return w.clone();var _=typeof b=="object"?b:{};return _.date=w,_.args=arguments,new me(_)},N=U;N.l=ee,N.i=Q,N.w=function(w,b){return I(w,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var me=function(){function w(_){this.$L=ee(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[ce]=!0}var b=w.prototype;return b.parse=function(_){this.$d=function(v){var g=v.date,S=v.utc;if(g===null)return new Date(NaN);if(N.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var E=g.match(D);if(E){var B=E[2]-1||0,j=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,j)):new Date(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,j)}}return new Date(g)}(_),this.init()},b.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(_,v){var g=I(_);return this.startOf(v)<=g&&g<=this.endOf(v)},b.isAfter=function(_,v){return I(_)<this.startOf(v)},b.isBefore=function(_,v){return this.endOf(v)<I(_)},b.$g=function(_,v,g){return N.u(_)?this[v]:this.set(g,_)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(_,v){var g=this,S=!!N.u(v)||v,E=N.p(_),B=function(ne,$){var Y=N.w(g.$u?Date.UTC(g.$y,$,ne):new Date(g.$y,$,ne),g);return S?Y:Y.endOf(u)},j=function(ne,$){return N.w(g.toDate()[ne].apply(g.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice($)),g)},V=this.$W,G=this.$M,re=this.$D,_e="set"+(this.$u?"UTC":"");switch(E){case f:return S?B(1,0):B(31,11);case d:return S?B(1,G):B(0,G+1);case c:var ge=this.$locale().weekStart||0,ae=(V<ge?V+7:V)-ge;return B(S?re-ae:re+(6-ae),G);case u:case p:return j(_e+"Hours",0);case l:return j(_e+"Minutes",1);case a:return j(_e+"Seconds",2);case s:return j(_e+"Milliseconds",3);default:return this.clone()}},b.endOf=function(_){return this.startOf(_,!1)},b.$set=function(_,v){var g,S=N.p(_),E="set"+(this.$u?"UTC":""),B=(g={},g[u]=E+"Date",g[p]=E+"Date",g[d]=E+"Month",g[f]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[s]=E+"Seconds",g[n]=E+"Milliseconds",g)[S],j=S===u?this.$D+(v-this.$W):v;if(S===d||S===f){var V=this.clone().set(p,1);V.$d[B](j),V.init(),this.$d=V.set(p,Math.min(this.$D,V.daysInMonth())).$d}else B&&this.$d[B](j);return this.init(),this},b.set=function(_,v){return this.clone().$set(_,v)},b.get=function(_){return this[N.p(_)]()},b.add=function(_,v){var g,S=this;_=Number(_);var E=N.p(v),B=function(G){var re=I(S);return N.w(re.date(re.date()+Math.round(G*_)),S)};if(E===d)return this.set(d,this.$M+_);if(E===f)return this.set(f,this.$y+_);if(E===u)return B(1);if(E===c)return B(7);var j=(g={},g[a]=r,g[l]=o,g[s]=e,g)[E]||1,V=this.$d.getTime()+_*j;return N.w(V,this)},b.subtract=function(_,v){return this.add(-1*_,v)},b.format=function(_){var v=this,g=this.$locale();if(!this.isValid())return g.invalidDate||y;var S=_||"YYYY-MM-DDTHH:mm:ssZ",E=N.z(this),B=this.$H,j=this.$m,V=this.$M,G=g.weekdays,re=g.months,_e=g.meridiem,ge=function($,Y,Te,Se){return $&&($[Y]||$(v,S))||Te[Y].slice(0,Se)},ae=function($){return N.s(B%12||12,$,"0")},ne=_e||function($,Y,Te){var Se=$<12?"AM":"PM";return Te?Se.toLowerCase():Se};return S.replace(k,function($,Y){return Y||function(Te){switch(Te){case"YY":return String(v.$y).slice(-2);case"YYYY":return N.s(v.$y,4,"0");case"M":return V+1;case"MM":return N.s(V+1,2,"0");case"MMM":return ge(g.monthsShort,V,re,3);case"MMMM":return ge(re,V);case"D":return v.$D;case"DD":return N.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ge(g.weekdaysMin,v.$W,G,2);case"ddd":return ge(g.weekdaysShort,v.$W,G,3);case"dddd":return G[v.$W];case"H":return String(B);case"HH":return N.s(B,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return ne(B,j,!0);case"A":return ne(B,j,!1);case"m":return String(j);case"mm":return N.s(j,2,"0");case"s":return String(v.$s);case"ss":return N.s(v.$s,2,"0");case"SSS":return N.s(v.$ms,3,"0");case"Z":return E}return null}($)||E.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(_,v,g){var S,E=this,B=N.p(v),j=I(_),V=(j.utcOffset()-this.utcOffset())*r,G=this-j,re=function(){return N.m(E,j)};switch(B){case f:S=re()/12;break;case d:S=re();break;case h:S=re()/3;break;case c:S=(G-V)/6048e5;break;case u:S=(G-V)/864e5;break;case l:S=G/o;break;case a:S=G/r;break;case s:S=G/e;break;default:S=G}return g?S:N.a(S)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return K[this.$L]},b.locale=function(_,v){if(!_)return this.$L;var g=this.clone(),S=ee(_,v,!0);return S&&(g.$L=S),g},b.clone=function(){return N.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},w}(),Be=me.prototype;return I.prototype=Be,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",u],["$M",d],["$y",f],["$D",p]].forEach(function(w){Be[w[1]]=function(b){return this.$g(b,w[0],w[1])}}),I.extend=function(w,b){return w.$i||(w(b,me,I),w.$i=!0),I},I.locale=ee,I.isDayjs=Q,I.unix=function(w){return I(1e3*w)},I.en=K[O],I.Ls=K,I.p={},I})})(Os);var Nc=Os.exports;const Ki=as(Nc);function Qo(t,i){Ts(t,i)}function Lc(t){Et.set(t)}const en={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};function Hc(t,i){if(t){const e=document.createElement("style");e.innerHTML=i,t.appendChild(e)}}function Bc(t,i){const e=new URL(i);fetch(e.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,t&&t.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function $c(t,i,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(i,o=>{r.innerHTML=o,t&&t.appendChild(r)})}}/**
19
19
  * @license
20
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
21
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
22
- */function De(t,i="24.5.10"){Object.defineProperty(t,"version",{get(){return i}});const e=customElements.get(t.is);if(!e)customElements.define(t.is,t);else{const r=e.version;r&&t.version&&r===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
22
+ */function ke(t,i="24.5.12"){Object.defineProperty(t,"version",{get(){return i}});const e=customElements.get(t.is);if(!e)customElements.define(t.is,t);else{const r=e.version;r&&t.version&&r===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
23
23
  * @license
24
24
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
25
25
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
26
- */class $c extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}De($c);/**
26
+ */class Fc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}ke(Fc);/**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const fi=globalThis,io=fi.ShadowRoot&&(fi.ShadyCSS===void 0||fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ro=Symbol(),en=new WeakMap;let oo=class{constructor(i,e,r){if(this._$cssResult$=!0,r!==ro)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(io&&i===void 0){const r=e!==void 0&&e.length===1;r&&(i=en.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&en.set(e,i))}return i}toString(){return this.cssText}};const Fc=t=>new oo(typeof t=="string"?t:t+"",void 0,ro),F=(t,...i)=>{const e=t.length===1?t[0]:i.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[n+1],t[0]);return new oo(e,t,ro)},Is=(t,i)=>{if(io)t.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of i){const r=document.createElement("style"),o=fi.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,t.appendChild(r)}},tn=io?t=>t:t=>t instanceof CSSStyleSheet?(i=>{let e="";for(const r of i.cssRules)e+=r.cssText;return Fc(e)})(t):t;/**
30
+ */const fi=globalThis,oo=fi.ShadowRoot&&(fi.ShadyCSS===void 0||fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,no=Symbol(),tn=new WeakMap;let so=class{constructor(i,e,r){if(this._$cssResult$=!0,r!==no)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(oo&&i===void 0){const r=e!==void 0&&e.length===1;r&&(i=tn.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&tn.set(e,i))}return i}toString(){return this.cssText}};const Rc=t=>new so(typeof t=="string"?t:t+"",void 0,no),F=(t,...i)=>{const e=t.length===1?t[0]:i.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[n+1],t[0]);return new so(e,t,no)},Is=(t,i)=>{if(oo)t.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of i){const r=document.createElement("style"),o=fi.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,t.appendChild(r)}},rn=oo?t=>t:t=>t instanceof CSSStyleSheet?(i=>{let e="";for(const r of i.cssRules)e+=r.cssText;return Rc(e)})(t):t;/**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const{is:Rc,defineProperty:zc,getOwnPropertyDescriptor:Uc,getOwnPropertyNames:jc,getOwnPropertySymbols:Vc,getPrototypeOf:Yc}=Object,Re=globalThis,rn=Re.trustedTypes,Gc=rn?rn.emptyScript:"",Xi=Re.reactiveElementPolyfillSupport,Bt=(t,i)=>t,Pr={toAttribute(t,i){switch(i){case Boolean:t=t?Gc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(r){e=null}}return e}},Ns=(t,i)=>!Rc(t,i),on={attribute:!0,type:String,converter:Pr,reflect:!1,hasChanged:Ns};var Vn,Yn;(Vn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Yn=Re.litPropertyMetadata)!=null||(Re.litPropertyMetadata=new WeakMap);class at extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=on){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(i,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(i,r,e);o!==void 0&&zc(this.prototype,i,o)}}static getPropertyDescriptor(i,e,r){var s;const{get:o,set:n}=(s=Uc(this.prototype,i))!=null?s:{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);n.call(this,a),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:on}static _$Ei(){if(this.hasOwnProperty(Bt("elementProperties")))return;const i=Yc(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bt("properties"))){const e=this.properties,r=[...jc(e),...Vc(e)];for(const o of r)this.createProperty(o,e[o])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const r=new Set(i.flat(1/0).reverse());for(const o of r)e.unshift(tn(o))}else i!==void 0&&e.push(tn(i));return e}static _$Eu(i,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((r=i.hostConnected)==null||r.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var e;const i=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Is(i,this.constructor.elementStyles),i}connectedCallback(){var i,e;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(i,e,r){this._$AK(i,r)}_$EC(i,e){var n;const r=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Pr).toAttribute(e,r.type);this._$Em=i,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(i,e){var n;const r=this.constructor,o=r._$Eh.get(i);if(o!==void 0&&this._$Em!==o){const s=r.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Pr;this._$Em=o,this[o]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(i,e,r){var o;if(i!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(i)),!((o=r.hasChanged)!=null?o:Ns)(this[i],e))return;this.P(i,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,e,r){var o;this._$AL.has(i)||this._$AL.set(i,e),r.reflect===!0&&this._$Em!==i&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(i)}_$ET(){return tt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,a]of n)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw i=!1,this._$EU(),n}i&&this._$AE(e)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(i){}firstUpdated(i){}}var Gn;at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[Bt("elementProperties")]=new Map,at[Bt("finalized")]=new Map,Xi==null||Xi({ReactiveElement:at}),((Gn=Re.reactiveElementVersions)!=null?Gn:Re.reactiveElementVersions=[]).push("2.0.4");/**
34
+ */const{is:zc,defineProperty:Uc,getOwnPropertyDescriptor:jc,getOwnPropertyNames:Vc,getOwnPropertySymbols:Yc,getPrototypeOf:Gc}=Object,Re=globalThis,on=Re.trustedTypes,Wc=on?on.emptyScript:"",Ji=Re.reactiveElementPolyfillSupport,Ht=(t,i)=>t,Or={toAttribute(t,i){switch(i){case Boolean:t=t?Wc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(r){e=null}}return e}},Ns=(t,i)=>!zc(t,i),nn={attribute:!0,type:String,converter:Or,reflect:!1,hasChanged:Ns};var Yn,Gn;(Yn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Gn=Re.litPropertyMetadata)!=null||(Re.litPropertyMetadata=new WeakMap);class at extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=nn){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(i,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(i,r,e);o!==void 0&&Uc(this.prototype,i,o)}}static getPropertyDescriptor(i,e,r){var s;const{get:o,set:n}=(s=jc(this.prototype,i))!=null?s:{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);n.call(this,a),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:nn}static _$Ei(){if(this.hasOwnProperty(Ht("elementProperties")))return;const i=Gc(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ht("properties"))){const e=this.properties,r=[...Vc(e),...Yc(e)];for(const o of r)this.createProperty(o,e[o])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const r=new Set(i.flat(1/0).reverse());for(const o of r)e.unshift(rn(o))}else i!==void 0&&e.push(rn(i));return e}static _$Eu(i,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((r=i.hostConnected)==null||r.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var e;const i=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Is(i,this.constructor.elementStyles),i}connectedCallback(){var i,e;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(i,e,r){this._$AK(i,r)}_$EC(i,e){var n;const r=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Or).toAttribute(e,r.type);this._$Em=i,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(i,e){var n;const r=this.constructor,o=r._$Eh.get(i);if(o!==void 0&&this._$Em!==o){const s=r.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Or;this._$Em=o,this[o]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(i,e,r){var o;if(i!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(i)),!((o=r.hasChanged)!=null?o:Ns)(this[i],e))return;this.P(i,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,e,r){var o;this._$AL.has(i)||this._$AL.set(i,e),r.reflect===!0&&this._$Em!==i&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(i)}_$ET(){return tt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,a]of n)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw i=!1,this._$EU(),n}i&&this._$AE(e)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(i){}firstUpdated(i){}}var Wn;at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[Ht("elementProperties")]=new Map,at[Ht("finalized")]=new Map,Ji==null||Ji({ReactiveElement:at}),((Wn=Re.reactiveElementVersions)!=null?Wn:Re.reactiveElementVersions=[]).push("2.0.4");/**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const $t=globalThis,vi=$t.trustedTypes,nn=vi?vi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ls="$lit$",$e=`lit$${Math.random().toFixed(9).slice(2)}$`,Hs="?"+$e,Wc=`<${Hs}>`,Ke=document,jt=()=>Ke.createComment(""),Vt=t=>t===null||typeof t!="object"&&typeof t!="function",no=Array.isArray,qc=t=>no(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Ki=`[
39
- \f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sn=/-->/g,an=/>/g,Ye=RegExp(`>|${Ki}(?:([^\\s"'>=/]+)(${Ki}*=${Ki}*(?:[^
40
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ln=/'/g,un=/"/g,Bs=/^(?:script|style|textarea|title)$/i,bt=Symbol.for("lit-noChange"),oe=Symbol.for("lit-nothing"),cn=new WeakMap,Ge=Ke.createTreeWalker(Ke,129);function $s(t,i){if(!no(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return nn!==void 0?nn.createHTML(i):i}const Xc=(t,i)=>{const e=t.length-1,r=[];let o,n=i===2?"<svg>":i===3?"<math>":"",s=Dt;for(let a=0;a<e;a++){const l=t[a];let u,c,d=-1,h=0;for(;h<l.length&&(s.lastIndex=h,c=s.exec(l),c!==null);)h=s.lastIndex,s===Dt?c[1]==="!--"?s=sn:c[1]!==void 0?s=an:c[2]!==void 0?(Bs.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Ye):c[3]!==void 0&&(s=Ye):s===Ye?c[0]===">"?(s=o!=null?o:Dt,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Ye:c[3]==='"'?un:ln):s===un||s===ln?s=Ye:s===sn||s===an?s=Dt:(s=Ye,o=void 0);const f=s===Ye&&t[a+1].startsWith("/>")?" ":"";n+=s===Dt?l+Wc:d>=0?(r.push(u),l.slice(0,d)+Ls+l.slice(d)+$e+f):l+$e+(d===-2?a:f)}return[$s(t,n+(t[e]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]};class Yt{constructor({strings:i,_$litType$:e},r){let o;this.parts=[];let n=0,s=0;const a=i.length-1,l=this.parts,[u,c]=Xc(i,e);if(this.el=Yt.createElement(u,r),Ge.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Ge.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const d of o.getAttributeNames())if(d.endsWith(Ls)){const h=c[s++],f=o.getAttribute(d).split($e),p=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:p[2],strings:f,ctor:p[1]==="."?Jc:p[1]==="?"?Zc:p[1]==="@"?Qc:Oi}),o.removeAttribute(d)}else d.startsWith($e)&&(l.push({type:6,index:n}),o.removeAttribute(d));if(Bs.test(o.tagName)){const d=o.textContent.split($e),h=d.length-1;if(h>0){o.textContent=vi?vi.emptyScript:"";for(let f=0;f<h;f++)o.append(d[f],jt()),Ge.nextNode(),l.push({type:2,index:++n});o.append(d[h],jt())}}}else if(o.nodeType===8)if(o.data===Hs)l.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf($e,d+1))!==-1;)l.push({type:7,index:n}),d+=$e.length-1}n++}}static createElement(i,e){const r=Ke.createElement("template");return r.innerHTML=i,r}}function vt(t,i,e=t,r){var s,a,l;if(i===bt)return i;let o=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const n=Vt(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,e,r)),r!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[r]=o:e._$Cl=o),o!==void 0&&(i=vt(t,o._$AS(t,i.values),o,r)),i}class Kc{constructor(i,e){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;const{el:{content:e},parts:r}=this._$AD,o=((u=i==null?void 0:i.creationScope)!=null?u:Ke).importNode(e,!0);Ge.currentNode=o;let n=Ge.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Qt(n,n.nextSibling,this,i):l.type===1?c=new l.ctor(n,l.name,l.strings,this,i):l.type===6&&(c=new ed(n,this,i)),this._$AV.push(c),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=Ge.nextNode(),s++)}return Ge.currentNode=Ke,o}p(i){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,e),e+=r.strings.length-2):r._$AI(i[e])),e++}}class Qt{get _$AU(){var i,e;return(e=(i=this._$AM)==null?void 0:i._$AU)!=null?e:this._$Cv}constructor(i,e,r,o){var n;this.type=2,this._$AH=oe,this._$AN=void 0,this._$AA=i,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let i=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=e.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,e=this){i=vt(this,i,e),Vt(i)?i===oe||i==null||i===""?(this._$AH!==oe&&this._$AR(),this._$AH=oe):i!==this._$AH&&i!==bt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):qc(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==oe&&Vt(this._$AH)?this._$AA.nextSibling.data=i:this.T(Ke.createTextNode(i)),this._$AH=i}$(i){var n;const{values:e,_$litType$:r}=i,o=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=Yt.createElement($s(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(e);else{const s=new Kc(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(i){let e=cn.get(i.strings);return e===void 0&&cn.set(i.strings,e=new Yt(i)),e}k(i){no(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of i)o===e.length?e.push(r=new Qt(this.O(jt()),this.O(jt()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(i=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);i&&i!==this._$AB;){const o=i.nextSibling;i.remove(),i=o}}setConnected(i){var e;this._$AM===void 0&&(this._$Cv=i,(e=this._$AP)==null||e.call(this,i))}}class Oi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,e,r,o,n){this.type=1,this._$AH=oe,this._$AN=void 0,this.element=i,this.name=e,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=oe}_$AI(i,e=this,r,o){const n=this.strings;let s=!1;if(n===void 0)i=vt(this,i,e,0),s=!Vt(i)||i!==this._$AH&&i!==bt,s&&(this._$AH=i);else{const a=i;let l,u;for(i=n[0],l=0;l<n.length-1;l++)u=vt(this,a[r+l],e,l),u===bt&&(u=this._$AH[l]),s||(s=!Vt(u)||u!==this._$AH[l]),u===oe?i=oe:i!==oe&&(i+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}s&&!o&&this.j(i)}j(i){i===oe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class Jc extends Oi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===oe?void 0:i}}class Zc extends Oi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==oe)}}class Qc extends Oi{constructor(i,e,r,o,n){super(i,e,r,o,n),this.type=5}_$AI(i,e=this){var s;if((i=(s=vt(this,i,e,0))!=null?s:oe)===bt)return;const r=this._$AH,o=i===oe&&r!==oe||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,n=i!==oe&&(r===oe||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,i):this._$AH.handleEvent(i)}}class ed{constructor(i,e,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){vt(this,i)}}const Ji=$t.litHtmlPolyfillSupport;var Wn;Ji==null||Ji(Yt,Qt),((Wn=$t.litHtmlVersions)!=null?Wn:$t.litHtmlVersions=[]).push("3.2.1");const td=(t,i,e)=>{var n,s;const r=(n=e==null?void 0:e.renderBefore)!=null?n:i;let o=r._$litPart$;if(o===void 0){const a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Qt(i.insertBefore(jt(),a),a,void 0,e!=null?e:{})}return o._$AI(t),o};/**
38
+ */const Bt=globalThis,yi=Bt.trustedTypes,sn=yi?yi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ls="$lit$",$e=`lit$${Math.random().toFixed(9).slice(2)}$`,Hs="?"+$e,qc=`<${Hs}>`,Ke=document,Ut=()=>Ke.createComment(""),jt=t=>t===null||typeof t!="object"&&typeof t!="function",ao=Array.isArray,Xc=t=>ao(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Zi=`[
39
+ \f\r]`,Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,an=/-->/g,ln=/>/g,Ye=RegExp(`>|${Zi}(?:([^\\s"'>=/]+)(${Zi}*=${Zi}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),un=/'/g,cn=/"/g,Bs=/^(?:script|style|textarea|title)$/i,gt=Symbol.for("lit-noChange"),oe=Symbol.for("lit-nothing"),dn=new WeakMap,Ge=Ke.createTreeWalker(Ke,129);function $s(t,i){if(!ao(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return sn!==void 0?sn.createHTML(i):i}const Kc=(t,i)=>{const e=t.length-1,r=[];let o,n=i===2?"<svg>":i===3?"<math>":"",s=Pt;for(let a=0;a<e;a++){const l=t[a];let u,c,d=-1,h=0;for(;h<l.length&&(s.lastIndex=h,c=s.exec(l),c!==null);)h=s.lastIndex,s===Pt?c[1]==="!--"?s=an:c[1]!==void 0?s=ln:c[2]!==void 0?(Bs.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Ye):c[3]!==void 0&&(s=Ye):s===Ye?c[0]===">"?(s=o!=null?o:Pt,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Ye:c[3]==='"'?cn:un):s===cn||s===un?s=Ye:s===an||s===ln?s=Pt:(s=Ye,o=void 0);const f=s===Ye&&t[a+1].startsWith("/>")?" ":"";n+=s===Pt?l+qc:d>=0?(r.push(u),l.slice(0,d)+Ls+l.slice(d)+$e+f):l+$e+(d===-2?a:f)}return[$s(t,n+(t[e]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]};class Vt{constructor({strings:i,_$litType$:e},r){let o;this.parts=[];let n=0,s=0;const a=i.length-1,l=this.parts,[u,c]=Kc(i,e);if(this.el=Vt.createElement(u,r),Ge.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Ge.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const d of o.getAttributeNames())if(d.endsWith(Ls)){const h=c[s++],f=o.getAttribute(d).split($e),p=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:p[2],strings:f,ctor:p[1]==="."?Zc:p[1]==="?"?Qc:p[1]==="@"?ed:Ni}),o.removeAttribute(d)}else d.startsWith($e)&&(l.push({type:6,index:n}),o.removeAttribute(d));if(Bs.test(o.tagName)){const d=o.textContent.split($e),h=d.length-1;if(h>0){o.textContent=yi?yi.emptyScript:"";for(let f=0;f<h;f++)o.append(d[f],Ut()),Ge.nextNode(),l.push({type:2,index:++n});o.append(d[h],Ut())}}}else if(o.nodeType===8)if(o.data===Hs)l.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf($e,d+1))!==-1;)l.push({type:7,index:n}),d+=$e.length-1}n++}}static createElement(i,e){const r=Ke.createElement("template");return r.innerHTML=i,r}}function bt(t,i,e=t,r){var s,a,l;if(i===gt)return i;let o=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const n=jt(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,e,r)),r!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[r]=o:e._$Cl=o),o!==void 0&&(i=bt(t,o._$AS(t,i.values),o,r)),i}class Jc{constructor(i,e){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;const{el:{content:e},parts:r}=this._$AD,o=((u=i==null?void 0:i.creationScope)!=null?u:Ke).importNode(e,!0);Ge.currentNode=o;let n=Ge.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Qt(n,n.nextSibling,this,i):l.type===1?c=new l.ctor(n,l.name,l.strings,this,i):l.type===6&&(c=new td(n,this,i)),this._$AV.push(c),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=Ge.nextNode(),s++)}return Ge.currentNode=Ke,o}p(i){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,e),e+=r.strings.length-2):r._$AI(i[e])),e++}}class Qt{get _$AU(){var i,e;return(e=(i=this._$AM)==null?void 0:i._$AU)!=null?e:this._$Cv}constructor(i,e,r,o){var n;this.type=2,this._$AH=oe,this._$AN=void 0,this._$AA=i,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let i=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=e.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,e=this){i=bt(this,i,e),jt(i)?i===oe||i==null||i===""?(this._$AH!==oe&&this._$AR(),this._$AH=oe):i!==this._$AH&&i!==gt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Xc(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==oe&&jt(this._$AH)?this._$AA.nextSibling.data=i:this.T(Ke.createTextNode(i)),this._$AH=i}$(i){var n;const{values:e,_$litType$:r}=i,o=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=Vt.createElement($s(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(e);else{const s=new Jc(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(i){let e=dn.get(i.strings);return e===void 0&&dn.set(i.strings,e=new Vt(i)),e}k(i){ao(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of i)o===e.length?e.push(r=new Qt(this.O(Ut()),this.O(Ut()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(i=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);i&&i!==this._$AB;){const o=i.nextSibling;i.remove(),i=o}}setConnected(i){var e;this._$AM===void 0&&(this._$Cv=i,(e=this._$AP)==null||e.call(this,i))}}class Ni{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,e,r,o,n){this.type=1,this._$AH=oe,this._$AN=void 0,this.element=i,this.name=e,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=oe}_$AI(i,e=this,r,o){const n=this.strings;let s=!1;if(n===void 0)i=bt(this,i,e,0),s=!jt(i)||i!==this._$AH&&i!==gt,s&&(this._$AH=i);else{const a=i;let l,u;for(i=n[0],l=0;l<n.length-1;l++)u=bt(this,a[r+l],e,l),u===gt&&(u=this._$AH[l]),s||(s=!jt(u)||u!==this._$AH[l]),u===oe?i=oe:i!==oe&&(i+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}s&&!o&&this.j(i)}j(i){i===oe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class Zc extends Ni{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===oe?void 0:i}}class Qc extends Ni{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==oe)}}class ed extends Ni{constructor(i,e,r,o,n){super(i,e,r,o,n),this.type=5}_$AI(i,e=this){var s;if((i=(s=bt(this,i,e,0))!=null?s:oe)===gt)return;const r=this._$AH,o=i===oe&&r!==oe||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,n=i!==oe&&(r===oe||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,i):this._$AH.handleEvent(i)}}class td{constructor(i,e,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){bt(this,i)}}const Qi=Bt.litHtmlPolyfillSupport;var qn;Qi==null||Qi(Vt,Qt),((qn=Bt.litHtmlVersions)!=null?qn:Bt.litHtmlVersions=[]).push("3.2.1");const id=(t,i,e)=>{var n,s;const r=(n=e==null?void 0:e.renderBefore)!=null?n:i;let o=r._$litPart$;if(o===void 0){const a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Qt(i.insertBefore(Ut(),a),a,void 0,e!=null?e:{})}return o._$AI(t),o};/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */class ct extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=i.firstChild),i}update(i){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=td(e,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return bt}}var qn;ct._$litElement$=!0,ct.finalized=!0,(qn=globalThis.litElementHydrateSupport)==null||qn.call(globalThis,{LitElement:ct});const Zi=globalThis.litElementPolyfillSupport;Zi==null||Zi({LitElement:ct});var Xn;((Xn=globalThis.litElementVersions)!=null?Xn:globalThis.litElementVersions=[]).push("4.1.1");/**
44
+ */class ut extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=i.firstChild),i}update(i){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=id(e,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return gt}}var Xn;ut._$litElement$=!0,ut.finalized=!0,(Xn=globalThis.litElementHydrateSupport)==null||Xn.call(globalThis,{LitElement:ut});const er=globalThis.litElementPolyfillSupport;er==null||er({LitElement:ut});var Kn;((Kn=globalThis.litElementVersions)!=null?Kn:globalThis.litElementVersions=[]).push("4.1.1");/**
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
- */const id=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),e==="theme"&&this._set_theme(o)}};/**
48
+ */const rd=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),e==="theme"&&this._set_theme(o)}};/**
49
49
  * @license
50
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
51
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
52
- */const Fs=[],Dr=new Set,so=new Set;function Rs(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function rd(t){return Rs(customElements.get(t))}function od(t=[]){return[t].flat(1/0).filter(i=>i instanceof oo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function zs(t,i){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(i))}function Us(t){return t.map(i=>i.cssText).join(`
53
- `)}const yi="vaadin-themable-mixin-style";function nd(t,i){const e=document.createElement("style");e.id=yi,e.textContent=Us(t),i.content.appendChild(e)}function sd(t){if(!t.shadowRoot)return;const i=t.constructor;if(t instanceof ct)[...t.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Is(t.shadowRoot,i.elementStyles);else{const e=t.shadowRoot.getElementById(yi),r=i.prototype._template;e.textContent=r.content.getElementById(yi).textContent}}function ad(t){Dr.forEach(i=>{const e=i.deref();e instanceof t?sd(e):e||Dr.delete(i)})}function js(t){if(t.prototype instanceof ct)t.elementStyles=t.finalizeStyles(t.styles);else{const i=t.prototype._template;i.content.getElementById(yi).textContent=Us(t.getStylesForThis())}so.forEach(i=>{const e=customElements.get(i);e!==t&&e.prototype instanceof t&&js(e)})}function ld(t,i){const e=t.__themes;return!e||!i?!1:e.some(r=>r.styles.some(o=>i.some(n=>n.cssText===o.cssText)))}function Z(t,i,e={}){i=od(i),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,i,e):Fs.push({themeFor:t,styles:i,include:e.include,moduleId:e.moduleId}),t&&so.forEach(r=>{if(zs(t,r)&&rd(r)){const o=customElements.get(r);ld(o,i)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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),ad(o)}})}function kr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Fs}function ud(t=""){let i=0;return t.startsWith("lumo-")||t.startsWith("material-")?i=1:t.startsWith("vaadin-")&&(i=2),i}function Vs(t){const i=[];return t.include&&[].concat(t.include).forEach(e=>{const r=kr().find(o=>o.moduleId===e);r?i.push(...Vs(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),i}function cd(t){const i=`${t}-default-theme`,e=kr().filter(r=>r.moduleId!==i&&zs(r.themeFor,t)).map(r=>ti(ei({},r),{styles:[...Vs(r),...r.styles],includePriority:ud(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return e.length>0?e:kr().filter(r=>r.moduleId===i)}const Ze=t=>class extends id(t){constructor(){super(),Dr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&so.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Rs(this)||nd(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=t.__themes||[],r=Object.getPrototypeOf(this.prototype),o=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...o,...cd(this.is)];const n=this.__themes.flatMap(s=>s.styles);return n.filter((s,a)=>a===n.lastIndexOf(s))}};/**
52
+ */const Fs=[],Ir=new Set,lo=new Set;function Rs(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function od(t){return Rs(customElements.get(t))}function nd(t=[]){return[t].flat(1/0).filter(i=>i instanceof so?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function zs(t,i){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(i))}function Us(t){return t.map(i=>i.cssText).join(`
53
+ `)}const xi="vaadin-themable-mixin-style";function sd(t,i){const e=document.createElement("style");e.id=xi,e.textContent=Us(t),i.content.appendChild(e)}function ad(t){if(!t.shadowRoot)return;const i=t.constructor;if(t instanceof ut)[...t.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Is(t.shadowRoot,i.elementStyles);else{const e=t.shadowRoot.getElementById(xi),r=i.prototype._template;e.textContent=r.content.getElementById(xi).textContent}}function ld(t){Ir.forEach(i=>{const e=i.deref();e instanceof t?ad(e):e||Ir.delete(i)})}function js(t){if(t.prototype instanceof ut)t.elementStyles=t.finalizeStyles(t.styles);else{const i=t.prototype._template;i.content.getElementById(xi).textContent=Us(t.getStylesForThis())}lo.forEach(i=>{const e=customElements.get(i);e!==t&&e.prototype instanceof t&&js(e)})}function ud(t,i){const e=t.__themes;return!e||!i?!1:e.some(r=>r.styles.some(o=>i.some(n=>n.cssText===o.cssText)))}function Z(t,i,e={}){i=nd(i),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,i,e):Fs.push({themeFor:t,styles:i,include:e.include,moduleId:e.moduleId}),t&&lo.forEach(r=>{if(zs(t,r)&&od(r)){const o=customElements.get(r);ud(o,i)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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),ld(o)}})}function Nr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Fs}function cd(t=""){let i=0;return t.startsWith("lumo-")||t.startsWith("material-")?i=1:t.startsWith("vaadin-")&&(i=2),i}function Vs(t){const i=[];return t.include&&[].concat(t.include).forEach(e=>{const r=Nr().find(o=>o.moduleId===e);r?i.push(...Vs(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),i}function dd(t){const i=`${t}-default-theme`,e=Nr().filter(r=>r.moduleId!==i&&zs(r.themeFor,t)).map(r=>ti(ei({},r),{styles:[...Vs(r),...r.styles],includePriority:cd(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return e.length>0?e:Nr().filter(r=>r.moduleId===i)}const Ze=t=>class extends rd(t){constructor(){super(),Ir.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&lo.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Rs(this)||sd(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=t.__themes||[],r=Object.getPrototypeOf(this.prototype),o=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...o,...dd(this.is)];const n=this.__themes.flatMap(s=>s.styles);return n.filter((s,a)=>a===n.lastIndexOf(s))}};/**
54
54
  * @license
55
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
56
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
57
- */const dd=(t,...i)=>{const e=document.createElement("style");e.id=t,e.textContent=i.map(r=>r.toString()).join(`
58
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Ct=(t,...i)=>{dd(`lumo-${t}`,i)};/**
57
+ */const hd=(t,...i)=>{const e=document.createElement("style");e.id=t,e.textContent=i.map(r=>r.toString()).join(`
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},At=(t,...i)=>{hd(`lumo-${t}`,i)};/**
59
59
  * @license
60
60
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
61
61
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
62
- */const hd=F`
62
+ */const fd=F`
63
63
  :host {
64
64
  --lumo-size-xs: 1.625rem;
65
65
  --lumo-size-s: 1.875rem;
@@ -74,11 +74,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
74
74
  /* For backwards compatibility */
75
75
  --lumo-icon-size: var(--lumo-icon-size-m);
76
76
  }
77
- `;Ct("sizing-props",hd);/**
77
+ `;At("sizing-props",fd);/**
78
78
  * @license
79
79
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
80
80
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
81
- */const fd=F`
81
+ */const pd=F`
82
82
  :host {
83
83
  /* Square */
84
84
  --lumo-space-xs: 0.25rem;
@@ -101,11 +101,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
101
101
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
102
102
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
103
103
  }
104
- `;Ct("spacing-props",fd);/**
104
+ `;At("spacing-props",pd);/**
105
105
  * @license
106
106
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
107
107
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
108
- */const pd=F`
108
+ */const md=F`
109
109
  :host {
110
110
  /* Border radius */
111
111
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -205,11 +205,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
205
205
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
206
206
  --vaadin-input-field-value-font-weight: 500;
207
207
  }
208
- `;Ct("style-props",pd);/**
208
+ `;At("style-props",md);/**
209
209
  * @license
210
210
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
211
211
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
212
- */const md=F`
212
+ */const _d=F`
213
213
  :host {
214
214
  /* Base (background) */
215
215
  --lumo-base-color: #fff;
@@ -294,7 +294,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
294
294
  --lumo-disabled-text-color: GrayText;
295
295
  }
296
296
  }
297
- `;Ct("color-props",md);const _d=F`
297
+ `;At("color-props",_d);const gd=F`
298
298
  [theme~='dark'] {
299
299
  /* Base (background) */
300
300
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -412,11 +412,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
412
412
  pre code {
413
413
  background: transparent;
414
414
  }
415
- `;Z("",_d,{moduleId:"lumo-color"});/**
415
+ `;Z("",gd,{moduleId:"lumo-color"});/**
416
416
  * @license
417
417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
418
418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
419
- */const gd=F`
419
+ */const bd=F`
420
420
  :host {
421
421
  /* prettier-ignore */
422
422
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -436,7 +436,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
436
436
  --lumo-line-height-s: 1.375;
437
437
  --lumo-line-height-m: 1.625;
438
438
  }
439
- `,bd=F`
439
+ `,vd=F`
440
440
  body,
441
441
  :host {
442
442
  font-family: var(--lumo-font-family);
@@ -528,7 +528,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
528
528
  border-left: none;
529
529
  border-right: 2px solid var(--lumo-contrast-30pct);
530
530
  }
531
- `;Z("",bd,{moduleId:"lumo-typography"});Ct("typography-props",gd);/**
531
+ `;Z("",vd,{moduleId:"lumo-typography"});At("typography-props",bd);/**
532
532
  * @license
533
533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
534
534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -631,7 +631,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
631
631
  opacity: 0;
632
632
  }
633
633
  }
634
- `;Z("",Gs,{moduleId:"lumo-menu-overlay-core"});const vd=F`
634
+ `;Z("",Gs,{moduleId:"lumo-menu-overlay-core"});const yd=F`
635
635
  /* Small viewport (bottom sheet) styles */
636
636
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
637
637
  @media (max-width: 450px), (max-height: 450px) {
@@ -693,7 +693,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
693
693
  transform: translateY(150%);
694
694
  }
695
695
  }
696
- `,Ws=[Ys,Gs,vd];Z("",Ws,{moduleId:"lumo-menu-overlay"});const yd=F`
696
+ `,Ws=[Ys,Gs,yd];Z("",Ws,{moduleId:"lumo-menu-overlay"});const xd=F`
697
697
  [part='overlay'] {
698
698
  /*
699
699
  Width:
@@ -738,7 +738,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
738
738
  max-height: 70vh;
739
739
  }
740
740
  }
741
- `;Z("vaadin-date-picker-overlay",[Ws,yd],{moduleId:"lumo-date-picker-overlay"});const xd=F`
741
+ `;Z("vaadin-date-picker-overlay",[Ws,xd],{moduleId:"lumo-date-picker-overlay"});const wd=F`
742
742
  :host {
743
743
  /* Sizing */
744
744
  --lumo-button-size: var(--lumo-size-m);
@@ -1014,7 +1014,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1014
1014
  margin-left: 0;
1015
1015
  margin-right: 0;
1016
1016
  }
1017
- `;Z("vaadin-button",xd,{moduleId:"lumo-button"});Z("vaadin-date-picker-year",F`
1017
+ `;Z("vaadin-button",wd,{moduleId:"lumo-button"});Z("vaadin-date-picker-year",F`
1018
1018
  :host([current]) [part='year-number'] {
1019
1019
  color: var(--lumo-primary-text-color);
1020
1020
  }
@@ -1517,7 +1517,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1517
1517
  * @license
1518
1518
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1519
1519
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1520
- */const wd=F`
1520
+ */const Ed=F`
1521
1521
  @font-face {
1522
1522
  font-family: 'lumo-icons';
1523
1523
  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==)
@@ -1570,7 +1570,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1570
1570
  --lumo-icons-upload: '\\ea29';
1571
1571
  --lumo-icons-user: '\\ea2a';
1572
1572
  }
1573
- `;Ct("font-icons",wd);/**
1573
+ `;At("font-icons",Ed);/**
1574
1574
  * @license
1575
1575
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1576
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1605,7 +1605,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1605
1605
  * @license
1606
1606
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1607
1607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1608
- */const Ed=F`
1608
+ */const Sd=F`
1609
1609
  :host {
1610
1610
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1611
1611
  }
@@ -1781,7 +1781,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1781
1781
  * @license
1782
1782
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1783
1783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1784
- */const Sd=F`
1784
+ */const Ad=F`
1785
1785
  :host {
1786
1786
  --lumo-text-field-size: var(--lumo-size-m);
1787
1787
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1912,7 +1912,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1912
1912
  [part='clear-button']::before {
1913
1913
  content: var(--lumo-icons-cross);
1914
1914
  }
1915
- `,Ks=[Xs,qs,Ed,Sd];Z("",Ks,{moduleId:"lumo-input-field-shared-styles"});const Ad=F`
1915
+ `,Ks=[Xs,qs,Sd,Ad];Z("",Ks,{moduleId:"lumo-input-field-shared-styles"});const Cd=F`
1916
1916
  [part='toggle-button']::before {
1917
1917
  content: var(--lumo-icons-calendar);
1918
1918
  }
@@ -1934,7 +1934,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1934
1934
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1935
1935
  --_lumo-text-field-overflow-mask-image: none;
1936
1936
  }
1937
- `;Z("vaadin-date-picker",[Ks,Ad],{moduleId:"lumo-date-picker"});/**
1937
+ `;Z("vaadin-date-picker",[Ks,Cd],{moduleId:"lumo-date-picker"});/**
1938
1938
  @license
1939
1939
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1940
1940
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1950,7 +1950,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1950
1950
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1951
1951
  Code distributed by Google as part of the polymer project is also
1952
1952
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1953
- */let Cd=/(url\()([^)]*)(\))/g,Td=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,oi,be;function Ft(t,i){if(t&&Td.test(t)||t==="//")return t;if(oi===void 0){oi=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",oi=e.href==="http://a/c%20d"}catch(e){}}if(i||(i=document.baseURI||window.location.href),oi)try{return new URL(t,i).href}catch(e){return t}return be||(be=document.implementation.createHTMLDocument("temp"),be.base=be.createElement("base"),be.head.appendChild(be.base),be.anchor=be.createElement("a"),be.body.appendChild(be.anchor)),be.base.href=i,be.anchor.href=t,be.anchor.href||t}function ao(t,i){return t.replace(Cd,function(e,r,o,n){return r+"'"+Ft(o.replace(/["']/g,""),i)+"'"+n})}function lo(t){return t.substring(0,t.lastIndexOf("/")+1)}/**
1953
+ */let Td=/(url\()([^)]*)(\))/g,Pd=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,oi,be;function $t(t,i){if(t&&Pd.test(t)||t==="//")return t;if(oi===void 0){oi=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",oi=e.href==="http://a/c%20d"}catch(e){}}if(i||(i=document.baseURI||window.location.href),oi)try{return new URL(t,i).href}catch(e){return t}return be||(be=document.implementation.createHTMLDocument("temp"),be.base=be.createElement("base"),be.head.appendChild(be.base),be.anchor=be.createElement("a"),be.body.appendChild(be.anchor)),be.base.href=i,be.anchor.href=t,be.anchor.href||t}function uo(t,i){return t.replace(Td,function(e,r,o,n){return r+"'"+$t(o.replace(/["']/g,""),i)+"'"+n})}function co(t){return t.substring(0,t.lastIndexOf("/")+1)}/**
1954
1954
  @license
1955
1955
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1956
1956
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1958,7 +1958,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1958
1958
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1959
1959
  Code distributed by Google as part of the polymer project is also
1960
1960
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1961
- */const Js=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Pd=Js&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const i=document.createElement("div");return i.attachShadow({mode:"open"}),i.shadowRoot.adoptedStyleSheets=[t],i.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Dd=window.Polymer&&window.Polymer.rootPath||lo(document.baseURI||window.location.href),xi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let wi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,kd=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Zs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Qs=window.Polymer&&window.Polymer.legacyWarnings||!1,Md=window.Polymer&&window.Polymer.syncInitialRender||!1,Mr=window.Polymer&&window.Polymer.legacyUndefined||!1,Od=window.Polymer&&window.Polymer.orderedComputed||!1,dn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Id=window.Polymer&&window.Polymer.fastDomIf||!1,hn=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Nd=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1961
+ */const Js=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Dd=Js&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const i=document.createElement("div");return i.attachShadow({mode:"open"}),i.shadowRoot.adoptedStyleSheets=[t],i.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let kd=window.Polymer&&window.Polymer.rootPath||co(document.baseURI||window.location.href),wi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ei=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Md=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Zs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Qs=window.Polymer&&window.Polymer.legacyWarnings||!1,Od=window.Polymer&&window.Polymer.syncInitialRender||!1,Lr=window.Polymer&&window.Polymer.legacyUndefined||!1,Id=window.Polymer&&window.Polymer.orderedComputed||!1,hn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Nd=window.Polymer&&window.Polymer.fastDomIf||!1,fn=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Ld=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1962
1962
  @license
1963
1963
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1964
1964
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1966,7 +1966,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1966
1966
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1967
1967
  Code distributed by Google as part of the polymer project is also
1968
1968
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1969
- */let Ld=0;const ie=function(t){let i=t.__mixinApplications;i||(i=new WeakMap,t.__mixinApplications=i);let e=Ld++;function r(o){let n=o.__mixinSet;if(n&&n[e])return o;let s=i,a=s.get(o);if(!a){a=t(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
1969
+ */let Hd=0;const ie=function(t){let i=t.__mixinApplications;i||(i=new WeakMap,t.__mixinApplications=i);let e=Hd++;function r(o){let n=o.__mixinSet;if(n&&n[e])return o;let s=i,a=s.get(o);if(!a){a=t(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
1970
1970
  @license
1971
1971
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1972
1972
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1974,7 +1974,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1974
1974
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1975
1975
  Code distributed by Google as part of the polymer project is also
1976
1976
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1977
- */let uo={},ea={};function fn(t,i){uo[t]=ea[t.toLowerCase()]=i}function pn(t){return uo[t]||ea[t.toLowerCase()]}function Hd(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Gt extends HTMLElement{static get observedAttributes(){return["id"]}static import(i,e){if(i){let r=pn(i);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(i,e,r,o){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ft(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=lo(e)}return this.__assetpath}register(i){if(i=i||this.id,i){if(wi&&pn(i)!==void 0)throw fn(i,null),new Error(`strictTemplatePolicy: dom-module ${i} re-registered`);this.id=i,fn(i,this),Hd(this)}}}Gt.prototype.modules=uo;customElements.define("dom-module",Gt);/**
1977
+ */let ho={},ea={};function pn(t,i){ho[t]=ea[t.toLowerCase()]=i}function mn(t){return ho[t]||ea[t.toLowerCase()]}function Bd(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Yt extends HTMLElement{static get observedAttributes(){return["id"]}static import(i,e){if(i){let r=mn(i);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(i,e,r,o){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=$t(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=co(e)}return this.__assetpath}register(i){if(i=i||this.id,i){if(Ei&&mn(i)!==void 0)throw pn(i,null),new Error(`strictTemplatePolicy: dom-module ${i} re-registered`);this.id=i,pn(i,this),Bd(this)}}}Yt.prototype.modules=ho;customElements.define("dom-module",Yt);/**
1978
1978
  @license
1979
1979
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1980
1980
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1982,7 +1982,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1982
1982
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1983
1983
  Code distributed by Google as part of the polymer project is also
1984
1984
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1985
- */const Bd="link[rel=import][type~=css]",$d="include",mn="shady-unscoped";function ta(t){return Gt.import(t)}function _n(t){let i=t.body?t.body:t;const e=ao(i.textContent,t.baseURI),r=document.createElement("style");return r.textContent=e,r}function Fd(t){const i=t.trim().split(/\s+/),e=[];for(let r=0;r<i.length;r++)e.push(...Rd(i[r]));return e}function Rd(t){const i=ta(t);if(!i)return console.warn("Could not find style data in module named",t),[];if(i._styles===void 0){const e=[];e.push(...ra(i));const r=i.querySelector("template");r&&e.push(...ia(r,i.assetpath)),i._styles=e}return i._styles}function ia(t,i){if(!t._styles){const e=[],r=t.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let n=r[o],s=n.getAttribute($d);s&&e.push(...Fd(s).filter(function(a,l,u){return u.indexOf(a)===l})),i&&(n.textContent=ao(n.textContent,i)),e.push(n)}t._styles=e}return t._styles}function zd(t){let i=ta(t);return i?ra(i):[]}function ra(t){const i=[],e=t.querySelectorAll(Bd);for(let r=0;r<e.length;r++){let o=e[r];if(o.import){const n=o.import,s=o.hasAttribute(mn);if(s&&!n._unscopedStyle){const a=_n(n);a.setAttribute(mn,""),n._unscopedStyle=a}else n._style||(n._style=_n(n));i.push(s?n._unscopedStyle:n._style)}}return i}/**
1985
+ */const $d="link[rel=import][type~=css]",Fd="include",_n="shady-unscoped";function ta(t){return Yt.import(t)}function gn(t){let i=t.body?t.body:t;const e=uo(i.textContent,t.baseURI),r=document.createElement("style");return r.textContent=e,r}function Rd(t){const i=t.trim().split(/\s+/),e=[];for(let r=0;r<i.length;r++)e.push(...zd(i[r]));return e}function zd(t){const i=ta(t);if(!i)return console.warn("Could not find style data in module named",t),[];if(i._styles===void 0){const e=[];e.push(...ra(i));const r=i.querySelector("template");r&&e.push(...ia(r,i.assetpath)),i._styles=e}return i._styles}function ia(t,i){if(!t._styles){const e=[],r=t.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let n=r[o],s=n.getAttribute(Fd);s&&e.push(...Rd(s).filter(function(a,l,u){return u.indexOf(a)===l})),i&&(n.textContent=uo(n.textContent,i)),e.push(n)}t._styles=e}return t._styles}function Ud(t){let i=ta(t);return i?ra(i):[]}function ra(t){const i=[],e=t.querySelectorAll($d);for(let r=0;r<e.length;r++){let o=e[r];if(o.import){const n=o.import,s=o.hasAttribute(_n);if(s&&!n._unscopedStyle){const a=gn(n);a.setAttribute(_n,""),n._unscopedStyle=a}else n._style||(n._style=gn(n));i.push(s?n._unscopedStyle:n._style)}}return i}/**
1986
1986
  @license
1987
1987
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1988
1988
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1998,7 +1998,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1998
1998
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1999
1999
  Code distributed by Google as part of the polymer project is also
2000
2000
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2001
- */function Or(t){return t.indexOf(".")>=0}function Qe(t){let i=t.indexOf(".");return i===-1?t:t.slice(0,i)}function oa(t,i){return t.indexOf(i+".")===0}function Wt(t,i){return i.indexOf(t+".")===0}function qt(t,i,e){return i+e.slice(t.length)}function Ud(t,i){return t===i||oa(t,i)||Wt(t,i)}function Nt(t){if(Array.isArray(t)){let i=[];for(let e=0;e<t.length;e++){let r=t[e].toString().split(".");for(let o=0;o<r.length;o++)i.push(r[o])}return i.join(".")}else return t}function na(t){return Array.isArray(t)?Nt(t).split("."):t.toString().split(".")}function he(t,i,e){let r=t,o=na(i);for(let n=0;n<o.length;n++){if(!r)return;let s=o[n];r=r[s]}return e&&(e.path=o.join(".")),r}function gn(t,i,e){let r=t,o=na(i),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(r=r[a],!r)return}r[n]=e}else r[i]=e;return o.join(".")}/**
2001
+ */function Hr(t){return t.indexOf(".")>=0}function Qe(t){let i=t.indexOf(".");return i===-1?t:t.slice(0,i)}function oa(t,i){return t.indexOf(i+".")===0}function Gt(t,i){return i.indexOf(t+".")===0}function Wt(t,i,e){return i+e.slice(t.length)}function jd(t,i){return t===i||oa(t,i)||Gt(t,i)}function It(t){if(Array.isArray(t)){let i=[];for(let e=0;e<t.length;e++){let r=t[e].toString().split(".");for(let o=0;o<r.length;o++)i.push(r[o])}return i.join(".")}else return t}function na(t){return Array.isArray(t)?It(t).split("."):t.toString().split(".")}function he(t,i,e){let r=t,o=na(i);for(let n=0;n<o.length;n++){if(!r)return;let s=o[n];r=r[s]}return e&&(e.path=o.join(".")),r}function bn(t,i,e){let r=t,o=na(i),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(r=r[a],!r)return}r[n]=e}else r[i]=e;return o.join(".")}/**
2002
2002
  @license
2003
2003
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2004
2004
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2006,7 +2006,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2006
2006
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2007
2007
  Code distributed by Google as part of the polymer project is also
2008
2008
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2009
- */const Ei={},jd=/-[a-z]/g,Vd=/([A-Z])/g;function sa(t){return Ei[t]||(Ei[t]=t.indexOf("-")<0?t:t.replace(jd,i=>i[1].toUpperCase()))}function Ii(t){return Ei[t]||(Ei[t]=t.replace(Vd,"-$1").toLowerCase())}/**
2009
+ */const Si={},Vd=/-[a-z]/g,Yd=/([A-Z])/g;function sa(t){return Si[t]||(Si[t]=t.indexOf("-")<0?t:t.replace(Vd,i=>i[1].toUpperCase()))}function Li(t){return Si[t]||(Si[t]=t.replace(Yd,"-$1").toLowerCase())}/**
2010
2010
  @license
2011
2011
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2012
2012
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2014,7 +2014,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2014
2014
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2015
2015
  Code distributed by Google as part of the polymer project is also
2016
2016
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2017
- */let Yd=0,aa=0,dt=[],Gd=0,Ir=!1,la=document.createTextNode("");new window.MutationObserver(Wd).observe(la,{characterData:!0});function Wd(){Ir=!1;const t=dt.length;for(let i=0;i<t;i++){let e=dt[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}dt.splice(0,t),aa+=t}const qd={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},ua={run(t){return Ir||(Ir=!0,la.textContent=Gd++),dt.push(t),Yd++},cancel(t){const i=t-aa;if(i>=0){if(!dt[i])throw new Error("invalid async handle: "+t);dt[i]=null}}};/**
2017
+ */let Gd=0,aa=0,ct=[],Wd=0,Br=!1,la=document.createTextNode("");new window.MutationObserver(qd).observe(la,{characterData:!0});function qd(){Br=!1;const t=ct.length;for(let i=0;i<t;i++){let e=ct[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}ct.splice(0,t),aa+=t}const Xd={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},ua={run(t){return Br||(Br=!0,la.textContent=Wd++),ct.push(t),Gd++},cancel(t){const i=t-aa;if(i>=0){if(!ct[i])throw new Error("invalid async handle: "+t);ct[i]=null}}};/**
2018
2018
  @license
2019
2019
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2020
2020
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2022,7 +2022,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2022
2022
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2023
2023
  Code distributed by Google as part of the polymer project is also
2024
2024
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2025
- */const Xd=ua,ca=ie(t=>{class i extends t{static createProperties(r){const o=this.prototype;for(let n in r)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(n){this._setPendingProperty(r,n,!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 r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,n){let s=this.__data[r],a=this._shouldPropertyChange(r,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=o,this.__dataPending[r]=o),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Xd.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 r=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(r,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,n)),this.__dataCounter--}_shouldPropertiesChange(r,o,n){return!!o}_propertiesChanged(r,o,n){}_shouldPropertyChange(r,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(r,o,n,s){o!==n&&this._attributeToProperty(r,n),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,n,s)}_attributeToProperty(r,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,o,n){this.__serializing=!0,n=arguments.length<3?this[r]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(r=se(r)),s===void 0?r.removeAttribute(n):r.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return i});/**
2025
+ */const Kd=ua,ca=ie(t=>{class i extends t{static createProperties(r){const o=this.prototype;for(let n in r)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(n){this._setPendingProperty(r,n,!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 r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,n){let s=this.__data[r],a=this._shouldPropertyChange(r,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=o,this.__dataPending[r]=o),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Kd.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 r=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(r,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,n)),this.__dataCounter--}_shouldPropertiesChange(r,o,n){return!!o}_propertiesChanged(r,o,n){}_shouldPropertyChange(r,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(r,o,n,s){o!==n&&this._attributeToProperty(r,n),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,n,s)}_attributeToProperty(r,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,o,n){this.__serializing=!0,n=arguments.length<3?this[r]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(r=se(r)),s===void 0?r.removeAttribute(n):r.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return i});/**
2026
2026
  @license
2027
2027
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2028
2028
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2030,7 +2030,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2030
2030
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2031
2031
  Code distributed by Google as part of the polymer project is also
2032
2032
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2033
- */const da={};let ni=HTMLElement.prototype;for(;ni;){let t=Object.getOwnPropertyNames(ni);for(let i=0;i<t.length;i++)da[t[i]]=!0;ni=Object.getPrototypeOf(ni)}const Kd=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function Jd(t,i){if(!da[i]){let e=t[i];e!==void 0&&(t.__data?t._setPendingProperty(i,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[i]=e))}}const Zd=ie(t=>{const i=ca(t);class e extends i{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(sa(o[n]))}static attributeNameForProperty(o){return Ii(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Kd(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){Jd(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return e});/**
2033
+ */const da={};let ni=HTMLElement.prototype;for(;ni;){let t=Object.getOwnPropertyNames(ni);for(let i=0;i<t.length;i++)da[t[i]]=!0;ni=Object.getPrototypeOf(ni)}const Jd=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function Zd(t,i){if(!da[i]){let e=t[i];e!==void 0&&(t.__data?t._setPendingProperty(i,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[i]=e))}}const Qd=ie(t=>{const i=ca(t);class e extends i{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(sa(o[n]))}static attributeNameForProperty(o){return Li(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Jd(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){Zd(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return e});/**
2034
2034
  @license
2035
2035
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2036
2036
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2038,7 +2038,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2038
2038
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2039
2039
  Code distributed by Google as part of the polymer project is also
2040
2040
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2041
- */const Qd={"dom-if":!0,"dom-repeat":!0};let bn=!1,vn=!1;function eh(){if(!bn){bn=!0;const t=document.createElement("textarea");t.placeholder="a",vn=t.placeholder===t.textContent}return vn}function th(t){eh()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const ih=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:i=>i});return(i,e,r)=>{const o=e.getAttribute(r);if(t&&r.startsWith("on-")){i.setAttribute(r,t.createScript(o,r));return}i.setAttribute(r,o)}})();function rh(t){let i=t.getAttribute("is");if(i&&Qd[i]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(i),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];ih(t,e,r),e.removeAttribute(r)}}return t}function ha(t,i){let e=i.parentInfo&&ha(t,i.parentInfo);if(e){for(let r=e.firstChild,o=0;r;r=r.nextSibling)if(i.parentIndex===o++)return r}else return t}function oh(t,i,e,r){r.id&&(i[r.id]=e)}function nh(t,i,e){if(e.events&&e.events.length)for(let r=0,o=e.events,n;r<o.length&&(n=o[r]);r++)t._addMethodEventListenerToNode(i,n.name,n.value,t)}function sh(t,i,e,r){e.templateInfo&&(i._templateInfo=e.templateInfo,i._parentTemplateInfo=r)}function ah(t,i,e){return t=t._methodHost||t,function(o){t[e]?t[e](o,o.detail):console.warn("listener method `"+e+"` not defined")}}const lh=ie(t=>{class i extends t{static _parseTemplate(r,o){if(!r._templateInfo){let n=r._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,n,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,n){return this._parseTemplateNode(r.content,o,n)}static _parseTemplateNode(r,o,n){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),th(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(r,o,n){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=rh(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)s.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(o.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,u)&&(u.infoIndex=o.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,o,n){let s=r,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,o,n){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,o,n,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,o,n,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let n=o.nodeInfoList,s=o.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let u=0,c=n.length,d;u<c&&(d=n[u]);u++){let h=l[u]=ha(a,d);oh(this,a.$,h,d),sh(this,h,d,o),nh(this,h,d)}return a=a,a}_addMethodEventListenerToNode(r,o,n,s){s=s||r;let a=ah(s,o,n);return this._addEventListenerToNode(r,o,a),a}_addEventListenerToNode(r,o,n){r.addEventListener(o,n)}_removeEventListenerFromNode(r,o,n){r.removeEventListener(o,n)}}return i});/**
2041
+ */const eh={"dom-if":!0,"dom-repeat":!0};let vn=!1,yn=!1;function th(){if(!vn){vn=!0;const t=document.createElement("textarea");t.placeholder="a",yn=t.placeholder===t.textContent}return yn}function ih(t){th()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const rh=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:i=>i});return(i,e,r)=>{const o=e.getAttribute(r);if(t&&r.startsWith("on-")){i.setAttribute(r,t.createScript(o,r));return}i.setAttribute(r,o)}})();function oh(t){let i=t.getAttribute("is");if(i&&eh[i]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(i),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];rh(t,e,r),e.removeAttribute(r)}}return t}function ha(t,i){let e=i.parentInfo&&ha(t,i.parentInfo);if(e){for(let r=e.firstChild,o=0;r;r=r.nextSibling)if(i.parentIndex===o++)return r}else return t}function nh(t,i,e,r){r.id&&(i[r.id]=e)}function sh(t,i,e){if(e.events&&e.events.length)for(let r=0,o=e.events,n;r<o.length&&(n=o[r]);r++)t._addMethodEventListenerToNode(i,n.name,n.value,t)}function ah(t,i,e,r){e.templateInfo&&(i._templateInfo=e.templateInfo,i._parentTemplateInfo=r)}function lh(t,i,e){return t=t._methodHost||t,function(o){t[e]?t[e](o,o.detail):console.warn("listener method `"+e+"` not defined")}}const uh=ie(t=>{class i extends t{static _parseTemplate(r,o){if(!r._templateInfo){let n=r._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,n,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,n){return this._parseTemplateNode(r.content,o,n)}static _parseTemplateNode(r,o,n){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),ih(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(r,o,n){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=oh(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)s.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(o.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,u)&&(u.infoIndex=o.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,o,n){let s=r,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,o,n){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,o,n,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,o,n,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let n=o.nodeInfoList,s=o.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let u=0,c=n.length,d;u<c&&(d=n[u]);u++){let h=l[u]=ha(a,d);nh(this,a.$,h,d),ah(this,h,d,o),sh(this,h,d)}return a=a,a}_addMethodEventListenerToNode(r,o,n,s){s=s||r;let a=lh(s,o,n);return this._addEventListenerToNode(r,o,a),a}_addEventListenerToNode(r,o,n){r.addEventListener(o,n)}_removeEventListenerFromNode(r,o,n){r.removeEventListener(o,n)}}return i});/**
2042
2042
  * @fileoverview
2043
2043
  * @suppress {checkPrototypalTypes}
2044
2044
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2048,7 +2048,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2049
2049
  * Google as part of the polymer project is also subject to an additional IP
2050
2050
  * rights grant found at http://polymer.github.io/PATENTS.txt
2051
- */let Xt=0;const Kt=[],z={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},fa="__computeInfo",uh=/[A-Z]/;function Qi(t,i,e){let r=t[i];if(!r)r=t[i]={};else if(!t.hasOwnProperty(i)&&(r=t[i]=Object.create(t[i]),e))for(let o in r){let n=r[o],s=r[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return r}function Lt(t,i,e,r,o,n){if(i){let s=!1;const a=Xt++;for(let l in e){let u=o?Qe(l):l,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==a)&&(!o||co(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,e,r,f.info,o,n),s=!0)}return s}return!1}function ch(t,i,e,r,o,n,s,a){let l=!1,u=s?Qe(r):r,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==e)&&(!s||co(r,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(t,r,o,n,f.info,s,a),l=!0);return l}function co(t,i){if(i){let e=i.name;return e==t||!!(i.structured&&oa(e,t))||!!(i.wildcard&&Wt(e,t))}else return!0}function yn(t,i,e,r,o){let n=typeof o.method=="string"?t[o.method]:o.method,s=o.property;n?n.call(t,t.__data[s],r[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function dh(t,i,e,r,o){let n=t[z.NOTIFY],s,a=Xt++;for(let u in i)i[u]&&(n&&ch(t,n,a,u,e,r,o)||o&&hh(t,u,e))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function hh(t,i,e){let r=Qe(i);if(r!==i){let o=Ii(r)+"-changed";return pa(t,o,e[i],i),!0}return!1}function pa(t,i,e,r){let o={value:e,queueProperty:!0};r&&(o.path=r),se(t).dispatchEvent(new CustomEvent(i,{detail:o}))}function fh(t,i,e,r,o,n){let a=(n?Qe(i):i)!=i?i:null,l=a?he(t,a):t.__data[i];a&&l===void 0&&(l=e[i]),pa(t,o.eventName,l,a)}function ph(t,i,e,r,o){let n,s=t.detail,a=s&&s.path;a?(r=qt(e,r,a),n=s&&s.value):n=t.currentTarget[e],n=o?!n:n,(!i[z.READ_ONLY]||!i[z.READ_ONLY][r])&&i._setPendingPropertyOrPath(r,n,!0,!!a)&&(!s||!s.queueProperty)&&i._invalidateProperties()}function mh(t,i,e,r,o){let n=t.__data[i];xi&&(n=xi(n,o.attrName,"attribute",t)),t._propertyToAttribute(i,o.attrName,n)}function _h(t,i,e,r){let o=t[z.COMPUTE];if(o)if(Od){Xt++;const n=bh(t),s=[];for(let l in i)xn(l,o,s,n,r);let a;for(;a=s.shift();)ma(t,"",i,e,a)&&xn(a.methodInfo,o,s,n,r);Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let n=i;for(;Lt(t,o,n,e,r);)Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),n=t.__dataPending,t.__dataPending=null}}const gh=(t,i,e)=>{let r=0,o=i.length-1,n=-1;for(;r<=o;){const s=r+o>>1,a=e.get(i[s].methodInfo)-e.get(t.methodInfo);if(a<0)r=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),i.splice(n,0,t)},xn=(t,i,e,r,o)=>{const n=o?Qe(t):t,s=i[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Xt&&(!o||co(t,l.trigger))&&(l.info.lastRun=Xt,gh(l.info,e,r))}};function bh(t){let i=t.constructor.__orderedComputedDeps;if(!i){i=new Map;const e=t[z.COMPUTE];let{counts:r,ready:o,total:n}=vh(t),s;for(;s=o.shift();){i.set(s,i.size);const a=e[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--n,--r[u]===0&&o.push(u)})}n!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=i}return i}function vh(t){const i=t[fa],e={},r=t[z.COMPUTE],o=[];let n=0;for(let s in i){const a=i[s];n+=e[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)i[s]||o.push(s);return{counts:e,ready:o,total:n}}function ma(t,i,e,r,o){let n=Nr(t,i,e,r,o);if(n===Kt)return!1;let s=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,n,!0):(t[s]=n,!1)}function yh(t,i,e){let r=t.__dataLinkedPaths;if(r){let o;for(let n in r){let s=r[n];Wt(n,i)?(o=qt(n,s,i),t._setPendingPropertyOrPath(o,e,!0,!0)):Wt(s,i)&&(o=qt(s,n,i),t._setPendingPropertyOrPath(o,e,!0,!0))}}}function er(t,i,e,r,o,n,s){e.bindings=e.bindings||[];let a={kind:r,target:o,parts:n,literal:s,isCompound:n.length!==1};if(e.bindings.push(a),Ah(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Ii(o)+"-changed",a.listenerNegate=c}let l=i.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,xh(t,i,a,c,l)}}function xh(t,i,e,r,o){if(!r.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 n=r.dependencies,s={index:o,binding:e,part:r,evaluator:t};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=ga(l),l.wildcard=!0),t._addTemplatePropertyEffect(i,l.rootProperty,{fn:wh,info:s,trigger:l})}}}function wh(t,i,e,r,o,n,s){let a=s[o.index],l=o.binding,u=o.part;if(n&&u.source&&i.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[i];i=qt(u.source,l.target,i),a._setPendingPropertyOrPath(i,c,!1,!0)&&t._enqueueClient(a)}else{let c=o.evaluator._evaluateBinding(t,u,i,e,r,n);c!==Kt&&Eh(t,a,l,u,c)}}function Eh(t,i,e,r,o){if(o=Sh(i,o,e,r),xi&&(o=xi(o,e.target,e.kind,i)),e.kind=="attribute")t._valueToNodeAttribute(i,o,e.target);else{let n=e.target;i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[n]?(!i[z.READ_ONLY]||!i[z.READ_ONLY][n])&&i._setPendingProperty(n,o)&&t._enqueueClient(i):t._setUnmanagedPropertyToNode(i,n,o)}}function Sh(t,i,e,r){if(e.isCompound){let o=t.__dataCompoundStorage[e.target];o[r.compoundIndex]=i,i=o.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(i=i==null?"":i),i}function Ah(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Ch(t,i){let{nodeList:e,nodeInfoList:r}=i;if(r.length)for(let o=0;o<r.length;o++){let n=r[o],s=e[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Th(s,u),Ph(s,t,u)}s.__dataHost=t}}function Th(t,i){if(i.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=i.parts,o=new Array(r.length);for(let s=0;s<r.length;s++)o[s]=r[s].literal;let n=i.target;e[n]=o,i.literal&&i.kind=="property"&&(n==="className"&&(t=se(t)),t[n]=i.literal)}}function Ph(t,i,e){if(e.listenerEvent){let r=e.parts[0];t.addEventListener(e.listenerEvent,function(o){ph(o,i,e.target,r.source,r.negate)})}}function wn(t,i,e,r,o,n){n=i.static||n&&(typeof n!="object"||n[i.methodName]);let s={methodName:i.methodName,args:i.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<i.args.length&&(l=i.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:r,info:s,trigger:l});return n&&t._addPropertyEffect(i.methodName,e,{fn:r,info:s}),s}function Nr(t,i,e,r,o){let n=t._methodHost||t,s=n[o.methodName];if(s){let a=t._marshalArgs(o.args,i,e);return a===Kt?Kt:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Dh=[],_a="(?:[a-zA-Z_$][\\w.:$\\-*]*)",kh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Mh="(?:'(?:[^'\\\\]|\\\\.)*')",Oh='(?:"(?:[^"\\\\]|\\\\.)*")',Ih="(?:"+Mh+"|"+Oh+")",En="(?:("+_a+"|"+kh+"|"+Ih+")\\s*)",Nh="(?:"+En+"(?:,\\s*"+En+")*)",Lh="(?:\\(\\s*(?:"+Nh+"?)\\)\\s*)",Hh="("+_a+"\\s*"+Lh+"?)",Bh="(\\[\\[|{{)\\s*",$h="(?:]]|}})",Fh="(?:(!)\\s*)?",Rh=Bh+Fh+Hh+$h,Sn=new RegExp(Rh,"g");function An(t){let i="";for(let e=0;e<t.length;e++){let r=t[e].literal;i+=r||""}return i}function tr(t){let i=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(i){let r={methodName:i[1],static:!0,args:Dh};if(i[2].trim()){let o=i[2].replace(/\\,/g,"&comma;").split(",");return zh(o,r)}else return r}return null}function zh(t,i){return i.args=t.map(function(e){let r=ga(e);return r.literal||(i.static=!1),r},this),i}function ga(t){let i=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:i,value:"",literal:!1},r=i[0];switch(r==="-"&&(r=i[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=i.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(i),e.literal=!0;break}return e.literal||(e.rootProperty=Qe(i),e.structured=Or(i),e.structured&&(e.wildcard=i.slice(-2)==".*",e.wildcard&&(e.name=i.slice(0,-2)))),e}function Cn(t,i,e){let r=he(t,e);return r===void 0&&(r=i[e]),r}function ba(t,i,e,r){const o={indexSplices:r};Mr&&!t._overrideLegacyUndefined&&(i.splices=o),t.notifyPath(e+".splices",o),t.notifyPath(e+".length",i.length),Mr&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function kt(t,i,e,r,o,n){ba(t,i,e,[{index:r,addedCount:o,removed:n,object:i,type:"splice"}])}function Uh(t){return t[0].toUpperCase()+t.substring(1)}const ho=ie(t=>{const i=lh(Zd(t));class e extends i{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return z}_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(Mt.length){let o=Mt[Mt.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 n=this[z.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==z.READ_ONLY);let a=Qi(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=Qi(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,z.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,z.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,z.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,z.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Qe(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=he(this,o);if(o=gn(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return yh(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=se(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&Or(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[z.NOTIFY]&&this[z.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!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 n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[z.READ_ONLY]||!this[z.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;_h(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Lt(this,this[z.REFLECT],n,s,a),Lt(this,this[z.OBSERVE],n,s,a),l&&dh(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[z.PROPAGATE]&&Lt(this,this[z.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(u,c)=>{Lt(this,o.propertyEffects,u,s,c,o.nodeList);for(let d=o.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,s,c)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=Nt(o),n=Nt(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=Nt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=he(this,o,s);ba(this,a,s.path,n)}get(o,n){return he(n||this,o)}set(o,n,s){s?gn(s,o,n):(!this[z.READ_ONLY]||!this[z.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=he(this,o,s),l=a.length,u=a.push(...n);return n.length&&kt(this,a,s.path,l,n.length,[]),u}pop(o){let n={path:""},s=he(this,o,n),a=!!s.length,l=s.pop();return a&&kt(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},u=he(this,o,l);n<0?n=u.length-Math.floor(-n):n&&(n=Math.floor(n));let c;return arguments.length===2?c=u.splice(n):c=u.splice(n,s,...a),(a.length||c.length)&&kt(this,u,l.path,n,a.length,c),c}shift(o){let n={path:""},s=he(this,o,n),a=!!s.length,l=s.shift();return a&&kt(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=he(this,o,s),l=a.unshift(...n);return n.length&&kt(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=he(this,o,a),s=a.path}else Array.isArray(o)?s=Nt(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,z.READ_ONLY),n&&(this["_set"+Uh(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,z.OBSERVE,{fn:yn,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,z.OBSERVE,{fn:yn,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=tr(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");wn(this,s,z.OBSERVE,Nr,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,z.NOTIFY,{fn:fh,info:{eventName:Ii(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,z.REFLECT,{fn:mh,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=tr(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=wn(this,a,z.COMPUTE,ma,o,s);Qi(this,fa)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let u=0,c=o.length;u<c;u++){let{name:d,structured:h,wildcard:f,value:p,literal:y}=o[u];if(!y)if(f){const D=Wt(d,n),k=Cn(a,s,D?n:d);p={path:D?n:d,value:k,base:D?he(a,d):k}}else p=h?Cn(a,s,d):a[d];if(Mr&&!this._overrideLegacyUndefined&&p===void 0&&o.length>1)return Kt;l[u]=p}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,u=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=u,u?u.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),Mt.push(this);let s=super._stampTemplate(o,n);if(Mt.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,Ch(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let u=n.childNodes;for(let c=0;c<u.length;c++){let d=u[c];se(se(d).parentNode).removeChild(d)}}static _parseTemplateNode(o,n,s){let a=i._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=An(l)||" ",er(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let u=this._parseBindings(l,n);if(u){let c=a,d="property";uh.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let h=An(u);return h&&d=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(h+=" "+o.getAttribute(a)),o.setAttribute(a,h)),d=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),d==="property"&&(a=sa(a)),er(this,n,s,d,a,u,h),!0}else return i._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=i._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,u=s.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";dn&&(c||d)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(Id&&c)h&&(n.hostProps=Object.assign(n.hostProps||{},h),dn||(s.parentInfo.noted=!0));else{let f="{";for(let p in h){let y=[{mode:f,source:p,dependencies:[p],hostProp:!0}];er(this,n,s,"property","_host_"+p,y)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=Sn.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),h=!1,f="",p=-1;u=="{"&&(p=d.indexOf("::"))>0&&(f=d.substring(p+2),d=d.substring(0,p),h=!0);let y=tr(d),D=[];if(y){let{args:k,methodName:P}=y;for(let j=0;j<k.length;j++){let O=k[j];O.literal||D.push(O)}let R=n.dynamicFns;(R&&R[P]||y.static)&&(D.push(P),y.dynamicFn=!0)}else D.push(d);s.push({source:d,mode:u,negate:c,customEvent:h,signature:y,dependencies:D,event:f}),a=Sn.lastIndex}if(a&&a<o.length){let u=o.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,u){let c;return n.signature?c=Nr(o,s,a,l,n.signature):s!=n.source?c=he(o,n.source):u&&Or(s)?c=he(o,s):c=o.__data[s],n.negate&&(c=!c),c}}return e}),Mt=[];/**
2051
+ */let qt=0;const Xt=[],z={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},fa="__computeInfo",ch=/[A-Z]/;function tr(t,i,e){let r=t[i];if(!r)r=t[i]={};else if(!t.hasOwnProperty(i)&&(r=t[i]=Object.create(t[i]),e))for(let o in r){let n=r[o],s=r[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return r}function Nt(t,i,e,r,o,n){if(i){let s=!1;const a=qt++;for(let l in e){let u=o?Qe(l):l,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==a)&&(!o||fo(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,e,r,f.info,o,n),s=!0)}return s}return!1}function dh(t,i,e,r,o,n,s,a){let l=!1,u=s?Qe(r):r,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==e)&&(!s||fo(r,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(t,r,o,n,f.info,s,a),l=!0);return l}function fo(t,i){if(i){let e=i.name;return e==t||!!(i.structured&&oa(e,t))||!!(i.wildcard&&Gt(e,t))}else return!0}function xn(t,i,e,r,o){let n=typeof o.method=="string"?t[o.method]:o.method,s=o.property;n?n.call(t,t.__data[s],r[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function hh(t,i,e,r,o){let n=t[z.NOTIFY],s,a=qt++;for(let u in i)i[u]&&(n&&dh(t,n,a,u,e,r,o)||o&&fh(t,u,e))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function fh(t,i,e){let r=Qe(i);if(r!==i){let o=Li(r)+"-changed";return pa(t,o,e[i],i),!0}return!1}function pa(t,i,e,r){let o={value:e,queueProperty:!0};r&&(o.path=r),se(t).dispatchEvent(new CustomEvent(i,{detail:o}))}function ph(t,i,e,r,o,n){let a=(n?Qe(i):i)!=i?i:null,l=a?he(t,a):t.__data[i];a&&l===void 0&&(l=e[i]),pa(t,o.eventName,l,a)}function mh(t,i,e,r,o){let n,s=t.detail,a=s&&s.path;a?(r=Wt(e,r,a),n=s&&s.value):n=t.currentTarget[e],n=o?!n:n,(!i[z.READ_ONLY]||!i[z.READ_ONLY][r])&&i._setPendingPropertyOrPath(r,n,!0,!!a)&&(!s||!s.queueProperty)&&i._invalidateProperties()}function _h(t,i,e,r,o){let n=t.__data[i];wi&&(n=wi(n,o.attrName,"attribute",t)),t._propertyToAttribute(i,o.attrName,n)}function gh(t,i,e,r){let o=t[z.COMPUTE];if(o)if(Id){qt++;const n=vh(t),s=[];for(let l in i)wn(l,o,s,n,r);let a;for(;a=s.shift();)ma(t,"",i,e,a)&&wn(a.methodInfo,o,s,n,r);Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let n=i;for(;Nt(t,o,n,e,r);)Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),n=t.__dataPending,t.__dataPending=null}}const bh=(t,i,e)=>{let r=0,o=i.length-1,n=-1;for(;r<=o;){const s=r+o>>1,a=e.get(i[s].methodInfo)-e.get(t.methodInfo);if(a<0)r=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),i.splice(n,0,t)},wn=(t,i,e,r,o)=>{const n=o?Qe(t):t,s=i[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==qt&&(!o||fo(t,l.trigger))&&(l.info.lastRun=qt,bh(l.info,e,r))}};function vh(t){let i=t.constructor.__orderedComputedDeps;if(!i){i=new Map;const e=t[z.COMPUTE];let{counts:r,ready:o,total:n}=yh(t),s;for(;s=o.shift();){i.set(s,i.size);const a=e[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--n,--r[u]===0&&o.push(u)})}n!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=i}return i}function yh(t){const i=t[fa],e={},r=t[z.COMPUTE],o=[];let n=0;for(let s in i){const a=i[s];n+=e[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)i[s]||o.push(s);return{counts:e,ready:o,total:n}}function ma(t,i,e,r,o){let n=$r(t,i,e,r,o);if(n===Xt)return!1;let s=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,n,!0):(t[s]=n,!1)}function xh(t,i,e){let r=t.__dataLinkedPaths;if(r){let o;for(let n in r){let s=r[n];Gt(n,i)?(o=Wt(n,s,i),t._setPendingPropertyOrPath(o,e,!0,!0)):Gt(s,i)&&(o=Wt(s,n,i),t._setPendingPropertyOrPath(o,e,!0,!0))}}}function ir(t,i,e,r,o,n,s){e.bindings=e.bindings||[];let a={kind:r,target:o,parts:n,literal:s,isCompound:n.length!==1};if(e.bindings.push(a),Ch(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Li(o)+"-changed",a.listenerNegate=c}let l=i.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,wh(t,i,a,c,l)}}function wh(t,i,e,r,o){if(!r.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 n=r.dependencies,s={index:o,binding:e,part:r,evaluator:t};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=ga(l),l.wildcard=!0),t._addTemplatePropertyEffect(i,l.rootProperty,{fn:Eh,info:s,trigger:l})}}}function Eh(t,i,e,r,o,n,s){let a=s[o.index],l=o.binding,u=o.part;if(n&&u.source&&i.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[i];i=Wt(u.source,l.target,i),a._setPendingPropertyOrPath(i,c,!1,!0)&&t._enqueueClient(a)}else{let c=o.evaluator._evaluateBinding(t,u,i,e,r,n);c!==Xt&&Sh(t,a,l,u,c)}}function Sh(t,i,e,r,o){if(o=Ah(i,o,e,r),wi&&(o=wi(o,e.target,e.kind,i)),e.kind=="attribute")t._valueToNodeAttribute(i,o,e.target);else{let n=e.target;i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[n]?(!i[z.READ_ONLY]||!i[z.READ_ONLY][n])&&i._setPendingProperty(n,o)&&t._enqueueClient(i):t._setUnmanagedPropertyToNode(i,n,o)}}function Ah(t,i,e,r){if(e.isCompound){let o=t.__dataCompoundStorage[e.target];o[r.compoundIndex]=i,i=o.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(i=i==null?"":i),i}function Ch(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Th(t,i){let{nodeList:e,nodeInfoList:r}=i;if(r.length)for(let o=0;o<r.length;o++){let n=r[o],s=e[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Ph(s,u),Dh(s,t,u)}s.__dataHost=t}}function Ph(t,i){if(i.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=i.parts,o=new Array(r.length);for(let s=0;s<r.length;s++)o[s]=r[s].literal;let n=i.target;e[n]=o,i.literal&&i.kind=="property"&&(n==="className"&&(t=se(t)),t[n]=i.literal)}}function Dh(t,i,e){if(e.listenerEvent){let r=e.parts[0];t.addEventListener(e.listenerEvent,function(o){mh(o,i,e.target,r.source,r.negate)})}}function En(t,i,e,r,o,n){n=i.static||n&&(typeof n!="object"||n[i.methodName]);let s={methodName:i.methodName,args:i.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<i.args.length&&(l=i.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:r,info:s,trigger:l});return n&&t._addPropertyEffect(i.methodName,e,{fn:r,info:s}),s}function $r(t,i,e,r,o){let n=t._methodHost||t,s=n[o.methodName];if(s){let a=t._marshalArgs(o.args,i,e);return a===Xt?Xt:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const kh=[],_a="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Mh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Oh="(?:'(?:[^'\\\\]|\\\\.)*')",Ih='(?:"(?:[^"\\\\]|\\\\.)*")',Nh="(?:"+Oh+"|"+Ih+")",Sn="(?:("+_a+"|"+Mh+"|"+Nh+")\\s*)",Lh="(?:"+Sn+"(?:,\\s*"+Sn+")*)",Hh="(?:\\(\\s*(?:"+Lh+"?)\\)\\s*)",Bh="("+_a+"\\s*"+Hh+"?)",$h="(\\[\\[|{{)\\s*",Fh="(?:]]|}})",Rh="(?:(!)\\s*)?",zh=$h+Rh+Bh+Fh,An=new RegExp(zh,"g");function Cn(t){let i="";for(let e=0;e<t.length;e++){let r=t[e].literal;i+=r||""}return i}function rr(t){let i=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(i){let r={methodName:i[1],static:!0,args:kh};if(i[2].trim()){let o=i[2].replace(/\\,/g,"&comma;").split(",");return Uh(o,r)}else return r}return null}function Uh(t,i){return i.args=t.map(function(e){let r=ga(e);return r.literal||(i.static=!1),r},this),i}function ga(t){let i=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:i,value:"",literal:!1},r=i[0];switch(r==="-"&&(r=i[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=i.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(i),e.literal=!0;break}return e.literal||(e.rootProperty=Qe(i),e.structured=Hr(i),e.structured&&(e.wildcard=i.slice(-2)==".*",e.wildcard&&(e.name=i.slice(0,-2)))),e}function Tn(t,i,e){let r=he(t,e);return r===void 0&&(r=i[e]),r}function ba(t,i,e,r){const o={indexSplices:r};Lr&&!t._overrideLegacyUndefined&&(i.splices=o),t.notifyPath(e+".splices",o),t.notifyPath(e+".length",i.length),Lr&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function Dt(t,i,e,r,o,n){ba(t,i,e,[{index:r,addedCount:o,removed:n,object:i,type:"splice"}])}function jh(t){return t[0].toUpperCase()+t.substring(1)}const po=ie(t=>{const i=uh(Qd(t));class e extends i{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return z}_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(kt.length){let o=kt[kt.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 n=this[z.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==z.READ_ONLY);let a=tr(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=tr(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,z.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,z.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,z.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,z.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Qe(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=he(this,o);if(o=bn(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return xh(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=se(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&Hr(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[z.NOTIFY]&&this[z.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!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 n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[z.READ_ONLY]||!this[z.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;gh(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Nt(this,this[z.REFLECT],n,s,a),Nt(this,this[z.OBSERVE],n,s,a),l&&hh(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[z.PROPAGATE]&&Nt(this,this[z.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(u,c)=>{Nt(this,o.propertyEffects,u,s,c,o.nodeList);for(let d=o.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,s,c)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=It(o),n=It(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=It(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=he(this,o,s);ba(this,a,s.path,n)}get(o,n){return he(n||this,o)}set(o,n,s){s?bn(s,o,n):(!this[z.READ_ONLY]||!this[z.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=he(this,o,s),l=a.length,u=a.push(...n);return n.length&&Dt(this,a,s.path,l,n.length,[]),u}pop(o){let n={path:""},s=he(this,o,n),a=!!s.length,l=s.pop();return a&&Dt(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},u=he(this,o,l);n<0?n=u.length-Math.floor(-n):n&&(n=Math.floor(n));let c;return arguments.length===2?c=u.splice(n):c=u.splice(n,s,...a),(a.length||c.length)&&Dt(this,u,l.path,n,a.length,c),c}shift(o){let n={path:""},s=he(this,o,n),a=!!s.length,l=s.shift();return a&&Dt(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=he(this,o,s),l=a.unshift(...n);return n.length&&Dt(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=he(this,o,a),s=a.path}else Array.isArray(o)?s=It(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,z.READ_ONLY),n&&(this["_set"+jh(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,z.OBSERVE,{fn:xn,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,z.OBSERVE,{fn:xn,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=rr(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");En(this,s,z.OBSERVE,$r,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,z.NOTIFY,{fn:ph,info:{eventName:Li(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,z.REFLECT,{fn:_h,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=rr(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=En(this,a,z.COMPUTE,ma,o,s);tr(this,fa)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let u=0,c=o.length;u<c;u++){let{name:d,structured:h,wildcard:f,value:p,literal:y}=o[u];if(!y)if(f){const D=Gt(d,n),k=Tn(a,s,D?n:d);p={path:D?n:d,value:k,base:D?he(a,d):k}}else p=h?Tn(a,s,d):a[d];if(Lr&&!this._overrideLegacyUndefined&&p===void 0&&o.length>1)return Xt;l[u]=p}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,u=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=u,u?u.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),kt.push(this);let s=super._stampTemplate(o,n);if(kt.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,Th(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let u=n.childNodes;for(let c=0;c<u.length;c++){let d=u[c];se(se(d).parentNode).removeChild(d)}}static _parseTemplateNode(o,n,s){let a=i._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=Cn(l)||" ",ir(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let u=this._parseBindings(l,n);if(u){let c=a,d="property";ch.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let h=Cn(u);return h&&d=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(h+=" "+o.getAttribute(a)),o.setAttribute(a,h)),d=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),d==="property"&&(a=sa(a)),ir(this,n,s,d,a,u,h),!0}else return i._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=i._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,u=s.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";hn&&(c||d)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(Nd&&c)h&&(n.hostProps=Object.assign(n.hostProps||{},h),hn||(s.parentInfo.noted=!0));else{let f="{";for(let p in h){let y=[{mode:f,source:p,dependencies:[p],hostProp:!0}];ir(this,n,s,"property","_host_"+p,y)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=An.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),h=!1,f="",p=-1;u=="{"&&(p=d.indexOf("::"))>0&&(f=d.substring(p+2),d=d.substring(0,p),h=!0);let y=rr(d),D=[];if(y){let{args:k,methodName:P}=y;for(let U=0;U<k.length;U++){let O=k[U];O.literal||D.push(O)}let R=n.dynamicFns;(R&&R[P]||y.static)&&(D.push(P),y.dynamicFn=!0)}else D.push(d);s.push({source:d,mode:u,negate:c,customEvent:h,signature:y,dependencies:D,event:f}),a=An.lastIndex}if(a&&a<o.length){let u=o.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,u){let c;return n.signature?c=$r(o,s,a,l,n.signature):s!=n.source?c=he(o,n.source):u&&Hr(s)?c=he(o,s):c=o.__data[s],n.negate&&(c=!c),c}}return e}),kt=[];/**
2052
2052
  @license
2053
2053
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2054
2054
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2064,7 +2064,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2064
2064
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2065
2065
  Code distributed by Google as part of the polymer project is also
2066
2066
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2067
- */function jh(t){const i={};for(let e in t){const r=t[e];i[e]=typeof r=="function"?{type:r}:r}return i}const Vh=ie(t=>{const i=ca(t);function e(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function r(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=jh(a))}n.__ownProperties=s}return n.__ownProperties}class o extends i{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=e(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=e(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
2067
+ */function Vh(t){const i={};for(let e in t){const r=t[e];i[e]=typeof r=="function"?{type:r}:r}return i}const Yh=ie(t=>{const i=ca(t);function e(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function r(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=Vh(a))}n.__ownProperties=s}return n.__ownProperties}class o extends i{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=e(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=e(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
2068
2068
  * @fileoverview
2069
2069
  * @suppress {checkPrototypalTypes}
2070
2070
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2074,7 +2074,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2074
2074
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2075
2075
  * Google as part of the polymer project is also subject to an additional IP
2076
2076
  * rights grant found at http://polymer.github.io/PATENTS.txt
2077
- */const Yh="3.5.2",Tn=window.ShadyCSS&&window.ShadyCSS.cssBuild,Gh=ie(t=>{const i=Vh(ho(t));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let d=u[c];"value"in d&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=d)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,u,c,d){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,d)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,d[c.observer]),l._addPropertyToAttributeMap(u)}function n(l,u,c,d){if(!Tn){const h=u.content.querySelectorAll("style"),f=ia(u),p=zd(c),y=u.content.firstElementChild;for(let k=0;k<p.length;k++){let P=p[k];P.textContent=l._processStyleText(P.textContent,d),u.content.insertBefore(P,y)}let D=0;for(let k=0;k<f.length;k++){let P=f[k],R=h[D];R!==P?(P=P.cloneNode(!0),R.parentNode.insertBefore(P,R)):D++,P.textContent=l._processStyleText(P.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),Nd&&Tn&&Pd){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(p=>{f+=p.textContent,p.parentNode.removeChild(p)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!wi||kd)&&(u=Gt.import(l,"template"),wi&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends i{static get polymerElementVersion(){return Yh}static _finalizeClass(){i._finalizeClass.call(this);const u=r(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Zs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)o(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let h=0;h<u.length;h++)d._createMethodObserver(u[h],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=lo(u.url);else{const c=Gt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Dd,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let h=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,h,!0):this[c]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return ao(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,h=d?Ft(d):"";n(this,c,u,h),this.prototype._bindTemplate(c)}}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(u){const c=se(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Md&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=Ft(this.importPath)),Ft(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,i._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return Qs&&!(c in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,u,c,d)}}return a});/**
2077
+ */const Gh="3.5.2",Pn=window.ShadyCSS&&window.ShadyCSS.cssBuild,Wh=ie(t=>{const i=Yh(po(t));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let d=u[c];"value"in d&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=d)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,u,c,d){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,d)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,d[c.observer]),l._addPropertyToAttributeMap(u)}function n(l,u,c,d){if(!Pn){const h=u.content.querySelectorAll("style"),f=ia(u),p=Ud(c),y=u.content.firstElementChild;for(let k=0;k<p.length;k++){let P=p[k];P.textContent=l._processStyleText(P.textContent,d),u.content.insertBefore(P,y)}let D=0;for(let k=0;k<f.length;k++){let P=f[k],R=h[D];R!==P?(P=P.cloneNode(!0),R.parentNode.insertBefore(P,R)):D++,P.textContent=l._processStyleText(P.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),Ld&&Pn&&Dd){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(p=>{f+=p.textContent,p.parentNode.removeChild(p)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!Ei||Md)&&(u=Yt.import(l,"template"),Ei&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends i{static get polymerElementVersion(){return Gh}static _finalizeClass(){i._finalizeClass.call(this);const u=r(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Zs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)o(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let h=0;h<u.length;h++)d._createMethodObserver(u[h],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=co(u.url);else{const c=Yt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=kd,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let h=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,h,!0):this[c]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return uo(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,h=d?$t(d):"";n(this,c,u,h),this.prototype._bindTemplate(c)}}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(u){const c=se(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Od&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=$t(this.importPath)),$t(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,i._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return Qs&&!(c in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,u,c,d)}}return a});/**
2078
2078
  @license
2079
2079
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2080
2080
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2082,7 +2082,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2082
2082
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2083
2083
  Code distributed by Google as part of the polymer project is also
2084
2084
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2085
- */const Pn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class va{constructor(i,e){xa(i,e);const r=e.reduce((o,n,s)=>o+ya(n)+i[s+1],i[0]);this.value=r.toString()}toString(){return this.value}}function ya(t){if(t instanceof va)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function Wh(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof va)return ya(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const et=function(i,...e){xa(i,e);const r=document.createElement("template");let o=e.reduce((n,s,a)=>n+Wh(s)+i[a+1],i[0]);return Pn&&(o=Pn.createHTML(o)),r.innerHTML=o,r},xa=(t,i)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||i.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2085
+ */const Dn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class va{constructor(i,e){xa(i,e);const r=e.reduce((o,n,s)=>o+ya(n)+i[s+1],i[0]);this.value=r.toString()}toString(){return this.value}}function ya(t){if(t instanceof va)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function qh(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof va)return ya(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const et=function(i,...e){xa(i,e);const r=document.createElement("template");let o=e.reduce((n,s,a)=>n+qh(s)+i[a+1],i[0]);return Dn&&(o=Dn.createHTML(o)),r.innerHTML=o,r},xa=(t,i)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||i.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2086
2086
  @license
2087
2087
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2088
2088
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2090,19 +2090,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2090
2090
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2091
2091
  Code distributed by Google as part of the polymer project is also
2092
2092
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2093
- */const Ue=Gh(HTMLElement);/**
2093
+ */const Ue=Wh(HTMLElement);/**
2094
2094
  * @license
2095
2095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2096
2096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2097
- */const Me=[];function Lr(t,i,e=t.getAttribute("dir")){i?t.setAttribute("dir",i):e!=null&&t.removeAttribute("dir")}function Hr(){return document.documentElement.getAttribute("dir")}function qh(){const t=Hr();Me.forEach(i=>{Lr(i,t)})}const Xh=new MutationObserver(qh);Xh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ni=t=>class extends t{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(),Lr(this,Hr(),null))}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e!=="dir")return;const n=Hr(),s=o===n&&Me.indexOf(this)===-1,a=!o&&r&&Me.indexOf(this)===-1;s||a?(this.__subscribe(),Lr(this,n,o)):o!==n&&r===n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Me.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,o){o==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,o)}_attributeToProperty(e,r,o){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,o)}__subscribe(){Me.includes(this)||Me.push(this)}__unsubscribe(){Me.includes(this)&&Me.splice(Me.indexOf(this),1)}};/**
2097
+ */const Oe=[];function Fr(t,i,e=t.getAttribute("dir")){i?t.setAttribute("dir",i):e!=null&&t.removeAttribute("dir")}function Rr(){return document.documentElement.getAttribute("dir")}function Xh(){const t=Rr();Oe.forEach(i=>{Fr(i,t)})}const Kh=new MutationObserver(Xh);Kh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Hi=t=>class extends t{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(),Fr(this,Rr(),null))}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e!=="dir")return;const n=Rr(),s=o===n&&Oe.indexOf(this)===-1,a=!o&&r&&Oe.indexOf(this)===-1;s||a?(this.__subscribe(),Fr(this,n,o)):o!==n&&r===n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Oe.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,o){o==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,o)}_attributeToProperty(e,r,o){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,o)}__subscribe(){Oe.includes(this)||Oe.push(this)}__unsubscribe(){Oe.includes(this)&&Oe.splice(Oe.indexOf(this),1)}};/**
2098
2098
  * @license
2099
2099
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2100
2100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2101
- */const Kh=t=>class extends t{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(r=>r.focus&&r.focus())})}};/**
2101
+ */const Jh=t=>class extends t{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(r=>r.focus&&r.focus())})}};/**
2102
2102
  * @license
2103
2103
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2104
2104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2105
- */const Jh=F`
2105
+ */const Zh=F`
2106
2106
  :host {
2107
2107
  display: flex;
2108
2108
  align-items: center;
@@ -2171,15 +2171,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2171
2171
  * @license
2172
2172
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2173
2173
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2174
- */Z("vaadin-input-container",Jh,{moduleId:"vaadin-input-container-styles"});class Zh extends Kh(Ze(Ni(Ue))){static get is(){return"vaadin-input-container"}static get template(){return et`
2174
+ */Z("vaadin-input-container",Zh,{moduleId:"vaadin-input-container-styles"});class Qh extends Jh(Ze(Hi(Ue))){static get is(){return"vaadin-input-container"}static get template(){return et`
2175
2175
  <slot name="prefix"></slot>
2176
2176
  <slot></slot>
2177
2177
  <slot name="suffix"></slot>
2178
- `}}De(Zh);/**
2178
+ `}}ke(Qh);/**
2179
2179
  * @license
2180
2180
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2181
2181
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2182
- */const Qh=F`
2182
+ */const ef=F`
2183
2183
  :host {
2184
2184
  z-index: 200;
2185
2185
  position: fixed;
@@ -2242,7 +2242,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2242
2242
  * @license
2243
2243
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2244
2244
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2245
- */let fo=!1;window.addEventListener("keydown",()=>{fo=!0},{capture:!0});window.addEventListener("mousedown",()=>{fo=!1},{capture:!0});function Br(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function po(){return fo}function ef(t){const i=t.style;if(i.visibility==="hidden"||i.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function tf(t,i){const e=Math.max(t.tabIndex,0),r=Math.max(i.tabIndex,0);return e===0||r===0?r>e:e>r}function rf(t,i){const e=[];for(;t.length>0&&i.length>0;)tf(t[0],i[0])?e.push(i.shift()):e.push(t.shift());return e.concat(t,i)}function $r(t){const i=t.length;if(i<2)return t;const e=Math.ceil(i/2),r=$r(t.slice(0,e)),o=$r(t.slice(e));return rf(r,o)}function wa(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function of(t){return t.getRootNode().activeElement===t}function nf(t){if(!wa(t))return-1;const i=t.getAttribute("tabindex")||0;return Number(i)}function Ea(t,i){if(t.nodeType!==Node.ELEMENT_NODE||ef(t))return!1;const e=t,r=nf(e);let o=r>0;r>=0&&i.push(e);let n=[];return e.localName==="slot"?n=e.assignedNodes({flatten:!0}):n=(e.shadowRoot||e).children,[...n].forEach(s=>{o=Ea(s,i)||o}),o}function sf(t){const i=[];return Ea(t,i)?$r(i):i}/**
2245
+ */let mo=!1;window.addEventListener("keydown",()=>{mo=!0},{capture:!0});window.addEventListener("mousedown",()=>{mo=!1},{capture:!0});function zr(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function _o(){return mo}function tf(t){const i=t.style;if(i.visibility==="hidden"||i.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function rf(t,i){const e=Math.max(t.tabIndex,0),r=Math.max(i.tabIndex,0);return e===0||r===0?r>e:e>r}function of(t,i){const e=[];for(;t.length>0&&i.length>0;)rf(t[0],i[0])?e.push(i.shift()):e.push(t.shift());return e.concat(t,i)}function Ur(t){const i=t.length;if(i<2)return t;const e=Math.ceil(i/2),r=Ur(t.slice(0,e)),o=Ur(t.slice(e));return of(r,o)}function wa(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function nf(t){return t.getRootNode().activeElement===t}function sf(t){if(!wa(t))return-1;const i=t.getAttribute("tabindex")||0;return Number(i)}function Ea(t,i){if(t.nodeType!==Node.ELEMENT_NODE||tf(t))return!1;const e=t,r=sf(e);let o=r>0;r>=0&&i.push(e);let n=[];return e.localName==="slot"?n=e.assignedNodes({flatten:!0}):n=(e.shadowRoot||e).children,[...n].forEach(s=>{o=Ea(s,i)||o}),o}function af(t){const i=[];return Ea(t,i)?Ur(i):i}/**
2246
2246
  @license
2247
2247
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2248
2248
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2250,63 +2250,63 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2250
2250
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2251
2251
  Code distributed by Google as part of the polymer project is also
2252
2252
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2253
- */let Fr=!1,af=[],Sa=[];function lf(){Fr=!0,requestAnimationFrame(function(){Fr=!1,uf(af),setTimeout(function(){cf(Sa)})})}function uf(t){for(;t.length;)Aa(t.shift())}function cf(t){for(let i=0,e=t.length;i<e;i++)Aa(t.shift())}function Aa(t){const i=t[0],e=t[1],r=t[2];try{e.apply(i,r)}catch(o){setTimeout(()=>{throw o})}}function Ca(t,i,e){Fr||lf(),Sa.push([t,i,e])}/**
2253
+ */let jr=!1,lf=[],Sa=[];function uf(){jr=!0,requestAnimationFrame(function(){jr=!1,cf(lf),setTimeout(function(){df(Sa)})})}function cf(t){for(;t.length;)Aa(t.shift())}function df(t){for(let i=0,e=t.length;i<e;i++)Aa(t.shift())}function Aa(t){const i=t[0],e=t[1],r=t[2];try{e.apply(i,r)}catch(o){setTimeout(()=>{throw o})}}function Ca(t,i,e){jr||uf(),Sa.push([t,i,e])}/**
2254
2254
  * @license
2255
2255
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2256
2256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2257
- */const Li=t=>t.test(navigator.userAgent),Rr=t=>t.test(navigator.platform),df=t=>t.test(navigator.vendor);Li(/Android/u);Li(/Chrome/u)&&df(/Google Inc/u);Li(/Firefox/u);const hf=Rr(/^iPad/u)||Rr(/^Mac/u)&&navigator.maxTouchPoints>1,ff=Rr(/^iPhone/u),Ta=ff||hf;Li(/^((?!chrome|android).)*safari/iu);const pf=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
2257
+ */const Bi=t=>t.test(navigator.userAgent),Vr=t=>t.test(navigator.platform),hf=t=>t.test(navigator.vendor);Bi(/Android/u);Bi(/Chrome/u)&&hf(/Google Inc/u);Bi(/Firefox/u);const ff=Vr(/^iPad/u)||Vr(/^Mac/u)&&navigator.maxTouchPoints>1,pf=Vr(/^iPhone/u),Ta=pf||ff;Bi(/^((?!chrome|android).)*safari/iu);const mf=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
2258
2258
  * @license
2259
2259
  * Copyright (c) 2017 Anton Korzunov
2260
2260
  * SPDX-License-Identifier: MIT
2261
- */let nt=new WeakMap,si=new WeakMap,ai={},ir=0;const Dn=t=>t&&t.nodeType===Node.ELEMENT_NODE,rr=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},mf=(t,i)=>Dn(t)?i.map(e=>{if(!Dn(e))return rr(e,"is not a valid element"),null;let r=e;for(;r&&r!==t;){if(t.contains(r))return e;r=r.getRootNode().host}return rr(e,"is not contained inside",t),null}).filter(e=>!!e):(rr(t,"is not a valid element"),[]),_f=(t,i,e,r)=>{const o=mf(i,Array.isArray(t)?t:[t]);ai[e]||(ai[e]=new WeakMap);const n=ai[e],s=[],a=new Set,l=new Set(o),u=d=>{if(!d||a.has(d))return;a.add(d);const h=d.assignedSlot;h&&u(h),u(d.parentNode||d.host)};o.forEach(u);const c=d=>{if(!d||l.has(d))return;const h=d.shadowRoot;(h?[...d.children,...h.children]:[...d.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))c(p);else{const y=p.getAttribute(r),D=y!==null&&y!=="false",k=(nt.get(p)||0)+1,P=(n.get(p)||0)+1;nt.set(p,k),n.set(p,P),s.push(p),k===1&&D&&si.set(p,!0),P===1&&p.setAttribute(e,"true"),D||p.setAttribute(r,"true")}})};return c(i),a.clear(),ir+=1,()=>{s.forEach(d=>{const h=nt.get(d)-1,f=n.get(d)-1;nt.set(d,h),n.set(d,f),h||(si.has(d)?si.delete(d):d.removeAttribute(r)),f||d.removeAttribute(e)}),ir-=1,ir||(nt=new WeakMap,nt=new WeakMap,si=new WeakMap,ai={})}},Pa=(t,i=document.body,e="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return i&&r.push(...Array.from(i.querySelectorAll("[aria-live]"))),_f(r,i,e,"aria-hidden")};/**
2261
+ */let nt=new WeakMap,si=new WeakMap,ai={},or=0;const kn=t=>t&&t.nodeType===Node.ELEMENT_NODE,nr=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},_f=(t,i)=>kn(t)?i.map(e=>{if(!kn(e))return nr(e,"is not a valid element"),null;let r=e;for(;r&&r!==t;){if(t.contains(r))return e;r=r.getRootNode().host}return nr(e,"is not contained inside",t),null}).filter(e=>!!e):(nr(t,"is not a valid element"),[]),gf=(t,i,e,r)=>{const o=_f(i,Array.isArray(t)?t:[t]);ai[e]||(ai[e]=new WeakMap);const n=ai[e],s=[],a=new Set,l=new Set(o),u=d=>{if(!d||a.has(d))return;a.add(d);const h=d.assignedSlot;h&&u(h),u(d.parentNode||d.host)};o.forEach(u);const c=d=>{if(!d||l.has(d))return;const h=d.shadowRoot;(h?[...d.children,...h.children]:[...d.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))c(p);else{const y=p.getAttribute(r),D=y!==null&&y!=="false",k=(nt.get(p)||0)+1,P=(n.get(p)||0)+1;nt.set(p,k),n.set(p,P),s.push(p),k===1&&D&&si.set(p,!0),P===1&&p.setAttribute(e,"true"),D||p.setAttribute(r,"true")}})};return c(i),a.clear(),or+=1,()=>{s.forEach(d=>{const h=nt.get(d)-1,f=n.get(d)-1;nt.set(d,h),n.set(d,f),h||(si.has(d)?si.delete(d):d.removeAttribute(r)),f||d.removeAttribute(e)}),or-=1,or||(nt=new WeakMap,nt=new WeakMap,si=new WeakMap,ai={})}},Pa=(t,i=document.body,e="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return i&&r.push(...Array.from(i.querySelectorAll("[aria-live]"))),gf(r,i,e,"aria-hidden")};/**
2262
2262
  * @license
2263
2263
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2264
2264
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2265
- */class gf{constructor(i,e){this.host=i,this.callback=typeof e=="function"?e:()=>i}showModal(){const i=this.callback();this.__showOthers=Pa(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2265
+ */class bf{constructor(i,e){this.host=i,this.callback=typeof e=="function"?e:()=>i}showModal(){const i=this.callback();this.__showOthers=Pa(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2266
2266
  * @license
2267
2267
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2268
2268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2269
- */class bf{saveFocus(i){this.focusNode=i||Br()}restoreFocus(i){const e=this.focusNode;if(!e)return;const r=i?i.preventScroll:!1;Br()===document.body?setTimeout(()=>e.focus({preventScroll:r})):e.focus({preventScroll:r}),this.focusNode=null}}/**
2269
+ */class vf{saveFocus(i){this.focusNode=i||zr()}restoreFocus(i){const e=this.focusNode;if(!e)return;const r=i?i.preventScroll:!1;zr()===document.body?setTimeout(()=>e.focus({preventScroll:r})):e.focus({preventScroll:r}),this.focusNode=null}}/**
2270
2270
  * @license
2271
2271
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2272
2272
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2273
- */const or=[];class vf{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return sf(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(of).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(i){if(this.__trapNode=i,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");or.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,or.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(or).pop()&&i.key==="Tab"){i.preventDefault();const e=i.shiftKey;this.__focusNextElement(e)}}__focusNextElement(i=!1){const e=this.__focusableElements,r=i?-1:1,o=this.__focusedElementIndex,n=(e.length+o+r)%e.length,s=e[n];s.focus(),s.localName==="input"&&s.select()}}/**
2273
+ */const sr=[];class yf{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return af(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(nf).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(i){if(this.__trapNode=i,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");sr.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,sr.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(sr).pop()&&i.key==="Tab"){i.preventDefault();const e=i.shiftKey;this.__focusNextElement(e)}}__focusNextElement(i=!1){const e=this.__focusableElements,r=i?-1:1,o=this.__focusedElementIndex,n=(e.length+o+r)%e.length,s=e[n];s.focus(),s.localName==="input"&&s.select()}}/**
2274
2274
  * @license
2275
2275
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2276
2276
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2277
- */const Tt=ie(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2277
+ */const Ct=ie(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2278
2278
  * @license
2279
2279
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2280
2280
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2281
- */const yf=t=>class extends Tt(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new gf(this),this.__focusTrapController=new vf(this),this.__focusRestorationController=new bf}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=!po();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=Br();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let r=e;const o=e.ownerDocument;for(;r&&r!==o&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2281
+ */const xf=t=>class extends Ct(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new bf(this),this.__focusTrapController=new yf(this),this.__focusRestorationController=new vf}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=!_o();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=zr();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let r=e;const o=e.ownerDocument;for(;r&&r!==o&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2282
2282
  * @license
2283
2283
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2284
2284
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2285
- */const Da=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,i)=>t.__zIndex-i.__zIndex||0),zr=()=>Da().filter(t=>t.$.overlay),xf=t=>t===zr().pop(),wf=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return xf(this)}bringToFront(){let e="";const r=Da().filter(o=>o!==this).pop();r&&(e=r.__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"),zr().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=zr();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2285
+ */const Da=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,i)=>t.__zIndex-i.__zIndex||0),Yr=()=>Da().filter(t=>t.$.overlay),wf=t=>t===Yr().pop(),Ef=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return wf(this)}bringToFront(){let e="";const r=Da().filter(o=>o!==this).pop();r&&(e=r.__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"),Yr().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=Yr();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2286
2286
  * @license
2287
2287
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2288
2288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2289
- */const Ef=t=>class extends yf(wf(t)){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),Ta&&(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 r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,n=document.documentElement.clientHeight;o&&n>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-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,r,o,n){const s=this._oldOwner!==r||this._oldModel!==o;this._oldModel=o,this._oldOwner=r;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const u=this._oldOpened!==n;this._oldOpened=n,a&&l&&(this.innerHTML="",delete this._$litPart$),n&&e&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,r){e?(this._saveFocus(),this._animatedOpening(),Ca(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(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),r=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(e,r){const o=`__${e}Handler`,n=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",n),delete this[o])};this[o]=n,this.addEventListener("animationend",n)}_flushAnimation(e){const r=`__${e}Handler`;typeof this[r]=="function"&&this[r]()}_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 r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}}};/**
2289
+ */const Sf=t=>class extends xf(Ef(t)){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),Ta&&(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 r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,n=document.documentElement.clientHeight;o&&n>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-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,r,o,n){const s=this._oldOwner!==r||this._oldModel!==o;this._oldModel=o,this._oldOwner=r;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const u=this._oldOpened!==n;this._oldOpened=n,a&&l&&(this.innerHTML="",delete this._$litPart$),n&&e&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,r){e?(this._saveFocus(),this._animatedOpening(),Ca(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(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),r=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(e,r){const o=`__${e}Handler`,n=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",n),delete this[o])};this[o]=n,this.addEventListener("animationend",n)}_flushAnimation(e){const r=`__${e}Handler`;typeof this[r]=="function"&&this[r]()}_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 r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}}};/**
2290
2290
  * @license
2291
2291
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2292
2292
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2293
- */function Sf(t){const i=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){i.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return i}function mo(t){return t?new Set(t.split(" ")):new Set}function Hi(t){return t?[...t].join(" "):""}function ka(t,i,e){const r=mo(t.getAttribute(i));r.add(e),t.setAttribute(i,Hi(r))}function Af(t,i,e){const r=mo(t.getAttribute(i));if(r.delete(e),r.size===0){t.removeAttribute(i);return}t.setAttribute(i,Hi(r))}function Cf(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
2293
+ */function Af(t){const i=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){i.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return i}function go(t){return t?new Set(t.split(" ")):new Set}function $i(t){return t?[...t].join(" "):""}function ka(t,i,e){const r=go(t.getAttribute(i));r.add(e),t.setAttribute(i,$i(r))}function Cf(t,i,e){const r=go(t.getAttribute(i));if(r.delete(e),r.size===0){t.removeAttribute(i);return}t.setAttribute(i,$i(r))}function Tf(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
2294
2294
  * @license
2295
2295
  * Copyright (c) 2024 Vaadin Ltd.
2296
2296
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2297
- */function Tf(t,i){let e=null;const r=document.documentElement;function o(){e&&e.disconnect(),e=null}function n(s=!1,a=1){o();const{left:l,top:u,width:c,height:d}=t.getBoundingClientRect();if(s||i(),!c||!d)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+c)),p=Math.floor(r.clientHeight-(u+d)),y=Math.floor(l),k={rootMargin:`${-h}px ${-f}px ${-p}px ${-y}px`,threshold:Math.max(0,Math.min(1,a))||1};let P=!0;function R(j){let O=j[0].intersectionRatio;if(O!==a){if(!P)return n();O===0&&(O=1e-7),n(!1,O)}P=!1}e=new IntersectionObserver(R,k),e.observe(t)}return n(!0),o}/**
2297
+ */function Pf(t,i){let e=null;const r=document.documentElement;function o(){e&&e.disconnect(),e=null}function n(s=!1,a=1){o();const{left:l,top:u,width:c,height:d}=t.getBoundingClientRect();if(s||i(),!c||!d)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+c)),p=Math.floor(r.clientHeight-(u+d)),y=Math.floor(l),k={rootMargin:`${-h}px ${-f}px ${-p}px ${-y}px`,threshold:Math.max(0,Math.min(1,a))||1};let P=!0;function R(U){let O=U[0].intersectionRatio;if(O!==a){if(!P)return n();O===0&&(O=1e-7),n(!1,O)}P=!1}e=new IntersectionObserver(R,k),e.observe(t)}return n(!0),o}/**
2298
2298
  * @license
2299
2299
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2300
2300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2301
- */const nr={start:"top",end:"bottom"},sr={start:"left",end:"right"},kn=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),Pf=t=>class extends t{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=Sf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Tf(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,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,kn.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,kn.observe(r))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(n=>{this.__margins[n]=parseInt(o[n],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 r=this.__shouldAlignStartVertically(e);this.style.justifyContent=r?"flex-start":"flex-end";const o=this.__isRTL,n=this.__shouldAlignStartHorizontally(e,o),s=!o&&n||o&&!n;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,nr,this,r),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,sr,this,n);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,r){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,n,this.__margins,s,this.noHorizontalOverlap,sr)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),n=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,o,this.__margins,n,this.noVerticalOverlap,nr)}__shouldAlignStart(e,r,o,n,s,a,l){const u=o-e[a?l.end:l.start]-n[l.end],c=e[a?l.start:l.end]-n[l.start],d=s?u:c,f=d>(s?c:u)||d>r;return s===f}__adjustBottomProperty(e,r,o){let n;if(e===r.end){if(r.end===nr.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;n=o-a}this.__oldViewportHeight=s}if(r.end===sr.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;n=o-a}this.__oldViewportWidth=s}}return n}__calculatePositionInOneDimension(e,r,o,n,s,a){const l=a?n.start:n.end,u=a?n.end:n.start,c=parseFloat(s.style[l]||getComputedStyle(s)[l]),d=this.__adjustBottomProperty(l,n,c),h=r[a?n.start:n.end]-e[o===a?n.end:n.start],f=d?`${d}px`:`${c+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2301
+ */const ar={start:"top",end:"bottom"},lr={start:"left",end:"right"},Mn=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),Df=t=>class extends t{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=Af(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Pf(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,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,Mn.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,Mn.observe(r))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(n=>{this.__margins[n]=parseInt(o[n],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 r=this.__shouldAlignStartVertically(e);this.style.justifyContent=r?"flex-start":"flex-end";const o=this.__isRTL,n=this.__shouldAlignStartHorizontally(e,o),s=!o&&n||o&&!n;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,ar,this,r),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,lr,this,n);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,r){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,n,this.__margins,s,this.noHorizontalOverlap,lr)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),n=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,o,this.__margins,n,this.noVerticalOverlap,ar)}__shouldAlignStart(e,r,o,n,s,a,l){const u=o-e[a?l.end:l.start]-n[l.end],c=e[a?l.start:l.end]-n[l.start],d=s?u:c,f=d>(s?c:u)||d>r;return s===f}__adjustBottomProperty(e,r,o){let n;if(e===r.end){if(r.end===ar.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;n=o-a}this.__oldViewportHeight=s}if(r.end===lr.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;n=o-a}this.__oldViewportWidth=s}}return n}__calculatePositionInOneDimension(e,r,o,n,s,a){const l=a?n.start:n.end,u=a?n.end:n.start,c=parseFloat(s.style[l]||getComputedStyle(s)[l]),d=this.__adjustBottomProperty(l,n,c),h=r[a?n.start:n.end]-e[o===a?n.end:n.start],f=d?`${d}px`:`${c+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2302
2302
  * @license
2303
2303
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2304
2304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2305
- */const Df=t=>class extends Pf(Ef(t)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!wa(e.composedPath()[0])&&e.preventDefault()}};/**
2305
+ */const kf=t=>class extends Df(Sf(t)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!wa(e.composedPath()[0])&&e.preventDefault()}};/**
2306
2306
  * @license
2307
2307
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2308
2308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2309
- */const kf=F`
2309
+ */const Mf=F`
2310
2310
  [part='overlay'] {
2311
2311
  display: flex;
2312
2312
  flex: auto;
@@ -2325,14 +2325,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2325
2325
  * @license
2326
2326
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2327
2327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2328
- */Z("vaadin-date-picker-overlay",[Qh,kf],{moduleId:"vaadin-date-picker-overlay-styles"});class Mf extends Df(Ni(Ze(Ue))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return et`
2328
+ */Z("vaadin-date-picker-overlay",[ef,Mf],{moduleId:"vaadin-date-picker-overlay-styles"});class Of extends kf(Hi(Ze(Ue))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return et`
2329
2329
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2330
2330
  <div part="overlay" id="overlay">
2331
2331
  <div part="content" id="content">
2332
2332
  <slot></slot>
2333
2333
  </div>
2334
2334
  </div>
2335
- `}}De(Mf);const Of=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,pi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function If(){function t(){return!0}return Ma(t)}function Nf(){try{return Lf()?!0:Hf()?pi?!Bf():!If():!1}catch(t){return!1}}function Lf(){return localStorage.getItem("vaadin.developmentmode.force")}function Hf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Bf(){return!!(pi&&Object.keys(pi).map(i=>pi[i]).filter(i=>i.productionMode).length>0)}function Ma(t,i){if(typeof t!="function")return;const e=Of.exec(t.toString());if(e)try{t=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return t(i)}window.Vaadin=window.Vaadin||{};const Mn=function(t,i){if(window.Vaadin.developmentMode)return Ma(t,i)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Nf());function $f(){/*! vaadin-dev-mode:start
2335
+ `}}ke(Of);const If=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,pi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Nf(){function t(){return!0}return Ma(t)}function Lf(){try{return Hf()?!0:Bf()?pi?!$f():!Nf():!1}catch(t){return!1}}function Hf(){return localStorage.getItem("vaadin.developmentmode.force")}function Bf(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function $f(){return!!(pi&&Object.keys(pi).map(i=>pi[i]).filter(i=>i.productionMode).length>0)}function Ma(t,i){if(typeof t!="function")return;const e=If.exec(t.toString());if(e)try{t=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return t(i)}window.Vaadin=window.Vaadin||{};const On=function(t,i){if(window.Vaadin.developmentMode)return Ma(t,i)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Lf());function Ff(){/*! vaadin-dev-mode:start
2336
2336
  (function () {
2337
2337
  'use strict';
2338
2338
 
@@ -2810,7 +2810,7 @@ try {
2810
2810
 
2811
2811
  }());
2812
2812
 
2813
- vaadin-dev-mode:end **/}const Ff=function(){if(typeof Mn=="function")return Mn($f)};/**
2813
+ vaadin-dev-mode:end **/}const Rf=function(){if(typeof On=="function")return On(Ff)};/**
2814
2814
  * @license
2815
2815
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2816
2816
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2818,7 +2818,7 @@ try {
2818
2818
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2819
2819
  * Code distributed by Google as part of the polymer project is also
2820
2820
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2821
- */let On=0,Oa=0;const ht=[];let Ur=!1;function Rf(){Ur=!1;const t=ht.length;for(let i=0;i<t;i++){const e=ht[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}ht.splice(0,t),Oa+=t}const Si={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},zf={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},Uf={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},jf={run(t){Ur||(Ur=!0,queueMicrotask(()=>Rf())),ht.push(t);const i=On;return On+=1,i},cancel(t){const i=t-Oa;if(i>=0){if(!ht[i])throw new Error(`invalid async handle: ${t}`);ht[i]=null}}};/**
2821
+ */let In=0,Oa=0;const dt=[];let Gr=!1;function zf(){Gr=!1;const t=dt.length;for(let i=0;i<t;i++){const e=dt[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}dt.splice(0,t),Oa+=t}const Ai={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},Uf={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},jf={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Vf={run(t){Gr||(Gr=!0,queueMicrotask(()=>zf())),dt.push(t);const i=In;return In+=1,i},cancel(t){const i=t-Oa;if(i>=0){if(!dt[i])throw new Error(`invalid async handle: ${t}`);dt[i]=null}}};/**
2822
2822
  @license
2823
2823
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2824
2824
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2826,23 +2826,23 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2826
2826
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2827
2827
  Code distributed by Google as part of the polymer project is also
2828
2828
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2829
- */const jr=new Set;let yt=class Vr{static debounce(i,e,r){return i instanceof Vr?i._cancelAsync():i=new Vr,i.setConfig(e,r),i}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,jr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),jr.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 Vf(t){jr.add(t)}/**
2829
+ */const Wr=new Set;let vt=class qr{static debounce(i,e,r){return i instanceof qr?i._cancelAsync():i=new qr,i.setConfig(e,r),i}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Wr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Wr.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 Yf(t){Wr.add(t)}/**
2830
2830
  * @license
2831
2831
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2832
2832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2833
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Ff()};let ar;const In=new Set,Ia=t=>class extends Ni(t){static finalize(){super.finalize();const{is:e}=this;e&&!In.has(e)&&(window.Vaadin.registrations.push(this),In.add(e),window.Vaadin.developmentModeCallback&&(ar=yt.debounce(ar,Uf,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Vf(ar)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2833
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Rf()};let ur;const Nn=new Set,Ia=t=>class extends Hi(t){static finalize(){super.finalize();const{is:e}=this;e&&!Nn.has(e)&&(window.Vaadin.registrations.push(this),Nn.add(e),window.Vaadin.developmentModeCallback&&(ur=vt.debounce(ur,jf,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Yf(ur)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2834
2834
  * @license
2835
2835
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2836
2836
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2837
- */class Yf{constructor(i,e){this.slot=i,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 i=this.slot.assignedNodes({flatten:!0});let e=[];const r=[],o=[];i.length&&(e=i.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,s)=>{const a=i.indexOf(n);a===-1?r.push(n):a!==s&&o.push(n)}),(e.length||r.length||o.length)&&this.callback({addedNodes:e,currentNodes:i,movedNodes:o,removedNodes:r}),this._storedNodes=i}}/**
2837
+ */class Gf{constructor(i,e){this.slot=i,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 i=this.slot.assignedNodes({flatten:!0});let e=[];const r=[],o=[];i.length&&(e=i.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,s)=>{const a=i.indexOf(n);a===-1?r.push(n):a!==s&&o.push(n)}),(e.length||r.length||o.length)&&this.callback({addedNodes:e,currentNodes:i,movedNodes:o,removedNodes:r}),this._storedNodes=i}}/**
2838
2838
  * @license
2839
2839
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2840
2840
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2841
- */let Gf=0;function Na(){return Gf++}/**
2841
+ */let Wf=0;function Na(){return Wf++}/**
2842
2842
  * @license
2843
2843
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2844
2844
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2845
- */class We extends EventTarget{static generateId(i,e="default"){return`${e}-${i.localName}-${Na()}`}constructor(i,e,r,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=o;this.host=i,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(i,u||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let i=this.getSlotChild();i?(this.node=i,this.initAddedNode(i)):(i=this.attachDefaultNode(),this.initNode(i))}initMultiple(){const i=this.getSlotChildren();if(i.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=i,i.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:i,slotName:e,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,i.appendChild(o)),o}getSlotChildren(){const{slotName:i}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===i||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&i==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(i){const{slotInitializer:e}=this;e&&e(i,this.host)}initCustomNode(i){}teardownNode(i){}initAddedNode(i){i!==this.defaultNode&&(this.initCustomNode(i),this.initNode(i))}observeSlot(){const{slotName:i}=this,e=i===""?"slot:not([name])":`slot[name=${i}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Yf(r,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Cf(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...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)))})}}/**
2845
+ */class We extends EventTarget{static generateId(i,e="default"){return`${e}-${i.localName}-${Na()}`}constructor(i,e,r,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=o;this.host=i,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(i,u||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let i=this.getSlotChild();i?(this.node=i,this.initAddedNode(i)):(i=this.attachDefaultNode(),this.initNode(i))}initMultiple(){const i=this.getSlotChildren();if(i.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=i,i.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:i,slotName:e,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,i.appendChild(o)),o}getSlotChildren(){const{slotName:i}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===i||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&i==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(i){const{slotInitializer:e}=this;e&&e(i,this.host)}initCustomNode(i){}teardownNode(i){}initAddedNode(i){i!==this.defaultNode&&(this.initCustomNode(i),this.initNode(i))}observeSlot(){const{slotName:i}=this,e=i===""?"slot:not([name])":`slot[name=${i}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Gf(r,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Tf(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...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)))})}}/**
2846
2846
  * @license
2847
2847
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2848
2848
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2850,7 +2850,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2850
2850
  * @license
2851
2851
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2852
2852
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2853
- */const Wf=F`
2853
+ */const qf=F`
2854
2854
  :host {
2855
2855
  display: inline-block;
2856
2856
  position: relative;
@@ -2910,7 +2910,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2910
2910
  outline-color: GrayText;
2911
2911
  }
2912
2912
  }
2913
- `,qf=t=>t`
2913
+ `,Xf=t=>t`
2914
2914
  <div class="vaadin-button-container">
2915
2915
  <span part="prefix" aria-hidden="true">
2916
2916
  <slot name="prefix"></slot>
@@ -2931,7 +2931,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2931
2931
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2932
2932
  Code distributed by Google as part of the polymer project is also
2933
2933
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2934
- */const Xf=!1,Kf=t=>t,_o=typeof document.head.style.touchAction=="string",Yr="__polymerGestures",lr="__polymerGesturesHandled",Gr="__polymerGesturesTouchAction",Nn=25,Ln=5,Jf=2,Zf=["mousedown","mousemove","mouseup","click"],Qf=[0,1,4,2],ep=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function go(t){return Zf.indexOf(t)>-1}let Ha=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){Ha=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function tp(t){if(!(go(t)||t==="touchend")&&_o&&Ha&&Xf)return{passive:!0}}const ip=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),rp={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Xe(t){const i=t.type;if(!go(i))return!1;if(i==="mousemove"){let r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!ep&&(r=Qf[t.which]||0),!!(r&1)}return(t.button===void 0?0:t.button)===0}function op(t){if(t.type==="click"){if(t.detail===0)return!0;const i=ze(t);if(!i.nodeType||i.nodeType!==Node.ELEMENT_NODE)return!0;const e=i.getBoundingClientRect(),r=t.pageX,o=t.pageY;return!(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)}return!1}const Oe={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function np(t){let i="auto";const e=$a(t);for(let r=0,o;r<e.length;r++)if(o=e[r],o[Gr]){i=o[Gr];break}return i}function Ba(t,i,e){t.movefn=i,t.upfn=e,document.addEventListener("mousemove",i),document.addEventListener("mouseup",e)}function ft(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const $a=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],bo={},qe=[];function sp(t,i){let e=document.elementFromPoint(t,i),r=e;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(t,i),o===r)break;r&&(e=r)}return e}function ze(t){const i=$a(t);return i.length>0?i[0]:t.target}function ap(t){const i=t.type,r=t.currentTarget[Yr];if(!r)return;const o=r[i];if(!o)return;if(!t[lr]&&(t[lr]={},i.startsWith("touch"))){const s=t.changedTouches[0];if(i==="touchstart"&&t.touches.length===1&&(Oe.touch.id=s.identifier),Oe.touch.id!==s.identifier)return;_o||(i==="touchstart"||i==="touchmove")&&lp(t)}const n=t[lr];if(!n.skip){for(let s=0,a;s<qe.length;s++)a=qe[s],o[a.name]&&!n[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<qe.length;s++)a=qe[s],o[a.name]&&!n[a.name]&&(n[a.name]=!0,a[i](t))}}function lp(t){const i=t.changedTouches[0],e=t.type;if(e==="touchstart")Oe.touch.x=i.clientX,Oe.touch.y=i.clientY,Oe.touch.scrollDecided=!1;else if(e==="touchmove"){if(Oe.touch.scrollDecided)return;Oe.touch.scrollDecided=!0;const r=np(t);let o=!1;const n=Math.abs(Oe.touch.x-i.clientX),s=Math.abs(Oe.touch.y-i.clientY);t.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=s>n:r==="pan-y"&&(o=n>s)),o?t.preventDefault():Ai("track")}}function Pe(t,i,e){return bo[i]?(up(t,i,e),!0):!1}function up(t,i,e){const r=bo[i],o=r.deps,n=r.name;let s=t[Yr];s||(t[Yr]=s={});for(let a=0,l,u;a<o.length;a++)l=o[a],!(ip&&go(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&t.addEventListener(l,ap,tp(l)),u[n]=(u[n]||0)+1,u._count=(u._count||0)+1);t.addEventListener(i,e),r.touchAction&&Fa(t,r.touchAction)}function vo(t){qe.push(t),t.emits.forEach(i=>{bo[i]=t})}function cp(t){for(let i=0,e;i<qe.length;i++){e=qe[i];for(let r=0,o;r<e.emits.length;r++)if(o=e.emits[r],o===t)return e}return null}function Fa(t,i){_o&&t instanceof HTMLElement&&jf.run(()=>{t.style.touchAction=i}),t[Gr]=i}function yo(t,i,e){const r=new Event(i,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=e,Kf(t).dispatchEvent(r),r.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Ai(t){const i=cp(t);i.info&&(i.info.prevent=!0)}vo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ft(this.info)},mousedown(t){if(!Xe(t))return;const i=ze(t),e=this,r=n=>{Xe(n)||(Ot("up",i,n),ft(e.info))},o=n=>{Xe(n)&&Ot("up",i,n),ft(e.info)};Ba(this.info,r,o),Ot("down",i,t)},touchstart(t){Ot("down",ze(t),t.changedTouches[0],t)},touchend(t){Ot("up",ze(t),t.changedTouches[0],t)}});function Ot(t,i,e,r){i&&yo(i,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r,prevent(o){return Ai(o)}})}vo({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>Jf&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ft(this.info)},mousedown(t){if(!Xe(t))return;const i=ze(t),e=this,r=n=>{const s=n.clientX,a=n.clientY;Hn(e.info,s,a)&&(e.info.state=e.info.started?n.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Ai("tap"),e.info.addMove({x:s,y:a}),Xe(n)||(e.info.state="end",ft(e.info)),i&&ur(e.info,i,n),e.info.started=!0)},o=n=>{e.info.started&&r(n),ft(e.info)};Ba(this.info,r,o),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchmove(t){const i=ze(t),e=t.changedTouches[0],r=e.clientX,o=e.clientY;Hn(this.info,r,o)&&(this.info.state==="start"&&Ai("tap"),this.info.addMove({x:r,y:o}),ur(this.info,i,e),this.info.state="track",this.info.started=!0)},touchend(t){const i=ze(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),ur(this.info,i,e))}});function Hn(t,i,e){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-i),o=Math.abs(t.y-e);return r>=Ln||o>=Ln}function ur(t,i,e){if(!i)return;const r=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1],n=o.x-t.x,s=o.y-t.y;let a,l=0;r&&(a=o.x-r.x,l=o.y-r.y),yo(i,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:e,hover(){return sp(e.clientX,e.clientY)}})}vo({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Xe(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Xe(t)&&Bn(this.info,t)},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchend(t){Bn(this.info,t.changedTouches[0],t)}});function Bn(t,i,e){const r=Math.abs(i.clientX-t.x),o=Math.abs(i.clientY-t.y),n=ze(e||i);!n||rp[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=Nn&&o<=Nn||op(i))&&(t.prevent||yo(n,"tap",{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:e}))}/**
2934
+ */const Kf=t=>t,Ha=typeof document.head.style.touchAction=="string",Xr="__polymerGestures",cr="__polymerGesturesHandled",Kr="__polymerGesturesTouchAction",Ln=25,Hn=5,Jf=2,Zf=["mousedown","mousemove","mouseup","click"],Qf=[0,1,4,2],ep=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function bo(t){return Zf.indexOf(t)>-1}let tp=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){tp=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function ip(t){bo(t)}const rp=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),op={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Xe(t){const i=t.type;if(!bo(i))return!1;if(i==="mousemove"){let r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!ep&&(r=Qf[t.which]||0),!!(r&1)}return(t.button===void 0?0:t.button)===0}function np(t){if(t.type==="click"){if(t.detail===0)return!0;const i=ze(t);if(!i.nodeType||i.nodeType!==Node.ELEMENT_NODE)return!0;const e=i.getBoundingClientRect(),r=t.pageX,o=t.pageY;return!(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)}return!1}const Ie={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function sp(t){let i="auto";const e=$a(t);for(let r=0,o;r<e.length;r++)if(o=e[r],o[Kr]){i=o[Kr];break}return i}function Ba(t,i,e){t.movefn=i,t.upfn=e,document.addEventListener("mousemove",i),document.addEventListener("mouseup",e)}function ht(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const $a=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],vo={},qe=[];function ap(t,i){let e=document.elementFromPoint(t,i),r=e;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(t,i),o===r)break;r&&(e=r)}return e}function ze(t){const i=$a(t);return i.length>0?i[0]:t.target}function lp(t){const i=t.type,r=t.currentTarget[Xr];if(!r)return;const o=r[i];if(!o)return;if(!t[cr]&&(t[cr]={},i.startsWith("touch"))){const s=t.changedTouches[0];if(i==="touchstart"&&t.touches.length===1&&(Ie.touch.id=s.identifier),Ie.touch.id!==s.identifier)return;Ha||(i==="touchstart"||i==="touchmove")&&up(t)}const n=t[cr];if(!n.skip){for(let s=0,a;s<qe.length;s++)a=qe[s],o[a.name]&&!n[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<qe.length;s++)a=qe[s],o[a.name]&&!n[a.name]&&(n[a.name]=!0,a[i](t))}}function up(t){const i=t.changedTouches[0],e=t.type;if(e==="touchstart")Ie.touch.x=i.clientX,Ie.touch.y=i.clientY,Ie.touch.scrollDecided=!1;else if(e==="touchmove"){if(Ie.touch.scrollDecided)return;Ie.touch.scrollDecided=!0;const r=sp(t);let o=!1;const n=Math.abs(Ie.touch.x-i.clientX),s=Math.abs(Ie.touch.y-i.clientY);t.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=s>n:r==="pan-y"&&(o=n>s)),o?t.preventDefault():Ci("track")}}function Pe(t,i,e){return vo[i]?(cp(t,i,e),!0):!1}function cp(t,i,e){const r=vo[i],o=r.deps,n=r.name;let s=t[Xr];s||(t[Xr]=s={});for(let a=0,l,u;a<o.length;a++)l=o[a],!(rp&&bo(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&t.addEventListener(l,lp,ip(l)),u[n]=(u[n]||0)+1,u._count=(u._count||0)+1);t.addEventListener(i,e),r.touchAction&&Fa(t,r.touchAction)}function yo(t){qe.push(t),t.emits.forEach(i=>{vo[i]=t})}function dp(t){for(let i=0,e;i<qe.length;i++){e=qe[i];for(let r=0,o;r<e.emits.length;r++)if(o=e.emits[r],o===t)return e}return null}function Fa(t,i){Ha&&t instanceof HTMLElement&&Vf.run(()=>{t.style.touchAction=i}),t[Kr]=i}function xo(t,i,e){const r=new Event(i,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=e,Kf(t).dispatchEvent(r),r.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Ci(t){const i=dp(t);i.info&&(i.info.prevent=!0)}yo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ht(this.info)},mousedown(t){if(!Xe(t))return;const i=ze(t),e=this,r=n=>{Xe(n)||(Mt("up",i,n),ht(e.info))},o=n=>{Xe(n)&&Mt("up",i,n),ht(e.info)};Ba(this.info,r,o),Mt("down",i,t)},touchstart(t){Mt("down",ze(t),t.changedTouches[0],t)},touchend(t){Mt("up",ze(t),t.changedTouches[0],t)}});function Mt(t,i,e,r){i&&xo(i,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r,prevent(o){return Ci(o)}})}yo({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>Jf&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ht(this.info)},mousedown(t){if(!Xe(t))return;const i=ze(t),e=this,r=n=>{const s=n.clientX,a=n.clientY;Bn(e.info,s,a)&&(e.info.state=e.info.started?n.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Ci("tap"),e.info.addMove({x:s,y:a}),Xe(n)||(e.info.state="end",ht(e.info)),i&&dr(e.info,i,n),e.info.started=!0)},o=n=>{e.info.started&&r(n),ht(e.info)};Ba(this.info,r,o),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchmove(t){const i=ze(t),e=t.changedTouches[0],r=e.clientX,o=e.clientY;Bn(this.info,r,o)&&(this.info.state==="start"&&Ci("tap"),this.info.addMove({x:r,y:o}),dr(this.info,i,e),this.info.state="track",this.info.started=!0)},touchend(t){const i=ze(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),dr(this.info,i,e))}});function Bn(t,i,e){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-i),o=Math.abs(t.y-e);return r>=Hn||o>=Hn}function dr(t,i,e){if(!i)return;const r=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1],n=o.x-t.x,s=o.y-t.y;let a,l=0;r&&(a=o.x-r.x,l=o.y-r.y),xo(i,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:e,hover(){return ap(e.clientX,e.clientY)}})}yo({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Xe(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Xe(t)&&$n(this.info,t)},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchend(t){$n(this.info,t.changedTouches[0],t)}});function $n(t,i,e){const r=Math.abs(i.clientX-t.x),o=Math.abs(i.clientY-t.y),n=ze(e||i);!n||op[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=Ln&&o<=Ln||np(i))&&(t.prevent||xo(n,"tap",{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:e}))}/**
2935
2935
  * @license
2936
2936
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2937
2937
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2939,15 +2939,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2939
2939
  * @license
2940
2940
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2941
2941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2942
- */const Bi=ie(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2942
+ */const Fi=ie(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2943
2943
  * @license
2944
2944
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2945
2945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2946
- */const dp=t=>class extends Ra(Bi(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Pe(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Pe(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",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2946
+ */const hp=t=>class extends Ra(Fi(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Pe(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Pe(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",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2947
2947
  * @license
2948
2948
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2949
2949
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2950
- */const xo=ie(t=>class extends t{get _keyboardActive(){return po()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2950
+ */const wo=ie(t=>class extends t{get _keyboardActive(){return _o()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2951
2951
  * @license
2952
2952
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2953
2953
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2955,15 +2955,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2955
2955
  * @license
2956
2956
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2957
2957
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2958
- */const hp=t=>class extends dp(za(xo(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
2958
+ */const fp=t=>class extends hp(za(wo(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
2959
2959
  * @license
2960
2960
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2961
2961
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2962
- */Z("vaadin-button",Wf,{moduleId:"vaadin-button-styles"});class fp extends hp(Ia(Ze(Tt(Ue)))){static get is(){return"vaadin-button"}static get template(){return qf(et)}ready(){super.ready(),this._tooltipController=new La(this),this.addController(this._tooltipController)}}De(fp);/**
2962
+ */Z("vaadin-button",qf,{moduleId:"vaadin-button-styles"});class pp extends fp(Ia(Ze(Ct(Ue)))){static get is(){return"vaadin-button"}static get template(){return Xf(et)}ready(){super.ready(),this._tooltipController=new La(this),this.addController(this._tooltipController)}}ke(pp);/**
2963
2963
  * @license
2964
2964
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2965
2965
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2966
- */function pp(t){let i=t.getDay();i===0&&(i=7);const e=4-i,r=new Date(t.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const n=r.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function Wr(t){const i=new Date(t);return i.setHours(0,0,0,0),i}function Le(t,i,e=Wr){return t instanceof Date&&i instanceof Date&&e(t).getTime()===e(i).getTime()}function wo(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function xt(t,i,e,r){let o=!1;if(typeof r=="function"&&t){const n=wo(t);o=r(n)}return(!i||t>=i)&&(!e||t<=e)&&!o}function Ua(t,i){return i.filter(e=>e!==void 0).reduce((e,r)=>{if(!r)return e;if(!e)return r;const o=Math.abs(t.getTime()-r.getTime()),n=Math.abs(e.getTime()-t.getTime());return o<n?r:e})}function ja(t){const i=new Date,e=new Date(i);return e.setDate(1),e.setMonth(parseInt(t)+i.getMonth()),e}function mp(t,i,e=0,r=1){if(i>99)throw new Error("The provided year cannot have more than 2 digits.");if(i<0)throw new Error("The provided year cannot be negative.");let o=i+Math.floor(t.getFullYear()/100)*100;return t<new Date(o-50,e,r)?o-=100:t>new Date(o+50,e,r)&&(o+=100),o}function It(t){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!i)return;const e=new Date(0,0);return e.setFullYear(parseInt(i[1],10)),e.setMonth(parseInt(i[2],10)-1),e.setDate(parseInt(i[3],10)),e}function _p(t){const i=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",r="0000",o=t.year;o<0?(o=-o,e="-",r="000000"):t.year>=1e4&&(e="+",r="000000");const n=e+i(o,r),s=i(t.month+1),a=i(t.day);return[n,s,a].join("-")}function gp(t){return t instanceof Date?_p({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}/**
2966
+ */function mp(t){let i=t.getDay();i===0&&(i=7);const e=4-i,r=new Date(t.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const n=r.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function Jr(t){const i=new Date(t);return i.setHours(0,0,0,0),i}function He(t,i,e=Jr){return t instanceof Date&&i instanceof Date&&e(t).getTime()===e(i).getTime()}function Eo(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function yt(t,i,e,r){let o=!1;if(typeof r=="function"&&t){const n=Eo(t);o=r(n)}return(!i||t>=i)&&(!e||t<=e)&&!o}function Ua(t,i){return i.filter(e=>e!==void 0).reduce((e,r)=>{if(!r)return e;if(!e)return r;const o=Math.abs(t.getTime()-r.getTime()),n=Math.abs(e.getTime()-t.getTime());return o<n?r:e})}function ja(t){const i=new Date,e=new Date(i);return e.setDate(1),e.setMonth(parseInt(t)+i.getMonth()),e}function _p(t,i,e=0,r=1){if(i>99)throw new Error("The provided year cannot have more than 2 digits.");if(i<0)throw new Error("The provided year cannot be negative.");let o=i+Math.floor(t.getFullYear()/100)*100;return t<new Date(o-50,e,r)?o-=100:t>new Date(o+50,e,r)&&(o+=100),o}function Ot(t){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!i)return;const e=new Date(0,0);return e.setFullYear(parseInt(i[1],10)),e.setMonth(parseInt(i[2],10)-1),e.setDate(parseInt(i[3],10)),e}function gp(t){const i=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",r="0000",o=t.year;o<0?(o=-o,e="-",r="000000"):t.year>=1e4&&(e="+",r="000000");const n=e+i(o,r),s=i(t.month+1),a=i(t.day);return[n,s,a].join("-")}function bp(t){return t instanceof Date?gp({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}/**
2967
2967
  @license
2968
2968
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2969
2969
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2971,7 +2971,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2971
2971
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2972
2972
  Code distributed by Google as part of the polymer project is also
2973
2973
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2974
- */class Ci{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Jt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Jt.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(i,e,r){return i instanceof Ci?i._cancelAsync():i=new Ci,i.setConfig(e,r),i}}let Jt=new Set;const bp=function(t){Jt.add(t)},vp=function(){const t=!!Jt.size;return Jt.forEach(i=>{try{i.flush()}catch(e){setTimeout(()=>{throw e})}}),t};/**
2974
+ */class Ti{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Kt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Kt.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(i,e,r){return i instanceof Ti?i._cancelAsync():i=new Ti,i.setConfig(e,r),i}}let Kt=new Set;const vp=function(t){Kt.add(t)},yp=function(){const t=!!Kt.size;return Kt.forEach(i=>{try{i.flush()}catch(e){setTimeout(()=>{throw e})}}),t};/**
2975
2975
  @license
2976
2976
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2977
2977
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2979,7 +2979,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2979
2979
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2980
2980
  Code distributed by Google as part of the polymer project is also
2981
2981
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2982
- */const Eo=function(){let t,i;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=vp();while(t||i)};/**
2982
+ */const So=function(){let t,i;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=yp();while(t||i)};/**
2983
2983
  * @license
2984
2984
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2985
2985
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3033,7 +3033,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3033
3033
  <div class="buffer"></div>
3034
3034
  <div id="fullHeight"></div>
3035
3035
  </div>
3036
- `;class Ya extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Va.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(i){i&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const i=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,i);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(r)}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(i){this._preventScrollEvent=!0,i>this._firstIndex&&i<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(i-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~i,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=i%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(i=>{this.$[i.id]=i}),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()),Eo()}_createElement(){}_updateElement(i,e){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const e=i?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 i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,r=i>this._buffers[1].translateY+e,o=i<this._buffers[0].translateY+e;(r||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=yt.debounce(this._debouncerScrollFinish,Si.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(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(i=>{i.style.transform=`translate3d(0, ${i.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=yt.debounce(this._debouncerUpdateClones,Si.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${Na()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,e.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,i)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(i){if(i.firstElementChild)return;const e=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),Object.keys(e).forEach(r=>{i.instance[r]=e[r]})}_updateClones(i){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,o)=>{if(!r.updated){const n=this._firstIndex+this.bufferSize*o;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!i||this._isVisible(l,e))&&this._updateElement(l.instance,n+a)}),r.updated=!0}})}_isVisible(i,e){const r=i.getBoundingClientRect();return r.bottom>e.top&&r.top<e.bottom}}/**
3036
+ `;class Ya extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Va.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(i){i&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const i=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,i);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(r)}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(i){this._preventScrollEvent=!0,i>this._firstIndex&&i<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(i-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~i,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=i%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(i=>{this.$[i.id]=i}),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()),So()}_createElement(){}_updateElement(i,e){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const e=i?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 i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,r=i>this._buffers[1].translateY+e,o=i<this._buffers[0].translateY+e;(r||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=vt.debounce(this._debouncerScrollFinish,Ai.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(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(i=>{i.style.transform=`translate3d(0, ${i.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=vt.debounce(this._debouncerUpdateClones,Ai.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${Na()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,e.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,i)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(i){if(i.firstElementChild)return;const e=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),Object.keys(e).forEach(r=>{i.instance[r]=e[r]})}_updateClones(i){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,o)=>{if(!r.updated){const n=this._firstIndex+this.bufferSize*o;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!i||this._isVisible(l,e))&&this._updateElement(l.instance,n+a)}),r.updated=!0}})}_isVisible(i,e){const r=i.getBoundingClientRect();return r.bottom>e.top&&r.top<e.bottom}}/**
3037
3037
  * @license
3038
3038
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3039
3039
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3049,7 +3049,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3049
3049
  height: 100%;
3050
3050
  }
3051
3051
  </style>
3052
- `;class yp extends Ya{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ga.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,e){i.month=ja(e)}}De(yp);/**
3052
+ `;class xp extends Ya{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ga.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,e){i.month=ja(e)}}ke(xp);/**
3053
3053
  * @license
3054
3054
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3055
3055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3087,15 +3087,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3087
3087
  border-left-color: #000;
3088
3088
  }
3089
3089
  </style>
3090
- `;class xp extends Ya{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Wa.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,e){i.year=this._yearAfterXYears(e)}_yearAfterXYears(i){const e=new Date,r=new Date(e);return r.setFullYear(parseInt(i)+e.getFullYear()),r.getFullYear()}}De(xp);/**
3090
+ `;class wp extends Ya{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Wa.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,e){i.year=this._yearAfterXYears(e)}_yearAfterXYears(i){const e=new Date,r=new Date(e);return r.setFullYear(parseInt(i)+e.getFullYear()),r.getFullYear()}}ke(wp);/**
3091
3091
  * @license
3092
3092
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3093
3093
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3094
- */const wp=t=>class extends t{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,r){this.toggleAttribute("selected",r&&r.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3094
+ */const Ep=t=>class extends t{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,r){this.toggleAttribute("selected",r&&r.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3095
3095
  * @license
3096
3096
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3097
3097
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3098
- */class Ep extends Ze(wp(Ue)){static get is(){return"vaadin-date-picker-year"}static get template(){return et`
3098
+ */class Sp extends Ze(Ep(Ue)){static get is(){return"vaadin-date-picker-year"}static get template(){return et`
3099
3099
  <style>
3100
3100
  :host {
3101
3101
  display: block;
@@ -3104,7 +3104,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3104
3104
  </style>
3105
3105
  <div part="year-number">[[year]]</div>
3106
3106
  <div part="year-separator" aria-hidden="true"></div>
3107
- `}}De(Ep);/**
3107
+ `}}ke(Sp);/**
3108
3108
  @license
3109
3109
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3110
3110
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3112,7 +3112,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3112
3112
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3113
3113
  Code distributed by Google as part of the polymer project is also
3114
3114
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3115
- */function So(t,i,e,r,o){let n;o&&(n=typeof e=="object"&&e!==null,n&&(r=t.__dataTemp[i]));let s=r!==e&&(r===r||e===e);return n&&s&&(t.__dataTemp[i]=e),s}const Ao=ie(t=>{class i extends t{_shouldPropertyChange(r,o,n){return So(this,r,o,n,!0)}}return i}),Sp=ie(t=>{class i extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,n){return So(this,r,o,n,this.mutableData)}}return i});Ao._mutablePropertyChange=So;/**
3115
+ */function Ao(t,i,e,r,o){let n;o&&(n=typeof e=="object"&&e!==null,n&&(r=t.__dataTemp[i]));let s=r!==e&&(r===r||e===e);return n&&s&&(t.__dataTemp[i]=e),s}const Co=ie(t=>{class i extends t{_shouldPropertyChange(r,o,n){return Ao(this,r,o,n,!0)}}return i}),Ap=ie(t=>{class i extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,n){return Ao(this,r,o,n,this.mutableData)}}return i});Co._mutablePropertyChange=Ao;/**
3116
3116
  @license
3117
3117
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3118
3118
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3120,7 +3120,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3120
3120
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3121
3121
  Code distributed by Google as part of the polymer project is also
3122
3122
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3123
- */let qr=null;function Xr(){return qr}Xr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Xr,writable:!0}});const qa=ho(Xr),Ap=Ao(qa);function Cp(t,i){qr=t,Object.setPrototypeOf(t,i.prototype),new i,qr=null}const Tp=ho(class{});function Pp(t,i){for(let e=0;e<i.length;e++){let r=i[e];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),se(se(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&se(se(o).parentNode).replaceChild(r,o)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class je extends Tp{constructor(i){super(),this._configureProperties(i),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 r=this.__templatizeOptions;(i&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(i){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in i)this._setPendingProperty(r,i[r])}forwardHostProp(i,e){this._setPendingPropertyOrPath(i,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,e,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,e,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(i,e,r)}}_showHideChildren(i){Pp(i,this.children)}_setUnmanagedPropertyToNode(i,e,r){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&e=="textContent"?i.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(i,e,r)}get parentModel(){let i=this.__parentModel;if(!i){let e;i=this;do i=i.__dataHost.__dataHost;while((e=i.__templatizeOptions)&&!e.parentModel);this.__parentModel=i}return i}dispatchEvent(i){return!0}}je.prototype.__dataHost;je.prototype.__templatizeOptions;je.prototype._methodHost;je.prototype.__templatizeOwner;je.prototype.__hostProps;const Dp=Ao(je);function $n(t){let i=t.__dataHost;return i&&i._methodHost||i}function kp(t,i,e){let r=e.mutableData?Dp:je;Kr.mixin&&(r=Kr.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(t),Ip(o,t,i,e),o}function Mp(t,i,e,r){let o=e.forwardHostProp;if(o&&i.hasHostProps){const n=t.localName=="template";let s=i.templatizeTemplateClass;if(!s){if(n){let l=e.mutableData?Ap:qa;class u extends l{}s=i.templatizeTemplateClass=u}else{const l=t.constructor;class u extends l{}s=i.templatizeTemplateClass=u}let a=i.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Op(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);Qs&&r&&Hp(i,e,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),n)Cp(t,s),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,s.prototype);const a=i.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function Op(t,i){return function(r,o,n){i.call(r.__templatizeOwner,o.substring(6),n[o])}}function Ip(t,i,e,r){let o=e.hostProps||{};for(let n in r.instanceProps){delete o[n];let s=r.notifyInstanceProp;s&&t.prototype._addPropertyEffect(n,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Np(n,s)})}if(r.forwardHostProp&&i.__dataHost)for(let n in o)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(n,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Lp()})}function Np(t,i){return function(r,o,n){i.call(r.__templatizeOwner,r,o,n[o])}}function Lp(){return function(i,e,r){i.__dataHost._setPendingPropertyOrPath("_host_"+e,r[e],!0,!0)}}function Kr(t,i,e){if(wi&&!$n(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=i;let o=(i?i.constructor:je)._parseTemplate(t),n=o.templatizeInstanceClass;n||(n=kp(t,o,e),o.templatizeInstanceClass=n);const s=$n(t);Mp(t,o,e,s);let a=class extends n{};return a.prototype._methodHost=s,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=i,a.prototype.__hostProps=o.hostProps,a=a,a}function Hp(t,i,e){const r=e.constructor._properties,{propertyEffects:o}=t,{instanceProps:n}=i;for(let s in o)if(!r[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Bp(t,i){let e;for(;i;)if(e=i.__dataHost?i:i.__templatizeInstance)if(e.__dataHost!=t)i=e.__dataHost;else return e;else i=se(i).parentNode;return null}/**
3123
+ */let Zr=null;function Qr(){return Zr}Qr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Qr,writable:!0}});const qa=po(Qr),Cp=Co(qa);function Tp(t,i){Zr=t,Object.setPrototypeOf(t,i.prototype),new i,Zr=null}const Pp=po(class{});function Dp(t,i){for(let e=0;e<i.length;e++){let r=i[e];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),se(se(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&se(se(o).parentNode).replaceChild(r,o)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class je extends Pp{constructor(i){super(),this._configureProperties(i),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 r=this.__templatizeOptions;(i&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(i){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in i)this._setPendingProperty(r,i[r])}forwardHostProp(i,e){this._setPendingPropertyOrPath(i,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,e,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,e,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(i,e,r)}}_showHideChildren(i){Dp(i,this.children)}_setUnmanagedPropertyToNode(i,e,r){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&e=="textContent"?i.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(i,e,r)}get parentModel(){let i=this.__parentModel;if(!i){let e;i=this;do i=i.__dataHost.__dataHost;while((e=i.__templatizeOptions)&&!e.parentModel);this.__parentModel=i}return i}dispatchEvent(i){return!0}}je.prototype.__dataHost;je.prototype.__templatizeOptions;je.prototype._methodHost;je.prototype.__templatizeOwner;je.prototype.__hostProps;const kp=Co(je);function Fn(t){let i=t.__dataHost;return i&&i._methodHost||i}function Mp(t,i,e){let r=e.mutableData?kp:je;eo.mixin&&(r=eo.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(t),Np(o,t,i,e),o}function Op(t,i,e,r){let o=e.forwardHostProp;if(o&&i.hasHostProps){const n=t.localName=="template";let s=i.templatizeTemplateClass;if(!s){if(n){let l=e.mutableData?Cp:qa;class u extends l{}s=i.templatizeTemplateClass=u}else{const l=t.constructor;class u extends l{}s=i.templatizeTemplateClass=u}let a=i.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Ip(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);Qs&&r&&Bp(i,e,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),n)Tp(t,s),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,s.prototype);const a=i.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function Ip(t,i){return function(r,o,n){i.call(r.__templatizeOwner,o.substring(6),n[o])}}function Np(t,i,e,r){let o=e.hostProps||{};for(let n in r.instanceProps){delete o[n];let s=r.notifyInstanceProp;s&&t.prototype._addPropertyEffect(n,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Lp(n,s)})}if(r.forwardHostProp&&i.__dataHost)for(let n in o)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(n,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Hp()})}function Lp(t,i){return function(r,o,n){i.call(r.__templatizeOwner,r,o,n[o])}}function Hp(){return function(i,e,r){i.__dataHost._setPendingPropertyOrPath("_host_"+e,r[e],!0,!0)}}function eo(t,i,e){if(Ei&&!Fn(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=i;let o=(i?i.constructor:je)._parseTemplate(t),n=o.templatizeInstanceClass;n||(n=Mp(t,o,e),o.templatizeInstanceClass=n);const s=Fn(t);Op(t,o,e,s);let a=class extends n{};return a.prototype._methodHost=s,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=i,a.prototype.__hostProps=o.hostProps,a=a,a}function Bp(t,i,e){const r=e.constructor._properties,{propertyEffects:o}=t,{instanceProps:n}=i;for(let s in o)if(!r[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function $p(t,i){let e;for(;i;)if(e=i.__dataHost?i:i.__templatizeInstance)if(e.__dataHost!=t)i=e.__dataHost;else return e;else i=se(i).parentNode;return null}/**
3124
3124
  @license
3125
3125
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3126
3126
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3128,7 +3128,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3128
3128
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3129
3129
  Code distributed by Google as part of the polymer project is also
3130
3130
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3131
- */let Fn=!1;function $p(){if(Zs&&!Js){if(!Fn){Fn=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}/**
3131
+ */let Rn=!1;function Fp(){if(Zs&&!Js){if(!Rn){Rn=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}/**
3132
3132
  @license
3133
3133
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3134
3134
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3136,15 +3136,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3136
3136
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3137
3137
  Code distributed by Google as part of the polymer project is also
3138
3138
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3139
- */const Fp=Sp(Ue);class Rn extends Fp{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:!hn,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,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let i=0;i<this.__instances.length;i++)this.__detachInstance(i);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),$p()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=se(se(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let e=this.template=i._templateInfo?i: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 r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Kr(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(Ud(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=qt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let e=i,r=this.__getMethodHost();return function(){return r[e].apply(r,arguments)}}return i}__sortChanged(i){this.__sortFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__filterChanged(i){this.__filterFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(i){return Math.ceil(1e3/i)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(i){if(this.__sortFn||this.__filterFn){if(!i)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let r=0;r<e.length;r++)i.indexOf(e[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(i){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(i.path,i.value)||(i.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(i,e=0){this.__renderDebouncer=Ci.debounce(this.__renderDebouncer,e>0?qd.after(e):ua,i.bind(this)),bp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Eo()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const e=this.__sortAndFilterItems(i),r=this.__calculateLimit(e.length);this.__updateInstances(i,r,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!hn||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let e=new Array(i.length);for(let r=0;r<i.length;r++)e[r]=r;return this.__filterFn&&(e=e.filter((r,o,n)=>this.__filterFn(i[r],o,n))),this.__sortFn&&e.sort((r,o)=>this.__sortFn(i[r],i[o])),e}__calculateLimit(i){let e=i;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(i,this.initialCount),o=Math.max(e-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(i-r,0),this.__chunkCount),e=Math.min(r+o,i)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=e<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,e=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,e,r){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<e;n++){let s=this.__instances[n],a=r[n],l=i[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(i){let e=this.__instances[i];const r=se(e.root);for(let o=0;o<e.children.length;o++){let n=e.children[o];r.appendChild(n)}return e}__attachInstance(i,e){let r=this.__instances[i];e.insertBefore(r.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,e,r){let o={};return o[this.as]=i,o[this.indexAs]=e,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(i,e,r){const o=this.__stampInstance(i,e,r);let n=this.__instances[e+1],s=n?n.children[0]:this;return se(se(this).parentNode).insertBefore(o.root,s),this.__instances[e]=o,o}_showHideChildren(i){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(i)}__handleItemPath(i,e){let r=i.slice(6),o=r.indexOf("."),n=o<0?r:r.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":r.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(i){let e=this.modelForElement(i);return e&&e[this.as]}indexForElement(i){let e=this.modelForElement(i);return e&&e[this.indexAs]}modelForElement(i){return Bp(this.template,i)}}customElements.define(Rn.is,Rn);/**
3139
+ */const Rp=Ap(Ue);class zn extends Rp{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:!fn,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,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let i=0;i<this.__instances.length;i++)this.__detachInstance(i);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Fp()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=se(se(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let e=this.template=i._templateInfo?i: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 r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=eo(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(jd(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Wt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let e=i,r=this.__getMethodHost();return function(){return r[e].apply(r,arguments)}}return i}__sortChanged(i){this.__sortFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__filterChanged(i){this.__filterFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(i){return Math.ceil(1e3/i)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(i){if(this.__sortFn||this.__filterFn){if(!i)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let r=0;r<e.length;r++)i.indexOf(e[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(i){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(i.path,i.value)||(i.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(i,e=0){this.__renderDebouncer=Ti.debounce(this.__renderDebouncer,e>0?Xd.after(e):ua,i.bind(this)),vp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),So()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const e=this.__sortAndFilterItems(i),r=this.__calculateLimit(e.length);this.__updateInstances(i,r,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!fn||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let e=new Array(i.length);for(let r=0;r<i.length;r++)e[r]=r;return this.__filterFn&&(e=e.filter((r,o,n)=>this.__filterFn(i[r],o,n))),this.__sortFn&&e.sort((r,o)=>this.__sortFn(i[r],i[o])),e}__calculateLimit(i){let e=i;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(i,this.initialCount),o=Math.max(e-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(i-r,0),this.__chunkCount),e=Math.min(r+o,i)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=e<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,e=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,e,r){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<e;n++){let s=this.__instances[n],a=r[n],l=i[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(i){let e=this.__instances[i];const r=se(e.root);for(let o=0;o<e.children.length;o++){let n=e.children[o];r.appendChild(n)}return e}__attachInstance(i,e){let r=this.__instances[i];e.insertBefore(r.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,e,r){let o={};return o[this.as]=i,o[this.indexAs]=e,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(i,e,r){const o=this.__stampInstance(i,e,r);let n=this.__instances[e+1],s=n?n.children[0]:this;return se(se(this).parentNode).insertBefore(o.root,s),this.__instances[e]=o,o}_showHideChildren(i){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(i)}__handleItemPath(i,e){let r=i.slice(6),o=r.indexOf("."),n=o<0?r:r.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":r.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(i){let e=this.modelForElement(i);return e&&e[this.as]}indexForElement(i){let e=this.modelForElement(i);return e&&e[this.indexAs]}modelForElement(i){return $p(this.template,i)}}customElements.define(zn.is,zn);/**
3140
3140
  * @license
3141
3141
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3142
3142
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3143
- */const Rp=t=>class extends xo(t){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=>Le(e.date,this.focusedDate))}ready(){super.ready(),Pe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,r,o){const n=new Date(0,0);n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),r&&o&&r.getMonth()===o.getMonth()&&r.getMonth()===e.getMonth()&&o.getDate()-r.getDate()>=0?!1:!xt(n,r,o)&&!xt(s,r,o)}_getTitle(e,r){if(!(e===void 0||r===void 0))return r.formatTitle(r.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,r){e.setDate(e.getDate()+r)}_applyFirstDayOfWeek(e,r){if(!(e===void 0||r===void 0))return e.slice(r).concat(e.slice(0,r))}_getWeekDayNames(e,r){if(e===void 0||r===void 0)return[];const{weekdays:o,weekdaysShort:n,firstDayOfWeek:s}=e,a=this._applyFirstDayOfWeek(n,s);return this._applyFirstDayOfWeek(o,s).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,r){Array.isArray(r)&&r.some(o=>Le(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,r){return e&&r&&r.firstDayOfWeek===1}_isToday(e){return Le(new Date,e)}_getDays(e,r){if(e===void 0||r===void 0)return[];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==r.firstDayOfWeek;)this._dateAdd(o,-1);const n=[],s=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===s;)n.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return n}_getWeeks(e){return e.reduce((r,o,n)=>(n%7===0&&r.push([]),r[r.length-1].push(o),r),[])}_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 r=e.reduce((o,n)=>!o&&n?n:o);return pp(r)}__getDayAriaLabel(e){if(!e)return"";let r=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(r+=`, ${this.i18n.today}`),r}};/**
3143
+ */const zp=t=>class extends wo(t){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=>He(e.date,this.focusedDate))}ready(){super.ready(),Pe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,r,o){const n=new Date(0,0);n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),r&&o&&r.getMonth()===o.getMonth()&&r.getMonth()===e.getMonth()&&o.getDate()-r.getDate()>=0?!1:!yt(n,r,o)&&!yt(s,r,o)}_getTitle(e,r){if(!(e===void 0||r===void 0))return r.formatTitle(r.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,r){e.setDate(e.getDate()+r)}_applyFirstDayOfWeek(e,r){if(!(e===void 0||r===void 0))return e.slice(r).concat(e.slice(0,r))}_getWeekDayNames(e,r){if(e===void 0||r===void 0)return[];const{weekdays:o,weekdaysShort:n,firstDayOfWeek:s}=e,a=this._applyFirstDayOfWeek(n,s);return this._applyFirstDayOfWeek(o,s).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,r){Array.isArray(r)&&r.some(o=>He(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,r){return e&&r&&r.firstDayOfWeek===1}_isToday(e){return He(new Date,e)}_getDays(e,r){if(e===void 0||r===void 0)return[];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==r.firstDayOfWeek;)this._dateAdd(o,-1);const n=[],s=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===s;)n.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return n}_getWeeks(e){return e.reduce((r,o,n)=>(n%7===0&&r.push([]),r[r.length-1].push(o),r),[])}_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 r=e.reduce((o,n)=>!o&&n?n:o);return mp(r)}__getDayAriaLabel(e){if(!e)return"";let r=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(r+=`, ${this.i18n.today}`),r}};/**
3144
3144
  * @license
3145
3145
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3146
3146
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3147
- */const zp=F`
3147
+ */const Up=F`
3148
3148
  :host {
3149
3149
  display: block;
3150
3150
  }
@@ -3204,7 +3204,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3204
3204
  * @license
3205
3205
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3206
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3207
- */Z("vaadin-month-calendar",zp,{moduleId:"vaadin-month-calendar-styles"});class Up extends Rp(Ze(Ue)){static get template(){return et`
3207
+ */Z("vaadin-month-calendar",Up,{moduleId:"vaadin-month-calendar-styles"});class jp extends zp(Ze(Ue)){static get template(){return et`
3208
3208
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3209
3209
  <table
3210
3210
  id="monthGrid"
@@ -3246,7 +3246,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3246
3246
  </template>
3247
3247
  </tbody>
3248
3248
  </table>
3249
- `}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(i,e){i&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,e,r,o,n,s){const a=["date"],l=i>Wr(new Date),u=i<Wr(new Date);return this.__isDayDisabled(i,o,n,s)&&a.push("disabled"),this.__isDayFocused(i,e)&&a.push("focused"),this.__isDaySelected(i,r)&&a.push("selected"),this._isToday(i)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(i,e){return Le(i,e)}__isDaySelected(i,e){return Le(i,e)}__getDayAriaSelected(i,e){if(this.__isDaySelected(i,e))return"true"}__isDayDisabled(i,e,r,o){return!xt(i,e,r,o)}__getDayAriaDisabled(i,e,r,o){if(!(i===void 0||e===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(i,e,r,o))return"true"}__getDayTabindex(i,e){return this.__isDayFocused(i,e)?"0":"-1"}}De(Up);/**
3249
+ `}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(i,e){i&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,e,r,o,n,s){const a=["date"],l=i>Jr(new Date),u=i<Jr(new Date);return this.__isDayDisabled(i,o,n,s)&&a.push("disabled"),this.__isDayFocused(i,e)&&a.push("focused"),this.__isDaySelected(i,r)&&a.push("selected"),this._isToday(i)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(i,e){return He(i,e)}__isDaySelected(i,e){return He(i,e)}__getDayAriaSelected(i,e){if(this.__isDaySelected(i,e))return"true"}__isDayDisabled(i,e,r,o){return!yt(i,e,r,o)}__getDayAriaDisabled(i,e,r,o){if(!(i===void 0||e===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(i,e,r,o))return"true"}__getDayTabindex(i,e){return this.__isDayFocused(i,e)?"0":"-1"}}ke(jp);/**
3250
3250
  * @license
3251
3251
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3252
3252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3254,11 +3254,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3254
3254
  * @license
3255
3255
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3256
3256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3257
- */const jp=t=>class extends t{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(){Fa(this.$.scrollers,"pan-y"),Pe(this.$.scrollers,"track",this._track.bind(this)),Pe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Pe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Pe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Xa(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new We(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Pe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new We(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Pe(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,r){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new We(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",r=>{this.__onMonthCalendarKeyDown(r)}),e.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(o=>{o.addEventListener("selected-date-changed",n=>{this.selectedDate=n.detail.value})}),this.calendars=r}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new We(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Pe(e,"tap",r=>{this._onYearTap(r)}),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,r){e&&(e.textContent=r&&r.cancel)}__updateTodayButton(e,r,o,n,s){e&&(e.textContent=r&&r.today,e.disabled=!this._isTodayAllowed(o,n,s))}__updateCalendars(e,r,o,n,s,a,l,u,c,d){e&&e.length&&e.forEach(h=>{h.i18n=r,h.minDate=o,h.maxDate=n,h.isDateDisabled=d,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(e,r,o){e&&e.length&&e.forEach(n=>{n.selectedDate=r,o?n.setAttribute("theme",o):n.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,r=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+u,r);return}const n=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;n?this._scrollToPosition(o,r):l&&this._scrollToPosition(o-a+1,r)}_calculateWeekScrollOffset(e){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);let o=0;for(;r.getDate()<e.getDate();)r.setDate(r.getDate()+1),r.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=yt.debounce(this._debouncer,Si.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,r,o){return e&&r&&typeof r.formatDate=="function"?r.formatDate(wo(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,r){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!r){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(u=>{o=u});const n=(u,c,d,h)=>(u/=h/2,u<1?d/2*u*u+c:(u-=1,-d/2*(u*(u-2)-1)+c));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const c=u-s;if(c<this.scrollDuration){const d=n(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=d,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,r){return Math.min(r.max,Math.max(r.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 r=this._translateX+e.detail.ddx;this._translateX=this._limit(r,{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 ja(e).getFullYear()}_differenceInMonths(e,r){return(e.getFullYear()-r.getFullYear())*12-r.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){Le(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let r=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}r&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,r){switch(e.stopPropagation(),r){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 r=this.focusableDateElement;r&&Le(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(e,r){return tt(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,r||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return tt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{Ca(this,()=>{Eo(),r()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ua(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,r,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,r){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),r&&o.setDate(this.focusedDate.getDate()+r),o}_moveFocusByDays(e){const r=this._getDateDiff(0,e);this._focusAllowedDate(r,e,!1)}_moveFocusByMonths(e){const r=this._getDateDiff(e),o=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==o&&r.setDate(0),this._focusAllowedDate(r,e,!0)}_moveFocusInsideMonth(e,r){const o=new Date(0,0);o.setFullYear(e.getFullYear()),r==="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[r]):this._focusClosestDate(e)}_dateAllowed(e,r=this.minDate,o=this.maxDate,n=this.isDateDisabled){return xt(e,r,o,n)}_isTodayAllowed(e,r,o){return this._dateAllowed(this._getTodayMidnight(),e,r,o)}_getTodayMidnight(){const e=new Date,r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}};/**
3257
+ */const Vp=t=>class extends t{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(){Fa(this.$.scrollers,"pan-y"),Pe(this.$.scrollers,"track",this._track.bind(this)),Pe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Pe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Pe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Xa(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new We(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Pe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new We(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Pe(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,r){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new We(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",r=>{this.__onMonthCalendarKeyDown(r)}),e.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(o=>{o.addEventListener("selected-date-changed",n=>{this.selectedDate=n.detail.value})}),this.calendars=r}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new We(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Pe(e,"tap",r=>{this._onYearTap(r)}),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,r){e&&(e.textContent=r&&r.cancel)}__updateTodayButton(e,r,o,n,s){e&&(e.textContent=r&&r.today,e.disabled=!this._isTodayAllowed(o,n,s))}__updateCalendars(e,r,o,n,s,a,l,u,c,d){e&&e.length&&e.forEach(h=>{h.i18n=r,h.minDate=o,h.maxDate=n,h.isDateDisabled=d,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(e,r,o){e&&e.length&&e.forEach(n=>{n.selectedDate=r,o?n.setAttribute("theme",o):n.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,r=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+u,r);return}const n=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;n?this._scrollToPosition(o,r):l&&this._scrollToPosition(o-a+1,r)}_calculateWeekScrollOffset(e){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);let o=0;for(;r.getDate()<e.getDate();)r.setDate(r.getDate()+1),r.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=vt.debounce(this._debouncer,Ai.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,r,o){return e&&r&&typeof r.formatDate=="function"?r.formatDate(Eo(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,r){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!r){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(u=>{o=u});const n=(u,c,d,h)=>(u/=h/2,u<1?d/2*u*u+c:(u-=1,-d/2*(u*(u-2)-1)+c));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const c=u-s;if(c<this.scrollDuration){const d=n(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=d,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,r){return Math.min(r.max,Math.max(r.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 r=this._translateX+e.detail.ddx;this._translateX=this._limit(r,{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 ja(e).getFullYear()}_differenceInMonths(e,r){return(e.getFullYear()-r.getFullYear())*12-r.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){He(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let r=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}r&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,r){switch(e.stopPropagation(),r){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 r=this.focusableDateElement;r&&He(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(e,r){return tt(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,r||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return tt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{Ca(this,()=>{So(),r()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ua(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,r,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,r){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),r&&o.setDate(this.focusedDate.getDate()+r),o}_moveFocusByDays(e){const r=this._getDateDiff(0,e);this._focusAllowedDate(r,e,!1)}_moveFocusByMonths(e){const r=this._getDateDiff(e),o=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==o&&r.setDate(0),this._focusAllowedDate(r,e,!0)}_moveFocusInsideMonth(e,r){const o=new Date(0,0);o.setFullYear(e.getFullYear()),r==="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[r]):this._focusClosestDate(e)}_dateAllowed(e,r=this.minDate,o=this.maxDate,n=this.isDateDisabled){return yt(e,r,o,n)}_isTodayAllowed(e,r,o){return this._dateAllowed(this._getTodayMidnight(),e,r,o)}_getTodayMidnight(){const e=new Date,r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}};/**
3258
3258
  * @license
3259
3259
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3260
3260
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3261
- */const Vp=F`
3261
+ */const Yp=F`
3262
3262
  :host {
3263
3263
  display: flex;
3264
3264
  flex-direction: column;
@@ -3322,7 +3322,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3322
3322
  * @license
3323
3323
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3324
3324
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3325
- */Z("vaadin-date-picker-overlay-content",Vp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Yp extends jp(Tt(Ze(Ni(Ue)))){static get template(){return et`
3325
+ */Z("vaadin-date-picker-overlay-content",Yp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Gp extends Vp(Ct(Ze(Hi(Ue)))){static get template(){return et`
3326
3326
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3327
3327
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3328
3328
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3342,15 +3342,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3342
3342
  <slot name="today-button"></slot>
3343
3343
  <slot name="cancel-button"></slot>
3344
3344
  </div>
3345
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}De(Yp);/**
3345
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ke(Gp);/**
3346
3346
  * @license
3347
3347
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3348
3348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3349
- */const Ka=ie(t=>class extends xo(za(t)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_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,r){super._disabledChanged(e,r),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)}});/**
3349
+ */const Ka=ie(t=>class extends wo(za(t)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_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,r){super._disabledChanged(e,r),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)}});/**
3350
3350
  * @license
3351
3351
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3352
3352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3353
- */const cr=new WeakMap;function Gp(t){return cr.has(t)||cr.set(t,new Set),cr.get(t)}function Wp(t,i){const e=document.createElement("style");e.textContent=t,i===document?document.head.appendChild(e):i.insertBefore(e,i.firstChild)}const qp=ie(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),r=Gp(e);this.slotStyles.forEach(o=>{r.has(o)||(Wp(o,e),r.add(o))})}});/**
3353
+ */const hr=new WeakMap;function Wp(t){return hr.has(t)||hr.set(t,new Set),hr.get(t)}function qp(t,i){const e=document.createElement("style");e.textContent=t,i===document?document.head.appendChild(e):i.insertBefore(e,i.firstChild)}const Xp=ie(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),r=Wp(e);this.slotStyles.forEach(o=>{r.has(o)||(qp(o,e),r.add(o))})}});/**
3354
3354
  * @license
3355
3355
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3356
3356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3358,39 +3358,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3358
3358
  * @license
3359
3359
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3360
3360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3361
- */const Xp=t=>class extends Ja(Bi(t)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),pf||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}))}};/**
3361
+ */const Kp=t=>class extends Ja(Fi(t)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),mf||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}))}};/**
3362
3362
  * @license
3363
3363
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3364
3364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3365
- */const dr=new Map;function Co(t){return dr.has(t)||dr.set(t,new WeakMap),dr.get(t)}function Za(t,i){t&&t.removeAttribute(i)}function Qa(t,i){if(!t||!i)return;const e=Co(i);if(e.has(t))return;const r=mo(t.getAttribute(i));e.set(t,new Set(r))}function Kp(t,i){if(!t||!i)return;const e=Co(i),r=e.get(t);!r||r.size===0?t.removeAttribute(i):ka(t,i,Hi(r)),e.delete(t)}function hr(t,i,e={newId:null,oldId:null,fromUser:!1}){if(!t||!i)return;const{newId:r,oldId:o,fromUser:n}=e,s=Co(i),a=s.get(t);if(!n&&a){o&&a.delete(o),r&&a.add(r);return}n&&(a?r||s.delete(t):Qa(t,i),Za(t,i)),Af(t,i,o);const l=r||Hi(a);l&&ka(t,i,l)}function Jp(t,i){Qa(t,i),Za(t,i)}/**
3365
+ */const fr=new Map;function To(t){return fr.has(t)||fr.set(t,new WeakMap),fr.get(t)}function Za(t,i){t&&t.removeAttribute(i)}function Qa(t,i){if(!t||!i)return;const e=To(i);if(e.has(t))return;const r=go(t.getAttribute(i));e.set(t,new Set(r))}function Jp(t,i){if(!t)return;const e=To(i),r=e.get(t);!r||r.size===0?t.removeAttribute(i):ka(t,i,$i(r)),e.delete(t)}function pr(t,i,e={newId:null,oldId:null,fromUser:!1}){if(!t||!i)return;const{newId:r,oldId:o,fromUser:n}=e,s=To(i),a=s.get(t);if(!n&&a){o&&a.delete(o),r&&a.add(r);return}n&&(a?r||s.delete(t):Qa(t,i),Za(t,i)),Cf(t,i,o);const l=r||$i(a);l&&ka(t,i,l)}function Zp(t,i){Qa(t,i),Za(t,i)}/**
3366
3366
  * @license
3367
3367
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3368
3368
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3369
- */class Zp{constructor(i){this.host=i,this.__required=!1}setTarget(i){this.__target=i,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(i){this.__setAriaRequiredAttribute(i),this.__required=i}setAriaLabel(i){this.__setAriaLabelToAttribute(i),this.__label=i}setLabelId(i,e=!1){const r=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(i,r,e),e?this.__labelIdFromUser=i:this.__labelId=i}setErrorId(i){this.__setErrorIdToAriaAttribute(i,this.__errorId),this.__errorId=i}setHelperId(i){this.__setHelperIdToAriaAttribute(i,this.__helperId),this.__helperId=i}__setAriaLabelToAttribute(i){this.__target&&(i?(Jp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",i)):this.__label&&(Kp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(i,e,r){hr(this.__target,"aria-labelledby",{newId:i,oldId:e,fromUser:r})}__setErrorIdToAriaAttribute(i,e){hr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(i,e){hr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(i){this.__target&&(["input","textarea"].includes(this.__target.localName)||(i?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3369
+ */class Qp{constructor(i){this.host=i,this.__required=!1}setTarget(i){this.__target=i,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(i){this.__setAriaRequiredAttribute(i),this.__required=i}setAriaLabel(i){this.__setAriaLabelToAttribute(i),this.__label=i}setLabelId(i,e=!1){const r=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(i,r,e),e?this.__labelIdFromUser=i:this.__labelId=i}setErrorId(i){this.__setErrorIdToAriaAttribute(i,this.__errorId),this.__errorId=i}setHelperId(i){this.__setHelperIdToAriaAttribute(i,this.__helperId),this.__helperId=i}__setAriaLabelToAttribute(i){this.__target&&(i?(Zp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",i)):this.__label&&(Jp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(i,e,r){pr(this.__target,"aria-labelledby",{newId:i,oldId:e,fromUser:r})}__setErrorIdToAriaAttribute(i,e){pr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(i,e){pr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(i){this.__target&&(["input","textarea"].includes(this.__target.localName)||(i?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3370
3370
  * @license
3371
3371
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3372
3372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3373
- */const Ce=document.createElement("div");Ce.style.position="fixed";Ce.style.clip="rect(0px, 0px, 0px, 0px)";Ce.setAttribute("aria-live","polite");document.body.appendChild(Ce);let li;function Qp(t,i={}){const e=i.mode||"polite",r=i.timeout===void 0?150:i.timeout;e==="alert"?(Ce.removeAttribute("aria-live"),Ce.removeAttribute("role"),li=yt.debounce(li,zf,()=>{Ce.setAttribute("role","alert")})):(li&&li.cancel(),Ce.removeAttribute("role"),Ce.setAttribute("aria-live",e)),Ce.textContent="",setTimeout(()=>{Ce.textContent=t},r)}/**
3373
+ */const Ce=document.createElement("div");Ce.style.position="fixed";Ce.style.clip="rect(0px, 0px, 0px, 0px)";Ce.setAttribute("aria-live","polite");document.body.appendChild(Ce);let li;function em(t,i={}){const e=i.mode||"polite",r=i.timeout===void 0?150:i.timeout;e==="alert"?(Ce.removeAttribute("aria-live"),Ce.removeAttribute("role"),li=vt.debounce(li,Uf,()=>{Ce.setAttribute("role","alert")})):(li&&li.cancel(),Ce.removeAttribute("role"),Ce.setAttribute("aria-live",e)),Ce.textContent="",setTimeout(()=>{Ce.textContent=t},r)}/**
3374
3374
  * @license
3375
3375
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3376
3376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3377
- */class To extends We{constructor(i,e,r,o={}){super(i,e,r,ti(ei({},o),{useUniqueId:!0}))}initCustomNode(i){this.__updateNodeId(i),this.__notifyChange(i)}teardownNode(i){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const i=super.attachDefaultNode();return i&&this.__updateNodeId(i),i}restoreDefaultNode(){}updateDefaultNode(i){this.__notifyChange(i)}observeNode(i){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(r=>{const o=r.target,n=o===this.node;r.type==="attributes"?n&&this.__updateNodeId(o):(n||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(i,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(i){return i?i.nodeType===Node.ELEMENT_NODE&&(customElements.get(i.localName)||i.children.length>0)||i.textContent&&i.textContent.trim()!=="":!1}__notifyChange(i){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(i),node:i}}))}__updateNodeId(i){const e=!this.nodes||i===this.nodes[0];i.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!i.id&&(i.id=this.defaultId)}}/**
3377
+ */class Po extends We{constructor(i,e,r,o={}){super(i,e,r,ti(ei({},o),{useUniqueId:!0}))}initCustomNode(i){this.__updateNodeId(i),this.__notifyChange(i)}teardownNode(i){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const i=super.attachDefaultNode();return i&&this.__updateNodeId(i),i}restoreDefaultNode(){}updateDefaultNode(i){this.__notifyChange(i)}observeNode(i){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(r=>{const o=r.target,n=o===this.node;r.type==="attributes"?n&&this.__updateNodeId(o):(n||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(i,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(i){return i?i.nodeType===Node.ELEMENT_NODE&&(customElements.get(i.localName)||i.children.length>0)||i.textContent&&i.textContent.trim()!=="":!1}__notifyChange(i){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(i),node:i}}))}__updateNodeId(i){const e=!this.nodes||i===this.nodes[0];i.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!i.id&&(i.id=this.defaultId)}}/**
3378
3378
  * @license
3379
3379
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3380
3380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3381
- */class em extends To{constructor(i){super(i,"error-message","div")}setErrorMessage(i){this.errorMessage=i,this.updateDefaultNode(this.node)}setInvalid(i){this.invalid=i,this.updateDefaultNode(this.node)}initAddedNode(i){i!==this.defaultNode&&this.initCustomNode(i)}initNode(i){this.updateDefaultNode(i)}initCustomNode(i){i.textContent&&!this.errorMessage&&(this.errorMessage=i.textContent.trim()),super.initCustomNode(i)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(i){const{errorMessage:e,invalid:r}=this,o=!!(r&&e&&e.trim()!=="");i&&(i.textContent=o?e:"",i.hidden=!o,o&&Qp(e,{mode:"assertive"})),super.updateDefaultNode(i)}}/**
3381
+ */class tm extends Po{constructor(i){super(i,"error-message","div")}setErrorMessage(i){this.errorMessage=i,this.updateDefaultNode(this.node)}setInvalid(i){this.invalid=i,this.updateDefaultNode(this.node)}initAddedNode(i){i!==this.defaultNode&&this.initCustomNode(i)}initNode(i){this.updateDefaultNode(i)}initCustomNode(i){i.textContent&&!this.errorMessage&&(this.errorMessage=i.textContent.trim()),super.initCustomNode(i)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(i){const{errorMessage:e,invalid:r}=this,o=!!(r&&e&&e.trim()!=="");i&&(i.textContent=o?e:"",i.hidden=!o,o&&em(e,{mode:"assertive"})),super.updateDefaultNode(i)}}/**
3382
3382
  * @license
3383
3383
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3384
3384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3385
- */class tm extends To{constructor(i){super(i,"helper",null)}setHelperText(i){this.helperText=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:i}=this;if(i&&i.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.helperText),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3385
+ */class im extends Po{constructor(i){super(i,"helper",null)}setHelperText(i){this.helperText=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:i}=this;if(i&&i.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.helperText),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3386
3386
  * @license
3387
3387
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3388
3388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3389
- */class im extends To{constructor(i){super(i,"label","label")}setLabel(i){this.label=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:i}=this;if(i&&i.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.label),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3389
+ */class rm extends Po{constructor(i){super(i,"label","label")}setLabel(i){this.label=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:i}=this;if(i&&i.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.label),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3390
3390
  * @license
3391
3391
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3392
3392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3393
- */const rm=ie(t=>class extends Tt(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new im(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)}});/**
3393
+ */const om=ie(t=>class extends Ct(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new rm(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)}});/**
3394
3394
  * @license
3395
3395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3396
3396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3398,36 +3398,36 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3398
3398
  * @license
3399
3399
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3400
3400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3401
- */const om=t=>class extends el(rm(Tt(t))){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 Zp(this),this._helperController=new tm(this),this._errorController=new em(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:r,node:o}=e.detail;this.__labelChanged(r,o)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:o}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,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,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.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 r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3401
+ */const nm=t=>class extends el(om(Ct(t))){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 Qp(this),this._helperController=new im(this),this._errorController=new tm(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:r,node:o}=e.detail;this.__labelChanged(r,o)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:o}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,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,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.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 r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3402
3402
  * @license
3403
3403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3404
3404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3405
- */const nm=ie(t=>class extends t{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((r,o)=>{this._delegateAttribute(r,e[o])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,o)=>{this._delegateProperty(r,e[o])})}_delegateAttribute(e,r){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){this.stateTarget&&(this.stateTarget[e]=r)}});/**
3405
+ */const sm=ie(t=>class extends t{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((r,o)=>{this._delegateAttribute(r,e[o])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,o)=>{this._delegateProperty(r,e[o])})}_delegateAttribute(e,r){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){this.stateTarget&&(this.stateTarget[e]=r)}});/**
3406
3406
  * @license
3407
3407
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3408
3408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3409
- */const tl=ie(t=>class extends nm(el(Ja(t))){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(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...r){if(!e)return;const o=this._hasValidConstraints(r),n=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():n&&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}});/**
3409
+ */const tl=ie(t=>class extends sm(el(Ja(t))){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(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...r){if(!e)return;const o=this._hasValidConstraints(r),n=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():n&&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}});/**
3410
3410
  * @license
3411
3411
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3412
3412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3413
- */const sm=t=>class extends qp(Ka(tl(om(Xp(Bi(t)))))){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[`
3413
+ */const am=t=>class extends Xp(Ka(tl(nm(Kp(Fi(t)))))){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[`
3414
3414
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3415
3415
  font: inherit;
3416
3416
  color: inherit;
3417
3417
  }
3418
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=yt.debounce(this._preventInputDebouncer,Si.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const r=e.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const r=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(r){console.error(r)}}};/**
3418
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=vt.debounce(this._preventInputDebouncer,Ai.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const r=e.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const r=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(r){console.error(r)}}};/**
3419
3419
  * @license
3420
3420
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3421
3421
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3422
- */class am extends We{constructor(i,e,r={}){const{uniqueIdPrefix:o}=r;super(i,"input","input",{initializer:(n,s)=>{s.value&&(n.value=s.value),s.type&&n.setAttribute("type",s.type),n.id=this.defaultId,typeof e=="function"&&e(n)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
3422
+ */class lm extends We{constructor(i,e,r={}){const{uniqueIdPrefix:o}=r;super(i,"input","input",{initializer:(n,s)=>{s.value&&(n.value=s.value),s.type&&n.setAttribute("type",s.type),n.id=this.defaultId,typeof e=="function"&&e(n)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
3423
3423
  * @license
3424
3424
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3425
3425
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3426
- */class lm{constructor(i,e){this.input=i,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(e.node)}__initLabel(i){i&&(i.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&i.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const i=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",i)};this.input.addEventListener("click",i)}}/**
3426
+ */class um{constructor(i,e){this.input=i,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(e.node)}__initLabel(i){i&&(i.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&i.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const i=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",i)};this.input.addEventListener("click",i)}}/**
3427
3427
  * @license
3428
3428
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3429
3429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3430
- */const um=F`
3430
+ */const cm=F`
3431
3431
  [part='clear-button'] {
3432
3432
  display: none;
3433
3433
  cursor: default;
@@ -3444,7 +3444,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3444
3444
  * @license
3445
3445
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3446
3446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3447
- */const cm=F`
3447
+ */const dm=F`
3448
3448
  :host {
3449
3449
  display: inline-flex;
3450
3450
  outline: none;
@@ -3482,7 +3482,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3482
3482
  * @license
3483
3483
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3484
3484
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3485
- */const dm=F`
3485
+ */const hm=F`
3486
3486
  [class$='container'] {
3487
3487
  display: flex;
3488
3488
  flex-direction: column;
@@ -3494,23 +3494,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3494
3494
  * @license
3495
3495
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3496
3496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3497
- */const hm=[cm,dm,um];/**
3497
+ */const fm=[dm,hm,cm];/**
3498
3498
  * @license
3499
3499
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3500
3500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3501
- */const fm=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,r){if(!r||e===void 0)return;const{classList:o}=r;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&o.remove(...s)}const n=typeof e=="string"?e.split(" ").filter(Boolean):[];n.length>0&&o.add(...n),this.__previousClasses=n}};/**
3501
+ */const pm=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,r){if(!r||e===void 0)return;const{classList:o}=r;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&o.remove(...s)}const n=typeof e=="string"?e.split(" ").filter(Boolean):[];n.length>0&&o.add(...n),this.__previousClasses=n}};/**
3502
3502
  * @license
3503
3503
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3504
3504
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3505
- */class pm{constructor(i){this.host=i,i.addEventListener("opened-changed",()=>{i.opened||this.__setVirtualKeyboardEnabled(!1)}),i.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),i.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(i){this.host.inputElement&&(this.host.inputElement.inputMode=i?"":"none")}}/**
3505
+ */class mm{constructor(i){this.host=i,i.addEventListener("opened-changed",()=>{i.opened||this.__setVirtualKeyboardEnabled(!1)}),i.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),i.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(i){this.host.inputElement&&(this.host.inputElement.inputMode=i?"":"none")}}/**
3506
3506
  * @license
3507
3507
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3508
3508
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3509
- */const mm=t=>class extends fm(Tt(Ka(tl(Bi(t))))){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 r=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return[e.month+1,e.day,r].join("/")},parseDate(e){const r=e.split("/"),o=new Date;let n,s=o.getMonth(),a=o.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,n=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?It(this.referenceDate):new Date;a=mp(l,a,s,n)}}else r.length===2?(s=parseInt(r[0])-1,n=parseInt(r[1])):r.length===1&&(n=parseInt(r[0]));if(n!==void 0)return{day:n,month:s,year:a}},formatTitle:(e,r)=>`${e} ${r}`})},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:Ta},_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&&!po()&&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 Xa(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new pm(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 r=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close()}),r.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value}),r.addEventListener("click",o=>o.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(e);if(r&&(r=It(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(wo(e))}checkValidity(){const e=this._inputElementValue,r=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||xt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let n=!0;return this.inputElement&&(this.inputElement.checkValidity?n=this.inputElement.checkValidity():this.inputElement.validate&&(n=this.inputElement.validate())),r&&o&&n}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:r}=e;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!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,r,o,n,s,a){return!e||r&&(!a||s)||o&&s||!n.parseDate}_formatISO(e){return gp(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,r){e===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,r){e===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,r){const o=It(e);if(e&&!o){this.value=r;return}e?Le(this._selectedDate,o)||(this._selectedDate=o,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,r,o,n,s,a,l,u,c){e&&(e.i18n=r,e.label=o,e.minDate=n,e.maxDate=s,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=c)}__updateOverlayContentTheme(e,r){e&&(r?e.setAttribute("theme",r):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,r){e&&e.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const r=this._getInitialPosition();e.initialPosition=r;const o=e.focusedDate||r;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 n=this._nativeInput;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[n,e];this.__showOthers=Pa(s)}_getInitialPosition(){const e=It(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||xt(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?Ua(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",r=this.__parseDate(e);r?this.__commitDate(r):(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,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,r)}_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,Le(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return It(e)}};/**
3509
+ */const _m=t=>class extends pm(Ct(Ka(tl(Fi(t))))){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 r=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return[e.month+1,e.day,r].join("/")},parseDate(e){const r=e.split("/"),o=new Date;let n,s=o.getMonth(),a=o.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,n=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?Ot(this.referenceDate):new Date;a=_p(l,a,s,n)}}else r.length===2?(s=parseInt(r[0])-1,n=parseInt(r[1])):r.length===1&&(n=parseInt(r[0]));if(n!==void 0)return{day:n,month:s,year:a}},formatTitle:(e,r)=>`${e} ${r}`})},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:Ta},_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&&!_o()&&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 Xa(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new mm(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 r=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close()}),r.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value}),r.addEventListener("click",o=>o.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(e);if(r&&(r=Ot(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Eo(e))}checkValidity(){const e=this._inputElementValue,r=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||yt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let n=!0;return this.inputElement&&(this.inputElement.checkValidity?n=this.inputElement.checkValidity():this.inputElement.validate&&(n=this.inputElement.validate())),r&&o&&n}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:r}=e;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!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,r,o,n,s,a){return!e||r&&(!a||s)||o&&s||!n.parseDate}_formatISO(e){return bp(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,r){e===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,r){e===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,r){const o=Ot(e);if(e&&!o){this.value=r;return}e?He(this._selectedDate,o)||(this._selectedDate=o,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,r,o,n,s,a,l,u,c){e&&(e.i18n=r,e.label=o,e.minDate=n,e.maxDate=s,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=c)}__updateOverlayContentTheme(e,r){e&&(r?e.setAttribute("theme",r):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,r){e&&e.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const r=this._getInitialPosition();e.initialPosition=r;const o=e.focusedDate||r;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 n=this._nativeInput;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[n,e];this.__showOthers=Pa(s)}_getInitialPosition(){const e=Ot(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||yt(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?Ua(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",r=this.__parseDate(e);r?this.__commitDate(r):(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,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,r)}_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,He(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ot(e)}};/**
3510
3510
  * @license
3511
3511
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3512
3512
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3513
- */const _m=F`
3513
+ */const gm=F`
3514
3514
  :host([opened]) {
3515
3515
  pointer-events: auto;
3516
3516
  }
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  * @license
3528
3528
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */Z("vaadin-date-picker",[hm,_m],{moduleId:"vaadin-date-picker-styles"});class gm extends mm(sm(Ze(Ia(Ue)))){static get is(){return"vaadin-date-picker"}static get template(){return et`
3530
+ */Z("vaadin-date-picker",[fm,gm],{moduleId:"vaadin-date-picker-styles"});class bm extends _m(am(Ze(Ia(Ue)))){static get is(){return"vaadin-date-picker"}static get template(){return et`
3531
3531
  <div class="vaadin-date-picker-container">
3532
3532
  <div part="label">
3533
3533
  <slot name="label"></slot>
@@ -3569,4 +3569,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3569
3569
  ></vaadin-date-picker-overlay>
3570
3570
 
3571
3571
  <slot name="tooltip"></slot>
3572
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new am(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new lm(this.inputElement,this._labelController)),this._tooltipController=new La(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(i){i.detail.sourceEvent&&i.detail.sourceEvent.composedPath().includes(this)&&i.preventDefault()}_toggle(i){i.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(i){super._openedChanged(i),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}De(gm);function bm(t){cl(t,"svelte-1n3apnn",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{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)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function zn(t,i,e){const r=t.slice();return r[53]=i[e],r}function vm(t){let i,e,r,o,n=t[20]("titleSelfExclusion")+"",s,a,l,u,c=t[20]("selfExclusionText",{values:{operatorname:t[1],baseurl:t[3],lang:t[0]}})+"",d,h,f=t[20]("selfExclusionEmailText")+"",p,y,D,k,P,R,j,O,J,ce=t[20](`${t[13]}`)+"",Q,ee,I,N,me,Be,w,b,_,v,g,S,E,B=t[20]("save")+"",V,Y,W,re,_e,ge,ae=t[21]&&xm(t),ne=Mo(t[9]),$=[];for(let T=0;T<ne.length;T+=1)$[T]=Un(zn(t,ne,T));let G=t[16]&&jn(t);function Te(T,X){return T[15]?Sm:T[17]?wm:Em}let Se=Te(t),ye=Se(t),ke=t[22]&&Am(t);return{c(){i=C("div"),e=C("form"),ae&&ae.c(),r=K(),o=C("h2"),s=fe(n),a=K(),l=C("div"),u=C("p"),d=K(),h=C("p"),p=fe(f),y=K(),D=C("a"),k=fe(t[2]),R=K(),j=C("div"),O=C("div"),J=C("p"),Q=fe(ce),ee=K(),I=Ie("svg"),N=Ie("g"),me=Ie("path"),Be=K(),w=C("div");for(let T=0;T<$.length;T+=1)$[T].c();b=K(),G&&G.c(),_=K(),v=C("div"),ye.c(),g=K(),S=C("div"),E=C("button"),V=fe(B),re=K(),ke&&ke.c(),A(o,"class","PlayerSelfExclusionTitle "+(t[21]?"PlayerSelfExclusionTitleNone":"")),A(u,"class","SelfExclusionDescriptionText"),A(D,"href",P="mailto:"+t[2]),A(h,"class","SelfExclusionDescriptionText"),A(l,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(me,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),A(me,"stroke-linecap","round"),A(I,"xmlns","http://www.w3.org/2000/svg"),A(I,"xmlns:xlink","http://www.w3.org/1999/xlink"),A(I,"version","1.1"),A(I,"viewBox","0 0 100 100"),A(I,"xml:space","preserve"),A(I,"class","SelfExclusionConfigIcon"),it(I,"active",t[18]),A(O,"class","SelfExclusionConfigLabel"),A(w,"class","SelfExclusionDropDown"),it(w,"active",t[18]),A(j,"class","SelfExclusionConfigWrapper "+(t[21]?"SelfExclusionConfigWrapperMobile":"")),it(j,"active",t[18]),A(v,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(E,"class",Y="SelfExclusionSave "+(t[17]?"active":"")),E.disabled=W=!t[17],A(S,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(T,X){ve(T,i,X),m(i,e),ae&&ae.m(e,null),m(e,r),m(e,o),m(o,s),m(e,a),m(e,l),m(l,u),u.innerHTML=c,m(l,d),m(l,h),m(h,p),m(h,y),m(h,D),m(D,k),m(e,R),m(e,j),m(j,O),m(O,J),m(J,Q),m(O,ee),m(O,I),m(I,N),m(N,me),m(j,Be),m(j,w);for(let te=0;te<$.length;te+=1)$[te]&&$[te].m(w,null);m(e,b),G&&G.m(e,null),m(e,_),m(e,v),ye.m(v,null),m(e,g),m(e,S),m(S,E),m(E,V),m(i,re),ke&&ke.m(i,null),_e||(ge=[mi(O,"click",t[34]),mi(E,"click",t[37])],_e=!0)},p(T,X){if(T[21]&&ae.p(T,X),X[0]&1048576&&n!==(n=T[20]("titleSelfExclusion")+"")&&we(s,n),X[0]&1048587&&c!==(c=T[20]("selfExclusionText",{values:{operatorname:T[1],baseurl:T[3],lang:T[0]}})+"")&&(u.innerHTML=c),X[0]&1048576&&f!==(f=T[20]("selfExclusionEmailText")+"")&&we(p,f),X[0]&4&&we(k,T[2]),X[0]&4&&P!==(P="mailto:"+T[2])&&A(D,"href",P),X[0]&1056768&&ce!==(ce=T[20](`${T[13]}`)+"")&&we(Q,ce),X[0]&262144&&it(I,"active",T[18]),X[0]&17826304){ne=Mo(T[9]);let te;for(te=0;te<ne.length;te+=1){const x=zn(T,ne,te);$[te]?$[te].p(x,X):($[te]=Un(x),$[te].c(),$[te].m(w,null))}for(;te<$.length;te+=1)$[te].d(1);$.length=ne.length}X[0]&262144&&it(w,"active",T[18]),X[0]&262144&&it(j,"active",T[18]),T[16]?G?G.p(T,X):(G=jn(T),G.c(),G.m(e,_)):G&&(G.d(1),G=null),Se===(Se=Te(T))&&ye?ye.p(T,X):(ye.d(1),ye=Se(T),ye&&(ye.c(),ye.m(v,null))),X[0]&1048576&&B!==(B=T[20]("save")+"")&&we(V,B),X[0]&131072&&Y!==(Y="SelfExclusionSave "+(T[17]?"active":""))&&A(E,"class",Y),X[0]&131072&&W!==(W=!T[17])&&(E.disabled=W),T[22]&&ke.p(T,X)},d(T){T&&pe(i),ae&&ae.d(),fl($,T),G&&G.d(),ye.d(),ke&&ke.d(),_e=!1,wt(ge)}}}function ym(t){let i,e,r,o,n,s,a,l,u,c,d,h,f,p,y,D,k,P,R,j,O;function J(ee,I){return ee[21]?Tm:Cm}let Q=J(t)(t);return{c(){i=C("div"),e=C("div"),Q.c(),r=K(),o=C("div"),n=C("ui-skeleton"),s=K(),a=C("div"),l=K(),u=C("ui-skeleton"),c=K(),d=C("div"),h=K(),f=C("div"),p=C("ui-skeleton"),y=K(),D=C("div"),k=K(),P=C("ui-skeleton"),R=K(),j=C("div"),O=C("ui-skeleton"),M(n,"structure","text"),M(n,"height",t[21]?"15px":"20px"),M(n,"rows","6"),M(n,"width","100%"),Fi(a,"height",t[21]?"10px":"20px"),M(u,"structure","text"),M(u,"height",t[21]?"15px":"20px"),M(u,"width","30%"),Fi(d,"height","10px"),A(o,"class","SelfExclusionDescription"),M(p,"structure","rectangle"),M(p,"width",t[21]?"100%":"50%"),M(p,"height",t[21]?"30px":"44px"),Fi(D,"height",t[21]?"15px":"20px"),M(P,"structure","text"),M(P,"height",t[21]?"15px":"20px"),M(P,"width","30%"),A(f,"class","SelfExclusionConfig"),M(O,"structure","rectangle"),M(O,"width","100%"),M(O,"height",t[21]?"35px":"50px"),A(j,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(ee,I){ve(ee,i,I),m(i,e),Q.m(e,null),m(e,r),m(e,o),m(o,n),m(o,s),m(o,a),m(o,l),m(o,u),m(o,c),m(o,d),m(e,h),m(e,f),m(f,p),m(f,y),m(f,D),m(f,k),m(f,P),m(e,R),m(e,j),m(j,O)},p:Ee,d(ee){ee&&pe(i),Q.d()}}}function xm(t){let i,e,r,o,n,s,a,l,u,c,d=t[20]("titleSelfExclusion")+"",h,f,p;return{c(){i=C("div"),e=Ie("svg"),r=Ie("defs"),o=Ie("style"),n=fe(".aaa{fill:var(--emw--color-primary, #22B04E);}"),s=Ie("g"),a=Ie("g"),l=Ie("path"),u=K(),c=C("h2"),h=fe(d),A(l,"class","aaa"),A(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),A(l,"transform","translate(15 15) rotate(180)"),A(a,"transform","translate(20 158)"),A(s,"transform","translate(-20 -158)"),A(e,"xmlns","http://www.w3.org/2000/svg"),A(e,"width","15"),A(e,"height","15"),A(e,"viewBox","0 0 15 15"),A(c,"class","PlayerSelfExclusionTitleMobile"),A(i,"class","MenuReturnButton")},m(y,D){ve(y,i,D),m(i,e),m(e,r),m(r,o),m(o,n),m(e,s),m(s,a),m(a,l),m(i,u),m(i,c),m(c,h),f||(p=mi(i,"click",t[33]),f=!0)},p(y,D){D[0]&1048576&&d!==(d=y[20]("titleSelfExclusion")+"")&&we(h,d)},d(y){y&&pe(i),f=!1,p()}}}function Un(t){let i,e=t[20](`${t[53].key}`)+"",r,o,n;function s(){return t[35](t[53])}return{c(){i=C("div"),r=fe(e)},m(a,l){ve(a,i,l),m(i,r),o||(n=mi(i,"click",s),o=!0)},p(a,l){t=a,l[0]&1049088&&e!==(e=t[20](`${t[53].key}`)+"")&&we(r,e)},d(a){a&&pe(i),o=!1,n()}}}function jn(t){let i,e,r=t[20]("duration")+"",o,n,s,a=t[20]("dateInstructions")+"",l,u,c,d,h;return{c(){i=C("div"),e=C("label"),o=fe(r),n=K(),s=C("span"),l=fe(a),u=K(),c=C("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",d=K(),h=C("vaadin-date-picker"),A(e,"for","SelfExclusionDate"),A(s,"class","SelfExclusionDateInstructions"),M(h,"min",t[10]),M(h,"max",t[11]),M(h,"value",t[10]),A(i,"class","SelfExclusionDateWrapper "+(t[21]?"SelfExclusionDateWrapperMobile":""))},m(f,p){ve(f,i,p),m(i,e),m(e,o),m(i,n),m(i,s),m(s,l),m(s,u),m(s,c),m(i,d),m(i,h),t[36](h)},p(f,p){p[0]&1048576&&r!==(r=f[20]("duration")+"")&&we(o,r),p[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&we(l,a),p[0]&1024&&M(h,"min",f[10]),p[0]&2048&&M(h,"max",f[11]),p[0]&1024&&M(h,"value",f[10])},d(f){f&&pe(i),t[36](null)}}}function wm(t){let i,e,r=t[20]("temporarySelfExclusion",{values:{date:t[12]}})+"",o;return{c(){i=C("p"),e=C("strong"),o=fe(r),A(i,"class","SelfExclusionDescriptionText")},m(n,s){ve(n,i,s),m(i,e),m(e,o)},p(n,s){s[0]&1052672&&r!==(r=n[20]("temporarySelfExclusion",{values:{date:n[12]}})+"")&&we(o,r)},d(n){n&&pe(i)}}}function Em(t){let i,e,r=t[20]("noPeriodSelected")+"",o;return{c(){i=C("p"),e=C("strong"),o=fe(r),A(i,"class","SelfExclusionDescriptionText")},m(n,s){ve(n,i,s),m(i,e),m(e,o)},p(n,s){s[0]&1048576&&r!==(r=n[20]("noPeriodSelected")+"")&&we(o,r)},d(n){n&&pe(i)}}}function Sm(t){let i,e,r=t[20]("permanentSelfExclusion")+"",o;return{c(){i=C("p"),e=C("strong"),o=fe(r),A(i,"class","SelfExclusionDescriptionText")},m(n,s){ve(n,i,s),m(i,e),m(e,o)},p(n,s){s[0]&1048576&&r!==(r=n[20]("permanentSelfExclusion")+"")&&we(o,r)},d(n){n&&pe(i)}}}function Am(t){let i,e,r;return{c(){i=C("player-account-modal"),e=C("player-account-general-confirmation-modal"),M(e,"modaltitle",r=t[20]("confirmationModalTitle")),M(e,"modaltext",t[14]),M(e,"hascancelbutton",!1),M(e,"modalconfirmevent",{type:"setSelfExclusion"}),M(e,"mbsource",t[6]),M(e,"lang",t[0]),M(i,"clientstyling",t[4]),M(i,"clientstylingurl",t[5]),M(i,"mbsource",t[6]),M(i,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(o,n){ve(o,i,n),m(i,e)},p(o,n){n[0]&1048576&&r!==(r=o[20]("confirmationModalTitle"))&&M(e,"modaltitle",r),n[0]&16384&&M(e,"modaltext",o[14]),n[0]&64&&M(e,"mbsource",o[6]),n[0]&1&&M(e,"lang",o[0]),n[0]&16&&M(i,"clientstyling",o[4]),n[0]&32&&M(i,"clientstylingurl",o[5]),n[0]&64&&M(i,"mbsource",o[6])},d(o){o&&pe(i)}}}function Cm(t){let i;return{c(){i=C("ui-skeleton"),M(i,"structure","title"),M(i,"width","100px"),M(i,"margin-top","20px"),M(i,"margin-bottom","20px")},m(e,r){ve(e,i,r)},d(e){e&&pe(i)}}}function Tm(t){let i;return{c(){i=C("div"),i.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',A(i,"class","MenuReturnButton")},m(e,r){ve(e,i,r)},d(e){e&&pe(i)}}}function Pm(t){let i;function e(n,s){return n[19]?ym:vm}let r=e(t),o=r(t);return{c(){i=C("div"),o.c()},m(n,s){ve(n,i,s),o.m(i,null),t[38](i)},p(n,s){r===(r=e(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(i,null)))},i:Ee,o:Ee,d(n){n&&pe(i),o.d(),t[38](null)}}}function Dm(t,i,e){let r;ul(t,Mc,x=>e(20,r=x));let{endpoint:o="",session:n="",userid:s="",lang:a="en",gmversion:l="",operator:u="Everymatrix",supportemail:c="",baseurl:d="",clientstyling:h="",clientstylingurl:f="",mbsource:p,translationurl:y="",hasconfirmationmodal:D="false"}=i,k,P,R=[],j={},O=window.navigator.userAgent,J,ce,Q="",ee="",I="selectAPeriod",N="",me="",Be=Oc(O)!=="PC",w=!1,b=!1,_=!1,v=!1,g=D==="true",S=!0;const E=()=>{fetch(y).then(Ae=>Ae.json()).then(Ae=>{Object.keys(Ae).forEach(de=>{Zo(de,Ae[de])})}).catch(Ae=>{console.log(Ae)})};Object.keys(Qo).forEach(x=>{Zo(x,Qo[x])});const B=()=>{let x=new URL(`${o}/v1/player/selfExclusionSettings`);fetch(x,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(de=>Y(de)).then(de=>{e(9,R=de.periods)}).catch(de=>{console.log(de)}).finally(()=>{e(19,S=!1)})},V=x=>{x.data.type==="setSelfExclusion"&&ae()},Y=x=>tt(this,null,function*(){if(x.status>=300)j=yield x.json(),me=j.thirdPartyResponse.errorCode,console.error(r(me||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:r(me||"generalError")}},window.location.href);else return x.json()}),W=()=>{e(18,v=!v)},re=x=>{switch(ee=x.text,e(13,I=x.key),e(17,_=!0),e(18,v=!1),e(15,w=!1),e(16,b=!1),ee){case"Until":e(16,b=!0),e(10,J=qi().add(6,"months").format("YYYY-MM-DD")),e(11,ce=qi().add(5,"years").format("YYYY-MM-DD")),e(12,Q=J);break;case"Permanent":e(15,w=!w);break;default:const[Ae,de]=ee.split(" "),Ve=de.includes("Day")?"days":de.includes("Month")?"months":de.includes("Year")?"years":null;if(!Ve)return;e(12,Q=qi().add(Number(Ae),Ve).format("YYYY-MM-DD"));break}g&&_e()},_e=()=>{if(!g||!ee||!Q){e(14,N="");return}e(14,N=b?r("confirmationModalTextUntil",{values:{date:Q}}):r("confirmationModalTextPeriod",{values:{period:r(ee)}}))},ge=x=>{x.preventDefault(),g?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):ae()},ae=()=>{e(19,S=!0);let x=new URL(`/v2/player/${s}/limits${l==="gm16"?"/session":""}`,o),Ae={selfExclusion:{period:I,expiryDate:Q,selfExclusionReason:"UserRequest"}},de={method:"PUT",headers:{"X-SessionID":n,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(Ae)};fetch(x.href,de).then(Ve=>Y(Ve)).then(Ve=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:r("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ve=>{console.error(r("errorSelfExclusionCall"),Ve),window.postMessage({type:"WidgetNotification",data:{type:"error",message:r("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,S=!1)})},ne=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:Be},window.location.href)},$=x=>{e(12,Q=x.target.value)},G=()=>{P.addEventListener("change",$,!1)};gl(()=>(window.addEventListener("message",V,!1),()=>{P.removeEventListener("change",$),window.removeEventListener("message",V)}));const Te=()=>{Nc(a)},Se=()=>ne(),ye=()=>W(),ke=x=>re(x);function T(x){_i[x?"unshift":"push"](()=>{P=x,e(8,P)})}const X=x=>ge(x);function te(x){_i[x?"unshift":"push"](()=>{k=x,e(7,k)})}return t.$$set=x=>{"endpoint"in x&&e(27,o=x.endpoint),"session"in x&&e(28,n=x.session),"userid"in x&&e(29,s=x.userid),"lang"in x&&e(0,a=x.lang),"gmversion"in x&&e(30,l=x.gmversion),"operator"in x&&e(1,u=x.operator),"supportemail"in x&&e(2,c=x.supportemail),"baseurl"in x&&e(3,d=x.baseurl),"clientstyling"in x&&e(4,h=x.clientstyling),"clientstylingurl"in x&&e(5,f=x.clientstylingurl),"mbsource"in x&&e(6,p=x.mbsource),"translationurl"in x&&e(31,y=x.translationurl),"hasconfirmationmodal"in x&&e(32,D=x.hasconfirmationmodal)},t.$$.update=()=>{t.$$.dirty[0]&1&&a&&Te(),t.$$.dirty[0]&2013265920&&o&&n&&s&&l&&B(),t.$$.dirty[0]&256&&P&&G(),t.$$.dirty[0]&144&&h&&k&&Lc(k,h),t.$$.dirty[0]&160&&f&&k&&Hc(k,f),t.$$.dirty[0]&192&&p&&k&&Bc(k,`${p}.Style`),t.$$.dirty[1]&1&&y&&E()},g&&_e(),[a,u,c,d,h,f,p,k,P,R,J,ce,Q,I,N,w,b,_,v,S,r,Be,g,W,re,ge,ne,o,n,s,l,y,D,Se,ye,ke,T,X,te]}class il extends Dl{constructor(i){super(),Tl(this,i,Dm,Pm,Jn,{endpoint:27,session:28,userid:29,lang:0,gmversion:30,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:31,hasconfirmationmodal:32},bm,[-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(i){this.$$set({endpoint:i}),le()}get session(){return this.$$.ctx[28]}set session(i){this.$$set({session:i}),le()}get userid(){return this.$$.ctx[29]}set userid(i){this.$$set({userid:i}),le()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),le()}get gmversion(){return this.$$.ctx[30]}set gmversion(i){this.$$set({gmversion:i}),le()}get operator(){return this.$$.ctx[1]}set operator(i){this.$$set({operator:i}),le()}get supportemail(){return this.$$.ctx[2]}set supportemail(i){this.$$set({supportemail:i}),le()}get baseurl(){return this.$$.ctx[3]}set baseurl(i){this.$$set({baseurl:i}),le()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(i){this.$$set({clientstyling:i}),le()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),le()}get mbsource(){return this.$$.ctx[6]}set mbsource(i){this.$$set({mbsource:i}),le()}get translationurl(){return this.$$.ctx[31]}set translationurl(i){this.$$set({translationurl:i}),le()}get hasconfirmationmodal(){return this.$$.ctx[32]}set hasconfirmationmodal(i){this.$$set({hasconfirmationmodal:i}),le()}}Pl(il,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=il;
3572
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new lm(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new um(this.inputElement,this._labelController)),this._tooltipController=new La(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(i){i.detail.sourceEvent&&i.detail.sourceEvent.composedPath().includes(this)&&i.preventDefault()}_toggle(i){i.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(i){super._openedChanged(i),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ke(bm);function vm(t){cl(t,"svelte-1n3apnn",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{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)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function Un(t,i,e){const r=t.slice();return r[53]=i[e],r}function ym(t){let i,e,r,o,n=t[20]("titleSelfExclusion")+"",s,a,l,u,c=t[20]("selfExclusionText",{values:{operatorname:t[1],baseurl:t[3],lang:t[0]}})+"",d,h,f=t[20]("selfExclusionEmailText")+"",p,y,D,k,P,R,U,O,K,ce=t[20](`${t[13]}`)+"",Q,ee,I,N,me,Be,w,b,_,v,g,S,E,B=t[20]("save")+"",j,V,G,re,_e,ge,ae=t[21]&&wm(t),ne=Oo(t[9]),$=[];for(let T=0;T<ne.length;T+=1)$[T]=jn(Un(t,ne,T));let Y=t[16]&&Vn(t);function Te(T,q){return T[15]?Am:T[17]?Em:Sm}let Se=Te(t),ye=Se(t),Me=t[22]&&Cm(t);return{c(){i=C("div"),e=C("form"),ae&&ae.c(),r=X(),o=C("h2"),s=fe(n),a=X(),l=C("div"),u=C("p"),d=X(),h=C("p"),p=fe(f),y=X(),D=C("a"),k=fe(t[2]),R=X(),U=C("div"),O=C("div"),K=C("p"),Q=fe(ce),ee=X(),I=Ne("svg"),N=Ne("g"),me=Ne("path"),Be=X(),w=C("div");for(let T=0;T<$.length;T+=1)$[T].c();b=X(),Y&&Y.c(),_=X(),v=C("div"),ye.c(),g=X(),S=C("div"),E=C("button"),j=fe(B),re=X(),Me&&Me.c(),A(o,"class","PlayerSelfExclusionTitle "+(t[21]?"PlayerSelfExclusionTitleNone":"")),A(u,"class","SelfExclusionDescriptionText"),A(D,"href",P="mailto:"+t[2]),A(h,"class","SelfExclusionDescriptionText"),A(l,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(me,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),A(me,"stroke-linecap","round"),A(I,"xmlns","http://www.w3.org/2000/svg"),A(I,"xmlns:xlink","http://www.w3.org/1999/xlink"),A(I,"version","1.1"),A(I,"viewBox","0 0 100 100"),A(I,"xml:space","preserve"),A(I,"class","SelfExclusionConfigIcon"),it(I,"active",t[18]),A(O,"class","SelfExclusionConfigLabel"),A(w,"class","SelfExclusionDropDown"),it(w,"active",t[18]),A(U,"class","SelfExclusionConfigWrapper "+(t[21]?"SelfExclusionConfigWrapperMobile":"")),it(U,"active",t[18]),A(v,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(E,"class",V="SelfExclusionSave "+(t[17]?"active":"")),E.disabled=G=!t[17],A(S,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(T,q){ve(T,i,q),m(i,e),ae&&ae.m(e,null),m(e,r),m(e,o),m(o,s),m(e,a),m(e,l),m(l,u),u.innerHTML=c,m(l,d),m(l,h),m(h,p),m(h,y),m(h,D),m(D,k),m(e,R),m(e,U),m(U,O),m(O,K),m(K,Q),m(O,ee),m(O,I),m(I,N),m(N,me),m(U,Be),m(U,w);for(let te=0;te<$.length;te+=1)$[te]&&$[te].m(w,null);m(e,b),Y&&Y.m(e,null),m(e,_),m(e,v),ye.m(v,null),m(e,g),m(e,S),m(S,E),m(E,j),m(i,re),Me&&Me.m(i,null),_e||(ge=[mi(O,"click",t[34]),mi(E,"click",t[37])],_e=!0)},p(T,q){if(T[21]&&ae.p(T,q),q[0]&1048576&&n!==(n=T[20]("titleSelfExclusion")+"")&&we(s,n),q[0]&1048587&&c!==(c=T[20]("selfExclusionText",{values:{operatorname:T[1],baseurl:T[3],lang:T[0]}})+"")&&(u.innerHTML=c),q[0]&1048576&&f!==(f=T[20]("selfExclusionEmailText")+"")&&we(p,f),q[0]&4&&we(k,T[2]),q[0]&4&&P!==(P="mailto:"+T[2])&&A(D,"href",P),q[0]&1056768&&ce!==(ce=T[20](`${T[13]}`)+"")&&we(Q,ce),q[0]&262144&&it(I,"active",T[18]),q[0]&17826304){ne=Oo(T[9]);let te;for(te=0;te<ne.length;te+=1){const x=Un(T,ne,te);$[te]?$[te].p(x,q):($[te]=jn(x),$[te].c(),$[te].m(w,null))}for(;te<$.length;te+=1)$[te].d(1);$.length=ne.length}q[0]&262144&&it(w,"active",T[18]),q[0]&262144&&it(U,"active",T[18]),T[16]?Y?Y.p(T,q):(Y=Vn(T),Y.c(),Y.m(e,_)):Y&&(Y.d(1),Y=null),Se===(Se=Te(T))&&ye?ye.p(T,q):(ye.d(1),ye=Se(T),ye&&(ye.c(),ye.m(v,null))),q[0]&1048576&&B!==(B=T[20]("save")+"")&&we(j,B),q[0]&131072&&V!==(V="SelfExclusionSave "+(T[17]?"active":""))&&A(E,"class",V),q[0]&131072&&G!==(G=!T[17])&&(E.disabled=G),T[22]&&Me.p(T,q)},d(T){T&&pe(i),ae&&ae.d(),fl($,T),Y&&Y.d(),ye.d(),Me&&Me.d(),_e=!1,xt(ge)}}}function xm(t){let i,e,r,o,n,s,a,l,u,c,d,h,f,p,y,D,k,P,R,U,O;function K(ee,I){return ee[21]?Pm:Tm}let Q=K(t)(t);return{c(){i=C("div"),e=C("div"),Q.c(),r=X(),o=C("div"),n=C("ui-skeleton"),s=X(),a=C("div"),l=X(),u=C("ui-skeleton"),c=X(),d=C("div"),h=X(),f=C("div"),p=C("ui-skeleton"),y=X(),D=C("div"),k=X(),P=C("ui-skeleton"),R=X(),U=C("div"),O=C("ui-skeleton"),M(n,"structure","text"),M(n,"height",t[21]?"15px":"20px"),M(n,"rows","6"),M(n,"width","100%"),zi(a,"height",t[21]?"10px":"20px"),M(u,"structure","text"),M(u,"height",t[21]?"15px":"20px"),M(u,"width","30%"),zi(d,"height","10px"),A(o,"class","SelfExclusionDescription"),M(p,"structure","rectangle"),M(p,"width",t[21]?"100%":"50%"),M(p,"height",t[21]?"30px":"44px"),zi(D,"height",t[21]?"15px":"20px"),M(P,"structure","text"),M(P,"height",t[21]?"15px":"20px"),M(P,"width","30%"),A(f,"class","SelfExclusionConfig"),M(O,"structure","rectangle"),M(O,"width","100%"),M(O,"height",t[21]?"35px":"50px"),A(U,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(ee,I){ve(ee,i,I),m(i,e),Q.m(e,null),m(e,r),m(e,o),m(o,n),m(o,s),m(o,a),m(o,l),m(o,u),m(o,c),m(o,d),m(e,h),m(e,f),m(f,p),m(f,y),m(f,D),m(f,k),m(f,P),m(e,R),m(e,U),m(U,O)},p:Ee,d(ee){ee&&pe(i),Q.d()}}}function wm(t){let i,e,r,o,n,s,a,l,u,c,d=t[20]("titleSelfExclusion")+"",h,f,p;return{c(){i=C("div"),e=Ne("svg"),r=Ne("defs"),o=Ne("style"),n=fe(".aaa{fill:var(--emw--color-primary, #22B04E);}"),s=Ne("g"),a=Ne("g"),l=Ne("path"),u=X(),c=C("h2"),h=fe(d),A(l,"class","aaa"),A(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),A(l,"transform","translate(15 15) rotate(180)"),A(a,"transform","translate(20 158)"),A(s,"transform","translate(-20 -158)"),A(e,"xmlns","http://www.w3.org/2000/svg"),A(e,"width","15"),A(e,"height","15"),A(e,"viewBox","0 0 15 15"),A(c,"class","PlayerSelfExclusionTitleMobile"),A(i,"class","MenuReturnButton")},m(y,D){ve(y,i,D),m(i,e),m(e,r),m(r,o),m(o,n),m(e,s),m(s,a),m(a,l),m(i,u),m(i,c),m(c,h),f||(p=mi(i,"click",t[33]),f=!0)},p(y,D){D[0]&1048576&&d!==(d=y[20]("titleSelfExclusion")+"")&&we(h,d)},d(y){y&&pe(i),f=!1,p()}}}function jn(t){let i,e=t[20](`${t[53].key}`)+"",r,o,n;function s(){return t[35](t[53])}return{c(){i=C("div"),r=fe(e)},m(a,l){ve(a,i,l),m(i,r),o||(n=mi(i,"click",s),o=!0)},p(a,l){t=a,l[0]&1049088&&e!==(e=t[20](`${t[53].key}`)+"")&&we(r,e)},d(a){a&&pe(i),o=!1,n()}}}function Vn(t){let i,e,r=t[20]("duration")+"",o,n,s,a=t[20]("dateInstructions")+"",l,u,c,d,h;return{c(){i=C("div"),e=C("label"),o=fe(r),n=X(),s=C("span"),l=fe(a),u=X(),c=C("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",d=X(),h=C("vaadin-date-picker"),A(e,"for","SelfExclusionDate"),A(s,"class","SelfExclusionDateInstructions"),M(h,"min",t[10]),M(h,"max",t[11]),M(h,"value",t[10]),A(i,"class","SelfExclusionDateWrapper "+(t[21]?"SelfExclusionDateWrapperMobile":""))},m(f,p){ve(f,i,p),m(i,e),m(e,o),m(i,n),m(i,s),m(s,l),m(s,u),m(s,c),m(i,d),m(i,h),t[36](h)},p(f,p){p[0]&1048576&&r!==(r=f[20]("duration")+"")&&we(o,r),p[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&we(l,a),p[0]&1024&&M(h,"min",f[10]),p[0]&2048&&M(h,"max",f[11]),p[0]&1024&&M(h,"value",f[10])},d(f){f&&pe(i),t[36](null)}}}function Em(t){let i,e,r=t[20]("temporarySelfExclusion",{values:{date:t[12]}})+"",o;return{c(){i=C("p"),e=C("strong"),o=fe(r),A(i,"class","SelfExclusionDescriptionText")},m(n,s){ve(n,i,s),m(i,e),m(e,o)},p(n,s){s[0]&1052672&&r!==(r=n[20]("temporarySelfExclusion",{values:{date:n[12]}})+"")&&we(o,r)},d(n){n&&pe(i)}}}function Sm(t){let i,e,r=t[20]("noPeriodSelected")+"",o;return{c(){i=C("p"),e=C("strong"),o=fe(r),A(i,"class","SelfExclusionDescriptionText")},m(n,s){ve(n,i,s),m(i,e),m(e,o)},p(n,s){s[0]&1048576&&r!==(r=n[20]("noPeriodSelected")+"")&&we(o,r)},d(n){n&&pe(i)}}}function Am(t){let i,e,r=t[20]("permanentSelfExclusion")+"",o;return{c(){i=C("p"),e=C("strong"),o=fe(r),A(i,"class","SelfExclusionDescriptionText")},m(n,s){ve(n,i,s),m(i,e),m(e,o)},p(n,s){s[0]&1048576&&r!==(r=n[20]("permanentSelfExclusion")+"")&&we(o,r)},d(n){n&&pe(i)}}}function Cm(t){let i,e,r;return{c(){i=C("player-account-modal"),e=C("player-account-general-confirmation-modal"),M(e,"modaltitle",r=t[20]("confirmationModalTitle")),M(e,"modaltext",t[14]),M(e,"hascancelbutton",!1),M(e,"modalconfirmevent",{type:"setSelfExclusion"}),M(e,"mbsource",t[6]),M(e,"lang",t[0]),M(i,"clientstyling",t[4]),M(i,"clientstylingurl",t[5]),M(i,"mbsource",t[6]),M(i,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(o,n){ve(o,i,n),m(i,e)},p(o,n){n[0]&1048576&&r!==(r=o[20]("confirmationModalTitle"))&&M(e,"modaltitle",r),n[0]&16384&&M(e,"modaltext",o[14]),n[0]&64&&M(e,"mbsource",o[6]),n[0]&1&&M(e,"lang",o[0]),n[0]&16&&M(i,"clientstyling",o[4]),n[0]&32&&M(i,"clientstylingurl",o[5]),n[0]&64&&M(i,"mbsource",o[6])},d(o){o&&pe(i)}}}function Tm(t){let i;return{c(){i=C("ui-skeleton"),M(i,"structure","title"),M(i,"width","100px"),M(i,"margin-top","20px"),M(i,"margin-bottom","20px")},m(e,r){ve(e,i,r)},d(e){e&&pe(i)}}}function Pm(t){let i;return{c(){i=C("div"),i.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',A(i,"class","MenuReturnButton")},m(e,r){ve(e,i,r)},d(e){e&&pe(i)}}}function Dm(t){let i;function e(n,s){return n[19]?xm:ym}let r=e(t),o=r(t);return{c(){i=C("div"),o.c()},m(n,s){ve(n,i,s),o.m(i,null),t[38](i)},p(n,s){r===(r=e(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(i,null)))},i:Ee,o:Ee,d(n){n&&pe(i),o.d(),t[38](null)}}}function km(t,i,e){let r;ul(t,Oc,x=>e(20,r=x));let{endpoint:o="",session:n="",userid:s="",lang:a="en",gmversion:l="",operator:u="Everymatrix",supportemail:c="",baseurl:d="",clientstyling:h="",clientstylingurl:f="",mbsource:p,translationurl:y="",hasconfirmationmodal:D="false"}=i,k,P,R=[],U={},O=window.navigator.userAgent,K,ce,Q="",ee="",I="selectAPeriod",N="",me="",Be=Ic(O)!=="PC",w=!1,b=!1,_=!1,v=!1,g=D==="true",S=!0;const E=()=>{fetch(y).then(Ae=>Ae.json()).then(Ae=>{Object.keys(Ae).forEach(de=>{Qo(de,Ae[de])})}).catch(Ae=>{console.log(Ae)})};Object.keys(en).forEach(x=>{Qo(x,en[x])});const B=()=>{let x=new URL(`${o}/v1/player/selfExclusionSettings`);fetch(x,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(de=>V(de)).then(de=>{e(9,R=de.periods)}).catch(de=>{console.log(de)}).finally(()=>{e(19,S=!1)})},j=x=>{x.data.type==="setSelfExclusion"&&ae()},V=x=>tt(this,null,function*(){if(x.status>=300)U=yield x.json(),me=U.thirdPartyResponse.errorCode,console.error(r(me||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:r(me||"generalError")}},window.location.href);else return x.json()}),G=()=>{e(18,v=!v)},re=x=>{switch(ee=x.text,e(13,I=x.key),e(17,_=!0),e(18,v=!1),e(15,w=!1),e(16,b=!1),ee){case"Until":e(16,b=!0),e(10,K=Ki().add(6,"months").format("YYYY-MM-DD")),e(11,ce=Ki().add(5,"years").format("YYYY-MM-DD")),e(12,Q=K);break;case"Permanent":e(15,w=!w);break;default:const[Ae,de]=ee.split(" "),Ve=de.includes("Day")?"days":de.includes("Month")?"months":de.includes("Year")?"years":null;if(!Ve)return;e(12,Q=Ki().add(Number(Ae),Ve).format("YYYY-MM-DD"));break}g&&_e()},_e=()=>{if(!g||!ee||!Q){e(14,N="");return}e(14,N=b?r("confirmationModalTextUntil",{values:{date:Q}}):r("confirmationModalTextPeriod",{values:{period:r(ee)}}))},ge=x=>{x.preventDefault(),g?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):ae()},ae=()=>{e(19,S=!0);let x=new URL(`/v2/player/${s}/limits${l==="gm16"?"/session":""}`,o),Ae={selfExclusion:{period:I,expiryDate:Q,selfExclusionReason:"UserRequest"}},de={method:"PUT",headers:{"X-SessionID":n,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(Ae)};fetch(x.href,de).then(Ve=>V(Ve)).then(Ve=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:r("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ve=>{console.error(r("errorSelfExclusionCall"),Ve),window.postMessage({type:"WidgetNotification",data:{type:"error",message:r("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,S=!1)})},ne=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:Be},window.location.href)},$=x=>{e(12,Q=x.target.value)},Y=()=>{P.addEventListener("change",$,!1)};gl(()=>(window.addEventListener("message",j,!1),()=>{P.removeEventListener("change",$),window.removeEventListener("message",j)}));const Te=()=>{Lc(a)},Se=()=>ne(),ye=()=>G(),Me=x=>re(x);function T(x){_i[x?"unshift":"push"](()=>{P=x,e(8,P)})}const q=x=>ge(x);function te(x){_i[x?"unshift":"push"](()=>{k=x,e(7,k)})}return t.$$set=x=>{"endpoint"in x&&e(27,o=x.endpoint),"session"in x&&e(28,n=x.session),"userid"in x&&e(29,s=x.userid),"lang"in x&&e(0,a=x.lang),"gmversion"in x&&e(30,l=x.gmversion),"operator"in x&&e(1,u=x.operator),"supportemail"in x&&e(2,c=x.supportemail),"baseurl"in x&&e(3,d=x.baseurl),"clientstyling"in x&&e(4,h=x.clientstyling),"clientstylingurl"in x&&e(5,f=x.clientstylingurl),"mbsource"in x&&e(6,p=x.mbsource),"translationurl"in x&&e(31,y=x.translationurl),"hasconfirmationmodal"in x&&e(32,D=x.hasconfirmationmodal)},t.$$.update=()=>{t.$$.dirty[0]&1&&a&&Te(),t.$$.dirty[0]&2013265920&&o&&n&&s&&l&&B(),t.$$.dirty[0]&256&&P&&Y(),t.$$.dirty[0]&144&&h&&k&&Hc(k,h),t.$$.dirty[0]&160&&f&&k&&Bc(k,f),t.$$.dirty[0]&192&&p&&k&&$c(k,`${p}.Style`),t.$$.dirty[1]&1&&y&&E()},g&&_e(),[a,u,c,d,h,f,p,k,P,R,K,ce,Q,I,N,w,b,_,v,S,r,Be,g,G,re,ge,ne,o,n,s,l,y,D,Se,ye,Me,T,q,te]}class il extends Dl{constructor(i){super(),Tl(this,i,km,Dm,Zn,{endpoint:27,session:28,userid:29,lang:0,gmversion:30,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:31,hasconfirmationmodal:32},vm,[-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(i){this.$$set({endpoint:i}),le()}get session(){return this.$$.ctx[28]}set session(i){this.$$set({session:i}),le()}get userid(){return this.$$.ctx[29]}set userid(i){this.$$set({userid:i}),le()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),le()}get gmversion(){return this.$$.ctx[30]}set gmversion(i){this.$$set({gmversion:i}),le()}get operator(){return this.$$.ctx[1]}set operator(i){this.$$set({operator:i}),le()}get supportemail(){return this.$$.ctx[2]}set supportemail(i){this.$$set({supportemail:i}),le()}get baseurl(){return this.$$.ctx[3]}set baseurl(i){this.$$set({baseurl:i}),le()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(i){this.$$set({clientstyling:i}),le()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),le()}get mbsource(){return this.$$.ctx[6]}set mbsource(i){this.$$set({mbsource:i}),le()}get translationurl(){return this.$$.ctx[31]}set translationurl(i){this.$$set({translationurl:i}),le()}get hasconfirmationmodal(){return this.$$.ctx[32]}set hasconfirmationmodal(i){this.$$set({hasconfirmationmodal:i}),le()}}Pl(il,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=il;