@everymatrix/general-player-forgot-password-form-nd 1.94.21 → 1.94.23
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.
- package/components/{GeneralPlayerForgotPasswordFormNd-vHboKcRo.js → GeneralPlayerForgotPasswordFormNd-6VkSg6vF.js} +3108 -2846
- package/components/{GeneralPlayerForgotPasswordFormNd-BAnLT2lx.cjs → GeneralPlayerForgotPasswordFormNd-9bJr1hqg.cjs} +161 -161
- package/components/{GeneralPlayerForgotPasswordFormNd-BNHZGebC.js → GeneralPlayerForgotPasswordFormNd-D67_z7C4.js} +4812 -4532
- package/components/{GeneralPlayerForgotPasswordSmsForm-Dc-aW1Ro.js → GeneralPlayerForgotPasswordSmsForm-BmWaejpp.js} +1 -1
- package/components/{GeneralPlayerForgotPasswordSmsForm-DQs7ZL5h.js → GeneralPlayerForgotPasswordSmsForm-Bnh9kZlJ.js} +11 -11
- package/components/{GeneralPlayerForgotPasswordSmsForm-BOGivfUg.cjs → GeneralPlayerForgotPasswordSmsForm-CfaQEOJa.cjs} +1 -1
- package/es2015/general-player-forgot-password-form-nd.cjs +1 -1
- package/es2015/general-player-forgot-password-form-nd.js +1 -1
- package/esnext/general-player-forgot-password-form-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`;for(let
|
|
3
|
-
`}const u
|
|
4
|
-
}`,
|
|
1
|
+
"use strict";var cu=Object.defineProperty,hu=Object.defineProperties;var fu=Object.getOwnPropertyDescriptors;var to=Object.getOwnPropertySymbols;var pu=Object.prototype.hasOwnProperty,mu=Object.prototype.propertyIsEnumerable;var ni=(t,e,r)=>e in t?cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ve=(t,e)=>{for(var r in e||(e={}))pu.call(e,r)&&ni(t,r,e[r]);if(to)for(var r of to(e))mu.call(e,r)&&ni(t,r,e[r]);return t},dr=(t,e)=>hu(t,fu(e));var j=(t,e,r)=>(ni(t,typeof e!="symbol"?e+"":e,r),r);var Ue=(t,e,r)=>new Promise((i,s)=>{var o=l=>{try{a(r.next(l))}catch(u){s(u)}},n=l=>{try{a(r.throw(l))}catch(u){s(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,n);a((r=r.apply(t,e)).next())});function ye(){}const $r=t=>t;function _u(t,e){for(const r in e)t[r]=e[r];return t}function Mn(t){return t()}function ro(){return Object.create(null)}function Oe(t){t.forEach(Mn)}function We(t){return typeof t=="function"}function fs(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let cr;function io(t,e){return t===e?!0:(cr||(cr=document.createElement("a")),cr.href=e,t===cr.href)}function gu(t){return Object.keys(t).length===0}function Bn(t,...e){if(t==null){for(const i of e)i(void 0);return ye}const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function Rn(t,e,r){t.$$.on_destroy.push(Bn(e,r))}function bu(t,e,r,i){if(t){const s=Dn(t,e,r,i);return t[0](s)}}function Dn(t,e,r,i){return t[1]&&i?_u(r.ctx.slice(),t[1](i(e))):r.ctx}function vu(t,e,r,i){if(t[2]&&i){const s=t[2](i(r));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 yu(t,e,r,i,s,o){if(s){const n=Dn(e,r,i,o);t.p(n,s)}}function wu(t){if(t.ctx.length>32){const e=[],r=t.ctx.length/32;for(let i=0;i<r;i++)e[i]=-1;return e}return-1}function xu(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const Hn=typeof window!="undefined";let ps=Hn?()=>window.performance.now():()=>Date.now(),ms=Hn?t=>requestAnimationFrame(t):ye;const ct=new Set;function zn(t){ct.forEach(e=>{e.c(t)||(ct.delete(e),e.f())}),ct.size!==0&&ms(zn)}function _s(t){let e;return ct.size===0&&ms(zn),{promise:new Promise(r=>{ct.add(e={c:t,f:r})}),abort(){ct.delete(e)}}}function m(t,e){t.appendChild(e)}function Fn(t,e,r){const i=gs(t);if(!i.getElementById(e)){const s=P("style");s.id=e,s.textContent=r,Vn(i,s)}}function gs(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Pu(t){const e=P("style");return e.textContent="/* empty */",Vn(gs(t),e),e.sheet}function Vn(t,e){return m(t.head||t,e),e.sheet}function R(t,e,r){t.insertBefore(e,r||null)}function k(t){t.parentNode&&t.parentNode.removeChild(t)}function Un(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function P(t){return document.createElement(t)}function E(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function F(){return L(" ")}function bs(){return L("")}function ne(t,e,r,i){return t.addEventListener(e,r,i),()=>t.removeEventListener(e,r,i)}function h(t,e,r){r==null?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function A(t,e,r){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&r===""?!0:r:e in t?t[e]=typeof t[e]=="boolean"&&r===""?!0:r:h(t,e,r)}function Eu(t){return Array.from(t.childNodes)}function J(t,e){e=""+e,t.data!==e&&(t.data=e)}function Xe(t,e){t.value=e==null?"":e}function Cu(t,e,r){t.classList.toggle(e,!!r)}function Su(t,e,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:r,cancelable:i})}function Au(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}const Ar=new Map;let Tr=0;function Tu(t){let e=5381,r=t.length;for(;r--;)e=(e<<5)-e^t.charCodeAt(r);return e>>>0}function Iu(t,e){const r={stylesheet:Pu(e),rules:{}};return Ar.set(t,r),r}function Ir(t,e,r,i,s,o,n,a=0){const l=16.666/i;let u=`{
|
|
2
|
+
`;for(let w=0;w<=1;w+=l){const y=e+(r-e)*o(w);u+=w*100+`%{${n(y,1-y)}}
|
|
3
|
+
`}const d=u+`100% {${n(r,1-r)}}
|
|
4
|
+
}`,c=`__svelte_${Tu(d)}_${a}`,f=gs(t),{stylesheet:p,rules:_}=Ar.get(f)||Iu(f,t);_[c]||(_[c]=!0,p.insertRule(`@keyframes ${c} ${d}`,p.cssRules.length));const b=t.style.animation||"";return t.style.animation=`${b?`${b}, `:""}${c} ${i}ms linear ${s}ms 1 both`,Tr+=1,c}function Or(t,e){const r=(t.style.animation||"").split(", "),i=r.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),s=r.length-i.length;s&&(t.style.animation=i.join(", "),Tr-=s,Tr||Ou())}function Ou(){ms(()=>{Tr||(Ar.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&k(e)}),Ar.clear())})}let jt;function Ft(t){jt=t}function Nu(){if(!jt)throw new Error("Function called outside component initialization");return jt}function $n(t){Nu().$$.on_mount.push(t)}const lt=[],ht=[];let ft=[];const so=[],ku=Promise.resolve();let ki=!1;function Lu(){ki||(ki=!0,ku.then(Y))}function et(t){ft.push(t)}const ai=new Set;let ot=0;function Y(){if(ot!==0)return;const t=jt;do{try{for(;ot<lt.length;){const e=lt[ot];ot++,Ft(e),Mu(e.$$)}}catch(e){throw lt.length=0,ot=0,e}for(Ft(null),lt.length=0,ot=0;ht.length;)ht.pop()();for(let e=0;e<ft.length;e+=1){const r=ft[e];ai.has(r)||(ai.add(r),r())}ft.length=0}while(lt.length);for(;so.length;)so.pop()();ki=!1,ai.clear(),Ft(t)}function Mu(t){if(t.fragment!==null){t.update(),Oe(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(et)}}function Bu(t){const e=[],r=[];ft.forEach(i=>t.indexOf(i)===-1?e.push(i):r.push(i)),r.forEach(i=>i()),ft=e}let Nt;function vs(){return Nt||(Nt=Promise.resolve(),Nt.then(()=>{Nt=null})),Nt}function Je(t,e,r){t.dispatchEvent(Su(`${e?"intro":"outro"}${r}`))}const vr=new Set;let Re;function jn(){Re={r:0,c:[],p:Re}}function Gn(){Re.r||Oe(Re.c),Re=Re.p}function pt(t,e){t&&t.i&&(vr.delete(t),t.i(e))}function Nr(t,e,r,i){if(t&&t.o){if(vr.has(t))return;vr.add(t),Re.c.push(()=>{vr.delete(t),i&&(r&&t.d(1),i())}),t.o(e)}else i&&i()}const ys={duration:0};function Ru(t,e,r){const i={direction:"in"};let s=e(t,r,i),o=!1,n,a,l=0;function u(){n&&Or(t,n)}function d(){const{delay:f=0,duration:p=300,easing:_=$r,tick:b=ye,css:w}=s||ys;w&&(n=Ir(t,0,1,p,f,_,w,l++)),b(0,1);const y=ps()+f,v=y+p;a&&a.abort(),o=!0,et(()=>Je(t,!0,"start")),a=_s(C=>{if(o){if(C>=v)return b(1,0),Je(t,!0,"end"),u(),o=!1;if(C>=y){const T=_((C-y)/p);b(T,1-T)}}return o})}let c=!1;return{start(){c||(c=!0,Or(t),We(s)?(s=s(i),vs().then(d)):d())},invalidate(){c=!1},end(){o&&(u(),o=!1)}}}function Du(t,e,r){const i={direction:"out"};let s=e(t,r,i),o=!0,n;const a=Re;a.r+=1;let l;function u(){const{delay:d=0,duration:c=300,easing:f=$r,tick:p=ye,css:_}=s||ys;_&&(n=Ir(t,1,0,c,d,f,_));const b=ps()+d,w=b+c;et(()=>Je(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),_s(y=>{if(o){if(y>=w)return p(0,1),Je(t,!1,"end"),--a.r||Oe(a.c),!1;if(y>=b){const v=f((y-b)/c);p(1-v,v)}}return o})}return We(s)?vs().then(()=>{s=s(i),u()}):u(),{end(d){d&&"inert"in t&&(t.inert=l),d&&s.tick&&s.tick(1,0),o&&(n&&Or(t,n),o=!1)}}}function Hu(t,e,r,i){let o=e(t,r,{direction:"both"}),n=i?0:1,a=null,l=null,u=null,d;function c(){u&&Or(t,u)}function f(_,b){const w=_.b-n;return b*=Math.abs(w),{a:n,b:_.b,d:w,duration:b,start:_.start,end:_.start+b,group:_.group}}function p(_){const{delay:b=0,duration:w=300,easing:y=$r,tick:v=ye,css:C}=o||ys,T={start:ps()+b,b:_};_||(T.group=Re,Re.r+=1),"inert"in t&&(_?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),a||l?l=T:(C&&(c(),u=Ir(t,n,_,w,b,y,C)),_&&v(0,1),a=f(T,w),et(()=>Je(t,_,"start")),_s(x=>{if(l&&x>l.start&&(a=f(l,w),l=null,Je(t,a.b,"start"),C&&(c(),u=Ir(t,n,a.b,a.duration,0,y,o.css))),a){if(x>=a.end)v(n=a.b,1-n),Je(t,a.b,"end"),l||(a.b?c():--a.group.r||Oe(a.group.c)),a=null;else if(x>=a.start){const O=x-a.start;n=a.a+a.d*y(O/a.duration),v(n,1-n)}}return!!(a||l)}))}return{run(_){We(o)?vs().then(()=>{o=o({direction:_?"in":"out"}),p(_)}):p(_)},end(){c(),a=l=null}}}function Li(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function zu(t,e,r){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,r),et(()=>{const o=t.$$.on_mount.map(Mn).filter(We);t.$$.on_destroy?t.$$.on_destroy.push(...o):Oe(o),t.$$.on_mount=[]}),s.forEach(et)}function Fu(t,e){const r=t.$$;r.fragment!==null&&(Bu(r.after_update),Oe(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function Vu(t,e){t.$$.dirty[0]===-1&&(lt.push(t),Lu(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Wn(t,e,r,i,s,o,n=null,a=[-1]){const l=jt;Ft(t);const u=t.$$={fragment:null,ctx:[],props:o,update:ye,not_equal:s,bound:ro(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ro(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(u.root);let d=!1;if(u.ctx=r?r(t,e.props||{},(c,f,...p)=>{const _=p.length?p[0]:f;return u.ctx&&s(u.ctx[c],u.ctx[c]=_)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](_),d&&Vu(t,c)),f}):[],u.update(),d=!0,Oe(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const c=Eu(e.target);u.fragment&&u.fragment.l(c),c.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&pt(t.$$.fragment),zu(t,e.target,e.anchor),Y()}Ft(l)}let qn;typeof HTMLElement=="function"&&(qn=class extends HTMLElement{constructor(e,r,i){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(e,r,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const s=this.$$c.$on(e,r);this.$$l_u.set(r,s)}super.addEventListener(e,r,i)}removeEventListener(e,r,i){if(super.removeEventListener(e,r,i),this.$$c){const s=this.$$l_u.get(r);s&&(s(),this.$$l_u.delete(r))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let n;return{c:function(){n=P("slot"),o!=="default"&&h(n,"name",o)},m:function(u,d){R(u,n,d)},d:function(u){u&&k(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Au(this);for(const o of this.$$s)o in i&&(r[o]=[e(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=yr(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:dr(Ve({},this.$$d),{$$slots:r,$$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=yr(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,r,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=yr(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(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function yr(t,e,r,i){var o;const s=(o=r[t])==null?void 0:o.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!r[t])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 Yn(t,e,r,i,s,o){let n=class extends qn{constructor(){super(t,r,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=yr(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]}})}),t.element=n,n}class Xn{constructor(){j(this,"$$");j(this,"$$set")}$destroy(){Fu(this,1),this.$destroy=ye}$on(e,r){if(!We(r))return ye;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(r),()=>{const s=i.indexOf(r);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!gu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Uu="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Uu);/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
7
7
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -14,55 +14,55 @@ 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
|
|
18
|
-
`+
|
|
19
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function Oi(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var Dr=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=Ai(n),l=a.next();!l.done;l=a.next()){var d=l.value;d.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 u=this.initialTeardown;if(Be(u))try{u()}catch(g){o=g instanceof ei?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=Ai(h),m=f.next();!m.done;m=f.next()){var _=m.value;try{Js(_)}catch(g){o=o!=null?o:[],g instanceof ei?o=Ii(Ii([],Ti(o)),Ti(g.errors)):o.push(g)}}}catch(g){i={error:g}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new ei(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Js(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)&&Oi(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Oi(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),Rn=Dr.EMPTY;function Dn(r){return r instanceof Dr||r&&"closed"in r&&Be(r.remove)&&Be(r.add)&&Be(r.unsubscribe)}function Js(r){Be(r)?r():r.unsubscribe()}var Cd={Promise:void 0},Sd={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,Ii([r,e],Ti(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function Ad(r){Sd.setTimeout(function(){throw r})}function Ks(){}function mr(r){r()}var Hn=function(r){Xt(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,Dn(t)&&t.add(i)):i.destination=Od,i}return e.create=function(t,i,s){return new Ni(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}(Dr),Td=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){nr(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){nr(i)}else nr(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){nr(t)}},r}(),Ni=function(r){Xt(e,r);function e(t,i,s){var o=r.call(this)||this,n;return Be(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 Td(n),o}return e}(Hn);function nr(r){Ad(r)}function Id(r){throw r}var Od={closed:!0,next:Ks,error:Id,complete:Ks},Nd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function kd(r){return r}function Md(r){return r.length===0?kd:r.length===1?r[0]:function(t){return r.reduce(function(i,s){return s(i)},t)}}var Qs=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=Bd(e)?e:new Ni(e,t,i);return mr(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=eo(t),new t(function(s,o){var n=new Ni({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[Nd]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Md(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=eo(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 eo(r){var e;return(e=r!=null?r:Cd.Promise)!==null&&e!==void 0?e:Promise}function Ld(r){return r&&Be(r.next)&&Be(r.error)&&Be(r.complete)}function Bd(r){return r&&r instanceof Hn||Ld(r)&&Dn(r)}var Rd=Bn(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),zn=function(r){Xt(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 to(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new Rd},e.prototype.next=function(t){var i=this;mr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Ai(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(t)}}catch(d){s={error:d}}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;mr(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;mr(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?Rn:(this.currentObservers=null,a.push(t),new Dr(function(){i.currentObservers=null,Oi(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 Qs;return t.source=this,t},e.create=function(t,i){return new to(t,i)},e}(Qs),to=function(r){Xt(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:Rn},e}(zn),Fn={now:function(){return(Fn.delegate||Date).now()},delegate:void 0},Dd=function(r){Xt(e,r);function e(t,i,s){t===void 0&&(t=1/0),i===void 0&&(i=1/0),s===void 0&&(s=Fn);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(),d=0,u=1;u<o.length&&o[u]<=l;u+=2)d=u;d&&o.splice(0,d+1)}},e}(zn);const ro=[],io={},Hd=(r,e=0)=>{if(ro.indexOf(r)==-1){const t=new Dd(e);io[r]=t,ro.push(r)}return io[r]},rt=[];function zd(r,e){return{subscribe:Hr(r,e).subscribe}}function Hr(r,e=ue){let t;const i=new Set;function s(a){if(os(r,a)&&(r=a,t)){const l=!rt.length;for(const d of i)d[1](),rt.push(d,r);if(l){for(let d=0;d<rt.length;d+=2)rt[d][0](rt[d+1]);rt.length=0}}}function o(a){s(a(r))}function n(a,l=ue){const d=[a,l];return i.add(d),i.size===1&&(t=e(s,o)||ue),a(r),()=>{i.delete(d),i.size===0&&t&&(t(),t=null)}}return{set:s,update:o,subscribe:n}}function yt(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 zd(t,(n,a)=>{let l=!1;const d=[];let u=0,h=ue;const f=()=>{if(u)return;h();const _=e(i?d[0]:d,n,a);o?n(_):h=Ve(_)?_:ue},m=s.map((_,g)=>xn(_,v=>{d[g]=v,u&=~(1<<g),l&&f()},()=>{u|=1<<g}));return l=!0,f(),function(){Ae(m),h(),l=!1}})}function Fd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Vd=function(e){return Ud(e)&&!$d(e)};function Ud(r){return!!r&&typeof r=="object"}function $d(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||qd(r)}var jd=typeof Symbol=="function"&&Symbol.for,Gd=jd?Symbol.for("react.element"):60103;function qd(r){return r.$$typeof===Gd}function Wd(r){return Array.isArray(r)?[]:{}}function Ft(r,e){return e.clone!==!1&&e.isMergeableObject(r)?ft(Wd(r),r,e):r}function Yd(r,e,t){return r.concat(e).map(function(i){return Ft(i,t)})}function Zd(r,e){if(!e.customMerge)return ft;var t=e.customMerge(r);return typeof t=="function"?t:ft}function Xd(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function so(r){return Object.keys(r).concat(Xd(r))}function Vn(r,e){try{return e in r}catch(t){return!1}}function Jd(r,e){return Vn(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function Kd(r,e,t){var i={};return t.isMergeableObject(r)&&so(r).forEach(function(s){i[s]=Ft(r[s],t)}),so(e).forEach(function(s){Jd(r,s)||(Vn(r,s)&&t.isMergeableObject(e[s])?i[s]=Zd(s,t)(r[s],e[s],t):i[s]=Ft(e[s],t))}),i}function ft(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Yd,t.isMergeableObject=t.isMergeableObject||Vd,t.cloneUnlessOtherwiseSpecified=Ft;var i=Array.isArray(e),s=Array.isArray(r),o=i===s;return o?i?t.arrayMerge(r,e,t):Kd(r,e,t):Ft(e,t)}ft.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,s){return ft(i,s,t)},{})};var Qd=ft,eu=Qd;const tu=Fd(eu);var ki=function(r,e){return ki=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])},ki(r,e)};function zr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ki(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ie=function(){return Ie=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},Ie.apply(this,arguments)};function ru(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 ri(r,e){var t=e&&e.cache?e.cache:du,i=e&&e.serializer?e.serializer:au,s=e&&e.strategy?e.strategy:ou;return s(r,{cache:t,serializer:i})}function iu(r){return r==null||typeof r=="number"||typeof r=="boolean"}function su(r,e,t,i){var s=iu(i)?i:t(i),o=e.get(s);return typeof o=="undefined"&&(o=r.call(this,i),e.set(s,o)),o}function Un(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 $n(r,e,t,i,s){return t.bind(e,r,i,s)}function ou(r,e){var t=r.length===1?su:Un;return $n(r,this,t,e.cache.create(),e.serializer)}function nu(r,e){return $n(r,this,Un,e.cache.create(),e.serializer)}var au=function(){return JSON.stringify(arguments)},lu=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}(),du={create:function(){return new lu}},ii={variadic:nu},Cr=function(){return Cr=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},Cr.apply(this,arguments)};var k;(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"})(k||(k={}));var Z;(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"})(Z||(Z={}));var pt;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(pt||(pt={}));function oo(r){return r.type===Z.literal}function uu(r){return r.type===Z.argument}function jn(r){return r.type===Z.number}function Gn(r){return r.type===Z.date}function qn(r){return r.type===Z.time}function Wn(r){return r.type===Z.select}function Yn(r){return r.type===Z.plural}function hu(r){return r.type===Z.pound}function Zn(r){return r.type===Z.tag}function Xn(r){return!!(r&&typeof r=="object"&&r.type===pt.number)}function Mi(r){return!!(r&&typeof r=="object"&&r.type===pt.dateTime)}var Jn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,cu=/(?:[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 fu(r){var e={};return r.replace(cu,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 ee=function(){return ee=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},ee.apply(this,arguments)};var pu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function mu(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(pu).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),d=0,u=l;d<u.length;d++){var h=u[d];if(h.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function _u(r){return r.replace(/^(.*?)-/,"")}var no=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Kn=/^(@+)?(\+|#+)?[rs]?$/g,gu=/(\*)(0+)|(#+)(0+)|(0+)/g,Qn=/^(0+)$/;function ao(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Kn,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 ea(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 bu(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)),!Qn.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function lo(r){var e={},t=ea(r);return t||e}function vu(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=_u(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=ee(ee(ee({},e),{notation:"scientific"}),s.options.reduce(function(l,d){return ee(ee({},l),lo(d))},{}));continue;case"engineering":e=ee(ee(ee({},e),{notation:"engineering"}),s.options.reduce(function(l,d){return ee(ee({},l),lo(d))},{}));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(gu,function(l,d,u,h,f,m){if(d)e.minimumIntegerDigits=u.length;else{if(h&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Qn.test(s.stem)){e.minimumIntegerDigits=s.stem.length;continue}if(no.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(no,function(l,d,u,h,f,m){return u==="*"?e.minimumFractionDigits=d.length:h&&h[0]==="#"?e.maximumFractionDigits=h.length:f&&m?(e.minimumFractionDigits=f.length,e.maximumFractionDigits=f.length+m.length):(e.minimumFractionDigits=d.length,e.maximumFractionDigits=d.length),""});var o=s.options[0];o==="w"?e=ee(ee({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=ee(ee({},e),ao(o)));continue}if(Kn.test(s.stem)){e=ee(ee({},e),ao(s.stem));continue}var n=ea(s.stem);n&&(e=ee(ee({},e),n));var a=bu(s.stem);a&&(e=ee(ee({},e),a))}return e}var ar={"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 yu(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",d=wu(e);for((d=="H"||d=="k")&&(a=0);a-- >0;)t+=l;for(;n-- >0;)t=d+t}else s==="J"?t+="H":t+=s}return t}function wu(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=ar[i||""]||ar[t||""]||ar["".concat(t,"-001")]||ar["001"];return s[0]}var si,xu=new RegExp("^".concat(Jn.source,"*")),Pu=new RegExp("".concat(Jn.source,"*$"));function L(r,e){return{start:r,end:e}}var Eu=!!String.prototype.startsWith&&"_a".startsWith("a",1),Cu=!!String.fromCodePoint,Su=!!Object.fromEntries,Au=!!String.prototype.codePointAt,Tu=!!String.prototype.trimStart,Iu=!!String.prototype.trimEnd,Ou=!!Number.isSafeInteger,Nu=Ou?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},Li=!0;try{var ku=ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Li=((si=ku.exec("a"))===null||si===void 0?void 0:si[0])==="a"}catch(r){Li=!1}var uo=Eu?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Bi=Cu?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},ho=Su?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},ta=Au?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}},Mu=Tu?function(e){return e.trimStart()}:function(e){return e.replace(xu,"")},Lu=Iu?function(e){return e.trimEnd()}:function(e){return e.replace(Pu,"")};function ra(r,e){return new RegExp(r,e)}var Ri;if(Li){var co=ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ri=function(e,t){var i;co.lastIndex=t;var s=co.exec(e);return(i=s[1])!==null&&i!==void 0?i:""}}else Ri=function(e,t){for(var i=[];;){var s=ta(e,t);if(s===void 0||ia(s)||Hu(s))break;i.push(s),t+=s>=65536?2:1}return Bi.apply(void 0,i)};var Bu=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:Z.pound,location:L(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(k.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Di(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:Z.literal,value:"<".concat(s,"/>"),location:L(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()||!Di(this.char()))return this.error(k.INVALID_TAG,L(a,this.clonePosition()));var l=this.clonePosition(),d=this.parseTagName();return s!==d?this.error(k.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Z.tag,value:s,children:n,location:L(i,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,L(a,this.clonePosition())))}else return this.error(k.UNCLOSED_TAG,L(i,this.clonePosition()))}else return this.error(k.INVALID_TAG,L(i,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Du(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=L(i,this.clonePosition());return{val:{type:Z.literal,value:s,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ru(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 Bi.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(),Bi(i))},r.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(k.EMPTY_ARGUMENT,L(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(k.MALFORMED_ARGUMENT,L(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Z.argument,value:s,location:L(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(i,this.clonePosition())):this.parseArgumentOptions(e,t,s,i);default:return this.error(k.MALFORMED_ARGUMENT,L(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Ri(this.message,t),s=t+i.length;this.bumpTo(s);var o=this.clonePosition(),n=L(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(k.EXPECT_ARGUMENT_TYPE,L(n,l));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var f=Lu(h.val);if(f.length===0)return this.error(k.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));var m=L(u,this.clonePosition());d={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=L(s,this.clonePosition());if(d&&uo(d==null?void 0:d.style,"::",0)){var v=Mu(d.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(v,d.styleLocation);return h.err?h:{val:{type:Z.number,value:i,location:g,style:h.val},err:null}}else{if(v.length===0)return this.error(k.EXPECT_DATE_TIME_SKELETON,g);var w=v;this.locale&&(w=yu(v,this.locale));var f={type:pt.dateTime,pattern:w,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?fu(w):{}},y=a==="date"?Z.date:Z.time;return{val:{type:y,value:i,location:g,style:f},err:null}}}return{val:{type:a==="number"?Z.number:a==="date"?Z.date:Z.time,value:i,location:g,style:(o=d==null?void 0:d.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,L(E,Cr({},E)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),C=0;if(a!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),T=this.parseIdentifierIfPossible(),C=h.val}var j=this.tryParsePluralOrSelectOptions(e,a,t,T);if(j.err)return j;var _=this.tryParseArgumentClose(s);if(_.err)return _;var F=L(s,this.clonePosition());return a==="select"?{val:{type:Z.select,value:i,options:ho(j.val),location:F},err:null}:{val:{type:Z.plural,value:i,options:ho(j.val),offset:C,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(k.INVALID_ARGUMENT_TYPE,L(n,l))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(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(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(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=mu(e)}catch(s){return this.error(k.INVALID_NUMBER_SKELETON,t)}return{val:{type:pt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?vu(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,i,s){for(var o,n=!1,a=[],l=new Set,d=s.value,u=s.location;;){if(d.length===0){var h=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=L(h,this.clonePosition()),d=this.message.slice(h.offset,this.offset())}else break}if(l.has(d))return this.error(t==="select"?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);d==="other"&&(n=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,i);if(_.err)return _;var g=this.tryParseArgumentClose(m);if(g.err)return g;a.push([d,{value:_.val,location:L(m,this.clonePosition())}]),l.add(d),this.bumpSpace(),o=this.parseIdentifierIfPossible(),d=o.value,u=o.location}return a.length===0?this.error(t==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(k.MISSING_OTHER_CLAUSE,L(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=L(s,this.clonePosition());return o?(n*=i,Nu(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=ta(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(uo(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()&&ia(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 Di(r){return r>=97&&r<=122||r>=65&&r<=90}function Ru(r){return Di(r)||r===47}function Du(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 ia(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function Hu(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 Hi(r){r.forEach(function(e){if(delete e.location,Wn(e)||Yn(e))for(var t in e.options)delete e.options[t].location,Hi(e.options[t].value);else jn(e)&&Xn(e.style)||(Gn(e)||qn(e))&&Mi(e.style)?delete e.style.location:Zn(e)&&Hi(e.children)})}function zu(r,e){e===void 0&&(e={}),e=Cr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Bu(r,e).parse();if(t.err){var i=SyntaxError(k[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return e!=null&&e.captureLocation||Hi(t.val),t.val}var mt;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(mt||(mt={}));var Fr=function(r){zr(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),fo=function(r){zr(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('", "'),'"'),mt.INVALID_VALUE,o)||this}return e}(Fr),Fu=function(r){zr(e,r);function e(t,i,s){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),mt.INVALID_VALUE,s)||this}return e}(Fr),Vu=function(r){zr(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,'"'),mt.MISSING_VALUE,i)||this}return e}(Fr),pe;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(pe||(pe={}));function Uu(r){return r.length<2?r:r.reduce(function(e,t){var i=e[e.length-1];return!i||i.type!==pe.literal||t.type!==pe.literal?e.push(t):i.value+=t.value,e},[])}function $u(r){return typeof r=="function"}function _r(r,e,t,i,s,o,n){if(r.length===1&&oo(r[0]))return[{type:pe.literal,value:r[0].value}];for(var a=[],l=0,d=r;l<d.length;l++){var u=d[l];if(oo(u)){a.push({type:pe.literal,value:u.value});continue}if(hu(u)){typeof o=="number"&&a.push({type:pe.literal,value:t.getNumberFormat(e).format(o)});continue}var h=u.value;if(!(s&&h in s))throw new Vu(h,n);var f=s[h];if(uu(u)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?pe.literal:pe.object,value:f});continue}if(Gn(u)){var m=typeof u.style=="string"?i.date[u.style]:Mi(u.style)?u.style.parsedOptions:void 0;a.push({type:pe.literal,value:t.getDateTimeFormat(e,m).format(f)});continue}if(qn(u)){var m=typeof u.style=="string"?i.time[u.style]:Mi(u.style)?u.style.parsedOptions:i.time.medium;a.push({type:pe.literal,value:t.getDateTimeFormat(e,m).format(f)});continue}if(jn(u)){var m=typeof u.style=="string"?i.number[u.style]:Xn(u.style)?u.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:pe.literal,value:t.getNumberFormat(e,m).format(f)});continue}if(Zn(u)){var _=u.children,g=u.value,v=s[g];if(!$u(v))throw new Fu(g,"function",n);var w=_r(_,e,t,i,s,o),y=v(w.map(function(C){return C.value}));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map(function(C){return{type:typeof C=="string"?pe.literal:pe.object,value:C}}))}if(Wn(u)){var E=u.options[f]||u.options.other;if(!E)throw new fo(u.value,f,Object.keys(u.options),n);a.push.apply(a,_r(E.value,e,t,i,s));continue}if(Yn(u)){var E=u.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new Fr(`Intl.PluralRules is not available in this environment.
|
|
17
|
+
***************************************************************************** */var Mi=function(t,e){return Mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Mi(t,e)};function tr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Mi(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Bi(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ri(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),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&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}function Di(t,e,r){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 t.concat(o||e)}function He(t){return typeof t=="function"}function Zn(t){var e=function(i){Error.call(i),i.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var li=Zn(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
18
|
+
`+r.map(function(i,s){return s+1+") "+i.toString()}).join(`
|
|
19
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Hi(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var jr=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,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=Bi(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(b){e={error:b}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else n.remove(this);var d=this.initialTeardown;if(He(d))try{d()}catch(b){o=b instanceof li?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=Bi(c),p=f.next();!p.done;p=f.next()){var _=p.value;try{oo(_)}catch(b){o=o!=null?o:[],b instanceof li?o=Di(Di([],Ri(o)),Ri(b.errors)):o.push(b)}}}catch(b){i={error:b}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new li(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)oo(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Hi(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Hi(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Jn=jr.EMPTY;function Kn(t){return t instanceof jr||t&&"closed"in t&&He(t.remove)&&He(t.add)&&He(t.unsubscribe)}function oo(t){He(t)?t():t.unsubscribe()}var $u={Promise:void 0},ju={setTimeout:function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Di([t,e],Ri(r)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Gu(t){ju.setTimeout(function(){throw t})}function no(){}function wr(t){t()}var Qn=function(t){tr(e,t);function e(r){var i=t.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Kn(r)&&r.add(i)):i.destination=Yu,i}return e.create=function(r,i,s){return new zi(r,i,s)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(jr),Wu=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(i){hr(i)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(i){hr(i)}else hr(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){hr(r)}},t}(),zi=function(t){tr(e,t);function e(r,i,s){var o=t.call(this)||this,n;return He(r)||!r?n={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:s!=null?s:void 0}:n=r,o.destination=new Wu(n),o}return e}(Qn);function hr(t){Gu(t)}function qu(t){throw t}var Yu={closed:!0,next:no,error:qu,complete:no},Xu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Zu(t){return t}function Ju(t){return t.length===0?Zu:t.length===1?t[0]:function(r){return t.reduce(function(i,s){return s(i)},r)}}var ao=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,i){var s=this,o=Qu(e)?e:new zi(e,r,i);return wr(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var i=this;return r=lo(r),new r(function(s,o){var n=new zi({next:function(a){try{e(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[Xu]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ju(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=lo(e),new e(function(i,s){var o;r.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},t.create=function(e){return new t(e)},t}();function lo(t){var e;return(e=t!=null?t:$u.Promise)!==null&&e!==void 0?e:Promise}function Ku(t){return t&&He(t.next)&&He(t.error)&&He(t.complete)}function Qu(t){return t&&t instanceof Qn||Ku(t)&&Kn(t)}var ed=Zn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ea=function(t){tr(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var i=new uo(this,this);return i.operator=r,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new ed},e.prototype.next=function(r){var i=this;wr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Bi(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(r)}}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(r){var i=this;wr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var s=i.observers;s.length;)s.shift().error(r)}})},e.prototype.complete=function(){var r=this;wr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.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 r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var i=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?Jn:(this.currentObservers=null,a.push(r),new jr(function(){i.currentObservers=null,Hi(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,o=i.thrownError,n=i.isStopped;s?r.error(o):n&&r.complete()},e.prototype.asObservable=function(){var r=new ao;return r.source=this,r},e.create=function(r,i){return new uo(r,i)},e}(ao),uo=function(t){tr(e,t);function e(r,i){var s=t.call(this)||this;return s.destination=r,s.source=i,s}return e.prototype.next=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,r)},e.prototype.error=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,r)},e.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},e.prototype._subscribe=function(r){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&s!==void 0?s:Jn},e}(ea),ta={now:function(){return(ta.delegate||Date).now()},delegate:void 0},td=function(t){tr(e,t);function e(r,i,s){r===void 0&&(r=1/0),i===void 0&&(i=1/0),s===void 0&&(s=ta);var o=t.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return e.prototype.next=function(r){var i=this,s=i.isStopped,o=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;s||(o.push(r),!n&&o.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},e.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,s=r._timestampProvider,o=r._buffer,n=r._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,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},e}(ea);const co=[],ho={},rd=(t,e=0)=>{if(co.indexOf(t)==-1){const r=new td(e);ho[t]=r,co.push(t)}return ho[t]},nt=[];function id(t,e){return{subscribe:Gr(t,e).subscribe}}function Gr(t,e=ye){let r;const i=new Set;function s(a){if(fs(t,a)&&(t=a,r)){const l=!nt.length;for(const u of i)u[1](),nt.push(u,t);if(l){for(let u=0;u<nt.length;u+=2)nt[u][0](nt[u+1]);nt.length=0}}}function o(a){s(a(t))}function n(a,l=ye){const u=[a,l];return i.add(u),i.size===1&&(r=e(s,o)||ye),a(t),()=>{i.delete(u),i.size===0&&r&&(r(),r=null)}}return{set:s,update:o,subscribe:n}}function Ct(t,e,r){const i=!Array.isArray(t),s=i?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return id(r,(n,a)=>{let l=!1;const u=[];let d=0,c=ye;const f=()=>{if(d)return;c();const _=e(i?u[0]:u,n,a);o?n(_):c=We(_)?_:ye},p=s.map((_,b)=>Bn(_,w=>{u[b]=w,d&=~(1<<b),l&&f()},()=>{d|=1<<b}));return l=!0,f(),function(){Oe(p),c(),l=!1}})}function sd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var od=function(e){return nd(e)&&!ad(e)};function nd(t){return!!t&&typeof t=="object"}function ad(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||dd(t)}var ld=typeof Symbol=="function"&&Symbol.for,ud=ld?Symbol.for("react.element"):60103;function dd(t){return t.$$typeof===ud}function cd(t){return Array.isArray(t)?[]:{}}function Gt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?bt(cd(t),t,e):t}function hd(t,e,r){return t.concat(e).map(function(i){return Gt(i,r)})}function fd(t,e){if(!e.customMerge)return bt;var r=e.customMerge(t);return typeof r=="function"?r:bt}function pd(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function fo(t){return Object.keys(t).concat(pd(t))}function ra(t,e){try{return e in t}catch(r){return!1}}function md(t,e){return ra(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function _d(t,e,r){var i={};return r.isMergeableObject(t)&&fo(t).forEach(function(s){i[s]=Gt(t[s],r)}),fo(e).forEach(function(s){md(t,s)||(ra(t,s)&&r.isMergeableObject(e[s])?i[s]=fd(s,r)(t[s],e[s],r):i[s]=Gt(e[s],r))}),i}function bt(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||hd,r.isMergeableObject=r.isMergeableObject||od,r.cloneUnlessOtherwiseSpecified=Gt;var i=Array.isArray(e),s=Array.isArray(t),o=i===s;return o?i?r.arrayMerge(t,e,r):_d(t,e,r):Gt(e,r)}bt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,s){return bt(i,s,r)},{})};var gd=bt,bd=gd;const vd=sd(bd);var Fi=function(t,e){return Fi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Fi(t,e)};function Wr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Fi(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Be=function(){return Be=Object.assign||function(e){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Be.apply(this,arguments)};function yd(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(r[i[s]]=t[i[s]]);return r}function ui(t,e,r){if(r||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 t.concat(o||Array.prototype.slice.call(e))}function di(t,e){var r=e&&e.cache?e.cache:Ad,i=e&&e.serializer?e.serializer:Cd,s=e&&e.strategy?e.strategy:Pd;return s(t,{cache:r,serializer:i})}function wd(t){return t==null||typeof t=="number"||typeof t=="boolean"}function xd(t,e,r,i){var s=wd(i)?i:r(i),o=e.get(s);return typeof o=="undefined"&&(o=t.call(this,i),e.set(s,o)),o}function ia(t,e,r){var i=Array.prototype.slice.call(arguments,3),s=r(i),o=e.get(s);return typeof o=="undefined"&&(o=t.apply(this,i),e.set(s,o)),o}function sa(t,e,r,i,s){return r.bind(e,t,i,s)}function Pd(t,e){var r=t.length===1?xd:ia;return sa(t,this,r,e.cache.create(),e.serializer)}function Ed(t,e){return sa(t,this,ia,e.cache.create(),e.serializer)}var Cd=function(){return JSON.stringify(arguments)},Sd=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,r){this.cache[e]=r},t}(),Ad={create:function(){return new Sd}},ci={variadic:Ed},kr=function(){return kr=Object.assign||function(e){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},kr.apply(this,arguments)};var M;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(M||(M={}));var Z;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Z||(Z={}));var vt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(vt||(vt={}));function po(t){return t.type===Z.literal}function Td(t){return t.type===Z.argument}function oa(t){return t.type===Z.number}function na(t){return t.type===Z.date}function aa(t){return t.type===Z.time}function la(t){return t.type===Z.select}function ua(t){return t.type===Z.plural}function Id(t){return t.type===Z.pound}function da(t){return t.type===Z.tag}function ca(t){return!!(t&&typeof t=="object"&&t.type===vt.number)}function Vi(t){return!!(t&&typeof t=="object"&&t.type===vt.dateTime)}var ha=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Od=/(?:[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 Nd(t){var e={};return t.replace(Od,function(r){var i=r.length;switch(r[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 te=function(){return te=Object.assign||function(e){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},te.apply(this,arguments)};var kd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ld(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(kd).filter(function(f){return f.length>0}),r=[],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,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function Md(t){return t.replace(/^(.*?)-/,"")}var mo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,fa=/^(@+)?(\+|#+)?[rs]?$/g,Bd=/(\*)(0+)|(#+)(0+)|(0+)/g,pa=/^(0+)$/;function _o(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(fa,function(r,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 ma(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Rd(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if(r==="+!"?(e.signDisplay="always",t=t.slice(2)):r==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!pa.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function go(t){var e={},r=ma(t);return r||e}function Dd(t){for(var e={},r=0,i=t;r<i.length;r++){var s=i[r];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=Md(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=te(te(te({},e),{notation:"scientific"}),s.options.reduce(function(l,u){return te(te({},l),go(u))},{}));continue;case"engineering":e=te(te(te({},e),{notation:"engineering"}),s.options.reduce(function(l,u){return te(te({},l),go(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(Bd,function(l,u,d,c,f,p){if(u)e.minimumIntegerDigits=d.length;else{if(c&&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(pa.test(s.stem)){e.minimumIntegerDigits=s.stem.length;continue}if(mo.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(mo,function(l,u,d,c,f,p){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.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=te(te({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=te(te({},e),_o(o)));continue}if(fa.test(s.stem)){e=te(te({},e),_o(s.stem));continue}var n=ma(s.stem);n&&(e=te(te({},e),n));var a=Rd(s.stem);a&&(e=te(te({},e),a))}return e}var fr={"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 Hd(t,e){for(var r="",i=0;i<t.length;i++){var s=t.charAt(i);if(s==="j"){for(var o=0;i+1<t.length&&t.charAt(i+1)===s;)o++,i++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=zd(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;n-- >0;)r=u+r}else s==="J"?r+="H":r+=s}return r}function zd(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.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 r=t.language,i;r!=="root"&&(i=t.maximize().region);var s=fr[i||""]||fr[r||""]||fr["".concat(r,"-001")]||fr["001"];return s[0]}var hi,Fd=new RegExp("^".concat(ha.source,"*")),Vd=new RegExp("".concat(ha.source,"*$"));function B(t,e){return{start:t,end:e}}var Ud=!!String.prototype.startsWith&&"_a".startsWith("a",1),$d=!!String.fromCodePoint,jd=!!Object.fromEntries,Gd=!!String.prototype.codePointAt,Wd=!!String.prototype.trimStart,qd=!!String.prototype.trimEnd,Yd=!!Number.isSafeInteger,Xd=Yd?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ui=!0;try{var Zd=ga("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ui=((hi=Zd.exec("a"))===null||hi===void 0?void 0:hi[0])==="a"}catch(t){Ui=!1}var bo=Ud?function(e,r,i){return e.startsWith(r,i)}:function(e,r,i){return e.slice(i,i+r.length)===r},$i=$d?String.fromCodePoint:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];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=jd?Object.fromEntries:function(e){for(var r={},i=0,s=e;i<s.length;i++){var o=s[i],n=o[0],a=o[1];r[n]=a}return r},_a=Gd?function(e,r){return e.codePointAt(r)}:function(e,r){var i=e.length;if(!(r<0||r>=i)){var s=e.charCodeAt(r),o;return s<55296||s>56319||r+1===i||(o=e.charCodeAt(r+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},Jd=Wd?function(e){return e.trimStart()}:function(e){return e.replace(Fd,"")},Kd=qd?function(e){return e.trimEnd()}:function(e){return e.replace(Vd,"")};function ga(t,e){return new RegExp(t,e)}var ji;if(Ui){var yo=ga("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ji=function(e,r){var i;yo.lastIndex=r;var s=yo.exec(e);return(i=s[1])!==null&&i!==void 0?i:""}}else ji=function(e,r){for(var i=[];;){var s=_a(e,r);if(s===void 0||ba(s)||rc(s))break;i.push(s),r+=s>=65536?2:1}return $i.apply(void 0,i)};var Qd=function(){function t(e,r){r===void 0&&(r={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,r,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&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:Z.pound,location:B(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(M.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Gi(this.peek()||0)){var n=this.parseTag(e,r);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(e,r);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},t.prototype.parseTag=function(e,r){var i=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Z.literal,value:"<".concat(s,"/>"),location:B(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,r,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Gi(this.char()))return this.error(M.INVALID_TAG,B(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(M.UNMATCHED_CLOSING_TAG,B(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Z.tag,value:s,children:n,location:B(i,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,B(a,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,B(i,this.clonePosition()))}else return this.error(M.INVALID_TAG,B(i,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&tc(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,r){for(var i=this.clonePosition(),s="";;){var o=this.tryParseQuote(r);if(o){s+=o;continue}var n=this.tryParseUnquoted(e,r);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=B(i,this.clonePosition());return{val:{type:Z.literal,value:s,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ec(this.peek()||0))?(this.bump(),"<"):null},t.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 r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return $i.apply(void 0,r)},t.prototype.tryParseUnquoted=function(e,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&e>0?null:(this.bump(),$i(i))},t.prototype.parseArgument=function(e,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,B(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(M.MALFORMED_ARGUMENT,B(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Z.argument,value:s,location:B(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition())):this.parseArgumentOptions(e,r,s,i);default:return this.error(M.MALFORMED_ARGUMENT,B(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),i=ji(this.message,r),s=r+i.length;this.bumpTo(s);var o=this.clonePosition(),n=B(e,o);return{value:i,location:n}},t.prototype.parseArgumentOptions=function(e,r,i,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,B(n,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var f=Kd(c.val);if(f.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var p=B(d,this.clonePosition());u={style:f,styleLocation:p}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var b=B(s,this.clonePosition());if(u&&bo(u==null?void 0:u.style,"::",0)){var w=Jd(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(w,u.styleLocation);return c.err?c:{val:{type:Z.number,value:i,location:b,style:c.val},err:null}}else{if(w.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,b);var y=w;this.locale&&(y=Hd(w,this.locale));var f={type:vt.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Nd(y):{}},v=a==="date"?Z.date:Z.time;return{val:{type:v,value:i,location:b,style:f},err:null}}}return{val:{type:a==="number"?Z.number:a==="date"?Z.date:Z.time,value:i,location:b,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,B(C,kr({},C)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),x=0;if(a!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),T=this.parseIdentifierIfPossible(),x=c.val}var O=this.tryParsePluralOrSelectOptions(e,a,r,T);if(O.err)return O;var _=this.tryParseArgumentClose(s);if(_.err)return _;var N=B(s,this.clonePosition());return a==="select"?{val:{type:Z.select,value:i,options:vo(O.val),location:N},err:null}:{val:{type:Z.plural,value:i,options:vo(O.val),offset:x,pluralType:a==="plural"?"cardinal":"ordinal",location:N},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,B(n,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,r){var i=[];try{i=Ld(e)}catch(s){return this.error(M.INVALID_NUMBER_SKELETON,r)}return{val:{type:vt.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Dd(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,i,s){for(var o,n=!1,a=[],l=new Set,u=s.value,d=s.location;;){if(u.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;d=B(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,r,i);if(_.err)return _;var b=this.tryParseArgumentClose(p);if(b.err)return b;a.push([u,{value:_.val,location:B(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(M.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,r){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=B(s,this.clonePosition());return o?(n*=i,Xd(n)?{val:n,err:null}:this.error(r,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var r=_a(this.message,e);if(r===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(e,r){return{val:null,err:{kind:e,message:this.message,location:r}}},t.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)}},t.prototype.bumpIf=function(e){if(bo(this.message,e,this.offset())){for(var r=0;r<e.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var r=this.offset(),i=this.message.indexOf(e,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.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 r=this.offset();if(r===e)break;if(r>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ba(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(e>=65536?2:1));return i!=null?i:null},t}();function Gi(t){return t>=97&&t<=122||t>=65&&t<=90}function ec(t){return Gi(t)||t===47}function tc(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ba(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function rc(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Wi(t){t.forEach(function(e){if(delete e.location,la(e)||ua(e))for(var r in e.options)delete e.options[r].location,Wi(e.options[r].value);else oa(e)&&ca(e.style)||(na(e)||aa(e))&&Vi(e.style)?delete e.style.location:da(e)&&Wi(e.children)})}function ic(t,e){e===void 0&&(e={}),e=kr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new Qd(t,e).parse();if(r.err){var i=SyntaxError(M[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return e!=null&&e.captureLocation||Wi(r.val),r.val}var yt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(yt||(yt={}));var qr=function(t){Wr(e,t);function e(r,i,s){var o=t.call(this,r)||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),wo=function(t){Wr(e,t);function e(r,i,s,o){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(s).join('", "'),'"'),yt.INVALID_VALUE,o)||this}return e}(qr),sc=function(t){Wr(e,t);function e(r,i,s){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),yt.INVALID_VALUE,s)||this}return e}(qr),oc=function(t){Wr(e,t);function e(r,i){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),yt.MISSING_VALUE,i)||this}return e}(qr),_e;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(_e||(_e={}));function nc(t){return t.length<2?t:t.reduce(function(e,r){var i=e[e.length-1];return!i||i.type!==_e.literal||r.type!==_e.literal?e.push(r):i.value+=r.value,e},[])}function ac(t){return typeof t=="function"}function xr(t,e,r,i,s,o,n){if(t.length===1&&po(t[0]))return[{type:_e.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var d=u[l];if(po(d)){a.push({type:_e.literal,value:d.value});continue}if(Id(d)){typeof o=="number"&&a.push({type:_e.literal,value:r.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(s&&c in s))throw new oc(c,n);var f=s[c];if(Td(d)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?_e.literal:_e.object,value:f});continue}if(na(d)){var p=typeof d.style=="string"?i.date[d.style]:Vi(d.style)?d.style.parsedOptions:void 0;a.push({type:_e.literal,value:r.getDateTimeFormat(e,p).format(f)});continue}if(aa(d)){var p=typeof d.style=="string"?i.time[d.style]:Vi(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:_e.literal,value:r.getDateTimeFormat(e,p).format(f)});continue}if(oa(d)){var p=typeof d.style=="string"?i.number[d.style]:ca(d.style)?d.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),a.push({type:_e.literal,value:r.getNumberFormat(e,p).format(f)});continue}if(da(d)){var _=d.children,b=d.value,w=s[b];if(!ac(w))throw new sc(b,"function",n);var y=xr(_,e,r,i,s,o),v=w(y.map(function(x){return x.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(x){return{type:typeof x=="string"?_e.literal:_e.object,value:x}}))}if(la(d)){var C=d.options[f]||d.options.other;if(!C)throw new wo(d.value,f,Object.keys(d.options),n);a.push.apply(a,xr(C.value,e,r,i,s));continue}if(ua(d)){var C=d.options["=".concat(f)];if(!C){if(!Intl.PluralRules)throw new qr(`Intl.PluralRules is not available in this environment.
|
|
20
20
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
21
|
-
`,mt.MISSING_INTL_API,n);var T=t.getPluralRules(e,{type:u.pluralType}).select(f-(u.offset||0));E=u.options[T]||u.options.other}if(!E)throw new fo(u.value,f,Object.keys(u.options),n);a.push.apply(a,_r(E.value,e,t,i,s,f-(u.offset||0)));continue}}return Uu(a)}function ju(r,e){return e?Ie(Ie(Ie({},r||{}),e||{}),Object.keys(r).reduce(function(t,i){return t[i]=Ie(Ie({},r[i]),e[i]||{}),t},{})):r}function Gu(r,e){return e?Object.keys(r).reduce(function(t,i){return t[i]=ju(r[i],e[i]),t},Ie({},r)):r}function oi(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function qu(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ri(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:oi(r.number),strategy:ii.variadic}),getDateTimeFormat:ri(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:oi(r.dateTime),strategy:ii.variadic}),getPluralRules:ri(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:oi(r.pluralRules),strategy:ii.variadic})}}var Wu=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 d=o.formatToParts(l);if(d.length===1)return d[0].value;var u=d.reduce(function(h,f){return!h.length||f.type!==pe.literal||typeof h[h.length-1]!="string"?h.push(f.value):h[h.length-1]+=f.value,h},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return _r(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=ru(n,["formatters"]);this.ast=r.__parse(e,Ie(Ie({},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=Gu(r.formats,i),this.formatters=s&&s.formatters||qu(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=zu,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 Yu(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 ze={},Zu=(r,e,t)=>t&&(e in ze||(ze[e]={}),r in ze[e]||(ze[e][r]=t),t),sa=(r,e)=>{if(e==null)return;if(e in ze&&r in ze[e])return ze[e][r];const t=Vr(e);for(let i=0;i<t.length;i++){const s=t[i],o=Ju(s,r);if(o)return Zu(r,e,o)}};let fs;const Je=Hr({});function Xu(r){return fs[r]||null}function oa(r){return r in fs}function Ju(r,e){if(!oa(r))return null;const t=Xu(r);return Yu(t,e)}function Ku(r){if(r==null)return;const e=Vr(r);for(let t=0;t<e.length;t++){const i=e[t];if(oa(i))return i}}function ps(r,...e){delete ze[r],Je.update(t=>(t[r]=tu.all([t[r]||{},...e]),t))}yt([Je],([r])=>Object.keys(r));Je.subscribe(r=>fs=r);const gr={};function Qu(r,e){gr[r].delete(e),gr[r].size===0&&delete gr[r]}function na(r){return gr[r]}function eh(r){return Vr(r).map(e=>{const t=na(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function zi(r){return r==null?!1:Vr(r).some(e=>{var t;return(t=na(e))==null?void 0:t.size})}function th(r,e){return Promise.all(e.map(i=>(Qu(r,i),i().then(s=>s.default||s)))).then(i=>ps(r,...i))}const Tt={};function aa(r){if(!zi(r))return r in Tt?Tt[r]:Promise.resolve();const e=eh(r);return Tt[r]=Promise.all(e.map(([t,i])=>th(t,i))).then(()=>{if(zi(r))return aa(r);delete Tt[r]}),Tt[r]}const rh={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"}}},ih={fallbackLocale:null,loadingDelay:200,formats:rh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},sh=ih;function _t(){return sh}const ni=Hr(!1);var oh=Object.defineProperty,nh=Object.defineProperties,ah=Object.getOwnPropertyDescriptors,po=Object.getOwnPropertySymbols,lh=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable,mo=(r,e,t)=>e in r?oh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,uh=(r,e)=>{for(var t in e||(e={}))lh.call(e,t)&&mo(r,t,e[t]);if(po)for(var t of po(e))dh.call(e,t)&&mo(r,t,e[t]);return r},hh=(r,e)=>nh(r,ah(e));let Fi;const Sr=Hr(null);function _o(r){return r.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Vr(r,e=_t().fallbackLocale){const t=_o(r);return e?[...new Set([...t,..._o(e)])]:t}function Ke(){return Fi!=null?Fi:void 0}Sr.subscribe(r=>{Fi=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const ch=r=>{if(r&&Ku(r)&&zi(r)){const{loadingDelay:e}=_t();let t;return typeof window!="undefined"&&Ke()!=null&&e?t=window.setTimeout(()=>ni.set(!0),e):ni.set(!0),aa(r).then(()=>{Sr.set(r)}).finally(()=>{clearTimeout(t),ni.set(!1)})}return Sr.set(r)},Re=hh(uh({},Sr),{set:ch}),Ur=r=>{const e=Object.create(null);return i=>{const s=JSON.stringify(i);return s in e?e[s]:e[s]=r(i)}};var fh=Object.defineProperty,Ar=Object.getOwnPropertySymbols,la=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable,go=(r,e,t)=>e in r?fh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ms=(r,e)=>{for(var t in e||(e={}))la.call(e,t)&&go(r,t,e[t]);if(Ar)for(var t of Ar(e))da.call(e,t)&&go(r,t,e[t]);return r},wt=(r,e)=>{var t={};for(var i in r)la.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Ar)for(var i of Ar(r))e.indexOf(i)<0&&da.call(r,i)&&(t[i]=r[i]);return t};const Vt=(r,e)=>{const{formats:t}=_t();if(r in t&&e in t[r])return t[r][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${r} format.`)},ph=Ur(r=>{var e=r,{locale:t,format:i}=e,s=wt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=Vt("number",i)),new Intl.NumberFormat(t,s)}),mh=Ur(r=>{var e=r,{locale:t,format:i}=e,s=wt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=Vt("date",i):Object.keys(s).length===0&&(s=Vt("date","short")),new Intl.DateTimeFormat(t,s)}),_h=Ur(r=>{var e=r,{locale:t,format:i}=e,s=wt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=Vt("time",i):Object.keys(s).length===0&&(s=Vt("time","short")),new Intl.DateTimeFormat(t,s)}),gh=(r={})=>{var e=r,{locale:t=Ke()}=e,i=wt(e,["locale"]);return ph(ms({locale:t},i))},bh=(r={})=>{var e=r,{locale:t=Ke()}=e,i=wt(e,["locale"]);return mh(ms({locale:t},i))},vh=(r={})=>{var e=r,{locale:t=Ke()}=e,i=wt(e,["locale"]);return _h(ms({locale:t},i))},yh=Ur((r,e=Ke())=>new Wu(r,e,_t().formats,{ignoreTag:_t().ignoreTag})),wh=(r,e={})=>{var t,i,s,o;let n=e;typeof r=="object"&&(n=r,r=n.id);const{values:a,locale:l=Ke(),default:d}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=sa(r,l);if(!u)u=(o=(s=(i=(t=_t()).handleMissingMessage)==null?void 0:i.call(t,{locale:l,id:r,defaultValue:d}))!=null?s:d)!=null?o:r;else if(typeof u!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u;if(!a)return u;let h=u;try{h=yh(u,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,f.message)}return h},xh=(r,e)=>vh(e).format(r),Ph=(r,e)=>bh(e).format(r),Eh=(r,e)=>gh(e).format(r),Ch=(r,e=Ke())=>sa(r,e),ua=yt([Re,Je],()=>wh);yt([Re],()=>xh);yt([Re],()=>Ph);yt([Re],()=>Eh);yt([Re,Je],()=>Ch);window.emWidgets={topic:Hd};const Sh=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 Ah({withLocale:r,translations:e}){Re.subscribe(t=>{t==null&&(Je.set(e),Re.set(r))})}function bo(r,e){ps(r,e)}function Th(r){Re.set(r)}const ot="__WIDGET_GLOBAL_STYLE_CACHE__";function ha(r,e){if(r){const t=document.createElement("style");t.innerHTML=e,r.appendChild(t)}}function ca(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 fa(r,e,t,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return t=Ih(r,e),t;window[ot]||(window[ot]={}),t=Oh(r,e);const o=t.unsubscribe.bind(t),n=()=>{if(window[ot][e]){const a=window[ot][e];a.refCount>1?a.refCount=a.refCount-1:delete window[ot][e]}o()};return t.unsubscribe=n,t}function Ih(r,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,i=>{r&&(t.innerHTML=i,r.appendChild(t))})}function Oh(r,e){return window.emMessageBus.subscribe(e,t=>{if(!r)return;const i=r.getRootNode(),s=window[ot];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 vo={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."}};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-BOGivfUg.cjs")).then(({default:e})=>{!customElements.get("general-player-forgot-password-sms-form")&&customElements.define("general-player-forgot-password-sms-form",e.element)})}/**
|
|
21
|
+
`,yt.MISSING_INTL_API,n);var T=r.getPluralRules(e,{type:d.pluralType}).select(f-(d.offset||0));C=d.options[T]||d.options.other}if(!C)throw new wo(d.value,f,Object.keys(d.options),n);a.push.apply(a,xr(C.value,e,r,i,s,f-(d.offset||0)));continue}}return nc(a)}function lc(t,e){return e?Be(Be(Be({},t||{}),e||{}),Object.keys(t).reduce(function(r,i){return r[i]=Be(Be({},t[i]),e[i]||{}),r},{})):t}function uc(t,e){return e?Object.keys(t).reduce(function(r,i){return r[i]=lc(t[i],e[i]),r},Be({},t)):t}function fi(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function dc(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:di(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,ui([void 0],r,!1)))},{cache:fi(t.number),strategy:ci.variadic}),getDateTimeFormat:di(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,ui([void 0],r,!1)))},{cache:fi(t.dateTime),strategy:ci.variadic}),getPluralRules:di(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,ui([void 0],r,!1)))},{cache:fi(t.pluralRules),strategy:ci.variadic})}}var cc=function(){function t(e,r,i,s){r===void 0&&(r=t.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 d=u.reduce(function(c,f){return!c.length||f.type!==_e.literal||typeof c[c.length-1]!="string"?c.push(f.value):c[c.length-1]+=f.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return xr(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=r,this.resolvedLocale=t.resolveLocale(r),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=yd(n,["formatters"]);this.ast=t.__parse(e,Be(Be({},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=uc(t.formats,i),this.formatters=s&&s.formatters||dc(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(e);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=ic,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function hc(t,e){if(e==null)return;if(e in t)return t[e];const r=e.split(".");let i=t;for(let s=0;s<r.length;s++)if(typeof i=="object"){if(s>0){const o=r.slice(s,r.length).join(".");if(o in i){i=i[o];break}}i=i[r[s]]}else i=void 0;return i}const je={},fc=(t,e,r)=>r&&(e in je||(je[e]={}),t in je[e]||(je[e][t]=r),r),va=(t,e)=>{if(e==null)return;if(e in je&&t in je[e])return je[e][t];const r=Yr(e);for(let i=0;i<r.length;i++){const s=r[i],o=mc(s,t);if(o)return fc(t,e,o)}};let ws;const rt=Gr({});function pc(t){return ws[t]||null}function ya(t){return t in ws}function mc(t,e){if(!ya(t))return null;const r=pc(t);return hc(r,e)}function _c(t){if(t==null)return;const e=Yr(t);for(let r=0;r<e.length;r++){const i=e[r];if(ya(i))return i}}function xs(t,...e){delete je[t],rt.update(r=>(r[t]=vd.all([r[t]||{},...e]),r))}Ct([rt],([t])=>Object.keys(t));rt.subscribe(t=>ws=t);const Pr={};function gc(t,e){Pr[t].delete(e),Pr[t].size===0&&delete Pr[t]}function wa(t){return Pr[t]}function bc(t){return Yr(t).map(e=>{const r=wa(e);return[e,r?[...r]:[]]}).filter(([,e])=>e.length>0)}function qi(t){return t==null?!1:Yr(t).some(e=>{var r;return(r=wa(e))==null?void 0:r.size})}function vc(t,e){return Promise.all(e.map(i=>(gc(t,i),i().then(s=>s.default||s)))).then(i=>xs(t,...i))}const kt={};function xa(t){if(!qi(t))return t in kt?kt[t]:Promise.resolve();const e=bc(t);return kt[t]=Promise.all(e.map(([r,i])=>vc(r,i))).then(()=>{if(qi(t))return xa(t);delete kt[t]}),kt[t]}const yc={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"}}},wc={fallbackLocale:null,loadingDelay:200,formats:yc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},xc=wc;function wt(){return xc}const pi=Gr(!1);var Pc=Object.defineProperty,Ec=Object.defineProperties,Cc=Object.getOwnPropertyDescriptors,xo=Object.getOwnPropertySymbols,Sc=Object.prototype.hasOwnProperty,Ac=Object.prototype.propertyIsEnumerable,Po=(t,e,r)=>e in t?Pc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Tc=(t,e)=>{for(var r in e||(e={}))Sc.call(e,r)&&Po(t,r,e[r]);if(xo)for(var r of xo(e))Ac.call(e,r)&&Po(t,r,e[r]);return t},Ic=(t,e)=>Ec(t,Cc(e));let Yi;const Lr=Gr(null);function Eo(t){return t.split("-").map((e,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Yr(t,e=wt().fallbackLocale){const r=Eo(t);return e?[...new Set([...r,...Eo(e)])]:r}function it(){return Yi!=null?Yi:void 0}Lr.subscribe(t=>{Yi=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const Oc=t=>{if(t&&_c(t)&&qi(t)){const{loadingDelay:e}=wt();let r;return typeof window!="undefined"&&it()!=null&&e?r=window.setTimeout(()=>pi.set(!0),e):pi.set(!0),xa(t).then(()=>{Lr.set(t)}).finally(()=>{clearTimeout(r),pi.set(!1)})}return Lr.set(t)},ze=Ic(Tc({},Lr),{set:Oc}),Xr=t=>{const e=Object.create(null);return i=>{const s=JSON.stringify(i);return s in e?e[s]:e[s]=t(i)}};var Nc=Object.defineProperty,Mr=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,Co=(t,e,r)=>e in t?Nc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ps=(t,e)=>{for(var r in e||(e={}))Pa.call(e,r)&&Co(t,r,e[r]);if(Mr)for(var r of Mr(e))Ea.call(e,r)&&Co(t,r,e[r]);return t},St=(t,e)=>{var r={};for(var i in t)Pa.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&Mr)for(var i of Mr(t))e.indexOf(i)<0&&Ea.call(t,i)&&(r[i]=t[i]);return r};const Wt=(t,e)=>{const{formats:r}=wt();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},kc=Xr(t=>{var e=t,{locale:r,format:i}=e,s=St(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=Wt("number",i)),new Intl.NumberFormat(r,s)}),Lc=Xr(t=>{var e=t,{locale:r,format:i}=e,s=St(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=Wt("date",i):Object.keys(s).length===0&&(s=Wt("date","short")),new Intl.DateTimeFormat(r,s)}),Mc=Xr(t=>{var e=t,{locale:r,format:i}=e,s=St(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=Wt("time",i):Object.keys(s).length===0&&(s=Wt("time","short")),new Intl.DateTimeFormat(r,s)}),Bc=(t={})=>{var e=t,{locale:r=it()}=e,i=St(e,["locale"]);return kc(Ps({locale:r},i))},Rc=(t={})=>{var e=t,{locale:r=it()}=e,i=St(e,["locale"]);return Lc(Ps({locale:r},i))},Dc=(t={})=>{var e=t,{locale:r=it()}=e,i=St(e,["locale"]);return Mc(Ps({locale:r},i))},Hc=Xr((t,e=it())=>new cc(t,e,wt().formats,{ignoreTag:wt().ignoreTag})),zc=(t,e={})=>{var r,i,s,o;let n=e;typeof t=="object"&&(n=t,t=n.id);const{values:a,locale:l=it(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=va(t,l);if(!d)d=(o=(s=(i=(r=wt()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:t,defaultValue:u}))!=null?s:u)!=null?o:t;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=Hc(d,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,f.message)}return c},Fc=(t,e)=>Dc(e).format(t),Vc=(t,e)=>Rc(e).format(t),Uc=(t,e)=>Bc(e).format(t),$c=(t,e=it())=>va(t,e),Ca=Ct([ze,rt],()=>zc);Ct([ze],()=>Fc);Ct([ze],()=>Vc);Ct([ze],()=>Uc);Ct([ze,rt],()=>$c);window.emWidgets={topic:rd};const jc=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;function Gc({withLocale:t,translations:e}){ze.subscribe(r=>{r==null&&(rt.set(e),ze.set(t))})}function So(t,e){xs(t,e)}function Wc(t){ze.set(t)}const ut="__WIDGET_GLOBAL_STYLE_CACHE__";function Sa(t,e){if(t){const r=document.createElement("style");r.innerHTML=e,t.appendChild(r)}}function Aa(t,e){if(!t||!e)return;const r=new URL(e);fetch(r.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,t&&t.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Ta(t,e,r,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return r=qc(t,e),r;window[ut]||(window[ut]={}),r=Yc(t,e);const o=r.unsubscribe.bind(r),n=()=>{if(window[ut][e]){const a=window[ut][e];a.refCount>1?a.refCount=a.refCount-1:delete window[ut][e]}o()};return r.unsubscribe=n,r}function qc(t,e){const r=document.createElement("style");return window.emMessageBus.subscribe(e,i=>{t&&(r.innerHTML=i,t.appendChild(r))})}function Yc(t,e){return window.emMessageBus.subscribe(e,r=>{if(!t)return;const i=t.getRootNode(),s=window[ut];let o=s[e]&&s[e].sheet;o?s[e].refCount=s[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),s[e]={sheet:o,refCount:1});const n=i.adoptedStyleSheets||[];n.includes(o)||(i.adoptedStyleSheets=[...n,o])})}const Ao={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."}};if(typeof window!="undefined"){let t=function(e){return function(...r){try{return e.apply(this,r)}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=t(customElements.define),Promise.resolve().then(()=>require("./GeneralPlayerForgotPasswordSmsForm-CfaQEOJa.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/
|
|
25
|
-
*/function
|
|
25
|
+
*/function At(t,e="24.5.10"){Object.defineProperty(t,"version",{get(){return e}});const r=customElements.get(t.is);if(!r)customElements.define(t.is,t);else{const i=r.version;i&&t.version&&i===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${r.version} is already in use. Something will probably break.`)}}/**
|
|
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
|
|
29
|
+
*/class Xc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}At(Xc);/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2019 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/const
|
|
33
|
+
*/const Er=globalThis,Es=Er.ShadowRoot&&(Er.ShadyCSS===void 0||Er.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cs=Symbol(),To=new WeakMap;let Ss=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Cs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Es&&e===void 0){const i=r!==void 0&&r.length===1;i&&(e=To.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&To.set(r,e))}return e}toString(){return this.cssText}};const Zc=t=>new Ss(typeof t=="string"?t:t+"",void 0,Cs),V=(t,...e)=>{const r=t.length===1?t[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)+t[o+1],t[0]);return new Ss(r,t,Cs)},Ia=(t,e)=>{if(Es)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const i=document.createElement("style"),s=Er.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}},Io=Es?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const i of e.cssRules)r+=i.cssText;return Zc(r)})(t):t;/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/const{is:
|
|
37
|
+
*/const{is:Jc,defineProperty:Kc,getOwnPropertyDescriptor:Qc,getOwnPropertyNames:eh,getOwnPropertySymbols:th,getPrototypeOf:rh}=Object,Ge=globalThis,Oo=Ge.trustedTypes,ih=Oo?Oo.emptyScript:"",mi=Ge.reactiveElementPolyfillSupport,Vt=(t,e)=>t,Xi={toAttribute(t,e){switch(e){case Boolean:t=t?ih:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(i){r=null}}return r}},Oa=(t,e)=>!Jc(t,e),No={attribute:!0,type:String,converter:Xi,reflect:!1,useDefault:!1,hasChanged:Oa};var Tn,In;(Tn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(In=Ge.litPropertyMetadata)!=null||(Ge.litPropertyMetadata=new WeakMap);let dt=class extends HTMLElement{static addInitializer(e){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=No){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,r);s!==void 0&&Kc(this.prototype,e,s)}}static getPropertyDescriptor(e,r,i){var n;const{get:s,set:o}=(n=Qc(this.prototype,e))!=null?n:{get(){return this[r]},set(a){this[r]=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 r;return(r=this.elementProperties.get(e))!=null?r:No}static _$Ei(){if(this.hasOwnProperty(Vt("elementProperties")))return;const e=rh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vt("properties"))){const r=this.properties,i=[...eh(r),...th(r)];for(const s of i)this.createProperty(s,r[s])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[i,s]of r)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const s=this._$Eu(r,i);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)r.unshift(Io(s))}else e!==void 0&&r.push(Io(e));return r}static _$Eu(e,r){const i=r.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(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return Ia(e,this.constructor.elementStyles),e}connectedCallback(){var e,r;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.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(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){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:Xi).toAttribute(r,i.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,r){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:Xi;this._$Em=s;const d=u.fromAttribute(r,l.type);this[s]=(a=d!=null?d:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:d,this._$Em=null}}requestUpdate(e,r,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:Oa)(o,r)||i.useDefault&&i.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{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:r)!=null?l:this[e]),o!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),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(r){Promise.reject(r)}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 r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.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(r=>this._$ET(r,this[r]))),this._$EM()}updated(e){}firstUpdated(e){}};var On;dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},dt[Vt("elementProperties")]=new Map,dt[Vt("finalized")]=new Map,mi==null||mi({ReactiveElement:dt}),((On=Ge.reactiveElementVersions)!=null?On:Ge.reactiveElementVersions=[]).push("2.1.2");/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/const
|
|
42
|
-
\f\r]`,
|
|
43
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
41
|
+
*/const Ut=globalThis,ko=t=>t,Br=Ut.trustedTypes,Lo=Br?Br.createPolicy("lit-html",{createHTML:t=>t}):void 0,Na="$lit$",$e=`lit$${Math.random().toFixed(9).slice(2)}$`,ka="?"+$e,sh=`<${ka}>`,tt=document,qt=()=>tt.createComment(""),Yt=t=>t===null||typeof t!="object"&&typeof t!="function",As=Array.isArray,oh=t=>As(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",_i=`[
|
|
42
|
+
\f\r]`,Lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mo=/-->/g,Bo=/>/g,Ye=RegExp(`>|${_i}(?:([^\\s"'>=/]+)(${_i}*=${_i}*(?:[^
|
|
43
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ro=/'/g,Do=/"/g,La=/^(?:script|style|textarea|title)$/i,xt=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),Ho=new WeakMap,Ze=tt.createTreeWalker(tt,129);function Ma(t,e){if(!As(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lo!==void 0?Lo.createHTML(e):e}const nh=(t,e)=>{const r=t.length-1,i=[];let s,o=e===2?"<svg>":e===3?"<math>":"",n=Lt;for(let a=0;a<r;a++){const l=t[a];let u,d,c=-1,f=0;for(;f<l.length&&(n.lastIndex=f,d=n.exec(l),d!==null);)f=n.lastIndex,n===Lt?d[1]==="!--"?n=Mo:d[1]!==void 0?n=Bo:d[2]!==void 0?(La.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=Ye):d[3]!==void 0&&(n=Ye):n===Ye?d[0]===">"?(n=s!=null?s:Lt,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,u=d[1],n=d[3]===void 0?Ye:d[3]==='"'?Do:Ro):n===Do||n===Ro?n=Ye:n===Mo||n===Bo?n=Lt:(n=Ye,s=void 0);const p=n===Ye&&t[a+1].startsWith("/>")?" ":"";o+=n===Lt?l+sh:c>=0?(i.push(u),l.slice(0,c)+Na+l.slice(c)+$e+p):l+$e+(c===-2?a:p)}return[Ma(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Xt{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let o=0,n=0;const a=e.length-1,l=this.parts,[u,d]=nh(e,r);if(this.el=Xt.createElement(u,i),Ze.currentNode=this.el.content,r===2||r===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(s=Ze.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const c of s.getAttributeNames())if(c.endsWith(Na)){const f=d[n++],p=s.getAttribute(c).split($e),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:p,ctor:_[1]==="."?lh:_[1]==="?"?uh:_[1]==="@"?dh:Zr}),s.removeAttribute(c)}else c.startsWith($e)&&(l.push({type:6,index:o}),s.removeAttribute(c));if(La.test(s.tagName)){const c=s.textContent.split($e),f=c.length-1;if(f>0){s.textContent=Br?Br.emptyScript:"";for(let p=0;p<f;p++)s.append(c[p],qt()),Ze.nextNode(),l.push({type:2,index:++o});s.append(c[f],qt())}}}else if(s.nodeType===8)if(s.data===ka)l.push({type:2,index:o});else{let c=-1;for(;(c=s.data.indexOf($e,c+1))!==-1;)l.push({type:7,index:o}),c+=$e.length-1}o++}}static createElement(e,r){const i=tt.createElement("template");return i.innerHTML=e,i}}function Pt(t,e,r=t,i){var n,a,l;if(e===xt)return e;let s=i!==void 0?(n=r._$Co)==null?void 0:n[i]:r._$Cl;const o=Yt(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(t),s._$AT(t,r,i)),i!==void 0?((l=r._$Co)!=null?l:r._$Co=[])[i]=s:r._$Cl=s),s!==void 0&&(e=Pt(t,s._$AS(t,e.values),s,i)),e}class ah{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:r},parts:i}=this._$AD,s=((u=e==null?void 0:e.creationScope)!=null?u:tt).importNode(r,!0);Ze.currentNode=s;let o=Ze.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let d;l.type===2?d=new rr(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new ch(o,this,e)),this._$AV.push(d),l=i[++a]}n!==(l==null?void 0:l.index)&&(o=Ze.nextNode(),n++)}return Ze.currentNode=tt,s}p(e){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}}class rr{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,i,s){var o;this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=e,this._$AB=r,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 r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Pt(this,e,r),Yt(e)?e===le||e==null||e===""?(this._$AH!==le&&this._$AR(),this._$AH=le):e!==this._$AH&&e!==xt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):oh(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!==le&&Yt(this._$AH)?this._$AA.nextSibling.data=e:this.T(tt.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Xt.createElement(Ma(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(r);else{const n=new ah(s,this),a=n.u(this.options);n.p(r),this.T(a),this._$AH=n}}_$AC(e){let r=Ho.get(e.strings);return r===void 0&&Ho.set(e.strings,r=new Xt(e)),r}k(e){As(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,s=0;for(const o of e)s===r.length?r.push(i=new rr(this.O(qt()),this.O(qt()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);e!==this._$AB;){const s=ko(e).nextSibling;ko(e).remove(),e=s}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}}class Zr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,o){this.type=1,this._$AH=le,this._$AN=void 0,this.element=e,this.name=r,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=le}_$AI(e,r=this,i,s){const o=this.strings;let n=!1;if(o===void 0)e=Pt(this,e,r,0),n=!Yt(e)||e!==this._$AH&&e!==xt,n&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=Pt(this,a[i+l],r,l),u===xt&&(u=this._$AH[l]),n||(n=!Yt(u)||u!==this._$AH[l]),u===le?e=le:e!==le&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}n&&!s&&this.j(e)}j(e){e===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class lh extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===le?void 0:e}}class uh extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==le)}}class dh extends Zr{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){var n;if((e=(n=Pt(this,e,r,0))!=null?n:le)===xt)return;const i=this._$AH,s=e===le&&i!==le||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==le&&(i===le||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)==null?void 0:r.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class ch{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Pt(this,e)}}const gi=Ut.litHtmlPolyfillSupport;var Nn;gi==null||gi(Xt,rr),((Nn=Ut.litHtmlVersions)!=null?Nn:Ut.litHtmlVersions=[]).push("3.3.3");const hh=(t,e,r)=>{var o,n;const i=(o=r==null?void 0:r.renderBefore)!=null?o:e;let s=i._$litPart$;if(s===void 0){const a=(n=r==null?void 0:r.renderBefore)!=null?n:null;i._$litPart$=s=new rr(e.insertBefore(qt(),a),a,void 0,r!=null?r:{})}return s._$AI(t),s};/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const
|
|
47
|
+
*/const Ke=globalThis;class mt extends dt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,i;const e=super.createRenderRoot();return(i=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=hh(r,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 xt}}var kn;mt._$litElement$=!0,mt.finalized=!0,(kn=Ke.litElementHydrateSupport)==null||kn.call(Ke,{LitElement:mt});const bi=Ke.litElementPolyfillSupport;bi==null||bi({LitElement:mt});var Ln;((Ln=Ke.litElementVersions)!=null?Ln:Ke.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
|
|
51
|
+
*/const fh=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(r,i,s){super.attributeChangedCallback(r,i,s),r==="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
|
|
56
|
-
`)}const
|
|
55
|
+
*/const Ba=[],Zi=new Set,Ts=new Set;function Ra(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function ph(t){return Ra(customElements.get(t))}function mh(t=[]){return[t].flat(1/0).filter(e=>e instanceof Ss?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Da(t,e){return(t||"").split(" ").some(r=>new RegExp(`^${r.split("*").join(".*")}$`,"u").test(e))}function Ha(t){return t.map(e=>e.cssText).join(`
|
|
56
|
+
`)}const Rr="vaadin-themable-mixin-style";function _h(t,e){const r=document.createElement("style");r.id=Rr,r.textContent=Ha(t),e.content.appendChild(r)}function gh(t){if(!t.shadowRoot)return;const e=t.constructor;if(t instanceof mt)[...t.shadowRoot.querySelectorAll("style")].forEach(r=>r.remove()),Ia(t.shadowRoot,e.elementStyles);else{const r=t.shadowRoot.getElementById(Rr),i=e.prototype._template;r.textContent=i.content.getElementById(Rr).textContent}}function bh(t){Zi.forEach(e=>{const r=e.deref();r instanceof t?gh(r):r||Zi.delete(e)})}function za(t){if(t.prototype instanceof mt)t.elementStyles=t.finalizeStyles(t.styles);else{const e=t.prototype._template;e.content.getElementById(Rr).textContent=Ha(t.getStylesForThis())}Ts.forEach(e=>{const r=customElements.get(e);r!==t&&r.prototype instanceof t&&za(r)})}function vh(t,e){const r=t.__themes;return!r||!e?!1:r.some(i=>i.styles.some(s=>e.some(o=>o.cssText===s.cssText)))}function pe(t,e,r={}){e=mh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,r):Ba.push({themeFor:t,styles:e,include:r.include,moduleId:r.moduleId}),t&&Ts.forEach(i=>{if(Da(t,i)&&ph(i)){const s=customElements.get(i);vh(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".`),za(s),bh(s)}})}function Ji(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ba}function yh(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Fa(t){const e=[];return t.include&&[].concat(t.include).forEach(r=>{const i=Ji().find(s=>s.moduleId===r);i?e.push(...Fa(i),...i.styles):console.warn(`Included moduleId ${r} not found in style registry`)},t.styles),e}function wh(t){const e=`${t}-default-theme`,r=Ji().filter(i=>i.moduleId!==e&&Da(i.themeFor,t)).map(i=>dr(Ve({},i),{styles:[...Fa(i),...i.styles],includePriority:yh(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return r.length>0?r:Ji().filter(i=>i.moduleId===e)}const Jr=t=>class extends fh(t){constructor(){super(),Zi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ts.add(this.is),this.elementStyles)return;const r=this.prototype._template;!r||Ra(this)||_h(this.getStylesForThis(),r)}static finalizeStyles(r){const i=this.getStylesForThis();return r?[...[r].flat(1/0),...i]:i}static getStylesForThis(){const r=t.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...r,...s,...wh(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
|
|
61
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",
|
|
60
|
+
*/const xh=(t,...e)=>{const r=document.createElement("style");r.id=t,r.textContent=e.map(i=>i.toString()).join(`
|
|
61
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},Tt=(t,...e)=>{xh(`lumo-${t}`,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
|
|
65
|
+
*/const Ph=V`
|
|
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
|
-
`;
|
|
150
|
+
`;Tt("color-props",Ph);const Eh=V`
|
|
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
|
-
`;
|
|
268
|
+
`;pe("",Eh,{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
|
|
272
|
+
*/const Ch=V`
|
|
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
|
-
`;
|
|
295
|
+
`;Tt("spacing-props",Ch);/**
|
|
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
|
|
299
|
+
*/const Sh=V`
|
|
300
300
|
:host {
|
|
301
301
|
/* Border radius */
|
|
302
302
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -313,7 +313,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
313
313
|
/* Clickable element cursor */
|
|
314
314
|
--lumo-clickable-cursor: default;
|
|
315
315
|
}
|
|
316
|
-
`;
|
|
316
|
+
`;V`
|
|
317
317
|
html {
|
|
318
318
|
/* Button */
|
|
319
319
|
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
@@ -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
|
-
`;
|
|
399
|
+
`;Tt("style-props",Sh);/**
|
|
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
|
|
403
|
+
*/const Ah=V`
|
|
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
|
-
`;
|
|
456
|
+
`;Tt("font-icons",Ah);/**
|
|
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
|
|
460
|
+
*/const Th=V`
|
|
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
|
-
`;
|
|
475
|
+
`;Tt("sizing-props",Th);/**
|
|
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
|
|
479
|
+
*/const Ih=V`
|
|
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
|
-
`,
|
|
499
|
+
`,Oh=V`
|
|
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
|
-
`;
|
|
591
|
+
`;pe("",Oh,{moduleId:"lumo-typography"});Tt("typography-props",Ih);const Va=V`
|
|
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
|
-
`;
|
|
675
|
+
`;pe("vaadin-item",Va,{moduleId:"lumo-item"});const Nh=V`
|
|
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
|
-
`;
|
|
687
|
+
`;pe("vaadin-combo-box-item",[Va,Nh],{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
|
|
691
|
+
*/const kh=V`
|
|
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
|
|
737
|
+
*/const Is=V`
|
|
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
|
-
`;
|
|
802
|
+
`;pe("",Is,{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
|
|
806
|
+
*/const Os=V`
|
|
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
|
-
`;
|
|
836
|
+
`;pe("",Os,{moduleId:"lumo-menu-overlay-core"});const Lh=V`
|
|
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
|
-
`,
|
|
898
|
+
`,Mh=[Is,Os,Lh];pe("",Mh,{moduleId:"lumo-menu-overlay"});const Bh=V`
|
|
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
|
-
`,
|
|
919
|
+
`,Rh=V`
|
|
920
920
|
[part~='loader'] {
|
|
921
921
|
position: absolute;
|
|
922
922
|
z-index: 1;
|
|
@@ -924,12 +924,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
924
924
|
top: var(--lumo-space-s);
|
|
925
925
|
margin-inline: auto 0;
|
|
926
926
|
}
|
|
927
|
-
`;
|
|
927
|
+
`;pe("vaadin-combo-box-overlay",[Is,Os,Bh,kh,Rh,V`
|
|
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;
|
|
931
931
|
}
|
|
932
|
-
`],{moduleId:"lumo-combo-box-overlay"});
|
|
932
|
+
`],{moduleId:"lumo-combo-box-overlay"});pe("vaadin-input-container",V`
|
|
933
933
|
:host {
|
|
934
934
|
background: var(--_background);
|
|
935
935
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -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
|
|
1114
|
+
*/const Ua=V`
|
|
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
|
-
`;
|
|
1141
|
+
`;pe("",Ua,{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
|
|
1145
|
+
*/const Dh=V`
|
|
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
|
|
1205
|
+
*/const $a=V`
|
|
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
|
-
`;
|
|
1317
|
+
`;pe("",$a,{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
|
|
1321
|
+
*/const Hh=V`
|
|
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
|
-
`,
|
|
1452
|
+
`,ja=[$a,Ua,Dh,Hh];pe("",ja,{moduleId:"lumo-input-field-shared-styles"});const zh=V`
|
|
1453
1453
|
[part='toggle-button']::before {
|
|
1454
1454
|
content: var(--lumo-icons-dropdown);
|
|
1455
1455
|
}
|
|
1456
|
-
`;
|
|
1456
|
+
`;pe("vaadin-combo-box",[ja,zh],{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
|
|
@@ -1461,7 +1461,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1461
1461
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1462
1462
|
Code distributed by Google as part of the polymer project is also
|
|
1463
1463
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1464
|
-
*/window.JSCompiler_renameProperty=function(
|
|
1464
|
+
*/window.JSCompiler_renameProperty=function(t,e){return t};/**
|
|
1465
1465
|
@license
|
|
1466
1466
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1467
1467
|
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
|
|
1472
|
+
*/let Fh=/(url\()([^)]*)(\))/g,Vh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,pr,Ce;function $t(t,e){if(t&&Vh.test(t)||t==="//")return t;if(pr===void 0){pr=!1;try{const r=new URL("b","http://a");r.pathname="c%20d",pr=r.href==="http://a/c%20d"}catch(r){}}if(e||(e=document.baseURI||window.location.href),pr)try{return new URL(t,e).href}catch(r){return t}return Ce||(Ce=document.implementation.createHTMLDocument("temp"),Ce.base=Ce.createElement("base"),Ce.head.appendChild(Ce.base),Ce.anchor=Ce.createElement("a"),Ce.body.appendChild(Ce.anchor)),Ce.base.href=e,Ce.anchor.href=t,Ce.anchor.href||t}function Ns(t,e){return t.replace(Fh,function(r,i,s,o){return i+"'"+$t(s.replace(/["']/g,""),e)+"'"+o})}function ks(t){return t.substring(0,t.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
|
|
1480
|
+
*/const Uh=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const $h=Uh&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let jh=window.Polymer&&window.Polymer.rootPath||ks(document.baseURI||window.location.href),Dr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ki=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Gh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Wh=window.Polymer&&window.Polymer.legacyOptimizations||!1,qh=window.Polymer&&window.Polymer.legacyWarnings||!1,Yh=window.Polymer&&window.Polymer.syncInitialRender||!1,Qi=window.Polymer&&window.Polymer.legacyUndefined||!1,Xh=window.Polymer&&window.Polymer.orderedComputed||!1,zo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Zh=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Jh=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
|
|
1488
|
+
*/let Kh=0;const ce=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let r=Kh++;function i(s){let o=s.__mixinSet;if(o&&o[r])return s;let n=e,a=n.get(s);if(!a){a=t(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[r]=!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
|
|
1496
|
+
*/let Ls={},Ga={};function Fo(t,e){Ls[t]=Ga[t.toLowerCase()]=e}function Vo(t){return Ls[t]||Ga[t.toLowerCase()]}function Qh(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Zt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,r){if(e){let i=Vo(e);return i&&r?i.querySelector(r):i}return null}attributeChangedCallback(e,r,i,s){r!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,r=$t(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=ks(r)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ki&&Vo(e)!==void 0)throw Fo(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Fo(e,this),Qh(this)}}}Zt.prototype.modules=Ls;customElements.define("dom-module",Zt);/**
|
|
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
|
|
1504
|
+
*/const ef="link[rel=import][type~=css]",tf="include",Uo="shady-unscoped";function Wa(t){return Zt.import(t)}function $o(t){let e=t.body?t.body:t;const r=Ns(e.textContent,t.baseURI),i=document.createElement("style");return i.textContent=r,i}function rf(t){const e=t.trim().split(/\s+/),r=[];for(let i=0;i<e.length;i++)r.push(...sf(e[i]));return r}function sf(t){const e=Wa(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(e._styles===void 0){const r=[];r.push(...Ya(e));const i=e.querySelector("template");i&&r.push(...qa(i,e.assetpath)),e._styles=r}return e._styles}function qa(t,e){if(!t._styles){const r=[],i=t.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let o=i[s],n=o.getAttribute(tf);n&&r.push(...rf(n).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Ns(o.textContent,e)),r.push(o)}t._styles=r}return t._styles}function of(t){let e=Wa(t);return e?Ya(e):[]}function Ya(t){const e=[],r=t.querySelectorAll(ef);for(let i=0;i<r.length;i++){let s=r[i];if(s.import){const o=s.import,n=s.hasAttribute(Uo);if(n&&!o._unscopedStyle){const a=$o(o);a.setAttribute(Uo,""),o._unscopedStyle=a}else o._style||(o._style=$o(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
|
|
@@ -1509,7 +1509,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1509
1509
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1510
1510
|
Code distributed by Google as part of the polymer project is also
|
|
1511
1511
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1512
|
-
*/const
|
|
1512
|
+
*/const Qe=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;/**
|
|
1513
1513
|
@license
|
|
1514
1514
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1515
1515
|
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
|
|
1520
|
+
*/function es(t){return t.indexOf(".")>=0}function st(t){let e=t.indexOf(".");return e===-1?t:t.slice(0,e)}function nf(t,e){return t.indexOf(e+".")===0}function Hr(t,e){return e.indexOf(t+".")===0}function zr(t,e,r){return e+r.slice(t.length)}function Dt(t){if(Array.isArray(t)){let e=[];for(let r=0;r<t.length;r++){let i=t[r].toString().split(".");for(let s=0;s<i.length;s++)e.push(i[s])}return e.join(".")}else return t}function Xa(t){return Array.isArray(t)?Dt(t).split("."):t.toString().split(".")}function ve(t,e,r){let i=t,s=Xa(e);for(let o=0;o<s.length;o++){if(!i)return;let n=s[o];i=i[n]}return r&&(r.path=s.join(".")),i}function jo(t,e,r){let i=t,s=Xa(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]=r}else i[e]=r;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
|
|
1528
|
+
*/const Fr={},af=/-[a-z]/g,lf=/([A-Z])/g;function Za(t){return Fr[t]||(Fr[t]=t.indexOf("-")<0?t:t.replace(af,e=>e[1].toUpperCase()))}function Kr(t){return Fr[t]||(Fr[t]=t.replace(lf,"-$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
|
|
1536
|
+
*/let uf=0,Ja=0,_t=[],df=0,ts=!1,Ka=document.createTextNode("");new window.MutationObserver(cf).observe(Ka,{characterData:!0});function cf(){ts=!1;const t=_t.length;for(let e=0;e<t;e++){let r=_t[e];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}_t.splice(0,t),Ja+=t}const hf={run(t){return ts||(ts=!0,Ka.textContent=df++),_t.push(t),uf++},cancel(t){const e=t-Ja;if(e>=0){if(!_t[e])throw new Error("invalid async handle: "+t);_t[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
|
|
1544
|
+
*/const ff=hf,Qa=ce(t=>{class e extends t{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,ff.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=Qe(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
|
|
1552
|
+
*/const el={};let mr=HTMLElement.prototype;for(;mr;){let t=Object.getOwnPropertyNames(mr);for(let e=0;e<t.length;e++)el[t[e]]=!0;mr=Object.getPrototypeOf(mr)}const pf=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function mf(t,e){if(!el[e]){let r=t[e];r!==void 0&&(t.__data?t._setPendingProperty(e,r):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=r))}}const _f=ce(t=>{const e=Qa(t);class r extends e{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(Za(s[o]))}static attributeNameForProperty(s){return Kr(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(pf(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){mf(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return r});/**
|
|
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
|
|
1560
|
+
*/const gf={"dom-if":!0,"dom-repeat":!0};let Go=!1,Wo=!1;function bf(){if(!Go){Go=!0;const t=document.createElement("textarea");t.placeholder="a",Wo=t.placeholder===t.textContent}return Wo}function vf(t){bf()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const yf=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,r,i)=>{const s=r.getAttribute(i);if(t&&i.startsWith("on-")){e.setAttribute(i,t.createScript(s,i));return}e.setAttribute(i,s)}})();function wf(t){let e=t.getAttribute("is");if(e&&gf[e]){let r=t;for(r.removeAttribute("is"),t=r.ownerDocument.createElement(e),r.parentNode.replaceChild(t,r),t.appendChild(r);r.attributes.length;){const{name:i}=r.attributes[0];yf(t,r,i),r.removeAttribute(i)}}return t}function tl(t,e){let r=e.parentInfo&&tl(t,e.parentInfo);if(r){for(let i=r.firstChild,s=0;i;i=i.nextSibling)if(e.parentIndex===s++)return i}else return t}function xf(t,e,r,i){i.id&&(e[i.id]=r)}function Pf(t,e,r){if(r.events&&r.events.length)for(let i=0,s=r.events,o;i<s.length&&(o=s[i]);i++)t._addMethodEventListenerToNode(e,o.name,o.value,t)}function Ef(t,e,r,i){r.templateInfo&&(e._templateInfo=r.templateInfo,e._parentTemplateInfo=i)}function Cf(t,e,r){return t=t._methodHost||t,function(s){t[r]?t[r](s,s.detail):console.warn("listener method `"+r+"` not defined")}}const Sf=ce(t=>{class e extends t{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),vf(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=wf(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,l=d.nextSibling,i.removeChild(d),d=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,d=o.length,c;u<d&&(c=o[u]);u++){let f=l[u]=tl(a,c);xf(this,a.$,f,c),Ef(this,f,c,s),Pf(this,f,c)}return a=a,a}_addMethodEventListenerToNode(i,s,o,n){n=n||i;let a=Cf(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 qt=0;const Wt=[],R={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Va="__computeInfo",df=/[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 Mt(r,e,t,i,s,o){if(e){let n=!1;const a=qt++;for(let l in t){let d=s?Qe(l):l,u=e[d];if(u)for(let h=0,f=u.length,m;h<f&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Ss(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,t,i,m.info,s,o),n=!0)}return n}return!1}function uf(r,e,t,i,s,o,n,a){let l=!1,d=n?Qe(i):i,u=e[d];if(u)for(let h=0,f=u.length,m;h<f&&(m=u[h]);h++)(!m.info||m.info.lastRun!==t)&&(!n||Ss(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(r,i,s,o,m.info,n,a),l=!0);return l}function Ss(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&Vc(t,r))||!!(e.wildcard&&Nr(t,r))}else return!0}function zo(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 hf(r,e,t,i,s){let o=r[R.NOTIFY],n,a=qt++;for(let d in e)e[d]&&(o&&uf(r,o,a,d,t,i,s)||s&&cf(r,d,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function cf(r,e,t){let i=Qe(e);if(i!==e){let s=Gr(i)+"-changed";return Ua(r,s,t[e],e),!0}return!1}function Ua(r,e,t,i){let s={value:t,queueProperty:!0};i&&(s.path=i),Ye(r).dispatchEvent(new CustomEvent(e,{detail:s}))}function ff(r,e,t,i,s,o){let a=(o?Qe(e):e)!=e?e:null,l=a?ge(r,a):r.__data[e];a&&l===void 0&&(l=t[e]),Ua(r,s.eventName,l,a)}function pf(r,e,t,i,s){let o,n=r.detail,a=n&&n.path;a?(i=kr(t,i,a),o=n&&n.value):o=r.currentTarget[t],o=s?!o:o,(!e[R.READ_ONLY]||!e[R.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function mf(r,e,t,i,s){let o=r.__data[e];Or&&(o=Or(o,s.attrName,"attribute",r)),r._propertyToAttribute(e,s.attrName,o)}function _f(r,e,t,i){let s=r[R.COMPUTE];if(s)if(Nc){qt++;const o=bf(r),n=[];for(let l in e)Fo(l,s,n,o,i);let a;for(;a=n.shift();)$a(r,"",e,t,a)&&Fo(a.methodInfo,s,n,o,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let o=e;for(;Mt(r,s,o,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),o=r.__dataPending,r.__dataPending=null}}const gf=(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)},Fo=(r,e,t,i,s)=>{const o=s?Qe(r):r,n=e[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==qt&&(!s||Ss(r,l.trigger))&&(l.info.lastRun=qt,gf(l.info,t,i))}};function bf(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[R.COMPUTE];let{counts:i,ready:s,total:o}=vf(r),n;for(;n=s.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--i[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function vf(r){const e=r[Va],t={},i=r[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 $a(r,e,t,i,s){let o=Yi(r,e,t,i,s);if(o===Wt)return!1;let n=s.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,o,!0):(r[n]=o,!1)}function yf(r,e,t){let i=r.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];Nr(o,e)?(s=kr(o,n,e),r._setPendingPropertyOrPath(s,t,!0,!0)):Nr(n,e)&&(s=kr(n,o,e),r._setPendingPropertyOrPath(s,t,!0,!0))}}}function ci(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),Cf(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||Gr(s)+"-changed",a.listenerNegate=u}let l=e.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,wf(r,e,a,u,l)}}function wf(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=Ga(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:xf,info:n,trigger:l})}}}function xf(r,e,t,i,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=t[e];e=kr(d.source,l.target,e),a._setPendingPropertyOrPath(e,u,!1,!0)&&r._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(r,d,e,t,i,o);u!==Wt&&Pf(r,a,l,d,u)}}function Pf(r,e,t,i,s){if(s=Ef(e,s,t,i),Or&&(s=Or(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[R.READ_ONLY]||!e[R.READ_ONLY][o])&&e._setPendingProperty(o,s)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,o,s)}}function Ef(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 Cf(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function Sf(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 d=a[l];Af(n,d),Tf(n,r,d)}n.__dataHost=r}}function Af(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=Ye(r)),r[o]=e.literal)}}function Tf(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(s){pf(s,e,t.target,i.source,i.negate)})}}function Vo(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 Yi(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===Wt?Wt:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const If=[],ja="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Of="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Nf="(?:'(?:[^'\\\\]|\\\\.)*')",kf='(?:"(?:[^"\\\\]|\\\\.)*")',Mf="(?:"+Nf+"|"+kf+")",Uo="(?:("+ja+"|"+Of+"|"+Mf+")\\s*)",Lf="(?:"+Uo+"(?:,\\s*"+Uo+")*)",Bf="(?:\\(\\s*(?:"+Lf+"?)\\)\\s*)",Rf="("+ja+"\\s*"+Bf+"?)",Df="(\\[\\[|{{)\\s*",Hf="(?:]]|}})",zf="(?:(!)\\s*)?",Ff=Df+zf+Rf+Hf,$o=new RegExp(Ff,"g");function jo(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:If};if(e[2].trim()){let s=e[2].replace(/\\,/g,",").split(",");return Vf(s,i)}else return i}return null}function Vf(r,e){return e.args=r.map(function(t){let i=Ga(t);return i.literal||(e.static=!1),i},this),e}function Ga(r){let e=r.trim().replace(/,/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=Qe(e),t.structured=qi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Go(r,e,t){let i=ge(r,t);return i===void 0&&(i=e[t]),i}function qa(r,e,t,i){const s={indexSplices:i};Gi&&!r._overrideLegacyUndefined&&(e.splices=s),r.notifyPath(t+".splices",s),r.notifyPath(t+".length",e.length),Gi&&!r._overrideLegacyUndefined&&(s.indexSplices=[])}function Ot(r,e,t,i,s,o){qa(r,e,t,[{index:i,addedCount:s,removed:o,object:e,type:"splice"}])}function Uf(r){return r[0].toUpperCase()+r.substring(1)}const $f=de(r=>{const e=lf(Jc(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 R}_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(Nt.length){let s=Nt[Nt.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[R.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==R.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,R.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,R.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,R.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,R.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||Qe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ge(this,s);if(s=Ro(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return yf(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=Ye(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&qi(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[R.NOTIFY]&&this[R.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[R.READ_ONLY]||!this[R.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;_f(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),Mt(this,this[R.REFLECT],o,n,a),Mt(this,this[R.OBSERVE],o,n,a),l&&hf(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[R.PROPAGATE]&&Mt(this,this[R.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,u)=>{Mt(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=kt(s),o=kt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=kt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=ge(this,s,n);qa(this,a,n.path,o)}get(s,o){return ge(o||this,s)}set(s,o,n){n?Ro(n,s,o):(!this[R.READ_ONLY]||!this[R.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=ge(this,s,n),l=a.length,d=a.push(...o);return o.length&&Ot(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=ge(this,s,o),a=!!n.length,l=n.pop();return a&&Ot(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=ge(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let u;return arguments.length===2?u=d.splice(o):u=d.splice(o,n,...a),(a.length||u.length)&&Ot(this,d,l.path,o,a.length,u),u}shift(s){let o={path:""},n=ge(this,s,o),a=!!n.length,l=n.shift();return a&&Ot(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=ge(this,s,n),l=a.unshift(...o);return o.length&&Ot(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=ge(this,s,a),n=a.path}else Array.isArray(s)?n=kt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,R.READ_ONLY),o&&(this["_set"+Uf(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,R.OBSERVE,{fn:zo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,R.OBSERVE,{fn:zo,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=fi(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Vo(this,n,R.OBSERVE,Yi,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,R.NOTIFY,{fn:ff,info:{eventName:Gr(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,R.REFLECT,{fn:mf,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=fi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Vo(this,a,R.COMPUTE,$a,s,n);hi(this,Va)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:f,wildcard:m,value:_,literal:g}=s[d];if(!g)if(m){const v=Nr(h,o),w=Go(a,n,v?o:h);_={path:v?o:h,value:w,base:v?ge(a,h):w}}else _=f?Go(a,n,h):a[h];if(Gi&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return Wt;l[d]=_}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,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,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),Nt.push(this);let n=super._stampTemplate(s,o);if(Nt.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,Sf(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 d=o.childNodes;for(let u=0;u<d.length;u++){let h=d[u];Ye(Ye(h).parentNode).removeChild(h)}}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=jo(l)||" ",ci(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let u=a,h="property";df.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let f=jo(d);return f&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=Ba(a)),ci(this,o,n,h,a,d,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,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";No&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(kc&&u)f&&(o.hostProps=Object.assign(o.hostProps||{},f),No||(n.parentInfo.noted=!0));else{let m="{";for(let _ in f){let g=[{mode:m,source:_,dependencies:[_],hostProp:!0}];ci(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=$o.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),f=!1,m="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(m=h.substring(_+2),h=h.substring(0,_),f=!0);let g=fi(h),v=[];if(g){let{args:w,methodName:y}=g;for(let T=0;T<w.length;T++){let C=w[T];C.literal||v.push(C)}let E=o.dynamicFns;(E&&E[y]||g.static)&&(v.push(y),g.dynamicFn=!0)}else v.push(h);n.push({source:h,mode:d,negate:u,customEvent:f,signature:g,dependencies:v,event:m}),a=$o.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let u;return o.signature?u=Yi(s,n,a,l,o.signature):n!=o.source?u=ge(s,o.source):d&&qi(n)?u=ge(s,n):u=s.__data[n],o.negate&&(u=!u),u}}return t}),Nt=[];/**
|
|
1570
|
+
*/let Jt=0;const Kt=[],H={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},rl="__computeInfo",Af=/[A-Z]/;function vi(t,e,r){let i=t[e];if(!i)i=t[e]={};else if(!t.hasOwnProperty(e)&&(i=t[e]=Object.create(t[e]),r))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 Ht(t,e,r,i,s,o){if(e){let n=!1;const a=Jt++;for(let l in r){let u=s?st(l):l,d=e[u];if(d)for(let c=0,f=d.length,p;c<f&&(p=d[c]);c++)(!p.info||p.info.lastRun!==a)&&(!s||Ms(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(t,l,r,i,p.info,s,o),n=!0)}return n}return!1}function Tf(t,e,r,i,s,o,n,a){let l=!1,u=n?st(i):i,d=e[u];if(d)for(let c=0,f=d.length,p;c<f&&(p=d[c]);c++)(!p.info||p.info.lastRun!==r)&&(!n||Ms(i,p.trigger))&&(p.info&&(p.info.lastRun=r),p.fn(t,i,s,o,p.info,n,a),l=!0);return l}function Ms(t,e){if(e){let r=e.name;return r==t||!!(e.structured&&nf(r,t))||!!(e.wildcard&&Hr(r,t))}else return!0}function qo(t,e,r,i,s){let o=typeof s.method=="string"?t[s.method]:s.method,n=s.property;o?o.call(t,t.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function If(t,e,r,i,s){let o=t[H.NOTIFY],n,a=Jt++;for(let u in e)e[u]&&(o&&Tf(t,o,a,u,r,i,s)||s&&Of(t,u,r))&&(n=!0);let l;n&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Of(t,e,r){let i=st(e);if(i!==e){let s=Kr(i)+"-changed";return il(t,s,r[e],e),!0}return!1}function il(t,e,r,i){let s={value:r,queueProperty:!0};i&&(s.path=i),Qe(t).dispatchEvent(new CustomEvent(e,{detail:s}))}function Nf(t,e,r,i,s,o){let a=(o?st(e):e)!=e?e:null,l=a?ve(t,a):t.__data[e];a&&l===void 0&&(l=r[e]),il(t,s.eventName,l,a)}function kf(t,e,r,i,s){let o,n=t.detail,a=n&&n.path;a?(i=zr(r,i,a),o=n&&n.value):o=t.currentTarget[r],o=s?!o:o,(!e[H.READ_ONLY]||!e[H.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Lf(t,e,r,i,s){let o=t.__data[e];Dr&&(o=Dr(o,s.attrName,"attribute",t)),t._propertyToAttribute(e,s.attrName,o)}function Mf(t,e,r,i){let s=t[H.COMPUTE];if(s)if(Xh){Jt++;const o=Rf(t),n=[];for(let l in e)Yo(l,s,n,o,i);let a;for(;a=n.shift();)sl(t,"",e,r,a)&&Yo(a.methodInfo,s,n,o,i);Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let o=e;for(;Ht(t,s,o,r,i);)Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const Bf=(t,e,r)=>{let i=0,s=e.length-1,o=-1;for(;i<=s;){const n=i+s>>1,a=r.get(e[n].methodInfo)-r.get(t.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,t)},Yo=(t,e,r,i,s)=>{const o=s?st(t):t,n=e[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Jt&&(!s||Ms(t,l.trigger))&&(l.info.lastRun=Jt,Bf(l.info,r,i))}};function Rf(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const r=t[H.COMPUTE];let{counts:i,ready:s,total:o}=Df(t),n;for(;n=s.shift();){e.set(n,e.size);const a=r[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--i[u]===0&&s.push(u)})}o!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}function Df(t){const e=t[rl],r={},i=t[H.COMPUTE],s=[];let o=0;for(let n in e){const a=e[n];o+=r[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||s.push(n);return{counts:r,ready:s,total:o}}function sl(t,e,r,i,s){let o=rs(t,e,r,i,s);if(o===Kt)return!1;let n=s.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,o,!0):(t[n]=o,!1)}function Hf(t,e,r){let i=t.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];Hr(o,e)?(s=zr(o,n,e),t._setPendingPropertyOrPath(s,r,!0,!0)):Hr(n,e)&&(s=zr(n,o,e),t._setPendingPropertyOrPath(s,r,!0,!0))}}}function yi(t,e,r,i,s,o,n){r.bindings=r.bindings||[];let a={kind:i,target:s,parts:o,literal:n,isCompound:o.length!==1};if(r.bindings.push(a),$f(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Kr(s)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,zf(t,e,a,d,l)}}function zf(t,e,r,i,s){if(!i.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let o=i.dependencies,n={index:s,binding:r,part:i,evaluator:t};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=nl(l),l.wildcard=!0),t._addTemplatePropertyEffect(e,l.rootProperty,{fn:Ff,info:n,trigger:l})}}}function Ff(t,e,r,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 d=r[e];e=zr(u.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&t._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(t,u,e,r,i,o);d!==Kt&&Vf(t,a,l,u,d)}}function Vf(t,e,r,i,s){if(s=Uf(e,s,r,i),Dr&&(s=Dr(s,r.target,r.kind,e)),r.kind=="attribute")t._valueToNodeAttribute(e,s,r.target);else{let o=r.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[H.READ_ONLY]||!e[H.READ_ONLY][o])&&e._setPendingProperty(o,s)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,s)}}function Uf(t,e,r,i){if(r.isCompound){let s=t.__dataCompoundStorage[r.target];s[i.compoundIndex]=e,e=s.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(e=e==null?"":e),e}function $f(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function jf(t,e){let{nodeList:r,nodeInfoList:i}=e;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],n=r[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Gf(n,u),Wf(n,t,u)}n.__dataHost=t}}function Gf(t,e){if(e.isCompound){let r=t.__dataCompoundStorage||(t.__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;r[o]=s,e.literal&&e.kind=="property"&&(o==="className"&&(t=Qe(t)),t[o]=e.literal)}}function Wf(t,e,r){if(r.listenerEvent){let i=r.parts[0];t.addEventListener(r.listenerEvent,function(s){kf(s,e,r.target,i.source,i.negate)})}}function Xo(t,e,r,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||t._addPropertyEffect(l.rootProperty,r,{fn:i,info:n,trigger:l});return o&&t._addPropertyEffect(e.methodName,r,{fn:i,info:n}),n}function rs(t,e,r,i,s){let o=t._methodHost||t,n=o[s.methodName];if(n){let a=t._marshalArgs(s.args,e,r);return a===Kt?Kt:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const qf=[],ol="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Yf="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Xf="(?:'(?:[^'\\\\]|\\\\.)*')",Zf='(?:"(?:[^"\\\\]|\\\\.)*")',Jf="(?:"+Xf+"|"+Zf+")",Zo="(?:("+ol+"|"+Yf+"|"+Jf+")\\s*)",Kf="(?:"+Zo+"(?:,\\s*"+Zo+")*)",Qf="(?:\\(\\s*(?:"+Kf+"?)\\)\\s*)",ep="("+ol+"\\s*"+Qf+"?)",tp="(\\[\\[|{{)\\s*",rp="(?:]]|}})",ip="(?:(!)\\s*)?",sp=tp+ip+ep+rp,Jo=new RegExp(sp,"g");function Ko(t){let e="";for(let r=0;r<t.length;r++){let i=t[r].literal;e+=i||""}return e}function wi(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let i={methodName:e[1],static:!0,args:qf};if(e[2].trim()){let s=e[2].replace(/\\,/g,",").split(",");return op(s,i)}else return i}return null}function op(t,e){return e.args=t.map(function(r){let i=nl(r);return i.literal||(e.static=!1),i},this),e}function nl(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':r.value=e.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(e),r.literal=!0;break}return r.literal||(r.rootProperty=st(e),r.structured=es(e),r.structured&&(r.wildcard=e.slice(-2)==".*",r.wildcard&&(r.name=e.slice(0,-2)))),r}function Qo(t,e,r){let i=ve(t,r);return i===void 0&&(i=e[r]),i}function al(t,e,r,i){const s={indexSplices:i};Qi&&!t._overrideLegacyUndefined&&(e.splices=s),t.notifyPath(r+".splices",s),t.notifyPath(r+".length",e.length),Qi&&!t._overrideLegacyUndefined&&(s.indexSplices=[])}function Mt(t,e,r,i,s,o){al(t,e,r,[{index:i,addedCount:s,removed:o,object:e,type:"splice"}])}function np(t){return t[0].toUpperCase()+t.substring(1)}const ap=ce(t=>{const e=Sf(_f(t));class r 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 H}_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(Bt.length){let s=Bt[Bt.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[H.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==H.READ_ONLY);let a=vi(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=vi(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,H.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,H.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,H.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,H.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||st(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ve(this,s);if(s=jo(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return Hf(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=Qe(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&es(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[H.NOTIFY]&&this[H.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[H.READ_ONLY]||!this[H.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;Mf(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),Ht(this,this[H.REFLECT],o,n,a),Ht(this,this[H.OBSERVE],o,n,a),l&&If(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[H.PROPAGATE]&&Ht(this,this[H.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(u,d)=>{Ht(this,s.propertyEffects,u,n,d,s.nodeList);for(let c=s.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,n,d)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=Dt(s),o=Dt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=Dt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=ve(this,s,n);al(this,a,n.path,o)}get(s,o){return ve(o||this,s)}set(s,o,n){n?jo(n,s,o):(!this[H.READ_ONLY]||!this[H.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=ve(this,s,n),l=a.length,u=a.push(...o);return o.length&&Mt(this,a,n.path,l,o.length,[]),u}pop(s){let o={path:""},n=ve(this,s,o),a=!!n.length,l=n.pop();return a&&Mt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},u=ve(this,s,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let d;return arguments.length===2?d=u.splice(o):d=u.splice(o,n,...a),(a.length||d.length)&&Mt(this,u,l.path,o,a.length,d),d}shift(s){let o={path:""},n=ve(this,s,o),a=!!n.length,l=n.shift();return a&&Mt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=ve(this,s,n),l=a.unshift(...o);return o.length&&Mt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=ve(this,s,a),n=a.path}else Array.isArray(s)?n=Dt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,H.READ_ONLY),o&&(this["_set"+np(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,H.OBSERVE,{fn:qo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,H.OBSERVE,{fn:qo,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=wi(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Xo(this,n,H.OBSERVE,rs,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,H.NOTIFY,{fn:Nf,info:{eventName:Kr(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,H.REFLECT,{fn:Lf,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=wi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Xo(this,a,H.COMPUTE,sl,s,n);vi(this,rl)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let u=0,d=s.length;u<d;u++){let{name:c,structured:f,wildcard:p,value:_,literal:b}=s[u];if(!b)if(p){const w=Hr(c,o),y=Qo(a,n,w?o:c);_={path:w?o:c,value:y,base:w?ve(a,c):y}}else _=f?Qo(a,n,c):a[c];if(Qi&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return Kt;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),Bt.push(this);let n=super._stampTemplate(s,o);if(Bt.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,jf(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 d=0;d<u.length;d++){let c=u[d];Qe(Qe(c).parentNode).removeChild(c)}}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=Ko(l)||" ",yi(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 d=a,c="property";Af.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let f=Ko(u);return f&&c=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),c=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),c==="property"&&(a=Za(a)),yi(this,o,n,c,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,d=l.localName==="dom-if",c=l.localName==="dom-repeat";zo&&(d||c)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let f=u.hostProps;if(Zh&&d)f&&(o.hostProps=Object.assign(o.hostProps||{},f),zo||(n.parentInfo.noted=!0));else{let p="{";for(let _ in f){let b=[{mode:p,source:_,dependencies:[_],hostProp:!0}];yi(this,o,n,"property","_host_"+_,b)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=Jo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),f=!1,p="",_=-1;u=="{"&&(_=c.indexOf("::"))>0&&(p=c.substring(_+2),c=c.substring(0,_),f=!0);let b=wi(c),w=[];if(b){let{args:y,methodName:v}=b;for(let T=0;T<y.length;T++){let x=y[T];x.literal||w.push(x)}let C=o.dynamicFns;(C&&C[v]||b.static)&&(w.push(v),b.dynamicFn=!0)}else w.push(c);n.push({source:c,mode:u,negate:d,customEvent:f,signature:b,dependencies:w,event:p}),a=Jo.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 d;return o.signature?d=rs(s,n,a,l,o.signature):n!=o.source?d=ve(s,o.source):u&&es(n)?d=ve(s,n):d=s.__data[n],o.negate&&(d=!d),d}}return r}),Bt=[];/**
|
|
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
|
|
1586
|
+
*/function lp(t){const e={};for(let r in t){const i=t[r];e[r]=typeof i=="function"?{type:i}:i}return e}const up=ce(t=>{const e=Qa(t);function r(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=lp(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=r(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=r(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
|
|
1596
|
+
*/const dp="3.5.2",en=window.ShadyCSS&&window.ShadyCSS.cssBuild,cp=ce(t=>{const e=up(ap(t));function r(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,d,c){if(!en){const f=u.content.querySelectorAll("style"),p=qa(u),_=of(d),b=u.content.firstElementChild;for(let y=0;y<_.length;y++){let v=_[y];v.textContent=l._processStyleText(v.textContent,c),u.content.insertBefore(v,b)}let w=0;for(let y=0;y<p.length;y++){let v=p[y],C=f[w];C!==v?(v=v.cloneNode(!0),C.parentNode.insertBefore(v,C)):w++,v.textContent=l._processStyleText(v.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),Jh&&en&&$h){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&&(!Ki||Gh)&&(u=Zt.import(l,"template"),Ki&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return dp}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):Wh||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)s(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let f=0;f<u.length;f++)c._createMethodObserver(u[f],d)}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 d=Zt.import(this.is);this._importPath=d&&d.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=jh,this.importPath=this.constructor.importPath;let u=r(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let f=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,f,!0):this[d]=f}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Ns(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,f=c?$t(c):"";o(this,d,u,f),this.prototype._bindTemplate(d)}}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 d=Qe(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Yh&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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,d){return!d&&this.importPath&&(d=$t(this.importPath)),$t(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return qh&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,u,d,c)}}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
|
|
1604
|
+
*/const tn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class ll{constructor(e,r){dl(e,r);const i=r.reduce((s,o,n)=>s+ul(o)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function ul(t){if(t instanceof ll)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function hp(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof ll)return ul(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const ir=function(e,...r){dl(e,r);const i=document.createElement("template");let s=r.reduce((o,n,a)=>o+hp(n)+e[a+1],e[0]);return tn&&(s=tn.createHTML(s)),i.innerHTML=s,i},dl=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.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
|
|
1612
|
+
*/const sr=cp(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
|
|
1616
|
+
*/const De=[];function is(t,e,r=t.getAttribute("dir")){e?t.setAttribute("dir",e):r!=null&&t.removeAttribute("dir")}function ss(){return document.documentElement.getAttribute("dir")}function fp(){const t=ss();De.forEach(e=>{is(e,t)})}const pp=new MutationObserver(fp);pp.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Qr=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:r=>r||"",toAttribute:r=>r===""?null:r}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),is(this,ss(),null))}attributeChangedCallback(r,i,s){if(super.attributeChangedCallback(r,i,s),r!=="dir")return;const o=ss(),n=s===o&&De.indexOf(this)===-1,a=!s&&i&&De.indexOf(this)===-1;n||a?(this.__subscribe(),is(this,o,s)):s!==o&&i===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=De.includes(this),this.__unsubscribe()}_valueToNodeAttribute(r,i,s){s==="dir"&&i===""&&!r.hasAttribute("dir")||super._valueToNodeAttribute(r,i,s)}_attributeToProperty(r,i,s){r==="dir"&&!i?this.dir="":super._attributeToProperty(r,i,s)}__subscribe(){De.includes(this)||De.push(this)}__unsubscribe(){De.includes(this)&&De.splice(De.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
|
|
1620
|
+
*/const mp=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",r=>{r.target===this&&r.preventDefault()}),this.addEventListener("click",r=>{r.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
|
|
1624
|
+
*/const _p=V`
|
|
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
|
-
*/
|
|
1693
|
+
*/pe("vaadin-input-container",_p,{moduleId:"vaadin-input-container-styles"});class gp extends mp(Jr(Qr(sr))){static get is(){return"vaadin-input-container"}static get template(){return ir`
|
|
1694
1694
|
<slot name="prefix"></slot>
|
|
1695
1695
|
<slot></slot>
|
|
1696
1696
|
<slot name="suffix"></slot>
|
|
1697
|
-
`}}
|
|
1697
|
+
`}}At(gp);/**
|
|
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
|
|
1701
|
+
*/const bp=t=>class extends t{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(r,i,s){r==="hidden"&&s!==null?this.index=void 0:super.attributeChangedCallback(r,i,s)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const r=this._owner.getAttribute("dir");r&&this.setAttribute("dir",r)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const r={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,r)}__rendererOrItemChanged(r,i,s){s===void 0||i===void 0||(this._oldRenderer!==r&&(this.innerHTML="",delete this._$litPart$),r&&(this._oldRenderer=r,this.requestContentUpdate()))}__updateLabel(r,i){i||(this.textContent=r)}};/**
|
|
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
|
|
1705
|
+
*/class vp extends bp(Jr(Qr(sr))){static get template(){return ir`
|
|
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"}}
|
|
1719
|
+
`}static get is(){return"vaadin-combo-box-item"}}At(vp);/**
|
|
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,51 +1724,51 @@ 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
|
|
1727
|
+
*/let os=!1,yp=[],cl=[];function wp(){os=!0,requestAnimationFrame(function(){os=!1,xp(yp),setTimeout(function(){Pp(cl)})})}function xp(t){for(;t.length;)hl(t.shift())}function Pp(t){for(let e=0,r=t.length;e<r;e++)hl(t.shift())}function hl(t){const e=t[0],r=t[1],i=t[2];try{r.apply(e,i)}catch(s){setTimeout(()=>{throw s})}}function Ep(t,e,r){os||wp(),cl.push([t,e,r])}/**
|
|
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
|
|
1731
|
+
*/const ei=t=>t.test(navigator.userAgent),ns=t=>t.test(navigator.platform),Cp=t=>t.test(navigator.vendor);ei(/Android/u);ei(/Chrome/u)&&Cp(/Google Inc/u);ei(/Firefox/u);const Sp=ns(/^iPad/u)||ns(/^Mac/u)&&navigator.maxTouchPoints>1,Ap=ns(/^iPhone/u),Tp=Ap||Sp,Ip=ei(/^((?!chrome|android).)*safari/iu),as=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
|
|
1732
1732
|
* @license
|
|
1733
1733
|
* Copyright (c) 2017 Anton Korzunov
|
|
1734
1734
|
* SPDX-License-Identifier: MIT
|
|
1735
|
-
*/let
|
|
1735
|
+
*/let at=new WeakMap,_r=new WeakMap,gr={},xi=0;const rn=t=>t&&t.nodeType===Node.ELEMENT_NODE,Pi=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},Op=(t,e)=>rn(t)?e.map(r=>{if(!rn(r))return Pi(r,"is not a valid element"),null;let i=r;for(;i&&i!==t;){if(t.contains(i))return r;i=i.getRootNode().host}return Pi(r,"is not contained inside",t),null}).filter(r=>!!r):(Pi(t,"is not a valid element"),[]),Np=(t,e,r,i)=>{const s=Op(e,Array.isArray(t)?t:[t]);gr[r]||(gr[r]=new WeakMap);const o=gr[r],n=[],a=new Set,l=new Set(s),u=c=>{if(!c||a.has(c))return;a.add(c);const f=c.assignedSlot;f&&u(f),u(c.parentNode||c.host)};s.forEach(u);const d=c=>{if(!c||l.has(c))return;const f=c.shadowRoot;(f?[...c.children,...f.children]:[...c.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))d(_);else{const b=_.getAttribute(i),w=b!==null&&b!=="false",y=(at.get(_)||0)+1,v=(o.get(_)||0)+1;at.set(_,y),o.set(_,v),n.push(_),y===1&&w&&_r.set(_,!0),v===1&&_.setAttribute(r,"true"),w||_.setAttribute(i,"true")}})};return d(e),a.clear(),xi+=1,()=>{n.forEach(c=>{const f=at.get(c)-1,p=o.get(c)-1;at.set(c,f),o.set(c,p),f||(_r.has(c)?_r.delete(c):c.removeAttribute(i)),p||c.removeAttribute(r)}),xi-=1,xi||(at=new WeakMap,at=new WeakMap,_r=new WeakMap,gr={})}},kp=(t,e=document.body,r="data-aria-hidden")=>{const i=Array.from(Array.isArray(t)?t:[t]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),Np(i,e,r,"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
|
|
1739
|
+
*/class Lp{constructor(e,r){this.host=e,this.callback=typeof r=="function"?r:()=>e}showModal(){const e=this.callback();this.__showOthers=kp(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
|
|
1743
|
+
*/let Bs=!1;window.addEventListener("keydown",()=>{Bs=!0},{capture:!0});window.addEventListener("mousedown",()=>{Bs=!1},{capture:!0});function ls(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Rs(){return Bs}function Mp(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none")return!0;const r=window.getComputedStyle(t);return r.visibility==="hidden"||r.display==="none"}function Bp(t,e){const r=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return r===0||i===0?i>r:r>i}function Rp(t,e){const r=[];for(;t.length>0&&e.length>0;)Bp(t[0],e[0])?r.push(e.shift()):r.push(t.shift());return r.concat(t,e)}function us(t){const e=t.length;if(e<2)return t;const r=Math.ceil(e/2),i=us(t.slice(0,r)),s=us(t.slice(r));return Rp(i,s)}function fl(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function pl(t){return t.getRootNode().activeElement===t}function Dp(t){if(!fl(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}function ml(t,e){if(t.nodeType!==Node.ELEMENT_NODE||Mp(t))return!1;const r=t,i=Dp(r);let s=i>0;i>=0&&e.push(r);let o=[];return r.localName==="slot"?o=r.assignedNodes({flatten:!0}):o=(r.shadowRoot||r).children,[...o].forEach(n=>{s=ml(n,e)||s}),s}function Hp(t){const e=[];return ml(t,e)?us(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
|
|
1747
|
+
*/class zp{saveFocus(e){this.focusNode=e||ls()}restoreFocus(e){const r=this.focusNode;if(!r)return;const i=e?e.preventScroll:!1;ls()===document.body?setTimeout(()=>r.focus({preventScroll:i})):r.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
|
|
1751
|
+
*/const Ei=[];class Fp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Hp(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(pl).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.");Ei.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ei.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Ei).pop()&&e.key==="Tab"){e.preventDefault();const r=e.shiftKey;this.__focusNextElement(r)}}__focusNextElement(e=!1){const r=this.__focusableElements,i=e?-1:1,s=this.__focusedElementIndex,o=(r.length+s+i)%r.length,n=r[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/
|
|
1755
|
-
*/const
|
|
1755
|
+
*/const ti=ce(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(r=>{r.hostConnected&&r.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(r=>{r.hostDisconnected&&r.hostDisconnected()})}addController(r){this.__controllers.add(r),this.$!==void 0&&this.isConnected&&r.hostConnected&&r.hostConnected()}removeController(r){this.__controllers.delete(r)}});/**
|
|
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
|
|
1759
|
+
*/const Vp=t=>class extends ti(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Lp(this),this.__focusTrapController=new Fp(this),this.__focusRestorationController=new zp}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 r=!Rs();this.__focusRestorationController.restoreFocus({preventScroll:r})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const r=ls();return r===document.body||this._deepContains(r)}_deepContains(r){if(this.contains(r))return!0;let i=r;const s=r.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
|
|
1763
|
+
*/const _l=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,e)=>t.__zIndex-e.__zIndex||0),ds=()=>_l().filter(t=>t.$.overlay),Up=t=>t===ds().pop(),$p=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Up(this)}bringToFront(){let r="";const i=_l().filter(s=>s!==this).pop();i&&(r=i.__zIndex+1),this.style.zIndex=r,this.__zIndex=r||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ds().forEach(r=>{r!==this&&(r.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const r=ds();let i;for(;(i=r.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
|
|
1767
|
+
*/const jp=t=>class extends Vp($p(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Tp&&(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(r){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const r=window.innerHeight,s=window.innerWidth>r,o=document.documentElement.clientHeight;s&&o>r?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-r}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(r,i,s,o){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==r,l=this._oldRenderer!==void 0;this._oldRenderer=r;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&r&&(a||u||n)&&this.requestContentUpdate()}_modelessChanged(r){r?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(r,i){r?(this._saveFocus(),this._animatedOpening(),Ep(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(r){r&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const r=getComputedStyle(this),i=r.getPropertyValue("animation-name");return!(r.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(r,i){const s=`__${r}Handler`,o=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(r){const i=`__${r}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(r){this._mouseDownInside=r.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(r){this._mouseUpInside=r.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(r){return this._last}_outsideClickListener(r){if(r.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(r))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(r)}_keydownListener(r){if(this._last&&!(this.modeless&&!r.composedPath().includes(this.$.overlay))&&r.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(r)}}};/**
|
|
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
|
|
1771
|
+
*/const Gp=V`
|
|
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
|
|
1834
|
+
*/function Wp(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function Ds(t){return t?new Set(t.split(" ")):new Set}function ri(t){return t?[...t].join(" "):""}function gl(t,e,r){const i=Ds(t.getAttribute(e));i.add(r),t.setAttribute(e,ri(i))}function qp(t,e,r){const i=Ds(t.getAttribute(e));if(i.delete(r),i.size===0){t.removeAttribute(e);return}t.setAttribute(e,ri(i))}function Yp(t){return t.nodeType===Node.TEXT_NODE&&t.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
|
|
1838
|
+
*/function Xp(t,e){let r=null;const i=document.documentElement;function s(){r&&r.disconnect(),r=null}function o(n=!1,a=1){s();const{left:l,top:u,width:d,height:c}=t.getBoundingClientRect();if(n||e(),!d||!c)return;const f=Math.floor(u),p=Math.floor(i.clientWidth-(l+d)),_=Math.floor(i.clientHeight-(u+c)),b=Math.floor(l),y={rootMargin:`${-f}px ${-p}px ${-_}px ${-b}px`,threshold:Math.max(0,Math.min(1,a))||1};let v=!0;function C(T){let x=T[0].intersectionRatio;if(x!==a){if(!v)return o();x===0&&(x=1e-7),o(!1,x)}v=!1}r=new IntersectionObserver(C,y),r.observe(t)}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
|
|
1842
|
+
*/const Ci={start:"top",end:"bottom"},Si={start:"left",end:"right"},sn=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Zp=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Wp(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(r=>{r.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Xp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(r=>{r.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(r,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,sn.unobserve(i),r&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,sn.observe(i))),r){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(r){r.target instanceof Node&&this.contains(r.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const r=this.positionTarget.getBoundingClientRect();if(r.width===0&&r.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(r);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(r,s),n=!s&&o||s&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(r,a,this.noVerticalOverlap,Ci,this,i),u=this.__calculatePositionInOneDimension(r,a,this.noHorizontalOverlap,Si,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(r,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(r,s,o,this.__margins,n,this.noHorizontalOverlap,Si)}__shouldAlignStartVertically(r){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(r,i,s,this.__margins,o,this.noVerticalOverlap,Ci)}__shouldAlignStart(r,i,s,o,n,a,l){const u=s-r[a?l.end:l.start]-o[l.end],d=r[a?l.start:l.end]-o[l.start],c=n?u:d,p=c>(n?d:u)||c>i;return n===p}__adjustBottomProperty(r,i,s){let o;if(r===i.end){if(i.end===Ci.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===Si.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(r,i,s,o,n,a){const l=a?o.start:o.end,u=a?o.end:o.start,d=parseFloat(n.style[l]||getComputedStyle(n)[l]),c=this.__adjustBottomProperty(l,o,d),f=i[a?o.start:o.end]-r[s===a?o.end:o.start],p=c?`${c}px`:`${d+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
|
|
1846
|
+
*/const Jp=t=>class extends Zp(t){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const r=this._comboBox,i=r&&r.getAttribute("dir");i&&this.setAttribute("dir",i)}_shouldCloseOnOutsideClick(r){const i=r.composedPath();return!i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(r){super._mouseDownListener(r),this._shouldCloseOnOutsideClick(r)&&!fl(r.composedPath()[0])&&r.preventDefault()}_updateOverlayWidth(){const r=this.localName;this.style.setProperty(`--_${r}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${r}-width`);i===""?this.style.removeProperty(`--${r}-width`):this.style.setProperty(`--${r}-width`,i)}_setOverlayWidth(r,i){r&&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
|
|
1850
|
+
*/const Kp=V`
|
|
1851
1851
|
#overlay {
|
|
1852
1852
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
1853
1853
|
}
|
|
@@ -1857,21 +1857,21 @@ 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
|
-
`;
|
|
1860
|
+
`;pe("vaadin-combo-box-overlay",[Gp,Kp],{moduleId:"vaadin-combo-box-overlay-styles"});class Qp extends Jp(jp(Qr(Jr(sr)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return ir`
|
|
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
|
-
`}}
|
|
1866
|
+
`}}At(Qp);/**
|
|
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/
|
|
1870
|
-
*/function
|
|
1870
|
+
*/function Vr(t,e){return t.split(".").reduce((r,i)=>r?r[i]:void 0,e)}/**
|
|
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
|
|
1874
|
+
*/let em=0;function bl(){return em++}/**
|
|
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
|
|
1882
|
+
*/let on=0,vl=0;const gt=[];let cs=!1;function tm(){cs=!1;const t=gt.length;for(let e=0;e<t;e++){const r=gt[e];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}gt.splice(0,t),vl+=t}const Cr={after(t){return{run(e){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}},Qt={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},yl={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},hs={run(t){cs||(cs=!0,queueMicrotask(()=>tm())),gt.push(t);const e=on;return on+=1,e},cancel(t){const e=t-vl;if(e>=0){if(!gt[e])throw new Error(`invalid async handle: ${t}`);gt[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
|
|
1890
|
+
*/const er=new Set;class Te{static debounce(e,r,i){return e instanceof Te?e._cancelAsync():e=new Te,e.setConfig(r,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,r){this._asyncModule=e,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,er.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),er.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 wl(t){er.add(t)}function rm(){const t=!!er.size;return er.forEach(e=>{try{e.flush()}catch(r){setTimeout(()=>{throw r})}}),t}const zt=()=>{let t;do t=rm();while(t)};/**
|
|
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,23 +1895,23 @@ 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
|
|
1898
|
+
*/const nn=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),im=nn&&nn[1]>=8,an=3,sm={_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 t=this._virtualCount;return Math.max(0,t-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){t%=this._physicalCount,t<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(t==null){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems((r,i)=>{if(e+=this._getPhysicalSizeIncrement(r),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(t==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((r,i)=>{e<this._scrollBottom&&(t=i),e+=this._getPhysicalSizeIncrement(r)}),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const r=e>=0;if(this._scrollPosition=t,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(r);r?(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,r?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),hs)}},_getReusables(t){let e,r,i;const s=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let u=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,f=this._scrollBottom;for(t?(e=this._physicalStart,r=c-u):(e=this._physicalEnd,r=d-f);i=this._getPhysicalSizeIncrement(e),r-=i,!(s.length>=l||r<=o);)if(t){if(a+s.length+1>=this._virtualCount||u+i>=c-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(t,e){if(!(t&&t.length===0||this._physicalCount===0)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const r=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(r)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const r=this._clamp(this._physicalCount+t,an,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(r<0)){if(r>0){const s=window.performance.now();[].push.apply(this._physicalItems,this._createPool(r));for(let o=0;o<r;o++)this._physicalSizes.push(0);this._physicalCount+=r,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=r),this._update(),this._templateCost=(window.performance.now()-s)/r,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)),yl):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),hs))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(an))},_itemsChanged(t){t.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,Qt))},_iterateItems(t,e){let r,i,s,o;if(arguments.length===2&&e){for(o=0;o<e.length;o++)if(r=e[o],i=this._computeVidx(r),(s=t.call(this,r,i))!=null)return s}else{for(r=this._physicalStart,i=this._virtualStart;r<this._physicalCount;r++,i++)if((s=t.call(this,r,i))!=null)return s;for(r=0;r<this._physicalStart;r++,i++)if((s=t.call(this,r,i))!=null)return s}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(t!==0){this._physicalTop-=t;const e=this._scrollPosition;!im&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||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(t){if(typeof t!="number"||t<0||t>this.items.length-1||(zt(),this._physicalCount===0))return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,r=this._virtualStart,i=0;const s=this._hiddenContentSize;for(;r<t&&i<=s;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,r+=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)},Qt)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp(t,e,r){return Math.min(r,Math.max(e,t))},_debounce(t,e,r){this._debouncers||(this._debouncers={}),this._debouncers[t]=Te.debounce(this._debouncers[t],r,e.bind(this)),wl(this._debouncers[t])}};/**
|
|
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 Vp=1e5,vi=1e3;class al{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 d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(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<vi?(i=e,this._vidxOffset=0):(i=vi,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(),Lt(),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){Lt();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=Pe.debounce(this.__placeholderClearDebouncer,Yt,()=>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"}),Lt(),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(),Lt(),this._debounce("_update",this._update,ss)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Vp)}}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=Pe.debounce(this.__fixInvalidItemPositioningDebouncer,vr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Pe.debounce(this.__scrollReorderDebouncer,vr.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=Pe.debounce(this.__debouncerWheelAnimationFrame,Yt,()=>{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=Pe.debounce(this._debouncerIgnoreNewWheel,vr.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(hp){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=vi,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(al.prototype,Fp);class Up{constructor(e){this.__adapter=new al(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 om=1e5,Ai=1e3;class xl{constructor({createElements:e,updateElement:r,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=r,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 r=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<r?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<r?e<Ai?(i=e,this._vidxOffset=0):(i=Ai,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,r=this.size-1){const i=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=e&&s.__virtualIndex<=r&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))}),this.__afterElementsUpdated(i)}_updateMetrics(e){zt();let r=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])),r+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+r-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+r)/this._physicalAverageCount))}__getBorderBoxHeight(e){const r=getComputedStyle(e),i=parseFloat(r.height)||0;if(r.boxSizing==="border-box")return i;const s=parseFloat(r.paddingBottom)||0,o=parseFloat(r.paddingTop)||0,n=parseFloat(r.borderBottomWidth)||0,a=parseFloat(r.borderTopWidth)||0;return i+s+o+n+a}__updateElement(e,r,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==r||i)&&(this.updateElement(e,r),e.__lastUpdatedIndex=r)}__afterElementsUpdated(e){e.forEach(r=>{const i=r.offsetHeight;if(i===0)r.style.paddingTop=`${this.__placeholderHeight}px`,r.style.opacity="0",r.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Te.debounce(this.__placeholderClearDebouncer,Qt,()=>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 r=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return r?this.scrollTarget.getBoundingClientRect().top-r.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 r,i;if(e>0&&(r=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(r)),this.__size=e,this._itemsChanged({path:"items"}),zt(),e>0){r=Math.min(r,e-1),this.scrollToIndex(r);const s=this.__getIndexScrollOffset(r);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,hs)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,om)}}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 r=this.createElements(e),i=document.createDocumentFragment();return r.forEach(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(i),r}_assignModels(e){const r=[];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),r.push(o))},e),this.__afterElementsUpdated(r)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,r,i,s){s.style.transform=`translateY(${r})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(r=>r.contains(this.elementsContainer.getRootNode().activeElement)||r.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,r){return r.indexOf(e)===r.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,r){return r.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const r=e.detail.element;if(!r)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(r,i)||this.__nextFocusableSiblingMissing(r,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(r,s)?(this._scrollTop+=Math.ceil(r.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(r,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(r.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 r=e>=0,i=this._getReusables(!r);i.indexes.length&&(this._physicalTop=i.physicalTop,r?(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=Te.debounce(this.__fixInvalidItemPositioningDebouncer,Cr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Te.debounce(this.__scrollReorderDebouncer,Cr.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,r=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||r&&!s){const o=r,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 r=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?r*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=r,e.preventDefault();return}r+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Te.debounce(this.__debouncerWheelAnimationFrame,Qt,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(r);this._canScroll(this.scrollTarget,e.deltaX,r)?(e.preventDefault(),this.scrollTarget.scrollTop+=r,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Te.debounce(this._debouncerIgnoreNewWheel,Cr.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,r,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,r,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,r,i)}_canScroll(e,r,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||r>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||r<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),r=Math.max(...this._physicalSizes);return r>Math.min(...this._physicalSizes)?Math.max(0,r-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const r=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),r?window.parseInt(r):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),r=this.__getVisibleElements(),i=this.__getFocusedElement(r)||r[0];if(!i)return;const s=i.__virtualIndex-e,o=r.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(r[n]);else if(o<0)for(let n=r.length+o;n<r.length;n++)this.elementsContainer.insertBefore(r[n],r[0]);if(Ip){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const r=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*r)}else{const i=this._vidxOffset,s=Ai,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=r,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<r&&(this._vidxOffset+=Math.min(r-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(xl.prototype,sm);class nm{constructor(e){this.__adapter=new xl(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,r=this.size-1){this.__adapter.update(e,r)}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/
|
|
1906
|
-
*/const
|
|
1906
|
+
*/const Et=class{toString(){return""}};/**
|
|
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
|
|
1910
|
+
*/const am=t=>class extends t{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 r=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[r.paddingBottom,r.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}-${bl()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",r=>r.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(r){if(!this.__virtualizer||!(this.opened&&r>=0))return;const i=this._visibleItemsCount();let s=r;r>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(r),s=r-i+1):r>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||r!==o.index)return;const n=o.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(r,i,s){return r instanceof Et?!1:s&&r!==void 0&&i!==void 0?Vr(s,r)===Vr(s,i):r===i}__initVirtualizer(){this.__virtualizer=new nm({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(r){r&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(r){r&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(r,i){(r||i)&&this.requestContentUpdate()}__focusedIndexChanged(r,i){r!==i&&this.requestContentUpdate(),r>=0&&!this.loading&&this.scrollIntoView(r)}__rendererChanged(r,i){(r||i)&&this.requestContentUpdate()}__createElements(r){return[...Array(r)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(r,i){const s=this.items[i],o=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);r.setProperties({item:s,index:i,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&o===i}),typeof this.itemClassNameGenerator=="function"?r.className=this.itemClassNameGenerator(s):r.className!==""&&(r.className=""),r.performUpdate&&!r.hasUpdated&&r.performUpdate(),r.id=`${this.__hostTagName}-item-${i}`,r.setAttribute("role",i!==void 0?"option":!1),r.setAttribute("aria-selected",n.toString()),r.setAttribute("aria-posinset",i+1),r.setAttribute("aria-setsize",this.items.length),this.theme?r.setAttribute("theme",this.theme):r.removeAttribute("theme"),s instanceof Et&&this.__requestItemByIndex(i)}__onItemClick(r){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:r.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",r=>{const i=this.scrollTop===0,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&r.deltaY<0||s&&r.deltaY>0)&&r.preventDefault()})}__requestItemByIndex(r){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:r}}))})}_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
|
|
1914
|
+
*/class lm extends am(sr){static get is(){return"vaadin-combo-box-scroller"}static get template(){return ir`
|
|
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
|
-
`}}
|
|
1941
|
+
`}}At(lm);const um=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Sr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function dm(){function t(){return!0}return Pl(t)}function cm(){try{return hm()?!0:fm()?Sr?!pm():!dm():!1}catch(t){return!1}}function hm(){return localStorage.getItem("vaadin.developmentmode.force")}function fm(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function pm(){return!!(Sr&&Object.keys(Sr).map(e=>Sr[e]).filter(e=>e.productionMode).length>0)}function Pl(t,e){if(typeof t!="function")return;const r=um.exec(t.toString());if(r)try{t=new Function(r[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return t(e)}window.Vaadin=window.Vaadin||{};const ln=function(t,e){if(window.Vaadin.developmentMode)return Pl(t,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=cm());function mm(){/*! vaadin-dev-mode:start
|
|
1942
1942
|
(function () {
|
|
1943
1943
|
'use strict';
|
|
1944
1944
|
|
|
@@ -2416,128 +2416,128 @@ try {
|
|
|
2416
2416
|
|
|
2417
2417
|
}());
|
|
2418
2418
|
|
|
2419
|
-
vaadin-dev-mode:end **/}const
|
|
2419
|
+
vaadin-dev-mode:end **/}const _m=function(){if(typeof ln=="function")return ln(mm)};/**
|
|
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(){
|
|
2423
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){_m()};let Ti;const un=new Set,gm=t=>class extends Qr(t){static finalize(){super.finalize();const{is:r}=this;r&&!un.has(r)&&(window.Vaadin.registrations.push(this),un.add(r),window.Vaadin.developmentModeCallback&&(Ti=Te.debounce(Ti,yl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),wl(Ti)))}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
|
|
2427
|
+
*/class bm{constructor(e,r){this.slot=e,this.callback=r,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 r=[];const i=[],s=[];e.length&&(r=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)}),(r.length||i.length||s.length)&&this.callback({addedNodes:r,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
|
|
2431
|
+
*/class Hs extends EventTarget{static generateId(e,r="default"){return`${r}-${e.localName}-${bl()}`}constructor(e,r,i,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:u}=s;this.host=e,this.slotName=r,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||r))}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 r=this.attachDefaultNode();r&&(this.nodes=[r],this.initNode(r))}else this.nodes=e,e.forEach(r=>{this.initAddedNode(r)})}attachDefaultNode(){const{host:e,slotName:r,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(r!==""&&s.setAttribute("slot",r),this.defaultNode=s)),s&&(this.node=s,e.appendChild(s)),s}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(r=>r.nodeType===Node.ELEMENT_NODE&&r.slot===e||r.nodeType===Node.TEXT_NODE&&r.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:r}=this;r&&r(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,r=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(r);this.__slotObserver=new bm(i,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Yp(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
|
|
2435
|
+
*/class vm extends Hs{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 r=this.node;r&&(r.ariaTarget=e)}setContext(e){this.context=e;const r=this.node;r&&(r.context=e)}setManual(e){this.manual=e;const r=this.node;r&&(r.manual=e)}setOpened(e){this.opened=e;const r=this.node;r&&(r.opened=e)}setPosition(e){this.position=e;const r=this.node;r&&(r._position=e)}setShouldShow(e){this.shouldShow=e;const r=this.node;r&&(r.shouldShow=e)}setTarget(e){this.target=e;const r=this.node;r&&(r.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
|
|
2439
|
+
*/const El=ce(t=>class extends t{get _keyboardActive(){return Rs()}ready(){this.addEventListener("focusin",r=>{this._shouldSetFocus(r)&&this._setFocused(!0)}),this.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(r){this.toggleAttribute("focused",r),this.toggleAttribute("focus-ring",r&&this._keyboardActive)}_shouldSetFocus(r){return!0}_shouldRemoveFocus(r){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
|
|
2443
|
+
*/const Cl=ce(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(r){this._setAriaDisabled(r)}_setAriaDisabled(r){r?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
|
|
2447
|
+
*/const ym=t=>class extends Cl(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(r,i){super._disabledChanged(r,i),r?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(r){this.disabled&&r!==-1&&(this._lastTabIndex=r,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
|
|
2451
|
+
*/const wm=ce(t=>class extends El(ym(t)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(r,i){r?(r.disabled=this.disabled,this._addFocusListeners(r),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(r){r.addEventListener("blur",this._boundOnBlur),r.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(r){r.removeEventListener("blur",this._boundOnBlur),r.removeEventListener("focus",this._boundOnFocus)}_onFocus(r){r.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(r){r.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(r){return r.target===this.focusElement}_shouldRemoveFocus(r){return r.target===this.focusElement}_disabledChanged(r,i){super._disabledChanged(r,i),this.focusElement&&(this.focusElement.disabled=r),r&&this.blur()}_tabindexChanged(r){this.__forwardTabIndex(r)}__forwardTabIndex(r){r!==void 0&&this.focusElement&&(this.focusElement.tabIndex=r,r!==-1&&(this.tabindex=void 0)),this.disabled&&r&&(r!==-1&&(this._lastTabIndex=r),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
|
|
2455
|
+
*/const zs=ce(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",r=>{this._onKeyDown(r)}),this.addEventListener("keyup",r=>{this._onKeyUp(r)})}_onKeyDown(r){switch(r.key){case"Enter":this._onEnter(r);break;case"Escape":this._onEscape(r);break}}_onKeyUp(r){}_onEnter(r){}_onEscape(r){}});/**
|
|
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
|
|
2459
|
+
*/const Ii=new WeakMap;function xm(t){return Ii.has(t)||Ii.set(t,new Set),Ii.get(t)}function Pm(t,e){const r=document.createElement("style");r.textContent=t,e===document?document.head.appendChild(r):e.insertBefore(r,e.firstChild)}const Em=ce(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const r=this.getRootNode(),i=xm(r);this.slotStyles.forEach(s=>{i.has(s)||(Pm(s,r),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
|
|
2463
|
+
*/const Fs=ce(t=>class extends t{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(r){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=r)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(r){r.addEventListener("input",this._boundOnInput),r.addEventListener("change",this._boundOnChange)}_removeInputListeners(r){r.removeEventListener("input",this._boundOnInput),r.removeEventListener("change",this._boundOnChange)}_forwardInputValue(r){this.inputElement&&(this._inputElementValue=r!=null?r:"")}_inputElementChanged(r,i){r?this._addInputListeners(r):i&&this._removeInputListeners(i)}_hasInputValueChanged(r,i){(r||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(r){this._setHasInputValue(r),this._onInput(r)}_onInput(r){const i=r.composedPath()[0];this.__userInput=r.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(r){}_toggleHasValue(r){this.toggleAttribute("has-value",r)}_valueChanged(r,i){this._toggleHasValue(this._hasValue),!(r===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(r))}_setHasInputValue(r){const i=r.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
|
|
2467
|
+
*/const Cm=t=>class extends Fs(zs(t)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",r=>this._onClearButtonMouseDown(r)),this.clearElement.addEventListener("click",r=>this._onClearButtonClick(r)))}_onClearButtonClick(r){r.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(r){r.preventDefault(),as||this.inputElement.focus()}_onEscape(r){super._onEscape(r),this.clearButtonVisible&&this.value&&!this.readonly&&(r.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
|
|
2471
|
+
*/const Oi=new Map;function Vs(t){return Oi.has(t)||Oi.set(t,new WeakMap),Oi.get(t)}function Sl(t,e){t&&t.removeAttribute(e)}function Al(t,e){if(!t||!e)return;const r=Vs(e);if(r.has(t))return;const i=Ds(t.getAttribute(e));r.set(t,new Set(i))}function Sm(t,e){if(!t||!e)return;const r=Vs(e),i=r.get(t);!i||i.size===0?t.removeAttribute(e):gl(t,e,ri(i)),r.delete(t)}function Ni(t,e,r={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:i,oldId:s,fromUser:o}=r,n=Vs(e),a=n.get(t);if(!o&&a){s&&a.delete(s),i&&a.add(i);return}o&&(a?i||n.delete(t):Al(t,e),Sl(t,e)),qp(t,e,s);const l=i||ri(a);l&&gl(t,e,l)}function Am(t,e){Al(t,e),Sl(t,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
|
|
2475
|
+
*/class Tm{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,r=!1){const i=r?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,r),r?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?(Am(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Sm(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,r,i){Ni(this.__target,"aria-labelledby",{newId:e,oldId:r,fromUser:i})}__setErrorIdToAriaAttribute(e,r){Ni(this.__target,"aria-describedby",{newId:e,oldId:r,fromUser:!1})}__setHelperIdToAriaAttribute(e,r){Ni(this.__target,"aria-describedby",{newId:e,oldId:r,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
|
|
2479
|
+
*/const Ie=document.createElement("div");Ie.style.position="fixed";Ie.style.clip="rect(0px, 0px, 0px, 0px)";Ie.setAttribute("aria-live","polite");document.body.appendChild(Ie);let br;function Im(t,e={}){const r=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;r==="alert"?(Ie.removeAttribute("aria-live"),Ie.removeAttribute("role"),br=Te.debounce(br,Qt,()=>{Ie.setAttribute("role","alert")})):(br&&br.cancel(),Ie.removeAttribute("role"),Ie.setAttribute("aria-live",r)),Ie.textContent="",setTimeout(()=>{Ie.textContent=t},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
|
|
2483
|
+
*/class Us extends Hs{constructor(e,r,i,s={}){super(e,r,i,dr(Ve({},s),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const r=this.getSlotChild();r&&r!==this.defaultNode?this.__notifyChange(r):(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(r=>{r.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 r=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||r)&&!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
|
|
2487
|
+
*/class Om extends Us{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:r,invalid:i}=this,s=!!(i&&r&&r.trim()!=="");e&&(e.textContent=s?r:"",e.hidden=!s,s&&Im(r,{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
|
|
2491
|
+
*/class Nm extends Us{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 r=this.attachDefaultNode();this.observeNode(r)}}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
|
|
2495
|
+
*/class km extends Us{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 r=this.attachDefaultNode();this.observeNode(r)}}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
|
|
2499
|
+
*/const Lm=ce(t=>class extends ti(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new km(this),this._labelController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-label",r.detail.hasContent)})}get _labelId(){const r=this._labelNode;return r&&r.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(r){this._labelController.setLabel(r)}});/**
|
|
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
|
|
2503
|
+
*/const $s=ce(t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const r=this.checkValidity();return this._setInvalid(!r),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:r}})),r}checkValidity(){return!this.required||!!this.value}_setInvalid(r){this._shouldSetInvalid(r)&&(this.invalid=r)}_shouldSetInvalid(r){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
|
|
2507
|
+
*/const Mm=t=>class extends $s(Lm(ti(t))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Tm(this),this._helperController=new Nm(this),this._errorController=new Om(this),this._errorController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-error-message",r.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",r=>{const{hasContent:i,node:s}=r.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",r=>{const{hasContent:i,node:s}=r.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(r,i){r?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(r){this._fieldAriaController.setAriaLabel(r)}_accessibleNameRefChanged(r){this._fieldAriaController.setLabelId(r,!0)}__labelChanged(r,i){r?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(r){this._errorController.setErrorMessage(r)}_helperTextChanged(r){this._helperController.setHelperText(r)}_ariaTargetChanged(r){r&&this._fieldAriaController.setTarget(r)}_requiredChanged(r){this._fieldAriaController.setRequired(r)}_invalidChanged(r){this._errorController.setInvalid(r),setTimeout(()=>{if(r){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
|
|
2511
|
+
*/const Bm=ce(t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(r){r&&(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(r=>{this._delegateAttribute(r,this[r])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(r=>{this._delegateProperty(r,this[r])})}_delegateAttrsChanged(...r){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,r[s])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,r[s])})}_delegateAttribute(r,i){this.stateTarget&&(r==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(r,i):i?this.stateTarget.setAttribute(r,i):this.stateTarget.removeAttribute(r))}_delegateProperty(r,i){this.stateTarget&&(this.stateTarget[r]=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
|
|
2515
|
+
*/const Tl=ce(t=>class extends Bm($s(Fs(t))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(r=>this[r]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(r){return r.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(r,...i){if(!r)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(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}__isValidConstraint(r){return!!r||r===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
|
|
2519
|
+
*/const Rm=t=>class extends Em(wm(Tl(Mm(Cm(zs(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
2520
2520
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
2521
2521
|
font: inherit;
|
|
2522
2522
|
color: inherit;
|
|
2523
2523
|
}
|
|
2524
|
-
`]}_onFocus(
|
|
2524
|
+
`]}_onFocus(r){super._onFocus(r),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}_addInputListeners(r){super._addInputListeners(r),r.addEventListener("paste",this._boundOnPaste),r.addEventListener("drop",this._boundOnDrop),r.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(r){super._removeInputListeners(r),r.removeEventListener("paste",this._boundOnPaste),r.removeEventListener("drop",this._boundOnDrop),r.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(r){super._onKeyDown(r),this.allowedCharPattern&&!this.__shouldAcceptKey(r)&&r.target===this.inputElement&&(r.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Te.debounce(this._preventInputDebouncer,Cr.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(r){return r.metaKey||r.ctrlKey||!r.key||r.key.length!==1||this.__allowedCharRegExp.test(r.key)}_onPaste(r){if(this.allowedCharPattern){const i=r.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(r.preventDefault(),this._markInputPrevented())}}_onDrop(r){if(this.allowedCharPattern){const i=r.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(r.preventDefault(),this._markInputPrevented())}}_onBeforeInput(r){this.allowedCharPattern&&r.data&&!this.__allowedTextRegExp.test(r.data)&&(r.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(r){if(r)try{this.__allowedCharRegExp=new RegExp(`^${r}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${r}*$`,"u")}catch(i){console.error(i)}}};/**
|
|
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
|
|
2528
|
+
*/class Dm extends Hs{constructor(e,r,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 r=="function"&&r(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
|
|
2532
|
+
*/class Hm{constructor(e,r){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),r.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(r.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=r=>{r.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
|
|
2536
|
+
*/const zm=t=>class extends Tl(t){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
|
|
2540
|
+
*/const Fm=V`
|
|
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
|
|
2557
|
+
*/const Vm=V`
|
|
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
|
|
2595
|
+
*/const Um=V`
|
|
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
|
|
2607
|
+
*/const $m=[Vm,Um,Fm];/**
|
|
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
|
|
2611
|
+
*/function Ur(t,e,r=0){let i=e;for(const s of t.subCaches){const o=s.parentCacheIndex;if(i<=o)break;if(i<=o+s.flatSize)return Ur(s,i-o-1,r+1);i-=s.flatSize}return{cache:t,item:t.items[i],index:i,page:Math.floor(i/t.pageSize),level:r}}function Il({getItemId:t},e,r,i=0,s=0){for(let o=0;o<e.items.length;o++){const n=e.items[o];if(n&&t(n)===t(r))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=Il({getItemId:t},o,r,i+1,n+1);if(a)return a}}function Ol(t,[e,...r],i=0){e===1/0&&(e=t.size-1);const s=t.getFlatIndex(e),o=t.getSubCache(e);return o&&o.flatSize>0&&r.length?Ol(o,r,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
|
|
2615
|
+
*/class js{constructor(e,r,i,s,o){j(this,"context");j(this,"pageSize");j(this,"items",[]);j(this,"pendingRequests",{});j(this,"__subCacheByIndex",{});j(this,"__size",0);j(this,"__flatSize",0);this.context=e,this.pageSize=r,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,r)=>(r.recalculateFlatSize(),e+r.flatSize),0):0}setPage(e,r){const i=e*this.pageSize;r.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 r=new js(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=r,r}getFlatIndex(e){const r=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,s)=>{const o=s.parentCacheIndex;return r>o?i+s.flatSize:i},r)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:r}=Ur(this,e);return r}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:r,index:i}=Ur(this,e);return{cache:r,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 r=this.createSubCache(e);this.context.__controller.__loadCachePage(r,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
|
|
2619
|
+
*/class jm extends EventTarget{constructor(r,{size:i,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:u,dataProviderParams:d}){super();j(this,"host");j(this,"dataProvider");j(this,"dataProviderParams");j(this,"pageSize");j(this,"isExpanded");j(this,"getItemId");j(this,"rootCache");j(this,"placeholder");j(this,"isPlaceholder");this.host=r,this.pageSize=s,this.getItemId=n,this.isExpanded=o,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=u,this.dataProviderParams=d,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(r){this.pageSize=r,this.clearCache()}setDataProvider(r){this.dataProvider=r,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(r){return Ur(this.rootCache,r)}getItemContext(r){return Il({getItemId:this.getItemId},this.rootCache,r)}getFlatIndexByPath(r){return Ol(this.rootCache,r)}ensureFlatIndexLoaded(r){const{cache:i,page:s,item:o}=this.getFlatIndexContext(r);this.__isItemLoaded(o)||this.__loadCachePage(i,s)}ensureFlatIndexHierarchy(r){const{cache:i,item:s,index:o}=this.getFlatIndexContext(r);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(r){return new js(this.__cacheContext,this.pageSize,r)}__loadCachePage(r,i){if(!this.dataProvider||r.pendingRequests[i])return;let s={page:i,pageSize:this.pageSize,parentItem:r.parentItem};this.dataProviderParams&&(s=Ve(Ve({},s),this.dataProviderParams()));const o=(n,a)=>{r.pendingRequests[i]===o&&(a!==void 0?r.size=a:s.parentItem&&(r.size=n.length),r.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete r.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")))};r.pendingRequests[i]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(s,o)}__isItemLoaded(r){return this.isPlaceholder?!this.isPlaceholder(r):this.placeholder?r!==this.placeholder:!!r}}/**
|
|
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
|
|
2623
|
+
*/const Gm=t=>class extends t{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 jm(this,{placeholder:new Et,isPlaceholder:r=>r instanceof Et,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",r=>{if(!this._shouldFetchData())return;const i=r.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(r){if(this.__previousDataProviderFilter===void 0&&r===""){this.__previousDataProviderFilter=r;return}this.__previousDataProviderFilter!==r&&(this.__previousDataProviderFilter=r,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(r){!this._shouldFetchData()||!r||(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:r}=this.__dataProviderController;r.items=[...r.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(r){const{rootCache:i}=this.__dataProviderController;i.size!==r&&(i.size=r,i.items=[...i.items],this.__synchronizeControllerState())}_filteredItemsChanged(r){if(super._filteredItemsChanged(r),this.dataProvider&&r){const{rootCache:i}=this.__dataProviderController;i.items!==r&&(i.items=r,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:r}=this.__dataProviderController;this.size=r.size,this.filteredItems=r.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(r,i){if(Math.floor(r)!==r||r<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(r),this.clearCache()}_dataProviderChanged(r,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i}),this.__dataProviderController.setDataProvider(r),this.clearCache()}_ensureItemsOrDataProvider(r){if(this.items!==void 0&&this.dataProvider!==void 0)throw r(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(r,i){if(r&&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
|
|
2627
|
+
*/const Wm=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(r,i){if(!i||r===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 r=="string"?r.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
|
|
2631
|
+
*/function qm(t){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(t);return}t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.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
|
|
2635
|
+
*/class Ym{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 tn(r){return r!=null}function rn(r,e){return r.findIndex(t=>t instanceof vt?!1:e(t))}const Nm=r=>class extends Tm(Yr(Bs(dl(Ns(ks(ul(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),Im(this),this.addController(new Om(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,d,u,h){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:d,theme:u,itemClassNameGenerator:h}),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&&Qa(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()&&!Qi&&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?Lr(this.itemLabelPath,t):void 0;return i==null&&(i=t?t.toString():""),i}_getItemValue(t){let i=t&&this.itemValuePath?Lr(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",()=>{Qi&&!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||(tn(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||!tn(i)?-1:rn(t,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(t,i){return!t||!i?-1:rn(t,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof vt)&&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(Ts()){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 dn(t){return t!=null}function cn(t,e){return t.findIndex(r=>r instanceof Et?!1:e(r))}const Xm=t=>class extends Wm(ti($s(El(zs(Fs(Cl(t))))))){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(r){super._inputElementChanged(r);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 r=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",r),this.addEventListener("touchstart",r),qm(this),this.addController(new Ym(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(r=>{r.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(r,i,s){super._propertiesChanged(r,i,s),i.filter!==void 0&&this._filterChanged(i.filter)}updated(r){super.updated(r),r.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const r=this.$.overlay;r._comboBox=this,r.addEventListener("touchend",this._boundOnOverlayTouchAction),r.addEventListener("touchmove",this._boundOnOverlayTouchAction),r.addEventListener("mousedown",i=>i.preventDefault()),r.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=r}_initScroller(r){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=r||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(r,i,s,o,n,a,l,u,d,c){if(r&&(s&&(r.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),r.setProperties({items:s?i:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:u,theme:d,itemClassNameGenerator:c}),r.performUpdate&&!r.hasUpdated))try{r.performUpdate()}catch(f){}}_openedOrItemsChanged(r,i,s,o){this._overlayOpened=r&&(o||s||!!(i&&i.length))}_overlayOpenedChanged(r,i){r?(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(r,i){i!==void 0&&this._updateActiveDescendant(r)}_isInputFocused(){return this.inputElement&&pl(this.inputElement)}_updateActiveDescendant(r){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(o=>o.index===r);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant")}_openedChanged(r,i){if(i===void 0)return;r?!this._isInputFocused()&&!as&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!r),r?s.setAttribute("aria-controls",this._scroller.id):s.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(r){return r.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(r){r.preventDefault(),this.inputElement.focus()}_onClearButtonClick(r){r.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(r){r.preventDefault(),this.opened?this.close():this.open()}_onHostClick(r){this.autoOpenDisabled||(r.preventDefault(),this.open())}_onClick(r){this._isClearButton(r)?this._onClearButtonClick(r):r.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(r):this._onHostClick(r)}_onKeyDown(r){super._onKeyDown(r),r.key==="ArrowDown"?(this._onArrowDown(),r.preventDefault()):r.key==="ArrowUp"&&(this._onArrowUp(),r.preventDefault())}_getItemLabel(r){let i=r&&this.itemLabelPath?Vr(this.itemLabelPath,r):void 0;return i==null&&(i=r?r.toString():""),i}_getItemValue(r){let i=r&&this.itemValuePath?Vr(this.itemValuePath,r):void 0;return i===void 0&&(i=r?r.toString():""),i}_onArrowDown(){if(this.opened){const r=this._dropdownItems;r&&(this._focusedIndex=Math.min(r.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 r=this._dropdownItems;r&&(this._focusedIndex=r.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const r=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(r),this._markAllSelectionRange()}}_setSelectionRange(r,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(r,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const r=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(r,r)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(r){if(!this._hasValidInputValue()){r.preventDefault(),r.stopPropagation();return}this.opened&&(r.preventDefault(),r.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const r=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!r}_onEscape(r){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(r.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(r.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(r.stopPropagation(),this._onClearAction())}_toggleElementChanged(r){r&&(r.addEventListener("mousedown",i=>i.preventDefault()),r.addEventListener("click",()=>{as&&!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 r=this._dropdownItems[this._focusedIndex];this.selectedItem!==r&&(this.selectedItem=r),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 r=[this.selectedItem,...this._dropdownItems||[]],i=r[this.__getItemIndexByLabel(r,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(r){const i=this._inputElementValue,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(r)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_onChange(r){r.stopPropagation()}_itemLabelPathChanged(r){typeof r!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(r){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,r):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(r){if(r==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(r);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(r)}}_valueChanged(r,i){r===""&&i===void 0||(dn(r)?(this._getItemValue(this.selectedItem)!==r&&this._selectItemForValue(r),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=r),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(r,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),r?this.filteredItems=r.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(r){this._setDropdownItems(r)}_filterItems(r,i){return r&&r.filter(o=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(r){const i=this.__getItemIndexByValue(this.filteredItems,r),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(r){const i=this._dropdownItems;this._dropdownItems=r;const s=i?i[this._focusedIndex]:null,o=this.__getItemIndexByValue(r,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=r[o]);const n=this.__getItemIndexByValue(r,this._getItemValue(s));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(r,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(r){this._scroller&&this._scroller.scrollIntoView(r)}__getItemIndexByValue(r,i){return!r||!dn(i)?-1:cn(r,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(r,i){return!r||!i?-1:cn(r,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(r){r.stopPropagation(),!(r.detail.item instanceof Et)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(r.detail.item),this.close())}_setFocused(r){if(super._setFocused(r),!r&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Rs()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(r){return r.relatedTarget&&r.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:r.relatedTarget===this._overlayElement?(r.composedPath()[0].focus(),!1):!0}_onTouchend(r){!this.clearElement||r.composedPath()[0]!==this.clearElement||(r.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
|
-
*/
|
|
2643
|
+
*/pe("vaadin-combo-box",$m,{moduleId:"vaadin-combo-box-styles"});class Zm extends Gm(Xm(zm(Rm(Jr(gm(sr)))))){static get is(){return"vaadin-combo-box"}static get template(){return ir`
|
|
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 vm(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new ym(this.inputElement,this._labelController)),this._tooltipController=new tm(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)}}xt(km);function Mm(r){Sn(r,"svelte-ng8y72",'*,*::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}.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)}.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)}}')}function sn(r,e,t){const i=r.slice();return i[101]=e[t],i}function on(r){let e,t;return{c(){e=x("script"),Zs(e.src,t="//www.google.com/recaptcha/api.js?render="+r[1])||c(e,"src",t),e.async=!0,e.defer=!0},m(i,s){B(i,e,s)},p(i,s){s[0]&2&&!Zs(e.src,t="//www.google.com/recaptcha/api.js?render="+i[1])&&c(e,"src",t)},d(i){i&&O(e)}}}function Lm(r){let e,t,i,s=r[17]&&nn(r);function o(l,d){if(l[18])return zm;if(l[20])return Hm;if(l[22])return Dm;if(l[23])return Rm}let n=o(r),a=n&&n(r);return{c(){e=x("div"),s&&s.c(),t=H(),a&&a.c(),c(e,"class",i="FormContainer "+(r[24]?"FormMobileContainer":""))},m(l,d){B(l,e,d),s&&s.m(e,null),p(e,t),a&&a.m(e,null)},p(l,d){l[17]?s?s.p(l,d):(s=nn(l),s.c(),s.m(e,t)):s&&(s.d(1),s=null),n===(n=o(l))&&a?a.p(l,d):(a&&a.d(1),a=n&&n(l),a&&(a.c(),a.m(e,null))),d[0]&16777216&&i!==(i="FormContainer "+(l[24]?"FormMobileContainer":""))&&c(e,"class",i)},d(l){l&&O(e),s&&s.d(),a&&a.d()}}}function Bm(r){let e;return{c(){e=x("div"),e.innerHTML='<div class="ModalLoader"></div>',c(e,"class","ModalLoaderWrapper")},m(t,i){B(t,e,i)},p:ue,d(t){t&&O(e)}}}function nn(r){let e;return{c(){e=x("general-player-forgot-password-sms-form"),A(e,"clientstyling",r[5]),A(e,"clientstylingurl",r[6]),A(e,"endpoint",r[0]),A(e,"mbsource",r[4]),A(e,"translationurl",r[7]),A(e,"smscodelength",r[12]),A(e,"smscodemaxattempts",r[11]),A(e,"phoneregex",r[9]),A(e,"phoneprefixeditable",r[10]),A(e,"smscodettl",r[13]),A(e,"resenddelay",r[14]),A(e,"lang",r[2])},m(t,i){B(t,e,i)},p(t,i){i[0]&32&&A(e,"clientstyling",t[5]),i[0]&64&&A(e,"clientstylingurl",t[6]),i[0]&1&&A(e,"endpoint",t[0]),i[0]&16&&A(e,"mbsource",t[4]),i[0]&128&&A(e,"translationurl",t[7]),i[0]&4096&&A(e,"smscodelength",t[12]),i[0]&2048&&A(e,"smscodemaxattempts",t[11]),i[0]&512&&A(e,"phoneregex",t[9]),i[0]&1024&&A(e,"phoneprefixeditable",t[10]),i[0]&8192&&A(e,"smscodettl",t[13]),i[0]&16384&&A(e,"resenddelay",t[14]),i[0]&4&&A(e,"lang",t[2])},d(t){t&&O(e)}}}function Rm(r){let e,t,i,s,o,n,a,l,d,u,h,f,m,_,g,v=r[43]("forgotChangePasswordTitle")+"",w,y,E,T=r[43]("forgotChangePasswordDescription")+"",C,j,F,se=r[43]("forgotChangePasswordLogin")+"",J,re,ne;return{c(){e=x("div"),t=x("div"),i=x("div"),s=P("svg"),o=P("defs"),n=P("style"),a=I(`.a {
|
|
2688
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Dm(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Hm(this.inputElement,this._labelController)),this._tooltipController=new vm(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 r=e.composedPath();(r.includes(this._labelNode)||r.includes(this._positionTarget))&&super._onHostClick(e)}}At(Zm);const Jm=(t,e)=>{var s,o,n;const r=(s=t.shadowRoot)==null?void 0:s.querySelector(`slot[name="${e}"]`);if(!r)return console.error(`[${t.tagName.toLowerCase()}] slot "${e}" not found.`),null;const i=(n=(o=r.assignedElements)==null?void 0:o.call(r)[0])!=null?n:null;return i||(console.error(`[${t.tagName.toLowerCase()}] no element assigned to slot "${e}".`),null)},Km="https://challenges.cloudflare.com/turnstile/v0/api.js",Qm=3e3,e_=5,t_=1e4,r_=5*60*1e3,i_="XXXX.DUMMY.TOKEN.XXXX",hn="cf-captcha-response",fn="cfCaptchaIsVisible";let Rt=null;function pn(){return typeof window=="undefined"?Promise.reject(new Error("[Turnstile] SSR")):window.turnstile?Promise.resolve():(Rt||(Rt=new Promise((t,e)=>{const r=setTimeout(()=>{Rt=null,e(new Error("[Turnstile] script load timeout"))},t_),i=document.createElement("script");i.src=Km,i.async=!0,i.defer=!0,i.onload=()=>{clearTimeout(r),t()},i.onerror=()=>{clearTimeout(r),Rt=null,e(new Error("[Turnstile] script failed to load"))},document.head.appendChild(i)})),Rt)}function s_(t){const{siteKey:e,action:r,isEnabled:i=!0,enableFallback:s=!1,retryCount:o=e_}=t;let n=null,a=0,l,u,d=!1,c=0,f=null,p=null;function _(x){var O;n=x,x&&(a=Date.now()),(O=t.onTokenChange)==null||O.call(t,x)}function b(){l||!u||!window.turnstile||(l=window.turnstile.render(u,{sitekey:e,retry:"auto",action:r,appearance:"interaction-only",execution:"execute",theme:"light","retry-interval":Qm,callback:x=>{var O;d||(c=0,_(x),(O=t.onLoadingChange)==null||O.call(t,!1),f==null||f(x),f=null,p=null)},"error-callback":x=>{var O;if(d)return!0;if(c+=1,c<=o)return!1;if(c=0,(O=t.onLoadingChange)==null||O.call(t,!1),l&&window.turnstile)try{window.turnstile.reset(l)}catch(N){}if(s)f==null||f(i_);else{const N=`[Turnstile] Verification failed (${x}). Please try again.`;console.error(N),p==null||p(new Error(N))}return f=null,p=null,!0},"expired-callback":()=>{_(null)}}))}function w(x){return Ue(this,null,function*(){var O;if(i){u=x;try{yield pn(),b(),(O=t.onReady)==null||O.call(t)}catch(N){console.error("[Turnstile] script load error",N)}}})}function y(){return Ue(this,null,function*(){var x;if(i){if(!l&&(yield pn(),b(),!l))throw new Error("[Turnstile] widget not ready");return(x=t.onLoadingChange)==null||x.call(t,!0),new Promise((O,N)=>{var ee;f=O,p=N;try{window.turnstile.execute(l)}catch(q){console.error("[Turnstile] execute error",q),(ee=t.onLoadingChange)==null||ee.call(t,!1),f=null,p=null,N(q)}})}})}function v(){return Ue(this,null,function*(){if(i)return n&&Date.now()-a<r_?n:y()})}function C(){var x;if(l&&window.turnstile)try{window.turnstile.reset(l)}catch(O){}c=0,_(null),(x=t.onLoadingChange)==null||x.call(t,!1),p==null||p(new Error("[Turnstile] reset by caller")),f=null,p=null}function T(){var x;if(d=!0,l&&window.turnstile)try{window.turnstile.remove(l)}catch(O){}c=0,p==null||p(null),f=null,p=null,l=void 0,_(null),(x=t.onLoadingChange)==null||x.call(t,!1)}return{render:w,getToken:y,ensureToken:v,reset:C,cleanup:T}}const o_="captchaContainer";function n_(t){Fn(t,"svelte-19s6k2v",'*,*::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}.GeneralPlayerForgotPasswordForm .CaptchaWrapper.Loading{width:100%;position:absolute;top:100px;align-items:center;z-index:2}.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)}.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)}}')}function mn(t,e,r){const i=t.slice();return i[105]=e[r],i}const a_=t=>({}),_n=t=>({});function gn(t){let e,r;return{c(){e=P("script"),io(e.src,r="//www.google.com/recaptcha/api.js?render="+t[1])||h(e,"src",r),e.async=!0,e.defer=!0},m(i,s){R(i,e,s)},p(i,s){s[0]&2&&!io(e.src,r="//www.google.com/recaptcha/api.js?render="+i[1])&&h(e,"src",r)},d(i){i&&k(e)}}}function bn(t){let e,r,i;const s=t[63].captchaContainer,o=bu(s,t,t[62],_n);return{c(){e=P("div"),o&&o.c(),h(e,"class",r="CaptchaWrapper "+(t[17]?"Loading":""))},m(n,a){R(n,e,a),o&&o.m(e,null),i=!0},p(n,a){o&&o.p&&(!i||a[2]&1)&&yu(o,s,n,n[62],i?vu(s,n[62],a,a_):wu(n[62]),_n),(!i||a[0]&131072&&r!==(r="CaptchaWrapper "+(n[17]?"Loading":"")))&&h(e,"class",r)},i(n){i||(pt(o,n),i=!0)},o(n){Nr(o,n),i=!1},d(n){n&&k(e),o&&o.d(n)}}}function l_(t){let e,r,i,s=t[18]&&vn(t);function o(l,u){if(l[19])return f_;if(l[21])return h_;if(l[23])return c_;if(l[24])return d_}let n=o(t),a=n&&n(t);return{c(){e=P("div"),s&&s.c(),r=F(),a&&a.c(),h(e,"class",i="FormContainer "+(t[25]?"FormMobileContainer":""))},m(l,u){R(l,e,u),s&&s.m(e,null),m(e,r),a&&a.m(e,null)},p(l,u){l[18]?s?s.p(l,u):(s=vn(l),s.c(),s.m(e,r)):s&&(s.d(1),s=null),n===(n=o(l))&&a?a.p(l,u):(a&&a.d(1),a=n&&n(l),a&&(a.c(),a.m(e,null))),u[0]&33554432&&i!==(i="FormContainer "+(l[25]?"FormMobileContainer":""))&&h(e,"class",i)},d(l){l&&k(e),s&&s.d(),a&&a.d()}}}function u_(t){let e;return{c(){e=P("div"),e.innerHTML='<div class="ModalLoader"></div>',h(e,"class","ModalLoaderWrapper")},m(r,i){R(r,e,i)},p:ye,d(r){r&&k(e)}}}function vn(t){let e;return{c(){e=P("general-player-forgot-password-sms-form"),A(e,"clientstyling",t[5]),A(e,"clientstylingurl",t[6]),A(e,"endpoint",t[0]),A(e,"mbsource",t[4]),A(e,"translationurl",t[7]),A(e,"smscodelength",t[12]),A(e,"smscodemaxattempts",t[11]),A(e,"phoneregex",t[9]),A(e,"phoneprefixeditable",t[10]),A(e,"smscodettl",t[13]),A(e,"resenddelay",t[14]),A(e,"lang",t[2])},m(r,i){R(r,e,i)},p(r,i){i[0]&32&&A(e,"clientstyling",r[5]),i[0]&64&&A(e,"clientstylingurl",r[6]),i[0]&1&&A(e,"endpoint",r[0]),i[0]&16&&A(e,"mbsource",r[4]),i[0]&128&&A(e,"translationurl",r[7]),i[0]&4096&&A(e,"smscodelength",r[12]),i[0]&2048&&A(e,"smscodemaxattempts",r[11]),i[0]&512&&A(e,"phoneregex",r[9]),i[0]&1024&&A(e,"phoneprefixeditable",r[10]),i[0]&8192&&A(e,"smscodettl",r[13]),i[0]&16384&&A(e,"resenddelay",r[14]),i[0]&4&&A(e,"lang",r[2])},d(r){r&&k(e)}}}function d_(t){let e,r,i,s,o,n,a,l,u,d,c,f,p,_,b,w=t[44]("forgotChangePasswordTitle")+"",y,v,C,T=t[44]("forgotChangePasswordDescription")+"",x,O,N,ee=t[44]("forgotChangePasswordLogin")+"",q,ie,me;return{c(){e=P("div"),r=P("div"),i=P("div"),s=E("svg"),o=E("defs"),n=E("style"),a=L(`.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=
|
|
2702
|
+
`),l=E("g"),u=E("g"),d=E("path"),c=E("g"),f=E("circle"),p=E("circle"),_=F(),b=P("h4"),y=L(w),v=F(),C=P("p"),x=L(T),O=F(),N=P("button"),q=L(ee),h(d,"class","a"),h(d,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(d,"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(c,"class","b"),h(c,"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(N,"class","resetPasswordButton"),h(N,"part","resetPasswordButton"),h(r,"class","FormContent"),h(r,"part","FormContent"),h(e,"class","FormForgotPassword"),h(e,"part","FormForgotPassword")},m(I,X){R(I,e,X),m(e,r),m(r,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(l,u),m(u,d),m(l,c),m(c,f),m(c,p),m(i,_),m(i,b),m(b,y),m(i,v),m(i,C),m(C,x),m(r,O),m(r,N),m(N,q),ie||(me=ne(N,"click",t[80]),ie=!0)},p(I,X){X[1]&8192&&w!==(w=I[44]("forgotChangePasswordTitle")+"")&&J(y,w),X[1]&8192&&T!==(T=I[44]("forgotChangePasswordDescription")+"")&&J(x,T),X[1]&8192&&ee!==(ee=I[44]("forgotChangePasswordLogin")+"")&&J(q,ee)},d(I){I&&k(e),ie=!1,me()}}}function c_(t){let e,r,i,s,o,n,a,l,u,d=t[44]("forgotNewPasswordPassword")+"",c,f,p,_,b,w,y,v,C,T,x,O,N=t[44]("forgotNewPasswordConfirmPassword")+"",ee,q,ie,me,I,X,ge,Se,ue,Ae,ae,we=t[44]("forgotNewPasswordButton")+"",Ne,ke,K,re,z=t[40]&&yn(t);function xe(de,U){return de[34]?m_:p_}let Pe=xe(t),G=Pe(t),S=t[30]&&wn(t);function Q(de,U){return de[35]?v_:b_}let Le=Q(t),he=Le(t),se=t[31]&&xn(t),oe=t[38]&&Pn(t);return{c(){e=P("div"),r=P("div"),i=P("h4"),s=L(t[39]),o=F(),z&&z.c(),n=F(),a=P("form"),l=P("div"),u=P("label"),c=L(d),f=L(":"),p=P("span"),p.textContent="*",_=F(),b=P("input"),y=F(),G.c(),v=F(),S&&S.c(),T=F(),x=P("div"),O=P("label"),ee=L(N),q=L(":"),ie=P("span"),ie.textContent="*",me=F(),I=P("input"),X=F(),he.c(),ge=F(),se&&se.c(),ue=F(),oe&&oe.c(),Ae=F(),ae=P("button"),Ne=L(we),h(i,"class","FormHeaderTitle"),h(i,"part","FormHeaderTitle"),h(r,"class","FormHeader"),h(r,"part","FormHeader"),h(p,"class","FormRequired"),h(p,"part","FormRequired"),h(u,"for","NewPassword"),h(b,"type","password"),h(b,"id","new-password"),h(b,"autocomplete",w=t[8]?"new-password":"off"),h(l,"class",C="NewPassword "+(t[30]?"InvalidField":"")),h(l,"part","NewPassword"),h(ie,"class","FormRequired"),h(ie,"part","FormRequired"),h(O,"for","RetypePassword"),h(I,"type","password"),h(I,"id","RetypePassword"),h(x,"class",Se="ConfirmPassword "+(t[31]?"InvalidField":"")),h(x,"part","ConfirmPassword"),h(ae,"class","resetPasswordButton"),h(ae,"part","resetPasswordButton"),ae.disabled=ke=!t[29],h(a,"class","FormContent"),h(a,"part","FormContent"),h(e,"class","FormForgotPassword test"),h(e,"part","FormForgotPassword test")},m(de,U){R(de,e,U),m(e,r),m(r,i),m(i,s),m(r,o),z&&z.m(r,null),m(e,n),m(e,a),m(a,l),m(l,u),m(u,c),m(u,f),m(u,p),m(l,_),m(l,b),Xe(b,t[36]),t[72](b),m(l,y),G.m(l,null),m(l,v),S&&S.m(l,null),m(a,T),m(a,x),m(x,O),m(O,ee),m(O,q),m(O,ie),m(x,me),m(x,I),Xe(I,t[37]),t[76](I),m(x,X),he.m(x,null),m(x,ge),se&&se.m(x,null),m(a,ue),oe&&oe.m(a,null),m(a,Ae),m(a,ae),m(ae,Ne),K||(re=[ne(b,"input",t[71]),ne(b,"keyup",function(){We(t[54](t[30],t[36],t[32]))&&t[54](t[30],t[36],t[32]).apply(this,arguments)}),ne(I,"input",t[75]),ne(I,"keyup",function(){We(t[54](t[31],t[37],t[33]))&&t[54](t[31],t[37],t[33]).apply(this,arguments)}),ne(ae,"click",t[79])],K=!0)},p(de,U){t=de,U[1]&256&&J(s,t[39]),t[40]?z?z.p(t,U):(z=yn(t),z.c(),z.m(r,null)):z&&(z.d(1),z=null),U[1]&8192&&d!==(d=t[44]("forgotNewPasswordPassword")+"")&&J(c,d),U[0]&256&&w!==(w=t[8]?"new-password":"off")&&h(b,"autocomplete",w),U[1]&32&&b.value!==t[36]&&Xe(b,t[36]),Pe===(Pe=xe(t))&&G?G.p(t,U):(G.d(1),G=Pe(t),G&&(G.c(),G.m(l,v))),t[30]?S?S.p(t,U):(S=wn(t),S.c(),S.m(l,null)):S&&(S.d(1),S=null),U[0]&1073741824&&C!==(C="NewPassword "+(t[30]?"InvalidField":""))&&h(l,"class",C),U[1]&8192&&N!==(N=t[44]("forgotNewPasswordConfirmPassword")+"")&&J(ee,N),U[1]&64&&I.value!==t[37]&&Xe(I,t[37]),Le===(Le=Q(t))&&he?he.p(t,U):(he.d(1),he=Le(t),he&&(he.c(),he.m(x,ge))),t[31]?se?se.p(t,U):(se=xn(t),se.c(),se.m(x,null)):se&&(se.d(1),se=null),U[1]&1&&Se!==(Se="ConfirmPassword "+(t[31]?"InvalidField":""))&&h(x,"class",Se),t[38]?oe?oe.p(t,U):(oe=Pn(t),oe.c(),oe.m(a,Ae)):oe&&(oe.d(1),oe=null),U[1]&8192&&we!==(we=t[44]("forgotNewPasswordButton")+"")&&J(Ne,we),U[0]&536870912&&ke!==(ke=!t[29])&&(ae.disabled=ke)},d(de){de&&k(e),z&&z.d(),t[72](null),G.d(),S&&S.d(),t[76](null),he.d(),se&&se.d(),oe&&oe.d(),K=!1,Oe(re)}}}function h_(t){let e,r,i,s,o,n,a,l,u,d,c,f,p,_,b,w=t[44]("forgotPasswordSuccess")+"",y,v,C,T=t[44]("forgotPasswordSuccessDescription")+"",x,O,N,ee=t[44]("goToLogin")+"",q,ie,me;return{c(){e=P("div"),r=P("div"),i=P("div"),s=E("svg"),o=E("defs"),n=E("style"),a=L(`.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=
|
|
2716
|
+
`),l=E("g"),u=E("g"),d=E("path"),c=E("g"),f=E("circle"),p=E("circle"),_=F(),b=P("h4"),y=L(w),v=F(),C=P("p"),x=L(T),O=F(),N=P("button"),q=L(ee),h(d,"class","a"),h(d,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(d,"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(c,"class","b"),h(c,"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(N,"class","ResetPasswordEmailGoToLogin"),h(i,"class","NewPasswordSuccess"),h(i,"part","NewPasswordSuccess"),h(r,"class","FormContent"),h(r,"part","FormContent"),h(e,"class","FormForgotPassword"),h(e,"part","FormForgotPassword")},m(I,X){R(I,e,X),m(e,r),m(r,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(l,u),m(u,d),m(l,c),m(c,f),m(c,p),m(i,_),m(i,b),m(b,y),m(i,v),m(i,C),m(C,x),m(i,O),m(i,N),m(N,q),ie||(me=ne(N,"click",t[70]),ie=!0)},p(I,X){X[1]&8192&&w!==(w=I[44]("forgotPasswordSuccess")+"")&&J(y,w),X[1]&8192&&T!==(T=I[44]("forgotPasswordSuccessDescription")+"")&&J(x,T),X[1]&8192&&ee!==(ee=I[44]("goToLogin")+"")&&J(q,ee)},d(I){I&&k(e),ie=!1,me()}}}function f_(t){let e,r,i,s,o,n,a,l,u,d=t[44]("goToLogin")+"",c,f,p,_,b,w,y,v,C,T=t[44]("forgotPasswordEmail")+"",x,O,N,ee,q,ie,me,I,X,ge,Se,ue,Ae=t[44]("forgotPasswordReset")+"",ae,we,Ne,ke,K=t[40]&&En(t),re=t[26]&&Cn(t),z=t[20]&&Sn(t);function xe(S,Q){return S[42]?y_:w_}let Pe=xe(t),G=Pe(t);return{c(){e=P("div"),r=P("div"),i=P("button"),s=E("svg"),o=E("defs"),n=E("style"),a=L(`.a {
|
|
2717
2717
|
fill: var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));
|
|
2718
2718
|
}
|
|
2719
|
-
`),l=
|
|
2719
|
+
`),l=E("path"),u=F(),c=L(d),f=F(),p=P("h4"),_=L(t[39]),b=F(),K&&K.c(),w=F(),y=P("form"),v=P("div"),C=P("label"),x=L(T),O=L(":"),N=P("span"),N.textContent="*",ee=F(),q=P("input"),ie=F(),re&&re.c(),me=F(),z&&z.c(),I=F(),G.c(),Se=F(),ue=P("button"),ae=L(Ae),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(r,"class","FormHeader"),h(N,"class","FormRequired"),h(N,"part","FormRequired"),h(C,"for","ResetPasswordByEmail"),h(q,"type","text"),h(q,"id","ResetPasswordByEmail"),h(v,"class",X="ResetPasswordByEmail "+(t[26]?"InvalidField":"")),h(v,"part",ge="ResetPasswordByEmail "+(t[26]?"InvalidField":"")),h(ue,"class","resetPasswordButton"),h(ue,"part","resetPasswordButton"),ue.disabled=we=!t[27],h(y,"class","FormContent"),h(y,"part","FormContent"),h(e,"class","FormForgotPassword")},m(S,Q){R(S,e,Q),m(e,r),m(r,i),m(i,s),m(s,o),m(o,n),m(n,a),m(s,l),m(i,u),m(i,c),m(r,f),m(r,p),m(p,_),m(r,b),K&&K.m(r,null),m(e,w),m(e,y),m(y,v),m(v,C),m(C,x),m(C,O),m(C,N),m(v,ee),m(v,q),Xe(q,t[22]),m(v,ie),re&&re.m(v,null),m(v,me),z&&z.m(v,null),m(v,I),G.m(v,null),m(y,Se),m(y,ue),m(ue,ae),Ne||(ke=[ne(i,"click",t[64]),ne(q,"input",t[65]),ne(q,"input",t[48]),ne(ue,"click",t[69])],Ne=!0)},p(S,Q){Q[1]&8192&&d!==(d=S[44]("goToLogin")+"")&&J(c,d),Q[1]&256&&J(_,S[39]),S[40]?K?K.p(S,Q):(K=En(S),K.c(),K.m(r,null)):K&&(K.d(1),K=null),Q[1]&8192&&T!==(T=S[44]("forgotPasswordEmail")+"")&&J(x,T),Q[0]&4194304&&q.value!==S[22]&&Xe(q,S[22]),S[26]?re?re.p(S,Q):(re=Cn(S),re.c(),re.m(v,me)):re&&(re.d(1),re=null),S[20]?z?z.p(S,Q):(z=Sn(S),z.c(),z.m(v,I)):z&&(z.d(1),z=null),Pe===(Pe=xe(S))&&G?G.p(S,Q):(G.d(1),G=Pe(S),G&&(G.c(),G.m(v,null))),Q[0]&67108864&&X!==(X="ResetPasswordByEmail "+(S[26]?"InvalidField":""))&&h(v,"class",X),Q[0]&67108864&&ge!==(ge="ResetPasswordByEmail "+(S[26]?"InvalidField":""))&&h(v,"part",ge),Q[1]&8192&&Ae!==(Ae=S[44]("forgotPasswordReset")+"")&&J(ae,Ae),Q[0]&134217728&&we!==(we=!S[27])&&(ue.disabled=we)},d(S){S&&k(e),K&&K.d(),re&&re.d(),z&&z.d(),G.d(),Ne=!1,Oe(ke)}}}function yn(t){let e,r;return{c(){e=P("p"),r=L(t[40]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){R(i,e,s),m(e,r)},p(i,s){s[1]&512&&J(r,i[40])},d(i){i&&k(e)}}}function p_(t){let e,r,i,s,o,n,a,l,u,d;return{c(){e=E("svg"),r=E("defs"),i=E("style"),s=L(`.a {
|
|
2720
2720
|
fill: var(--emw--color-white, #ffffff);
|
|
2721
2721
|
}
|
|
2722
|
-
`),o=
|
|
2722
|
+
`),o=E("g"),n=E("path"),a=E("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 "+(t[30]?"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(c,f){R(c,e,f),m(e,r),m(r,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(d=ne(e,"click",t[74]),u=!0)},p(c,f){f[0]&1073741824&&l!==(l="TogglePasswordVisibility "+(c[30]?"InvalidToggle":""))&&h(e,"class",l)},d(c){c&&k(e),u=!1,d()}}}function m_(t){let e,r,i,s,o,n,a,l,u,d,c,f,p,_,b,w;return{c(){e=E("svg"),r=E("defs"),i=E("style"),s=L(`.a {
|
|
2723
2723
|
fill: var(--emw--color-white, #ffffff);
|
|
2724
2724
|
}
|
|
2725
|
-
`),o=
|
|
2725
|
+
`),o=E("g"),n=E("circle"),a=E("g"),l=E("path"),u=E("path"),d=E("g"),c=E("path"),f=E("path"),p=E("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(c,"class","a"),h(c,"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(c,"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(d,"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 "+(t[30]?"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(y,v){R(y,e,v),m(e,r),m(r,i),m(i,s),m(e,o),m(o,n),m(o,a),m(a,l),m(a,u),m(o,d),m(d,c),m(d,f),m(o,p),b||(w=ne(e,"click",t[73]),b=!0)},p(y,v){v[0]&1073741824&&_!==(_="TogglePasswordVisibility "+(y[30]?"InvalidToggle":""))&&h(e,"class",_)},d(y){y&&k(e),b=!1,w()}}}function wn(t){let e;function r(o,n){return o[3]=="true"?g_:__}let i=r(t),s=i(t);return{c(){s.c(),e=bs()},m(o,n){s.m(o,n),R(o,e,n)},p(o,n){i===(i=r(o))&&s?s.p(o,n):(s.d(1),s=i(o),s&&(s.c(),s.m(e.parentNode,e)))},d(o){o&&k(e),s.d(o)}}}function __(t){let e,r=t[44]("forgotNewPasswordPasswordError")+"",i;return{c(){e=P("p"),i=L(r),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){R(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotNewPasswordPasswordError")+"")&&J(i,r)},d(s){s&&k(e)}}}function g_(t){let e,r=t[44]("simplePasswordError")+"",i;return{c(){e=P("p"),i=L(r),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){R(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("simplePasswordError")+"")&&J(i,r)},d(s){s&&k(e)}}}function b_(t){let e,r,i,s,o,n,a,l,u,d;return{c(){e=E("svg"),r=E("defs"),i=E("style"),s=L(`.a {
|
|
2726
2726
|
fill: var(--emw--color-white, #ffffff);
|
|
2727
2727
|
}
|
|
2728
|
-
`),o=
|
|
2728
|
+
`),o=E("g"),n=E("path"),a=E("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 "+(t[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(c,f){R(c,e,f),m(e,r),m(r,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(d=ne(e,"click",t[78]),u=!0)},p(c,f){f[1]&1&&l!==(l="TogglePasswordVisibility "+(c[31]?"InvalidToggle":""))&&h(e,"class",l)},d(c){c&&k(e),u=!1,d()}}}function v_(t){let e,r,i,s,o,n,a,l,u,d,c,f,p,_,b,w;return{c(){e=E("svg"),r=E("defs"),i=E("style"),s=L(`.a {
|
|
2729
2729
|
fill: var(--emw--color-white, #ffffff);
|
|
2730
2730
|
}
|
|
2731
|
-
`),o=P("g"),n=P("circle"),a=P("g"),l=P("path"),d=P("path"),u=P("g"),h=P("path"),f=P("path"),m=P("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(h,"class","a"),c(h,"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"),c(h,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(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"),c(f,"transform","translate(-130.743 -29.617)"),c(u,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(e,"class",_="TogglePasswordVisibility "+(r[30]?"InvalidToggle":"")),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"width","18.844"),c(e,"height","12.887"),c(e,"viewBox","0 0 18.844 12.887")},m(w,y){B(w,e,y),p(e,t),p(t,i),p(i,s),p(e,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,u),p(u,h),p(u,f),p(o,m),g||(v=oe(e,"click",r[74]),g=!0)},p(w,y){y[0]&1073741824&&_!==(_="TogglePasswordVisibility "+(w[30]?"InvalidToggle":""))&&c(e,"class",_)},d(w){w&&O(e),g=!1,v()}}}function dn(r){let e,t=r[43]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){e=x("p"),i=I(t),c(e,"class","InvalidInput"),c(e,"part","InvalidInput")},m(s,o){B(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("forgotNewPasswordConfirmPasswordError")+"")&&X(i,t)},d(s){s&&O(e)}}}function un(r){let e,t;return{c(){e=x("p"),t=I(r[27]),c(e,"class","ErrorMessage"),c(e,"part","ErrorMessage")},m(i,s){B(i,e,s),p(e,t)},p(i,s){s[0]&134217728&&X(t,i[27])},d(i){i&&O(e)}}}function hn(r){let e,t;return{c(){e=x("p"),t=I(r[39]),c(e,"class","FormHeaderSubtitle"),c(e,"part","FormHeaderSubtitle")},m(i,s){B(i,e,s),p(e,t)},p(i,s){s[1]&256&&X(t,i[39])},d(i){i&&O(e)}}}function cn(r){let e,t=r[43]("forgotPasswordEmailInputError")+"",i;return{c(){e=x("p"),i=I(t),c(e,"class","ForgotPasswordError"),c(e,"part","ForgotPasswordError")},m(s,o){B(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("forgotPasswordEmailInputError")+"")&&X(i,t)},d(s){s&&O(e)}}}function fn(r){let e,t=r[43]("forgotPasswordEmailError")+"",i;return{c(){e=x("p"),i=I(t),c(e,"class","ForgotPasswordError"),c(e,"part","ForgotPasswordError")},m(s,o){B(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("forgotPasswordEmailError")+"")&&X(i,t)},d(s){s&&O(e)}}}function qm(r){let e,t,i=r[43](r[41])+"",s;return{c(){e=x("div"),t=x("span"),s=I(i),c(e,"class","dobFormatError")},m(o,n){B(o,e,n),p(e,t),p(t,s)},p(o,n){n[1]&5120&&i!==(i=o[43](o[41])+"")&&X(s,i)},d(o){o&&O(e)}}}function Wm(r){let e,t,i=Ci(r[40]),s=[];for(let o=0;o<i.length;o+=1)s[o]=pn(sn(r,i,o));return{c(){e=x("div");for(let o=0;o<s.length;o+=1)s[o].c();c(e,"class",t="DobContainer "+(r[24]?"Mobile":""))},m(o,n){B(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]&1112576){i=Ci(o[40]);let a;for(a=0;a<i.length;a+=1){const l=sn(o,i,a);s[a]?s[a].p(l,n):(s[a]=pn(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]&16777216&&t!==(t="DobContainer "+(o[24]?"Mobile":""))&&c(e,"class",t)},d(o){o&&O(e),Tn(s,o)}}}function Ym(r){let e,t,i,s,o;return{c(){e=x("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",t=r[43]("year")),A(e,"items",r[44]),A(e,"disabled",i=r[42].isYearDisabled)},m(n,a){B(n,e,a),s||(o=oe(e,"change",r[65]),s=!0)},p(n,a){a[1]&4096&&t!==(t=n[43]("year"))&&A(e,"label",t),a[1]&2048&&i!==(i=n[42].isYearDisabled)&&A(e,"disabled",i)},d(n){n&&O(e),s=!1,o()}}}function Zm(r){let e,t,i,s,o;return{c(){e=x("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",t=r[43]("month")),A(e,"items",Object.keys(r[45])),A(e,"disabled",i=r[42].isMonthDisabled)},m(n,a){B(n,e,a),s||(o=oe(e,"change",r[64]),s=!0)},p(n,a){a[1]&4096&&t!==(t=n[43]("month"))&&A(e,"label",t),a[1]&2048&&i!==(i=n[42].isMonthDisabled)&&A(e,"disabled",i)},d(n){n&&O(e),s=!1,o()}}}function Xm(r){let e,t,i,s,o;return{c(){e=x("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",t=r[43]("day")),A(e,"items",r[46]),A(e,"disabled",i=r[42].isDayDisabled)},m(n,a){B(n,e,a),s||(o=oe(e,"change",r[63]),s=!0)},p(n,a){a[1]&4096&&t!==(t=n[43]("day"))&&A(e,"label",t),a[1]&2048&&i!==(i=n[42].isDayDisabled)&&A(e,"disabled",i)},d(n){n&&O(e),s=!1,o()}}}function pn(r){let e;function t(o,n){if(o[101]==="dd")return Xm;if(o[101]==="mm")return Zm;if(o[101]==="yyyy")return Ym}let i=t(r),s=i&&i(r);return{c(){s&&s.c(),e=us()},m(o,n){s&&s.m(o,n),B(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&&O(e),s&&s.d(o)}}}function Jm(r){let e,t,i,s,o,n=r[1]&&on(r);function a(u,h){return u[16]?Bm:Lm}let l=a(r),d=l(r);return{c(){n&&n.c(),e=us(),t=H(),i=x("div"),s=H(),o=x("div"),d.c(),c(i,"class","g-recaptcha"),c(i,"data-sitekey",r[1]),c(o,"class","GeneralPlayerForgotPasswordForm")},m(u,h){n&&n.m(document.head,null),p(document.head,e),B(u,t,h),B(u,i,h),B(u,s,h),B(u,o,h),d.m(o,null),r[78](o)},p(u,h){u[1]?n?n.p(u,h):(n=on(u),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),h[0]&2&&c(i,"data-sitekey",u[1]),l===(l=a(u))&&d?d.p(u,h):(d.d(1),d=l(u),d&&(d.c(),d.m(o,null)))},i:ue,o:ue,d(u){u&&(O(t),O(i),O(s),O(o)),n&&n.d(u),O(e),d.d(),r[78](null)}}}function Km(r,e,t){let i;Pn(r,ua,b=>t(43,i=b));let{endpoint:s=""}=e,{forgotpasswordkey:o=""}=e,{captchakey:n=""}=e,{lang:a="en"}=e,{simplepasswordvalidation:l="false"}=e,{mbsource:d}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{translationurl:f=""}=e,{savecredentials:m=""}=e,{hastosetpass:_="false"}=e,{passwordregex:g=""}=e,{dobformat:v=""}=e,{mindobyears:w=18}=e,{maxdobyears:y=100}=e,{resetviasms:E="false"}=e,{phoneregex:T=""}=e,{phoneprefixeditable:C="false"}=e,{smscodemaxattempts:j="5"}=e,{smscodelength:F="6"}=e,{smscodettl:se="5"}=e,{resenddelay:J="1"}=e,re=!1,ne=!1,N=!0,q=!1,xe=!1,be="",ce=!1,Ee=!1,fe=!1,me=!1,Te=!1,Ne=window.navigator.userAgent,$="",te=!1,M=sessionStorage.getItem("resetScreenWasSeen")==="true",ke=!1,_e=!1,U,S,K=!1,Me=!1,ae="",Q="",W,Ce,Y=!1,Ds,Hs,gl=Array.from({length:y-w+1},(b,D)=>new Date().getFullYear()-w-D),zs={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},bl=Array.from({length:31},(b,D)=>D+1),Ue=[],Fs="",Xr=!0,ve={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},vl=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],Et={dd:null,mm:null,yyyy:null},Vs="";Ah({withLocale:"en",translations:{}});const yl=()=>{fetch(f).then(D=>D.json()).then(D=>{Object.keys(D).forEach(ie=>{bo(ie,D[ie])})}).catch(D=>{console.log(D)})};Object.keys(vo).forEach(b=>{bo(b,vo[b])});const er={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},wl=()=>{t(26,Te=v?!me&&!Xr:!me)},xl=b=>!!(er.email.test(b)&&b.length<=100),Us=()=>{t(25,me=!xl(be)),wl()},Ct=b=>{switch(b){case"userNewPassword":t(33,K=!K),t(31,U.type=K?"text":"password",U);break;case"userConfirmPassword":t(34,Me=!Me),t(32,S.type=Me?"text":"password",S);break}},tr=b=>{switch(b){case"ToSMSReset":{t(17,ne=!0),t(19,q=!1),t(18,N=!1),t(20,xe=!1);break}case"ToEmailSuccess":t(19,q=!1),t(18,N=!1),t(17,ne=!1),t(20,xe=!0),window.postMessage({type:"resetPasswordLinkSent"},window.location.href);break;case"ToReset":t(18,N=M),t(22,ce=!M),t(17,ne=!1),M=!0,E!=="true"&&sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":t(22,ce=!1),t(17,ne=!1),t(23,Ee=!0);break}},rr=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Pl=()=>new Promise((b,D)=>{grecaptcha.ready(()=>{grecaptcha.execute(n,{action:"submit"}).then(ie=>{b(ie)})})}),$s=b=>{b.preventDefault(),t(16,re=!0),Pl().then(D=>{let ie=new URL(`${s}/v1/player/resetpassword`),De={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":D}};ie.searchParams.append("email",be),v&&ie.searchParams.append("birthDate",Vs),fetch(ie,De).then(ye=>Gs(ye)).then(()=>{tr("ToEmailSuccess")}).catch(ye=>{t(19,q=!0),console.error("There was an error with the player balance request.",ye)}).finally(()=>{t(16,re=!1),M=!1,sessionStorage.setItem("resetScreenWasSeen","false")})})},El=()=>{if(t(55,v=v.toLowerCase()),!vl.includes(v))return t(41,Fs="dobFormatError");t(40,Ue=v.split("/")),t(42,ve.isDayDisabled=Ue[0]!=="dd",ve),t(42,ve.isMonthDisabled=Ue[0]!=="mm",ve),t(42,ve.isYearDisabled=Ue[0]!=="yyyy",ve)},ir=(b,D)=>{Et[D]=b.target.value,Xr=Object.values(Et).some(ie=>!ie),Ue.forEach((ie,De)=>{if(D===ie)switch(Ue[De+1]){case"dd":t(42,ve.isDayDisabled=!1,ve);case"mm":t(42,ve.isMonthDisabled=!1,ve);break;case"yyyy":t(42,ve.isYearDisabled=!1,ve);break}}),Xr||(Vs=`${Et.yyyy}-${zs[Et.mm]}-${Et.dd}`),Us()},js=b=>{b.preventDefault();let D=new URL(`${s}/v1/player/ResetPasswordByHashKey`),ie={hashKey:o,plainTextPassword:ae};E==="true"&&(ie.isUserHash=!0);let De={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(ie)};fetch(D,De).then(ye=>Gs(ye)).then(ye=>{t(37,Y=!1),tr("ToSuccess")}).catch(ye=>{t(37,Y=!0),console.error("There was an error with changing the password.",ye)})},Cl=()=>{o&&o.length>0&&tr("ToReset")},Sl=()=>{E==="true"&&!o&&tr("ToSMSReset")},Al=()=>{!ke&&!_e&&ae&&Q?t(28,te=!0):t(28,te=!1)},Jr=b=>(l=="true"&&(er.password=/^(?!.* ).{8,20}$/),!!er.password.test(b)),Tl=(b,D,ie)=>{ie.id==="new-password"?(t(29,ke=!Jr(D)),Q&&t(30,_e=ae===Q?!Jr(D):!0)):t(30,_e=ae===Q?!Jr(D):!0),Al()},Gs=b=>St(this,null,function*(){var ie,De;let D;try{D=yield b.json()}catch(ye){console.error("JSON Parse Error:",ye)}if(b.status>=300){const ye=((ie=D==null?void 0:D.thirdPartyResponse)==null?void 0:ie.errorCode)||"generalError";return t(27,$=i(ye)),$===String(ye)&&/^\d+$/.test($)&&t(27,$=(De=D==null?void 0:D.thirdPartyResponse)==null?void 0:De.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:$}},window.location.href),Promise.reject($)}return D}),Il=()=>{Th(a)},Ol=()=>{t(38,Ds=i(_==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),t(39,Hs=_==="true"?i("resetPasswordSubtitle"):"")},qs=b=>{!b||!b.data||b.data.type==="SwitchToResetPasswordScreen"&&t(54,o=b.data.key)};In(()=>St(this,null,function*(){return Sh(Ne)&&t(24,fe=!0),window.addEventListener("message",qs),()=>{window.removeEventListener("message",qs)}}));const Nl=()=>rr();function kl(){be=this.value,t(21,be)}const Ml=b=>ir(b,"dd"),Ll=b=>ir(b,"mm"),Bl=b=>ir(b,"yyyy"),Rl=b=>$s(b),Dl=()=>rr();function Hl(){ae=this.value,t(35,ae)}function zl(b){lt[b?"unshift":"push"](()=>{U=b,t(31,U)})}const Fl=()=>Ct("userNewPassword"),Vl=()=>Ct("userNewPassword");function Ul(){Q=this.value,t(36,Q)}function $l(b){lt[b?"unshift":"push"](()=>{S=b,t(32,S)})}const jl=()=>Ct("userConfirmPassword"),Gl=()=>Ct("userConfirmPassword"),ql=b=>js(b),Wl=()=>rr();function Yl(b){lt[b?"unshift":"push"](()=>{W=b,t(15,W)})}return r.$$set=b=>{"endpoint"in b&&t(0,s=b.endpoint),"forgotpasswordkey"in b&&t(54,o=b.forgotpasswordkey),"captchakey"in b&&t(1,n=b.captchakey),"lang"in b&&t(2,a=b.lang),"simplepasswordvalidation"in b&&t(3,l=b.simplepasswordvalidation),"mbsource"in b&&t(4,d=b.mbsource),"clientstyling"in b&&t(5,u=b.clientstyling),"clientstylingurl"in b&&t(6,h=b.clientstylingurl),"translationurl"in b&&t(7,f=b.translationurl),"savecredentials"in b&&t(8,m=b.savecredentials),"hastosetpass"in b&&t(56,_=b.hastosetpass),"passwordregex"in b&&t(57,g=b.passwordregex),"dobformat"in b&&t(55,v=b.dobformat),"mindobyears"in b&&t(58,w=b.mindobyears),"maxdobyears"in b&&t(59,y=b.maxdobyears),"resetviasms"in b&&t(60,E=b.resetviasms),"phoneregex"in b&&t(9,T=b.phoneregex),"phoneprefixeditable"in b&&t(10,C=b.phoneprefixeditable),"smscodemaxattempts"in b&&t(11,j=b.smscodemaxattempts),"smscodelength"in b&&t(12,F=b.smscodelength),"smscodettl"in b&&t(13,se=b.smscodettl),"resenddelay"in b&&t(14,J=b.resenddelay)},r.$$.update=()=>{r.$$.dirty[1]&545259520&&E&&!o&&Sl(),r.$$.dirty[1]&8388608&&o&&Cl(),r.$$.dirty[0]&4&&a&&Il(),r.$$.dirty[0]&32800&&u&&W&&ha(W,u),r.$$.dirty[0]&32832&&h&&W&&ca(W,h),r.$$.dirty[0]&32784&&d&&W&&fa(W,`${d}.Style`,Ce),r.$$.dirty[0]&128&&f&&yl(),r.$$.dirty[0]&4|r.$$.dirty[1]&33554432&&_&&a&&Ol(),r.$$.dirty[1]&67108864&&g&&(er.password=new RegExp(g)),r.$$.dirty[1]&16777216&&v&&El()},[s,n,a,l,d,u,h,f,m,T,C,j,F,se,J,W,re,ne,N,q,xe,be,ce,Ee,fe,me,Te,$,te,ke,_e,U,S,K,Me,ae,Q,Y,Ds,Hs,Ue,Fs,ve,i,gl,zs,bl,Us,Ct,rr,$s,ir,js,Tl,o,v,_,g,w,y,E,Nl,kl,Ml,Ll,Bl,Rl,Dl,Hl,zl,Fl,Vl,Ul,$l,jl,Gl,ql,Wl,Yl]}class _l extends Ln{constructor(e){super(),Nn(this,e,Km,Jm,os,{endpoint:0,forgotpasswordkey:54,captchakey:1,lang:2,simplepasswordvalidation:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,savecredentials:8,hastosetpass:56,passwordregex:57,dobformat:55,mindobyears:58,maxdobyears:59,resetviasms:60,phoneregex:9,phoneprefixeditable:10,smscodemaxattempts:11,smscodelength:12,smscodettl:13,resenddelay:14},Mm,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),G()}get forgotpasswordkey(){return this.$$.ctx[54]}set forgotpasswordkey(e){this.$$set({forgotpasswordkey:e}),G()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),G()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),G()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),G()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),G()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),G()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),G()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),G()}get savecredentials(){return this.$$.ctx[8]}set savecredentials(e){this.$$set({savecredentials:e}),G()}get hastosetpass(){return this.$$.ctx[56]}set hastosetpass(e){this.$$set({hastosetpass:e}),G()}get passwordregex(){return this.$$.ctx[57]}set passwordregex(e){this.$$set({passwordregex:e}),G()}get dobformat(){return this.$$.ctx[55]}set dobformat(e){this.$$set({dobformat:e}),G()}get mindobyears(){return this.$$.ctx[58]}set mindobyears(e){this.$$set({mindobyears:e}),G()}get maxdobyears(){return this.$$.ctx[59]}set maxdobyears(e){this.$$set({maxdobyears:e}),G()}get resetviasms(){return this.$$.ctx[60]}set resetviasms(e){this.$$set({resetviasms:e}),G()}get phoneregex(){return this.$$.ctx[9]}set phoneregex(e){this.$$set({phoneregex:e}),G()}get phoneprefixeditable(){return this.$$.ctx[10]}set phoneprefixeditable(e){this.$$set({phoneprefixeditable:e}),G()}get smscodemaxattempts(){return this.$$.ctx[11]}set smscodemaxattempts(e){this.$$set({smscodemaxattempts:e}),G()}get smscodelength(){return this.$$.ctx[12]}set smscodelength(e){this.$$set({smscodelength:e}),G()}get smscodettl(){return this.$$.ctx[13]}set smscodettl(e){this.$$set({smscodettl:e}),G()}get resenddelay(){return this.$$.ctx[14]}set resenddelay(e){this.$$set({resenddelay:e}),G()}}Mn(_l,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{},resetviasms:{},phoneregex:{},phoneprefixeditable:{},smscodemaxattempts:{},smscodelength:{},smscodettl:{},resenddelay:{}},[],[],!0);const Qm=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Je;exports.$format=ua;exports.$locale=Re;exports.GeneralPlayerForgotPasswordFormNd_ce=Qm;exports.SvelteComponent=Ln;exports.addMessages=ps;exports.add_render_callback=Ze;exports.append=p;exports.append_styles=Sn;exports.attr=c;exports.binding_callbacks=lt;exports.check_outros=_d;exports.component_subscribe=Pn;exports.create_bidirectional_transition=yd;exports.create_custom_element=Mn;exports.create_in_transition=bd;exports.create_out_transition=vd;exports.destroy_each=Tn;exports.detach=O;exports.element=x;exports.ensure_array_like=Ci;exports.flush=G;exports.group_outros=md;exports.identity=Rr;exports.init=Nn;exports.insert=B;exports.listen=oe;exports.onMount=In;exports.run_all=Ae;exports.safe_not_equal=os;exports.setClientStyling=ha;exports.setClientStylingURL=ca;exports.setStreamStyling=fa;exports.set_custom_element_data=A;exports.set_data=X;exports.set_input_value=je;exports.space=H;exports.split_css_unit=td;exports.text=I;exports.toggle_class=sd;exports.transition_in=On;exports.transition_out=gd;
|
|
2731
|
+
`),o=E("g"),n=E("circle"),a=E("g"),l=E("path"),u=E("path"),d=E("g"),c=E("path"),f=E("path"),p=E("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(c,"class","a"),h(c,"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(c,"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(d,"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 "+(t[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(y,v){R(y,e,v),m(e,r),m(r,i),m(i,s),m(e,o),m(o,n),m(o,a),m(a,l),m(a,u),m(o,d),m(d,c),m(d,f),m(o,p),b||(w=ne(e,"click",t[77]),b=!0)},p(y,v){v[1]&1&&_!==(_="TogglePasswordVisibility "+(y[31]?"InvalidToggle":""))&&h(e,"class",_)},d(y){y&&k(e),b=!1,w()}}}function xn(t){let e,r=t[44]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){e=P("p"),i=L(r),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){R(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotNewPasswordConfirmPasswordError")+"")&&J(i,r)},d(s){s&&k(e)}}}function Pn(t){let e,r;return{c(){e=P("p"),r=L(t[28]),h(e,"class","ErrorMessage"),h(e,"part","ErrorMessage")},m(i,s){R(i,e,s),m(e,r)},p(i,s){s[0]&268435456&&J(r,i[28])},d(i){i&&k(e)}}}function En(t){let e,r;return{c(){e=P("p"),r=L(t[40]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){R(i,e,s),m(e,r)},p(i,s){s[1]&512&&J(r,i[40])},d(i){i&&k(e)}}}function Cn(t){let e,r=t[44]("forgotPasswordEmailInputError")+"",i;return{c(){e=P("p"),i=L(r),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){R(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotPasswordEmailInputError")+"")&&J(i,r)},d(s){s&&k(e)}}}function Sn(t){let e,r=t[44]("forgotPasswordEmailError")+"",i;return{c(){e=P("p"),i=L(r),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){R(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotPasswordEmailError")+"")&&J(i,r)},d(s){s&&k(e)}}}function y_(t){let e,r,i=t[44](t[42])+"",s;return{c(){e=P("div"),r=P("span"),s=L(i),h(e,"class","dobFormatError")},m(o,n){R(o,e,n),m(e,r),m(r,s)},p(o,n){n[1]&10240&&i!==(i=o[44](o[42])+"")&&J(s,i)},d(o){o&&k(e)}}}function w_(t){let e,r,i=Li(t[41]),s=[];for(let o=0;o<i.length;o+=1)s[o]=An(mn(t,i,o));return{c(){e=P("div");for(let o=0;o<s.length;o+=1)s[o].c();h(e,"class",r="DobContainer "+(t[25]?"Mobile":""))},m(o,n){R(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]&2225152){i=Li(o[41]);let a;for(a=0;a<i.length;a+=1){const l=mn(o,i,a);s[a]?s[a].p(l,n):(s[a]=An(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]&33554432&&r!==(r="DobContainer "+(o[25]?"Mobile":""))&&h(e,"class",r)},d(o){o&&k(e),Un(s,o)}}}function x_(t){let e,r,i,s,o;return{c(){e=P("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",r=t[44]("year")),A(e,"items",t[45]),A(e,"disabled",i=t[43].isYearDisabled)},m(n,a){R(n,e,a),s||(o=ne(e,"change",t[68]),s=!0)},p(n,a){a[1]&8192&&r!==(r=n[44]("year"))&&A(e,"label",r),a[1]&4096&&i!==(i=n[43].isYearDisabled)&&A(e,"disabled",i)},d(n){n&&k(e),s=!1,o()}}}function P_(t){let e,r,i,s,o;return{c(){e=P("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",r=t[44]("month")),A(e,"items",Object.keys(t[46])),A(e,"disabled",i=t[43].isMonthDisabled)},m(n,a){R(n,e,a),s||(o=ne(e,"change",t[67]),s=!0)},p(n,a){a[1]&8192&&r!==(r=n[44]("month"))&&A(e,"label",r),a[1]&4096&&i!==(i=n[43].isMonthDisabled)&&A(e,"disabled",i)},d(n){n&&k(e),s=!1,o()}}}function E_(t){let e,r,i,s,o;return{c(){e=P("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",r=t[44]("day")),A(e,"items",t[47]),A(e,"disabled",i=t[43].isDayDisabled)},m(n,a){R(n,e,a),s||(o=ne(e,"change",t[66]),s=!0)},p(n,a){a[1]&8192&&r!==(r=n[44]("day"))&&A(e,"label",r),a[1]&4096&&i!==(i=n[43].isDayDisabled)&&A(e,"disabled",i)},d(n){n&&k(e),s=!1,o()}}}function An(t){let e;function r(o,n){if(o[105]==="dd")return E_;if(o[105]==="mm")return P_;if(o[105]==="yyyy")return x_}let i=r(t),s=i&&i(t);return{c(){s&&s.c(),e=bs()},m(o,n){s&&s.m(o,n),R(o,e,n)},p(o,n){i===(i=r(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&&k(e),s&&s.d(o)}}}function C_(t){let e,r,i,s,o,n,a,l=t[1]&&gn(t),u=t[15]&&bn(t);function d(p,_){return p[17]?u_:l_}let c=d(t),f=c(t);return{c(){l&&l.c(),e=bs(),r=F(),i=P("div"),s=F(),o=P("div"),u&&u.c(),n=F(),f.c(),h(i,"class","g-recaptcha"),h(i,"data-sitekey",t[1]),h(o,"class","GeneralPlayerForgotPasswordForm")},m(p,_){l&&l.m(document.head,null),m(document.head,e),R(p,r,_),R(p,i,_),R(p,s,_),R(p,o,_),u&&u.m(o,null),m(o,n),f.m(o,null),t[81](o),a=!0},p(p,_){p[1]?l?l.p(p,_):(l=gn(p),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!a||_[0]&2)&&h(i,"data-sitekey",p[1]),p[15]?u?(u.p(p,_),_[0]&32768&&pt(u,1)):(u=bn(p),u.c(),pt(u,1),u.m(o,n)):u&&(jn(),Nr(u,1,1,()=>{u=null}),Gn()),c===(c=d(p))&&f?f.p(p,_):(f.d(1),f=c(p),f&&(f.c(),f.m(o,null)))},i(p){a||(pt(u),a=!0)},o(p){Nr(u),a=!1},d(p){p&&(k(r),k(i),k(s),k(o)),l&&l.d(p),k(e),u&&u.d(),f.d(),t[81](null)}}}function S_(t,e,r){let i;Rn(t,Ca,g=>r(44,i=g));let{$$slots:s={},$$scope:o}=e,{endpoint:n=""}=e,{forgotpasswordkey:a=""}=e,{captchakey:l=""}=e,{lang:u="en"}=e,{simplepasswordvalidation:d="false"}=e,{mbsource:c}=e,{clientstyling:f=""}=e,{clientstylingurl:p=""}=e,{translationurl:_=""}=e,{savecredentials:b=""}=e,{hastosetpass:w="false"}=e,{passwordregex:y=""}=e,{dobformat:v=""}=e,{mindobyears:C=18}=e,{maxdobyears:T=100}=e,{resetviasms:x="false"}=e,{phoneregex:O=""}=e,{phoneprefixeditable:N="false"}=e,{smscodemaxattempts:ee="5"}=e,{smscodelength:q="6"}=e,{smscodettl:ie="5"}=e,{resenddelay:me="1"}=e,{turnstileSiteKey:I}=e,X=!1,ge=!1,Se=!0,ue=!1,Ae=!1,ae="",we=!1,Ne=!1,ke=!1,K=!1,re=!1,z=window.navigator.userAgent,xe="",Pe=!1,G=sessionStorage.getItem("resetScreenWasSeen")==="true",S=!1,Q=!1,Le,he,se=!1,oe=!1,de="",U="",Me,kl,ii=!1,Gs,Ws,W,Ll=Array.from({length:T-C+1},(g,D)=>new Date().getFullYear()-C-D),qs={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},Ml=Array.from({length:31},(g,D)=>D+1),qe=[],Ys="",si=!0,Ee={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},Bl=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],It={dd:null,mm:null,yyyy:null},Xs="";Gc({withLocale:"en",translations:{}});const Rl=()=>{fetch(_).then(D=>D.json()).then(D=>{Object.keys(D).forEach($=>{So($,D[$])})}).catch(D=>{console.log(D)})};Object.keys(Ao).forEach(g=>{So(g,Ao[g])});const or={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},Dl=()=>{r(27,re=v?!K&&!si:!K)},Hl=g=>!!(or.email.test(g)&&g.length<=100),Zs=()=>{r(26,K=!Hl(ae)),Dl()},Ot=g=>{switch(g){case"userNewPassword":r(34,se=!se),r(32,Le.type=se?"text":"password",Le);break;case"userConfirmPassword":r(35,oe=!oe),r(33,he.type=oe?"text":"password",he);break}},nr=g=>{switch(g){case"ToSMSReset":{r(18,ge=!0),r(20,ue=!1),r(19,Se=!1),r(21,Ae=!1);break}case"ToEmailSuccess":r(20,ue=!1),r(19,Se=!1),r(18,ge=!1),r(21,Ae=!0),window.postMessage({type:"resetPasswordLinkSent"},window.location.href);break;case"ToReset":r(19,Se=G),r(23,we=!G),r(18,ge=!1),G=!0,x!=="true"&&sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":r(23,we=!1),r(18,ge=!1),r(24,Ne=!0);break}},ar=()=>{window.postMessage({type:"ToLogin"},window.location.href)};I&&(W=s_({action:"resetPassword",siteKey:I}));const zl=()=>new Promise((g,D)=>{grecaptcha.ready(()=>{grecaptcha.execute(l,{action:"submit"}).then($=>{g($)})})}),Js=g=>{g.preventDefault(),r(17,X=!0),(I?W.ensureToken:zl)().then($=>{let be=new URL(`${n}/v1/player/resetpassword`);const Fe=I?{[hn]:$,[fn]:"false"}:{"g-recaptcha-response":$};let ur={method:"POST",headers:Ve({"Content-Type":"application/json",Accept:"application/json"},Fe)};be.searchParams.append("email",ae),v&&be.searchParams.append("birthDate",Xs),fetch(be,ur).then(fe=>Qs(fe)).then(()=>{nr("ToEmailSuccess")}).catch(fe=>{r(20,ue=!0),console.error("There was an error with the reset password request.",fe)}).finally(()=>{var fe;r(17,X=!1),G=!1,sessionStorage.setItem("resetScreenWasSeen","false"),I&&((fe=W==null?void 0:W.reset)==null||fe.call(W))})}).catch($=>{r(20,ue=!0),r(17,X=!1),G=!1,$!==null&&console.error("There was an error with captcha",$)})},Fl=()=>{if(r(56,v=v.toLowerCase()),!Bl.includes(v))return r(42,Ys="dobFormatError");r(41,qe=v.split("/")),r(43,Ee.isDayDisabled=qe[0]!=="dd",Ee),r(43,Ee.isMonthDisabled=qe[0]!=="mm",Ee),r(43,Ee.isYearDisabled=qe[0]!=="yyyy",Ee)},lr=(g,D)=>{It[D]=g.target.value,si=Object.values(It).some($=>!$),qe.forEach(($,be)=>{if(D===$)switch(qe[be+1]){case"dd":r(43,Ee.isDayDisabled=!1,Ee);case"mm":r(43,Ee.isMonthDisabled=!1,Ee);break;case"yyyy":r(43,Ee.isYearDisabled=!1,Ee);break}}),si||(Xs=`${It.yyyy}-${qs[It.mm]}-${It.dd}`),Zs()},Ks=g=>Ue(this,null,function*(){var ur;g.preventDefault();let D=new URL(`${n}/v1/player/ResetPasswordByHashKey`);const $={};if(I){const fe=yield(ur=W==null?void 0:W.ensureToken)==null?void 0:ur.call(W);$[hn]=fe,$[fn]="false"}let be={hashKey:a,plainTextPassword:de};x==="true"&&(be.isUserHash=!0);let Fe={method:"POST",headers:Ve({"Content-Type":"application/json",Accept:"application/json"},$),body:JSON.stringify(be)};fetch(D,Fe).then(fe=>Qs(fe)).then(fe=>{r(38,ii=!1),nr("ToSuccess")}).catch(fe=>{r(38,ii=!0),console.error("There was an error with changing the password.",fe)}).finally(()=>{var fe;I&&((fe=W==null?void 0:W.reset)==null||fe.call(W))})}),Vl=()=>{a&&a.length>0&&nr("ToReset")},Ul=()=>{x==="true"&&!a&&nr("ToSMSReset")},$l=()=>{!S&&!Q&&de&&U?r(29,Pe=!0):r(29,Pe=!1)},oi=g=>(d=="true"&&(or.password=/^(?!.* ).{8,20}$/),!!or.password.test(g)),jl=(g,D,$)=>{$.id==="new-password"?(r(30,S=!oi(D)),U&&r(31,Q=de===U?!oi(D):!0)):r(31,Q=de===U?!oi(D):!0),$l()},Qs=g=>Ue(this,null,function*(){var $,be;let D;try{D=yield g.json()}catch(Fe){console.error("JSON Parse Error:",Fe)}if(g.status>=300){const Fe=(($=D==null?void 0:D.thirdPartyResponse)==null?void 0:$.errorCode)||"generalError";return r(28,xe=i(Fe)),xe===String(Fe)&&/^\d+$/.test(xe)&&r(28,xe=(be=D==null?void 0:D.thirdPartyResponse)==null?void 0:be.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:xe}},window.location.href),Promise.reject(xe)}return D}),Gl=()=>{Wc(u)},Wl=()=>{r(39,Gs=i(w==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),r(40,Ws=w==="true"?i("resetPasswordSubtitle"):"")},eo=g=>{!g||!g.data||g.data.type==="SwitchToResetPasswordScreen"&&r(55,a=g.data.key)};$n(()=>{var g,D;if(jc(z)&&r(25,ke=!0),window.addEventListener("message",eo),I){const $=(g=Me.getRootNode())==null?void 0:g.host,be=Jm($,o_);be&&((D=W==null?void 0:W.render)==null||D.call(W,be))}return()=>{var $;window.removeEventListener("message",eo),I&&(($=W==null?void 0:W.cleanup)==null||$.call(W))}});const ql=()=>ar();function Yl(){ae=this.value,r(22,ae)}const Xl=g=>lr(g,"dd"),Zl=g=>lr(g,"mm"),Jl=g=>lr(g,"yyyy"),Kl=g=>Js(g),Ql=()=>ar();function eu(){de=this.value,r(36,de)}function tu(g){ht[g?"unshift":"push"](()=>{Le=g,r(32,Le)})}const ru=()=>Ot("userNewPassword"),iu=()=>Ot("userNewPassword");function su(){U=this.value,r(37,U)}function ou(g){ht[g?"unshift":"push"](()=>{he=g,r(33,he)})}const nu=()=>Ot("userConfirmPassword"),au=()=>Ot("userConfirmPassword"),lu=g=>Ks(g),uu=()=>ar();function du(g){ht[g?"unshift":"push"](()=>{Me=g,r(16,Me)})}return t.$$set=g=>{"endpoint"in g&&r(0,n=g.endpoint),"forgotpasswordkey"in g&&r(55,a=g.forgotpasswordkey),"captchakey"in g&&r(1,l=g.captchakey),"lang"in g&&r(2,u=g.lang),"simplepasswordvalidation"in g&&r(3,d=g.simplepasswordvalidation),"mbsource"in g&&r(4,c=g.mbsource),"clientstyling"in g&&r(5,f=g.clientstyling),"clientstylingurl"in g&&r(6,p=g.clientstylingurl),"translationurl"in g&&r(7,_=g.translationurl),"savecredentials"in g&&r(8,b=g.savecredentials),"hastosetpass"in g&&r(57,w=g.hastosetpass),"passwordregex"in g&&r(58,y=g.passwordregex),"dobformat"in g&&r(56,v=g.dobformat),"mindobyears"in g&&r(59,C=g.mindobyears),"maxdobyears"in g&&r(60,T=g.maxdobyears),"resetviasms"in g&&r(61,x=g.resetviasms),"phoneregex"in g&&r(9,O=g.phoneregex),"phoneprefixeditable"in g&&r(10,N=g.phoneprefixeditable),"smscodemaxattempts"in g&&r(11,ee=g.smscodemaxattempts),"smscodelength"in g&&r(12,q=g.smscodelength),"smscodettl"in g&&r(13,ie=g.smscodettl),"resenddelay"in g&&r(14,me=g.resenddelay),"turnstileSiteKey"in g&&r(15,I=g.turnstileSiteKey),"$$scope"in g&&r(62,o=g.$$scope)},t.$$.update=()=>{t.$$.dirty[1]&1090519040&&x&&!a&&Ul(),t.$$.dirty[1]&16777216&&a&&Vl(),t.$$.dirty[0]&4&&u&&Gl(),t.$$.dirty[0]&65568&&f&&Me&&Sa(Me,f),t.$$.dirty[0]&65600&&p&&Me&&Aa(Me,p),t.$$.dirty[0]&65552&&c&&Me&&Ta(Me,`${c}.Style`,kl),t.$$.dirty[0]&128&&_&&Rl(),t.$$.dirty[0]&4|t.$$.dirty[1]&67108864&&w&&u&&Wl(),t.$$.dirty[1]&134217728&&y&&(or.password=new RegExp(y)),t.$$.dirty[1]&33554432&&v&&Fl()},[n,l,u,d,c,f,p,_,b,O,N,ee,q,ie,me,I,Me,X,ge,Se,ue,Ae,ae,we,Ne,ke,K,re,xe,Pe,S,Q,Le,he,se,oe,de,U,ii,Gs,Ws,qe,Ys,Ee,i,Ll,qs,Ml,Zs,Ot,ar,Js,lr,Ks,jl,a,v,w,y,C,T,x,o,s,ql,Yl,Xl,Zl,Jl,Kl,Ql,eu,tu,ru,iu,su,ou,nu,au,lu,uu,du]}class Nl extends Xn{constructor(e){super(),Wn(this,e,S_,C_,fs,{endpoint:0,forgotpasswordkey:55,captchakey:1,lang:2,simplepasswordvalidation:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,savecredentials:8,hastosetpass:57,passwordregex:58,dobformat:56,mindobyears:59,maxdobyears:60,resetviasms:61,phoneregex:9,phoneprefixeditable:10,smscodemaxattempts:11,smscodelength:12,smscodettl:13,resenddelay:14,turnstileSiteKey:15},n_,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),Y()}get forgotpasswordkey(){return this.$$.ctx[55]}set forgotpasswordkey(e){this.$$set({forgotpasswordkey:e}),Y()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),Y()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),Y()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),Y()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),Y()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),Y()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),Y()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),Y()}get savecredentials(){return this.$$.ctx[8]}set savecredentials(e){this.$$set({savecredentials:e}),Y()}get hastosetpass(){return this.$$.ctx[57]}set hastosetpass(e){this.$$set({hastosetpass:e}),Y()}get passwordregex(){return this.$$.ctx[58]}set passwordregex(e){this.$$set({passwordregex:e}),Y()}get dobformat(){return this.$$.ctx[56]}set dobformat(e){this.$$set({dobformat:e}),Y()}get mindobyears(){return this.$$.ctx[59]}set mindobyears(e){this.$$set({mindobyears:e}),Y()}get maxdobyears(){return this.$$.ctx[60]}set maxdobyears(e){this.$$set({maxdobyears:e}),Y()}get resetviasms(){return this.$$.ctx[61]}set resetviasms(e){this.$$set({resetviasms:e}),Y()}get phoneregex(){return this.$$.ctx[9]}set phoneregex(e){this.$$set({phoneregex:e}),Y()}get phoneprefixeditable(){return this.$$.ctx[10]}set phoneprefixeditable(e){this.$$set({phoneprefixeditable:e}),Y()}get smscodemaxattempts(){return this.$$.ctx[11]}set smscodemaxattempts(e){this.$$set({smscodemaxattempts:e}),Y()}get smscodelength(){return this.$$.ctx[12]}set smscodelength(e){this.$$set({smscodelength:e}),Y()}get smscodettl(){return this.$$.ctx[13]}set smscodettl(e){this.$$set({smscodettl:e}),Y()}get resenddelay(){return this.$$.ctx[14]}set resenddelay(e){this.$$set({resenddelay:e}),Y()}get turnstileSiteKey(){return this.$$.ctx[15]}set turnstileSiteKey(e){this.$$set({turnstileSiteKey:e}),Y()}}Yn(Nl,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{},resetviasms:{},phoneregex:{},phoneprefixeditable:{},smscodemaxattempts:{},smscodelength:{},smscodettl:{},resenddelay:{},turnstileSiteKey:{}},["captchaContainer"],[],!0);const A_=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=rt;exports.$format=Ca;exports.$locale=ze;exports.GeneralPlayerForgotPasswordFormNd_ce=A_;exports.SvelteComponent=Xn;exports.addMessages=xs;exports.add_render_callback=et;exports.append=m;exports.append_styles=Fn;exports.attr=h;exports.binding_callbacks=ht;exports.check_outros=Gn;exports.component_subscribe=Rn;exports.create_bidirectional_transition=Hu;exports.create_custom_element=Yn;exports.create_in_transition=Ru;exports.create_out_transition=Du;exports.destroy_each=Un;exports.detach=k;exports.element=P;exports.ensure_array_like=Li;exports.flush=Y;exports.group_outros=jn;exports.identity=$r;exports.init=Wn;exports.insert=R;exports.listen=ne;exports.onMount=$n;exports.run_all=Oe;exports.safe_not_equal=fs;exports.setClientStyling=Sa;exports.setClientStylingURL=Aa;exports.setStreamStyling=Ta;exports.set_custom_element_data=A;exports.set_data=J;exports.set_input_value=Xe;exports.space=F;exports.split_css_unit=xu;exports.text=L;exports.toggle_class=Cu;exports.transition_in=pt;exports.transition_out=Nr;
|