@everymatrix/general-player-forgot-password-form-nd 1.99.49 → 1.99.51

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,7 +1,7 @@
1
- "use strict";var ku=Object.defineProperty,Lu=Object.defineProperties;var Mu=Object.getOwnPropertyDescriptors;var xo=Object.getOwnPropertySymbols;var Bu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable;var Ci=(r,e,t)=>e in r?ku(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Ke=(r,e)=>{for(var t in e||(e={}))Bu.call(e,t)&&Ci(r,t,e[t]);if(xo)for(var t of xo(e))Ru.call(e,t)&&Ci(r,t,e[t]);return r},Cr=(r,e)=>Lu(r,Mu(e));var Z=(r,e,t)=>(Ci(r,typeof e!="symbol"?e+"":e,t),t);var Ue=(r,e,t)=>new Promise((i,s)=>{var o=l=>{try{a(t.next(l))}catch(u){s(u)}},n=l=>{try{a(t.throw(l))}catch(u){s(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,n);a((t=t.apply(r,e)).next())});function te(){}const oi=r=>r;function Du(r,e){for(const t in e)r[t]=e[t];return r}function ra(r){return r()}function Po(){return Object.create(null)}function Fe(r){r.forEach(ra)}function Lt(r){return typeof r=="function"}function ni(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}let Sr;function Eo(r,e){return r===e?!0:(Sr||(Sr=document.createElement("a")),Sr.href=e,r===Sr.href)}function Hu(r){return Object.keys(r).length===0}function ia(r,...e){if(r==null){for(const i of e)i(void 0);return te}const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function sa(r,e,t){r.$$.on_destroy.push(ia(e,t))}function oa(r,e,t,i){if(r){const s=na(r,e,t,i);return r[0](s)}}function na(r,e,t,i){return r[1]&&i?Du(t.ctx.slice(),r[1](i(e))):t.ctx}function aa(r,e,t,i){if(r[2]&&i){const s=r[2](i(t));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],n=Math.max(e.dirty.length,s.length);for(let a=0;a<n;a+=1)o[a]=e.dirty[a]|s[a];return o}return e.dirty|s}return e.dirty}function la(r,e,t,i,s,o){if(s){const n=na(e,t,i,o);r.p(n,s)}}function ua(r){if(r.ctx.length>32){const e=[],t=r.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function zu(r){const e=typeof r=="string"&&r.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[r,"px"]}const ca=typeof window!="undefined";let ks=ca?()=>window.performance.now():()=>Date.now(),Ls=ca?r=>requestAnimationFrame(r):te;const yt=new Set;function da(r){yt.forEach(e=>{e.c(r)||(yt.delete(e),e.f())}),yt.size!==0&&Ls(da)}function Ms(r){let e;return yt.size===0&&Ls(da),{promise:new Promise(t=>{yt.add(e={c:r,f:t})}),abort(){yt.delete(e)}}}function m(r,e){r.appendChild(e)}function ha(r,e,t){const i=Bs(r);if(!i.getElementById(e)){const s=C("style");s.id=e,s.textContent=t,fa(i,s)}}function Bs(r){if(!r)return document;const e=r.getRootNode?r.getRootNode():r.ownerDocument;return e&&e.host?e:r.ownerDocument}function Fu(r){const e=C("style");return e.textContent="/* empty */",fa(Bs(r),e),e.sheet}function fa(r,e){return m(r.head||r,e),e.sheet}function L(r,e,t){r.insertBefore(e,t||null)}function N(r){r.parentNode&&r.parentNode.removeChild(r)}function pa(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function C(r){return document.createElement(r)}function S(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function H(r){return document.createTextNode(r)}function j(){return H(" ")}function mr(){return H("")}function _e(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function h(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function O(r,e,t){const i=e.toLowerCase();i in r?r[i]=typeof r[i]=="boolean"&&t===""?!0:t:e in r?r[e]=typeof r[e]=="boolean"&&t===""?!0:t:h(r,e,t)}function Vu(r){return Array.from(r.childNodes)}function se(r,e){e=""+e,r.data!==e&&(r.data=e)}function st(r,e){r.value=e==null?"":e}function Uu(r,e,t){r.classList.toggle(e,!!t)}function $u(r,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(r,{detail:e,bubbles:t,cancelable:i})}function ju(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ur(r,e){return new r(e)}const $r=new Map;let jr=0;function Gu(r){let e=5381,t=r.length;for(;t--;)e=(e<<5)-e^r.charCodeAt(t);return e>>>0}function qu(r,e){const t={stylesheet:Fu(e),rules:{}};return $r.set(r,t),t}function Gr(r,e,t,i,s,o,n,a=0){const l=16.666/i;let u=`{
1
+ "use strict";var Lu=Object.defineProperty,Bu=Object.defineProperties;var Ru=Object.getOwnPropertyDescriptors;var Eo=Object.getOwnPropertySymbols;var Du=Object.prototype.hasOwnProperty,Hu=Object.prototype.propertyIsEnumerable;var Si=(r,e,t)=>e in r?Lu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Ke=(r,e)=>{for(var t in e||(e={}))Du.call(e,t)&&Si(r,t,e[t]);if(Eo)for(var t of Eo(e))Hu.call(e,t)&&Si(r,t,e[t]);return r},Cr=(r,e)=>Bu(r,Ru(e));var Z=(r,e,t)=>(Si(r,typeof e!="symbol"?e+"":e,t),t);var Ue=(r,e,t)=>new Promise((i,s)=>{var o=l=>{try{a(t.next(l))}catch(u){s(u)}},n=l=>{try{a(t.throw(l))}catch(u){s(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,n);a((t=t.apply(r,e)).next())});function te(){}const oi=r=>r;function zu(r,e){for(const t in e)r[t]=e[t];return r}function ia(r){return r()}function Co(){return Object.create(null)}function Fe(r){r.forEach(ia)}function Mt(r){return typeof r=="function"}function ni(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}let Sr;function So(r,e){return r===e?!0:(Sr||(Sr=document.createElement("a")),Sr.href=e,r===Sr.href)}function Fu(r){return Object.keys(r).length===0}function sa(r,...e){if(r==null){for(const i of e)i(void 0);return te}const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function oa(r,e,t){r.$$.on_destroy.push(sa(e,t))}function na(r,e,t,i){if(r){const s=aa(r,e,t,i);return r[0](s)}}function aa(r,e,t,i){return r[1]&&i?zu(t.ctx.slice(),r[1](i(e))):t.ctx}function la(r,e,t,i){if(r[2]&&i){const s=r[2](i(t));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],n=Math.max(e.dirty.length,s.length);for(let a=0;a<n;a+=1)o[a]=e.dirty[a]|s[a];return o}return e.dirty|s}return e.dirty}function ua(r,e,t,i,s,o){if(s){const n=aa(e,t,i,o);r.p(n,s)}}function ca(r){if(r.ctx.length>32){const e=[],t=r.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function Vu(r){const e=typeof r=="string"&&r.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[r,"px"]}const da=typeof window!="undefined";let Ls=da?()=>window.performance.now():()=>Date.now(),Bs=da?r=>requestAnimationFrame(r):te;const yt=new Set;function ha(r){yt.forEach(e=>{e.c(r)||(yt.delete(e),e.f())}),yt.size!==0&&Bs(ha)}function Rs(r){let e;return yt.size===0&&Bs(ha),{promise:new Promise(t=>{yt.add(e={c:r,f:t})}),abort(){yt.delete(e)}}}function m(r,e){r.appendChild(e)}function fa(r,e,t){const i=Ds(r);if(!i.getElementById(e)){const s=C("style");s.id=e,s.textContent=t,pa(i,s)}}function Ds(r){if(!r)return document;const e=r.getRootNode?r.getRootNode():r.ownerDocument;return e&&e.host?e:r.ownerDocument}function Uu(r){const e=C("style");return e.textContent="/* empty */",pa(Ds(r),e),e.sheet}function pa(r,e){return m(r.head||r,e),e.sheet}function M(r,e,t){r.insertBefore(e,t||null)}function N(r){r.parentNode&&r.parentNode.removeChild(r)}function ma(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function C(r){return document.createElement(r)}function S(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function H(r){return document.createTextNode(r)}function j(){return H(" ")}function mr(){return H("")}function _e(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function h(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function O(r,e,t){const i=e.toLowerCase();i in r?r[i]=typeof r[i]=="boolean"&&t===""?!0:t:e in r?r[e]=typeof r[e]=="boolean"&&t===""?!0:t:h(r,e,t)}function $u(r){return Array.from(r.childNodes)}function se(r,e){e=""+e,r.data!==e&&(r.data=e)}function st(r,e){r.value=e==null?"":e}function ju(r,e,t){r.classList.toggle(e,!!t)}function Gu(r,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(r,{detail:e,bubbles:t,cancelable:i})}function qu(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ur(r,e){return new r(e)}const $r=new Map;let jr=0;function Wu(r){let e=5381,t=r.length;for(;t--;)e=(e<<5)-e^r.charCodeAt(t);return e>>>0}function Yu(r,e){const t={stylesheet:Uu(e),rules:{}};return $r.set(r,t),t}function Gr(r,e,t,i,s,o,n,a=0){const l=16.666/i;let u=`{
2
2
  `;for(let w=0;w<=1;w+=l){const v=e+(t-e)*o(w);u+=w*100+`%{${n(v,1-v)}}
3
3
  `}const c=u+`100% {${n(t,1-t)}}
4
- }`,d=`__svelte_${Gu(c)}_${a}`,f=Bs(r),{stylesheet:p,rules:_}=$r.get(f)||qu(f,r);_[d]||(_[d]=!0,p.insertRule(`@keyframes ${d} ${c}`,p.cssRules.length));const g=r.style.animation||"";return r.style.animation=`${g?`${g}, `:""}${d} ${i}ms linear ${s}ms 1 both`,jr+=1,d}function qr(r,e){const t=(r.style.animation||"").split(", "),i=t.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),s=t.length-i.length;s&&(r.style.animation=i.join(", "),jr-=s,jr||Wu())}function Wu(){Ls(()=>{jr||($r.forEach(r=>{const{ownerNode:e}=r.stylesheet;e&&N(e)}),$r.clear())})}let tr;function Jt(r){tr=r}function Yu(){if(!tr)throw new Error("Function called outside component initialization");return tr}function ma(r){Yu().$$.on_mount.push(r)}const gt=[],wt=[];let xt=[];const Co=[],Xu=Promise.resolve();let Ji=!1;function Zu(){Ji||(Ji=!0,Xu.then(J))}function ut(r){xt.push(r)}const Si=new Set;let pt=0;function J(){if(pt!==0)return;const r=tr;do{try{for(;pt<gt.length;){const e=gt[pt];pt++,Jt(e),Ju(e.$$)}}catch(e){throw gt.length=0,pt=0,e}for(Jt(null),gt.length=0,pt=0;wt.length;)wt.pop()();for(let e=0;e<xt.length;e+=1){const t=xt[e];Si.has(t)||(Si.add(t),t())}xt.length=0}while(gt.length);for(;Co.length;)Co.pop()();Ji=!1,Si.clear(),Jt(r)}function Ju(r){if(r.fragment!==null){r.update(),Fe(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(ut)}}function Ku(r){const e=[],t=[];xt.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),xt=e}let Ut;function Rs(){return Ut||(Ut=Promise.resolve(),Ut.then(()=>{Ut=null})),Ut}function nt(r,e,t){r.dispatchEvent($u(`${e?"intro":"outro"}${t}`))}const Mr=new Set;let je;function Xe(){je={r:0,c:[],p:je}}function Ze(){je.r||Fe(je.c),je=je.p}function ce(r,e){r&&r.i&&(Mr.delete(r),r.i(e))}function ge(r,e,t,i){if(r&&r.o){if(Mr.has(r))return;Mr.add(r),je.c.push(()=>{Mr.delete(r),i&&(t&&r.d(1),i())}),r.o(e)}else i&&i()}const Ds={duration:0};function Qu(r,e,t){const i={direction:"in"};let s=e(r,t,i),o=!1,n,a,l=0;function u(){n&&qr(r,n)}function c(){const{delay:f=0,duration:p=300,easing:_=oi,tick:g=te,css:w}=s||Ds;w&&(n=Gr(r,0,1,p,f,_,w,l++)),g(0,1);const v=ks()+f,y=v+p;a&&a.abort(),o=!0,ut(()=>nt(r,!0,"start")),a=Ms(A=>{if(o){if(A>=y)return g(1,0),nt(r,!0,"end"),u(),o=!1;if(A>=v){const I=_((A-v)/p);g(I,1-I)}}return o})}let d=!1;return{start(){d||(d=!0,qr(r),Lt(s)?(s=s(i),Rs().then(c)):c())},invalidate(){d=!1},end(){o&&(u(),o=!1)}}}function ec(r,e,t){const i={direction:"out"};let s=e(r,t,i),o=!0,n;const a=je;a.r+=1;let l;function u(){const{delay:c=0,duration:d=300,easing:f=oi,tick:p=te,css:_}=s||Ds;_&&(n=Gr(r,1,0,d,c,f,_));const g=ks()+c,w=g+d;ut(()=>nt(r,!1,"start")),"inert"in r&&(l=r.inert,r.inert=!0),Ms(v=>{if(o){if(v>=w)return p(0,1),nt(r,!1,"end"),--a.r||Fe(a.c),!1;if(v>=g){const y=f((v-g)/d);p(1-y,y)}}return o})}return Lt(s)?Rs().then(()=>{s=s(i),u()}):u(),{end(c){c&&"inert"in r&&(r.inert=l),c&&s.tick&&s.tick(1,0),o&&(n&&qr(r,n),o=!1)}}}function tc(r,e,t,i){let o=e(r,t,{direction:"both"}),n=i?0:1,a=null,l=null,u=null,c;function d(){u&&qr(r,u)}function f(_,g){const w=_.b-n;return g*=Math.abs(w),{a:n,b:_.b,d:w,duration:g,start:_.start,end:_.start+g,group:_.group}}function p(_){const{delay:g=0,duration:w=300,easing:v=oi,tick:y=te,css:A}=o||Ds,I={start:ks()+g,b:_};_||(I.group=je,je.r+=1),"inert"in r&&(_?c!==void 0&&(r.inert=c):(c=r.inert,r.inert=!0)),a||l?l=I:(A&&(d(),u=Gr(r,n,_,w,g,v,A)),_&&y(0,1),a=f(I,w),ut(()=>nt(r,_,"start")),Ms(x=>{if(l&&x>l.start&&(a=f(l,w),l=null,nt(r,a.b,"start"),A&&(d(),u=Gr(r,n,a.b,a.duration,0,v,o.css))),a){if(x>=a.end)y(n=a.b,1-n),nt(r,a.b,"end"),l||(a.b?d():--a.group.r||Fe(a.group.c)),a=null;else if(x>=a.start){const T=x-a.start;n=a.a+a.d*v(T/a.duration),y(n,1-n)}}return!!(a||l)}))}return{run(_){Lt(o)?Rs().then(()=>{o=o({direction:_?"in":"out"}),p(_)}):p(_)},end(){d(),a=l=null}}}function Ki(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Wr(r){r&&r.c()}function rr(r,e,t){const{fragment:i,after_update:s}=r.$$;i&&i.m(e,t),ut(()=>{const o=r.$$.on_mount.map(ra).filter(Lt);r.$$.on_destroy?r.$$.on_destroy.push(...o):Fe(o),r.$$.on_mount=[]}),s.forEach(ut)}function ir(r,e){const t=r.$$;t.fragment!==null&&(Ku(t.after_update),Fe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function rc(r,e){r.$$.dirty[0]===-1&&(gt.push(r),Zu(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function Hs(r,e,t,i,s,o,n=null,a=[-1]){const l=tr;Jt(r);const u=r.$$={fragment:null,ctx:[],props:o,update:te,not_equal:s,bound:Po(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Po(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(d,f,...p)=>{const _=p.length?p[0]:f;return u.ctx&&s(u.ctx[d],u.ctx[d]=_)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](_),c&&rc(r,d)),f}):[],u.update(),c=!0,Fe(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const d=Vu(e.target);u.fragment&&u.fragment.l(d),d.forEach(N)}else u.fragment&&u.fragment.c();e.intro&&ce(r.$$.fragment),rr(r,e.target,e.anchor),J()}Jt(l)}let _a;typeof HTMLElement=="function"&&(_a=class extends HTMLElement{constructor(e,t,i){super();Z(this,"$$ctor");Z(this,"$$s");Z(this,"$$c");Z(this,"$$cn",!1);Z(this,"$$d",{});Z(this,"$$r",!1);Z(this,"$$p_d",{});Z(this,"$$l",{});Z(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const s=this.$$c.$on(e,t);this.$$l_u.set(t,s)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let n;return{c:function(){n=C("slot"),o!=="default"&&h(n,"name",o)},m:function(u,c){L(u,n,c)},d:function(u){u&&N(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=ju(this);for(const o of this.$$s)o in i&&(t[o]=[e(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=Br(n,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Cr(Ke({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const n=Br(o,this.$$d[o],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,n)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const n of this.$$l[o]){const a=this.$$c.$on(o,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Br(e,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Br(r,e,t,i){var o;const s=(o=t[r])==null?void 0:o.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[r])return e;if(i==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function zs(r,e,t,i,s,o){let n=class extends _a{constructor(){super(r,t,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=Br(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),r.element=n,n}class Fs{constructor(){Z(this,"$$");Z(this,"$$set")}$destroy(){ir(this,1),this.$destroy=te}$on(e,t){if(!Lt(t))return te;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Hu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ic="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ic);/*! *****************************************************************************
4
+ }`,d=`__svelte_${Wu(c)}_${a}`,f=Ds(r),{stylesheet:p,rules:_}=$r.get(f)||Yu(f,r);_[d]||(_[d]=!0,p.insertRule(`@keyframes ${d} ${c}`,p.cssRules.length));const g=r.style.animation||"";return r.style.animation=`${g?`${g}, `:""}${d} ${i}ms linear ${s}ms 1 both`,jr+=1,d}function qr(r,e){const t=(r.style.animation||"").split(", "),i=t.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),s=t.length-i.length;s&&(r.style.animation=i.join(", "),jr-=s,jr||Xu())}function Xu(){Bs(()=>{jr||($r.forEach(r=>{const{ownerNode:e}=r.stylesheet;e&&N(e)}),$r.clear())})}let tr;function Jt(r){tr=r}function Zu(){if(!tr)throw new Error("Function called outside component initialization");return tr}function _a(r){Zu().$$.on_mount.push(r)}const gt=[],wt=[];let xt=[];const Ao=[],Ju=Promise.resolve();let Qi=!1;function Ku(){Qi||(Qi=!0,Ju.then(J))}function ut(r){xt.push(r)}const Ai=new Set;let pt=0;function J(){if(pt!==0)return;const r=tr;do{try{for(;pt<gt.length;){const e=gt[pt];pt++,Jt(e),Qu(e.$$)}}catch(e){throw gt.length=0,pt=0,e}for(Jt(null),gt.length=0,pt=0;wt.length;)wt.pop()();for(let e=0;e<xt.length;e+=1){const t=xt[e];Ai.has(t)||(Ai.add(t),t())}xt.length=0}while(gt.length);for(;Ao.length;)Ao.pop()();Qi=!1,Ai.clear(),Jt(r)}function Qu(r){if(r.fragment!==null){r.update(),Fe(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(ut)}}function ec(r){const e=[],t=[];xt.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),xt=e}let Ut;function Hs(){return Ut||(Ut=Promise.resolve(),Ut.then(()=>{Ut=null})),Ut}function nt(r,e,t){r.dispatchEvent(Gu(`${e?"intro":"outro"}${t}`))}const Lr=new Set;let je;function Xe(){je={r:0,c:[],p:je}}function Ze(){je.r||Fe(je.c),je=je.p}function ce(r,e){r&&r.i&&(Lr.delete(r),r.i(e))}function ge(r,e,t,i){if(r&&r.o){if(Lr.has(r))return;Lr.add(r),je.c.push(()=>{Lr.delete(r),i&&(t&&r.d(1),i())}),r.o(e)}else i&&i()}const zs={duration:0};function tc(r,e,t){const i={direction:"in"};let s=e(r,t,i),o=!1,n,a,l=0;function u(){n&&qr(r,n)}function c(){const{delay:f=0,duration:p=300,easing:_=oi,tick:g=te,css:w}=s||zs;w&&(n=Gr(r,0,1,p,f,_,w,l++)),g(0,1);const v=Ls()+f,y=v+p;a&&a.abort(),o=!0,ut(()=>nt(r,!0,"start")),a=Rs(A=>{if(o){if(A>=y)return g(1,0),nt(r,!0,"end"),u(),o=!1;if(A>=v){const I=_((A-v)/p);g(I,1-I)}}return o})}let d=!1;return{start(){d||(d=!0,qr(r),Mt(s)?(s=s(i),Hs().then(c)):c())},invalidate(){d=!1},end(){o&&(u(),o=!1)}}}function rc(r,e,t){const i={direction:"out"};let s=e(r,t,i),o=!0,n;const a=je;a.r+=1;let l;function u(){const{delay:c=0,duration:d=300,easing:f=oi,tick:p=te,css:_}=s||zs;_&&(n=Gr(r,1,0,d,c,f,_));const g=Ls()+c,w=g+d;ut(()=>nt(r,!1,"start")),"inert"in r&&(l=r.inert,r.inert=!0),Rs(v=>{if(o){if(v>=w)return p(0,1),nt(r,!1,"end"),--a.r||Fe(a.c),!1;if(v>=g){const y=f((v-g)/d);p(1-y,y)}}return o})}return Mt(s)?Hs().then(()=>{s=s(i),u()}):u(),{end(c){c&&"inert"in r&&(r.inert=l),c&&s.tick&&s.tick(1,0),o&&(n&&qr(r,n),o=!1)}}}function ic(r,e,t,i){let o=e(r,t,{direction:"both"}),n=i?0:1,a=null,l=null,u=null,c;function d(){u&&qr(r,u)}function f(_,g){const w=_.b-n;return g*=Math.abs(w),{a:n,b:_.b,d:w,duration:g,start:_.start,end:_.start+g,group:_.group}}function p(_){const{delay:g=0,duration:w=300,easing:v=oi,tick:y=te,css:A}=o||zs,I={start:Ls()+g,b:_};_||(I.group=je,je.r+=1),"inert"in r&&(_?c!==void 0&&(r.inert=c):(c=r.inert,r.inert=!0)),a||l?l=I:(A&&(d(),u=Gr(r,n,_,w,g,v,A)),_&&y(0,1),a=f(I,w),ut(()=>nt(r,_,"start")),Rs(x=>{if(l&&x>l.start&&(a=f(l,w),l=null,nt(r,a.b,"start"),A&&(d(),u=Gr(r,n,a.b,a.duration,0,v,o.css))),a){if(x>=a.end)y(n=a.b,1-n),nt(r,a.b,"end"),l||(a.b?d():--a.group.r||Fe(a.group.c)),a=null;else if(x>=a.start){const T=x-a.start;n=a.a+a.d*v(T/a.duration),y(n,1-n)}}return!!(a||l)}))}return{run(_){Mt(o)?Hs().then(()=>{o=o({direction:_?"in":"out"}),p(_)}):p(_)},end(){d(),a=l=null}}}function es(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Wr(r){r&&r.c()}function rr(r,e,t){const{fragment:i,after_update:s}=r.$$;i&&i.m(e,t),ut(()=>{const o=r.$$.on_mount.map(ia).filter(Mt);r.$$.on_destroy?r.$$.on_destroy.push(...o):Fe(o),r.$$.on_mount=[]}),s.forEach(ut)}function ir(r,e){const t=r.$$;t.fragment!==null&&(ec(t.after_update),Fe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sc(r,e){r.$$.dirty[0]===-1&&(gt.push(r),Ku(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function Fs(r,e,t,i,s,o,n=null,a=[-1]){const l=tr;Jt(r);const u=r.$$={fragment:null,ctx:[],props:o,update:te,not_equal:s,bound:Co(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Co(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(d,f,...p)=>{const _=p.length?p[0]:f;return u.ctx&&s(u.ctx[d],u.ctx[d]=_)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](_),c&&sc(r,d)),f}):[],u.update(),c=!0,Fe(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const d=$u(e.target);u.fragment&&u.fragment.l(d),d.forEach(N)}else u.fragment&&u.fragment.c();e.intro&&ce(r.$$.fragment),rr(r,e.target,e.anchor),J()}Jt(l)}let ga;typeof HTMLElement=="function"&&(ga=class extends HTMLElement{constructor(e,t,i){super();Z(this,"$$ctor");Z(this,"$$s");Z(this,"$$c");Z(this,"$$cn",!1);Z(this,"$$d",{});Z(this,"$$r",!1);Z(this,"$$p_d",{});Z(this,"$$l",{});Z(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const s=this.$$c.$on(e,t);this.$$l_u.set(t,s)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let n;return{c:function(){n=C("slot"),o!=="default"&&h(n,"name",o)},m:function(u,c){M(u,n,c)},d:function(u){u&&N(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=qu(this);for(const o of this.$$s)o in i&&(t[o]=[e(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=Br(n,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Cr(Ke({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const n=Br(o,this.$$d[o],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,n)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const n of this.$$l[o]){const a=this.$$c.$on(o,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Br(e,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Br(r,e,t,i){var o;const s=(o=t[r])==null?void 0:o.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[r])return e;if(i==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Vs(r,e,t,i,s,o){let n=class extends ga{constructor(){super(r,t,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=Br(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),r.element=n,n}class Us{constructor(){Z(this,"$$");Z(this,"$$set")}$destroy(){ir(this,1),this.$destroy=te}$on(e,t){if(!Mt(t))return te;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Fu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const oc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oc);function ba(r,e,t,i=!1){if(window.emMessageBus){const s=i?o=>{!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).forEach(n=>t(n,o[n]))}:t;e=window.emMessageBus.subscribe(r,s)}return e}/*! *****************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
6
6
 
7
7
  Permission to use, copy, modify, and/or distribute this software for any
@@ -14,11 +14,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14
14
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
15
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
  PERFORMANCE OF THIS SOFTWARE.
17
- ***************************************************************************** */var Qi=function(r,e){return Qi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},Qi(r,e)};function _r(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Qi(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function es(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ts(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),s,o=[],n;try{for(;(e===void 0||e-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return o}function rs(r,e,t){if(arguments.length===2)for(var i=0,s=e.length,o;i<s;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return r.concat(o||e)}function Ye(r){return typeof r=="function"}function ga(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ai=ga(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
17
+ ***************************************************************************** */var ts=function(r,e){return ts=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},ts(r,e)};function _r(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ts(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function rs(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function is(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),s,o=[],n;try{for(;(e===void 0||e-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return o}function ss(r,e,t){if(arguments.length===2)for(var i=0,s=e.length,o;i<s;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return r.concat(o||e)}function Ye(r){return typeof r=="function"}function va(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ti=va(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
18
18
  `+t.map(function(i,s){return s+1+") "+i.toString()}).join(`
19
- `):"",this.name="UnsubscriptionError",this.errors=t}});function is(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var ai=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=es(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else n.remove(this);var c=this.initialTeardown;if(Ye(c))try{c()}catch(g){o=g instanceof Ai?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=es(d),p=f.next();!p.done;p=f.next()){var _=p.value;try{So(_)}catch(g){o=o!=null?o:[],g instanceof Ai?o=rs(rs([],ts(o)),ts(g.errors)):o.push(g)}}}catch(g){i={error:g}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new Ai(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)So(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&is(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&is(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),ba=ai.EMPTY;function va(r){return r instanceof ai||r&&"closed"in r&&Ye(r.remove)&&Ye(r.add)&&Ye(r.unsubscribe)}function So(r){Ye(r)?r():r.unsubscribe()}var sc={Promise:void 0},oc={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,rs([r,e],ts(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function nc(r){oc.setTimeout(function(){throw r})}function Ao(){}function Rr(r){r()}var ya=function(r){_r(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,va(t)&&t.add(i)):i.destination=uc,i}return e.create=function(t,i,s){return new ss(t,i,s)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ai),ac=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){Ar(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){Ar(i)}else Ar(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Ar(t)}},r}(),ss=function(r){_r(e,r);function e(t,i,s){var o=r.call(this)||this,n;return Ye(t)||!t?n={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:s!=null?s:void 0}:n=t,o.destination=new ac(n),o}return e}(ya);function Ar(r){nc(r)}function lc(r){throw r}var uc={closed:!0,next:Ao,error:lc,complete:Ao},cc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function dc(r){return r}function hc(r){return r.length===0?dc:r.length===1?r[0]:function(t){return r.reduce(function(i,s){return s(i)},t)}}var To=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var s=this,o=pc(e)?e:new ss(e,t,i);return Rr(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=Io(t),new t(function(s,o){var n=new ss({next:function(a){try{e(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[cc]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return hc(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=Io(e),new e(function(i,s){var o;t.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},r.create=function(e){return new r(e)},r}();function Io(r){var e;return(e=r!=null?r:sc.Promise)!==null&&e!==void 0?e:Promise}function fc(r){return r&&Ye(r.next)&&Ye(r.error)&&Ye(r.complete)}function pc(r){return r&&r instanceof ya||fc(r)&&va(r)}var mc=ga(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wa=function(r){_r(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new Oo(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new mc},e.prototype.next=function(t){var i=this;Rr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=es(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(t)}}catch(u){s={error:u}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},e.prototype.error=function(t){var i=this;Rr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var s=i.observers;s.length;)s.shift().error(t)}})},e.prototype.complete=function(){var t=this;Rr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?ba:(this.currentObservers=null,a.push(t),new ai(function(){i.currentObservers=null,is(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,s=i.hasError,o=i.thrownError,n=i.isStopped;s?t.error(o):n&&t.complete()},e.prototype.asObservable=function(){var t=new To;return t.source=this,t},e.create=function(t,i){return new Oo(t,i)},e}(To),Oo=function(r){_r(e,r);function e(t,i){var s=r.call(this)||this;return s.destination=t,s.source=i,s}return e.prototype.next=function(t){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,t)},e.prototype.error=function(t){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&s!==void 0?s:ba},e}(wa),xa={now:function(){return(xa.delegate||Date).now()},delegate:void 0},_c=function(r){_r(e,r);function e(t,i,s){t===void 0&&(t=1/0),i===void 0&&(i=1/0),s===void 0&&(s=xa);var o=r.call(this)||this;return o._bufferSize=t,o._windowTime=i,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,i),o}return e.prototype.next=function(t){var i=this,s=i.isStopped,o=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;s||(o.push(t),!n&&o.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!t.closed;l+=o?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,s=t._timestampProvider,o=t._buffer,n=t._infiniteTimeWindow,a=(n?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},e}(wa);const No=[],ko={},gc=(r,e=0)=>{if(No.indexOf(r)==-1){const t=new _c(e);ko[r]=t,No.push(r)}return ko[r]},mt=[];function bc(r,e){return{subscribe:li(r,e).subscribe}}function li(r,e=te){let t;const i=new Set;function s(a){if(ni(r,a)&&(r=a,t)){const l=!mt.length;for(const u of i)u[1](),mt.push(u,r);if(l){for(let u=0;u<mt.length;u+=2)mt[u][0](mt[u+1]);mt.length=0}}}function o(a){s(a(r))}function n(a,l=te){const u=[a,l];return i.add(u),i.size===1&&(t=e(s,o)||te),a(r),()=>{i.delete(u),i.size===0&&t&&(t(),t=null)}}return{set:s,update:o,subscribe:n}}function Mt(r,e,t){const i=!Array.isArray(r),s=i?[r]:r;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return bc(t,(n,a)=>{let l=!1;const u=[];let c=0,d=te;const f=()=>{if(c)return;d();const _=e(i?u[0]:u,n,a);o?n(_):d=Lt(_)?_:te},p=s.map((_,g)=>ia(_,w=>{u[g]=w,c&=~(1<<g),l&&f()},()=>{c|=1<<g}));return l=!0,f(),function(){Fe(p),d(),l=!1}})}function vc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var yc=function(e){return wc(e)&&!xc(e)};function wc(r){return!!r&&typeof r=="object"}function xc(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||Cc(r)}var Pc=typeof Symbol=="function"&&Symbol.for,Ec=Pc?Symbol.for("react.element"):60103;function Cc(r){return r.$$typeof===Ec}function Sc(r){return Array.isArray(r)?[]:{}}function sr(r,e){return e.clone!==!1&&e.isMergeableObject(r)?St(Sc(r),r,e):r}function Ac(r,e,t){return r.concat(e).map(function(i){return sr(i,t)})}function Tc(r,e){if(!e.customMerge)return St;var t=e.customMerge(r);return typeof t=="function"?t:St}function Ic(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function Lo(r){return Object.keys(r).concat(Ic(r))}function Pa(r,e){try{return e in r}catch(t){return!1}}function Oc(r,e){return Pa(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function Nc(r,e,t){var i={};return t.isMergeableObject(r)&&Lo(r).forEach(function(s){i[s]=sr(r[s],t)}),Lo(e).forEach(function(s){Oc(r,s)||(Pa(r,s)&&t.isMergeableObject(e[s])?i[s]=Tc(s,t)(r[s],e[s],t):i[s]=sr(e[s],t))}),i}function St(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Ac,t.isMergeableObject=t.isMergeableObject||yc,t.cloneUnlessOtherwiseSpecified=sr;var i=Array.isArray(e),s=Array.isArray(r),o=i===s;return o?i?t.arrayMerge(r,e,t):Nc(r,e,t):sr(e,t)}St.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,s){return St(i,s,t)},{})};var kc=St,Lc=kc;const Mc=vc(Lc);var os=function(r,e){return os=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},os(r,e)};function ui(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");os(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $e=function(){return $e=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$e.apply(this,arguments)};function Bc(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(t[i[s]]=r[i[s]]);return t}function Ti(r,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,o;i<s;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return r.concat(o||Array.prototype.slice.call(e))}function Ii(r,e){var t=e&&e.cache?e.cache:Uc,i=e&&e.serializer?e.serializer:Fc,s=e&&e.strategy?e.strategy:Hc;return s(r,{cache:t,serializer:i})}function Rc(r){return r==null||typeof r=="number"||typeof r=="boolean"}function Dc(r,e,t,i){var s=Rc(i)?i:t(i),o=e.get(s);return typeof o=="undefined"&&(o=r.call(this,i),e.set(s,o)),o}function Ea(r,e,t){var i=Array.prototype.slice.call(arguments,3),s=t(i),o=e.get(s);return typeof o=="undefined"&&(o=r.apply(this,i),e.set(s,o)),o}function Ca(r,e,t,i,s){return t.bind(e,r,i,s)}function Hc(r,e){var t=r.length===1?Dc:Ea;return Ca(r,this,t,e.cache.create(),e.serializer)}function zc(r,e){return Ca(r,this,Ea,e.cache.create(),e.serializer)}var Fc=function(){return JSON.stringify(arguments)},Vc=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(e){return this.cache[e]},r.prototype.set=function(e,t){this.cache[e]=t},r}(),Uc={create:function(){return new Vc}},Oi={variadic:zc},Yr=function(){return Yr=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Yr.apply(this,arguments)};var F;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var ie;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(ie||(ie={}));var At;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(At||(At={}));function Mo(r){return r.type===ie.literal}function $c(r){return r.type===ie.argument}function Sa(r){return r.type===ie.number}function Aa(r){return r.type===ie.date}function Ta(r){return r.type===ie.time}function Ia(r){return r.type===ie.select}function Oa(r){return r.type===ie.plural}function jc(r){return r.type===ie.pound}function Na(r){return r.type===ie.tag}function ka(r){return!!(r&&typeof r=="object"&&r.type===At.number)}function ns(r){return!!(r&&typeof r=="object"&&r.type===At.dateTime)}var La=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gc=/(?:[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 qc(r){var e={};return r.replace(Gc,function(t){var i=t.length;switch(t[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===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":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-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":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<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""}),e}var ue=function(){return ue=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ue.apply(this,arguments)};var Wc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Yc(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(Wc).filter(function(f){return f.length>0}),t=[],i=0,s=e;i<s.length;i++){var o=s[i],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Xc(r){return r.replace(/^(.*?)-/,"")}var Bo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ma=/^(@+)?(\+|#+)?[rs]?$/g,Zc=/(\*)(0+)|(#+)(0+)|(0+)/g,Ba=/^(0+)$/;function Ro(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Ma,function(t,i,s){return typeof s!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):s==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof s=="string"?s.length:0)),""}),e}function Ra(r){switch(r){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 Jc(r){var e;if(r[0]==="E"&&r[1]==="E"?(e={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(e={notation:"scientific"},r=r.slice(1)),e){var t=r.slice(0,2);if(t==="+!"?(e.signDisplay="always",r=r.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",r=r.slice(2)),!Ba.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function Do(r){var e={},t=Ra(r);return t||e}function Kc(r){for(var e={},t=0,i=r;t<i.length;t++){var s=i[t];switch(s.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=s.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Xc(s.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=ue(ue(ue({},e),{notation:"scientific"}),s.options.reduce(function(l,u){return ue(ue({},l),Do(u))},{}));continue;case"engineering":e=ue(ue(ue({},e),{notation:"engineering"}),s.options.reduce(function(l,u){return ue(ue({},l),Do(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Zc,function(l,u,c,d,f,p){if(u)e.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ba.test(s.stem)){e.minimumIntegerDigits=s.stem.length;continue}if(Bo.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Bo,function(l,u,c,d,f,p){return c==="*"?e.minimumFractionDigits=u.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:f&&p?(e.minimumFractionDigits=f.length,e.maximumFractionDigits=f.length+p.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=s.options[0];o==="w"?e=ue(ue({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=ue(ue({},e),Ro(o)));continue}if(Ma.test(s.stem)){e=ue(ue({},e),Ro(s.stem));continue}var n=Ra(s.stem);n&&(e=ue(ue({},e),n));var a=Jc(s.stem);a&&(e=ue(ue({},e),a))}return e}var Tr={"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 Qc(r,e){for(var t="",i=0;i<r.length;i++){var s=r.charAt(i);if(s==="j"){for(var o=0;i+1<r.length&&r.charAt(i+1)===s;)o++,i++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=ed(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;n-- >0;)t=u+t}else s==="J"?t+="H":t+=s}return t}function ed(r){var e=r.hourCycle;if(e===void 0&&r.hourCycles&&r.hourCycles.length&&(e=r.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=r.language,i;t!=="root"&&(i=r.maximize().region);var s=Tr[i||""]||Tr[t||""]||Tr["".concat(t,"-001")]||Tr["001"];return s[0]}var Ni,td=new RegExp("^".concat(La.source,"*")),rd=new RegExp("".concat(La.source,"*$"));function U(r,e){return{start:r,end:e}}var id=!!String.prototype.startsWith&&"_a".startsWith("a",1),sd=!!String.fromCodePoint,od=!!Object.fromEntries,nd=!!String.prototype.codePointAt,ad=!!String.prototype.trimStart,ld=!!String.prototype.trimEnd,ud=!!Number.isSafeInteger,cd=ud?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},as=!0;try{var dd=Ha("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");as=((Ni=dd.exec("a"))===null||Ni===void 0?void 0:Ni[0])==="a"}catch(r){as=!1}var Ho=id?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},ls=sd?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i="",s=e.length,o=0,n;s>o;){if(n=e[o++],n>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return i},zo=od?Object.fromEntries:function(e){for(var t={},i=0,s=e;i<s.length;i++){var o=s[i],n=o[0],a=o[1];t[n]=a}return t},Da=nd?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var s=e.charCodeAt(t),o;return s<55296||s>56319||t+1===i||(o=e.charCodeAt(t+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},hd=ad?function(e){return e.trimStart()}:function(e){return e.replace(td,"")},fd=ld?function(e){return e.trimEnd()}:function(e){return e.replace(rd,"")};function Ha(r,e){return new RegExp(r,e)}var us;if(as){var Fo=Ha("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");us=function(e,t){var i;Fo.lastIndex=t;var s=Fo.exec(e);return(i=s[1])!==null&&i!==void 0?i:""}}else us=function(e,t){for(var i=[];;){var s=Da(e,t);if(s===void 0||za(s)||gd(s))break;i.push(s),t+=s>=65536?2:1}return ls.apply(void 0,i)};var pd=function(){function r(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(e,t,i){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(e,i);if(n.err)return n;s.push(n.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:ie.pound,location:U(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(F.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&cs(this.peek()||0)){var n=this.parseTag(e,t);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(e,t);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},r.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ie.literal,value:"<".concat(s,"/>"),location:U(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!cs(this.char()))return this.error(F.INVALID_TAG,U(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(F.UNMATCHED_CLOSING_TAG,U(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ie.tag,value:s,children:n,location:U(i,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,U(a,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,U(i,this.clonePosition()))}else return this.error(F.INVALID_TAG,U(i,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&_d(this.char());)this.bump();return this.message.slice(e,this.offset())},r.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),s="";;){var o=this.tryParseQuote(t);if(o){s+=o;continue}var n=this.tryParseUnquoted(e,t);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=U(i,this.clonePosition());return{val:{type:ie.literal,value:s,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!md(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(e){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(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return ls.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&e>0?null:(this.bump(),ls(i))},r.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,U(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(F.MALFORMED_ARGUMENT,U(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ie.argument,value:s,location:U(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition())):this.parseArgumentOptions(e,t,s,i);default:return this.error(F.MALFORMED_ARGUMENT,U(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=us(this.message,t),s=t+i.length;this.bumpTo(s);var o=this.clonePosition(),n=U(e,o);return{value:i,location:n}},r.prototype.parseArgumentOptions=function(e,t,i,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,U(n,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 f=fd(d.val);if(f.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var p=U(c,this.clonePosition());u={style:f,styleLocation:p}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=U(s,this.clonePosition());if(u&&Ho(u==null?void 0:u.style,"::",0)){var w=hd(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:ie.number,value:i,location:g,style:d.val},err:null}}else{if(w.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,g);var v=w;this.locale&&(v=Qc(w,this.locale));var f={type:At.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?qc(v):{}},y=a==="date"?ie.date:ie.time;return{val:{type:y,value:i,location:g,style:f},err:null}}}return{val:{type:a==="number"?ie.number:a==="date"?ie.date:ie.time,value:i,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,U(A,Yr({},A)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),x=0;if(a!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),I=this.parseIdentifierIfPossible(),x=d.val}var T=this.tryParsePluralOrSelectOptions(e,a,t,I);if(T.err)return T;var _=this.tryParseArgumentClose(s);if(_.err)return _;var B=U(s,this.clonePosition());return a==="select"?{val:{type:ie.select,value:i,options:zo(T.val),location:B},err:null}:{val:{type:ie.plural,value:i,options:zo(T.val),offset:x,pluralType:a==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,U(n,l))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(s,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=Yc(e)}catch(s){return this.error(F.INVALID_NUMBER_SKELETON,t)}return{val:{type:At.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Kc(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,i,s){for(var o,n=!1,a=[],l=new Set,u=s.value,c=s.location;;){if(u.length===0){var d=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=U(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,i);if(_.err)return _;var g=this.tryParseArgumentClose(p);if(g.err)return g;a.push([u,{value:_.val,location:U(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(t==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(F.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(e,t){var i=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=U(s,this.clonePosition());return o?(n*=i,cd(n)?{val:n,err:null}:this.error(t,l)):this.error(e,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Da(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},r.prototype.bumpIf=function(e){if(Ho(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&za(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return i!=null?i:null},r}();function cs(r){return r>=97&&r<=122||r>=65&&r<=90}function md(r){return cs(r)||r===47}function _d(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function za(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function gd(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function ds(r){r.forEach(function(e){if(delete e.location,Ia(e)||Oa(e))for(var t in e.options)delete e.options[t].location,ds(e.options[t].value);else Sa(e)&&ka(e.style)||(Aa(e)||Ta(e))&&ns(e.style)?delete e.style.location:Na(e)&&ds(e.children)})}function bd(r,e){e===void 0&&(e={}),e=Yr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new pd(r,e).parse();if(t.err){var i=SyntaxError(F[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return e!=null&&e.captureLocation||ds(t.val),t.val}var Tt;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(Tt||(Tt={}));var ci=function(r){ui(e,r);function e(t,i,s){var o=r.call(this,t)||this;return o.code=i,o.originalMessage=s,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Vo=function(r){ui(e,r);function e(t,i,s,o){return r.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(s).join('", "'),'"'),Tt.INVALID_VALUE,o)||this}return e}(ci),vd=function(r){ui(e,r);function e(t,i,s){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Tt.INVALID_VALUE,s)||this}return e}(ci),yd=function(r){ui(e,r);function e(t,i){return r.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Tt.MISSING_VALUE,i)||this}return e}(ci),Se;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(Se||(Se={}));function wd(r){return r.length<2?r:r.reduce(function(e,t){var i=e[e.length-1];return!i||i.type!==Se.literal||t.type!==Se.literal?e.push(t):i.value+=t.value,e},[])}function xd(r){return typeof r=="function"}function Dr(r,e,t,i,s,o,n){if(r.length===1&&Mo(r[0]))return[{type:Se.literal,value:r[0].value}];for(var a=[],l=0,u=r;l<u.length;l++){var c=u[l];if(Mo(c)){a.push({type:Se.literal,value:c.value});continue}if(jc(c)){typeof o=="number"&&a.push({type:Se.literal,value:t.getNumberFormat(e).format(o)});continue}var d=c.value;if(!(s&&d in s))throw new yd(d,n);var f=s[d];if($c(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?Se.literal:Se.object,value:f});continue}if(Aa(c)){var p=typeof c.style=="string"?i.date[c.style]:ns(c.style)?c.style.parsedOptions:void 0;a.push({type:Se.literal,value:t.getDateTimeFormat(e,p).format(f)});continue}if(Ta(c)){var p=typeof c.style=="string"?i.time[c.style]:ns(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:Se.literal,value:t.getDateTimeFormat(e,p).format(f)});continue}if(Sa(c)){var p=typeof c.style=="string"?i.number[c.style]:ka(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),a.push({type:Se.literal,value:t.getNumberFormat(e,p).format(f)});continue}if(Na(c)){var _=c.children,g=c.value,w=s[g];if(!xd(w))throw new vd(g,"function",n);var v=Dr(_,e,t,i,s,o),y=w(v.map(function(x){return x.value}));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map(function(x){return{type:typeof x=="string"?Se.literal:Se.object,value:x}}))}if(Ia(c)){var A=c.options[f]||c.options.other;if(!A)throw new Vo(c.value,f,Object.keys(c.options),n);a.push.apply(a,Dr(A.value,e,t,i,s));continue}if(Oa(c)){var A=c.options["=".concat(f)];if(!A){if(!Intl.PluralRules)throw new ci(`Intl.PluralRules is not available in this environment.
19
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function os(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var ai=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=rs(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else n.remove(this);var c=this.initialTeardown;if(Ye(c))try{c()}catch(g){o=g instanceof Ti?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=rs(d),p=f.next();!p.done;p=f.next()){var _=p.value;try{To(_)}catch(g){o=o!=null?o:[],g instanceof Ti?o=ss(ss([],is(o)),is(g.errors)):o.push(g)}}}catch(g){i={error:g}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new Ti(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)To(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&os(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&os(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),ya=ai.EMPTY;function wa(r){return r instanceof ai||r&&"closed"in r&&Ye(r.remove)&&Ye(r.add)&&Ye(r.unsubscribe)}function To(r){Ye(r)?r():r.unsubscribe()}var nc={Promise:void 0},ac={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,ss([r,e],is(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function lc(r){ac.setTimeout(function(){throw r})}function Io(){}function Rr(r){r()}var xa=function(r){_r(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,wa(t)&&t.add(i)):i.destination=dc,i}return e.create=function(t,i,s){return new ns(t,i,s)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ai),uc=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){Ar(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){Ar(i)}else Ar(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Ar(t)}},r}(),ns=function(r){_r(e,r);function e(t,i,s){var o=r.call(this)||this,n;return Ye(t)||!t?n={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:s!=null?s:void 0}:n=t,o.destination=new uc(n),o}return e}(xa);function Ar(r){lc(r)}function cc(r){throw r}var dc={closed:!0,next:Io,error:cc,complete:Io},hc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function fc(r){return r}function pc(r){return r.length===0?fc:r.length===1?r[0]:function(t){return r.reduce(function(i,s){return s(i)},t)}}var Oo=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var s=this,o=_c(e)?e:new ns(e,t,i);return Rr(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=No(t),new t(function(s,o){var n=new ns({next:function(a){try{e(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[hc]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pc(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=No(e),new e(function(i,s){var o;t.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},r.create=function(e){return new r(e)},r}();function No(r){var e;return(e=r!=null?r:nc.Promise)!==null&&e!==void 0?e:Promise}function mc(r){return r&&Ye(r.next)&&Ye(r.error)&&Ye(r.complete)}function _c(r){return r&&r instanceof xa||mc(r)&&wa(r)}var gc=va(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pa=function(r){_r(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new ko(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new gc},e.prototype.next=function(t){var i=this;Rr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=rs(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(t)}}catch(u){s={error:u}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},e.prototype.error=function(t){var i=this;Rr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var s=i.observers;s.length;)s.shift().error(t)}})},e.prototype.complete=function(){var t=this;Rr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?ya:(this.currentObservers=null,a.push(t),new ai(function(){i.currentObservers=null,os(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,s=i.hasError,o=i.thrownError,n=i.isStopped;s?t.error(o):n&&t.complete()},e.prototype.asObservable=function(){var t=new Oo;return t.source=this,t},e.create=function(t,i){return new ko(t,i)},e}(Oo),ko=function(r){_r(e,r);function e(t,i){var s=r.call(this)||this;return s.destination=t,s.source=i,s}return e.prototype.next=function(t){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,t)},e.prototype.error=function(t){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&s!==void 0?s:ya},e}(Pa),Ea={now:function(){return(Ea.delegate||Date).now()},delegate:void 0},bc=function(r){_r(e,r);function e(t,i,s){t===void 0&&(t=1/0),i===void 0&&(i=1/0),s===void 0&&(s=Ea);var o=r.call(this)||this;return o._bufferSize=t,o._windowTime=i,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,i),o}return e.prototype.next=function(t){var i=this,s=i.isStopped,o=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;s||(o.push(t),!n&&o.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!t.closed;l+=o?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,s=t._timestampProvider,o=t._buffer,n=t._infiniteTimeWindow,a=(n?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},e}(Pa);const Mo=[],Lo={},vc=(r,e=0)=>{if(Mo.indexOf(r)==-1){const t=new bc(e);Lo[r]=t,Mo.push(r)}return Lo[r]},mt=[];function yc(r,e){return{subscribe:li(r,e).subscribe}}function li(r,e=te){let t;const i=new Set;function s(a){if(ni(r,a)&&(r=a,t)){const l=!mt.length;for(const u of i)u[1](),mt.push(u,r);if(l){for(let u=0;u<mt.length;u+=2)mt[u][0](mt[u+1]);mt.length=0}}}function o(a){s(a(r))}function n(a,l=te){const u=[a,l];return i.add(u),i.size===1&&(t=e(s,o)||te),a(r),()=>{i.delete(u),i.size===0&&t&&(t(),t=null)}}return{set:s,update:o,subscribe:n}}function Lt(r,e,t){const i=!Array.isArray(r),s=i?[r]:r;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return yc(t,(n,a)=>{let l=!1;const u=[];let c=0,d=te;const f=()=>{if(c)return;d();const _=e(i?u[0]:u,n,a);o?n(_):d=Mt(_)?_:te},p=s.map((_,g)=>sa(_,w=>{u[g]=w,c&=~(1<<g),l&&f()},()=>{c|=1<<g}));return l=!0,f(),function(){Fe(p),d(),l=!1}})}function wc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var xc=function(e){return Pc(e)&&!Ec(e)};function Pc(r){return!!r&&typeof r=="object"}function Ec(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||Ac(r)}var Cc=typeof Symbol=="function"&&Symbol.for,Sc=Cc?Symbol.for("react.element"):60103;function Ac(r){return r.$$typeof===Sc}function Tc(r){return Array.isArray(r)?[]:{}}function sr(r,e){return e.clone!==!1&&e.isMergeableObject(r)?St(Tc(r),r,e):r}function Ic(r,e,t){return r.concat(e).map(function(i){return sr(i,t)})}function Oc(r,e){if(!e.customMerge)return St;var t=e.customMerge(r);return typeof t=="function"?t:St}function Nc(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function Bo(r){return Object.keys(r).concat(Nc(r))}function Ca(r,e){try{return e in r}catch(t){return!1}}function kc(r,e){return Ca(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function Mc(r,e,t){var i={};return t.isMergeableObject(r)&&Bo(r).forEach(function(s){i[s]=sr(r[s],t)}),Bo(e).forEach(function(s){kc(r,s)||(Ca(r,s)&&t.isMergeableObject(e[s])?i[s]=Oc(s,t)(r[s],e[s],t):i[s]=sr(e[s],t))}),i}function St(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Ic,t.isMergeableObject=t.isMergeableObject||xc,t.cloneUnlessOtherwiseSpecified=sr;var i=Array.isArray(e),s=Array.isArray(r),o=i===s;return o?i?t.arrayMerge(r,e,t):Mc(r,e,t):sr(e,t)}St.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,s){return St(i,s,t)},{})};var Lc=St,Bc=Lc;const Rc=wc(Bc);var as=function(r,e){return as=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},as(r,e)};function ui(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");as(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $e=function(){return $e=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$e.apply(this,arguments)};function Dc(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(t[i[s]]=r[i[s]]);return t}function Ii(r,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,o;i<s;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return r.concat(o||Array.prototype.slice.call(e))}function Oi(r,e){var t=e&&e.cache?e.cache:jc,i=e&&e.serializer?e.serializer:Uc,s=e&&e.strategy?e.strategy:Fc;return s(r,{cache:t,serializer:i})}function Hc(r){return r==null||typeof r=="number"||typeof r=="boolean"}function zc(r,e,t,i){var s=Hc(i)?i:t(i),o=e.get(s);return typeof o=="undefined"&&(o=r.call(this,i),e.set(s,o)),o}function Sa(r,e,t){var i=Array.prototype.slice.call(arguments,3),s=t(i),o=e.get(s);return typeof o=="undefined"&&(o=r.apply(this,i),e.set(s,o)),o}function Aa(r,e,t,i,s){return t.bind(e,r,i,s)}function Fc(r,e){var t=r.length===1?zc:Sa;return Aa(r,this,t,e.cache.create(),e.serializer)}function Vc(r,e){return Aa(r,this,Sa,e.cache.create(),e.serializer)}var Uc=function(){return JSON.stringify(arguments)},$c=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(e){return this.cache[e]},r.prototype.set=function(e,t){this.cache[e]=t},r}(),jc={create:function(){return new $c}},Ni={variadic:Vc},Yr=function(){return Yr=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Yr.apply(this,arguments)};var F;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var ie;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(ie||(ie={}));var At;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(At||(At={}));function Ro(r){return r.type===ie.literal}function Gc(r){return r.type===ie.argument}function Ta(r){return r.type===ie.number}function Ia(r){return r.type===ie.date}function Oa(r){return r.type===ie.time}function Na(r){return r.type===ie.select}function ka(r){return r.type===ie.plural}function qc(r){return r.type===ie.pound}function Ma(r){return r.type===ie.tag}function La(r){return!!(r&&typeof r=="object"&&r.type===At.number)}function ls(r){return!!(r&&typeof r=="object"&&r.type===At.dateTime)}var Ba=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wc=/(?:[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 Yc(r){var e={};return r.replace(Wc,function(t){var i=t.length;switch(t[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===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":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-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":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<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""}),e}var ue=function(){return ue=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ue.apply(this,arguments)};var Xc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Zc(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(Xc).filter(function(f){return f.length>0}),t=[],i=0,s=e;i<s.length;i++){var o=s[i],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Jc(r){return r.replace(/^(.*?)-/,"")}var Do=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ra=/^(@+)?(\+|#+)?[rs]?$/g,Kc=/(\*)(0+)|(#+)(0+)|(0+)/g,Da=/^(0+)$/;function Ho(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Ra,function(t,i,s){return typeof s!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):s==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof s=="string"?s.length:0)),""}),e}function Ha(r){switch(r){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 Qc(r){var e;if(r[0]==="E"&&r[1]==="E"?(e={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(e={notation:"scientific"},r=r.slice(1)),e){var t=r.slice(0,2);if(t==="+!"?(e.signDisplay="always",r=r.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",r=r.slice(2)),!Da.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function zo(r){var e={},t=Ha(r);return t||e}function ed(r){for(var e={},t=0,i=r;t<i.length;t++){var s=i[t];switch(s.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=s.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Jc(s.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=ue(ue(ue({},e),{notation:"scientific"}),s.options.reduce(function(l,u){return ue(ue({},l),zo(u))},{}));continue;case"engineering":e=ue(ue(ue({},e),{notation:"engineering"}),s.options.reduce(function(l,u){return ue(ue({},l),zo(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Kc,function(l,u,c,d,f,p){if(u)e.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Da.test(s.stem)){e.minimumIntegerDigits=s.stem.length;continue}if(Do.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Do,function(l,u,c,d,f,p){return c==="*"?e.minimumFractionDigits=u.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:f&&p?(e.minimumFractionDigits=f.length,e.maximumFractionDigits=f.length+p.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=s.options[0];o==="w"?e=ue(ue({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=ue(ue({},e),Ho(o)));continue}if(Ra.test(s.stem)){e=ue(ue({},e),Ho(s.stem));continue}var n=Ha(s.stem);n&&(e=ue(ue({},e),n));var a=Qc(s.stem);a&&(e=ue(ue({},e),a))}return e}var Tr={"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 td(r,e){for(var t="",i=0;i<r.length;i++){var s=r.charAt(i);if(s==="j"){for(var o=0;i+1<r.length&&r.charAt(i+1)===s;)o++,i++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=rd(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;n-- >0;)t=u+t}else s==="J"?t+="H":t+=s}return t}function rd(r){var e=r.hourCycle;if(e===void 0&&r.hourCycles&&r.hourCycles.length&&(e=r.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=r.language,i;t!=="root"&&(i=r.maximize().region);var s=Tr[i||""]||Tr[t||""]||Tr["".concat(t,"-001")]||Tr["001"];return s[0]}var ki,id=new RegExp("^".concat(Ba.source,"*")),sd=new RegExp("".concat(Ba.source,"*$"));function U(r,e){return{start:r,end:e}}var od=!!String.prototype.startsWith&&"_a".startsWith("a",1),nd=!!String.fromCodePoint,ad=!!Object.fromEntries,ld=!!String.prototype.codePointAt,ud=!!String.prototype.trimStart,cd=!!String.prototype.trimEnd,dd=!!Number.isSafeInteger,hd=dd?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},us=!0;try{var fd=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");us=((ki=fd.exec("a"))===null||ki===void 0?void 0:ki[0])==="a"}catch(r){us=!1}var Fo=od?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},cs=nd?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i="",s=e.length,o=0,n;s>o;){if(n=e[o++],n>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return i},Vo=ad?Object.fromEntries:function(e){for(var t={},i=0,s=e;i<s.length;i++){var o=s[i],n=o[0],a=o[1];t[n]=a}return t},za=ld?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var s=e.charCodeAt(t),o;return s<55296||s>56319||t+1===i||(o=e.charCodeAt(t+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},pd=ud?function(e){return e.trimStart()}:function(e){return e.replace(id,"")},md=cd?function(e){return e.trimEnd()}:function(e){return e.replace(sd,"")};function Fa(r,e){return new RegExp(r,e)}var ds;if(us){var Uo=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ds=function(e,t){var i;Uo.lastIndex=t;var s=Uo.exec(e);return(i=s[1])!==null&&i!==void 0?i:""}}else ds=function(e,t){for(var i=[];;){var s=za(e,t);if(s===void 0||Va(s)||vd(s))break;i.push(s),t+=s>=65536?2:1}return cs.apply(void 0,i)};var _d=function(){function r(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(e,t,i){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(e,i);if(n.err)return n;s.push(n.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:ie.pound,location:U(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(F.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&hs(this.peek()||0)){var n=this.parseTag(e,t);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(e,t);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},r.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ie.literal,value:"<".concat(s,"/>"),location:U(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!hs(this.char()))return this.error(F.INVALID_TAG,U(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(F.UNMATCHED_CLOSING_TAG,U(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ie.tag,value:s,children:n,location:U(i,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,U(a,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,U(i,this.clonePosition()))}else return this.error(F.INVALID_TAG,U(i,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&bd(this.char());)this.bump();return this.message.slice(e,this.offset())},r.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),s="";;){var o=this.tryParseQuote(t);if(o){s+=o;continue}var n=this.tryParseUnquoted(e,t);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=U(i,this.clonePosition());return{val:{type:ie.literal,value:s,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!gd(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(e){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(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return cs.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&e>0?null:(this.bump(),cs(i))},r.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,U(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(F.MALFORMED_ARGUMENT,U(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ie.argument,value:s,location:U(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition())):this.parseArgumentOptions(e,t,s,i);default:return this.error(F.MALFORMED_ARGUMENT,U(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=ds(this.message,t),s=t+i.length;this.bumpTo(s);var o=this.clonePosition(),n=U(e,o);return{value:i,location:n}},r.prototype.parseArgumentOptions=function(e,t,i,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,U(n,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 f=md(d.val);if(f.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var p=U(c,this.clonePosition());u={style:f,styleLocation:p}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=U(s,this.clonePosition());if(u&&Fo(u==null?void 0:u.style,"::",0)){var w=pd(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:ie.number,value:i,location:g,style:d.val},err:null}}else{if(w.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,g);var v=w;this.locale&&(v=td(w,this.locale));var f={type:At.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Yc(v):{}},y=a==="date"?ie.date:ie.time;return{val:{type:y,value:i,location:g,style:f},err:null}}}return{val:{type:a==="number"?ie.number:a==="date"?ie.date:ie.time,value:i,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,U(A,Yr({},A)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),x=0;if(a!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),I=this.parseIdentifierIfPossible(),x=d.val}var T=this.tryParsePluralOrSelectOptions(e,a,t,I);if(T.err)return T;var _=this.tryParseArgumentClose(s);if(_.err)return _;var B=U(s,this.clonePosition());return a==="select"?{val:{type:ie.select,value:i,options:Vo(T.val),location:B},err:null}:{val:{type:ie.plural,value:i,options:Vo(T.val),offset:x,pluralType:a==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,U(n,l))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(s,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=Zc(e)}catch(s){return this.error(F.INVALID_NUMBER_SKELETON,t)}return{val:{type:At.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?ed(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,i,s){for(var o,n=!1,a=[],l=new Set,u=s.value,c=s.location;;){if(u.length===0){var d=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=U(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,i);if(_.err)return _;var g=this.tryParseArgumentClose(p);if(g.err)return g;a.push([u,{value:_.val,location:U(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(t==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(F.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(e,t){var i=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=U(s,this.clonePosition());return o?(n*=i,hd(n)?{val:n,err:null}:this.error(t,l)):this.error(e,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=za(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},r.prototype.bumpIf=function(e){if(Fo(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&Va(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return i!=null?i:null},r}();function hs(r){return r>=97&&r<=122||r>=65&&r<=90}function gd(r){return hs(r)||r===47}function bd(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function Va(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function vd(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function fs(r){r.forEach(function(e){if(delete e.location,Na(e)||ka(e))for(var t in e.options)delete e.options[t].location,fs(e.options[t].value);else Ta(e)&&La(e.style)||(Ia(e)||Oa(e))&&ls(e.style)?delete e.style.location:Ma(e)&&fs(e.children)})}function yd(r,e){e===void 0&&(e={}),e=Yr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new _d(r,e).parse();if(t.err){var i=SyntaxError(F[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return e!=null&&e.captureLocation||fs(t.val),t.val}var Tt;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(Tt||(Tt={}));var ci=function(r){ui(e,r);function e(t,i,s){var o=r.call(this,t)||this;return o.code=i,o.originalMessage=s,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),$o=function(r){ui(e,r);function e(t,i,s,o){return r.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(s).join('", "'),'"'),Tt.INVALID_VALUE,o)||this}return e}(ci),wd=function(r){ui(e,r);function e(t,i,s){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Tt.INVALID_VALUE,s)||this}return e}(ci),xd=function(r){ui(e,r);function e(t,i){return r.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Tt.MISSING_VALUE,i)||this}return e}(ci),Se;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(Se||(Se={}));function Pd(r){return r.length<2?r:r.reduce(function(e,t){var i=e[e.length-1];return!i||i.type!==Se.literal||t.type!==Se.literal?e.push(t):i.value+=t.value,e},[])}function Ed(r){return typeof r=="function"}function Dr(r,e,t,i,s,o,n){if(r.length===1&&Ro(r[0]))return[{type:Se.literal,value:r[0].value}];for(var a=[],l=0,u=r;l<u.length;l++){var c=u[l];if(Ro(c)){a.push({type:Se.literal,value:c.value});continue}if(qc(c)){typeof o=="number"&&a.push({type:Se.literal,value:t.getNumberFormat(e).format(o)});continue}var d=c.value;if(!(s&&d in s))throw new xd(d,n);var f=s[d];if(Gc(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?Se.literal:Se.object,value:f});continue}if(Ia(c)){var p=typeof c.style=="string"?i.date[c.style]:ls(c.style)?c.style.parsedOptions:void 0;a.push({type:Se.literal,value:t.getDateTimeFormat(e,p).format(f)});continue}if(Oa(c)){var p=typeof c.style=="string"?i.time[c.style]:ls(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:Se.literal,value:t.getDateTimeFormat(e,p).format(f)});continue}if(Ta(c)){var p=typeof c.style=="string"?i.number[c.style]:La(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),a.push({type:Se.literal,value:t.getNumberFormat(e,p).format(f)});continue}if(Ma(c)){var _=c.children,g=c.value,w=s[g];if(!Ed(w))throw new wd(g,"function",n);var v=Dr(_,e,t,i,s,o),y=w(v.map(function(x){return x.value}));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map(function(x){return{type:typeof x=="string"?Se.literal:Se.object,value:x}}))}if(Na(c)){var A=c.options[f]||c.options.other;if(!A)throw new $o(c.value,f,Object.keys(c.options),n);a.push.apply(a,Dr(A.value,e,t,i,s));continue}if(ka(c)){var A=c.options["=".concat(f)];if(!A){if(!Intl.PluralRules)throw new ci(`Intl.PluralRules is not available in this environment.
20
20
  Try polyfilling it using "@formatjs/intl-pluralrules"
21
- `,Tt.MISSING_INTL_API,n);var I=t.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));A=c.options[I]||c.options.other}if(!A)throw new Vo(c.value,f,Object.keys(c.options),n);a.push.apply(a,Dr(A.value,e,t,i,s,f-(c.offset||0)));continue}}return wd(a)}function Pd(r,e){return e?$e($e($e({},r||{}),e||{}),Object.keys(r).reduce(function(t,i){return t[i]=$e($e({},r[i]),e[i]||{}),t},{})):r}function Ed(r,e){return e?Object.keys(r).reduce(function(t,i){return t[i]=Pd(r[i],e[i]),t},$e({},r)):r}function ki(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function Cd(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ii(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,Ti([void 0],t,!1)))},{cache:ki(r.number),strategy:Oi.variadic}),getDateTimeFormat:Ii(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,Ti([void 0],t,!1)))},{cache:ki(r.dateTime),strategy:Oi.variadic}),getPluralRules:Ii(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,Ti([void 0],t,!1)))},{cache:ki(r.pluralRules),strategy:Oi.variadic})}}var Sd=function(){function r(e,t,i,s){t===void 0&&(t=r.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==Se.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Dr(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=r.resolveLocale(t),typeof e=="string"){if(this.message=e,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=Bc(n,["formatters"]);this.ast=r.__parse(e,$e($e({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ed(r.formats,i),this.formatters=s&&s.formatters||Cd(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},r.__parse=bd,r.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"}}},r}();function Ad(r,e){if(e==null)return;if(e in r)return r[e];const t=e.split(".");let i=r;for(let s=0;s<t.length;s++)if(typeof i=="object"){if(s>0){const o=t.slice(s,t.length).join(".");if(o in i){i=i[o];break}}i=i[t[s]]}else i=void 0;return i}const et={},Td=(r,e,t)=>t&&(e in et||(et[e]={}),r in et[e]||(et[e][r]=t),t),Fa=(r,e)=>{if(e==null)return;if(e in et&&r in et[e])return et[e][r];const t=di(e);for(let i=0;i<t.length;i++){const s=t[i],o=Od(s,r);if(o)return Td(r,e,o)}};let Vs;const dt=li({});function Id(r){return Vs[r]||null}function Va(r){return r in Vs}function Od(r,e){if(!Va(r))return null;const t=Id(r);return Ad(t,e)}function Nd(r){if(r==null)return;const e=di(r);for(let t=0;t<e.length;t++){const i=e[t];if(Va(i))return i}}function Us(r,...e){delete et[r],dt.update(t=>(t[r]=Mc.all([t[r]||{},...e]),t))}Mt([dt],([r])=>Object.keys(r));dt.subscribe(r=>Vs=r);const Hr={};function kd(r,e){Hr[r].delete(e),Hr[r].size===0&&delete Hr[r]}function Ua(r){return Hr[r]}function Ld(r){return di(r).map(e=>{const t=Ua(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function hs(r){return r==null?!1:di(r).some(e=>{var t;return(t=Ua(e))==null?void 0:t.size})}function Md(r,e){return Promise.all(e.map(i=>(kd(r,i),i().then(s=>s.default||s)))).then(i=>Us(r,...i))}const $t={};function $a(r){if(!hs(r))return r in $t?$t[r]:Promise.resolve();const e=Ld(r);return $t[r]=Promise.all(e.map(([t,i])=>Md(t,i))).then(()=>{if(hs(r))return $a(r);delete $t[r]}),$t[r]}const Bd={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"}}},Rd={fallbackLocale:null,loadingDelay:200,formats:Bd,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Dd=Rd;function It(){return Dd}const Li=li(!1);var Hd=Object.defineProperty,zd=Object.defineProperties,Fd=Object.getOwnPropertyDescriptors,Uo=Object.getOwnPropertySymbols,Vd=Object.prototype.hasOwnProperty,Ud=Object.prototype.propertyIsEnumerable,$o=(r,e,t)=>e in r?Hd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,$d=(r,e)=>{for(var t in e||(e={}))Vd.call(e,t)&&$o(r,t,e[t]);if(Uo)for(var t of Uo(e))Ud.call(e,t)&&$o(r,t,e[t]);return r},jd=(r,e)=>zd(r,Fd(e));let fs;const Xr=li(null);function jo(r){return r.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function di(r,e=It().fallbackLocale){const t=jo(r);return e?[...new Set([...t,...jo(e)])]:t}function ht(){return fs!=null?fs:void 0}Xr.subscribe(r=>{fs=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const Gd=r=>{if(r&&Nd(r)&&hs(r)){const{loadingDelay:e}=It();let t;return typeof window!="undefined"&&ht()!=null&&e?t=window.setTimeout(()=>Li.set(!0),e):Li.set(!0),$a(r).then(()=>{Xr.set(r)}).finally(()=>{clearTimeout(t),Li.set(!1)})}return Xr.set(r)},Je=jd($d({},Xr),{set:Gd}),hi=r=>{const e=Object.create(null);return i=>{const s=JSON.stringify(i);return s in e?e[s]:e[s]=r(i)}};var qd=Object.defineProperty,Zr=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable,Go=(r,e,t)=>e in r?qd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,$s=(r,e)=>{for(var t in e||(e={}))ja.call(e,t)&&Go(r,t,e[t]);if(Zr)for(var t of Zr(e))Ga.call(e,t)&&Go(r,t,e[t]);return r},Bt=(r,e)=>{var t={};for(var i in r)ja.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Zr)for(var i of Zr(r))e.indexOf(i)<0&&Ga.call(r,i)&&(t[i]=r[i]);return t};const or=(r,e)=>{const{formats:t}=It();if(r in t&&e in t[r])return t[r][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${r} format.`)},Wd=hi(r=>{var e=r,{locale:t,format:i}=e,s=Bt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=or("number",i)),new Intl.NumberFormat(t,s)}),Yd=hi(r=>{var e=r,{locale:t,format:i}=e,s=Bt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=or("date",i):Object.keys(s).length===0&&(s=or("date","short")),new Intl.DateTimeFormat(t,s)}),Xd=hi(r=>{var e=r,{locale:t,format:i}=e,s=Bt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=or("time",i):Object.keys(s).length===0&&(s=or("time","short")),new Intl.DateTimeFormat(t,s)}),Zd=(r={})=>{var e=r,{locale:t=ht()}=e,i=Bt(e,["locale"]);return Wd($s({locale:t},i))},Jd=(r={})=>{var e=r,{locale:t=ht()}=e,i=Bt(e,["locale"]);return Yd($s({locale:t},i))},Kd=(r={})=>{var e=r,{locale:t=ht()}=e,i=Bt(e,["locale"]);return Xd($s({locale:t},i))},Qd=hi((r,e=ht())=>new Sd(r,e,It().formats,{ignoreTag:It().ignoreTag})),eh=(r,e={})=>{var t,i,s,o;let n=e;typeof r=="object"&&(n=r,r=n.id);const{values:a,locale:l=ht(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Fa(r,l);if(!c)c=(o=(s=(i=(t=It()).handleMissingMessage)==null?void 0:i.call(t,{locale:l,id:r,defaultValue:u}))!=null?s:u)!=null?o:r;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${r}" 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=Qd(c,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,f.message)}return d},th=(r,e)=>Kd(e).format(r),rh=(r,e)=>Jd(e).format(r),ih=(r,e)=>Zd(e).format(r),sh=(r,e=ht())=>Fa(r,e),qa=Mt([Je,dt],()=>eh);Mt([Je],()=>th);Mt([Je],()=>rh);Mt([Je],()=>ih);Mt([Je,dt],()=>sh);window.emWidgets={topic:gc};const oh=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;function nh(r){return Ue(this,null,function*(){var u,c,d;const e=new URL(`${r}/v1/player/legislation/registration/config/`),t=yield fetch(e.href,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);const i=yield t.json(),s=Array.isArray((u=i==null?void 0:i.content)==null?void 0:u.fields)?(c=i.content.fields.find(f=>(f==null?void 0:f.name)==="Password"))==null?void 0:c.validate:null;if(!s||typeof s.mandatory!="boolean"||s.type!=null&&s.type!=="string"||s.custom!=null&&!Array.isArray(s.custom))throw new Error("Registration password validation is missing or invalid.");const{mandatory:o,minLength:n,maxLength:a}=s;for(const f of[n,a])if(f!=null&&(!Number.isInteger(f)||f<0))throw new Error("Registration password length bound is invalid.");if(n!=null&&a!=null&&n>a)throw new Error("Registration password length bounds are inconsistent.");const l=[];for(const f of(d=s.custom)!=null?d:[]){if(!f||typeof f.rule!="string")throw new Error("Registration password rule is invalid.");if(f.rule==="regex"){if(typeof f.pattern!="string")throw new Error("Registration password regex pattern is invalid.");l.push(new RegExp(f.pattern))}}return f=>f.length===0?!o:(n==null||f.length>=n)&&(a==null||f.length<=a)&&l.every(p=>p.test(f))})}function ah({withLocale:r,translations:e}){Je.subscribe(t=>{t==null&&(dt.set(e),Je.set(r))})}function qo(r,e){Us(r,e)}function lh(r){Je.set(r)}const bt="__WIDGET_GLOBAL_STYLE_CACHE__";function Wa(r,e){if(r){const t=document.createElement("style");t.innerHTML=e,r.appendChild(t)}}function Ya(r,e){if(!r||!e)return;const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,r&&r.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Xa(r,e,t,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return t=uh(r,e),t;window[bt]||(window[bt]={}),t=ch(r,e);const o=t.unsubscribe.bind(t),n=()=>{if(window[bt][e]){const a=window[bt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[bt][e]}o()};return t.unsubscribe=n,t}function uh(r,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,i=>{r&&(t.innerHTML=i,r.appendChild(t))})}function ch(r,e){return window.emMessageBus.subscribe(e,t=>{if(!r)return;const i=r.getRootNode(),s=window[bt];let o=s[e]&&s[e].sheet;o?s[e].refCount=s[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(t),s[e]={sheet:o,refCount:1});const n=i.adoptedStyleSheets||[];n.includes(o)||(i.adoptedStyleSheets=[...n,o])})}const Wo={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta.",generalError:"Došlo je do pogreške prilikom obrade vašeg zahtjeva. Molimo pokušajte ponovno...",1e3:"Nevažeći, korišten ili istekao korisnički ključ",1164:"Vaša nova lozinka je previše slična prethodnoj. Molimo odaberite lozinku koju nedavno niste koristili."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。",generalError:"您的請求出現錯誤。請再試一次...",1e3:"無效、已使用或過期的用戶密鑰",1164:"您的新密碼與之前使用的密碼過於相似。請選擇一個最近未曾使用過的密碼。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget.",generalError:"Une erreur s'est produite lors de votre demande. Veuillez réessayer...",1e3:"Clé utilisateur invalide, utilisée ou expirée",1164:"Votre nouveau mot de passe est trop similaire à un ancien. Veuillez en choisir un que vous n’avez pas utilisé récemment."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış.",generalError:"İsteğiniz yapılırken bir hata oluştu. Lütfen tekrar deneyin...",1e3:"Geçersiz, kullanılmış veya süresi dolmuş kullanıcı anahtarı",1164:"Yeni şifreniz daha önce kullandığınız bir şifreye çok benziyor. Lütfen son zamanlarda kullanmadığınız farklı bir şifre seçin."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului.",generalError:"A apărut o eroare în timpul solicitării dvs. Vă rugăm să încercați din nou...",1e3:"Cheie de utilizator invalidă, utilizată sau expirată",1164:"Noua parolă este prea asemănătoare cu una utilizată anterior. Vă rugăm să alegeți o parolă pe care nu ați folosit-o recent."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget.",generalError:"Hubo un error al realizar su solicitud. Por favor, inténtelo de nuevo...",1e3:"Clave de usuario inválida, usada o expirada",1164:"Tu nueva contraseña es demasiado similar a una que usaste anteriormente. Por favor, elige una que no hayas usado recientemente."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget.",generalError:"Houve um erro ao fazer sua solicitação. Por favor, tente novamente...",1e3:"Chave de usuário inválida, usada ou expirada",1164:"A sua nova palavra-passe é demasiado semelhante a uma que já usou. Por favor, escolha uma que não tenha usado recentemente."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."}};function dh(r){let e,t,i;return{c(){e=S("svg"),t=S("path"),i=S("animateTransform"),h(i,"attributeName","transform"),h(i,"type","rotate"),h(i,"dur","0.75s"),h(i,"values","0 12 12;360 12 12"),h(i,"repeatCount","indefinite"),h(t,"d","M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"),h(e,"fill","currentColor"),h(e,"viewBox","0 0 24 24"),h(e,"xmlns","http://www.w3.org/2000/svg")},m(s,o){L(s,e,o),m(e,t),m(t,i)},p:te,i:te,o:te,d(s){s&&N(e)}}}class nr extends Fs{constructor(e){super(),Hs(this,e,null,dh,ni,{})}}zs(nr,{},[],[],!0);if(typeof window!="undefined"){let r=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralPlayerForgotPasswordSmsForm-r5pI22vd.cjs")).then(({default:e})=>{!customElements.get("general-player-forgot-password-sms-form")&&customElements.define("general-player-forgot-password-sms-form",e.element)})}/**
21
+ `,Tt.MISSING_INTL_API,n);var I=t.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));A=c.options[I]||c.options.other}if(!A)throw new $o(c.value,f,Object.keys(c.options),n);a.push.apply(a,Dr(A.value,e,t,i,s,f-(c.offset||0)));continue}}return Pd(a)}function Cd(r,e){return e?$e($e($e({},r||{}),e||{}),Object.keys(r).reduce(function(t,i){return t[i]=$e($e({},r[i]),e[i]||{}),t},{})):r}function Sd(r,e){return e?Object.keys(r).reduce(function(t,i){return t[i]=Cd(r[i],e[i]),t},$e({},r)):r}function Mi(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function Ad(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Oi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,Ii([void 0],t,!1)))},{cache:Mi(r.number),strategy:Ni.variadic}),getDateTimeFormat:Oi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,Ii([void 0],t,!1)))},{cache:Mi(r.dateTime),strategy:Ni.variadic}),getPluralRules:Oi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,Ii([void 0],t,!1)))},{cache:Mi(r.pluralRules),strategy:Ni.variadic})}}var Td=function(){function r(e,t,i,s){t===void 0&&(t=r.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==Se.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Dr(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=r.resolveLocale(t),typeof e=="string"){if(this.message=e,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=Dc(n,["formatters"]);this.ast=r.__parse(e,$e($e({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Sd(r.formats,i),this.formatters=s&&s.formatters||Ad(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},r.__parse=yd,r.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"}}},r}();function Id(r,e){if(e==null)return;if(e in r)return r[e];const t=e.split(".");let i=r;for(let s=0;s<t.length;s++)if(typeof i=="object"){if(s>0){const o=t.slice(s,t.length).join(".");if(o in i){i=i[o];break}}i=i[t[s]]}else i=void 0;return i}const et={},Od=(r,e,t)=>t&&(e in et||(et[e]={}),r in et[e]||(et[e][r]=t),t),Ua=(r,e)=>{if(e==null)return;if(e in et&&r in et[e])return et[e][r];const t=di(e);for(let i=0;i<t.length;i++){const s=t[i],o=kd(s,r);if(o)return Od(r,e,o)}};let $s;const dt=li({});function Nd(r){return $s[r]||null}function $a(r){return r in $s}function kd(r,e){if(!$a(r))return null;const t=Nd(r);return Id(t,e)}function Md(r){if(r==null)return;const e=di(r);for(let t=0;t<e.length;t++){const i=e[t];if($a(i))return i}}function js(r,...e){delete et[r],dt.update(t=>(t[r]=Rc.all([t[r]||{},...e]),t))}Lt([dt],([r])=>Object.keys(r));dt.subscribe(r=>$s=r);const Hr={};function Ld(r,e){Hr[r].delete(e),Hr[r].size===0&&delete Hr[r]}function ja(r){return Hr[r]}function Bd(r){return di(r).map(e=>{const t=ja(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function ps(r){return r==null?!1:di(r).some(e=>{var t;return(t=ja(e))==null?void 0:t.size})}function Rd(r,e){return Promise.all(e.map(i=>(Ld(r,i),i().then(s=>s.default||s)))).then(i=>js(r,...i))}const $t={};function Ga(r){if(!ps(r))return r in $t?$t[r]:Promise.resolve();const e=Bd(r);return $t[r]=Promise.all(e.map(([t,i])=>Rd(t,i))).then(()=>{if(ps(r))return Ga(r);delete $t[r]}),$t[r]}const Dd={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"}}},Hd={fallbackLocale:null,loadingDelay:200,formats:Dd,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},zd=Hd;function It(){return zd}const Li=li(!1);var Fd=Object.defineProperty,Vd=Object.defineProperties,Ud=Object.getOwnPropertyDescriptors,jo=Object.getOwnPropertySymbols,$d=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable,Go=(r,e,t)=>e in r?Fd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Gd=(r,e)=>{for(var t in e||(e={}))$d.call(e,t)&&Go(r,t,e[t]);if(jo)for(var t of jo(e))jd.call(e,t)&&Go(r,t,e[t]);return r},qd=(r,e)=>Vd(r,Ud(e));let ms;const Xr=li(null);function qo(r){return r.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function di(r,e=It().fallbackLocale){const t=qo(r);return e?[...new Set([...t,...qo(e)])]:t}function ht(){return ms!=null?ms:void 0}Xr.subscribe(r=>{ms=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const Wd=r=>{if(r&&Md(r)&&ps(r)){const{loadingDelay:e}=It();let t;return typeof window!="undefined"&&ht()!=null&&e?t=window.setTimeout(()=>Li.set(!0),e):Li.set(!0),Ga(r).then(()=>{Xr.set(r)}).finally(()=>{clearTimeout(t),Li.set(!1)})}return Xr.set(r)},Je=qd(Gd({},Xr),{set:Wd}),hi=r=>{const e=Object.create(null);return i=>{const s=JSON.stringify(i);return s in e?e[s]:e[s]=r(i)}};var Yd=Object.defineProperty,Zr=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Wa=Object.prototype.propertyIsEnumerable,Wo=(r,e,t)=>e in r?Yd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Gs=(r,e)=>{for(var t in e||(e={}))qa.call(e,t)&&Wo(r,t,e[t]);if(Zr)for(var t of Zr(e))Wa.call(e,t)&&Wo(r,t,e[t]);return r},Bt=(r,e)=>{var t={};for(var i in r)qa.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Zr)for(var i of Zr(r))e.indexOf(i)<0&&Wa.call(r,i)&&(t[i]=r[i]);return t};const or=(r,e)=>{const{formats:t}=It();if(r in t&&e in t[r])return t[r][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${r} format.`)},Xd=hi(r=>{var e=r,{locale:t,format:i}=e,s=Bt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=or("number",i)),new Intl.NumberFormat(t,s)}),Zd=hi(r=>{var e=r,{locale:t,format:i}=e,s=Bt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=or("date",i):Object.keys(s).length===0&&(s=or("date","short")),new Intl.DateTimeFormat(t,s)}),Jd=hi(r=>{var e=r,{locale:t,format:i}=e,s=Bt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=or("time",i):Object.keys(s).length===0&&(s=or("time","short")),new Intl.DateTimeFormat(t,s)}),Kd=(r={})=>{var e=r,{locale:t=ht()}=e,i=Bt(e,["locale"]);return Xd(Gs({locale:t},i))},Qd=(r={})=>{var e=r,{locale:t=ht()}=e,i=Bt(e,["locale"]);return Zd(Gs({locale:t},i))},eh=(r={})=>{var e=r,{locale:t=ht()}=e,i=Bt(e,["locale"]);return Jd(Gs({locale:t},i))},th=hi((r,e=ht())=>new Td(r,e,It().formats,{ignoreTag:It().ignoreTag})),rh=(r,e={})=>{var t,i,s,o;let n=e;typeof r=="object"&&(n=r,r=n.id);const{values:a,locale:l=ht(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ua(r,l);if(!c)c=(o=(s=(i=(t=It()).handleMissingMessage)==null?void 0:i.call(t,{locale:l,id:r,defaultValue:u}))!=null?s:u)!=null?o:r;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${r}" 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=th(c,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,f.message)}return d},ih=(r,e)=>eh(e).format(r),sh=(r,e)=>Qd(e).format(r),oh=(r,e)=>Kd(e).format(r),nh=(r,e=ht())=>Ua(r,e),Ya=Lt([Je,dt],()=>rh);Lt([Je],()=>ih);Lt([Je],()=>sh);Lt([Je],()=>oh);Lt([Je,dt],()=>nh);window.emWidgets={topic:vc};const ah=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;function lh(r){return Ue(this,null,function*(){var u,c,d;const e=new URL(`${r}/v1/player/legislation/registration/config/`),t=yield fetch(e.href,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);const i=yield t.json(),s=Array.isArray((u=i==null?void 0:i.content)==null?void 0:u.fields)?(c=i.content.fields.find(f=>(f==null?void 0:f.name)==="Password"))==null?void 0:c.validate:null;if(!s||typeof s.mandatory!="boolean"||s.type!=null&&s.type!=="string"||s.custom!=null&&!Array.isArray(s.custom))throw new Error("Registration password validation is missing or invalid.");const{mandatory:o,minLength:n,maxLength:a}=s;for(const f of[n,a])if(f!=null&&(!Number.isInteger(f)||f<0))throw new Error("Registration password length bound is invalid.");if(n!=null&&a!=null&&n>a)throw new Error("Registration password length bounds are inconsistent.");const l=[];for(const f of(d=s.custom)!=null?d:[]){if(!f||typeof f.rule!="string")throw new Error("Registration password rule is invalid.");if(f.rule==="regex"){if(typeof f.pattern!="string")throw new Error("Registration password regex pattern is invalid.");l.push(new RegExp(f.pattern))}}return f=>f.length===0?!o:(n==null||f.length>=n)&&(a==null||f.length<=a)&&l.every(p=>p.test(f))})}function uh({withLocale:r,translations:e}){Je.subscribe(t=>{t==null&&(dt.set(e),Je.set(r))})}function Bi(r,e){js(r,e)}function ch(r){Je.set(r)}const bt="__WIDGET_GLOBAL_STYLE_CACHE__";function Xa(r,e){if(r){const t=document.createElement("style");t.innerHTML=e,r.appendChild(t)}}function Za(r,e){if(!r||!e)return;const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,r&&r.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Ja(r,e,t,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return t=dh(r,e),t;window[bt]||(window[bt]={}),t=hh(r,e);const o=t.unsubscribe.bind(t),n=()=>{if(window[bt][e]){const a=window[bt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[bt][e]}o()};return t.unsubscribe=n,t}function dh(r,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,i=>{r&&(t.innerHTML=i,r.appendChild(t))})}function hh(r,e){return window.emMessageBus.subscribe(e,t=>{if(!r)return;const i=r.getRootNode(),s=window[bt];let o=s[e]&&s[e].sheet;o?s[e].refCount=s[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(t),s[e]={sheet:o,refCount:1});const n=i.adoptedStyleSheets||[];n.includes(o)||(i.adoptedStyleSheets=[...n,o])})}const Yo={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta.",generalError:"Došlo je do pogreške prilikom obrade vašeg zahtjeva. Molimo pokušajte ponovno...",1e3:"Nevažeći, korišten ili istekao korisnički ključ",1164:"Vaša nova lozinka je previše slična prethodnoj. Molimo odaberite lozinku koju nedavno niste koristili."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。",generalError:"您的請求出現錯誤。請再試一次...",1e3:"無效、已使用或過期的用戶密鑰",1164:"您的新密碼與之前使用的密碼過於相似。請選擇一個最近未曾使用過的密碼。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget.",generalError:"Une erreur s'est produite lors de votre demande. Veuillez réessayer...",1e3:"Clé utilisateur invalide, utilisée ou expirée",1164:"Votre nouveau mot de passe est trop similaire à un ancien. Veuillez en choisir un que vous n’avez pas utilisé récemment."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış.",generalError:"İsteğiniz yapılırken bir hata oluştu. Lütfen tekrar deneyin...",1e3:"Geçersiz, kullanılmış veya süresi dolmuş kullanıcı anahtarı",1164:"Yeni şifreniz daha önce kullandığınız bir şifreye çok benziyor. Lütfen son zamanlarda kullanmadığınız farklı bir şifre seçin."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului.",generalError:"A apărut o eroare în timpul solicitării dvs. Vă rugăm să încercați din nou...",1e3:"Cheie de utilizator invalidă, utilizată sau expirată",1164:"Noua parolă este prea asemănătoare cu una utilizată anterior. Vă rugăm să alegeți o parolă pe care nu ați folosit-o recent."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget.",generalError:"Hubo un error al realizar su solicitud. Por favor, inténtelo de nuevo...",1e3:"Clave de usuario inválida, usada o expirada",1164:"Tu nueva contraseña es demasiado similar a una que usaste anteriormente. Por favor, elige una que no hayas usado recientemente."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget.",generalError:"Houve um erro ao fazer sua solicitação. Por favor, tente novamente...",1e3:"Chave de usuário inválida, usada ou expirada",1164:"A sua nova palavra-passe é demasiado semelhante a uma que já usou. Por favor, escolha uma que não tenha usado recentemente."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."}};function fh(r){let e,t,i;return{c(){e=S("svg"),t=S("path"),i=S("animateTransform"),h(i,"attributeName","transform"),h(i,"type","rotate"),h(i,"dur","0.75s"),h(i,"values","0 12 12;360 12 12"),h(i,"repeatCount","indefinite"),h(t,"d","M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"),h(e,"fill","currentColor"),h(e,"viewBox","0 0 24 24"),h(e,"xmlns","http://www.w3.org/2000/svg")},m(s,o){M(s,e,o),m(e,t),m(t,i)},p:te,i:te,o:te,d(s){s&&N(e)}}}class nr extends Us{constructor(e){super(),Fs(this,e,null,fh,ni,{})}}Vs(nr,{},[],[],!0);if(typeof window!="undefined"){let r=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralPlayerForgotPasswordSmsForm-BdHpkBJQ.cjs")).then(({default:e})=>{!customElements.get("general-player-forgot-password-sms-form")&&customElements.define("general-player-forgot-password-sms-form",e.element)})}/**
22
22
  * @license
23
23
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
24
24
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -26,43 +26,43 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
26
26
  * @license
27
27
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
28
28
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
29
- */class hh extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Rt(hh);/**
29
+ */class ph extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Rt(ph);/**
30
30
  * @license
31
31
  * Copyright 2019 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */const zr=globalThis,js=zr.ShadowRoot&&(zr.ShadyCSS===void 0||zr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gs=Symbol(),Yo=new WeakMap;let qs=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Gs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(js&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Yo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Yo.set(t,e))}return e}toString(){return this.cssText}};const fh=r=>new qs(typeof r=="string"?r:r+"",void 0,Gs),W=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new qs(t,r,Gs)},Za=(r,e)=>{if(js)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),s=zr.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,r.appendChild(i)}},Xo=js?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return fh(t)})(r):r;/**
33
+ */const zr=globalThis,qs=zr.ShadowRoot&&(zr.ShadyCSS===void 0||zr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ws=Symbol(),Xo=new WeakMap;let Ys=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ws)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(qs&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Xo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Xo.set(t,e))}return e}toString(){return this.cssText}};const mh=r=>new Ys(typeof r=="string"?r:r+"",void 0,Ws),W=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new Ys(t,r,Ws)},Ka=(r,e)=>{if(qs)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),s=zr.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,r.appendChild(i)}},Zo=qs?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return mh(t)})(r):r;/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */const{is:ph,defineProperty:mh,getOwnPropertyDescriptor:_h,getOwnPropertyNames:gh,getOwnPropertySymbols:bh,getPrototypeOf:vh}=Object,tt=globalThis,Zo=tt.trustedTypes,yh=Zo?Zo.emptyScript:"",Mi=tt.reactiveElementPolyfillSupport,Kt=(r,e)=>r,ps={toAttribute(r,e){switch(e){case Boolean:r=r?yh:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},Ja=(r,e)=>!ph(r,e),Jo={attribute:!0,type:String,converter:ps,reflect:!1,useDefault:!1,hasChanged:Ja};var Zn,Jn;(Zn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Jn=tt.litPropertyMetadata)!=null||(tt.litPropertyMetadata=new WeakMap);let vt=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Jo){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&mh(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){var n;const{get:s,set:o}=(n=_h(this.prototype,e))!=null?n:{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Jo}static _$Ei(){if(this.hasOwnProperty(Kt("elementProperties")))return;const e=vh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Kt("properties"))){const t=this.properties,i=[...gh(t),...bh(t)];for(const s of i)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(Xo(s))}else e!==void 0&&t.push(Xo(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Za(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var o;const i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:ps).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var o,n,a;const i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const l=i.getPropertyOptions(s),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:ps;this._$Em=s;const c=u.fromAttribute(t,l.type);this[s]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:c,this._$Em=null}}requestUpdate(e,t,i,s=!1,o){var n,a;if(e!==void 0){const l=this.constructor;if(s===!1&&(o=this[e]),i!=null||(i=l.getPropertyOptions(e)),!(((n=i.hasChanged)!=null?n:Ja)(o,t)||i.useDefault&&i.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:s,wrapped:o},n){var a,l,u;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),o!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),s===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,a]of o){const{wrapped:l}=a,u=this[n];l!==!0||this._$AL.has(n)||u===void 0||this.C(n,void 0,a,u)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};var Kn;vt.elementStyles=[],vt.shadowRootOptions={mode:"open"},vt[Kt("elementProperties")]=new Map,vt[Kt("finalized")]=new Map,Mi==null||Mi({ReactiveElement:vt}),((Kn=tt.reactiveElementVersions)!=null?Kn:tt.reactiveElementVersions=[]).push("2.1.2");/**
37
+ */const{is:_h,defineProperty:gh,getOwnPropertyDescriptor:bh,getOwnPropertyNames:vh,getOwnPropertySymbols:yh,getPrototypeOf:wh}=Object,tt=globalThis,Jo=tt.trustedTypes,xh=Jo?Jo.emptyScript:"",Ri=tt.reactiveElementPolyfillSupport,Kt=(r,e)=>r,_s={toAttribute(r,e){switch(e){case Boolean:r=r?xh:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},Qa=(r,e)=>!_h(r,e),Ko={attribute:!0,type:String,converter:_s,reflect:!1,useDefault:!1,hasChanged:Qa};var Jn,Kn;(Jn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Kn=tt.litPropertyMetadata)!=null||(tt.litPropertyMetadata=new WeakMap);let vt=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ko){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&gh(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){var n;const{get:s,set:o}=(n=bh(this.prototype,e))!=null?n:{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Ko}static _$Ei(){if(this.hasOwnProperty(Kt("elementProperties")))return;const e=wh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Kt("properties"))){const t=this.properties,i=[...vh(t),...yh(t)];for(const s of i)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(Zo(s))}else e!==void 0&&t.push(Zo(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Ka(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var o;const i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:_s).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var o,n,a;const i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const l=i.getPropertyOptions(s),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:_s;this._$Em=s;const c=u.fromAttribute(t,l.type);this[s]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:c,this._$Em=null}}requestUpdate(e,t,i,s=!1,o){var n,a;if(e!==void 0){const l=this.constructor;if(s===!1&&(o=this[e]),i!=null||(i=l.getPropertyOptions(e)),!(((n=i.hasChanged)!=null?n:Qa)(o,t)||i.useDefault&&i.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:s,wrapped:o},n){var a,l,u;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),o!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),s===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,a]of o){const{wrapped:l}=a,u=this[n];l!==!0||this._$AL.has(n)||u===void 0||this.C(n,void 0,a,u)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};var Qn;vt.elementStyles=[],vt.shadowRootOptions={mode:"open"},vt[Kt("elementProperties")]=new Map,vt[Kt("finalized")]=new Map,Ri==null||Ri({ReactiveElement:vt}),((Qn=tt.reactiveElementVersions)!=null?Qn:tt.reactiveElementVersions=[]).push("2.1.2");/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const Qt=globalThis,Ko=r=>r,Jr=Qt.trustedTypes,Qo=Jr?Jr.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ka="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,Qa="?"+Qe,wh=`<${Qa}>`,ct=document,ar=()=>ct.createComment(""),lr=r=>r===null||typeof r!="object"&&typeof r!="function",Ws=Array.isArray,xh=r=>Ws(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Bi=`[
42
- \f\r]`,jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,en=/-->/g,tn=/>/g,it=RegExp(`>|${Bi}(?:([^\\s"'>=/]+)(${Bi}*=${Bi}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),rn=/'/g,sn=/"/g,el=/^(?:script|style|textarea|title)$/i,Ot=Symbol.for("lit-noChange"),ye=Symbol.for("lit-nothing"),on=new WeakMap,ot=ct.createTreeWalker(ct,129);function tl(r,e){if(!Ws(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qo!==void 0?Qo.createHTML(e):e}const Ph=(r,e)=>{const t=r.length-1,i=[];let s,o=e===2?"<svg>":e===3?"<math>":"",n=jt;for(let a=0;a<t;a++){const l=r[a];let u,c,d=-1,f=0;for(;f<l.length&&(n.lastIndex=f,c=n.exec(l),c!==null);)f=n.lastIndex,n===jt?c[1]==="!--"?n=en:c[1]!==void 0?n=tn:c[2]!==void 0?(el.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=it):c[3]!==void 0&&(n=it):n===it?c[0]===">"?(n=s!=null?s:jt,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?it:c[3]==='"'?sn:rn):n===sn||n===rn?n=it:n===en||n===tn?n=jt:(n=it,s=void 0);const p=n===it&&r[a+1].startsWith("/>")?" ":"";o+=n===jt?l+wh:d>=0?(i.push(u),l.slice(0,d)+Ka+l.slice(d)+Qe+p):l+Qe+(d===-2?a:p)}return[tl(r,o+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class ur{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,n=0;const a=e.length-1,l=this.parts,[u,c]=Ph(e,t);if(this.el=ur.createElement(u,i),ot.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=ot.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(Ka)){const f=c[n++],p=s.getAttribute(d).split(Qe),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:p,ctor:_[1]==="."?Ch:_[1]==="?"?Sh:_[1]==="@"?Ah:fi}),s.removeAttribute(d)}else d.startsWith(Qe)&&(l.push({type:6,index:o}),s.removeAttribute(d));if(el.test(s.tagName)){const d=s.textContent.split(Qe),f=d.length-1;if(f>0){s.textContent=Jr?Jr.emptyScript:"";for(let p=0;p<f;p++)s.append(d[p],ar()),ot.nextNode(),l.push({type:2,index:++o});s.append(d[f],ar())}}}else if(s.nodeType===8)if(s.data===Qa)l.push({type:2,index:o});else{let d=-1;for(;(d=s.data.indexOf(Qe,d+1))!==-1;)l.push({type:7,index:o}),d+=Qe.length-1}o++}}static createElement(e,t){const i=ct.createElement("template");return i.innerHTML=e,i}}function Nt(r,e,t=r,i){var n,a,l;if(e===Ot)return e;let s=i!==void 0?(n=t._$Co)==null?void 0:n[i]:t._$Cl;const o=lr(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(r),s._$AT(r,t,i)),i!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[i]=s:t._$Cl=s),s!==void 0&&(e=Nt(r,s._$AS(r,e.values),s,i)),e}class Eh{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:t},parts:i}=this._$AD,s=((u=e==null?void 0:e.creationScope)!=null?u:ct).importNode(t,!0);ot.currentNode=s;let o=ot.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new gr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Th(o,this,e)),this._$AV.push(c),l=i[++a]}n!==(l==null?void 0:l.index)&&(o=ot.nextNode(),n++)}return ot.currentNode=ct,s}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class gr{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,s){var o;this.type=2,this._$AH=ye,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Nt(this,e,t),lr(e)?e===ye||e==null||e===""?(this._$AH!==ye&&this._$AR(),this._$AH=ye):e!==this._$AH&&e!==Ot&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ye&&lr(this._$AH)?this._$AA.nextSibling.data=e:this.T(ct.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ur.createElement(tl(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(t);else{const n=new Eh(s,this),a=n.u(this.options);n.p(t),this.T(a),this._$AH=n}}_$AC(e){let t=on.get(e.strings);return t===void 0&&on.set(e.strings,t=new ur(e)),t}k(e){Ws(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const o of e)s===t.length?t.push(i=new gr(this.O(ar()),this.O(ar()),this,this.options)):i=t[s],i._$AI(o),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const s=Ko(e).nextSibling;Ko(e).remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class fi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,o){this.type=1,this._$AH=ye,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ye}_$AI(e,t=this,i,s){const o=this.strings;let n=!1;if(o===void 0)e=Nt(this,e,t,0),n=!lr(e)||e!==this._$AH&&e!==Ot,n&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=Nt(this,a[i+l],t,l),u===Ot&&(u=this._$AH[l]),n||(n=!lr(u)||u!==this._$AH[l]),u===ye?e=ye:e!==ye&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}n&&!s&&this.j(e)}j(e){e===ye?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Ch extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ye?void 0:e}}class Sh extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ye)}}class Ah extends fi{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=Nt(this,e,t,0))!=null?n:ye)===Ot)return;const i=this._$AH,s=e===ye&&i!==ye||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ye&&(i===ye||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Th{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Nt(this,e)}}const Ri=Qt.litHtmlPolyfillSupport;var Qn;Ri==null||Ri(ur,gr),((Qn=Qt.litHtmlVersions)!=null?Qn:Qt.litHtmlVersions=[]).push("3.3.3");const Ih=(r,e,t)=>{var o,n;const i=(o=t==null?void 0:t.renderBefore)!=null?o:e;let s=i._$litPart$;if(s===void 0){const a=(n=t==null?void 0:t.renderBefore)!=null?n:null;i._$litPart$=s=new gr(e.insertBefore(ar(),a),a,void 0,t!=null?t:{})}return s._$AI(r),s};/**
41
+ */const Qt=globalThis,Qo=r=>r,Jr=Qt.trustedTypes,en=Jr?Jr.createPolicy("lit-html",{createHTML:r=>r}):void 0,el="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,tl="?"+Qe,Ph=`<${tl}>`,ct=document,ar=()=>ct.createComment(""),lr=r=>r===null||typeof r!="object"&&typeof r!="function",Xs=Array.isArray,Eh=r=>Xs(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Di=`[
42
+ \f\r]`,jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tn=/-->/g,rn=/>/g,it=RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),sn=/'/g,on=/"/g,rl=/^(?:script|style|textarea|title)$/i,Ot=Symbol.for("lit-noChange"),ye=Symbol.for("lit-nothing"),nn=new WeakMap,ot=ct.createTreeWalker(ct,129);function il(r,e){if(!Xs(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return en!==void 0?en.createHTML(e):e}const Ch=(r,e)=>{const t=r.length-1,i=[];let s,o=e===2?"<svg>":e===3?"<math>":"",n=jt;for(let a=0;a<t;a++){const l=r[a];let u,c,d=-1,f=0;for(;f<l.length&&(n.lastIndex=f,c=n.exec(l),c!==null);)f=n.lastIndex,n===jt?c[1]==="!--"?n=tn:c[1]!==void 0?n=rn:c[2]!==void 0?(rl.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=it):c[3]!==void 0&&(n=it):n===it?c[0]===">"?(n=s!=null?s:jt,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?it:c[3]==='"'?on:sn):n===on||n===sn?n=it:n===tn||n===rn?n=jt:(n=it,s=void 0);const p=n===it&&r[a+1].startsWith("/>")?" ":"";o+=n===jt?l+Ph:d>=0?(i.push(u),l.slice(0,d)+el+l.slice(d)+Qe+p):l+Qe+(d===-2?a:p)}return[il(r,o+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class ur{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,n=0;const a=e.length-1,l=this.parts,[u,c]=Ch(e,t);if(this.el=ur.createElement(u,i),ot.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=ot.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(el)){const f=c[n++],p=s.getAttribute(d).split(Qe),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:p,ctor:_[1]==="."?Ah:_[1]==="?"?Th:_[1]==="@"?Ih:fi}),s.removeAttribute(d)}else d.startsWith(Qe)&&(l.push({type:6,index:o}),s.removeAttribute(d));if(rl.test(s.tagName)){const d=s.textContent.split(Qe),f=d.length-1;if(f>0){s.textContent=Jr?Jr.emptyScript:"";for(let p=0;p<f;p++)s.append(d[p],ar()),ot.nextNode(),l.push({type:2,index:++o});s.append(d[f],ar())}}}else if(s.nodeType===8)if(s.data===tl)l.push({type:2,index:o});else{let d=-1;for(;(d=s.data.indexOf(Qe,d+1))!==-1;)l.push({type:7,index:o}),d+=Qe.length-1}o++}}static createElement(e,t){const i=ct.createElement("template");return i.innerHTML=e,i}}function Nt(r,e,t=r,i){var n,a,l;if(e===Ot)return e;let s=i!==void 0?(n=t._$Co)==null?void 0:n[i]:t._$Cl;const o=lr(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(r),s._$AT(r,t,i)),i!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[i]=s:t._$Cl=s),s!==void 0&&(e=Nt(r,s._$AS(r,e.values),s,i)),e}class Sh{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:t},parts:i}=this._$AD,s=((u=e==null?void 0:e.creationScope)!=null?u:ct).importNode(t,!0);ot.currentNode=s;let o=ot.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new gr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Oh(o,this,e)),this._$AV.push(c),l=i[++a]}n!==(l==null?void 0:l.index)&&(o=ot.nextNode(),n++)}return ot.currentNode=ct,s}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class gr{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,s){var o;this.type=2,this._$AH=ye,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Nt(this,e,t),lr(e)?e===ye||e==null||e===""?(this._$AH!==ye&&this._$AR(),this._$AH=ye):e!==this._$AH&&e!==Ot&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Eh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ye&&lr(this._$AH)?this._$AA.nextSibling.data=e:this.T(ct.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ur.createElement(il(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(t);else{const n=new Sh(s,this),a=n.u(this.options);n.p(t),this.T(a),this._$AH=n}}_$AC(e){let t=nn.get(e.strings);return t===void 0&&nn.set(e.strings,t=new ur(e)),t}k(e){Xs(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const o of e)s===t.length?t.push(i=new gr(this.O(ar()),this.O(ar()),this,this.options)):i=t[s],i._$AI(o),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const s=Qo(e).nextSibling;Qo(e).remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class fi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,o){this.type=1,this._$AH=ye,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ye}_$AI(e,t=this,i,s){const o=this.strings;let n=!1;if(o===void 0)e=Nt(this,e,t,0),n=!lr(e)||e!==this._$AH&&e!==Ot,n&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=Nt(this,a[i+l],t,l),u===Ot&&(u=this._$AH[l]),n||(n=!lr(u)||u!==this._$AH[l]),u===ye?e=ye:e!==ye&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}n&&!s&&this.j(e)}j(e){e===ye?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Ah extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ye?void 0:e}}class Th extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ye)}}class Ih extends fi{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=Nt(this,e,t,0))!=null?n:ye)===Ot)return;const i=this._$AH,s=e===ye&&i!==ye||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ye&&(i===ye||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Oh{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Nt(this,e)}}const Hi=Qt.litHtmlPolyfillSupport;var ea;Hi==null||Hi(ur,gr),((ea=Qt.litHtmlVersions)!=null?ea:Qt.litHtmlVersions=[]).push("3.3.3");const Nh=(r,e,t)=>{var o,n;const i=(o=t==null?void 0:t.renderBefore)!=null?o:e;let s=i._$litPart$;if(s===void 0){const a=(n=t==null?void 0:t.renderBefore)!=null?n:null;i._$litPart$=s=new gr(e.insertBefore(ar(),a),a,void 0,t!=null?t:{})}return s._$AI(r),s};/**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const at=globalThis;class Pt extends vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ih(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Ot}}var ea;Pt._$litElement$=!0,Pt.finalized=!0,(ea=at.litElementHydrateSupport)==null||ea.call(at,{LitElement:Pt});const Di=at.litElementPolyfillSupport;Di==null||Di({LitElement:Pt});var ta;((ta=at.litElementVersions)!=null?ta:at.litElementVersions=[]).push("4.2.2");/**
47
+ */const at=globalThis;class Pt extends vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Nh(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Ot}}var ta;Pt._$litElement$=!0,Pt.finalized=!0,(ta=at.litElementHydrateSupport)==null||ta.call(at,{LitElement:Pt});const zi=at.litElementPolyfillSupport;zi==null||zi({LitElement:Pt});var ra;((ra=at.litElementVersions)!=null?ra:at.litElementVersions=[]).push("4.2.2");/**
48
48
  * @license
49
49
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
50
50
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
51
- */const Oh=r=>class extends r{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,i,s){super.attributeChangedCallback(t,i,s),t==="theme"&&this._set_theme(s)}};/**
51
+ */const kh=r=>class extends r{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,i,s){super.attributeChangedCallback(t,i,s),t==="theme"&&this._set_theme(s)}};/**
52
52
  * @license
53
53
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
54
54
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
55
- */const rl=[],ms=new Set,Ys=new Set;function il(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function Nh(r){return il(customElements.get(r))}function kh(r=[]){return[r].flat(1/0).filter(e=>e instanceof qs?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function sl(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function ol(r){return r.map(e=>e.cssText).join(`
56
- `)}const Kr="vaadin-themable-mixin-style";function Lh(r,e){const t=document.createElement("style");t.id=Kr,t.textContent=ol(r),e.content.appendChild(t)}function Mh(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof Pt)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Za(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(Kr),i=e.prototype._template;t.textContent=i.content.getElementById(Kr).textContent}}function Bh(r){ms.forEach(e=>{const t=e.deref();t instanceof r?Mh(t):t||ms.delete(e)})}function nl(r){if(r.prototype instanceof Pt)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(Kr).textContent=ol(r.getStylesForThis())}Ys.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&nl(t)})}function Rh(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(s=>e.some(o=>o.cssText===s.cssText)))}function Pe(r,e,t={}){e=kh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):rl.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&Ys.forEach(i=>{if(sl(r,i)&&Nh(i)){const s=customElements.get(i);Rh(s,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),nl(s),Bh(s)}})}function _s(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():rl}function Dh(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function al(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=_s().find(s=>s.moduleId===t);i?e.push(...al(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function Hh(r){const e=`${r}-default-theme`,t=_s().filter(i=>i.moduleId!==e&&sl(i.themeFor,r)).map(i=>Cr(Ke({},i),{styles:[...al(i),...i.styles],includePriority:Dh(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return t.length>0?t:_s().filter(i=>i.moduleId===e)}const pi=r=>class extends Oh(r){constructor(){super(),ms.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ys.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||il(this)||Lh(this.getStylesForThis(),t)}static finalizeStyles(t){const i=this.getStylesForThis();return t?[...[t].flat(1/0),...i]:i}static getStylesForThis(){const t=r.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...t,...s,...Hh(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,a)=>a===o.lastIndexOf(n))}};/**
55
+ */const sl=[],gs=new Set,Zs=new Set;function ol(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function Mh(r){return ol(customElements.get(r))}function Lh(r=[]){return[r].flat(1/0).filter(e=>e instanceof Ys?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function nl(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function al(r){return r.map(e=>e.cssText).join(`
56
+ `)}const Kr="vaadin-themable-mixin-style";function Bh(r,e){const t=document.createElement("style");t.id=Kr,t.textContent=al(r),e.content.appendChild(t)}function Rh(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof Pt)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Ka(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(Kr),i=e.prototype._template;t.textContent=i.content.getElementById(Kr).textContent}}function Dh(r){gs.forEach(e=>{const t=e.deref();t instanceof r?Rh(t):t||gs.delete(e)})}function ll(r){if(r.prototype instanceof Pt)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(Kr).textContent=al(r.getStylesForThis())}Zs.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&ll(t)})}function Hh(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(s=>e.some(o=>o.cssText===s.cssText)))}function Pe(r,e,t={}){e=Lh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):sl.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&Zs.forEach(i=>{if(nl(r,i)&&Mh(i)){const s=customElements.get(i);Hh(s,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),ll(s),Dh(s)}})}function bs(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():sl}function zh(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function ul(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=bs().find(s=>s.moduleId===t);i?e.push(...ul(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function Fh(r){const e=`${r}-default-theme`,t=bs().filter(i=>i.moduleId!==e&&nl(i.themeFor,r)).map(i=>Cr(Ke({},i),{styles:[...ul(i),...i.styles],includePriority:zh(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return t.length>0?t:bs().filter(i=>i.moduleId===e)}const pi=r=>class extends kh(r){constructor(){super(),gs.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Zs.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||ol(this)||Bh(this.getStylesForThis(),t)}static finalizeStyles(t){const i=this.getStylesForThis();return t?[...[t].flat(1/0),...i]:i}static getStylesForThis(){const t=r.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...t,...s,...Fh(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,a)=>a===o.lastIndexOf(n))}};/**
57
57
  * @license
58
58
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
59
59
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
60
- */const zh=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
61
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},Dt=(r,...e)=>{zh(`lumo-${r}`,e)};/**
60
+ */const Vh=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
61
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},Dt=(r,...e)=>{Vh(`lumo-${r}`,e)};/**
62
62
  * @license
63
63
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
64
64
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
65
- */const Fh=W`
65
+ */const Uh=W`
66
66
  :host {
67
67
  /* Base (background) */
68
68
  --lumo-base-color: #fff;
@@ -147,7 +147,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
147
147
  --lumo-disabled-text-color: GrayText;
148
148
  }
149
149
  }
150
- `;Dt("color-props",Fh);const Vh=W`
150
+ `;Dt("color-props",Uh);const $h=W`
151
151
  [theme~='dark'] {
152
152
  /* Base (background) */
153
153
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -265,11 +265,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
265
265
  pre code {
266
266
  background: transparent;
267
267
  }
268
- `;Pe("",Vh,{moduleId:"lumo-color"});/**
268
+ `;Pe("",$h,{moduleId:"lumo-color"});/**
269
269
  * @license
270
270
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
271
271
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
272
- */const Uh=W`
272
+ */const jh=W`
273
273
  :host {
274
274
  /* Square */
275
275
  --lumo-space-xs: 0.25rem;
@@ -292,11 +292,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
292
292
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
293
293
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
294
294
  }
295
- `;Dt("spacing-props",Uh);/**
295
+ `;Dt("spacing-props",jh);/**
296
296
  * @license
297
297
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
298
298
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
299
- */const $h=W`
299
+ */const Gh=W`
300
300
  :host {
301
301
  /* Border radius */
302
302
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -396,11 +396,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
396
396
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
397
397
  --vaadin-input-field-value-font-weight: 500;
398
398
  }
399
- `;Dt("style-props",$h);/**
399
+ `;Dt("style-props",Gh);/**
400
400
  * @license
401
401
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
402
402
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
403
- */const jh=W`
403
+ */const qh=W`
404
404
  @font-face {
405
405
  font-family: 'lumo-icons';
406
406
  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==)
@@ -453,11 +453,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
453
453
  --lumo-icons-upload: '\\ea29';
454
454
  --lumo-icons-user: '\\ea2a';
455
455
  }
456
- `;Dt("font-icons",jh);/**
456
+ `;Dt("font-icons",qh);/**
457
457
  * @license
458
458
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
459
459
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
460
- */const Gh=W`
460
+ */const Wh=W`
461
461
  :host {
462
462
  --lumo-size-xs: 1.625rem;
463
463
  --lumo-size-s: 1.875rem;
@@ -472,11 +472,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
472
472
  /* For backwards compatibility */
473
473
  --lumo-icon-size: var(--lumo-icon-size-m);
474
474
  }
475
- `;Dt("sizing-props",Gh);/**
475
+ `;Dt("sizing-props",Wh);/**
476
476
  * @license
477
477
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
478
478
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
479
- */const qh=W`
479
+ */const Yh=W`
480
480
  :host {
481
481
  /* prettier-ignore */
482
482
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -496,7 +496,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
496
496
  --lumo-line-height-s: 1.375;
497
497
  --lumo-line-height-m: 1.625;
498
498
  }
499
- `,Wh=W`
499
+ `,Xh=W`
500
500
  body,
501
501
  :host {
502
502
  font-family: var(--lumo-font-family);
@@ -588,7 +588,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
588
588
  border-left: none;
589
589
  border-right: 2px solid var(--lumo-contrast-30pct);
590
590
  }
591
- `;Pe("",Wh,{moduleId:"lumo-typography"});Dt("typography-props",qh);const ll=W`
591
+ `;Pe("",Xh,{moduleId:"lumo-typography"});Dt("typography-props",Yh);const cl=W`
592
592
  :host {
593
593
  display: flex;
594
594
  align-items: center;
@@ -672,7 +672,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
672
672
  width: var(--lumo-icon-size-m);
673
673
  height: var(--lumo-icon-size-m);
674
674
  }
675
- `;Pe("vaadin-item",ll,{moduleId:"lumo-item"});const Yh=W`
675
+ `;Pe("vaadin-item",cl,{moduleId:"lumo-item"});const Zh=W`
676
676
  :host {
677
677
  transition: background-color 100ms;
678
678
  overflow: hidden;
@@ -684,11 +684,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
684
684
  :host([focused]:not([disabled])) {
685
685
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
686
686
  }
687
- `;Pe("vaadin-combo-box-item",[ll,Yh],{moduleId:"lumo-combo-box-item"});/**
687
+ `;Pe("vaadin-combo-box-item",[cl,Zh],{moduleId:"lumo-combo-box-item"});/**
688
688
  * @license
689
689
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
690
690
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
691
- */const Xh=W`
691
+ */const Jh=W`
692
692
  [part~='loader'] {
693
693
  box-sizing: border-box;
694
694
  width: var(--lumo-icon-size-s);
@@ -734,7 +734,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
734
734
  * @license
735
735
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
736
736
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
737
- */const Xs=W`
737
+ */const Js=W`
738
738
  :host {
739
739
  top: var(--lumo-space-m);
740
740
  right: var(--lumo-space-m);
@@ -799,11 +799,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
799
799
  opacity: 1;
800
800
  }
801
801
  }
802
- `;Pe("",Xs,{moduleId:"lumo-overlay"});/**
802
+ `;Pe("",Js,{moduleId:"lumo-overlay"});/**
803
803
  * @license
804
804
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
805
805
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
806
- */const Zs=W`
806
+ */const Ks=W`
807
807
  :host([opening]),
808
808
  :host([closing]) {
809
809
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -833,7 +833,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
833
833
  opacity: 0;
834
834
  }
835
835
  }
836
- `;Pe("",Zs,{moduleId:"lumo-menu-overlay-core"});const Zh=W`
836
+ `;Pe("",Ks,{moduleId:"lumo-menu-overlay-core"});const Kh=W`
837
837
  /* Small viewport (bottom sheet) styles */
838
838
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
839
839
  @media (max-width: 450px), (max-height: 450px) {
@@ -895,7 +895,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
895
895
  transform: translateY(150%);
896
896
  }
897
897
  }
898
- `,Jh=[Xs,Zs,Zh];Pe("",Jh,{moduleId:"lumo-menu-overlay"});const Kh=W`
898
+ `,Qh=[Js,Ks,Kh];Pe("",Qh,{moduleId:"lumo-menu-overlay"});const ef=W`
899
899
  [part='content'] {
900
900
  padding: 0;
901
901
  }
@@ -916,7 +916,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
916
916
  :host([bottom-aligned]) [part~='overlay'] {
917
917
  margin-bottom: var(--lumo-space-xs);
918
918
  }
919
- `,Qh=W`
919
+ `,tf=W`
920
920
  [part~='loader'] {
921
921
  position: absolute;
922
922
  z-index: 1;
@@ -924,7 +924,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
924
924
  top: var(--lumo-space-s);
925
925
  margin-inline: auto 0;
926
926
  }
927
- `;Pe("vaadin-combo-box-overlay",[Xs,Zs,Kh,Xh,Qh,W`
927
+ `;Pe("vaadin-combo-box-overlay",[Js,Ks,ef,Jh,tf,W`
928
928
  :host {
929
929
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
930
930
  --_vaadin-combo-box-items-container-border-style: solid;
@@ -1111,7 +1111,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1111
1111
  * @license
1112
1112
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1113
1113
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1114
- */const ul=W`
1114
+ */const dl=W`
1115
1115
  [part$='button'] {
1116
1116
  flex: none;
1117
1117
  width: 1em;
@@ -1138,11 +1138,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1138
1138
  font-family: 'lumo-icons';
1139
1139
  display: block;
1140
1140
  }
1141
- `;Pe("",ul,{moduleId:"lumo-field-button"});/**
1141
+ `;Pe("",dl,{moduleId:"lumo-field-button"});/**
1142
1142
  * @license
1143
1143
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1144
1144
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1145
- */const ef=W`
1145
+ */const rf=W`
1146
1146
  :host {
1147
1147
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1148
1148
  }
@@ -1202,7 +1202,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1202
1202
  * @license
1203
1203
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1204
1204
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1205
- */const cl=W`
1205
+ */const hl=W`
1206
1206
  [part='label'] {
1207
1207
  align-self: flex-start;
1208
1208
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1314,11 +1314,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1314
1314
  margin-left: 0;
1315
1315
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1316
1316
  }
1317
- `;Pe("",cl,{moduleId:"lumo-required-field"});/**
1317
+ `;Pe("",hl,{moduleId:"lumo-required-field"});/**
1318
1318
  * @license
1319
1319
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1320
1320
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1321
- */const tf=W`
1321
+ */const sf=W`
1322
1322
  :host {
1323
1323
  --lumo-text-field-size: var(--lumo-size-m);
1324
1324
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1449,11 +1449,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1449
1449
  [part='clear-button']::before {
1450
1450
  content: var(--lumo-icons-cross);
1451
1451
  }
1452
- `,dl=[cl,ul,ef,tf];Pe("",dl,{moduleId:"lumo-input-field-shared-styles"});const rf=W`
1452
+ `,fl=[hl,dl,rf,sf];Pe("",fl,{moduleId:"lumo-input-field-shared-styles"});const of=W`
1453
1453
  [part='toggle-button']::before {
1454
1454
  content: var(--lumo-icons-dropdown);
1455
1455
  }
1456
- `;Pe("vaadin-combo-box",[dl,rf],{moduleId:"lumo-combo-box"});/**
1456
+ `;Pe("vaadin-combo-box",[fl,of],{moduleId:"lumo-combo-box"});/**
1457
1457
  @license
1458
1458
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1459
1459
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1469,7 +1469,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1469
1469
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1470
1470
  Code distributed by Google as part of the polymer project is also
1471
1471
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1472
- */let sf=/(url\()([^)]*)(\))/g,of=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ir,Le;function er(r,e){if(r&&of.test(r)||r==="//")return r;if(Ir===void 0){Ir=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Ir=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Ir)try{return new URL(r,e).href}catch(t){return r}return Le||(Le=document.implementation.createHTMLDocument("temp"),Le.base=Le.createElement("base"),Le.head.appendChild(Le.base),Le.anchor=Le.createElement("a"),Le.body.appendChild(Le.anchor)),Le.base.href=e,Le.anchor.href=r,Le.anchor.href||r}function Js(r,e){return r.replace(sf,function(t,i,s,o){return i+"'"+er(s.replace(/["']/g,""),e)+"'"+o})}function Ks(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
1472
+ */let nf=/(url\()([^)]*)(\))/g,af=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ir,Me;function er(r,e){if(r&&af.test(r)||r==="//")return r;if(Ir===void 0){Ir=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Ir=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Ir)try{return new URL(r,e).href}catch(t){return r}return Me||(Me=document.implementation.createHTMLDocument("temp"),Me.base=Me.createElement("base"),Me.head.appendChild(Me.base),Me.anchor=Me.createElement("a"),Me.body.appendChild(Me.anchor)),Me.base.href=e,Me.anchor.href=r,Me.anchor.href||r}function Qs(r,e){return r.replace(nf,function(t,i,s,o){return i+"'"+er(s.replace(/["']/g,""),e)+"'"+o})}function eo(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
1473
1473
  @license
1474
1474
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1475
1475
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1477,7 +1477,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1477
1477
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1478
1478
  Code distributed by Google as part of the polymer project is also
1479
1479
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1480
- */const nf=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const af=nf&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let lf=window.Polymer&&window.Polymer.rootPath||Ks(document.baseURI||window.location.href),Qr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let gs=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,uf=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,cf=window.Polymer&&window.Polymer.legacyOptimizations||!1,df=window.Polymer&&window.Polymer.legacyWarnings||!1,hf=window.Polymer&&window.Polymer.syncInitialRender||!1,bs=window.Polymer&&window.Polymer.legacyUndefined||!1,ff=window.Polymer&&window.Polymer.orderedComputed||!1,nn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,pf=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let mf=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1480
+ */const lf=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const uf=lf&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let cf=window.Polymer&&window.Polymer.rootPath||eo(document.baseURI||window.location.href),Qr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let vs=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,df=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,hf=window.Polymer&&window.Polymer.legacyOptimizations||!1,ff=window.Polymer&&window.Polymer.legacyWarnings||!1,pf=window.Polymer&&window.Polymer.syncInitialRender||!1,ys=window.Polymer&&window.Polymer.legacyUndefined||!1,mf=window.Polymer&&window.Polymer.orderedComputed||!1,an=window.Polymer&&window.Polymer.removeNestedTemplates||!1,_f=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let gf=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1481
1481
  @license
1482
1482
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1483
1483
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1485,7 +1485,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1485
1485
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1486
1486
  Code distributed by Google as part of the polymer project is also
1487
1487
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1488
- */let _f=0;const we=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=_f++;function i(s){let o=s.__mixinSet;if(o&&o[t])return s;let n=e,a=n.get(s);if(!a){a=r(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
1488
+ */let bf=0;const we=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=bf++;function i(s){let o=s.__mixinSet;if(o&&o[t])return s;let n=e,a=n.get(s);if(!a){a=r(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
1489
1489
  @license
1490
1490
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1491
1491
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1493,7 +1493,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1493
1493
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1494
1494
  Code distributed by Google as part of the polymer project is also
1495
1495
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1496
- */let Qs={},hl={};function an(r,e){Qs[r]=hl[r.toLowerCase()]=e}function ln(r){return Qs[r]||hl[r.toLowerCase()]}function gf(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class cr extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ln(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,s){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=er(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ks(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(gs&&ln(e)!==void 0)throw an(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,an(e,this),gf(this)}}}cr.prototype.modules=Qs;customElements.define("dom-module",cr);/**
1496
+ */let to={},pl={};function ln(r,e){to[r]=pl[r.toLowerCase()]=e}function un(r){return to[r]||pl[r.toLowerCase()]}function vf(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class cr extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=un(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,s){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=er(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=eo(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(vs&&un(e)!==void 0)throw ln(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,ln(e,this),vf(this)}}}cr.prototype.modules=to;customElements.define("dom-module",cr);/**
1497
1497
  @license
1498
1498
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1499
1499
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1501,7 +1501,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1501
1501
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1502
1502
  Code distributed by Google as part of the polymer project is also
1503
1503
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1504
- */const bf="link[rel=import][type~=css]",vf="include",un="shady-unscoped";function fl(r){return cr.import(r)}function cn(r){let e=r.body?r.body:r;const t=Js(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function yf(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...wf(e[i]));return t}function wf(r){const e=fl(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...ml(e));const i=e.querySelector("template");i&&t.push(...pl(i,e.assetpath)),e._styles=t}return e._styles}function pl(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let o=i[s],n=o.getAttribute(vf);n&&t.push(...yf(n).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Js(o.textContent,e)),t.push(o)}r._styles=t}return r._styles}function xf(r){let e=fl(r);return e?ml(e):[]}function ml(r){const e=[],t=r.querySelectorAll(bf);for(let i=0;i<t.length;i++){let s=t[i];if(s.import){const o=s.import,n=s.hasAttribute(un);if(n&&!o._unscopedStyle){const a=cn(o);a.setAttribute(un,""),o._unscopedStyle=a}else o._style||(o._style=cn(o));e.push(n?o._unscopedStyle:o._style)}}return e}/**
1504
+ */const yf="link[rel=import][type~=css]",wf="include",cn="shady-unscoped";function ml(r){return cr.import(r)}function dn(r){let e=r.body?r.body:r;const t=Qs(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function xf(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...Pf(e[i]));return t}function Pf(r){const e=ml(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...gl(e));const i=e.querySelector("template");i&&t.push(..._l(i,e.assetpath)),e._styles=t}return e._styles}function _l(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let o=i[s],n=o.getAttribute(wf);n&&t.push(...xf(n).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Qs(o.textContent,e)),t.push(o)}r._styles=t}return r._styles}function Ef(r){let e=ml(r);return e?gl(e):[]}function gl(r){const e=[],t=r.querySelectorAll(yf);for(let i=0;i<t.length;i++){let s=t[i];if(s.import){const o=s.import,n=s.hasAttribute(cn);if(n&&!o._unscopedStyle){const a=dn(o);a.setAttribute(cn,""),o._unscopedStyle=a}else o._style||(o._style=dn(o));e.push(n?o._unscopedStyle:o._style)}}return e}/**
1505
1505
  @license
1506
1506
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1507
1507
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1517,7 +1517,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1517
1517
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1518
1518
  Code distributed by Google as part of the polymer project is also
1519
1519
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1520
- */function vs(r){return r.indexOf(".")>=0}function ft(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function Pf(r,e){return r.indexOf(e+".")===0}function ei(r,e){return e.indexOf(r+".")===0}function ti(r,e,t){return e+t.slice(r.length)}function Yt(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let s=0;s<i.length;s++)e.push(i[s])}return e.join(".")}else return r}function _l(r){return Array.isArray(r)?Yt(r).split("."):r.toString().split(".")}function Ie(r,e,t){let i=r,s=_l(e);for(let o=0;o<s.length;o++){if(!i)return;let n=s[o];i=i[n]}return t&&(t.path=s.join(".")),i}function dn(r,e,t){let i=r,s=_l(e),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[o]=t}else i[e]=t;return s.join(".")}/**
1520
+ */function ws(r){return r.indexOf(".")>=0}function ft(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function Cf(r,e){return r.indexOf(e+".")===0}function ei(r,e){return e.indexOf(r+".")===0}function ti(r,e,t){return e+t.slice(r.length)}function Yt(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let s=0;s<i.length;s++)e.push(i[s])}return e.join(".")}else return r}function bl(r){return Array.isArray(r)?Yt(r).split("."):r.toString().split(".")}function Ie(r,e,t){let i=r,s=bl(e);for(let o=0;o<s.length;o++){if(!i)return;let n=s[o];i=i[n]}return t&&(t.path=s.join(".")),i}function hn(r,e,t){let i=r,s=bl(e),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[o]=t}else i[e]=t;return s.join(".")}/**
1521
1521
  @license
1522
1522
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1523
1523
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1525,7 +1525,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1525
1525
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1526
1526
  Code distributed by Google as part of the polymer project is also
1527
1527
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1528
- */const ri={},Ef=/-[a-z]/g,Cf=/([A-Z])/g;function gl(r){return ri[r]||(ri[r]=r.indexOf("-")<0?r:r.replace(Ef,e=>e[1].toUpperCase()))}function mi(r){return ri[r]||(ri[r]=r.replace(Cf,"-$1").toLowerCase())}/**
1528
+ */const ri={},Sf=/-[a-z]/g,Af=/([A-Z])/g;function vl(r){return ri[r]||(ri[r]=r.indexOf("-")<0?r:r.replace(Sf,e=>e[1].toUpperCase()))}function mi(r){return ri[r]||(ri[r]=r.replace(Af,"-$1").toLowerCase())}/**
1529
1529
  @license
1530
1530
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1531
1531
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1533,7 +1533,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1533
1533
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1534
1534
  Code distributed by Google as part of the polymer project is also
1535
1535
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1536
- */let Sf=0,bl=0,Et=[],Af=0,ys=!1,vl=document.createTextNode("");new window.MutationObserver(Tf).observe(vl,{characterData:!0});function Tf(){ys=!1;const r=Et.length;for(let e=0;e<r;e++){let t=Et[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Et.splice(0,r),bl+=r}const If={run(r){return ys||(ys=!0,vl.textContent=Af++),Et.push(r),Sf++},cancel(r){const e=r-bl;if(e>=0){if(!Et[e])throw new Error("invalid async handle: "+r);Et[e]=null}}};/**
1536
+ */let Tf=0,yl=0,Et=[],If=0,xs=!1,wl=document.createTextNode("");new window.MutationObserver(Of).observe(wl,{characterData:!0});function Of(){xs=!1;const r=Et.length;for(let e=0;e<r;e++){let t=Et[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Et.splice(0,r),yl+=r}const Nf={run(r){return xs||(xs=!0,wl.textContent=If++),Et.push(r),Tf++},cancel(r){const e=r-yl;if(e>=0){if(!Et[e])throw new Error("invalid async handle: "+r);Et[e]=null}}};/**
1537
1537
  @license
1538
1538
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1539
1539
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1541,7 +1541,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1541
1541
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1542
1542
  Code distributed by Google as part of the polymer project is also
1543
1543
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1544
- */const Of=If,yl=we(r=>{class e extends r{static createProperties(i){const s=this.prototype;for(let o in i)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,o){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Of.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(i,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,o)),this.__dataCounter--}_shouldPropertiesChange(i,s,o){return!!s}_propertiesChanged(i,s,o){}_shouldPropertyChange(i,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(i,s,o,n){s!==o&&this._attributeToProperty(i,o),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,o,n)}_attributeToProperty(i,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,o){this.__serializing=!0,o=arguments.length<3?this[i]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(i=lt(i)),n===void 0?i.removeAttribute(o):i.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
1544
+ */const kf=Nf,xl=we(r=>{class e extends r{static createProperties(i){const s=this.prototype;for(let o in i)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,o){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,kf.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(i,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,o)),this.__dataCounter--}_shouldPropertiesChange(i,s,o){return!!s}_propertiesChanged(i,s,o){}_shouldPropertyChange(i,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(i,s,o,n){s!==o&&this._attributeToProperty(i,o),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,o,n)}_attributeToProperty(i,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,o){this.__serializing=!0,o=arguments.length<3?this[i]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(i=lt(i)),n===void 0?i.removeAttribute(o):i.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
1545
1545
  @license
1546
1546
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1547
1547
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1549,7 +1549,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1549
1549
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1550
1550
  Code distributed by Google as part of the polymer project is also
1551
1551
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1552
- */const wl={};let Or=HTMLElement.prototype;for(;Or;){let r=Object.getOwnPropertyNames(Or);for(let e=0;e<r.length;e++)wl[r[e]]=!0;Or=Object.getPrototypeOf(Or)}const Nf=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function kf(r,e){if(!wl[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Lf=we(r=>{const e=yl(r);class t extends e{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(gl(s[o]))}static attributeNameForProperty(s){return mi(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Nf(s))return s;try{return JSON.stringify(s)}catch(o){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){kf(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return t});/**
1552
+ */const Pl={};let Or=HTMLElement.prototype;for(;Or;){let r=Object.getOwnPropertyNames(Or);for(let e=0;e<r.length;e++)Pl[r[e]]=!0;Or=Object.getPrototypeOf(Or)}const Mf=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function Lf(r,e){if(!Pl[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Bf=we(r=>{const e=xl(r);class t extends e{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(vl(s[o]))}static attributeNameForProperty(s){return mi(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Mf(s))return s;try{return JSON.stringify(s)}catch(o){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){Lf(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return t});/**
1553
1553
  @license
1554
1554
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1555
1555
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1557,7 +1557,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1557
1557
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1558
1558
  Code distributed by Google as part of the polymer project is also
1559
1559
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1560
- */const Mf={"dom-if":!0,"dom-repeat":!0};let hn=!1,fn=!1;function Bf(){if(!hn){hn=!0;const r=document.createElement("textarea");r.placeholder="a",fn=r.placeholder===r.textContent}return fn}function Rf(r){Bf()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const Df=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const s=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(s,i));return}e.setAttribute(i,s)}})();function Hf(r){let e=r.getAttribute("is");if(e&&Mf[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];Df(r,t,i),t.removeAttribute(i)}}return r}function xl(r,e){let t=e.parentInfo&&xl(r,e.parentInfo);if(t){for(let i=t.firstChild,s=0;i;i=i.nextSibling)if(e.parentIndex===s++)return i}else return r}function zf(r,e,t,i){i.id&&(e[i.id]=t)}function Ff(r,e,t){if(t.events&&t.events.length)for(let i=0,s=t.events,o;i<s.length&&(o=s[i]);i++)r._addMethodEventListenerToNode(e,o.name,o.value,r)}function Vf(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function Uf(r,e,t){return r=r._methodHost||r,function(s){r[t]?r[t](s,s.detail):console.warn("listener method `"+t+"` not defined")}}const $f=we(r=>{class e extends r{static _parseTemplate(i,s){if(!i._templateInfo){let o=i._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!s,o.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,o,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,o){return this._parseTemplateNode(i.content,s,o)}static _parseTemplateNode(i,s,o){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Rf(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(i,s,o){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Hf(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,u)&&(u.infoIndex=s.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,o){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,o){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,o,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(i,s,o,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let o=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,c=o.length,d;u<c&&(d=o[u]);u++){let f=l[u]=xl(a,d);zf(this,a.$,f,d),Vf(this,f,d,s),Ff(this,f,d)}return a=a,a}_addMethodEventListenerToNode(i,s,o,n){n=n||i;let a=Uf(n,s,o);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,o){i.addEventListener(s,o)}_removeEventListenerFromNode(i,s,o){i.removeEventListener(s,o)}}return e});/**
1560
+ */const Rf={"dom-if":!0,"dom-repeat":!0};let fn=!1,pn=!1;function Df(){if(!fn){fn=!0;const r=document.createElement("textarea");r.placeholder="a",pn=r.placeholder===r.textContent}return pn}function Hf(r){Df()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const zf=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const s=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(s,i));return}e.setAttribute(i,s)}})();function Ff(r){let e=r.getAttribute("is");if(e&&Rf[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];zf(r,t,i),t.removeAttribute(i)}}return r}function El(r,e){let t=e.parentInfo&&El(r,e.parentInfo);if(t){for(let i=t.firstChild,s=0;i;i=i.nextSibling)if(e.parentIndex===s++)return i}else return r}function Vf(r,e,t,i){i.id&&(e[i.id]=t)}function Uf(r,e,t){if(t.events&&t.events.length)for(let i=0,s=t.events,o;i<s.length&&(o=s[i]);i++)r._addMethodEventListenerToNode(e,o.name,o.value,r)}function $f(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function jf(r,e,t){return r=r._methodHost||r,function(s){r[t]?r[t](s,s.detail):console.warn("listener method `"+t+"` not defined")}}const Gf=we(r=>{class e extends r{static _parseTemplate(i,s){if(!i._templateInfo){let o=i._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!s,o.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,o,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,o){return this._parseTemplateNode(i.content,s,o)}static _parseTemplateNode(i,s,o){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Hf(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(i,s,o){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Ff(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,u)&&(u.infoIndex=s.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,o){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,o){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,o,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(i,s,o,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let o=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,c=o.length,d;u<c&&(d=o[u]);u++){let f=l[u]=El(a,d);Vf(this,a.$,f,d),$f(this,f,d,s),Uf(this,f,d)}return a=a,a}_addMethodEventListenerToNode(i,s,o,n){n=n||i;let a=jf(n,s,o);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,o){i.addEventListener(s,o)}_removeEventListenerFromNode(i,s,o){i.removeEventListener(s,o)}}return e});/**
1561
1561
  * @fileoverview
1562
1562
  * @suppress {checkPrototypalTypes}
1563
1563
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1567,7 +1567,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1567
1567
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1568
1568
  * Google as part of the polymer project is also subject to an additional IP
1569
1569
  * rights grant found at http://polymer.github.io/PATENTS.txt
1570
- */let dr=0;const hr=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Pl="__computeInfo",jf=/[A-Z]/;function Hi(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let s in i){let o=i[s],n=i[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return i}function Xt(r,e,t,i,s,o){if(e){let n=!1;const a=dr++;for(let l in t){let u=s?ft(l):l,c=e[u];if(c)for(let d=0,f=c.length,p;d<f&&(p=c[d]);d++)(!p.info||p.info.lastRun!==a)&&(!s||eo(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(r,l,t,i,p.info,s,o),n=!0)}return n}return!1}function Gf(r,e,t,i,s,o,n,a){let l=!1,u=n?ft(i):i,c=e[u];if(c)for(let d=0,f=c.length,p;d<f&&(p=c[d]);d++)(!p.info||p.info.lastRun!==t)&&(!n||eo(i,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(r,i,s,o,p.info,n,a),l=!0);return l}function eo(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&Pf(t,r))||!!(e.wildcard&&ei(t,r))}else return!0}function pn(r,e,t,i,s){let o=typeof s.method=="string"?r[s.method]:s.method,n=s.property;o?o.call(r,r.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function qf(r,e,t,i,s){let o=r[$.NOTIFY],n,a=dr++;for(let u in e)e[u]&&(o&&Gf(r,o,a,u,t,i,s)||s&&Wf(r,u,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Wf(r,e,t){let i=ft(e);if(i!==e){let s=mi(i)+"-changed";return El(r,s,t[e],e),!0}return!1}function El(r,e,t,i){let s={value:t,queueProperty:!0};i&&(s.path=i),lt(r).dispatchEvent(new CustomEvent(e,{detail:s}))}function Yf(r,e,t,i,s,o){let a=(o?ft(e):e)!=e?e:null,l=a?Ie(r,a):r.__data[e];a&&l===void 0&&(l=t[e]),El(r,s.eventName,l,a)}function Xf(r,e,t,i,s){let o,n=r.detail,a=n&&n.path;a?(i=ti(t,i,a),o=n&&n.value):o=r.currentTarget[t],o=s?!o:o,(!e[$.READ_ONLY]||!e[$.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Zf(r,e,t,i,s){let o=r.__data[e];Qr&&(o=Qr(o,s.attrName,"attribute",r)),r._propertyToAttribute(e,s.attrName,o)}function Jf(r,e,t,i){let s=r[$.COMPUTE];if(s)if(ff){dr++;const o=Qf(r),n=[];for(let l in e)mn(l,s,n,o,i);let a;for(;a=n.shift();)Cl(r,"",e,t,a)&&mn(a.methodInfo,s,n,o,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let o=e;for(;Xt(r,s,o,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),o=r.__dataPending,r.__dataPending=null}}const Kf=(r,e,t)=>{let i=0,s=e.length-1,o=-1;for(;i<=s;){const n=i+s>>1,a=t.get(e[n].methodInfo)-t.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),e.splice(o,0,r)},mn=(r,e,t,i,s)=>{const o=s?ft(r):r,n=e[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==dr&&(!s||eo(r,l.trigger))&&(l.info.lastRun=dr,Kf(l.info,t,i))}};function Qf(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[$.COMPUTE];let{counts:i,ready:s,total:o}=ep(r),n;for(;n=s.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--i[u]===0&&s.push(u)})}o!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function ep(r){const e=r[Pl],t={},i=r[$.COMPUTE],s=[];let o=0;for(let n in e){const a=e[n];o+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||s.push(n);return{counts:t,ready:s,total:o}}function Cl(r,e,t,i,s){let o=ws(r,e,t,i,s);if(o===hr)return!1;let n=s.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,o,!0):(r[n]=o,!1)}function tp(r,e,t){let i=r.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];ei(o,e)?(s=ti(o,n,e),r._setPendingPropertyOrPath(s,t,!0,!0)):ei(n,e)&&(s=ti(n,o,e),r._setPendingPropertyOrPath(s,t,!0,!0))}}}function zi(r,e,t,i,s,o,n){t.bindings=t.bindings||[];let a={kind:i,target:s,parts:o,literal:n,isCompound:o.length!==1};if(t.bindings.push(a),np(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||mi(s)+"-changed",a.listenerNegate=c}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,rp(r,e,a,c,l)}}function rp(r,e,t,i,s){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=i.dependencies,n={index:s,binding:t,part:i,evaluator:r};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Al(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:ip,info:n,trigger:l})}}}function ip(r,e,t,i,s,o,n){let a=n[s.index],l=s.binding,u=s.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=t[e];e=ti(u.source,l.target,e),a._setPendingPropertyOrPath(e,c,!1,!0)&&r._enqueueClient(a)}else{let c=s.evaluator._evaluateBinding(r,u,e,t,i,o);c!==hr&&sp(r,a,l,u,c)}}function sp(r,e,t,i,s){if(s=op(e,s,t,i),Qr&&(s=Qr(s,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,s,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[$.READ_ONLY]||!e[$.READ_ONLY][o])&&e._setPendingProperty(o,s)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,o,s)}}function op(r,e,t,i){if(t.isCompound){let s=r.__dataCompoundStorage[t.target];s[i.compoundIndex]=e,e=s.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function np(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function ap(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],n=t[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];lp(n,u),up(n,r,u)}n.__dataHost=r}}function lp(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let o=e.target;t[o]=s,e.literal&&e.kind=="property"&&(o==="className"&&(r=lt(r)),r[o]=e.literal)}}function up(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(s){Xf(s,e,t.target,i.source,i.negate)})}}function _n(r,e,t,i,s,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return o&&r._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function ws(r,e,t,i,s){let o=r._methodHost||r,n=o[s.methodName];if(n){let a=r._marshalArgs(s.args,e,t);return a===hr?hr:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const cp=[],Sl="(?:[a-zA-Z_$][\\w.:$\\-*]*)",dp="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",hp="(?:'(?:[^'\\\\]|\\\\.)*')",fp='(?:"(?:[^"\\\\]|\\\\.)*")',pp="(?:"+hp+"|"+fp+")",gn="(?:("+Sl+"|"+dp+"|"+pp+")\\s*)",mp="(?:"+gn+"(?:,\\s*"+gn+")*)",_p="(?:\\(\\s*(?:"+mp+"?)\\)\\s*)",gp="("+Sl+"\\s*"+_p+"?)",bp="(\\[\\[|{{)\\s*",vp="(?:]]|}})",yp="(?:(!)\\s*)?",wp=bp+yp+gp+vp,bn=new RegExp(wp,"g");function vn(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function Fi(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let i={methodName:e[1],static:!0,args:cp};if(e[2].trim()){let s=e[2].replace(/\\,/g,"&comma;").split(",");return xp(s,i)}else return i}return null}function xp(r,e){return e.args=r.map(function(t){let i=Al(t);return i.literal||(e.static=!1),i},this),e}function Al(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=ft(e),t.structured=vs(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function yn(r,e,t){let i=Ie(r,t);return i===void 0&&(i=e[t]),i}function Tl(r,e,t,i){const s={indexSplices:i};bs&&!r._overrideLegacyUndefined&&(e.splices=s),r.notifyPath(t+".splices",s),r.notifyPath(t+".length",e.length),bs&&!r._overrideLegacyUndefined&&(s.indexSplices=[])}function Gt(r,e,t,i,s,o){Tl(r,e,t,[{index:i,addedCount:s,removed:o,object:e,type:"splice"}])}function Pp(r){return r[0].toUpperCase()+r.substring(1)}const Ep=we(r=>{const e=$f(Lf(r));class t extends e{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 $}_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(qt.length){let s=qt[qt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[$.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==$.READ_ONLY);let a=Hi(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Hi(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,$.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,$.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,$.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,$.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||ft(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=Ie(this,s);if(s=dn(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return tp(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=lt(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&vs(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[$.NOTIFY]&&this[$.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[$.READ_ONLY]||!this[$.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Jf(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),Xt(this,this[$.REFLECT],o,n,a),Xt(this,this[$.OBSERVE],o,n,a),l&&qf(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[$.PROPAGATE]&&Xt(this,this[$.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(u,c)=>{Xt(this,s.propertyEffects,u,n,c,s.nodeList);for(let d=s.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,n,c)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=Yt(s),o=Yt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=Yt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=Ie(this,s,n);Tl(this,a,n.path,o)}get(s,o){return Ie(o||this,s)}set(s,o,n){n?dn(n,s,o):(!this[$.READ_ONLY]||!this[$.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=Ie(this,s,n),l=a.length,u=a.push(...o);return o.length&&Gt(this,a,n.path,l,o.length,[]),u}pop(s){let o={path:""},n=Ie(this,s,o),a=!!n.length,l=n.pop();return a&&Gt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},u=Ie(this,s,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=u.splice(o):c=u.splice(o,n,...a),(a.length||c.length)&&Gt(this,u,l.path,o,a.length,c),c}shift(s){let o={path:""},n=Ie(this,s,o),a=!!n.length,l=n.shift();return a&&Gt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=Ie(this,s,n),l=a.unshift(...o);return o.length&&Gt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=Ie(this,s,a),n=a.path}else Array.isArray(s)?n=Yt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,$.READ_ONLY),o&&(this["_set"+Pp(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,$.OBSERVE,{fn:pn,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,$.OBSERVE,{fn:pn,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Fi(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");_n(this,n,$.OBSERVE,ws,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,$.NOTIFY,{fn:Yf,info:{eventName:mi(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,$.REFLECT,{fn:Zf,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Fi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=_n(this,a,$.COMPUTE,Cl,s,n);Hi(this,Pl)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let u=0,c=s.length;u<c;u++){let{name:d,structured:f,wildcard:p,value:_,literal:g}=s[u];if(!g)if(p){const w=ei(d,o),v=yn(a,n,w?o:d);_={path:w?o:d,value:v,base:w?Ie(a,d):v}}else _=f?yn(a,n,d):a[d];if(bs&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return hr;l[u]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),qt.push(this);let n=super._stampTemplate(s,o);if(qt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,ap(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let c=0;c<u.length;c++){let d=u[c];lt(lt(d).parentNode).removeChild(d)}}static _parseTemplateNode(s,o,n){let a=e._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=vn(l)||" ",zi(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let u=this._parseBindings(l,o);if(u){let c=a,d="property";jf.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let f=vn(u);return f&&d=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),d=="attribute"&&c=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&c==="value"&&s.setAttribute(c,""),s.removeAttribute(c),d==="property"&&(a=gl(a)),zi(this,o,n,d,a,u,f),!0}else return e._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=e._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,u=n.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";nn&&(c||d)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let f=u.hostProps;if(pf&&c)f&&(o.hostProps=Object.assign(o.hostProps||{},f),nn||(n.parentInfo.noted=!0));else{let p="{";for(let _ in f){let g=[{mode:p,source:_,dependencies:[_],hostProp:!0}];zi(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=bn.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),f=!1,p="",_=-1;u=="{"&&(_=d.indexOf("::"))>0&&(p=d.substring(_+2),d=d.substring(0,_),f=!0);let g=Fi(d),w=[];if(g){let{args:v,methodName:y}=g;for(let I=0;I<v.length;I++){let x=v[I];x.literal||w.push(x)}let A=o.dynamicFns;(A&&A[y]||g.static)&&(w.push(y),g.dynamicFn=!0)}else w.push(d);n.push({source:d,mode:u,negate:c,customEvent:f,signature:g,dependencies:w,event:p}),a=bn.lastIndex}if(a&&a<s.length){let u=s.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,u){let c;return o.signature?c=ws(s,n,a,l,o.signature):n!=o.source?c=Ie(s,o.source):u&&vs(n)?c=Ie(s,n):c=s.__data[n],o.negate&&(c=!c),c}}return t}),qt=[];/**
1570
+ */let dr=0;const hr=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Cl="__computeInfo",qf=/[A-Z]/;function Fi(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let s in i){let o=i[s],n=i[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return i}function Xt(r,e,t,i,s,o){if(e){let n=!1;const a=dr++;for(let l in t){let u=s?ft(l):l,c=e[u];if(c)for(let d=0,f=c.length,p;d<f&&(p=c[d]);d++)(!p.info||p.info.lastRun!==a)&&(!s||ro(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(r,l,t,i,p.info,s,o),n=!0)}return n}return!1}function Wf(r,e,t,i,s,o,n,a){let l=!1,u=n?ft(i):i,c=e[u];if(c)for(let d=0,f=c.length,p;d<f&&(p=c[d]);d++)(!p.info||p.info.lastRun!==t)&&(!n||ro(i,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(r,i,s,o,p.info,n,a),l=!0);return l}function ro(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&Cf(t,r))||!!(e.wildcard&&ei(t,r))}else return!0}function mn(r,e,t,i,s){let o=typeof s.method=="string"?r[s.method]:s.method,n=s.property;o?o.call(r,r.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Yf(r,e,t,i,s){let o=r[$.NOTIFY],n,a=dr++;for(let u in e)e[u]&&(o&&Wf(r,o,a,u,t,i,s)||s&&Xf(r,u,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Xf(r,e,t){let i=ft(e);if(i!==e){let s=mi(i)+"-changed";return Sl(r,s,t[e],e),!0}return!1}function Sl(r,e,t,i){let s={value:t,queueProperty:!0};i&&(s.path=i),lt(r).dispatchEvent(new CustomEvent(e,{detail:s}))}function Zf(r,e,t,i,s,o){let a=(o?ft(e):e)!=e?e:null,l=a?Ie(r,a):r.__data[e];a&&l===void 0&&(l=t[e]),Sl(r,s.eventName,l,a)}function Jf(r,e,t,i,s){let o,n=r.detail,a=n&&n.path;a?(i=ti(t,i,a),o=n&&n.value):o=r.currentTarget[t],o=s?!o:o,(!e[$.READ_ONLY]||!e[$.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Kf(r,e,t,i,s){let o=r.__data[e];Qr&&(o=Qr(o,s.attrName,"attribute",r)),r._propertyToAttribute(e,s.attrName,o)}function Qf(r,e,t,i){let s=r[$.COMPUTE];if(s)if(mf){dr++;const o=tp(r),n=[];for(let l in e)_n(l,s,n,o,i);let a;for(;a=n.shift();)Al(r,"",e,t,a)&&_n(a.methodInfo,s,n,o,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let o=e;for(;Xt(r,s,o,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),o=r.__dataPending,r.__dataPending=null}}const ep=(r,e,t)=>{let i=0,s=e.length-1,o=-1;for(;i<=s;){const n=i+s>>1,a=t.get(e[n].methodInfo)-t.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),e.splice(o,0,r)},_n=(r,e,t,i,s)=>{const o=s?ft(r):r,n=e[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==dr&&(!s||ro(r,l.trigger))&&(l.info.lastRun=dr,ep(l.info,t,i))}};function tp(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[$.COMPUTE];let{counts:i,ready:s,total:o}=rp(r),n;for(;n=s.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--i[u]===0&&s.push(u)})}o!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function rp(r){const e=r[Cl],t={},i=r[$.COMPUTE],s=[];let o=0;for(let n in e){const a=e[n];o+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||s.push(n);return{counts:t,ready:s,total:o}}function Al(r,e,t,i,s){let o=Ps(r,e,t,i,s);if(o===hr)return!1;let n=s.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,o,!0):(r[n]=o,!1)}function ip(r,e,t){let i=r.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];ei(o,e)?(s=ti(o,n,e),r._setPendingPropertyOrPath(s,t,!0,!0)):ei(n,e)&&(s=ti(n,o,e),r._setPendingPropertyOrPath(s,t,!0,!0))}}}function Vi(r,e,t,i,s,o,n){t.bindings=t.bindings||[];let a={kind:i,target:s,parts:o,literal:n,isCompound:o.length!==1};if(t.bindings.push(a),lp(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||mi(s)+"-changed",a.listenerNegate=c}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,sp(r,e,a,c,l)}}function sp(r,e,t,i,s){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=i.dependencies,n={index:s,binding:t,part:i,evaluator:r};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Il(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:op,info:n,trigger:l})}}}function op(r,e,t,i,s,o,n){let a=n[s.index],l=s.binding,u=s.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=t[e];e=ti(u.source,l.target,e),a._setPendingPropertyOrPath(e,c,!1,!0)&&r._enqueueClient(a)}else{let c=s.evaluator._evaluateBinding(r,u,e,t,i,o);c!==hr&&np(r,a,l,u,c)}}function np(r,e,t,i,s){if(s=ap(e,s,t,i),Qr&&(s=Qr(s,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,s,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[$.READ_ONLY]||!e[$.READ_ONLY][o])&&e._setPendingProperty(o,s)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,o,s)}}function ap(r,e,t,i){if(t.isCompound){let s=r.__dataCompoundStorage[t.target];s[i.compoundIndex]=e,e=s.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function lp(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function up(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],n=t[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];cp(n,u),dp(n,r,u)}n.__dataHost=r}}function cp(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let o=e.target;t[o]=s,e.literal&&e.kind=="property"&&(o==="className"&&(r=lt(r)),r[o]=e.literal)}}function dp(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(s){Jf(s,e,t.target,i.source,i.negate)})}}function gn(r,e,t,i,s,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return o&&r._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function Ps(r,e,t,i,s){let o=r._methodHost||r,n=o[s.methodName];if(n){let a=r._marshalArgs(s.args,e,t);return a===hr?hr:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const hp=[],Tl="(?:[a-zA-Z_$][\\w.:$\\-*]*)",fp="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",pp="(?:'(?:[^'\\\\]|\\\\.)*')",mp='(?:"(?:[^"\\\\]|\\\\.)*")',_p="(?:"+pp+"|"+mp+")",bn="(?:("+Tl+"|"+fp+"|"+_p+")\\s*)",gp="(?:"+bn+"(?:,\\s*"+bn+")*)",bp="(?:\\(\\s*(?:"+gp+"?)\\)\\s*)",vp="("+Tl+"\\s*"+bp+"?)",yp="(\\[\\[|{{)\\s*",wp="(?:]]|}})",xp="(?:(!)\\s*)?",Pp=yp+xp+vp+wp,vn=new RegExp(Pp,"g");function yn(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function Ui(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let i={methodName:e[1],static:!0,args:hp};if(e[2].trim()){let s=e[2].replace(/\\,/g,"&comma;").split(",");return Ep(s,i)}else return i}return null}function Ep(r,e){return e.args=r.map(function(t){let i=Il(t);return i.literal||(e.static=!1),i},this),e}function Il(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=ft(e),t.structured=ws(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function wn(r,e,t){let i=Ie(r,t);return i===void 0&&(i=e[t]),i}function Ol(r,e,t,i){const s={indexSplices:i};ys&&!r._overrideLegacyUndefined&&(e.splices=s),r.notifyPath(t+".splices",s),r.notifyPath(t+".length",e.length),ys&&!r._overrideLegacyUndefined&&(s.indexSplices=[])}function Gt(r,e,t,i,s,o){Ol(r,e,t,[{index:i,addedCount:s,removed:o,object:e,type:"splice"}])}function Cp(r){return r[0].toUpperCase()+r.substring(1)}const Sp=we(r=>{const e=Gf(Bf(r));class t extends e{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 $}_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(qt.length){let s=qt[qt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[$.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==$.READ_ONLY);let a=Fi(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Fi(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,$.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,$.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,$.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,$.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||ft(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=Ie(this,s);if(s=hn(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return ip(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=lt(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&ws(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[$.NOTIFY]&&this[$.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[$.READ_ONLY]||!this[$.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Qf(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),Xt(this,this[$.REFLECT],o,n,a),Xt(this,this[$.OBSERVE],o,n,a),l&&Yf(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[$.PROPAGATE]&&Xt(this,this[$.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(u,c)=>{Xt(this,s.propertyEffects,u,n,c,s.nodeList);for(let d=s.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,n,c)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=Yt(s),o=Yt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=Yt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=Ie(this,s,n);Ol(this,a,n.path,o)}get(s,o){return Ie(o||this,s)}set(s,o,n){n?hn(n,s,o):(!this[$.READ_ONLY]||!this[$.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=Ie(this,s,n),l=a.length,u=a.push(...o);return o.length&&Gt(this,a,n.path,l,o.length,[]),u}pop(s){let o={path:""},n=Ie(this,s,o),a=!!n.length,l=n.pop();return a&&Gt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},u=Ie(this,s,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=u.splice(o):c=u.splice(o,n,...a),(a.length||c.length)&&Gt(this,u,l.path,o,a.length,c),c}shift(s){let o={path:""},n=Ie(this,s,o),a=!!n.length,l=n.shift();return a&&Gt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=Ie(this,s,n),l=a.unshift(...o);return o.length&&Gt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=Ie(this,s,a),n=a.path}else Array.isArray(s)?n=Yt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,$.READ_ONLY),o&&(this["_set"+Cp(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,$.OBSERVE,{fn:mn,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,$.OBSERVE,{fn:mn,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Ui(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");gn(this,n,$.OBSERVE,Ps,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,$.NOTIFY,{fn:Zf,info:{eventName:mi(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,$.REFLECT,{fn:Kf,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Ui(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=gn(this,a,$.COMPUTE,Al,s,n);Fi(this,Cl)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let u=0,c=s.length;u<c;u++){let{name:d,structured:f,wildcard:p,value:_,literal:g}=s[u];if(!g)if(p){const w=ei(d,o),v=wn(a,n,w?o:d);_={path:w?o:d,value:v,base:w?Ie(a,d):v}}else _=f?wn(a,n,d):a[d];if(ys&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return hr;l[u]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),qt.push(this);let n=super._stampTemplate(s,o);if(qt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,up(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let c=0;c<u.length;c++){let d=u[c];lt(lt(d).parentNode).removeChild(d)}}static _parseTemplateNode(s,o,n){let a=e._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=yn(l)||" ",Vi(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let u=this._parseBindings(l,o);if(u){let c=a,d="property";qf.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let f=yn(u);return f&&d=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),d=="attribute"&&c=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&c==="value"&&s.setAttribute(c,""),s.removeAttribute(c),d==="property"&&(a=vl(a)),Vi(this,o,n,d,a,u,f),!0}else return e._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=e._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,u=n.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";an&&(c||d)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let f=u.hostProps;if(_f&&c)f&&(o.hostProps=Object.assign(o.hostProps||{},f),an||(n.parentInfo.noted=!0));else{let p="{";for(let _ in f){let g=[{mode:p,source:_,dependencies:[_],hostProp:!0}];Vi(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=vn.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),f=!1,p="",_=-1;u=="{"&&(_=d.indexOf("::"))>0&&(p=d.substring(_+2),d=d.substring(0,_),f=!0);let g=Ui(d),w=[];if(g){let{args:v,methodName:y}=g;for(let I=0;I<v.length;I++){let x=v[I];x.literal||w.push(x)}let A=o.dynamicFns;(A&&A[y]||g.static)&&(w.push(y),g.dynamicFn=!0)}else w.push(d);n.push({source:d,mode:u,negate:c,customEvent:f,signature:g,dependencies:w,event:p}),a=vn.lastIndex}if(a&&a<s.length){let u=s.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,u){let c;return o.signature?c=Ps(s,n,a,l,o.signature):n!=o.source?c=Ie(s,o.source):u&&ws(n)?c=Ie(s,n):c=s.__data[n],o.negate&&(c=!c),c}}return t}),qt=[];/**
1571
1571
  @license
1572
1572
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1573
1573
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1583,7 +1583,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1583
1583
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1584
1584
  Code distributed by Google as part of the polymer project is also
1585
1585
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1586
- */function Cp(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const Sp=we(r=>{const e=yl(r);function t(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function i(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Cp(a))}o.__ownProperties=n}return o.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
1586
+ */function Ap(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const Tp=we(r=>{const e=xl(r);function t(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function i(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Ap(a))}o.__ownProperties=n}return o.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
1587
1587
  * @fileoverview
1588
1588
  * @suppress {checkPrototypalTypes}
1589
1589
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1593,7 +1593,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1593
1593
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1594
1594
  * Google as part of the polymer project is also subject to an additional IP
1595
1595
  * rights grant found at http://polymer.github.io/PATENTS.txt
1596
- */const Ap="3.5.2",wn=window.ShadyCSS&&window.ShadyCSS.cssBuild,Tp=we(r=>{const e=Sp(Ep(r));function t(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 i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,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 o(l,u,c,d){if(!wn){const f=u.content.querySelectorAll("style"),p=pl(u),_=xf(c),g=u.content.firstElementChild;for(let v=0;v<_.length;v++){let y=_[v];y.textContent=l._processStyleText(y.textContent,d),u.content.insertBefore(y,g)}let w=0;for(let v=0;v<p.length;v++){let y=p[v],A=f[w];A!==y?(y=y.cloneNode(!0),A.parentNode.insertBefore(y,A)):w++,y.textContent=l._processStyleText(y.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),mf&&wn&&af){const f=u.content.querySelectorAll("style");if(f){let p="";Array.from(f).forEach(_=>{p+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let u=null;if(l&&(!gs||uf)&&(u=cr.import(l,"template"),gs&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return Ap}static _finalizeClass(){e._finalizeClass.call(this);const u=i(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):cf||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)s(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let f=0;f<u.length;f++)d._createMethodObserver(u[f],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))&&n(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=Ks(u.url);else{const c=cr.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=lf,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let f=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,f,!0):this[c]=f}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return Js(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,f=d?er(d):"";o(this,c,u,f),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=lt(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])),hf&&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=er(this.importPath)),er(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return df&&!(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.`),e._addTemplatePropertyEffect.call(this,u,c,d)}}return a});/**
1596
+ */const Ip="3.5.2",xn=window.ShadyCSS&&window.ShadyCSS.cssBuild,Op=we(r=>{const e=Tp(Sp(r));function t(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 i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,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 o(l,u,c,d){if(!xn){const f=u.content.querySelectorAll("style"),p=_l(u),_=Ef(c),g=u.content.firstElementChild;for(let v=0;v<_.length;v++){let y=_[v];y.textContent=l._processStyleText(y.textContent,d),u.content.insertBefore(y,g)}let w=0;for(let v=0;v<p.length;v++){let y=p[v],A=f[w];A!==y?(y=y.cloneNode(!0),A.parentNode.insertBefore(y,A)):w++,y.textContent=l._processStyleText(y.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),gf&&xn&&uf){const f=u.content.querySelectorAll("style");if(f){let p="";Array.from(f).forEach(_=>{p+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let u=null;if(l&&(!vs||df)&&(u=cr.import(l,"template"),vs&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return Ip}static _finalizeClass(){e._finalizeClass.call(this);const u=i(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):hf||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)s(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let f=0;f<u.length;f++)d._createMethodObserver(u[f],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))&&n(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=eo(u.url);else{const c=cr.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=cf,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let f=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,f,!0):this[c]=f}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return Qs(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,f=d?er(d):"";o(this,c,u,f),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=lt(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])),pf&&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=er(this.importPath)),er(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return ff&&!(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.`),e._addTemplatePropertyEffect.call(this,u,c,d)}}return a});/**
1597
1597
  @license
1598
1598
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1599
1599
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1601,7 +1601,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1601
1601
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1602
1602
  Code distributed by Google as part of the polymer project is also
1603
1603
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1604
- */const xn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class Il{constructor(e,t){Nl(e,t);const i=t.reduce((s,o,n)=>s+Ol(o)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Ol(r){if(r instanceof Il)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function Ip(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof Il)return Ol(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const br=function(e,...t){Nl(e,t);const i=document.createElement("template");let s=t.reduce((o,n,a)=>o+Ip(n)+e[a+1],e[0]);return xn&&(s=xn.createHTML(s)),i.innerHTML=s,i},Nl=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1604
+ */const Pn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class Nl{constructor(e,t){Ml(e,t);const i=t.reduce((s,o,n)=>s+kl(o)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function kl(r){if(r instanceof Nl)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function Np(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof Nl)return kl(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const br=function(e,...t){Ml(e,t);const i=document.createElement("template");let s=t.reduce((o,n,a)=>o+Np(n)+e[a+1],e[0]);return Pn&&(s=Pn.createHTML(s)),i.innerHTML=s,i},Ml=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1605
1605
  @license
1606
1606
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1607
1607
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1609,19 +1609,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1609
1609
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1610
1610
  Code distributed by Google as part of the polymer project is also
1611
1611
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1612
- */const vr=Tp(HTMLElement);/**
1612
+ */const vr=Op(HTMLElement);/**
1613
1613
  * @license
1614
1614
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1615
1615
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1616
- */const We=[];function xs(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function Ps(){return document.documentElement.getAttribute("dir")}function Op(){const r=Ps();We.forEach(e=>{xs(e,r)})}const Np=new MutationObserver(Op);Np.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const _i=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),xs(this,Ps(),null))}attributeChangedCallback(t,i,s){if(super.attributeChangedCallback(t,i,s),t!=="dir")return;const o=Ps(),n=s===o&&We.indexOf(this)===-1,a=!s&&i&&We.indexOf(this)===-1;n||a?(this.__subscribe(),xs(this,o,s)):s!==o&&i===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=We.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,i,s){s==="dir"&&i===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,i,s)}_attributeToProperty(t,i,s){t==="dir"&&!i?this.dir="":super._attributeToProperty(t,i,s)}__subscribe(){We.includes(this)||We.push(this)}__unsubscribe(){We.includes(this)&&We.splice(We.indexOf(this),1)}};/**
1616
+ */const We=[];function Es(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function Cs(){return document.documentElement.getAttribute("dir")}function kp(){const r=Cs();We.forEach(e=>{Es(e,r)})}const Mp=new MutationObserver(kp);Mp.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const _i=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Es(this,Cs(),null))}attributeChangedCallback(t,i,s){if(super.attributeChangedCallback(t,i,s),t!=="dir")return;const o=Cs(),n=s===o&&We.indexOf(this)===-1,a=!s&&i&&We.indexOf(this)===-1;n||a?(this.__subscribe(),Es(this,o,s)):s!==o&&i===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=We.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,i,s){s==="dir"&&i===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,i,s)}_attributeToProperty(t,i,s){t==="dir"&&!i?this.dir="":super._attributeToProperty(t,i,s)}__subscribe(){We.includes(this)||We.push(this)}__unsubscribe(){We.includes(this)&&We.splice(We.indexOf(this),1)}};/**
1617
1617
  * @license
1618
1618
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1619
1619
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1620
- */const kp=r=>class extends r{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",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus())})}};/**
1620
+ */const Lp=r=>class extends r{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",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus())})}};/**
1621
1621
  * @license
1622
1622
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1623
1623
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1624
- */const Lp=W`
1624
+ */const Bp=W`
1625
1625
  :host {
1626
1626
  display: flex;
1627
1627
  align-items: center;
@@ -1690,19 +1690,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1690
1690
  * @license
1691
1691
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1692
1692
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1693
- */Pe("vaadin-input-container",Lp,{moduleId:"vaadin-input-container-styles"});class Mp extends kp(pi(_i(vr))){static get is(){return"vaadin-input-container"}static get template(){return br`
1693
+ */Pe("vaadin-input-container",Bp,{moduleId:"vaadin-input-container-styles"});class Rp extends Lp(pi(_i(vr))){static get is(){return"vaadin-input-container"}static get template(){return br`
1694
1694
  <slot name="prefix"></slot>
1695
1695
  <slot></slot>
1696
1696
  <slot name="suffix"></slot>
1697
- `}}Rt(Mp);/**
1697
+ `}}Rt(Rp);/**
1698
1698
  * @license
1699
1699
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1700
1700
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1701
- */const Bp=r=>class extends r{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,i,s){t==="hidden"&&s!==null?this.index=void 0:super.attributeChangedCallback(t,i,s)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const t={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,t)}__rendererOrItemChanged(t,i,s){s===void 0||i===void 0||(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,i){i||(this.textContent=t)}};/**
1701
+ */const Dp=r=>class extends r{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,i,s){t==="hidden"&&s!==null?this.index=void 0:super.attributeChangedCallback(t,i,s)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const t={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,t)}__rendererOrItemChanged(t,i,s){s===void 0||i===void 0||(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,i){i||(this.textContent=t)}};/**
1702
1702
  * @license
1703
1703
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1704
1704
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1705
- */class Rp extends Bp(pi(_i(vr))){static get template(){return br`
1705
+ */class Hp extends Dp(pi(_i(vr))){static get template(){return br`
1706
1706
  <style>
1707
1707
  :host {
1708
1708
  display: block;
@@ -1716,7 +1716,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1716
1716
  <div part="content">
1717
1717
  <slot></slot>
1718
1718
  </div>
1719
- `}static get is(){return"vaadin-combo-box-item"}}Rt(Rp);/**
1719
+ `}static get is(){return"vaadin-combo-box-item"}}Rt(Hp);/**
1720
1720
  @license
1721
1721
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1722
1722
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1724,31 +1724,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1724
1724
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1725
1725
  Code distributed by Google as part of the polymer project is also
1726
1726
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1727
- */let Es=!1,Dp=[],kl=[];function Hp(){Es=!0,requestAnimationFrame(function(){Es=!1,zp(Dp),setTimeout(function(){Fp(kl)})})}function zp(r){for(;r.length;)Ll(r.shift())}function Fp(r){for(let e=0,t=r.length;e<t;e++)Ll(r.shift())}function Ll(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(s){setTimeout(()=>{throw s})}}function Vp(r,e,t){Es||Hp(),kl.push([r,e,t])}/**
1727
+ */let Ss=!1,zp=[],Ll=[];function Fp(){Ss=!0,requestAnimationFrame(function(){Ss=!1,Vp(zp),setTimeout(function(){Up(Ll)})})}function Vp(r){for(;r.length;)Bl(r.shift())}function Up(r){for(let e=0,t=r.length;e<t;e++)Bl(r.shift())}function Bl(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(s){setTimeout(()=>{throw s})}}function $p(r,e,t){Ss||Fp(),Ll.push([r,e,t])}/**
1728
1728
  * @license
1729
1729
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1730
1730
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1731
- */const gi=r=>r.test(navigator.userAgent),Cs=r=>r.test(navigator.platform),Up=r=>r.test(navigator.vendor);gi(/Android/u);gi(/Chrome/u)&&Up(/Google Inc/u);gi(/Firefox/u);const $p=Cs(/^iPad/u)||Cs(/^Mac/u)&&navigator.maxTouchPoints>1,jp=Cs(/^iPhone/u),Gp=jp||$p,qp=gi(/^((?!chrome|android).)*safari/iu),Ss=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
1731
+ */const gi=r=>r.test(navigator.userAgent),As=r=>r.test(navigator.platform),jp=r=>r.test(navigator.vendor);gi(/Android/u);gi(/Chrome/u)&&jp(/Google Inc/u);gi(/Firefox/u);const Gp=As(/^iPad/u)||As(/^Mac/u)&&navigator.maxTouchPoints>1,qp=As(/^iPhone/u),Wp=qp||Gp,Yp=gi(/^((?!chrome|android).)*safari/iu),Ts=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
1732
1732
  * @license
1733
1733
  * Copyright (c) 2017 Anton Korzunov
1734
1734
  * SPDX-License-Identifier: MIT
1735
- */let _t=new WeakMap,Nr=new WeakMap,kr={},Vi=0;const Pn=r=>r&&r.nodeType===Node.ELEMENT_NODE,Ui=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},Wp=(r,e)=>Pn(r)?e.map(t=>{if(!Pn(t))return Ui(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return Ui(t,"is not contained inside",r),null}).filter(t=>!!t):(Ui(r,"is not a valid element"),[]),Yp=(r,e,t,i)=>{const s=Wp(e,Array.isArray(r)?r:[r]);kr[t]||(kr[t]=new WeakMap);const o=kr[t],n=[],a=new Set,l=new Set(s),u=d=>{if(!d||a.has(d))return;a.add(d);const f=d.assignedSlot;f&&u(f),u(d.parentNode||d.host)};s.forEach(u);const c=d=>{if(!d||l.has(d))return;const f=d.shadowRoot;(f?[...d.children,...f.children]:[...d.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else{const g=_.getAttribute(i),w=g!==null&&g!=="false",v=(_t.get(_)||0)+1,y=(o.get(_)||0)+1;_t.set(_,v),o.set(_,y),n.push(_),v===1&&w&&Nr.set(_,!0),y===1&&_.setAttribute(t,"true"),w||_.setAttribute(i,"true")}})};return c(e),a.clear(),Vi+=1,()=>{n.forEach(d=>{const f=_t.get(d)-1,p=o.get(d)-1;_t.set(d,f),o.set(d,p),f||(Nr.has(d)?Nr.delete(d):d.removeAttribute(i)),p||d.removeAttribute(t)}),Vi-=1,Vi||(_t=new WeakMap,_t=new WeakMap,Nr=new WeakMap,kr={})}},Xp=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),Yp(i,e,t,"aria-hidden")};/**
1735
+ */let _t=new WeakMap,Nr=new WeakMap,kr={},$i=0;const En=r=>r&&r.nodeType===Node.ELEMENT_NODE,ji=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},Xp=(r,e)=>En(r)?e.map(t=>{if(!En(t))return ji(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return ji(t,"is not contained inside",r),null}).filter(t=>!!t):(ji(r,"is not a valid element"),[]),Zp=(r,e,t,i)=>{const s=Xp(e,Array.isArray(r)?r:[r]);kr[t]||(kr[t]=new WeakMap);const o=kr[t],n=[],a=new Set,l=new Set(s),u=d=>{if(!d||a.has(d))return;a.add(d);const f=d.assignedSlot;f&&u(f),u(d.parentNode||d.host)};s.forEach(u);const c=d=>{if(!d||l.has(d))return;const f=d.shadowRoot;(f?[...d.children,...f.children]:[...d.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else{const g=_.getAttribute(i),w=g!==null&&g!=="false",v=(_t.get(_)||0)+1,y=(o.get(_)||0)+1;_t.set(_,v),o.set(_,y),n.push(_),v===1&&w&&Nr.set(_,!0),y===1&&_.setAttribute(t,"true"),w||_.setAttribute(i,"true")}})};return c(e),a.clear(),$i+=1,()=>{n.forEach(d=>{const f=_t.get(d)-1,p=o.get(d)-1;_t.set(d,f),o.set(d,p),f||(Nr.has(d)?Nr.delete(d):d.removeAttribute(i)),p||d.removeAttribute(t)}),$i-=1,$i||(_t=new WeakMap,_t=new WeakMap,Nr=new WeakMap,kr={})}},Jp=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),Zp(i,e,t,"aria-hidden")};/**
1736
1736
  * @license
1737
1737
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1738
1738
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1739
- */class Zp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Xp(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
1739
+ */class Kp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Jp(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
1740
1740
  * @license
1741
1741
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1742
1742
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1743
- */let to=!1;window.addEventListener("keydown",()=>{to=!0},{capture:!0});window.addEventListener("mousedown",()=>{to=!1},{capture:!0});function As(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function ro(){return to}function Jp(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function Kp(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function Qp(r,e){const t=[];for(;r.length>0&&e.length>0;)Kp(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function Ts(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=Ts(r.slice(0,t)),s=Ts(r.slice(t));return Qp(i,s)}function Ml(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Bl(r){return r.getRootNode().activeElement===r}function em(r){if(!Ml(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function Rl(r,e){if(r.nodeType!==Node.ELEMENT_NODE||Jp(r))return!1;const t=r,i=em(t);let s=i>0;i>=0&&e.push(t);let o=[];return t.localName==="slot"?o=t.assignedNodes({flatten:!0}):o=(t.shadowRoot||t).children,[...o].forEach(n=>{s=Rl(n,e)||s}),s}function tm(r){const e=[];return Rl(r,e)?Ts(e):e}/**
1743
+ */let io=!1;window.addEventListener("keydown",()=>{io=!0},{capture:!0});window.addEventListener("mousedown",()=>{io=!1},{capture:!0});function Is(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function so(){return io}function Qp(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function em(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function tm(r,e){const t=[];for(;r.length>0&&e.length>0;)em(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function Os(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=Os(r.slice(0,t)),s=Os(r.slice(t));return tm(i,s)}function Rl(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Dl(r){return r.getRootNode().activeElement===r}function rm(r){if(!Rl(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function Hl(r,e){if(r.nodeType!==Node.ELEMENT_NODE||Qp(r))return!1;const t=r,i=rm(t);let s=i>0;i>=0&&e.push(t);let o=[];return t.localName==="slot"?o=t.assignedNodes({flatten:!0}):o=(t.shadowRoot||t).children,[...o].forEach(n=>{s=Hl(n,e)||s}),s}function im(r){const e=[];return Hl(r,e)?Os(e):e}/**
1744
1744
  * @license
1745
1745
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1746
1746
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1747
- */class rm{saveFocus(e){this.focusNode=e||As()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;As()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
1747
+ */class sm{saveFocus(e){this.focusNode=e||Is()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;Is()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
1748
1748
  * @license
1749
1749
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1750
1750
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1751
- */const $i=[];class im{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return tm(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Bl).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");$i.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,$i.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from($i).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,s=this.__focusedElementIndex,o=(t.length+s+i)%t.length,n=t[o];n.focus(),n.localName==="input"&&n.select()}}/**
1751
+ */const Gi=[];class om{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return im(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Dl).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Gi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Gi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Gi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,s=this.__focusedElementIndex,o=(t.length+s+i)%t.length,n=t[o];n.focus(),n.localName==="input"&&n.select()}}/**
1752
1752
  * @license
1753
1753
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1754
1754
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1756,19 +1756,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1756
1756
  * @license
1757
1757
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1758
1758
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1759
- */const sm=r=>class extends bi(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Zp(this),this.__focusTrapController=new im(this),this.__focusRestorationController=new rm}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 t=!ro();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=As();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let i=t;const s=t.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
1759
+ */const nm=r=>class extends bi(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Kp(this),this.__focusTrapController=new om(this),this.__focusRestorationController=new sm}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 t=!so();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Is();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let i=t;const s=t.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
1760
1760
  * @license
1761
1761
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1762
1762
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1763
- */const Dl=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),Is=()=>Dl().filter(r=>r.$.overlay),om=r=>r===Is().pop(),nm=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return om(this)}bringToFront(){let t="";const i=Dl().filter(s=>s!==this).pop();i&&(t=i.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Is().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Is();let i;for(;(i=t.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
1763
+ */const zl=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),Ns=()=>zl().filter(r=>r.$.overlay),am=r=>r===Ns().pop(),lm=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return am(this)}bringToFront(){let t="";const i=zl().filter(s=>s!==this).pop();i&&(t=i.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Ns().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Ns();let i;for(;(i=t.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
1764
1764
  * @license
1765
1765
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1766
1766
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1767
- */const am=r=>class extends sm(nm(r)){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),Gp&&(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(t){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,s=window.innerWidth>t,o=document.documentElement.clientHeight;s&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-t}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(t,i,s,o){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&t&&(a||u||n)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,i){t?(this._saveFocus(),this._animatedOpening(),Vp(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),i=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(t,i){const s=`__${t}Handler`,o=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const i=`__${t}Handler`;typeof this[i]=="function"&&this[i]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(t)}}};/**
1767
+ */const um=r=>class extends nm(lm(r)){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),Wp&&(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(t){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,s=window.innerWidth>t,o=document.documentElement.clientHeight;s&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-t}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(t,i,s,o){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&t&&(a||u||n)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,i){t?(this._saveFocus(),this._animatedOpening(),$p(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),i=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(t,i){const s=`__${t}Handler`,o=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const i=`__${t}Handler`;typeof this[i]=="function"&&this[i]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(t)}}};/**
1768
1768
  * @license
1769
1769
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1770
1770
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1771
- */const lm=W`
1771
+ */const cm=W`
1772
1772
  :host {
1773
1773
  z-index: 200;
1774
1774
  position: fixed;
@@ -1831,23 +1831,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1831
1831
  * @license
1832
1832
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1833
1833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1834
- */function um(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function io(r){return r?new Set(r.split(" ")):new Set}function vi(r){return r?[...r].join(" "):""}function Hl(r,e,t){const i=io(r.getAttribute(e));i.add(t),r.setAttribute(e,vi(i))}function cm(r,e,t){const i=io(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,vi(i))}function dm(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
1834
+ */function dm(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function oo(r){return r?new Set(r.split(" ")):new Set}function vi(r){return r?[...r].join(" "):""}function Fl(r,e,t){const i=oo(r.getAttribute(e));i.add(t),r.setAttribute(e,vi(i))}function hm(r,e,t){const i=oo(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,vi(i))}function fm(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
1835
1835
  * @license
1836
1836
  * Copyright (c) 2024 Vaadin Ltd.
1837
1837
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1838
- */function hm(r,e){let t=null;const i=document.documentElement;function s(){t&&t.disconnect(),t=null}function o(n=!1,a=1){s();const{left:l,top:u,width:c,height:d}=r.getBoundingClientRect();if(n||e(),!c||!d)return;const f=Math.floor(u),p=Math.floor(i.clientWidth-(l+c)),_=Math.floor(i.clientHeight-(u+d)),g=Math.floor(l),v={rootMargin:`${-f}px ${-p}px ${-_}px ${-g}px`,threshold:Math.max(0,Math.min(1,a))||1};let y=!0;function A(I){let x=I[0].intersectionRatio;if(x!==a){if(!y)return o();x===0&&(x=1e-7),o(!1,x)}y=!1}t=new IntersectionObserver(A,v),t.observe(r)}return o(!0),s}/**
1838
+ */function pm(r,e){let t=null;const i=document.documentElement;function s(){t&&t.disconnect(),t=null}function o(n=!1,a=1){s();const{left:l,top:u,width:c,height:d}=r.getBoundingClientRect();if(n||e(),!c||!d)return;const f=Math.floor(u),p=Math.floor(i.clientWidth-(l+c)),_=Math.floor(i.clientHeight-(u+d)),g=Math.floor(l),v={rootMargin:`${-f}px ${-p}px ${-_}px ${-g}px`,threshold:Math.max(0,Math.min(1,a))||1};let y=!0;function A(I){let x=I[0].intersectionRatio;if(x!==a){if(!y)return o();x===0&&(x=1e-7),o(!1,x)}y=!1}t=new IntersectionObserver(A,v),t.observe(r)}return o(!0),s}/**
1839
1839
  * @license
1840
1840
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1841
1841
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1842
- */const ji={start:"top",end:"bottom"},Gi={start:"left",end:"right"},En=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),fm=r=>class extends r{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=um(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=hm(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,En.unobserve(i),t&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,En.observe(i))),t){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(s[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(t);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,s),n=!s&&o||s&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,ji,this,i),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,Gi,this,o);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(t,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,s,o,this.__margins,n,this.noHorizontalOverlap,Gi)}__shouldAlignStartVertically(t){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(t,i,s,this.__margins,o,this.noVerticalOverlap,ji)}__shouldAlignStart(t,i,s,o,n,a,l){const u=s-t[a?l.end:l.start]-o[l.end],c=t[a?l.start:l.end]-o[l.start],d=n?u:c,p=d>(n?c:u)||d>i;return n===p}__adjustBottomProperty(t,i,s){let o;if(t===i.end){if(i.end===ji.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;o=s-a}this.__oldViewportHeight=n}if(i.end===Gi.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;o=s-a}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(t,i,s,o,n,a){const l=a?o.start:o.end,u=a?o.end:o.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),d=this.__adjustBottomProperty(l,o,c),f=i[a?o.start:o.end]-t[s===a?o.end:o.start],p=d?`${d}px`:`${c+f*(a?-1:1)}px`;return{[l]:p,[u]:""}}};/**
1842
+ */const qi={start:"top",end:"bottom"},Wi={start:"left",end:"right"},Cn=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),mm=r=>class extends r{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=dm(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=pm(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Cn.unobserve(i),t&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Cn.observe(i))),t){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(s[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(t);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,s),n=!s&&o||s&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,qi,this,i),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,Wi,this,o);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(t,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,s,o,this.__margins,n,this.noHorizontalOverlap,Wi)}__shouldAlignStartVertically(t){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(t,i,s,this.__margins,o,this.noVerticalOverlap,qi)}__shouldAlignStart(t,i,s,o,n,a,l){const u=s-t[a?l.end:l.start]-o[l.end],c=t[a?l.start:l.end]-o[l.start],d=n?u:c,p=d>(n?c:u)||d>i;return n===p}__adjustBottomProperty(t,i,s){let o;if(t===i.end){if(i.end===qi.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;o=s-a}this.__oldViewportHeight=n}if(i.end===Wi.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;o=s-a}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(t,i,s,o,n,a){const l=a?o.start:o.end,u=a?o.end:o.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),d=this.__adjustBottomProperty(l,o,c),f=i[a?o.start:o.end]-t[s===a?o.end:o.start],p=d?`${d}px`:`${c+f*(a?-1:1)}px`;return{[l]:p,[u]:""}}};/**
1843
1843
  * @license
1844
1844
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1845
1845
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1846
- */const pm=r=>class extends fm(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,i=t&&t.getAttribute("dir");i&&this.setAttribute("dir",i)}_shouldCloseOnOutsideClick(t){const i=t.composedPath();return!i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!Ml(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){const t=this.localName;this.style.setProperty(`--_${t}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${t}-width`);i===""?this.style.removeProperty(`--${t}-width`):this.style.setProperty(`--${t}-width`,i)}_setOverlayWidth(t,i){t&&i&&(this._updateOverlayWidth(),this._updatePosition())}};/**
1846
+ */const _m=r=>class extends mm(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,i=t&&t.getAttribute("dir");i&&this.setAttribute("dir",i)}_shouldCloseOnOutsideClick(t){const i=t.composedPath();return!i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!Rl(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){const t=this.localName;this.style.setProperty(`--_${t}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${t}-width`);i===""?this.style.removeProperty(`--${t}-width`):this.style.setProperty(`--${t}-width`,i)}_setOverlayWidth(t,i){t&&i&&(this._updateOverlayWidth(),this._updatePosition())}};/**
1847
1847
  * @license
1848
1848
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1849
1849
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1850
- */const mm=W`
1850
+ */const gm=W`
1851
1851
  #overlay {
1852
1852
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
1853
1853
  }
@@ -1857,13 +1857,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1857
1857
  flex-direction: column;
1858
1858
  height: 100%;
1859
1859
  }
1860
- `;Pe("vaadin-combo-box-overlay",[lm,mm],{moduleId:"vaadin-combo-box-overlay-styles"});class _m extends pm(am(_i(pi(vr)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return br`
1860
+ `;Pe("vaadin-combo-box-overlay",[cm,gm],{moduleId:"vaadin-combo-box-overlay-styles"});class bm extends _m(um(_i(pi(vr)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return br`
1861
1861
  <div id="backdrop" part="backdrop" hidden></div>
1862
1862
  <div part="overlay" id="overlay">
1863
1863
  <div part="loader"></div>
1864
1864
  <div part="content" id="content"><slot></slot></div>
1865
1865
  </div>
1866
- `}}Rt(_m);/**
1866
+ `}}Rt(bm);/**
1867
1867
  * @license
1868
1868
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1869
1869
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1871,7 +1871,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1871
1871
  * @license
1872
1872
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1873
1873
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1874
- */let gm=0;function zl(){return gm++}/**
1874
+ */let vm=0;function Vl(){return vm++}/**
1875
1875
  * @license
1876
1876
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1877
1877
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1879,7 +1879,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1879
1879
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1880
1880
  * Code distributed by Google as part of the polymer project is also
1881
1881
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1882
- */let Cn=0,Fl=0;const Ct=[];let Os=!1;function bm(){Os=!1;const r=Ct.length;for(let e=0;e<r;e++){const t=Ct[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Ct.splice(0,r),Fl+=r}const Fr={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},fr={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},Vl={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},Ns={run(r){Os||(Os=!0,queueMicrotask(()=>bm())),Ct.push(r);const e=Cn;return Cn+=1,e},cancel(r){const e=r-Fl;if(e>=0){if(!Ct[e])throw new Error(`invalid async handle: ${r}`);Ct[e]=null}}};/**
1882
+ */let Sn=0,Ul=0;const Ct=[];let ks=!1;function ym(){ks=!1;const r=Ct.length;for(let e=0;e<r;e++){const t=Ct[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}Ct.splice(0,r),Ul+=r}const Fr={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},fr={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},$l={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},Ms={run(r){ks||(ks=!0,queueMicrotask(()=>ym())),Ct.push(r);const e=Sn;return Sn+=1,e},cancel(r){const e=r-Ul;if(e>=0){if(!Ct[e])throw new Error(`invalid async handle: ${r}`);Ct[e]=null}}};/**
1883
1883
  @license
1884
1884
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1885
1885
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1887,7 +1887,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1887
1887
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1888
1888
  Code distributed by Google as part of the polymer project is also
1889
1889
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1890
- */const pr=new Set;class De{static debounce(e,t,i){return e instanceof De?e._cancelAsync():e=new De,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,pr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),pr.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 Ul(r){pr.add(r)}function vm(){const r=!!pr.size;return pr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Zt=()=>{let r;do r=vm();while(r)};/**
1890
+ */const pr=new Set;class De{static debounce(e,t,i){return e instanceof De?e._cancelAsync():e=new De,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,pr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),pr.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 jl(r){pr.add(r)}function wm(){const r=!!pr.size;return pr.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Zt=()=>{let r;do r=wm();while(r)};/**
1891
1891
  * @license
1892
1892
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
1893
1893
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1895,11 +1895,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1895
1895
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1896
1896
  * Code distributed by Google as part of the polymer project is also
1897
1897
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1898
- */const Sn=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),ym=Sn&&Sn[1]>=8,An=3,wm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ns)}},_getReusables(r){let e,t,i;const s=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let u=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,d=this._scrollPosition,f=this._scrollBottom;for(r?(e=this._physicalStart,t=d-u):(e=this._physicalEnd,t=c-f);i=this._getPhysicalSizeIncrement(e),t-=i,!(s.length>=l||t<=o);)if(r){if(a+s.length+1>=this._virtualCount||u+i>=d-this._scrollOffset)break;s.push(e),u+=i,e=(e+1)%l}else{if(n-s.length<=0||u+this._physicalSize-i<=f)break;s.push(e),u-=i,e=e===0?l-1:e-1}return{indexes:s,physicalTop:u-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const t=this._clamp(this._physicalCount+r,An,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){const s=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let o=0;o<t;o++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-s)/t,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Vl):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),Ns))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(An))},_itemsChanged(r){r.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,fr))},_iterateItems(r,e){let t,i,s,o;if(arguments.length===2&&e){for(o=0;o<e.length;o++)if(t=e[o],i=this._computeVidx(t),(s=r.call(this,t,i))!=null)return s}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((s=r.call(this,t,i))!=null)return s;for(t=0;t<this._physicalStart;t++,i++)if((s=r.call(this,t,i))!=null)return s}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!ym&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Zt(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const s=this._hiddenContentSize;for(;t<r&&i<=s;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},fr)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=De.debounce(this._debouncers[r],t,e.bind(this)),Ul(this._debouncers[r])}};/**
1898
+ */const An=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),xm=An&&An[1]>=8,Tn=3,Pm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ms)}},_getReusables(r){let e,t,i;const s=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let u=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,d=this._scrollPosition,f=this._scrollBottom;for(r?(e=this._physicalStart,t=d-u):(e=this._physicalEnd,t=c-f);i=this._getPhysicalSizeIncrement(e),t-=i,!(s.length>=l||t<=o);)if(r){if(a+s.length+1>=this._virtualCount||u+i>=d-this._scrollOffset)break;s.push(e),u+=i,e=(e+1)%l}else{if(n-s.length<=0||u+this._physicalSize-i<=f)break;s.push(e),u-=i,e=e===0?l-1:e-1}return{indexes:s,physicalTop:u-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const t=this._clamp(this._physicalCount+r,Tn,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){const s=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let o=0;o<t;o++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-s)/t,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),$l):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),Ms))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Tn))},_itemsChanged(r){r.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,fr))},_iterateItems(r,e){let t,i,s,o;if(arguments.length===2&&e){for(o=0;o<e.length;o++)if(t=e[o],i=this._computeVidx(t),(s=r.call(this,t,i))!=null)return s}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((s=r.call(this,t,i))!=null)return s;for(t=0;t<this._physicalStart;t++,i++)if((s=r.call(this,t,i))!=null)return s}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!xm&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Zt(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const s=this._hiddenContentSize;for(;t<r&&i<=s;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},fr)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=De.debounce(this._debouncers[r],t,e.bind(this)),jl(this._debouncers[r])}};/**
1899
1899
  * @license
1900
1900
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1901
1901
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1902
- */const xm=1e5,qi=1e3;class $l{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const u=l.width===0&&l.height===0;!u&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=u}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<qi?(i=e,this._vidxOffset=0):(i=qi,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Zt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=e&&s.__virtualIndex<=t&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Zt();let t=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const s=parseFloat(t.paddingBottom)||0,o=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+s+o+n+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=De.debounce(this.__placeholderClearDebouncer,fr,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Zt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const s=this.__getIndexScrollOffset(t);i!==void 0&&s!==void 0&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Zt(),this._debounce("_update",this._update,Ns)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,xm)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,s)=>{const o=this._physicalItems[i];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),t.push(o))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,s){s.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,s)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=De.debounce(this.__fixInvalidItemPositioningDebouncer,Fr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=De.debounce(this.__scrollReorderDebouncer,Fr.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!s){const o=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=De.debounce(this.__debouncerWheelAnimationFrame,fr,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=De.debounce(this._debouncerIgnoreNewWheel,Fr.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,i)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const s=i.__virtualIndex-e,o=t.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(t[n]);else if(o<0)for(let n=t.length+o;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(qp){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,s=qi,o=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf($l.prototype,wm);class Pm{constructor(e){this.__adapter=new $l(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
1902
+ */const Em=1e5,Yi=1e3;class Gl{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const u=l.width===0&&l.height===0;!u&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=u}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Yi?(i=e,this._vidxOffset=0):(i=Yi,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Zt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=e&&s.__virtualIndex<=t&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Zt();let t=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const s=parseFloat(t.paddingBottom)||0,o=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+s+o+n+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=De.debounce(this.__placeholderClearDebouncer,fr,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Zt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const s=this.__getIndexScrollOffset(t);i!==void 0&&s!==void 0&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Zt(),this._debounce("_update",this._update,Ms)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Em)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,s)=>{const o=this._physicalItems[i];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),t.push(o))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,s){s.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,s)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=De.debounce(this.__fixInvalidItemPositioningDebouncer,Fr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=De.debounce(this.__scrollReorderDebouncer,Fr.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!s){const o=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=De.debounce(this.__debouncerWheelAnimationFrame,fr,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=De.debounce(this._debouncerIgnoreNewWheel,Fr.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,i)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const s=i.__virtualIndex-e,o=t.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(t[n]);else if(o<0)for(let n=t.length+o;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Yp){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,s=Yi,o=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Gl.prototype,Pm);class Cm{constructor(e){this.__adapter=new Gl(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
1903
1903
  * @license
1904
1904
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1905
1905
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1907,11 +1907,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1907
1907
  * @license
1908
1908
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1909
1909
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1910
- */const Em=r=>class extends r{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,s)=>i+s)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${zl()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const i=this._visibleItemsCount();let s=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),s=t-i+1):t>this.__virtualizer.firstVisibleIndex&&(s=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,s));const o=[...this.children].find(u=>!u.hidden&&u.index===this.__virtualizer.lastVisibleIndex);if(!o||t!==o.index)return;const n=o.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(t,i,s){return t instanceof kt?!1:s&&t!==void 0&&i!==void 0?ii(s,t)===ii(s,i):t===i}__initVirtualizer(){this.__virtualizer=new Pm({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,i){(t||i)&&this.requestContentUpdate()}__focusedIndexChanged(t,i){t!==i&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,i){(t||i)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(t,i){const s=this.items[i],o=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);t.setProperties({item:s,index:i,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&o===i}),typeof this.itemClassNameGenerator=="function"?t.className=this.itemClassNameGenerator(s):t.className!==""&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${i}`,t.setAttribute("role",i!==void 0?"option":!1),t.setAttribute("aria-selected",n.toString()),t.setAttribute("aria-posinset",i+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),s instanceof kt&&this.__requestItemByIndex(i)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",t=>{const i=this.scrollTop===0,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&t.deltaY<0||s&&t.deltaY>0)&&t.preventDefault()})}__requestItemByIndex(t){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
1910
+ */const Sm=r=>class extends r{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,s)=>i+s)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Vl()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const i=this._visibleItemsCount();let s=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),s=t-i+1):t>this.__virtualizer.firstVisibleIndex&&(s=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,s));const o=[...this.children].find(u=>!u.hidden&&u.index===this.__virtualizer.lastVisibleIndex);if(!o||t!==o.index)return;const n=o.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(t,i,s){return t instanceof kt?!1:s&&t!==void 0&&i!==void 0?ii(s,t)===ii(s,i):t===i}__initVirtualizer(){this.__virtualizer=new Cm({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,i){(t||i)&&this.requestContentUpdate()}__focusedIndexChanged(t,i){t!==i&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,i){(t||i)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(t,i){const s=this.items[i],o=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);t.setProperties({item:s,index:i,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&o===i}),typeof this.itemClassNameGenerator=="function"?t.className=this.itemClassNameGenerator(s):t.className!==""&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${i}`,t.setAttribute("role",i!==void 0?"option":!1),t.setAttribute("aria-selected",n.toString()),t.setAttribute("aria-posinset",i+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),s instanceof kt&&this.__requestItemByIndex(i)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",t=>{const i=this.scrollTop===0,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&t.deltaY<0||s&&t.deltaY>0)&&t.preventDefault()})}__requestItemByIndex(t){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
1911
1911
  * @license
1912
1912
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
1913
1913
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1914
- */class Cm extends Em(vr){static get is(){return"vaadin-combo-box-scroller"}static get template(){return br`
1914
+ */class Am extends Sm(vr){static get is(){return"vaadin-combo-box-scroller"}static get template(){return br`
1915
1915
  <style>
1916
1916
  :host {
1917
1917
  display: block;
@@ -1938,7 +1938,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1938
1938
  <div id="selector">
1939
1939
  <slot></slot>
1940
1940
  </div>
1941
- `}}Rt(Cm);const Sm=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Vr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Am(){function r(){return!0}return jl(r)}function Tm(){try{return Im()?!0:Om()?Vr?!Nm():!Am():!1}catch(r){return!1}}function Im(){return localStorage.getItem("vaadin.developmentmode.force")}function Om(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Nm(){return!!(Vr&&Object.keys(Vr).map(e=>Vr[e]).filter(e=>e.productionMode).length>0)}function jl(r,e){if(typeof r!="function")return;const t=Sm.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const Tn=function(r,e){if(window.Vaadin.developmentMode)return jl(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Tm());function km(){/*! vaadin-dev-mode:start
1941
+ `}}Rt(Am);const Tm=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Vr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Im(){function r(){return!0}return ql(r)}function Om(){try{return Nm()?!0:km()?Vr?!Mm():!Im():!1}catch(r){return!1}}function Nm(){return localStorage.getItem("vaadin.developmentmode.force")}function km(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Mm(){return!!(Vr&&Object.keys(Vr).map(e=>Vr[e]).filter(e=>e.productionMode).length>0)}function ql(r,e){if(typeof r!="function")return;const t=Tm.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const In=function(r,e){if(window.Vaadin.developmentMode)return ql(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Om());function Lm(){/*! vaadin-dev-mode:start
1942
1942
  (function () {
1943
1943
  'use strict';
1944
1944
 
@@ -2416,107 +2416,107 @@ try {
2416
2416
 
2417
2417
  }());
2418
2418
 
2419
- vaadin-dev-mode:end **/}const Lm=function(){if(typeof Tn=="function")return Tn(km)};/**
2419
+ vaadin-dev-mode:end **/}const Bm=function(){if(typeof In=="function")return In(Lm)};/**
2420
2420
  * @license
2421
2421
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2422
2422
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2423
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Lm()};let Wi;const In=new Set,Mm=r=>class extends _i(r){static finalize(){super.finalize();const{is:t}=this;t&&!In.has(t)&&(window.Vaadin.registrations.push(this),In.add(t),window.Vaadin.developmentModeCallback&&(Wi=De.debounce(Wi,Vl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ul(Wi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2423
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Bm()};let Xi;const On=new Set,Rm=r=>class extends _i(r){static finalize(){super.finalize();const{is:t}=this;t&&!On.has(t)&&(window.Vaadin.registrations.push(this),On.add(t),window.Vaadin.developmentModeCallback&&(Xi=De.debounce(Xi,$l,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),jl(Xi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2424
2424
  * @license
2425
2425
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2426
2426
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2427
- */class Bm{constructor(e,t){this.slot=e,this.callback=t,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 e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],s=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const a=e.indexOf(o);a===-1?i.push(o):a!==n&&s.push(o)}),(t.length||i.length||s.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:s,removedNodes:i}),this._storedNodes=e}}/**
2427
+ */class Dm{constructor(e,t){this.slot=e,this.callback=t,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 e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],s=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const a=e.indexOf(o);a===-1?i.push(o):a!==n&&s.push(o)}),(t.length||i.length||s.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:s,removedNodes:i}),this._storedNodes=e}}/**
2428
2428
  * @license
2429
2429
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2430
2430
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2431
- */class so extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${zl()}`}constructor(e,t,i,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:u}=s;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(t!==""&&s.setAttribute("slot",t),this.defaultNode=s)),s&&(this.node=s,e.appendChild(s)),s}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Bm(i,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!dm(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2431
+ */class no extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Vl()}`}constructor(e,t,i,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:u}=s;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(t!==""&&s.setAttribute("slot",t),this.defaultNode=s)),s&&(this.node=s,e.appendChild(s)),s}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Dm(i,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!fm(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2432
2432
  * @license
2433
2433
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2434
2434
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2435
- */class Rm extends so{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2435
+ */class Hm extends no{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2436
2436
  * @license
2437
2437
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2438
2438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2439
- */const Gl=we(r=>class extends r{get _keyboardActive(){return ro()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2439
+ */const Wl=we(r=>class extends r{get _keyboardActive(){return so()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2440
2440
  * @license
2441
2441
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2442
2442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2443
- */const ql=we(r=>class extends r{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2443
+ */const Yl=we(r=>class extends r{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2444
2444
  * @license
2445
2445
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2446
2446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2447
- */const Dm=r=>class extends ql(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,i){super._disabledChanged(t,i),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2447
+ */const zm=r=>class extends Yl(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,i){super._disabledChanged(t,i),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2448
2448
  * @license
2449
2449
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2450
2450
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2451
- */const Hm=we(r=>class extends Gl(Dm(r)){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(t,i){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,i){super._disabledChanged(t,i),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
2451
+ */const Fm=we(r=>class extends Wl(zm(r)){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(t,i){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,i){super._disabledChanged(t,i),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
2452
2452
  * @license
2453
2453
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2454
2454
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2455
- */const oo=we(r=>class extends r{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2455
+ */const ao=we(r=>class extends r{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2456
2456
  * @license
2457
2457
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2458
2458
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2459
- */const Yi=new WeakMap;function zm(r){return Yi.has(r)||Yi.set(r,new Set),Yi.get(r)}function Fm(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Vm=we(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),i=zm(t);this.slotStyles.forEach(s=>{i.has(s)||(Fm(s,t),i.add(s))})}});/**
2459
+ */const Zi=new WeakMap;function Vm(r){return Zi.has(r)||Zi.set(r,new Set),Zi.get(r)}function Um(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const $m=we(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),i=Vm(t);this.slotStyles.forEach(s=>{i.has(s)||(Um(s,t),i.add(s))})}});/**
2460
2460
  * @license
2461
2461
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2462
2462
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2463
- */const no=we(r=>class extends r{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,i){t?this._addInputListeners(t):i&&this._removeInputListeners(i)}_hasInputValueChanged(t,i){(t||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const i=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,i){this._toggleHasValue(this._hasValue),!(t===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const i=t.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
2463
+ */const lo=we(r=>class extends r{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,i){t?this._addInputListeners(t):i&&this._removeInputListeners(i)}_hasInputValueChanged(t,i){(t||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const i=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,i){this._toggleHasValue(this._hasValue),!(t===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const i=t.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
2464
2464
  * @license
2465
2465
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2466
2466
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2467
- */const Um=r=>class extends no(oo(r)){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",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Ss||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
2467
+ */const jm=r=>class extends lo(ao(r)){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",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Ts||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
2468
2468
  * @license
2469
2469
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2470
2470
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2471
- */const Xi=new Map;function ao(r){return Xi.has(r)||Xi.set(r,new WeakMap),Xi.get(r)}function Wl(r,e){r&&r.removeAttribute(e)}function Yl(r,e){if(!r||!e)return;const t=ao(e);if(t.has(r))return;const i=io(r.getAttribute(e));t.set(r,new Set(i))}function $m(r,e){if(!r||!e)return;const t=ao(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):Hl(r,e,vi(i)),t.delete(r)}function Zi(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:s,fromUser:o}=t,n=ao(e),a=n.get(r);if(!o&&a){s&&a.delete(s),i&&a.add(i);return}o&&(a?i||n.delete(r):Yl(r,e),Wl(r,e)),cm(r,e,s);const l=i||vi(a);l&&Hl(r,e,l)}function jm(r,e){Yl(r,e),Wl(r,e)}/**
2471
+ */const Ji=new Map;function uo(r){return Ji.has(r)||Ji.set(r,new WeakMap),Ji.get(r)}function Xl(r,e){r&&r.removeAttribute(e)}function Zl(r,e){if(!r||!e)return;const t=uo(e);if(t.has(r))return;const i=oo(r.getAttribute(e));t.set(r,new Set(i))}function Gm(r,e){if(!r||!e)return;const t=uo(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):Fl(r,e,vi(i)),t.delete(r)}function Ki(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:s,fromUser:o}=t,n=uo(e),a=n.get(r);if(!o&&a){s&&a.delete(s),i&&a.add(i);return}o&&(a?i||n.delete(r):Zl(r,e),Xl(r,e)),hm(r,e,s);const l=i||vi(a);l&&Fl(r,e,l)}function qm(r,e){Zl(r,e),Xl(r,e)}/**
2472
2472
  * @license
2473
2473
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2474
2474
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2475
- */class Gm{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(jm(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&($m(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){Zi(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){Zi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Zi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
2475
+ */class Wm{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(qm(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Gm(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){Ki(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){Ki(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Ki(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
2476
2476
  * @license
2477
2477
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2478
2478
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2479
- */const ze=document.createElement("div");ze.style.position="fixed";ze.style.clip="rect(0px, 0px, 0px, 0px)";ze.setAttribute("aria-live","polite");document.body.appendChild(ze);let Lr;function qm(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(ze.removeAttribute("aria-live"),ze.removeAttribute("role"),Lr=De.debounce(Lr,fr,()=>{ze.setAttribute("role","alert")})):(Lr&&Lr.cancel(),ze.removeAttribute("role"),ze.setAttribute("aria-live",t)),ze.textContent="",setTimeout(()=>{ze.textContent=r},i)}/**
2479
+ */const ze=document.createElement("div");ze.style.position="fixed";ze.style.clip="rect(0px, 0px, 0px, 0px)";ze.setAttribute("aria-live","polite");document.body.appendChild(ze);let Mr;function Ym(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(ze.removeAttribute("aria-live"),ze.removeAttribute("role"),Mr=De.debounce(Mr,fr,()=>{ze.setAttribute("role","alert")})):(Mr&&Mr.cancel(),ze.removeAttribute("role"),ze.setAttribute("aria-live",t)),ze.textContent="",setTimeout(()=>{ze.textContent=r},i)}/**
2480
2480
  * @license
2481
2481
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2482
2482
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2483
- */class lo extends so{constructor(e,t,i,s={}){super(e,t,i,Cr(Ke({},s),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const s=i.target,o=s===this.node;i.type==="attributes"?o&&this.__updateNodeId(s):(o||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
2483
+ */class co extends no{constructor(e,t,i,s={}){super(e,t,i,Cr(Ke({},s),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const s=i.target,o=s===this.node;i.type==="attributes"?o&&this.__updateNodeId(s):(o||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
2484
2484
  * @license
2485
2485
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2486
2486
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2487
- */class Wm extends lo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,s=!!(i&&t&&t.trim()!=="");e&&(e.textContent=s?t:"",e.hidden=!s,s&&qm(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
2487
+ */class Xm extends co{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,s=!!(i&&t&&t.trim()!=="");e&&(e.textContent=s?t:"",e.hidden=!s,s&&Ym(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
2488
2488
  * @license
2489
2489
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2490
2490
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2491
- */class Ym extends lo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
2491
+ */class Zm extends co{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
2492
2492
  * @license
2493
2493
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2494
2494
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2495
- */class Xm extends lo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
2495
+ */class Jm extends co{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
2496
2496
  * @license
2497
2497
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2498
2498
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2499
- */const Zm=we(r=>class extends bi(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Xm(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
2499
+ */const Km=we(r=>class extends bi(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Jm(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
2500
2500
  * @license
2501
2501
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2502
2502
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2503
- */const uo=we(r=>class extends r{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
2503
+ */const ho=we(r=>class extends r{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
2504
2504
  * @license
2505
2505
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2506
2506
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2507
- */const Jm=r=>class extends uo(Zm(bi(r))){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 Gm(this),this._helperController=new Ym(this),this._errorController=new Wm(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:i,node:s}=t.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:i,node:s}=t.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,i){t?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,i){t?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
2507
+ */const Qm=r=>class extends ho(Km(bi(r))){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 Wm(this),this._helperController=new Zm(this),this._errorController=new Xm(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:i,node:s}=t.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:i,node:s}=t.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,i){t?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,i){t?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
2508
2508
  * @license
2509
2509
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2510
2510
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2511
- */const Km=we(r=>class extends r{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(t){t&&(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(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,t[s])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,t[s])})}_delegateAttribute(t,i){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(t,i):i?this.stateTarget.setAttribute(t,i):this.stateTarget.removeAttribute(t))}_delegateProperty(t,i){this.stateTarget&&(this.stateTarget[t]=i)}});/**
2511
+ */const e_=we(r=>class extends r{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(t){t&&(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(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,t[s])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,t[s])})}_delegateAttribute(t,i){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(t,i):i?this.stateTarget.setAttribute(t,i):this.stateTarget.removeAttribute(t))}_delegateProperty(t,i){this.stateTarget&&(this.stateTarget[t]=i)}});/**
2512
2512
  * @license
2513
2513
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2514
2514
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2515
- */const Xl=we(r=>class extends Km(uo(no(r))){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(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...i){if(!t)return;const s=this._hasValidConstraints(i),o=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
2515
+ */const Jl=we(r=>class extends e_(ho(lo(r))){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(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...i){if(!t)return;const s=this._hasValidConstraints(i),o=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
2516
2516
  * @license
2517
2517
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2518
2518
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2519
- */const Qm=r=>class extends Vm(Hm(Xl(Jm(Um(oo(r)))))){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[`
2519
+ */const t_=r=>class extends $m(Fm(Jl(Qm(jm(ao(r)))))){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[`
2520
2520
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
2521
2521
  font: inherit;
2522
2522
  color: inherit;
@@ -2525,19 +2525,19 @@ try {
2525
2525
  * @license
2526
2526
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2527
2527
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2528
- */class e_ extends so{constructor(e,t,i={}){const{uniqueIdPrefix:s}=i;super(e,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
2528
+ */class r_ extends no{constructor(e,t,i={}){const{uniqueIdPrefix:s}=i;super(e,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
2529
2529
  * @license
2530
2530
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2531
2531
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2532
- */class t_{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
2532
+ */class i_{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
2533
2533
  * @license
2534
2534
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2535
2535
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2536
- */const r_=r=>class extends Xl(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
2536
+ */const s_=r=>class extends Jl(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
2537
2537
  * @license
2538
2538
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2539
2539
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2540
- */const i_=W`
2540
+ */const o_=W`
2541
2541
  [part='clear-button'] {
2542
2542
  display: none;
2543
2543
  cursor: default;
@@ -2554,7 +2554,7 @@ try {
2554
2554
  * @license
2555
2555
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2556
2556
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2557
- */const s_=W`
2557
+ */const n_=W`
2558
2558
  :host {
2559
2559
  display: inline-flex;
2560
2560
  outline: none;
@@ -2592,7 +2592,7 @@ try {
2592
2592
  * @license
2593
2593
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2594
2594
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2595
- */const o_=W`
2595
+ */const a_=W`
2596
2596
  [class$='container'] {
2597
2597
  display: flex;
2598
2598
  flex-direction: column;
@@ -2604,43 +2604,43 @@ try {
2604
2604
  * @license
2605
2605
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
2606
2606
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2607
- */const n_=[s_,o_,i_];/**
2607
+ */const l_=[n_,a_,o_];/**
2608
2608
  * @license
2609
2609
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2610
2610
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2611
- */function si(r,e,t=0){let i=e;for(const s of r.subCaches){const o=s.parentCacheIndex;if(i<=o)break;if(i<=o+s.flatSize)return si(s,i-o-1,t+1);i-=s.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function Zl({getItemId:r},e,t,i=0,s=0){for(let o=0;o<e.items.length;o++){const n=e.items[o];if(n&&r(n)===r(t))return{cache:e,level:i,item:n,index:o,page:Math.floor(o/e.pageSize),subCache:e.getSubCache(o),flatIndex:s+e.getFlatIndex(o)}}for(const o of e.subCaches){const n=s+e.getFlatIndex(o.parentCacheIndex),a=Zl({getItemId:r},o,t,i+1,n+1);if(a)return a}}function Jl(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const s=r.getFlatIndex(e),o=r.getSubCache(e);return o&&o.flatSize>0&&t.length?Jl(o,t,i+s+1):i+s}/**
2611
+ */function si(r,e,t=0){let i=e;for(const s of r.subCaches){const o=s.parentCacheIndex;if(i<=o)break;if(i<=o+s.flatSize)return si(s,i-o-1,t+1);i-=s.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function Kl({getItemId:r},e,t,i=0,s=0){for(let o=0;o<e.items.length;o++){const n=e.items[o];if(n&&r(n)===r(t))return{cache:e,level:i,item:n,index:o,page:Math.floor(o/e.pageSize),subCache:e.getSubCache(o),flatIndex:s+e.getFlatIndex(o)}}for(const o of e.subCaches){const n=s+e.getFlatIndex(o.parentCacheIndex),a=Kl({getItemId:r},o,t,i+1,n+1);if(a)return a}}function Ql(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const s=r.getFlatIndex(e),o=r.getSubCache(e);return o&&o.flatSize>0&&t.length?Ql(o,t,i+s+1):i+s}/**
2612
2612
  * @license
2613
2613
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2614
2614
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2615
- */class co{constructor(e,t,i,s,o){Z(this,"context");Z(this,"pageSize");Z(this,"items",[]);Z(this,"pendingRequests",{});Z(this,"__subCacheByIndex",{});Z(this,"__size",0);Z(this,"__flatSize",0);this.context=e,this.pageSize=t,this.size=i,this.parentCache=s,this.parentCacheIndex=o,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var i;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let s=0;s<e;s++)(i=this.items)[s]||(i[s]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(s=>{parseInt(s)*this.pageSize>=this.size&&delete this.pendingRequests[s]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((s,o)=>{const n=i+o;(this.size===void 0||n<this.size)&&(this.items[n]=s)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new co(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,s)=>{const o=s.parentCacheIndex;return t>o?i+s.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=si(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=si(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
2615
+ */class fo{constructor(e,t,i,s,o){Z(this,"context");Z(this,"pageSize");Z(this,"items",[]);Z(this,"pendingRequests",{});Z(this,"__subCacheByIndex",{});Z(this,"__size",0);Z(this,"__flatSize",0);this.context=e,this.pageSize=t,this.size=i,this.parentCache=s,this.parentCacheIndex=o,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var i;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let s=0;s<e;s++)(i=this.items)[s]||(i[s]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(s=>{parseInt(s)*this.pageSize>=this.size&&delete this.pendingRequests[s]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((s,o)=>{const n=i+o;(this.size===void 0||n<this.size)&&(this.items[n]=s)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new fo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,s)=>{const o=s.parentCacheIndex;return t>o?i+s.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=si(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=si(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
2616
2616
  * @license
2617
2617
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2618
2618
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2619
- */class a_ extends EventTarget{constructor(t,{size:i,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:u,dataProviderParams:c}){super();Z(this,"host");Z(this,"dataProvider");Z(this,"dataProviderParams");Z(this,"pageSize");Z(this,"isExpanded");Z(this,"getItemId");Z(this,"rootCache");Z(this,"placeholder");Z(this,"isPlaceholder");this.host=t,this.pageSize=s,this.getItemId=n,this.isExpanded=o,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=u,this.dataProviderParams=c,this.rootCache=this.__createRootCache(i)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(t){this.pageSize=t,this.clearCache()}setDataProvider(t){this.dataProvider=t,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(t){return si(this.rootCache,t)}getItemContext(t){return Zl({getItemId:this.getItemId},this.rootCache,t)}getFlatIndexByPath(t){return Jl(this.rootCache,t)}ensureFlatIndexLoaded(t){const{cache:i,page:s,item:o}=this.getFlatIndexContext(t);this.__isItemLoaded(o)||this.__loadCachePage(i,s)}ensureFlatIndexHierarchy(t){const{cache:i,item:s,index:o}=this.getFlatIndexContext(t);if(this.__isItemLoaded(s)&&this.isExpanded(s)&&!i.getSubCache(o)){const n=i.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(t){return new co(this.__cacheContext,this.pageSize,t)}__loadCachePage(t,i){if(!this.dataProvider||t.pendingRequests[i])return;let s={page:i,pageSize:this.pageSize,parentItem:t.parentItem};this.dataProviderParams&&(s=Ke(Ke({},s),this.dataProviderParams()));const o=(n,a)=>{t.pendingRequests[i]===o&&(a!==void 0?t.size=a:s.parentItem&&(t.size=n.length),t.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete t.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")))};t.pendingRequests[i]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(s,o)}__isItemLoaded(t){return this.isPlaceholder?!this.isPlaceholder(t):this.placeholder?t!==this.placeholder:!!t}}/**
2619
+ */class u_ extends EventTarget{constructor(t,{size:i,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:u,dataProviderParams:c}){super();Z(this,"host");Z(this,"dataProvider");Z(this,"dataProviderParams");Z(this,"pageSize");Z(this,"isExpanded");Z(this,"getItemId");Z(this,"rootCache");Z(this,"placeholder");Z(this,"isPlaceholder");this.host=t,this.pageSize=s,this.getItemId=n,this.isExpanded=o,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=u,this.dataProviderParams=c,this.rootCache=this.__createRootCache(i)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(t){this.pageSize=t,this.clearCache()}setDataProvider(t){this.dataProvider=t,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(t){return si(this.rootCache,t)}getItemContext(t){return Kl({getItemId:this.getItemId},this.rootCache,t)}getFlatIndexByPath(t){return Ql(this.rootCache,t)}ensureFlatIndexLoaded(t){const{cache:i,page:s,item:o}=this.getFlatIndexContext(t);this.__isItemLoaded(o)||this.__loadCachePage(i,s)}ensureFlatIndexHierarchy(t){const{cache:i,item:s,index:o}=this.getFlatIndexContext(t);if(this.__isItemLoaded(s)&&this.isExpanded(s)&&!i.getSubCache(o)){const n=i.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(t){return new fo(this.__cacheContext,this.pageSize,t)}__loadCachePage(t,i){if(!this.dataProvider||t.pendingRequests[i])return;let s={page:i,pageSize:this.pageSize,parentItem:t.parentItem};this.dataProviderParams&&(s=Ke(Ke({},s),this.dataProviderParams()));const o=(n,a)=>{t.pendingRequests[i]===o&&(a!==void 0?t.size=a:s.parentItem&&(t.size=n.length),t.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete t.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")))};t.pendingRequests[i]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(s,o)}__isItemLoaded(t){return this.isPlaceholder?!this.isPlaceholder(t):this.placeholder?t!==this.placeholder:!!t}}/**
2620
2620
  * @license
2621
2621
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2622
2622
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2623
- */const l_=r=>class extends r{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new a_(this,{placeholder:new kt,isPlaceholder:t=>t instanceof kt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",t=>{if(!this._shouldFetchData())return;const i=t.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(t){if(this.__previousDataProviderFilter===void 0&&t===""){this.__previousDataProviderFilter=t;return}this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(t){!this._shouldFetchData()||!t||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:t}=this.__dataProviderController;t.items=[...t.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(t){const{rootCache:i}=this.__dataProviderController;i.size!==t&&(i.size=t,i.items=[...i.items],this.__synchronizeControllerState())}_filteredItemsChanged(t){if(super._filteredItemsChanged(t),this.dataProvider&&t){const{rootCache:i}=this.__dataProviderController;i.items!==t&&(i.items=t,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:t}=this.__dataProviderController;this.size=t.size,this.filteredItems=t.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(t,i){if(Math.floor(t)!==t||t<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(t),this.clearCache()}_dataProviderChanged(t,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i}),this.__dataProviderController.setDataProvider(t),this.clearCache()}_ensureItemsOrDataProvider(t){if(this.items!==void 0&&this.dataProvider!==void 0)throw t(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(t,i){if(t&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const s=this.__getItemIndexByValue(this.filteredItems,i);(s<0||!this._getItemLabel(this.filteredItems[s]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
2623
+ */const c_=r=>class extends r{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new u_(this,{placeholder:new kt,isPlaceholder:t=>t instanceof kt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",t=>{if(!this._shouldFetchData())return;const i=t.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(t){if(this.__previousDataProviderFilter===void 0&&t===""){this.__previousDataProviderFilter=t;return}this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(t){!this._shouldFetchData()||!t||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:t}=this.__dataProviderController;t.items=[...t.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(t){const{rootCache:i}=this.__dataProviderController;i.size!==t&&(i.size=t,i.items=[...i.items],this.__synchronizeControllerState())}_filteredItemsChanged(t){if(super._filteredItemsChanged(t),this.dataProvider&&t){const{rootCache:i}=this.__dataProviderController;i.items!==t&&(i.items=t,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:t}=this.__dataProviderController;this.size=t.size,this.filteredItems=t.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(t,i){if(Math.floor(t)!==t||t<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(t),this.clearCache()}_dataProviderChanged(t,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i}),this.__dataProviderController.setDataProvider(t),this.clearCache()}_ensureItemsOrDataProvider(t){if(this.items!==void 0&&this.dataProvider!==void 0)throw t(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(t,i){if(t&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const s=this.__getItemIndexByValue(this.filteredItems,i);(s<0||!this._getItemLabel(this.filteredItems[s]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
2624
2624
  * @license
2625
2625
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2626
2626
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2627
- */const u_=r=>class extends r{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,i){if(!i||t===void 0)return;const{classList:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n)}const o=typeof t=="string"?t.split(" ").filter(Boolean):[];o.length>0&&s.add(...o),this.__previousClasses=o}};/**
2627
+ */const d_=r=>class extends r{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,i){if(!i||t===void 0)return;const{classList:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n)}const o=typeof t=="string"?t.split(" ").filter(Boolean):[];o.length>0&&s.add(...o),this.__previousClasses=o}};/**
2628
2628
  * @license
2629
2629
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2630
2630
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2631
- */function c_(r){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(r);return}r.querySelector("template")&&console.warn(`WARNING: <template> inside <${r.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
2631
+ */function h_(r){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(r);return}r.querySelector("template")&&console.warn(`WARNING: <template> inside <${r.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
2632
2632
  * @license
2633
2633
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2634
2634
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2635
- */class d_{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
2635
+ */class f_{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
2636
2636
  * @license
2637
2637
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2638
2638
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2639
- */function On(r){return r!=null}function Nn(r,e){return r.findIndex(t=>t instanceof kt?!1:e(t))}const h_=r=>class extends u_(bi(uo(Gl(oo(no(ql(r))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),c_(this),this.addController(new d_(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(t=>{t.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,i,s){super._propertiesChanged(t,i,s),i.filter!==void 0&&this._filterChanged(i.filter)}updated(t){super.updated(t),t.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",i=>i.preventDefault()),t.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=t}_initScroller(t){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=t||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(i)},s.requestContentUpdate(),this._scroller=i}_updateScroller(t,i,s,o,n,a,l,u,c,d){if(t&&(s&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:s?i:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:u,theme:c,itemClassNameGenerator:d}),t.performUpdate&&!t.hasUpdated))try{t.performUpdate()}catch(f){}}_openedOrItemsChanged(t,i,s,o){this._overlayOpened=t&&(o||s||!!(i&&i.length))}_overlayOpenedChanged(t,i){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,i){i!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&Bl(this.inputElement)}_updateActiveDescendant(t){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(o=>o.index===t);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant")}_openedChanged(t,i){if(i===void 0)return;t?!this._isInputFocused()&&!Ss&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!t),t?s.setAttribute("aria-controls",this._scroller.id):s.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),t.key==="ArrowDown"?(this._onArrowDown(),t.preventDefault()):t.key==="ArrowUp"&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let i=t&&this.itemLabelPath?ii(this.itemLabelPath,t):void 0;return i==null&&(i=t?t.toString():""),i}_getItemValue(t){let i=t&&this.itemValuePath?ii(this.itemValuePath,t):void 0;return i===void 0&&(i=t?t.toString():""),i}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(t){if(!this._hasValidInputValue()){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const t=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!t}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",i=>i.preventDefault()),t.addEventListener("click",()=>{Ss&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],i=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!i){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(t){const i=this._inputElementValue,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){typeof t!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(t==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(t);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,i){t===""&&i===void 0||(On(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),t?this.filteredItems=t.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(t){this._setDropdownItems(t)}_filterItems(t,i){return t&&t.filter(o=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(t){const i=this.__getItemIndexByValue(this.filteredItems,t),s=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){const i=this._dropdownItems;this._dropdownItems=t;const s=i?i[this._focusedIndex]:null,o=this.__getItemIndexByValue(t,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=t[o]);const n=this.__getItemIndexByValue(t,this._getItemValue(s));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(t,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,i){return!t||!On(i)?-1:Nn(t,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(t,i){return!t||!i?-1:Nn(t,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof kt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(ro()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(t){return t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:t.relatedTarget===this._overlayElement?(t.composedPath()[0].focus(),!1):!0}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}};/**
2639
+ */function Nn(r){return r!=null}function kn(r,e){return r.findIndex(t=>t instanceof kt?!1:e(t))}const p_=r=>class extends d_(bi(ho(Wl(ao(lo(Yl(r))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),h_(this),this.addController(new f_(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(t=>{t.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,i,s){super._propertiesChanged(t,i,s),i.filter!==void 0&&this._filterChanged(i.filter)}updated(t){super.updated(t),t.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",i=>i.preventDefault()),t.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=t}_initScroller(t){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=t||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(i)},s.requestContentUpdate(),this._scroller=i}_updateScroller(t,i,s,o,n,a,l,u,c,d){if(t&&(s&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:s?i:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:u,theme:c,itemClassNameGenerator:d}),t.performUpdate&&!t.hasUpdated))try{t.performUpdate()}catch(f){}}_openedOrItemsChanged(t,i,s,o){this._overlayOpened=t&&(o||s||!!(i&&i.length))}_overlayOpenedChanged(t,i){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,i){i!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&Dl(this.inputElement)}_updateActiveDescendant(t){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(o=>o.index===t);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant")}_openedChanged(t,i){if(i===void 0)return;t?!this._isInputFocused()&&!Ts&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!t),t?s.setAttribute("aria-controls",this._scroller.id):s.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),t.key==="ArrowDown"?(this._onArrowDown(),t.preventDefault()):t.key==="ArrowUp"&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let i=t&&this.itemLabelPath?ii(this.itemLabelPath,t):void 0;return i==null&&(i=t?t.toString():""),i}_getItemValue(t){let i=t&&this.itemValuePath?ii(this.itemValuePath,t):void 0;return i===void 0&&(i=t?t.toString():""),i}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(t){if(!this._hasValidInputValue()){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const t=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!t}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",i=>i.preventDefault()),t.addEventListener("click",()=>{Ts&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],i=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!i){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(t){const i=this._inputElementValue,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){typeof t!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(t==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(t);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,i){t===""&&i===void 0||(Nn(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),t?this.filteredItems=t.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(t){this._setDropdownItems(t)}_filterItems(t,i){return t&&t.filter(o=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(t){const i=this.__getItemIndexByValue(this.filteredItems,t),s=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){const i=this._dropdownItems;this._dropdownItems=t;const s=i?i[this._focusedIndex]:null,o=this.__getItemIndexByValue(t,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=t[o]);const n=this.__getItemIndexByValue(t,this._getItemValue(s));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(t,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,i){return!t||!Nn(i)?-1:kn(t,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(t,i){return!t||!i?-1:kn(t,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof kt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(so()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(t){return t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:t.relatedTarget===this._overlayElement?(t.composedPath()[0].focus(),!1):!0}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}};/**
2640
2640
  * @license
2641
2641
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2642
2642
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2643
- */Pe("vaadin-combo-box",n_,{moduleId:"vaadin-combo-box-styles"});class f_ extends l_(h_(r_(Qm(pi(Mm(vr)))))){static get is(){return"vaadin-combo-box"}static get template(){return br`
2643
+ */Pe("vaadin-combo-box",l_,{moduleId:"vaadin-combo-box-styles"});class m_ extends c_(p_(s_(t_(pi(Rm(vr)))))){static get is(){return"vaadin-combo-box"}static get template(){return br`
2644
2644
  <style>
2645
2645
  :host([opened]) {
2646
2646
  pointer-events: auto;
@@ -2685,7 +2685,7 @@ try {
2685
2685
  ></vaadin-combo-box-overlay>
2686
2686
 
2687
2687
  <slot name="tooltip"></slot>
2688
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new e_(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new t_(this.inputElement,this._labelController)),this._tooltipController=new Rm(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}Rt(f_);const p_=(r,e)=>{var s,o,n;const t=(s=r.shadowRoot)==null?void 0:s.querySelector(`slot[name="${e}"]`);if(!t)return console.error(`[${r.tagName.toLowerCase()}] slot "${e}" not found.`),null;const i=(n=(o=t.assignedElements)==null?void 0:o.call(t)[0])!=null?n:null;return i||(console.error(`[${r.tagName.toLowerCase()}] no element assigned to slot "${e}".`),null)},m_="https://challenges.cloudflare.com/turnstile/v0/api.js",__=3e3,g_=5,b_=1e4,v_=5*60*1e3,y_="XXXX.DUMMY.TOKEN.XXXX",kn="cf-captcha-response",Ln="cfCaptchaIsVisible";let Wt=null;function Mn(){return typeof window=="undefined"?Promise.reject(new Error("[Turnstile] SSR")):window.turnstile?Promise.resolve():(Wt||(Wt=new Promise((r,e)=>{const t=setTimeout(()=>{Wt=null,e(new Error("[Turnstile] script load timeout"))},b_),i=document.createElement("script");i.src=m_,i.async=!0,i.defer=!0,i.onload=()=>{clearTimeout(t),r()},i.onerror=()=>{clearTimeout(t),Wt=null,e(new Error("[Turnstile] script failed to load"))},document.head.appendChild(i)})),Wt)}function w_(r){const{siteKey:e,action:t,isEnabled:i=!0,enableFallback:s=!1,retryCount:o=g_}=r;let n=null,a=0,l,u,c=!1,d=0,f=null,p=null;function _(x){var T;n=x,x&&(a=Date.now()),(T=r.onTokenChange)==null||T.call(r,x)}function g(){l||!u||!window.turnstile||(l=window.turnstile.render(u,{sitekey:e,retry:"auto",action:t,appearance:"interaction-only",execution:"execute",theme:"light","retry-interval":__,callback:x=>{var T;c||(d=0,_(x),(T=r.onLoadingChange)==null||T.call(r,!1),f==null||f(x),f=null,p=null)},"error-callback":x=>{var T;if(c)return!0;if(d+=1,d<=o)return!1;if(d=0,(T=r.onLoadingChange)==null||T.call(r,!1),l&&window.turnstile)try{window.turnstile.reset(l)}catch(B){}if(s)f==null||f(y_);else{const B=`[Turnstile] Verification failed (${x}). Please try again.`;console.error(B),p==null||p(new Error(B))}return f=null,p=null,!0},"expired-callback":()=>{_(null)}}))}function w(x){return Ue(this,null,function*(){var T;if(i){u=x;try{yield Mn(),g(),(T=r.onReady)==null||T.call(r)}catch(B){console.error("[Turnstile] script load error",B)}}})}function v(){return Ue(this,null,function*(){var x;if(i){if(!l&&(yield Mn(),g(),!l))throw new Error("[Turnstile] widget not ready");return(x=r.onLoadingChange)==null||x.call(r,!0),new Promise((T,B)=>{var ae;f=T,p=B;try{window.turnstile.execute(l)}catch(X){console.error("[Turnstile] execute error",X),(ae=r.onLoadingChange)==null||ae.call(r,!1),f=null,p=null,B(X)}})}})}function y(){return Ue(this,null,function*(){if(i)return n&&Date.now()-a<v_?n:v()})}function A(){var x;if(l&&window.turnstile)try{window.turnstile.reset(l)}catch(T){}d=0,_(null),(x=r.onLoadingChange)==null||x.call(r,!1),p==null||p(new Error("[Turnstile] reset by caller")),f=null,p=null}function I(){var x;if(c=!0,l&&window.turnstile)try{window.turnstile.remove(l)}catch(T){}d=0,p==null||p(null),f=null,p=null,l=void 0,_(null),(x=r.onLoadingChange)==null||x.call(r,!1)}return{render:w,getToken:v,ensureToken:y,reset:A,cleanup:I}}const x_="captchaContainer";function P_(r){ha(r,"svelte-bc1l21",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input,select{font-family:inherit}.GeneralPlayerForgotPasswordForm{height:auto;position:relative}.GeneralPlayerForgotPasswordForm .ModalLoaderWrapper{display:flex;height:100%;align-items:center}.GeneralPlayerForgotPasswordForm .ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.GeneralPlayerForgotPasswordForm .ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent;animation:Loader 1.2s linear infinite}.backButtonForgotPassword{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:24px;line-height:24px;border-radius:var(--emw--border-radius-medium, 15px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.FormContainer{width:100%}.FormForgotPassword{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8))}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-weight:var(--emw--font-weight-light, 300);padding-top:14px}.FormRequired{color:var(--emw--color-error, #ed0909)}.ForgotPasswordError{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail .dobFormatError,.NewPassword .dobFormatError,.ConfirmPassword .dobFormatError{padding:20px;width:100%;text-align:center;color:var(--emw--color-error, #ed0909)}.ResetPasswordByEmail .DobContainer,.NewPassword .DobContainer,.ConfirmPassword .DobContainer{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ResetPasswordByEmail .DobContainer .datePickerBox,.NewPassword .DobContainer .datePickerBox,.ConfirmPassword .DobContainer .datePickerBox{width:100%;padding:10px}.ResetPasswordByEmail .DobContainer .datePickerBox input,.NewPassword .DobContainer .datePickerBox input,.ConfirmPassword .DobContainer .datePickerBox input{border:0px;background:transparent}.ResetPasswordByEmail .DobContainer.Mobile,.NewPassword .DobContainer.Mobile,.ConfirmPassword .DobContainer.Mobile{flex-direction:column}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.ResetPasswordByEmail input:focus,.NewPassword input:focus,.ConfirmPassword input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPasswordByEmail.InvalidField input,.NewPassword.InvalidField input,.ConfirmPassword.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.resetPasswordButton,.ResetPasswordEmailGoToLogin{background:var(--emw--color-primary, #0e5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.resetPasswordButton[disabled],.ResetPasswordEmailGoToLogin[disabled]{background:var(--emw--color-primary, #0e5924);opacity:0.4;cursor:not-allowed}.ResetPasswordEmailGoToLogin{display:none}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.ResetPasswordByEmail .InvalidInput{bottom:-3px}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.FormForgotPassword{padding:50px}.FormMobileContainer{height:100%;background-color:var(--emw--color-gray-50, #f9f8f8)}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.resetPasswordButton{transition:all 0.1s ease-out}.resetPasswordButton svg{width:20px;height:20px}.CaptchaWrapper{width:100%;display:flex;justify-content:center}.FormMobileContainer{height:100%}.FormMobileContainer .FormForgotPassword{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}const E_=r=>({}),Bn=r=>({}),C_=r=>({}),Rn=r=>({});function Dn(r,e,t){const i=r.slice();return i[114]=e[t],i}function Hn(r){let e,t;return{c(){e=C("script"),Eo(e.src,t="//www.google.com/recaptcha/api.js?render="+r[1])||h(e,"src",t),e.async=!0,e.defer=!0},m(i,s){L(i,e,s)},p(i,s){s[0]&2&&!Eo(e.src,t="//www.google.com/recaptcha/api.js?render="+i[1])&&h(e,"src",t)},d(i){i&&N(e)}}}function S_(r){let e,t,i,s,o,n,a=r[19]&&zn(r);const l=[N_,O_,I_,T_],u=[];function c(d,f){return d[20]?0:d[22]?1:d[24]?2:d[25]?3:-1}return~(i=c(r))&&(s=u[i]=l[i](r)),{c(){e=C("div"),a&&a.c(),t=j(),s&&s.c(),h(e,"class",o="FormContainer "+(r[26]?"FormMobileContainer":""))},m(d,f){L(d,e,f),a&&a.m(e,null),m(e,t),~i&&u[i].m(e,null),n=!0},p(d,f){d[19]?a?a.p(d,f):(a=zn(d),a.c(),a.m(e,t)):a&&(a.d(1),a=null);let p=i;i=c(d),i===p?~i&&u[i].p(d,f):(s&&(Xe(),ge(u[p],1,1,()=>{u[p]=null}),Ze()),~i?(s=u[i],s?s.p(d,f):(s=u[i]=l[i](d),s.c()),ce(s,1),s.m(e,null)):s=null),(!n||f[0]&67108864&&o!==(o="FormContainer "+(d[26]?"FormMobileContainer":"")))&&h(e,"class",o)},i(d){n||(ce(s),n=!0)},o(d){ge(s),n=!1},d(d){d&&N(e),a&&a.d(),~i&&u[i].d()}}}function A_(r){let e;return{c(){e=C("div"),e.innerHTML='<div class="ModalLoader"></div>',h(e,"class","ModalLoaderWrapper")},m(t,i){L(t,e,i)},p:te,i:te,o:te,d(t){t&&N(e)}}}function zn(r){let e;return{c(){e=C("general-player-forgot-password-sms-form"),O(e,"clientstyling",r[6]),O(e,"clientstylingurl",r[7]),O(e,"endpoint",r[0]),O(e,"mbsource",r[5]),O(e,"translationurl",r[8]),O(e,"smscodelength",r[13]),O(e,"smscodemaxattempts",r[12]),O(e,"phoneregex",r[10]),O(e,"phoneprefixeditable",r[11]),O(e,"smscodettl",r[14]),O(e,"resenddelay",r[15]),O(e,"lang",r[2])},m(t,i){L(t,e,i)},p(t,i){i[0]&64&&O(e,"clientstyling",t[6]),i[0]&128&&O(e,"clientstylingurl",t[7]),i[0]&1&&O(e,"endpoint",t[0]),i[0]&32&&O(e,"mbsource",t[5]),i[0]&256&&O(e,"translationurl",t[8]),i[0]&8192&&O(e,"smscodelength",t[13]),i[0]&4096&&O(e,"smscodemaxattempts",t[12]),i[0]&1024&&O(e,"phoneregex",t[10]),i[0]&2048&&O(e,"phoneprefixeditable",t[11]),i[0]&16384&&O(e,"smscodettl",t[14]),i[0]&32768&&O(e,"resenddelay",t[15]),i[0]&4&&O(e,"lang",t[2])},d(t){t&&N(e)}}}function T_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w=r[46]("forgotChangePasswordTitle")+"",v,y,A,I=r[46]("forgotChangePasswordDescription")+"",x,T,B,ae=r[46]("forgotChangePasswordLogin")+"",X,pe,Ee;return{c(){e=C("div"),t=C("div"),i=C("div"),s=S("svg"),o=S("defs"),n=S("style"),a=H(`.a {
2688
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new r_(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new i_(this.inputElement,this._labelController)),this._tooltipController=new Hm(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}Rt(m_);const __=(r,e)=>{var s,o,n;const t=(s=r.shadowRoot)==null?void 0:s.querySelector(`slot[name="${e}"]`);if(!t)return console.error(`[${r.tagName.toLowerCase()}] slot "${e}" not found.`),null;const i=(n=(o=t.assignedElements)==null?void 0:o.call(t)[0])!=null?n:null;return i||(console.error(`[${r.tagName.toLowerCase()}] no element assigned to slot "${e}".`),null)},g_="https://challenges.cloudflare.com/turnstile/v0/api.js",b_=3e3,v_=5,y_=1e4,w_=5*60*1e3,x_="XXXX.DUMMY.TOKEN.XXXX",Mn="cf-captcha-response",Ln="cfCaptchaIsVisible";let Wt=null;function Bn(){return typeof window=="undefined"?Promise.reject(new Error("[Turnstile] SSR")):window.turnstile?Promise.resolve():(Wt||(Wt=new Promise((r,e)=>{const t=setTimeout(()=>{Wt=null,e(new Error("[Turnstile] script load timeout"))},y_),i=document.createElement("script");i.src=g_,i.async=!0,i.defer=!0,i.onload=()=>{clearTimeout(t),r()},i.onerror=()=>{clearTimeout(t),Wt=null,e(new Error("[Turnstile] script failed to load"))},document.head.appendChild(i)})),Wt)}function P_(r){const{siteKey:e,action:t,isEnabled:i=!0,enableFallback:s=!1,retryCount:o=v_}=r;let n=null,a=0,l,u,c=!1,d=0,f=null,p=null;function _(x){var T;n=x,x&&(a=Date.now()),(T=r.onTokenChange)==null||T.call(r,x)}function g(){l||!u||!window.turnstile||(l=window.turnstile.render(u,{sitekey:e,retry:"auto",action:t,appearance:"interaction-only",execution:"execute",theme:"light","retry-interval":b_,callback:x=>{var T;c||(d=0,_(x),(T=r.onLoadingChange)==null||T.call(r,!1),f==null||f(x),f=null,p=null)},"error-callback":x=>{var T;if(c)return!0;if(d+=1,d<=o)return!1;if(d=0,(T=r.onLoadingChange)==null||T.call(r,!1),l&&window.turnstile)try{window.turnstile.reset(l)}catch(B){}if(s)f==null||f(x_);else{const B=`[Turnstile] Verification failed (${x}). Please try again.`;console.error(B),p==null||p(new Error(B))}return f=null,p=null,!0},"expired-callback":()=>{_(null)}}))}function w(x){return Ue(this,null,function*(){var T;if(i){u=x;try{yield Bn(),g(),(T=r.onReady)==null||T.call(r)}catch(B){console.error("[Turnstile] script load error",B)}}})}function v(){return Ue(this,null,function*(){var x;if(i){if(!l&&(yield Bn(),g(),!l))throw new Error("[Turnstile] widget not ready");return(x=r.onLoadingChange)==null||x.call(r,!0),new Promise((T,B)=>{var ae;f=T,p=B;try{window.turnstile.execute(l)}catch(X){console.error("[Turnstile] execute error",X),(ae=r.onLoadingChange)==null||ae.call(r,!1),f=null,p=null,B(X)}})}})}function y(){return Ue(this,null,function*(){if(i)return n&&Date.now()-a<w_?n:v()})}function A(){var x;if(l&&window.turnstile)try{window.turnstile.reset(l)}catch(T){}d=0,_(null),(x=r.onLoadingChange)==null||x.call(r,!1),p==null||p(new Error("[Turnstile] reset by caller")),f=null,p=null}function I(){var x;if(c=!0,l&&window.turnstile)try{window.turnstile.remove(l)}catch(T){}d=0,p==null||p(null),f=null,p=null,l=void 0,_(null),(x=r.onLoadingChange)==null||x.call(r,!1)}return{render:w,getToken:v,ensureToken:y,reset:A,cleanup:I}}const E_="captchaContainer";function C_(r){fa(r,"svelte-bc1l21",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input,select{font-family:inherit}.GeneralPlayerForgotPasswordForm{height:auto;position:relative}.GeneralPlayerForgotPasswordForm .ModalLoaderWrapper{display:flex;height:100%;align-items:center}.GeneralPlayerForgotPasswordForm .ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.GeneralPlayerForgotPasswordForm .ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent;animation:Loader 1.2s linear infinite}.backButtonForgotPassword{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:24px;line-height:24px;border-radius:var(--emw--border-radius-medium, 15px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.FormContainer{width:100%}.FormForgotPassword{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8))}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-weight:var(--emw--font-weight-light, 300);padding-top:14px}.FormRequired{color:var(--emw--color-error, #ed0909)}.ForgotPasswordError{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail .dobFormatError,.NewPassword .dobFormatError,.ConfirmPassword .dobFormatError{padding:20px;width:100%;text-align:center;color:var(--emw--color-error, #ed0909)}.ResetPasswordByEmail .DobContainer,.NewPassword .DobContainer,.ConfirmPassword .DobContainer{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ResetPasswordByEmail .DobContainer .datePickerBox,.NewPassword .DobContainer .datePickerBox,.ConfirmPassword .DobContainer .datePickerBox{width:100%;padding:10px}.ResetPasswordByEmail .DobContainer .datePickerBox input,.NewPassword .DobContainer .datePickerBox input,.ConfirmPassword .DobContainer .datePickerBox input{border:0px;background:transparent}.ResetPasswordByEmail .DobContainer.Mobile,.NewPassword .DobContainer.Mobile,.ConfirmPassword .DobContainer.Mobile{flex-direction:column}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.ResetPasswordByEmail input:focus,.NewPassword input:focus,.ConfirmPassword input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPasswordByEmail.InvalidField input,.NewPassword.InvalidField input,.ConfirmPassword.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.resetPasswordButton,.ResetPasswordEmailGoToLogin{background:var(--emw--color-primary, #0e5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.resetPasswordButton[disabled],.ResetPasswordEmailGoToLogin[disabled]{background:var(--emw--color-primary, #0e5924);opacity:0.4;cursor:not-allowed}.ResetPasswordEmailGoToLogin{display:none}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.ResetPasswordByEmail .InvalidInput{bottom:-3px}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.FormForgotPassword{padding:50px}.FormMobileContainer{height:100%;background-color:var(--emw--color-gray-50, #f9f8f8)}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.resetPasswordButton{transition:all 0.1s ease-out}.resetPasswordButton svg{width:20px;height:20px}.CaptchaWrapper{width:100%;display:flex;justify-content:center}.FormMobileContainer{height:100%}.FormMobileContainer .FormForgotPassword{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}const S_=r=>({}),Rn=r=>({}),A_=r=>({}),Dn=r=>({});function Hn(r,e,t){const i=r.slice();return i[115]=e[t],i}function zn(r){let e,t;return{c(){e=C("script"),So(e.src,t="//www.google.com/recaptcha/api.js?render="+r[1])||h(e,"src",t),e.async=!0,e.defer=!0},m(i,s){M(i,e,s)},p(i,s){s[0]&2&&!So(e.src,t="//www.google.com/recaptcha/api.js?render="+i[1])&&h(e,"src",t)},d(i){i&&N(e)}}}function T_(r){let e,t,i,s,o,n,a=r[19]&&Fn(r);const l=[M_,k_,N_,O_],u=[];function c(d,f){return d[20]?0:d[22]?1:d[24]?2:d[25]?3:-1}return~(i=c(r))&&(s=u[i]=l[i](r)),{c(){e=C("div"),a&&a.c(),t=j(),s&&s.c(),h(e,"class",o="FormContainer "+(r[26]?"FormMobileContainer":""))},m(d,f){M(d,e,f),a&&a.m(e,null),m(e,t),~i&&u[i].m(e,null),n=!0},p(d,f){d[19]?a?a.p(d,f):(a=Fn(d),a.c(),a.m(e,t)):a&&(a.d(1),a=null);let p=i;i=c(d),i===p?~i&&u[i].p(d,f):(s&&(Xe(),ge(u[p],1,1,()=>{u[p]=null}),Ze()),~i?(s=u[i],s?s.p(d,f):(s=u[i]=l[i](d),s.c()),ce(s,1),s.m(e,null)):s=null),(!n||f[0]&67108864&&o!==(o="FormContainer "+(d[26]?"FormMobileContainer":"")))&&h(e,"class",o)},i(d){n||(ce(s),n=!0)},o(d){ge(s),n=!1},d(d){d&&N(e),a&&a.d(),~i&&u[i].d()}}}function I_(r){let e;return{c(){e=C("div"),e.innerHTML='<div class="ModalLoader"></div>',h(e,"class","ModalLoaderWrapper")},m(t,i){M(t,e,i)},p:te,i:te,o:te,d(t){t&&N(e)}}}function Fn(r){let e;return{c(){e=C("general-player-forgot-password-sms-form"),O(e,"clientstyling",r[6]),O(e,"clientstylingurl",r[7]),O(e,"endpoint",r[0]),O(e,"mbsource",r[5]),O(e,"translationurl",r[8]),O(e,"smscodelength",r[13]),O(e,"smscodemaxattempts",r[12]),O(e,"phoneregex",r[10]),O(e,"phoneprefixeditable",r[11]),O(e,"smscodettl",r[14]),O(e,"resenddelay",r[15]),O(e,"lang",r[2])},m(t,i){M(t,e,i)},p(t,i){i[0]&64&&O(e,"clientstyling",t[6]),i[0]&128&&O(e,"clientstylingurl",t[7]),i[0]&1&&O(e,"endpoint",t[0]),i[0]&32&&O(e,"mbsource",t[5]),i[0]&256&&O(e,"translationurl",t[8]),i[0]&8192&&O(e,"smscodelength",t[13]),i[0]&4096&&O(e,"smscodemaxattempts",t[12]),i[0]&1024&&O(e,"phoneregex",t[10]),i[0]&2048&&O(e,"phoneprefixeditable",t[11]),i[0]&16384&&O(e,"smscodettl",t[14]),i[0]&32768&&O(e,"resenddelay",t[15]),i[0]&4&&O(e,"lang",t[2])},d(t){t&&N(e)}}}function O_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w=r[46]("forgotChangePasswordTitle")+"",v,y,A,I=r[46]("forgotChangePasswordDescription")+"",x,T,B,ae=r[46]("forgotChangePasswordLogin")+"",X,pe,Ee;return{c(){e=C("div"),t=C("div"),i=C("div"),s=S("svg"),o=S("defs"),n=S("style"),a=H(`.a {
2689
2689
  fill: var(--emw--color-valid, var(--emw--color-valid, #48952a));
2690
2690
  }
2691
2691
  .b,
@@ -2699,7 +2699,7 @@ try {
2699
2699
  .c {
2700
2700
  stroke: none;
2701
2701
  }
2702
- `),l=S("g"),u=S("g"),c=S("path"),d=S("g"),f=S("circle"),p=S("circle"),_=j(),g=C("h4"),v=H(w),y=j(),A=C("p"),x=H(I),T=j(),B=C("button"),X=H(ae),h(c,"class","a"),h(c,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(c,"transform","translate(264.272 482.563)"),h(u,"transform","translate(-7360.574 8503.438)"),h(f,"class","c"),h(f,"cx","30"),h(f,"cy","30"),h(f,"r","30"),h(p,"class","d"),h(p,"cx","30"),h(p,"cy","30"),h(p,"r","29"),h(d,"class","b"),h(d,"transform","translate(-7106 8970)"),h(l,"transform","translate(7106 -8970)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"width","60"),h(s,"height","60"),h(s,"viewBox","0 0 60 60"),h(i,"class","NewPasswordSuccess"),h(i,"part","NewPasswordSuccess"),h(B,"class","resetPasswordButton"),h(B,"part","resetPasswordButton"),h(t,"class","FormContent"),h(t,"part","FormContent"),h(e,"class","FormForgotPassword"),h(e,"part","FormForgotPassword")},m(z,G){L(z,e,G),m(e,t),m(t,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(l,u),m(u,c),m(l,d),m(d,f),m(d,p),m(i,_),m(i,g),m(g,v),m(i,y),m(i,A),m(A,x),m(t,T),m(t,B),m(B,X),pe||(Ee=_e(B,"click",r[85]),pe=!0)},p(z,G){G[1]&32768&&w!==(w=z[46]("forgotChangePasswordTitle")+"")&&se(v,w),G[1]&32768&&I!==(I=z[46]("forgotChangePasswordDescription")+"")&&se(x,I),G[1]&32768&&ae!==(ae=z[46]("forgotChangePasswordLogin")+"")&&se(X,ae)},i:te,o:te,d(z){z&&N(e),pe=!1,Ee()}}}function I_(r){let e,t,i,s,o,n,a,l,u,c=r[46]("forgotNewPasswordPassword")+"",d,f,p,_,g,w,v,y,A,I,x,T,B=r[46]("forgotNewPasswordConfirmPassword")+"",ae,X,pe,Ee,z,G,Oe,xe,Me,be,le,re,oe,K,He,me,ne,de,q=r[42]&&Fn(r);function Ce(P,R){return P[35]?L_:k_}let Ae=Ce(r),Q=Ae(r),M=r[31]&&Vn(r);function Be(P,R){return P[36]?D_:R_}let he=Be(r),fe=he(r),E=r[32]&&!r[18]&&Un(r),k=r[40]&&!r[18]&&$n(r),V=r[16]&&jn(r);const Te=[z_,H_],Ne=[];function Ve(P,R){return P[18]?0:1}return oe=Ve(r),K=Ne[oe]=Te[oe](r),{c(){e=C("div"),t=C("div"),i=C("h4"),s=H(r[41]),o=j(),q&&q.c(),n=j(),a=C("form"),l=C("div"),u=C("label"),d=H(c),f=H(":"),p=C("span"),p.textContent="*",_=j(),g=C("input"),v=j(),Q.c(),y=j(),M&&M.c(),I=j(),x=C("div"),T=C("label"),ae=H(B),X=H(":"),pe=C("span"),pe.textContent="*",Ee=j(),z=C("input"),G=j(),fe.c(),Oe=j(),E&&E.c(),Me=j(),k&&k.c(),be=j(),V&&V.c(),le=j(),re=C("button"),K.c(),h(i,"class","FormHeaderTitle"),h(i,"part","FormHeaderTitle"),h(t,"class","FormHeader"),h(t,"part","FormHeader"),h(p,"class","FormRequired"),h(p,"part","FormRequired"),h(u,"for","NewPassword"),h(g,"type","password"),h(g,"id","new-password"),h(g,"autocomplete",w=r[9]?"new-password":"off"),g.disabled=r[18],h(l,"class",A="NewPassword "+(r[31]?"InvalidField":"")),h(l,"part","NewPassword"),h(pe,"class","FormRequired"),h(pe,"part","FormRequired"),h(T,"for","RetypePassword"),h(z,"type","password"),h(z,"id","RetypePassword"),z.disabled=r[18],h(x,"class",xe="ConfirmPassword "+(r[32]?"InvalidField":"")),h(x,"part","ConfirmPassword"),h(re,"class","resetPasswordButton"),h(re,"part","resetPasswordButton"),re.disabled=He=!r[30]||r[18]||r[4]==="true"&&r[39],h(a,"class","FormContent"),h(a,"part","FormContent"),h(e,"class","FormForgotPassword test"),h(e,"part","FormForgotPassword test")},m(P,R){L(P,e,R),m(e,t),m(t,i),m(i,s),m(t,o),q&&q.m(t,null),m(e,n),m(e,a),m(a,l),m(l,u),m(u,d),m(u,f),m(u,p),m(l,_),m(l,g),st(g,r[37]),r[76](g),m(l,v),Q.m(l,null),m(l,y),M&&M.m(l,null),m(a,I),m(a,x),m(x,T),m(T,ae),m(T,X),m(T,pe),m(x,Ee),m(x,z),st(z,r[38]),r[81](z),m(x,G),fe.m(x,null),m(x,Oe),E&&E.m(x,null),m(a,Me),k&&k.m(a,null),m(a,be),V&&V.m(a,null),m(a,le),m(a,re),Ne[oe].m(re,null),me=!0,ne||(de=[_e(g,"input",r[74]),_e(g,"keyup",r[75]),_e(z,"input",r[79]),_e(z,"keyup",r[80]),_e(re,"click",r[84])],ne=!0)},p(P,R){(!me||R[1]&1024)&&se(s,P[41]),P[42]?q?q.p(P,R):(q=Fn(P),q.c(),q.m(t,null)):q&&(q.d(1),q=null),(!me||R[1]&32768)&&c!==(c=P[46]("forgotNewPasswordPassword")+"")&&se(d,c),(!me||R[0]&512&&w!==(w=P[9]?"new-password":"off"))&&h(g,"autocomplete",w),(!me||R[0]&262144)&&(g.disabled=P[18]),R[1]&64&&g.value!==P[37]&&st(g,P[37]),Ae===(Ae=Ce(P))&&Q?Q.p(P,R):(Q.d(1),Q=Ae(P),Q&&(Q.c(),Q.m(l,y))),P[31]?M?M.p(P,R):(M=Vn(P),M.c(),M.m(l,null)):M&&(M.d(1),M=null),(!me||R[1]&1&&A!==(A="NewPassword "+(P[31]?"InvalidField":"")))&&h(l,"class",A),(!me||R[1]&32768)&&B!==(B=P[46]("forgotNewPasswordConfirmPassword")+"")&&se(ae,B),(!me||R[0]&262144)&&(z.disabled=P[18]),R[1]&128&&z.value!==P[38]&&st(z,P[38]),he===(he=Be(P))&&fe?fe.p(P,R):(fe.d(1),fe=he(P),fe&&(fe.c(),fe.m(x,Oe))),P[32]&&!P[18]?E?E.p(P,R):(E=Un(P),E.c(),E.m(x,null)):E&&(E.d(1),E=null),(!me||R[1]&2&&xe!==(xe="ConfirmPassword "+(P[32]?"InvalidField":"")))&&h(x,"class",xe),P[40]&&!P[18]?k?k.p(P,R):(k=$n(P),k.c(),k.m(a,be)):k&&(k.d(1),k=null),P[16]?V?(V.p(P,R),R[0]&65536&&ce(V,1)):(V=jn(P),V.c(),ce(V,1),V.m(a,le)):V&&(Xe(),ge(V,1,1,()=>{V=null}),Ze());let Ht=oe;oe=Ve(P),oe===Ht?Ne[oe].p(P,R):(Xe(),ge(Ne[Ht],1,1,()=>{Ne[Ht]=null}),Ze(),K=Ne[oe],K?K.p(P,R):(K=Ne[oe]=Te[oe](P),K.c()),ce(K,1),K.m(re,null)),(!me||R[0]&1074003984|R[1]&256&&He!==(He=!P[30]||P[18]||P[4]==="true"&&P[39]))&&(re.disabled=He)},i(P){me||(ce(V),ce(K),me=!0)},o(P){ge(V),ge(K),me=!1},d(P){P&&N(e),q&&q.d(),r[76](null),Q.d(),M&&M.d(),r[81](null),fe.d(),E&&E.d(),k&&k.d(),V&&V.d(),Ne[oe].d(),ne=!1,Fe(de)}}}function O_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w=r[46]("forgotPasswordSuccess")+"",v,y,A,I=r[46]("forgotPasswordSuccessDescription")+"",x,T,B,ae=r[46]("goToLogin")+"",X,pe,Ee;return{c(){e=C("div"),t=C("div"),i=C("div"),s=S("svg"),o=S("defs"),n=S("style"),a=H(`.a {
2702
+ `),l=S("g"),u=S("g"),c=S("path"),d=S("g"),f=S("circle"),p=S("circle"),_=j(),g=C("h4"),v=H(w),y=j(),A=C("p"),x=H(I),T=j(),B=C("button"),X=H(ae),h(c,"class","a"),h(c,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(c,"transform","translate(264.272 482.563)"),h(u,"transform","translate(-7360.574 8503.438)"),h(f,"class","c"),h(f,"cx","30"),h(f,"cy","30"),h(f,"r","30"),h(p,"class","d"),h(p,"cx","30"),h(p,"cy","30"),h(p,"r","29"),h(d,"class","b"),h(d,"transform","translate(-7106 8970)"),h(l,"transform","translate(7106 -8970)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"width","60"),h(s,"height","60"),h(s,"viewBox","0 0 60 60"),h(i,"class","NewPasswordSuccess"),h(i,"part","NewPasswordSuccess"),h(B,"class","resetPasswordButton"),h(B,"part","resetPasswordButton"),h(t,"class","FormContent"),h(t,"part","FormContent"),h(e,"class","FormForgotPassword"),h(e,"part","FormForgotPassword")},m(z,G){M(z,e,G),m(e,t),m(t,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(l,u),m(u,c),m(l,d),m(d,f),m(d,p),m(i,_),m(i,g),m(g,v),m(i,y),m(i,A),m(A,x),m(t,T),m(t,B),m(B,X),pe||(Ee=_e(B,"click",r[85]),pe=!0)},p(z,G){G[1]&32768&&w!==(w=z[46]("forgotChangePasswordTitle")+"")&&se(v,w),G[1]&32768&&I!==(I=z[46]("forgotChangePasswordDescription")+"")&&se(x,I),G[1]&32768&&ae!==(ae=z[46]("forgotChangePasswordLogin")+"")&&se(X,ae)},i:te,o:te,d(z){z&&N(e),pe=!1,Ee()}}}function N_(r){let e,t,i,s,o,n,a,l,u,c=r[46]("forgotNewPasswordPassword")+"",d,f,p,_,g,w,v,y,A,I,x,T,B=r[46]("forgotNewPasswordConfirmPassword")+"",ae,X,pe,Ee,z,G,Oe,xe,Le,be,le,re,oe,K,He,me,ne,de,q=r[42]&&Vn(r);function Ce(P,R){return P[35]?B_:L_}let Ae=Ce(r),Q=Ae(r),L=r[31]&&Un(r);function Be(P,R){return P[36]?z_:H_}let he=Be(r),fe=he(r),E=r[32]&&!r[18]&&$n(r),k=r[40]&&!r[18]&&jn(r),V=r[16]&&Gn(r);const Te=[V_,F_],Ne=[];function Ve(P,R){return P[18]?0:1}return oe=Ve(r),K=Ne[oe]=Te[oe](r),{c(){e=C("div"),t=C("div"),i=C("h4"),s=H(r[41]),o=j(),q&&q.c(),n=j(),a=C("form"),l=C("div"),u=C("label"),d=H(c),f=H(":"),p=C("span"),p.textContent="*",_=j(),g=C("input"),v=j(),Q.c(),y=j(),L&&L.c(),I=j(),x=C("div"),T=C("label"),ae=H(B),X=H(":"),pe=C("span"),pe.textContent="*",Ee=j(),z=C("input"),G=j(),fe.c(),Oe=j(),E&&E.c(),Le=j(),k&&k.c(),be=j(),V&&V.c(),le=j(),re=C("button"),K.c(),h(i,"class","FormHeaderTitle"),h(i,"part","FormHeaderTitle"),h(t,"class","FormHeader"),h(t,"part","FormHeader"),h(p,"class","FormRequired"),h(p,"part","FormRequired"),h(u,"for","NewPassword"),h(g,"type","password"),h(g,"id","new-password"),h(g,"autocomplete",w=r[9]?"new-password":"off"),g.disabled=r[18],h(l,"class",A="NewPassword "+(r[31]?"InvalidField":"")),h(l,"part","NewPassword"),h(pe,"class","FormRequired"),h(pe,"part","FormRequired"),h(T,"for","RetypePassword"),h(z,"type","password"),h(z,"id","RetypePassword"),z.disabled=r[18],h(x,"class",xe="ConfirmPassword "+(r[32]?"InvalidField":"")),h(x,"part","ConfirmPassword"),h(re,"class","resetPasswordButton"),h(re,"part","resetPasswordButton"),re.disabled=He=!r[30]||r[18]||r[4]==="true"&&r[39],h(a,"class","FormContent"),h(a,"part","FormContent"),h(e,"class","FormForgotPassword test"),h(e,"part","FormForgotPassword test")},m(P,R){M(P,e,R),m(e,t),m(t,i),m(i,s),m(t,o),q&&q.m(t,null),m(e,n),m(e,a),m(a,l),m(l,u),m(u,d),m(u,f),m(u,p),m(l,_),m(l,g),st(g,r[37]),r[76](g),m(l,v),Q.m(l,null),m(l,y),L&&L.m(l,null),m(a,I),m(a,x),m(x,T),m(T,ae),m(T,X),m(T,pe),m(x,Ee),m(x,z),st(z,r[38]),r[81](z),m(x,G),fe.m(x,null),m(x,Oe),E&&E.m(x,null),m(a,Le),k&&k.m(a,null),m(a,be),V&&V.m(a,null),m(a,le),m(a,re),Ne[oe].m(re,null),me=!0,ne||(de=[_e(g,"input",r[74]),_e(g,"keyup",r[75]),_e(z,"input",r[79]),_e(z,"keyup",r[80]),_e(re,"click",r[84])],ne=!0)},p(P,R){(!me||R[1]&1024)&&se(s,P[41]),P[42]?q?q.p(P,R):(q=Vn(P),q.c(),q.m(t,null)):q&&(q.d(1),q=null),(!me||R[1]&32768)&&c!==(c=P[46]("forgotNewPasswordPassword")+"")&&se(d,c),(!me||R[0]&512&&w!==(w=P[9]?"new-password":"off"))&&h(g,"autocomplete",w),(!me||R[0]&262144)&&(g.disabled=P[18]),R[1]&64&&g.value!==P[37]&&st(g,P[37]),Ae===(Ae=Ce(P))&&Q?Q.p(P,R):(Q.d(1),Q=Ae(P),Q&&(Q.c(),Q.m(l,y))),P[31]?L?L.p(P,R):(L=Un(P),L.c(),L.m(l,null)):L&&(L.d(1),L=null),(!me||R[1]&1&&A!==(A="NewPassword "+(P[31]?"InvalidField":"")))&&h(l,"class",A),(!me||R[1]&32768)&&B!==(B=P[46]("forgotNewPasswordConfirmPassword")+"")&&se(ae,B),(!me||R[0]&262144)&&(z.disabled=P[18]),R[1]&128&&z.value!==P[38]&&st(z,P[38]),he===(he=Be(P))&&fe?fe.p(P,R):(fe.d(1),fe=he(P),fe&&(fe.c(),fe.m(x,Oe))),P[32]&&!P[18]?E?E.p(P,R):(E=$n(P),E.c(),E.m(x,null)):E&&(E.d(1),E=null),(!me||R[1]&2&&xe!==(xe="ConfirmPassword "+(P[32]?"InvalidField":"")))&&h(x,"class",xe),P[40]&&!P[18]?k?k.p(P,R):(k=jn(P),k.c(),k.m(a,be)):k&&(k.d(1),k=null),P[16]?V?(V.p(P,R),R[0]&65536&&ce(V,1)):(V=Gn(P),V.c(),ce(V,1),V.m(a,le)):V&&(Xe(),ge(V,1,1,()=>{V=null}),Ze());let Ht=oe;oe=Ve(P),oe===Ht?Ne[oe].p(P,R):(Xe(),ge(Ne[Ht],1,1,()=>{Ne[Ht]=null}),Ze(),K=Ne[oe],K?K.p(P,R):(K=Ne[oe]=Te[oe](P),K.c()),ce(K,1),K.m(re,null)),(!me||R[0]&1074003984|R[1]&256&&He!==(He=!P[30]||P[18]||P[4]==="true"&&P[39]))&&(re.disabled=He)},i(P){me||(ce(V),ce(K),me=!0)},o(P){ge(V),ge(K),me=!1},d(P){P&&N(e),q&&q.d(),r[76](null),Q.d(),L&&L.d(),r[81](null),fe.d(),E&&E.d(),k&&k.d(),V&&V.d(),Ne[oe].d(),ne=!1,Fe(de)}}}function k_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w=r[46]("forgotPasswordSuccess")+"",v,y,A,I=r[46]("forgotPasswordSuccessDescription")+"",x,T,B,ae=r[46]("goToLogin")+"",X,pe,Ee;return{c(){e=C("div"),t=C("div"),i=C("div"),s=S("svg"),o=S("defs"),n=S("style"),a=H(`.a {
2703
2703
  fill: #16ce16;
2704
2704
  }
2705
2705
  .b,
@@ -2713,19 +2713,19 @@ try {
2713
2713
  .c {
2714
2714
  stroke: none;
2715
2715
  }
2716
- `),l=S("g"),u=S("g"),c=S("path"),d=S("g"),f=S("circle"),p=S("circle"),_=j(),g=C("h4"),v=H(w),y=j(),A=C("p"),x=H(I),T=j(),B=C("button"),X=H(ae),h(c,"class","a"),h(c,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(c,"transform","translate(264.272 482.563)"),h(u,"transform","translate(-7360.574 8503.438)"),h(f,"class","c"),h(f,"cx","30"),h(f,"cy","30"),h(f,"r","30"),h(p,"class","d"),h(p,"cx","30"),h(p,"cy","30"),h(p,"r","29"),h(d,"class","b"),h(d,"transform","translate(-7106 8970)"),h(l,"transform","translate(7106 -8970)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"width","60"),h(s,"height","60"),h(s,"viewBox","0 0 60 60"),h(B,"class","ResetPasswordEmailGoToLogin"),h(i,"class","NewPasswordSuccess"),h(i,"part","NewPasswordSuccess"),h(t,"class","FormContent"),h(t,"part","FormContent"),h(e,"class","FormForgotPassword"),h(e,"part","FormForgotPassword")},m(z,G){L(z,e,G),m(e,t),m(t,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(l,u),m(u,c),m(l,d),m(d,f),m(d,p),m(i,_),m(i,g),m(g,v),m(i,y),m(i,A),m(A,x),m(i,T),m(i,B),m(B,X),pe||(Ee=_e(B,"click",r[73]),pe=!0)},p(z,G){G[1]&32768&&w!==(w=z[46]("forgotPasswordSuccess")+"")&&se(v,w),G[1]&32768&&I!==(I=z[46]("forgotPasswordSuccessDescription")+"")&&se(x,I),G[1]&32768&&ae!==(ae=z[46]("goToLogin")+"")&&se(X,ae)},i:te,o:te,d(z){z&&N(e),pe=!1,Ee()}}}function N_(r){let e,t,i,s,o,n,a,l,u,c=r[46]("goToLogin")+"",d,f,p,_,g,w,v,y,A,I=r[46]("forgotPasswordEmail")+"",x,T,B,ae,X,pe,Ee,z,G,Oe,xe,Me,be,le,re,oe,K,He,me,ne=r[42]&&Gn(r),de=r[27]&&!r[18]&&qn(r),q=r[21]&&!r[18]&&Wn(r);function Ce(E,k){return E[44]?F_:V_}let Ae=Ce(r),Q=Ae(r),M=r[16]&&Xn(r);const Be=[q_,G_],he=[];function fe(E,k){return E[18]?0:1}return le=fe(r),re=he[le]=Be[le](r),{c(){e=C("div"),t=C("div"),i=C("button"),s=S("svg"),o=S("defs"),n=S("style"),a=H(`.a {
2716
+ `),l=S("g"),u=S("g"),c=S("path"),d=S("g"),f=S("circle"),p=S("circle"),_=j(),g=C("h4"),v=H(w),y=j(),A=C("p"),x=H(I),T=j(),B=C("button"),X=H(ae),h(c,"class","a"),h(c,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(c,"transform","translate(264.272 482.563)"),h(u,"transform","translate(-7360.574 8503.438)"),h(f,"class","c"),h(f,"cx","30"),h(f,"cy","30"),h(f,"r","30"),h(p,"class","d"),h(p,"cx","30"),h(p,"cy","30"),h(p,"r","29"),h(d,"class","b"),h(d,"transform","translate(-7106 8970)"),h(l,"transform","translate(7106 -8970)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"width","60"),h(s,"height","60"),h(s,"viewBox","0 0 60 60"),h(B,"class","ResetPasswordEmailGoToLogin"),h(i,"class","NewPasswordSuccess"),h(i,"part","NewPasswordSuccess"),h(t,"class","FormContent"),h(t,"part","FormContent"),h(e,"class","FormForgotPassword"),h(e,"part","FormForgotPassword")},m(z,G){M(z,e,G),m(e,t),m(t,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(l,u),m(u,c),m(l,d),m(d,f),m(d,p),m(i,_),m(i,g),m(g,v),m(i,y),m(i,A),m(A,x),m(i,T),m(i,B),m(B,X),pe||(Ee=_e(B,"click",r[73]),pe=!0)},p(z,G){G[1]&32768&&w!==(w=z[46]("forgotPasswordSuccess")+"")&&se(v,w),G[1]&32768&&I!==(I=z[46]("forgotPasswordSuccessDescription")+"")&&se(x,I),G[1]&32768&&ae!==(ae=z[46]("goToLogin")+"")&&se(X,ae)},i:te,o:te,d(z){z&&N(e),pe=!1,Ee()}}}function M_(r){let e,t,i,s,o,n,a,l,u,c=r[46]("goToLogin")+"",d,f,p,_,g,w,v,y,A,I=r[46]("forgotPasswordEmail")+"",x,T,B,ae,X,pe,Ee,z,G,Oe,xe,Le,be,le,re,oe,K,He,me,ne=r[42]&&qn(r),de=r[27]&&!r[18]&&Wn(r),q=r[21]&&!r[18]&&Yn(r);function Ce(E,k){return E[44]?U_:$_}let Ae=Ce(r),Q=Ae(r),L=r[16]&&Zn(r);const Be=[Y_,W_],he=[];function fe(E,k){return E[18]?0:1}return le=fe(r),re=he[le]=Be[le](r),{c(){e=C("div"),t=C("div"),i=C("button"),s=S("svg"),o=S("defs"),n=S("style"),a=H(`.a {
2717
2717
  fill: var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));
2718
2718
  }
2719
- `),l=S("path"),u=j(),d=H(c),f=j(),p=C("h4"),_=H(r[41]),g=j(),ne&&ne.c(),w=j(),v=C("form"),y=C("div"),A=C("label"),x=H(I),T=H(":"),B=C("span"),B.textContent="*",ae=j(),X=C("input"),pe=j(),de&&de.c(),Ee=j(),q&&q.c(),z=j(),Q.c(),xe=j(),M&&M.c(),Me=j(),be=C("button"),re.c(),h(l,"class","a"),h(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),h(l,"transform","translate(24 24) rotate(180)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"viewBox","0 0 24 24"),h(i,"class","backButtonForgotPassword"),h(p,"class","FormHeaderTitle"),h(p,"part","FormHeaderTitle"),h(t,"class","FormHeader"),h(B,"class","FormRequired"),h(B,"part","FormRequired"),h(A,"for","ResetPasswordByEmail"),h(X,"type","text"),h(X,"id","ResetPasswordByEmail"),X.disabled=r[18],h(y,"class",G="ResetPasswordByEmail "+(r[27]?"InvalidField":"")),h(y,"part",Oe="ResetPasswordByEmail "+(r[27]?"InvalidField":"")),h(be,"class","resetPasswordButton"),h(be,"part","resetPasswordButton"),be.disabled=oe=!r[28]||r[18],h(v,"class","FormContent"),h(v,"part","FormContent"),h(e,"class","FormForgotPassword")},m(E,k){L(E,e,k),m(e,t),m(t,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(i,u),m(i,d),m(t,f),m(t,p),m(p,_),m(t,g),ne&&ne.m(t,null),m(e,w),m(e,v),m(v,y),m(y,A),m(A,x),m(A,T),m(A,B),m(y,ae),m(y,X),st(X,r[23]),m(y,pe),de&&de.m(y,null),m(y,Ee),q&&q.m(y,null),m(y,z),Q.m(y,null),m(v,xe),M&&M.m(v,null),m(v,Me),m(v,be),he[le].m(be,null),K=!0,He||(me=[_e(i,"click",r[67]),_e(X,"input",r[68]),_e(X,"input",r[50]),_e(be,"click",r[72])],He=!0)},p(E,k){(!K||k[1]&32768)&&c!==(c=E[46]("goToLogin")+"")&&se(d,c),(!K||k[1]&1024)&&se(_,E[41]),E[42]?ne?ne.p(E,k):(ne=Gn(E),ne.c(),ne.m(t,null)):ne&&(ne.d(1),ne=null),(!K||k[1]&32768)&&I!==(I=E[46]("forgotPasswordEmail")+"")&&se(x,I),(!K||k[0]&262144)&&(X.disabled=E[18]),k[0]&8388608&&X.value!==E[23]&&st(X,E[23]),E[27]&&!E[18]?de?de.p(E,k):(de=qn(E),de.c(),de.m(y,Ee)):de&&(de.d(1),de=null),E[21]&&!E[18]?q?q.p(E,k):(q=Wn(E),q.c(),q.m(y,z)):q&&(q.d(1),q=null),Ae===(Ae=Ce(E))&&Q?Q.p(E,k):(Q.d(1),Q=Ae(E),Q&&(Q.c(),Q.m(y,null))),(!K||k[0]&134217728&&G!==(G="ResetPasswordByEmail "+(E[27]?"InvalidField":"")))&&h(y,"class",G),(!K||k[0]&134217728&&Oe!==(Oe="ResetPasswordByEmail "+(E[27]?"InvalidField":"")))&&h(y,"part",Oe),E[16]?M?(M.p(E,k),k[0]&65536&&ce(M,1)):(M=Xn(E),M.c(),ce(M,1),M.m(v,Me)):M&&(Xe(),ge(M,1,1,()=>{M=null}),Ze());let V=le;le=fe(E),le===V?he[le].p(E,k):(Xe(),ge(he[V],1,1,()=>{he[V]=null}),Ze(),re=he[le],re?re.p(E,k):(re=he[le]=Be[le](E),re.c()),ce(re,1),re.m(be,null)),(!K||k[0]&268697600&&oe!==(oe=!E[28]||E[18]))&&(be.disabled=oe)},i(E){K||(ce(M),ce(re),K=!0)},o(E){ge(M),ge(re),K=!1},d(E){E&&N(e),ne&&ne.d(),de&&de.d(),q&&q.d(),Q.d(),M&&M.d(),he[le].d(),He=!1,Fe(me)}}}function Fn(r){let e,t;return{c(){e=C("p"),t=H(r[42]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){L(i,e,s),m(e,t)},p(i,s){s[1]&2048&&se(t,i[42])},d(i){i&&N(e)}}}function k_(r){let e,t,i,s,o,n,a,l,u,c;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2719
+ `),l=S("path"),u=j(),d=H(c),f=j(),p=C("h4"),_=H(r[41]),g=j(),ne&&ne.c(),w=j(),v=C("form"),y=C("div"),A=C("label"),x=H(I),T=H(":"),B=C("span"),B.textContent="*",ae=j(),X=C("input"),pe=j(),de&&de.c(),Ee=j(),q&&q.c(),z=j(),Q.c(),xe=j(),L&&L.c(),Le=j(),be=C("button"),re.c(),h(l,"class","a"),h(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),h(l,"transform","translate(24 24) rotate(180)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"viewBox","0 0 24 24"),h(i,"class","backButtonForgotPassword"),h(p,"class","FormHeaderTitle"),h(p,"part","FormHeaderTitle"),h(t,"class","FormHeader"),h(B,"class","FormRequired"),h(B,"part","FormRequired"),h(A,"for","ResetPasswordByEmail"),h(X,"type","text"),h(X,"id","ResetPasswordByEmail"),X.disabled=r[18],h(y,"class",G="ResetPasswordByEmail "+(r[27]?"InvalidField":"")),h(y,"part",Oe="ResetPasswordByEmail "+(r[27]?"InvalidField":"")),h(be,"class","resetPasswordButton"),h(be,"part","resetPasswordButton"),be.disabled=oe=!r[28]||r[18],h(v,"class","FormContent"),h(v,"part","FormContent"),h(e,"class","FormForgotPassword")},m(E,k){M(E,e,k),m(e,t),m(t,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(i,u),m(i,d),m(t,f),m(t,p),m(p,_),m(t,g),ne&&ne.m(t,null),m(e,w),m(e,v),m(v,y),m(y,A),m(A,x),m(A,T),m(A,B),m(y,ae),m(y,X),st(X,r[23]),m(y,pe),de&&de.m(y,null),m(y,Ee),q&&q.m(y,null),m(y,z),Q.m(y,null),m(v,xe),L&&L.m(v,null),m(v,Le),m(v,be),he[le].m(be,null),K=!0,He||(me=[_e(i,"click",r[67]),_e(X,"input",r[68]),_e(X,"input",r[50]),_e(be,"click",r[72])],He=!0)},p(E,k){(!K||k[1]&32768)&&c!==(c=E[46]("goToLogin")+"")&&se(d,c),(!K||k[1]&1024)&&se(_,E[41]),E[42]?ne?ne.p(E,k):(ne=qn(E),ne.c(),ne.m(t,null)):ne&&(ne.d(1),ne=null),(!K||k[1]&32768)&&I!==(I=E[46]("forgotPasswordEmail")+"")&&se(x,I),(!K||k[0]&262144)&&(X.disabled=E[18]),k[0]&8388608&&X.value!==E[23]&&st(X,E[23]),E[27]&&!E[18]?de?de.p(E,k):(de=Wn(E),de.c(),de.m(y,Ee)):de&&(de.d(1),de=null),E[21]&&!E[18]?q?q.p(E,k):(q=Yn(E),q.c(),q.m(y,z)):q&&(q.d(1),q=null),Ae===(Ae=Ce(E))&&Q?Q.p(E,k):(Q.d(1),Q=Ae(E),Q&&(Q.c(),Q.m(y,null))),(!K||k[0]&134217728&&G!==(G="ResetPasswordByEmail "+(E[27]?"InvalidField":"")))&&h(y,"class",G),(!K||k[0]&134217728&&Oe!==(Oe="ResetPasswordByEmail "+(E[27]?"InvalidField":"")))&&h(y,"part",Oe),E[16]?L?(L.p(E,k),k[0]&65536&&ce(L,1)):(L=Zn(E),L.c(),ce(L,1),L.m(v,Le)):L&&(Xe(),ge(L,1,1,()=>{L=null}),Ze());let V=le;le=fe(E),le===V?he[le].p(E,k):(Xe(),ge(he[V],1,1,()=>{he[V]=null}),Ze(),re=he[le],re?re.p(E,k):(re=he[le]=Be[le](E),re.c()),ce(re,1),re.m(be,null)),(!K||k[0]&268697600&&oe!==(oe=!E[28]||E[18]))&&(be.disabled=oe)},i(E){K||(ce(L),ce(re),K=!0)},o(E){ge(L),ge(re),K=!1},d(E){E&&N(e),ne&&ne.d(),de&&de.d(),q&&q.d(),Q.d(),L&&L.d(),he[le].d(),He=!1,Fe(me)}}}function Vn(r){let e,t;return{c(){e=C("p"),t=H(r[42]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){M(i,e,s),m(e,t)},p(i,s){s[1]&2048&&se(t,i[42])},d(i){i&&N(e)}}}function L_(r){let e,t,i,s,o,n,a,l,u,c;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2720
2720
  fill: var(--emw--color-white, #ffffff);
2721
2721
  }
2722
- `),o=S("g"),n=S("path"),a=S("circle"),h(n,"class","a"),h(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),h(n,"transform","translate(0)"),h(a,"class","a"),h(a,"cx","2.779"),h(a,"cy","2.779"),h(a,"r","2.779"),h(a,"transform","translate(20.827 30.303)"),h(o,"transform","translate(-14.185 -27.832)"),h(e,"class",l="TogglePasswordVisibility "+(r[31]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.843"),h(e,"height","10.5"),h(e,"viewBox","0 0 18.843 10.5")},m(d,f){L(d,e,f),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(c=_e(e,"click",r[78]),u=!0)},p(d,f){f[1]&1&&l!==(l="TogglePasswordVisibility "+(d[31]?"InvalidToggle":""))&&h(e,"class",l)},d(d){d&&N(e),u=!1,c()}}}function L_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2722
+ `),o=S("g"),n=S("path"),a=S("circle"),h(n,"class","a"),h(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),h(n,"transform","translate(0)"),h(a,"class","a"),h(a,"cx","2.779"),h(a,"cy","2.779"),h(a,"r","2.779"),h(a,"transform","translate(20.827 30.303)"),h(o,"transform","translate(-14.185 -27.832)"),h(e,"class",l="TogglePasswordVisibility "+(r[31]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.843"),h(e,"height","10.5"),h(e,"viewBox","0 0 18.843 10.5")},m(d,f){M(d,e,f),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(c=_e(e,"click",r[78]),u=!0)},p(d,f){f[1]&1&&l!==(l="TogglePasswordVisibility "+(d[31]?"InvalidToggle":""))&&h(e,"class",l)},d(d){d&&N(e),u=!1,c()}}}function B_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2723
2723
  fill: var(--emw--color-white, #ffffff);
2724
2724
  }
2725
- `),o=S("g"),n=S("circle"),a=S("g"),l=S("path"),u=S("path"),c=S("g"),d=S("path"),f=S("path"),p=S("rect"),h(n,"class","a"),h(n,"cx","0.05"),h(n,"cy","0.05"),h(n,"r","0.05"),h(n,"transform","translate(121.017 31.148)"),h(l,"class","a"),h(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),h(l,"transform","translate(-142.164 -39.123)"),h(u,"class","a"),h(u,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),h(u,"transform","translate(-136.413 -42.068)"),h(a,"transform","translate(117.499 27.37)"),h(d,"class","a"),h(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),h(d,"transform","translate(-110.856 -33.157)"),h(f,"class","a"),h(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),h(f,"transform","translate(-130.743 -29.617)"),h(c,"transform","translate(110.856 24.899)"),h(p,"class","a"),h(p,"width","0.972"),h(p,"height","15.861"),h(p,"rx","0.486"),h(p,"transform","translate(114.827 23.858) rotate(-39.315)"),h(o,"transform","translate(-110.856 -23.242)"),h(e,"class",_="TogglePasswordVisibility "+(r[31]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.844"),h(e,"height","12.887"),h(e,"viewBox","0 0 18.844 12.887")},m(v,y){L(v,e,y),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),m(a,l),m(a,u),m(o,c),m(c,d),m(c,f),m(o,p),g||(w=_e(e,"click",r[77]),g=!0)},p(v,y){y[1]&1&&_!==(_="TogglePasswordVisibility "+(v[31]?"InvalidToggle":""))&&h(e,"class",_)},d(v){v&&N(e),g=!1,w()}}}function Vn(r){let e;function t(o,n){return o[3]=="true"?B_:M_}let i=t(r),s=i(r);return{c(){s.c(),e=mr()},m(o,n){s.m(o,n),L(o,e,n)},p(o,n){i===(i=t(o))&&s?s.p(o,n):(s.d(1),s=i(o),s&&(s.c(),s.m(e.parentNode,e)))},d(o){o&&N(e),s.d(o)}}}function M_(r){let e,t=r[46]("forgotNewPasswordPasswordError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotNewPasswordPasswordError")+"")&&se(i,t)},d(s){s&&N(e)}}}function B_(r){let e,t=r[46]("simplePasswordError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("simplePasswordError")+"")&&se(i,t)},d(s){s&&N(e)}}}function R_(r){let e,t,i,s,o,n,a,l,u,c;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2725
+ `),o=S("g"),n=S("circle"),a=S("g"),l=S("path"),u=S("path"),c=S("g"),d=S("path"),f=S("path"),p=S("rect"),h(n,"class","a"),h(n,"cx","0.05"),h(n,"cy","0.05"),h(n,"r","0.05"),h(n,"transform","translate(121.017 31.148)"),h(l,"class","a"),h(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),h(l,"transform","translate(-142.164 -39.123)"),h(u,"class","a"),h(u,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),h(u,"transform","translate(-136.413 -42.068)"),h(a,"transform","translate(117.499 27.37)"),h(d,"class","a"),h(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),h(d,"transform","translate(-110.856 -33.157)"),h(f,"class","a"),h(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),h(f,"transform","translate(-130.743 -29.617)"),h(c,"transform","translate(110.856 24.899)"),h(p,"class","a"),h(p,"width","0.972"),h(p,"height","15.861"),h(p,"rx","0.486"),h(p,"transform","translate(114.827 23.858) rotate(-39.315)"),h(o,"transform","translate(-110.856 -23.242)"),h(e,"class",_="TogglePasswordVisibility "+(r[31]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.844"),h(e,"height","12.887"),h(e,"viewBox","0 0 18.844 12.887")},m(v,y){M(v,e,y),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),m(a,l),m(a,u),m(o,c),m(c,d),m(c,f),m(o,p),g||(w=_e(e,"click",r[77]),g=!0)},p(v,y){y[1]&1&&_!==(_="TogglePasswordVisibility "+(v[31]?"InvalidToggle":""))&&h(e,"class",_)},d(v){v&&N(e),g=!1,w()}}}function Un(r){let e;function t(o,n){return o[3]=="true"?D_:R_}let i=t(r),s=i(r);return{c(){s.c(),e=mr()},m(o,n){s.m(o,n),M(o,e,n)},p(o,n){i===(i=t(o))&&s?s.p(o,n):(s.d(1),s=i(o),s&&(s.c(),s.m(e.parentNode,e)))},d(o){o&&N(e),s.d(o)}}}function R_(r){let e,t=r[46]("forgotNewPasswordPasswordError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){M(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotNewPasswordPasswordError")+"")&&se(i,t)},d(s){s&&N(e)}}}function D_(r){let e,t=r[46]("simplePasswordError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){M(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("simplePasswordError")+"")&&se(i,t)},d(s){s&&N(e)}}}function H_(r){let e,t,i,s,o,n,a,l,u,c;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2726
2726
  fill: var(--emw--color-white, #ffffff);
2727
2727
  }
2728
- `),o=S("g"),n=S("path"),a=S("circle"),h(n,"class","a"),h(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),h(n,"transform","translate(0)"),h(a,"class","a"),h(a,"cx","2.779"),h(a,"cy","2.779"),h(a,"r","2.779"),h(a,"transform","translate(20.827 30.303)"),h(o,"transform","translate(-14.185 -27.832)"),h(e,"class",l="TogglePasswordVisibility "+(r[32]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.843"),h(e,"height","10.5"),h(e,"viewBox","0 0 18.843 10.5")},m(d,f){L(d,e,f),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(c=_e(e,"click",r[83]),u=!0)},p(d,f){f[1]&2&&l!==(l="TogglePasswordVisibility "+(d[32]?"InvalidToggle":""))&&h(e,"class",l)},d(d){d&&N(e),u=!1,c()}}}function D_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2728
+ `),o=S("g"),n=S("path"),a=S("circle"),h(n,"class","a"),h(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),h(n,"transform","translate(0)"),h(a,"class","a"),h(a,"cx","2.779"),h(a,"cy","2.779"),h(a,"r","2.779"),h(a,"transform","translate(20.827 30.303)"),h(o,"transform","translate(-14.185 -27.832)"),h(e,"class",l="TogglePasswordVisibility "+(r[32]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.843"),h(e,"height","10.5"),h(e,"viewBox","0 0 18.843 10.5")},m(d,f){M(d,e,f),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(c=_e(e,"click",r[83]),u=!0)},p(d,f){f[1]&2&&l!==(l="TogglePasswordVisibility "+(d[32]?"InvalidToggle":""))&&h(e,"class",l)},d(d){d&&N(e),u=!1,c()}}}function z_(r){let e,t,i,s,o,n,a,l,u,c,d,f,p,_,g,w;return{c(){e=S("svg"),t=S("defs"),i=S("style"),s=H(`.a {
2729
2729
  fill: var(--emw--color-white, #ffffff);
2730
2730
  }
2731
- `),o=S("g"),n=S("circle"),a=S("g"),l=S("path"),u=S("path"),c=S("g"),d=S("path"),f=S("path"),p=S("rect"),h(n,"class","a"),h(n,"cx","0.05"),h(n,"cy","0.05"),h(n,"r","0.05"),h(n,"transform","translate(121.017 31.148)"),h(l,"class","a"),h(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),h(l,"transform","translate(-142.164 -39.123)"),h(u,"class","a"),h(u,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),h(u,"transform","translate(-136.413 -42.068)"),h(a,"transform","translate(117.499 27.37)"),h(d,"class","a"),h(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),h(d,"transform","translate(-110.856 -33.157)"),h(f,"class","a"),h(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),h(f,"transform","translate(-130.743 -29.617)"),h(c,"transform","translate(110.856 24.899)"),h(p,"class","a"),h(p,"width","0.972"),h(p,"height","15.861"),h(p,"rx","0.486"),h(p,"transform","translate(114.827 23.858) rotate(-39.315)"),h(o,"transform","translate(-110.856 -23.242)"),h(e,"class",_="TogglePasswordVisibility "+(r[32]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.844"),h(e,"height","12.887"),h(e,"viewBox","0 0 18.844 12.887")},m(v,y){L(v,e,y),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),m(a,l),m(a,u),m(o,c),m(c,d),m(c,f),m(o,p),g||(w=_e(e,"click",r[82]),g=!0)},p(v,y){y[1]&2&&_!==(_="TogglePasswordVisibility "+(v[32]?"InvalidToggle":""))&&h(e,"class",_)},d(v){v&&N(e),g=!1,w()}}}function Un(r){let e,t=r[46]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotNewPasswordConfirmPasswordError")+"")&&se(i,t)},d(s){s&&N(e)}}}function $n(r){let e,t;return{c(){e=C("p"),t=H(r[29]),h(e,"class","ErrorMessage"),h(e,"part","ErrorMessage")},m(i,s){L(i,e,s),m(e,t)},p(i,s){s[0]&536870912&&se(t,i[29])},d(i){i&&N(e)}}}function jn(r){let e,t;const i=r[66].captchaContainer,s=oa(i,r,r[65],Bn);return{c(){e=C("div"),s&&s.c(),h(e,"class","CaptchaWrapper")},m(o,n){L(o,e,n),s&&s.m(e,null),t=!0},p(o,n){s&&s.p&&(!t||n[2]&8)&&la(s,i,o,o[65],t?aa(i,o[65],n,E_):ua(o[65]),Bn)},i(o){t||(ce(s,o),t=!0)},o(o){ge(s,o),t=!1},d(o){o&&N(e),s&&s.d(o)}}}function H_(r){let e=r[46]("forgotPasswordReset")+"",t;return{c(){t=H(e)},m(i,s){L(i,t,s)},p(i,s){s[1]&32768&&e!==(e=i[46]("forgotPasswordReset")+"")&&se(t,e)},i:te,o:te,d(i){i&&N(t)}}}function z_(r){let e,t,i;var s=nr;function o(n,a){return{}}return s&&(e=Ur(s,o())),{c(){e&&Wr(e.$$.fragment),t=mr()},m(n,a){e&&rr(e,n,a),L(n,t,a),i=!0},p(n,a){if(s!==(s=nr)){if(e){Xe();const l=e;ge(l.$$.fragment,1,0,()=>{ir(l,1)}),Ze()}s?(e=Ur(s,o()),Wr(e.$$.fragment),ce(e.$$.fragment,1),rr(e,t.parentNode,t)):e=null}},i(n){i||(e&&ce(e.$$.fragment,n),i=!0)},o(n){e&&ge(e.$$.fragment,n),i=!1},d(n){n&&N(t),e&&ir(e,n)}}}function Gn(r){let e,t;return{c(){e=C("p"),t=H(r[42]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){L(i,e,s),m(e,t)},p(i,s){s[1]&2048&&se(t,i[42])},d(i){i&&N(e)}}}function qn(r){let e,t=r[46]("forgotPasswordEmailInputError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotPasswordEmailInputError")+"")&&se(i,t)},d(s){s&&N(e)}}}function Wn(r){let e,t=r[46]("forgotPasswordEmailError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotPasswordEmailError")+"")&&se(i,t)},d(s){s&&N(e)}}}function F_(r){let e,t,i=r[46](r[44])+"",s;return{c(){e=C("div"),t=C("span"),s=H(i),h(e,"class","dobFormatError")},m(o,n){L(o,e,n),m(e,t),m(t,s)},p(o,n){n[1]&40960&&i!==(i=o[46](o[44])+"")&&se(s,i)},d(o){o&&N(e)}}}function V_(r){let e,t,i=Ki(r[43]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Yn(Dn(r,i,o));return{c(){e=C("div");for(let o=0;o<s.length;o+=1)s[o].c();h(e,"class",t="DobContainer "+(r[26]?"Mobile":""))},m(o,n){L(o,e,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(e,null)},p(o,n){if(n[1]&8900608){i=Ki(o[43]);let a;for(a=0;a<i.length;a+=1){const l=Dn(o,i,a);s[a]?s[a].p(l,n):(s[a]=Yn(l),s[a].c(),s[a].m(e,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=i.length}n[0]&67108864&&t!==(t="DobContainer "+(o[26]?"Mobile":""))&&h(e,"class",t)},d(o){o&&N(e),pa(s,o)}}}function U_(r){let e,t,i,s,o;return{c(){e=C("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",t=r[46]("year")),O(e,"items",r[47]),O(e,"disabled",i=r[45].isYearDisabled)},m(n,a){L(n,e,a),s||(o=_e(e,"change",r[71]),s=!0)},p(n,a){a[1]&32768&&t!==(t=n[46]("year"))&&O(e,"label",t),a[1]&16384&&i!==(i=n[45].isYearDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function $_(r){let e,t,i,s,o;return{c(){e=C("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",t=r[46]("month")),O(e,"items",Object.keys(r[48])),O(e,"disabled",i=r[45].isMonthDisabled)},m(n,a){L(n,e,a),s||(o=_e(e,"change",r[70]),s=!0)},p(n,a){a[1]&32768&&t!==(t=n[46]("month"))&&O(e,"label",t),a[1]&16384&&i!==(i=n[45].isMonthDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function j_(r){let e,t,i,s,o;return{c(){e=C("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",t=r[46]("day")),O(e,"items",r[49]),O(e,"disabled",i=r[45].isDayDisabled)},m(n,a){L(n,e,a),s||(o=_e(e,"change",r[69]),s=!0)},p(n,a){a[1]&32768&&t!==(t=n[46]("day"))&&O(e,"label",t),a[1]&16384&&i!==(i=n[45].isDayDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function Yn(r){let e;function t(o,n){if(o[114]==="dd")return j_;if(o[114]==="mm")return $_;if(o[114]==="yyyy")return U_}let i=t(r),s=i&&i(r);return{c(){s&&s.c(),e=mr()},m(o,n){s&&s.m(o,n),L(o,e,n)},p(o,n){i===(i=t(o))&&s?s.p(o,n):(s&&s.d(1),s=i&&i(o),s&&(s.c(),s.m(e.parentNode,e)))},d(o){o&&N(e),s&&s.d(o)}}}function Xn(r){let e,t;const i=r[66].captchaContainer,s=oa(i,r,r[65],Rn);return{c(){e=C("div"),s&&s.c(),h(e,"class","CaptchaWrapper")},m(o,n){L(o,e,n),s&&s.m(e,null),t=!0},p(o,n){s&&s.p&&(!t||n[2]&8)&&la(s,i,o,o[65],t?aa(i,o[65],n,C_):ua(o[65]),Rn)},i(o){t||(ce(s,o),t=!0)},o(o){ge(s,o),t=!1},d(o){o&&N(e),s&&s.d(o)}}}function G_(r){let e=r[46]("forgotPasswordReset")+"",t;return{c(){t=H(e)},m(i,s){L(i,t,s)},p(i,s){s[1]&32768&&e!==(e=i[46]("forgotPasswordReset")+"")&&se(t,e)},i:te,o:te,d(i){i&&N(t)}}}function q_(r){let e,t,i;var s=nr;function o(n,a){return{}}return s&&(e=Ur(s,o())),{c(){e&&Wr(e.$$.fragment),t=mr()},m(n,a){e&&rr(e,n,a),L(n,t,a),i=!0},p(n,a){if(s!==(s=nr)){if(e){Xe();const l=e;ge(l.$$.fragment,1,0,()=>{ir(l,1)}),Ze()}s?(e=Ur(s,o()),Wr(e.$$.fragment),ce(e.$$.fragment,1),rr(e,t.parentNode,t)):e=null}},i(n){i||(e&&ce(e.$$.fragment,n),i=!0)},o(n){e&&ge(e.$$.fragment,n),i=!1},d(n){n&&N(t),e&&ir(e,n)}}}function W_(r){let e,t,i,s,o,n,a,l,u,c=r[1]&&Hn(r);const d=[A_,S_],f=[];function p(_,g){return g[0]&327680&&(n=null),n==null&&(n=!!(_[18]&&!_[16])),n?0:1}return a=p(r,[-1,-1,-1,-1]),l=f[a]=d[a](r),{c(){c&&c.c(),e=mr(),t=j(),i=C("div"),s=j(),o=C("div"),l.c(),h(i,"class","g-recaptcha"),h(i,"data-sitekey",r[1]),h(o,"class","GeneralPlayerForgotPasswordForm")},m(_,g){c&&c.m(document.head,null),m(document.head,e),L(_,t,g),L(_,i,g),L(_,s,g),L(_,o,g),f[a].m(o,null),r[86](o),u=!0},p(_,g){_[1]?c?c.p(_,g):(c=Hn(_),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null),(!u||g[0]&2)&&h(i,"data-sitekey",_[1]);let w=a;a=p(_,g),a===w?f[a].p(_,g):(Xe(),ge(f[w],1,1,()=>{f[w]=null}),Ze(),l=f[a],l?l.p(_,g):(l=f[a]=d[a](_),l.c()),ce(l,1),l.m(o,null))},i(_){u||(ce(l),u=!0)},o(_){ge(l),u=!1},d(_){_&&(N(t),N(i),N(s),N(o)),c&&c.d(_),N(e),f[a].d(),r[86](null)}}}function Y_(r,e,t){let i;sa(r,qa,b=>t(46,i=b));let{$$slots:s={},$$scope:o}=e,{endpoint:n=""}=e,{forgotpasswordkey:a=""}=e,{captchakey:l=""}=e,{lang:u="en"}=e,{simplepasswordvalidation:c="false"}=e,{useregispasswordcheck:d="false"}=e,{mbsource:f}=e,{clientstyling:p=""}=e,{clientstylingurl:_=""}=e,{translationurl:g=""}=e,{savecredentials:w=""}=e,{hastosetpass:v="false"}=e,{passwordregex:y=""}=e,{dobformat:A=""}=e,{mindobyears:I=18}=e,{maxdobyears:x=100}=e,{resetviasms:T="false"}=e,{phoneregex:B=""}=e,{phoneprefixeditable:ae="false"}=e,{smscodemaxattempts:X="5"}=e,{smscodelength:pe="6"}=e,{smscodettl:Ee="5"}=e,{resenddelay:z="1"}=e,{turnstileSiteKey:G}=e,{cfCaptchaIsVisible:Oe="false"}=e,xe=!1,Me=!1,be=!0,le=!1,re=!1,oe="",K=!1,He=!1,me=!1,ne=!1,de=!1,q=window.navigator.userAgent,Ce="",Ae=!1,Q=sessionStorage.getItem("resetScreenWasSeen")==="true",M=!1,Be=!1,he,fe,E=!1,k=!1,V="",Te="",Ne=null,Ve=!1,P=0,R,Ht,yr=!1,ho,fo,ee,Ql=Array.from({length:x-I+1},(b,D)=>new Date().getFullYear()-I-D),po={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},eu=Array.from({length:31},(b,D)=>D+1),rt=[],mo="",yi=!0,ke={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},tu=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],zt={dd:null,mm:null,yyyy:null},_o="";ah({withLocale:"en",translations:{}});const ru=()=>{fetch(g).then(D=>D.json()).then(D=>{Object.keys(D).forEach(Y=>{qo(Y,D[Y])})}).catch(D=>{console.log(D)})};Object.keys(Wo).forEach(b=>{qo(b,Wo[b])});const wr={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},iu=()=>{t(28,de=A?!ne&&!yi:!ne)},su=b=>!!(wr.email.test(b)&&b.length<=100),go=()=>{t(27,ne=!su(oe)),iu()},Ft=b=>{switch(b){case"userNewPassword":t(35,E=!E),t(33,he.type=E?"text":"password",he);break;case"userConfirmPassword":t(36,k=!k),t(34,fe.type=k?"text":"password",fe);break}},xr=b=>{switch(b){case"ToSMSReset":{t(19,Me=!0),t(21,le=!1),t(20,be=!1),t(22,re=!1);break}case"ToEmailSuccess":t(21,le=!1),t(20,be=!1),t(19,Me=!1),t(22,re=!0),window.postMessage({type:"resetPasswordLinkSent"},window.location.href);break;case"ToReset":t(20,be=Q),t(24,K=!Q),t(19,Me=!1),Q=!0,T!=="true"&&sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":t(24,K=!1),t(19,Me=!1),t(25,He=!0);break}},Pr=()=>{window.postMessage({type:"ToLogin"},window.location.href)};G&&(ee=w_({action:"resetPassword",siteKey:G}));const ou=()=>new Promise((b,D)=>{grecaptcha.ready(()=>{grecaptcha.execute(l,{action:"submit"}).then(Y=>{b(Y)})})}),bo=b=>{b.preventDefault(),t(18,xe=!0),(G?ee.ensureToken:ou)().then(Y=>{let ve=new URL(`${n}/v1/player/resetpassword`);const Ge=G?{[kn]:Y,[Ln]:Oe}:{"g-recaptcha-response":Y};let Ei={method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"},Ge)};ve.searchParams.append("email",oe),A&&ve.searchParams.append("birthDate",_o),fetch(ve,Ei).then(qe=>yo(qe)).then(()=>{xr("ToEmailSuccess")}).catch(qe=>{t(21,le=!0),console.error("There was an error with the reset password request.",qe)}).finally(()=>{var qe;t(18,xe=!1),Q=!1,sessionStorage.setItem("resetScreenWasSeen","false"),G&&((qe=ee==null?void 0:ee.reset)==null||qe.call(ee))})}).catch(Y=>{t(21,le=!0),t(18,xe=!1),Q=!1,Y!==null&&console.error("There was an error with captcha",Y)})},nu=()=>{if(t(58,A=A.toLowerCase()),!tu.includes(A))return t(44,mo="dobFormatError");t(43,rt=A.split("/")),t(45,ke.isDayDisabled=rt[0]!=="dd",ke),t(45,ke.isMonthDisabled=rt[0]!=="mm",ke),t(45,ke.isYearDisabled=rt[0]!=="yyyy",ke)},Er=(b,D)=>{zt[D]=b.target.value,yi=Object.values(zt).some(Y=>!Y),rt.forEach((Y,ve)=>{if(D===Y)switch(rt[ve+1]){case"dd":t(45,ke.isDayDisabled=!1,ke);case"mm":t(45,ke.isMonthDisabled=!1,ke);break;case"yyyy":t(45,ke.isYearDisabled=!1,ke);break}}),yi||(_o=`${zt.yyyy}-${po[zt.mm]}-${zt.dd}`),go()},vo=b=>Ue(this,null,function*(){var qe;if(b.preventDefault(),d==="true"&&Ve||(Pi(),!Ae))return;const D=P;t(18,xe=!0);let Y=new URL(`${n}/v1/player/ResetPasswordByHashKey`);const ve={};if(G)try{const Re=yield(qe=ee==null?void 0:ee.ensureToken)==null?void 0:qe.call(ee);ve[kn]=Re,ve[Ln]=Oe}catch(Re){t(40,yr=!0),t(18,xe=!1),Re!==null&&(t(29,Ce=`${Re}`),console.error(Ce));return}if(D!==P){t(18,xe=!1);return}let Ge={hashKey:a,plainTextPassword:V};T==="true"&&(Ge.isUserHash=!0);let Ei={method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"},ve),body:JSON.stringify(Ge)};fetch(Y,Ei).then(Re=>yo(Re)).then(Re=>{t(40,yr=!1),xr("ToSuccess")}).catch(Re=>{t(40,yr=!0),console.error("There was an error with changing the password.",Re)}).finally(()=>{var Re;t(18,xe=!1),G&&((Re=ee==null?void 0:ee.reset)==null||Re.call(ee))})}),au=()=>{a&&a.length>0&&xr("ToReset")},lu=()=>{T==="true"&&!a&&xr("ToSMSReset")},wi=()=>{!(d==="true"&&Ve)&&!M&&!Be&&V&&Te?t(30,Ae=!0):t(30,Ae=!1)},Vt=b=>{if(d==="true"){if(Ve)return!1;if(Ne)return Ne(b)}return c=="true"&&(wr.password=/^(?!.* ).{8,20}$/),!!wr.password.test(b)},xi=(b,D,Y)=>{Y.id==="new-password"?(t(31,M=!Vt(D)),Te&&t(32,Be=V===Te?!Vt(D):!0)):t(32,Be=V===Te?!Vt(D):!0),wi()},Pi=()=>{V&&t(31,M=!Vt(V)),Te&&t(32,Be=V!==Te||!Vt(Te)),wi()},uu=(b,D)=>Ue(this,null,function*(){const Y=++P;if(Ne=null,t(39,Ve=b==="true"),wi(),!Ve){Pi();return}try{const ve=yield nh(D);if(Y!==P||b!==d||D!==n)return;Ne=ve}catch(ve){}finally{Y===P&&b===d&&D===n&&(t(39,Ve=!1),Pi())}}),yo=b=>Ue(this,null,function*(){var Y,ve;let D;try{D=yield b.json()}catch(Ge){console.error("JSON Parse Error:",Ge)}if(b.status>=300){const Ge=((Y=D==null?void 0:D.thirdPartyResponse)==null?void 0:Y.errorCode)||"generalError";return t(29,Ce=i(Ge)),Ce===String(Ge)&&/^\d+$/.test(Ce)&&t(29,Ce=(ve=D==null?void 0:D.thirdPartyResponse)==null?void 0:ve.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:Ce}},window.location.href),Promise.reject(Ce)}return D}),cu=()=>{lh(u)},du=()=>{t(41,ho=i(v==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),t(42,fo=v==="true"?i("resetPasswordSubtitle"):"")},wo=b=>{!b||!b.data||b.data.type==="SwitchToResetPasswordScreen"&&t(57,a=b.data.key)};ma(()=>{var b,D;if(oh(q)&&t(26,me=!0),window.addEventListener("message",wo),G){const Y=(b=R.getRootNode())==null?void 0:b.host,ve=p_(Y,x_);ve&&((D=ee==null?void 0:ee.render)==null||D.call(ee,ve))}return()=>{var Y;P++,window.removeEventListener("message",wo),G&&((Y=ee==null?void 0:ee.cleanup)==null||Y.call(ee))}});const hu=()=>Pr();function fu(){oe=this.value,t(23,oe)}const pu=b=>Er(b,"dd"),mu=b=>Er(b,"mm"),_u=b=>Er(b,"yyyy"),gu=b=>bo(b),bu=()=>Pr();function vu(){V=this.value,t(37,V)}const yu=()=>xi(M,V,he);function wu(b){wt[b?"unshift":"push"](()=>{he=b,t(33,he)})}const xu=()=>Ft("userNewPassword"),Pu=()=>Ft("userNewPassword");function Eu(){Te=this.value,t(38,Te)}const Cu=()=>xi(Be,Te,fe);function Su(b){wt[b?"unshift":"push"](()=>{fe=b,t(34,fe)})}const Au=()=>Ft("userConfirmPassword"),Tu=()=>Ft("userConfirmPassword"),Iu=b=>vo(b),Ou=()=>Pr();function Nu(b){wt[b?"unshift":"push"](()=>{R=b,t(17,R)})}return r.$$set=b=>{"endpoint"in b&&t(0,n=b.endpoint),"forgotpasswordkey"in b&&t(57,a=b.forgotpasswordkey),"captchakey"in b&&t(1,l=b.captchakey),"lang"in b&&t(2,u=b.lang),"simplepasswordvalidation"in b&&t(3,c=b.simplepasswordvalidation),"useregispasswordcheck"in b&&t(4,d=b.useregispasswordcheck),"mbsource"in b&&t(5,f=b.mbsource),"clientstyling"in b&&t(6,p=b.clientstyling),"clientstylingurl"in b&&t(7,_=b.clientstylingurl),"translationurl"in b&&t(8,g=b.translationurl),"savecredentials"in b&&t(9,w=b.savecredentials),"hastosetpass"in b&&t(59,v=b.hastosetpass),"passwordregex"in b&&t(60,y=b.passwordregex),"dobformat"in b&&t(58,A=b.dobformat),"mindobyears"in b&&t(61,I=b.mindobyears),"maxdobyears"in b&&t(62,x=b.maxdobyears),"resetviasms"in b&&t(63,T=b.resetviasms),"phoneregex"in b&&t(10,B=b.phoneregex),"phoneprefixeditable"in b&&t(11,ae=b.phoneprefixeditable),"smscodemaxattempts"in b&&t(12,X=b.smscodemaxattempts),"smscodelength"in b&&t(13,pe=b.smscodelength),"smscodettl"in b&&t(14,Ee=b.smscodettl),"resenddelay"in b&&t(15,z=b.resenddelay),"turnstileSiteKey"in b&&t(16,G=b.turnstileSiteKey),"cfCaptchaIsVisible"in b&&t(64,Oe=b.cfCaptchaIsVisible),"$$scope"in b&&t(65,o=b.$$scope)},r.$$.update=()=>{r.$$.dirty[1]&67108864|r.$$.dirty[2]&2&&T&&!a&&lu(),r.$$.dirty[1]&67108864&&a&&au(),r.$$.dirty[0]&4&&u&&cu(),r.$$.dirty[0]&131136&&p&&R&&Wa(R,p),r.$$.dirty[0]&131200&&_&&R&&Ya(R,_),r.$$.dirty[0]&131104&&f&&R&&Xa(R,`${f}.Style`,Ht),r.$$.dirty[0]&256&&g&&ru(),r.$$.dirty[0]&4|r.$$.dirty[1]&268435456&&v&&u&&du(),r.$$.dirty[1]&536870912&&y&&(wr.password=new RegExp(y)),r.$$.dirty[1]&134217728&&A&&nu(),r.$$.dirty[0]&17&&uu(d,n)},[n,l,u,c,d,f,p,_,g,w,B,ae,X,pe,Ee,z,G,R,xe,Me,be,le,re,oe,K,He,me,ne,de,Ce,Ae,M,Be,he,fe,E,k,V,Te,Ve,yr,ho,fo,rt,mo,ke,i,Ql,po,eu,go,Ft,Pr,bo,Er,vo,xi,a,A,v,y,I,x,T,Oe,o,s,hu,fu,pu,mu,_u,gu,bu,vu,yu,wu,xu,Pu,Eu,Cu,Su,Au,Tu,Iu,Ou,Nu]}class Kl extends Fs{constructor(e){super(),Hs(this,e,Y_,W_,ni,{endpoint:0,forgotpasswordkey:57,captchakey:1,lang:2,simplepasswordvalidation:3,useregispasswordcheck:4,mbsource:5,clientstyling:6,clientstylingurl:7,translationurl:8,savecredentials:9,hastosetpass:59,passwordregex:60,dobformat:58,mindobyears:61,maxdobyears:62,resetviasms:63,phoneregex:10,phoneprefixeditable:11,smscodemaxattempts:12,smscodelength:13,smscodettl:14,resenddelay:15,turnstileSiteKey:16,cfCaptchaIsVisible:64},P_,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),J()}get forgotpasswordkey(){return this.$$.ctx[57]}set forgotpasswordkey(e){this.$$set({forgotpasswordkey:e}),J()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),J()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),J()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),J()}get useregispasswordcheck(){return this.$$.ctx[4]}set useregispasswordcheck(e){this.$$set({useregispasswordcheck:e}),J()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),J()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),J()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),J()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),J()}get savecredentials(){return this.$$.ctx[9]}set savecredentials(e){this.$$set({savecredentials:e}),J()}get hastosetpass(){return this.$$.ctx[59]}set hastosetpass(e){this.$$set({hastosetpass:e}),J()}get passwordregex(){return this.$$.ctx[60]}set passwordregex(e){this.$$set({passwordregex:e}),J()}get dobformat(){return this.$$.ctx[58]}set dobformat(e){this.$$set({dobformat:e}),J()}get mindobyears(){return this.$$.ctx[61]}set mindobyears(e){this.$$set({mindobyears:e}),J()}get maxdobyears(){return this.$$.ctx[62]}set maxdobyears(e){this.$$set({maxdobyears:e}),J()}get resetviasms(){return this.$$.ctx[63]}set resetviasms(e){this.$$set({resetviasms:e}),J()}get phoneregex(){return this.$$.ctx[10]}set phoneregex(e){this.$$set({phoneregex:e}),J()}get phoneprefixeditable(){return this.$$.ctx[11]}set phoneprefixeditable(e){this.$$set({phoneprefixeditable:e}),J()}get smscodemaxattempts(){return this.$$.ctx[12]}set smscodemaxattempts(e){this.$$set({smscodemaxattempts:e}),J()}get smscodelength(){return this.$$.ctx[13]}set smscodelength(e){this.$$set({smscodelength:e}),J()}get smscodettl(){return this.$$.ctx[14]}set smscodettl(e){this.$$set({smscodettl:e}),J()}get resenddelay(){return this.$$.ctx[15]}set resenddelay(e){this.$$set({resenddelay:e}),J()}get turnstileSiteKey(){return this.$$.ctx[16]}set turnstileSiteKey(e){this.$$set({turnstileSiteKey:e}),J()}get cfCaptchaIsVisible(){return this.$$.ctx[64]}set cfCaptchaIsVisible(e){this.$$set({cfCaptchaIsVisible:e}),J()}}zs(Kl,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},useregispasswordcheck:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{},resetviasms:{},phoneregex:{},phoneprefixeditable:{},smscodemaxattempts:{},smscodelength:{},smscodettl:{},resenddelay:{},turnstileSiteKey:{},cfCaptchaIsVisible:{}},["captchaContainer"],[],!0);const X_=Object.freeze(Object.defineProperty({__proto__:null,default:Kl},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=dt;exports.$format=qa;exports.$locale=Je;exports.GeneralPlayerForgotPasswordFormNd_ce=X_;exports.SvelteComponent=Fs;exports.addMessages=Us;exports.add_render_callback=ut;exports.append=m;exports.append_styles=ha;exports.attr=h;exports.binding_callbacks=wt;exports.check_outros=Ze;exports.component_subscribe=sa;exports.create_bidirectional_transition=tc;exports.create_custom_element=zs;exports.create_in_transition=Qu;exports.create_out_transition=ec;exports.destroy_each=pa;exports.detach=N;exports.element=C;exports.ensure_array_like=Ki;exports.flush=J;exports.group_outros=Xe;exports.identity=oi;exports.init=Hs;exports.insert=L;exports.listen=_e;exports.onMount=ma;exports.run_all=Fe;exports.safe_not_equal=ni;exports.setClientStyling=Wa;exports.setClientStylingURL=Ya;exports.setStreamStyling=Xa;exports.set_custom_element_data=O;exports.set_data=se;exports.set_input_value=st;exports.space=j;exports.split_css_unit=zu;exports.text=H;exports.toggle_class=Uu;exports.transition_in=ce;exports.transition_out=ge;
2731
+ `),o=S("g"),n=S("circle"),a=S("g"),l=S("path"),u=S("path"),c=S("g"),d=S("path"),f=S("path"),p=S("rect"),h(n,"class","a"),h(n,"cx","0.05"),h(n,"cy","0.05"),h(n,"r","0.05"),h(n,"transform","translate(121.017 31.148)"),h(l,"class","a"),h(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),h(l,"transform","translate(-142.164 -39.123)"),h(u,"class","a"),h(u,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),h(u,"transform","translate(-136.413 -42.068)"),h(a,"transform","translate(117.499 27.37)"),h(d,"class","a"),h(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),h(d,"transform","translate(-110.856 -33.157)"),h(f,"class","a"),h(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),h(f,"transform","translate(-130.743 -29.617)"),h(c,"transform","translate(110.856 24.899)"),h(p,"class","a"),h(p,"width","0.972"),h(p,"height","15.861"),h(p,"rx","0.486"),h(p,"transform","translate(114.827 23.858) rotate(-39.315)"),h(o,"transform","translate(-110.856 -23.242)"),h(e,"class",_="TogglePasswordVisibility "+(r[32]?"InvalidToggle":"")),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width","18.844"),h(e,"height","12.887"),h(e,"viewBox","0 0 18.844 12.887")},m(v,y){M(v,e,y),m(e,t),m(t,i),m(i,s),m(e,o),m(o,n),m(o,a),m(a,l),m(a,u),m(o,c),m(c,d),m(c,f),m(o,p),g||(w=_e(e,"click",r[82]),g=!0)},p(v,y){y[1]&2&&_!==(_="TogglePasswordVisibility "+(v[32]?"InvalidToggle":""))&&h(e,"class",_)},d(v){v&&N(e),g=!1,w()}}}function $n(r){let e,t=r[46]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){M(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotNewPasswordConfirmPasswordError")+"")&&se(i,t)},d(s){s&&N(e)}}}function jn(r){let e,t;return{c(){e=C("p"),t=H(r[29]),h(e,"class","ErrorMessage"),h(e,"part","ErrorMessage")},m(i,s){M(i,e,s),m(e,t)},p(i,s){s[0]&536870912&&se(t,i[29])},d(i){i&&N(e)}}}function Gn(r){let e,t;const i=r[66].captchaContainer,s=na(i,r,r[65],Rn);return{c(){e=C("div"),s&&s.c(),h(e,"class","CaptchaWrapper")},m(o,n){M(o,e,n),s&&s.m(e,null),t=!0},p(o,n){s&&s.p&&(!t||n[2]&8)&&ua(s,i,o,o[65],t?la(i,o[65],n,S_):ca(o[65]),Rn)},i(o){t||(ce(s,o),t=!0)},o(o){ge(s,o),t=!1},d(o){o&&N(e),s&&s.d(o)}}}function F_(r){let e=r[46]("forgotPasswordReset")+"",t;return{c(){t=H(e)},m(i,s){M(i,t,s)},p(i,s){s[1]&32768&&e!==(e=i[46]("forgotPasswordReset")+"")&&se(t,e)},i:te,o:te,d(i){i&&N(t)}}}function V_(r){let e,t,i;var s=nr;function o(n,a){return{}}return s&&(e=Ur(s,o())),{c(){e&&Wr(e.$$.fragment),t=mr()},m(n,a){e&&rr(e,n,a),M(n,t,a),i=!0},p(n,a){if(s!==(s=nr)){if(e){Xe();const l=e;ge(l.$$.fragment,1,0,()=>{ir(l,1)}),Ze()}s?(e=Ur(s,o()),Wr(e.$$.fragment),ce(e.$$.fragment,1),rr(e,t.parentNode,t)):e=null}},i(n){i||(e&&ce(e.$$.fragment,n),i=!0)},o(n){e&&ge(e.$$.fragment,n),i=!1},d(n){n&&N(t),e&&ir(e,n)}}}function qn(r){let e,t;return{c(){e=C("p"),t=H(r[42]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){M(i,e,s),m(e,t)},p(i,s){s[1]&2048&&se(t,i[42])},d(i){i&&N(e)}}}function Wn(r){let e,t=r[46]("forgotPasswordEmailInputError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){M(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotPasswordEmailInputError")+"")&&se(i,t)},d(s){s&&N(e)}}}function Yn(r){let e,t=r[46]("forgotPasswordEmailError")+"",i;return{c(){e=C("p"),i=H(t),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){M(s,e,o),m(e,i)},p(s,o){o[1]&32768&&t!==(t=s[46]("forgotPasswordEmailError")+"")&&se(i,t)},d(s){s&&N(e)}}}function U_(r){let e,t,i=r[46](r[44])+"",s;return{c(){e=C("div"),t=C("span"),s=H(i),h(e,"class","dobFormatError")},m(o,n){M(o,e,n),m(e,t),m(t,s)},p(o,n){n[1]&40960&&i!==(i=o[46](o[44])+"")&&se(s,i)},d(o){o&&N(e)}}}function $_(r){let e,t,i=es(r[43]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Xn(Hn(r,i,o));return{c(){e=C("div");for(let o=0;o<s.length;o+=1)s[o].c();h(e,"class",t="DobContainer "+(r[26]?"Mobile":""))},m(o,n){M(o,e,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(e,null)},p(o,n){if(n[1]&8900608){i=es(o[43]);let a;for(a=0;a<i.length;a+=1){const l=Hn(o,i,a);s[a]?s[a].p(l,n):(s[a]=Xn(l),s[a].c(),s[a].m(e,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=i.length}n[0]&67108864&&t!==(t="DobContainer "+(o[26]?"Mobile":""))&&h(e,"class",t)},d(o){o&&N(e),ma(s,o)}}}function j_(r){let e,t,i,s,o;return{c(){e=C("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",t=r[46]("year")),O(e,"items",r[47]),O(e,"disabled",i=r[45].isYearDisabled)},m(n,a){M(n,e,a),s||(o=_e(e,"change",r[71]),s=!0)},p(n,a){a[1]&32768&&t!==(t=n[46]("year"))&&O(e,"label",t),a[1]&16384&&i!==(i=n[45].isYearDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function G_(r){let e,t,i,s,o;return{c(){e=C("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",t=r[46]("month")),O(e,"items",Object.keys(r[48])),O(e,"disabled",i=r[45].isMonthDisabled)},m(n,a){M(n,e,a),s||(o=_e(e,"change",r[70]),s=!0)},p(n,a){a[1]&32768&&t!==(t=n[46]("month"))&&O(e,"label",t),a[1]&16384&&i!==(i=n[45].isMonthDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function q_(r){let e,t,i,s,o;return{c(){e=C("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",t=r[46]("day")),O(e,"items",r[49]),O(e,"disabled",i=r[45].isDayDisabled)},m(n,a){M(n,e,a),s||(o=_e(e,"change",r[69]),s=!0)},p(n,a){a[1]&32768&&t!==(t=n[46]("day"))&&O(e,"label",t),a[1]&16384&&i!==(i=n[45].isDayDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function Xn(r){let e;function t(o,n){if(o[115]==="dd")return q_;if(o[115]==="mm")return G_;if(o[115]==="yyyy")return j_}let i=t(r),s=i&&i(r);return{c(){s&&s.c(),e=mr()},m(o,n){s&&s.m(o,n),M(o,e,n)},p(o,n){i===(i=t(o))&&s?s.p(o,n):(s&&s.d(1),s=i&&i(o),s&&(s.c(),s.m(e.parentNode,e)))},d(o){o&&N(e),s&&s.d(o)}}}function Zn(r){let e,t;const i=r[66].captchaContainer,s=na(i,r,r[65],Dn);return{c(){e=C("div"),s&&s.c(),h(e,"class","CaptchaWrapper")},m(o,n){M(o,e,n),s&&s.m(e,null),t=!0},p(o,n){s&&s.p&&(!t||n[2]&8)&&ua(s,i,o,o[65],t?la(i,o[65],n,A_):ca(o[65]),Dn)},i(o){t||(ce(s,o),t=!0)},o(o){ge(s,o),t=!1},d(o){o&&N(e),s&&s.d(o)}}}function W_(r){let e=r[46]("forgotPasswordReset")+"",t;return{c(){t=H(e)},m(i,s){M(i,t,s)},p(i,s){s[1]&32768&&e!==(e=i[46]("forgotPasswordReset")+"")&&se(t,e)},i:te,o:te,d(i){i&&N(t)}}}function Y_(r){let e,t,i;var s=nr;function o(n,a){return{}}return s&&(e=Ur(s,o())),{c(){e&&Wr(e.$$.fragment),t=mr()},m(n,a){e&&rr(e,n,a),M(n,t,a),i=!0},p(n,a){if(s!==(s=nr)){if(e){Xe();const l=e;ge(l.$$.fragment,1,0,()=>{ir(l,1)}),Ze()}s?(e=Ur(s,o()),Wr(e.$$.fragment),ce(e.$$.fragment,1),rr(e,t.parentNode,t)):e=null}},i(n){i||(e&&ce(e.$$.fragment,n),i=!0)},o(n){e&&ge(e.$$.fragment,n),i=!1},d(n){n&&N(t),e&&ir(e,n)}}}function X_(r){let e,t,i,s,o,n,a,l,u,c=r[1]&&zn(r);const d=[I_,T_],f=[];function p(_,g){return g[0]&327680&&(n=null),n==null&&(n=!!(_[18]&&!_[16])),n?0:1}return a=p(r,[-1,-1,-1,-1]),l=f[a]=d[a](r),{c(){c&&c.c(),e=mr(),t=j(),i=C("div"),s=j(),o=C("div"),l.c(),h(i,"class","g-recaptcha"),h(i,"data-sitekey",r[1]),h(o,"class","GeneralPlayerForgotPasswordForm")},m(_,g){c&&c.m(document.head,null),m(document.head,e),M(_,t,g),M(_,i,g),M(_,s,g),M(_,o,g),f[a].m(o,null),r[86](o),u=!0},p(_,g){_[1]?c?c.p(_,g):(c=zn(_),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null),(!u||g[0]&2)&&h(i,"data-sitekey",_[1]);let w=a;a=p(_,g),a===w?f[a].p(_,g):(Xe(),ge(f[w],1,1,()=>{f[w]=null}),Ze(),l=f[a],l?l.p(_,g):(l=f[a]=d[a](_),l.c()),ce(l,1),l.m(o,null))},i(_){u||(ce(l),u=!0)},o(_){ge(l),u=!1},d(_){_&&(N(t),N(i),N(s),N(o)),c&&c.d(_),N(e),f[a].d(),r[86](null)}}}function Z_(r,e,t){let i;oa(r,Ya,b=>t(46,i=b));let{$$slots:s={},$$scope:o}=e,{endpoint:n=""}=e,{forgotpasswordkey:a=""}=e,{captchakey:l=""}=e,{lang:u="en"}=e,{simplepasswordvalidation:c="false"}=e,{useregispasswordcheck:d="false"}=e,{mbsource:f}=e,{clientstyling:p=""}=e,{clientstylingurl:_=""}=e,{translationurl:g=""}=e,{savecredentials:w=""}=e,{hastosetpass:v="false"}=e,{passwordregex:y=""}=e,{dobformat:A=""}=e,{mindobyears:I=18}=e,{maxdobyears:x=100}=e,{resetviasms:T="false"}=e,{phoneregex:B=""}=e,{phoneprefixeditable:ae="false"}=e,{smscodemaxattempts:X="5"}=e,{smscodelength:pe="6"}=e,{smscodettl:Ee="5"}=e,{resenddelay:z="1"}=e,{turnstileSiteKey:G}=e,{cfCaptchaIsVisible:Oe="false"}=e,xe=!1,Le=!1,be=!0,le=!1,re=!1,oe="",K=!1,He=!1,me=!1,ne=!1,de=!1,q=window.navigator.userAgent,Ce="",Ae=!1,Q=sessionStorage.getItem("resetScreenWasSeen")==="true",L=!1,Be=!1,he,fe,E=!1,k=!1,V="",Te="",Ne=null,Ve=!1,P=0,R,Ht,yi,yr=!1,po,mo,ee,tu=Array.from({length:x-I+1},(b,D)=>new Date().getFullYear()-I-D),_o={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},ru=Array.from({length:31},(b,D)=>D+1),rt=[],go="",wi=!0,ke={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},iu=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],zt={dd:null,mm:null,yyyy:null},bo="";uh({withLocale:"en",translations:{}});const su=()=>{fetch(g).then(D=>D.json()).then(D=>{Object.keys(D).forEach(Y=>{Bi(Y,D[Y])})}).catch(D=>{console.log(D)})};Object.keys(Yo).forEach(b=>{Bi(b,Yo[b])});const wr={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},ou=()=>{t(28,de=A?!ne&&!wi:!ne)},nu=b=>!!(wr.email.test(b)&&b.length<=100),vo=()=>{t(27,ne=!nu(oe)),ou()},Ft=b=>{switch(b){case"userNewPassword":t(35,E=!E),t(33,he.type=E?"text":"password",he);break;case"userConfirmPassword":t(36,k=!k),t(34,fe.type=k?"text":"password",fe);break}},xr=b=>{switch(b){case"ToSMSReset":{t(19,Le=!0),t(21,le=!1),t(20,be=!1),t(22,re=!1);break}case"ToEmailSuccess":t(21,le=!1),t(20,be=!1),t(19,Le=!1),t(22,re=!0),window.postMessage({type:"resetPasswordLinkSent"},window.location.href);break;case"ToReset":t(20,be=Q),t(24,K=!Q),t(19,Le=!1),Q=!0,T!=="true"&&sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":t(24,K=!1),t(19,Le=!1),t(25,He=!0);break}},Pr=()=>{window.postMessage({type:"ToLogin"},window.location.href)};G&&(ee=P_({action:"resetPassword",siteKey:G}));const au=()=>new Promise((b,D)=>{grecaptcha.ready(()=>{grecaptcha.execute(l,{action:"submit"}).then(Y=>{b(Y)})})}),yo=b=>{b.preventDefault(),t(18,xe=!0),(G?ee.ensureToken:au)().then(Y=>{let ve=new URL(`${n}/v1/player/resetpassword`);const Ge=G?{[Mn]:Y,[Ln]:Oe}:{"g-recaptcha-response":Y};let Ci={method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"},Ge)};ve.searchParams.append("email",oe),A&&ve.searchParams.append("birthDate",bo),fetch(ve,Ci).then(qe=>xo(qe)).then(()=>{xr("ToEmailSuccess")}).catch(qe=>{t(21,le=!0),console.error("There was an error with the reset password request.",qe)}).finally(()=>{var qe;t(18,xe=!1),Q=!1,sessionStorage.setItem("resetScreenWasSeen","false"),G&&((qe=ee==null?void 0:ee.reset)==null||qe.call(ee))})}).catch(Y=>{t(21,le=!0),t(18,xe=!1),Q=!1,Y!==null&&console.error("There was an error with captcha",Y)})},lu=()=>{if(t(58,A=A.toLowerCase()),!iu.includes(A))return t(44,go="dobFormatError");t(43,rt=A.split("/")),t(45,ke.isDayDisabled=rt[0]!=="dd",ke),t(45,ke.isMonthDisabled=rt[0]!=="mm",ke),t(45,ke.isYearDisabled=rt[0]!=="yyyy",ke)},Er=(b,D)=>{zt[D]=b.target.value,wi=Object.values(zt).some(Y=>!Y),rt.forEach((Y,ve)=>{if(D===Y)switch(rt[ve+1]){case"dd":t(45,ke.isDayDisabled=!1,ke);case"mm":t(45,ke.isMonthDisabled=!1,ke);break;case"yyyy":t(45,ke.isYearDisabled=!1,ke);break}}),wi||(bo=`${zt.yyyy}-${_o[zt.mm]}-${zt.dd}`),vo()},wo=b=>Ue(this,null,function*(){var qe;if(b.preventDefault(),d==="true"&&Ve||(Ei(),!Ae))return;const D=P;t(18,xe=!0);let Y=new URL(`${n}/v1/player/ResetPasswordByHashKey`);const ve={};if(G)try{const Re=yield(qe=ee==null?void 0:ee.ensureToken)==null?void 0:qe.call(ee);ve[Mn]=Re,ve[Ln]=Oe}catch(Re){t(40,yr=!0),t(18,xe=!1),Re!==null&&(t(29,Ce=`${Re}`),console.error(Ce));return}if(D!==P){t(18,xe=!1);return}let Ge={hashKey:a,plainTextPassword:V};T==="true"&&(Ge.isUserHash=!0);let Ci={method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"},ve),body:JSON.stringify(Ge)};fetch(Y,Ci).then(Re=>xo(Re)).then(Re=>{t(40,yr=!1),xr("ToSuccess")}).catch(Re=>{t(40,yr=!0),console.error("There was an error with changing the password.",Re)}).finally(()=>{var Re;t(18,xe=!1),G&&((Re=ee==null?void 0:ee.reset)==null||Re.call(ee))})}),uu=()=>{a&&a.length>0&&xr("ToReset")},cu=()=>{T==="true"&&!a&&xr("ToSMSReset")},xi=()=>{!(d==="true"&&Ve)&&!L&&!Be&&V&&Te?t(30,Ae=!0):t(30,Ae=!1)},Vt=b=>{if(d==="true"){if(Ve)return!1;if(Ne)return Ne(b)}return c=="true"&&(wr.password=/^(?!.* ).{8,20}$/),!!wr.password.test(b)},Pi=(b,D,Y)=>{Y.id==="new-password"?(t(31,L=!Vt(D)),Te&&t(32,Be=V===Te?!Vt(D):!0)):t(32,Be=V===Te?!Vt(D):!0),xi()},Ei=()=>{V&&t(31,L=!Vt(V)),Te&&t(32,Be=V!==Te||!Vt(Te)),xi()},du=(b,D)=>Ue(this,null,function*(){const Y=++P;if(Ne=null,t(39,Ve=b==="true"),xi(),!Ve){Ei();return}try{const ve=yield lh(D);if(Y!==P||b!==d||D!==n)return;Ne=ve}catch(ve){}finally{Y===P&&b===d&&D===n&&(t(39,Ve=!1),Ei())}}),xo=b=>Ue(this,null,function*(){var Y,ve;let D;try{D=yield b.json()}catch(Ge){console.error("JSON Parse Error:",Ge)}if(b.status>=300){const Ge=((Y=D==null?void 0:D.thirdPartyResponse)==null?void 0:Y.errorCode)||"generalError";return t(29,Ce=i(Ge)),Ce===String(Ge)&&/^\d+$/.test(Ce)&&t(29,Ce=(ve=D==null?void 0:D.thirdPartyResponse)==null?void 0:ve.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:Ce}},window.location.href),Promise.reject(Ce)}return D}),hu=()=>{ch(u)},fu=()=>{t(41,po=i(v==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),t(42,mo=v==="true"?i("resetPasswordSubtitle"):"")},Po=b=>{!b||!b.data||b.data.type==="SwitchToResetPasswordScreen"&&t(57,a=b.data.key)};_a(()=>{var b,D;if(ah(q)&&t(26,me=!0),window.addEventListener("message",Po),G){const Y=(b=R.getRootNode())==null?void 0:b.host,ve=__(Y,E_);ve&&((D=ee==null?void 0:ee.render)==null||D.call(ee,ve))}return()=>{var Y;P++,window.removeEventListener("message",Po),yi&&yi.unsubscribe(),G&&((Y=ee==null?void 0:ee.cleanup)==null||Y.call(ee))}});const pu=()=>Pr();function mu(){oe=this.value,t(23,oe)}const _u=b=>Er(b,"dd"),gu=b=>Er(b,"mm"),bu=b=>Er(b,"yyyy"),vu=b=>yo(b),yu=()=>Pr();function wu(){V=this.value,t(37,V)}const xu=()=>Pi(L,V,he);function Pu(b){wt[b?"unshift":"push"](()=>{he=b,t(33,he)})}const Eu=()=>Ft("userNewPassword"),Cu=()=>Ft("userNewPassword");function Su(){Te=this.value,t(38,Te)}const Au=()=>Pi(Be,Te,fe);function Tu(b){wt[b?"unshift":"push"](()=>{fe=b,t(34,fe)})}const Iu=()=>Ft("userConfirmPassword"),Ou=()=>Ft("userConfirmPassword"),Nu=b=>wo(b),ku=()=>Pr();function Mu(b){wt[b?"unshift":"push"](()=>{R=b,t(17,R)})}return r.$$set=b=>{"endpoint"in b&&t(0,n=b.endpoint),"forgotpasswordkey"in b&&t(57,a=b.forgotpasswordkey),"captchakey"in b&&t(1,l=b.captchakey),"lang"in b&&t(2,u=b.lang),"simplepasswordvalidation"in b&&t(3,c=b.simplepasswordvalidation),"useregispasswordcheck"in b&&t(4,d=b.useregispasswordcheck),"mbsource"in b&&t(5,f=b.mbsource),"clientstyling"in b&&t(6,p=b.clientstyling),"clientstylingurl"in b&&t(7,_=b.clientstylingurl),"translationurl"in b&&t(8,g=b.translationurl),"savecredentials"in b&&t(9,w=b.savecredentials),"hastosetpass"in b&&t(59,v=b.hastosetpass),"passwordregex"in b&&t(60,y=b.passwordregex),"dobformat"in b&&t(58,A=b.dobformat),"mindobyears"in b&&t(61,I=b.mindobyears),"maxdobyears"in b&&t(62,x=b.maxdobyears),"resetviasms"in b&&t(63,T=b.resetviasms),"phoneregex"in b&&t(10,B=b.phoneregex),"phoneprefixeditable"in b&&t(11,ae=b.phoneprefixeditable),"smscodemaxattempts"in b&&t(12,X=b.smscodemaxattempts),"smscodelength"in b&&t(13,pe=b.smscodelength),"smscodettl"in b&&t(14,Ee=b.smscodettl),"resenddelay"in b&&t(15,z=b.resenddelay),"turnstileSiteKey"in b&&t(16,G=b.turnstileSiteKey),"cfCaptchaIsVisible"in b&&t(64,Oe=b.cfCaptchaIsVisible),"$$scope"in b&&t(65,o=b.$$scope)},r.$$.update=()=>{r.$$.dirty[1]&67108864|r.$$.dirty[2]&2&&T&&!a&&cu(),r.$$.dirty[1]&67108864&&a&&uu(),r.$$.dirty[0]&4&&u&&hu(),r.$$.dirty[0]&131136&&p&&R&&Xa(R,p),r.$$.dirty[0]&131200&&_&&R&&Za(R,_),r.$$.dirty[0]&131104&&f&&R&&Ja(R,`${f}.Style`,Ht),r.$$.dirty[0]&256&&g&&su(),r.$$.dirty[0]&4|r.$$.dirty[1]&268435456&&v&&u&&fu(),r.$$.dirty[1]&536870912&&y&&(wr.password=new RegExp(y)),r.$$.dirty[1]&134217728&&A&&lu(),r.$$.dirty[0]&17&&du(d,n),r.$$.dirty[0]&288&&f&&!g&&(yi=ba(`${f}.Translation`,void 0,Bi,!0))},[n,l,u,c,d,f,p,_,g,w,B,ae,X,pe,Ee,z,G,R,xe,Le,be,le,re,oe,K,He,me,ne,de,Ce,Ae,L,Be,he,fe,E,k,V,Te,Ve,yr,po,mo,rt,go,ke,i,tu,_o,ru,vo,Ft,Pr,yo,Er,wo,Pi,a,A,v,y,I,x,T,Oe,o,s,pu,mu,_u,gu,bu,vu,yu,wu,xu,Pu,Eu,Cu,Su,Au,Tu,Iu,Ou,Nu,ku,Mu]}class eu extends Us{constructor(e){super(),Fs(this,e,Z_,X_,ni,{endpoint:0,forgotpasswordkey:57,captchakey:1,lang:2,simplepasswordvalidation:3,useregispasswordcheck:4,mbsource:5,clientstyling:6,clientstylingurl:7,translationurl:8,savecredentials:9,hastosetpass:59,passwordregex:60,dobformat:58,mindobyears:61,maxdobyears:62,resetviasms:63,phoneregex:10,phoneprefixeditable:11,smscodemaxattempts:12,smscodelength:13,smscodettl:14,resenddelay:15,turnstileSiteKey:16,cfCaptchaIsVisible:64},C_,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),J()}get forgotpasswordkey(){return this.$$.ctx[57]}set forgotpasswordkey(e){this.$$set({forgotpasswordkey:e}),J()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),J()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),J()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),J()}get useregispasswordcheck(){return this.$$.ctx[4]}set useregispasswordcheck(e){this.$$set({useregispasswordcheck:e}),J()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),J()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),J()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),J()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),J()}get savecredentials(){return this.$$.ctx[9]}set savecredentials(e){this.$$set({savecredentials:e}),J()}get hastosetpass(){return this.$$.ctx[59]}set hastosetpass(e){this.$$set({hastosetpass:e}),J()}get passwordregex(){return this.$$.ctx[60]}set passwordregex(e){this.$$set({passwordregex:e}),J()}get dobformat(){return this.$$.ctx[58]}set dobformat(e){this.$$set({dobformat:e}),J()}get mindobyears(){return this.$$.ctx[61]}set mindobyears(e){this.$$set({mindobyears:e}),J()}get maxdobyears(){return this.$$.ctx[62]}set maxdobyears(e){this.$$set({maxdobyears:e}),J()}get resetviasms(){return this.$$.ctx[63]}set resetviasms(e){this.$$set({resetviasms:e}),J()}get phoneregex(){return this.$$.ctx[10]}set phoneregex(e){this.$$set({phoneregex:e}),J()}get phoneprefixeditable(){return this.$$.ctx[11]}set phoneprefixeditable(e){this.$$set({phoneprefixeditable:e}),J()}get smscodemaxattempts(){return this.$$.ctx[12]}set smscodemaxattempts(e){this.$$set({smscodemaxattempts:e}),J()}get smscodelength(){return this.$$.ctx[13]}set smscodelength(e){this.$$set({smscodelength:e}),J()}get smscodettl(){return this.$$.ctx[14]}set smscodettl(e){this.$$set({smscodettl:e}),J()}get resenddelay(){return this.$$.ctx[15]}set resenddelay(e){this.$$set({resenddelay:e}),J()}get turnstileSiteKey(){return this.$$.ctx[16]}set turnstileSiteKey(e){this.$$set({turnstileSiteKey:e}),J()}get cfCaptchaIsVisible(){return this.$$.ctx[64]}set cfCaptchaIsVisible(e){this.$$set({cfCaptchaIsVisible:e}),J()}}Vs(eu,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},useregispasswordcheck:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{},resetviasms:{},phoneregex:{},phoneprefixeditable:{},smscodemaxattempts:{},smscodelength:{},smscodettl:{},resenddelay:{},turnstileSiteKey:{},cfCaptchaIsVisible:{}},["captchaContainer"],[],!0);const J_=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=dt;exports.$format=Ya;exports.$locale=Je;exports.GeneralPlayerForgotPasswordFormNd_ce=J_;exports.SvelteComponent=Us;exports.addMessages=js;exports.add_render_callback=ut;exports.append=m;exports.append_styles=fa;exports.attr=h;exports.binding_callbacks=wt;exports.check_outros=Ze;exports.component_subscribe=oa;exports.create_bidirectional_transition=ic;exports.create_custom_element=Vs;exports.create_in_transition=tc;exports.create_out_transition=rc;exports.destroy_each=ma;exports.detach=N;exports.element=C;exports.ensure_array_like=es;exports.flush=J;exports.getStreamTranslations=ba;exports.group_outros=Xe;exports.identity=oi;exports.init=Fs;exports.insert=M;exports.listen=_e;exports.onMount=_a;exports.run_all=Fe;exports.safe_not_equal=ni;exports.setClientStyling=Xa;exports.setClientStylingURL=Za;exports.setStreamStyling=Ja;exports.set_custom_element_data=O;exports.set_data=se;exports.set_input_value=st;exports.space=j;exports.split_css_unit=Vu;exports.text=H;exports.toggle_class=ju;exports.transition_in=ce;exports.transition_out=ge;