@everymatrix/general-player-forgot-password-form-nd 1.94.25 → 1.94.26
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-D67_z7C4.js → GeneralPlayerForgotPasswordFormNd-BRw2mNbz.js} +3020 -2754
- package/components/{GeneralPlayerForgotPasswordFormNd-9bJr1hqg.cjs → GeneralPlayerForgotPasswordFormNd-CediPN1i.cjs} +158 -158
- package/components/{GeneralPlayerForgotPasswordFormNd-6VkSg6vF.js → GeneralPlayerForgotPasswordFormNd-kuYGNEIx.js} +2973 -2707
- package/components/{GeneralPlayerForgotPasswordSmsForm-CfaQEOJa.cjs → GeneralPlayerForgotPasswordSmsForm-BCPX2Z9Q.cjs} +1 -1
- package/components/{GeneralPlayerForgotPasswordSmsForm-BmWaejpp.js → GeneralPlayerForgotPasswordSmsForm-DfpkIkXT.js} +1 -1
- package/components/{GeneralPlayerForgotPasswordSmsForm-Bnh9kZlJ.js → GeneralPlayerForgotPasswordSmsForm-V2TZp7-L.js} +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
|
|
1
|
+
"use strict";var xu=Object.defineProperty,Pu=Object.defineProperties;var Eu=Object.getOwnPropertyDescriptors;var po=Object.getOwnPropertySymbols;var Cu=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable;var vi=(t,e,r)=>e in t?xu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qe=(t,e)=>{for(var r in e||(e={}))Cu.call(e,r)&&vi(t,r,e[r]);if(po)for(var r of po(e))Su.call(e,r)&&vi(t,r,e[r]);return t},xr=(t,e)=>Pu(t,Eu(e));var Y=(t,e,r)=>(vi(t,typeof e!="symbol"?e+"":e,r),r);var Ye=(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 J(){}const ri=t=>t;function Au(t,e){for(const r in e)t[r]=e[r];return t}function Yn(t){return t()}function mo(){return Object.create(null)}function He(t){t.forEach(Yn)}function Ke(t){return typeof t=="function"}function ii(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Pr;function _o(t,e){return t===e?!0:(Pr||(Pr=document.createElement("a")),Pr.href=e,t===Pr.href)}function Tu(t){return Object.keys(t).length===0}function Xn(t,...e){if(t==null){for(const i of e)i(void 0);return J}const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function Zn(t,e,r){t.$$.on_destroy.push(Xn(e,r))}function Jn(t,e,r,i){if(t){const s=Kn(t,e,r,i);return t[0](s)}}function Kn(t,e,r,i){return t[1]&&i?Au(r.ctx.slice(),t[1](i(e))):r.ctx}function Qn(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 ea(t,e,r,i,s,o){if(s){const n=Kn(e,r,i,o);t.p(n,s)}}function ta(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 Iu(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const ra=typeof window!="undefined";let Ss=ra?()=>window.performance.now():()=>Date.now(),As=ra?t=>requestAnimationFrame(t):J;const gt=new Set;function ia(t){gt.forEach(e=>{e.c(t)||(gt.delete(e),e.f())}),gt.size!==0&&As(ia)}function Ts(t){let e;return gt.size===0&&As(ia),{promise:new Promise(r=>{gt.add(e={c:t,f:r})}),abort(){gt.delete(e)}}}function m(t,e){t.appendChild(e)}function sa(t,e,r){const i=Is(t);if(!i.getElementById(e)){const s=E("style");s.id=e,s.textContent=r,oa(i,s)}}function Is(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ou(t){const e=E("style");return e.textContent="/* empty */",oa(Is(t),e),e.sheet}function oa(t,e){return m(t.head||t,e),e.sheet}function L(t,e,r){t.insertBefore(e,r||null)}function N(t){t.parentNode&&t.parentNode.removeChild(t)}function na(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function E(t){return document.createElement(t)}function C(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function D(t){return document.createTextNode(t)}function j(){return D(" ")}function dr(){return D("")}function fe(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 O(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 Nu(t){return Array.from(t.childNodes)}function ie(t,e){e=""+e,t.data!==e&&(t.data=e)}function tt(t,e){t.value=e==null?"":e}function ku(t,e,r){t.classList.toggle(e,!!r)}function Mu(t,e,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:r,cancelable:i})}function Lu(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function zr(t,e){return new t(e)}const Fr=new Map;let Vr=0;function Bu(t){let e=5381,r=t.length;for(;r--;)e=(e<<5)-e^t.charCodeAt(r);return e>>>0}function Ru(t,e){const r={stylesheet:Ou(e),rules:{}};return Fr.set(t,r),r}function Ur(t,e,r,i,s,o,n,a=0){const l=16.666/i;let u=`{
|
|
2
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
|
|
4
|
-
}`,
|
|
3
|
+
`}const c=u+`100% {${n(r,1-r)}}
|
|
4
|
+
}`,d=`__svelte_${Bu(c)}_${a}`,f=Is(t),{stylesheet:p,rules:_}=Fr.get(f)||Ru(f,t);_[d]||(_[d]=!0,p.insertRule(`@keyframes ${d} ${c}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${i}ms linear ${s}ms 1 both`,Vr+=1,d}function $r(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(", "),Vr-=s,Vr||Du())}function Du(){As(()=>{Vr||(Fr.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&N(e)}),Fr.clear())})}let Jt;function qt(t){Jt=t}function Hu(){if(!Jt)throw new Error("Function called outside component initialization");return Jt}function aa(t){Hu().$$.on_mount.push(t)}const pt=[],bt=[];let vt=[];const go=[],zu=Promise.resolve();let Gi=!1;function Fu(){Gi||(Gi=!0,zu.then(ee))}function nt(t){vt.push(t)}const yi=new Set;let dt=0;function ee(){if(dt!==0)return;const t=Jt;do{try{for(;dt<pt.length;){const e=pt[dt];dt++,qt(e),Vu(e.$$)}}catch(e){throw pt.length=0,dt=0,e}for(qt(null),pt.length=0,dt=0;bt.length;)bt.pop()();for(let e=0;e<vt.length;e+=1){const r=vt[e];yi.has(r)||(yi.add(r),r())}vt.length=0}while(pt.length);for(;go.length;)go.pop()();Gi=!1,yi.clear(),qt(t)}function Vu(t){if(t.fragment!==null){t.update(),He(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(nt)}}function Uu(t){const e=[],r=[];vt.forEach(i=>t.indexOf(i)===-1?e.push(i):r.push(i)),r.forEach(i=>i()),vt=e}let Ht;function Os(){return Ht||(Ht=Promise.resolve(),Ht.then(()=>{Ht=null})),Ht}function it(t,e,r){t.dispatchEvent(Mu(`${e?"intro":"outro"}${r}`))}const Nr=new Set;let Fe;function $e(){Fe={r:0,c:[],p:Fe}}function je(){Fe.r||He(Fe.c),Fe=Fe.p}function ae(t,e){t&&t.i&&(Nr.delete(t),t.i(e))}function pe(t,e,r,i){if(t&&t.o){if(Nr.has(t))return;Nr.add(t),Fe.c.push(()=>{Nr.delete(t),i&&(r&&t.d(1),i())}),t.o(e)}else i&&i()}const Ns={duration:0};function $u(t,e,r){const i={direction:"in"};let s=e(t,r,i),o=!1,n,a,l=0;function u(){n&&$r(t,n)}function c(){const{delay:f=0,duration:p=300,easing:_=ri,tick:g=J,css:w}=s||Ns;w&&(n=Ur(t,0,1,p,f,_,w,l++)),g(0,1);const y=Ss()+f,v=y+p;a&&a.abort(),o=!0,nt(()=>it(t,!0,"start")),a=Ts(S=>{if(o){if(S>=v)return g(1,0),it(t,!0,"end"),u(),o=!1;if(S>=y){const k=_((S-y)/p);g(k,1-k)}}return o})}let d=!1;return{start(){d||(d=!0,$r(t),Ke(s)?(s=s(i),Os().then(c)):c())},invalidate(){d=!1},end(){o&&(u(),o=!1)}}}function ju(t,e,r){const i={direction:"out"};let s=e(t,r,i),o=!0,n;const a=Fe;a.r+=1;let l;function u(){const{delay:c=0,duration:d=300,easing:f=ri,tick:p=J,css:_}=s||Ns;_&&(n=Ur(t,1,0,d,c,f,_));const g=Ss()+c,w=g+d;nt(()=>it(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),Ts(y=>{if(o){if(y>=w)return p(0,1),it(t,!1,"end"),--a.r||He(a.c),!1;if(y>=g){const v=f((y-g)/d);p(1-v,v)}}return o})}return Ke(s)?Os().then(()=>{s=s(i),u()}):u(),{end(c){c&&"inert"in t&&(t.inert=l),c&&s.tick&&s.tick(1,0),o&&(n&&$r(t,n),o=!1)}}}function Gu(t,e,r,i){let o=e(t,r,{direction:"both"}),n=i?0:1,a=null,l=null,u=null,c;function d(){u&&$r(t,u)}function f(_,g){const w=_.b-n;return g*=Math.abs(w),{a:n,b:_.b,d:w,duration:g,start:_.start,end:_.start+g,group:_.group}}function p(_){const{delay:g=0,duration:w=300,easing:y=ri,tick:v=J,css:S}=o||Ns,k={start:Ss()+g,b:_};_||(k.group=Fe,Fe.r+=1),"inert"in t&&(_?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),a||l?l=k:(S&&(d(),u=Ur(t,n,_,w,g,y,S)),_&&v(0,1),a=f(k,w),nt(()=>it(t,_,"start")),Ts(x=>{if(l&&x>l.start&&(a=f(l,w),l=null,it(t,a.b,"start"),S&&(d(),u=Ur(t,n,a.b,a.duration,0,y,o.css))),a){if(x>=a.end)v(n=a.b,1-n),it(t,a.b,"end"),l||(a.b?d():--a.group.r||He(a.group.c)),a=null;else if(x>=a.start){const M=x-a.start;n=a.a+a.d*y(M/a.duration),v(n,1-n)}}return!!(a||l)}))}return{run(_){Ke(o)?Os().then(()=>{o=o({direction:_?"in":"out"}),p(_)}):p(_)},end(){d(),a=l=null}}}function Wi(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function jr(t){t&&t.c()}function Kt(t,e,r){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,r),nt(()=>{const o=t.$$.on_mount.map(Yn).filter(Ke);t.$$.on_destroy?t.$$.on_destroy.push(...o):He(o),t.$$.on_mount=[]}),s.forEach(nt)}function Qt(t,e){const r=t.$$;r.fragment!==null&&(Uu(r.after_update),He(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function Wu(t,e){t.$$.dirty[0]===-1&&(pt.push(t),Fu(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ks(t,e,r,i,s,o,n=null,a=[-1]){const l=Jt;qt(t);const u=t.$$={fragment:null,ctx:[],props:o,update:J,not_equal:s,bound:mo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:mo(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=r?r(t,e.props||{},(d,f,...p)=>{const _=p.length?p[0]:f;return u.ctx&&s(u.ctx[d],u.ctx[d]=_)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](_),c&&Wu(t,d)),f}):[],u.update(),c=!0,He(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const d=Nu(e.target);u.fragment&&u.fragment.l(d),d.forEach(N)}else u.fragment&&u.fragment.c();e.intro&&ae(t.$$.fragment),Kt(t,e.target,e.anchor),ee()}qt(l)}let la;typeof HTMLElement=="function"&&(la=class extends HTMLElement{constructor(e,r,i){super();Y(this,"$$ctor");Y(this,"$$s");Y(this,"$$c");Y(this,"$$cn",!1);Y(this,"$$d",{});Y(this,"$$r",!1);Y(this,"$$p_d",{});Y(this,"$$l",{});Y(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 Ye(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let n;return{c:function(){n=E("slot"),o!=="default"&&h(n,"name",o)},m:function(u,c){L(u,n,c)},d:function(u){u&&N(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Lu(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]=kr(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:xr(qe({},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=kr(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]=kr(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 kr(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 Ms(t,e,r,i,s,o){let n=class extends la{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=kr(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 Ls{constructor(){Y(this,"$$");Y(this,"$$set")}$destroy(){Qt(this,1),this.$destroy=J}$on(e,r){if(!Ke(r))return J;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&&!Tu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const qu="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qu);/*! *****************************************************************************
|
|
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
|
|
17
|
+
***************************************************************************** */var qi=function(t,e){return qi=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])},qi(t,e)};function hr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");qi(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Yi(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 Xi(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 Zi(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 Ue(t){return typeof t=="function"}function ua(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 wi=ua(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
18
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.
|
|
19
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Ji(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var si=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=Yi(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else n.remove(this);var c=this.initialTeardown;if(Ue(c))try{c()}catch(g){o=g instanceof wi?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Yi(d),p=f.next();!p.done;p=f.next()){var _=p.value;try{bo(_)}catch(g){o=o!=null?o:[],g instanceof wi?o=Zi(Zi([],Xi(o)),Xi(g.errors)):o.push(g)}}}catch(g){i={error:g}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new wi(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)bo(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)&&Ji(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Ji(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),ca=si.EMPTY;function da(t){return t instanceof si||t&&"closed"in t&&Ue(t.remove)&&Ue(t.add)&&Ue(t.unsubscribe)}function bo(t){Ue(t)?t():t.unsubscribe()}var Yu={Promise:void 0},Xu={setTimeout:function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Zi([t,e],Xi(r)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Zu(t){Xu.setTimeout(function(){throw t})}function vo(){}function Mr(t){t()}var ha=function(t){hr(e,t);function e(r){var i=t.call(this)||this;return i.isStopped=!1,r?(i.destination=r,da(r)&&r.add(i)):i.destination=Qu,i}return e.create=function(r,i,s){return new Ki(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}(si),Ju=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){Er(i)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(i){Er(i)}else Er(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Er(r)}},t}(),Ki=function(t){hr(e,t);function e(r,i,s){var o=t.call(this)||this,n;return Ue(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 Ju(n),o}return e}(ha);function Er(t){Zu(t)}function Ku(t){throw t}var Qu={closed:!0,next:vo,error:Ku,complete:vo},ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tc(t){return t}function rc(t){return t.length===0?tc:t.length===1?t[0]:function(r){return t.reduce(function(i,s){return s(i)},r)}}var yo=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=sc(e)?e:new Ki(e,r,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},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=wo(r),new r(function(s,o){var n=new Ki({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[ec]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return rc(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=wo(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 wo(t){var e;return(e=t!=null?t:Yu.Promise)!==null&&e!==void 0?e:Promise}function ic(t){return t&&Ue(t.next)&&Ue(t.error)&&Ue(t.complete)}function sc(t){return t&&t instanceof ha||ic(t)&&da(t)}var oc=ua(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),fa=function(t){hr(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 xo(this,this);return i.operator=r,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new oc},e.prototype.next=function(r){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=Yi(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;Mr(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;Mr(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?ca:(this.currentObservers=null,a.push(r),new si(function(){i.currentObservers=null,Ji(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 yo;return r.source=this,r},e.create=function(r,i){return new xo(r,i)},e}(yo),xo=function(t){hr(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:ca},e}(fa),pa={now:function(){return(pa.delegate||Date).now()},delegate:void 0},nc=function(t){hr(e,t);function e(r,i,s){r===void 0&&(r=1/0),i===void 0&&(i=1/0),s===void 0&&(s=pa);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,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},e}(fa);const Po=[],Eo={},ac=(t,e=0)=>{if(Po.indexOf(t)==-1){const r=new nc(e);Eo[t]=r,Po.push(t)}return Eo[t]},ht=[];function lc(t,e){return{subscribe:oi(t,e).subscribe}}function oi(t,e=J){let r;const i=new Set;function s(a){if(ii(t,a)&&(t=a,r)){const l=!ht.length;for(const u of i)u[1](),ht.push(u,t);if(l){for(let u=0;u<ht.length;u+=2)ht[u][0](ht[u+1]);ht.length=0}}}function o(a){s(a(t))}function n(a,l=J){const u=[a,l];return i.add(u),i.size===1&&(r=e(s,o)||J),a(t),()=>{i.delete(u),i.size===0&&r&&(r(),r=null)}}return{set:s,update:o,subscribe:n}}function Ot(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 lc(r,(n,a)=>{let l=!1;const u=[];let c=0,d=J;const f=()=>{if(c)return;d();const _=e(i?u[0]:u,n,a);o?n(_):d=Ke(_)?_:J},p=s.map((_,g)=>Xn(_,w=>{u[g]=w,c&=~(1<<g),l&&f()},()=>{c|=1<<g}));return l=!0,f(),function(){He(p),d(),l=!1}})}function uc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cc=function(e){return dc(e)&&!hc(e)};function dc(t){return!!t&&typeof t=="object"}function hc(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||mc(t)}var fc=typeof Symbol=="function"&&Symbol.for,pc=fc?Symbol.for("react.element"):60103;function mc(t){return t.$$typeof===pc}function _c(t){return Array.isArray(t)?[]:{}}function er(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Pt(_c(t),t,e):t}function gc(t,e,r){return t.concat(e).map(function(i){return er(i,r)})}function bc(t,e){if(!e.customMerge)return Pt;var r=e.customMerge(t);return typeof r=="function"?r:Pt}function vc(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Co(t){return Object.keys(t).concat(vc(t))}function ma(t,e){try{return e in t}catch(r){return!1}}function yc(t,e){return ma(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function wc(t,e,r){var i={};return r.isMergeableObject(t)&&Co(t).forEach(function(s){i[s]=er(t[s],r)}),Co(e).forEach(function(s){yc(t,s)||(ma(t,s)&&r.isMergeableObject(e[s])?i[s]=bc(s,r)(t[s],e[s],r):i[s]=er(e[s],r))}),i}function Pt(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||gc,r.isMergeableObject=r.isMergeableObject||cc,r.cloneUnlessOtherwiseSpecified=er;var i=Array.isArray(e),s=Array.isArray(t),o=i===s;return o?i?r.arrayMerge(t,e,r):wc(t,e,r):er(e,r)}Pt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,s){return Pt(i,s,r)},{})};var xc=Pt,Pc=xc;const Ec=uc(Pc);var Qi=function(t,e){return Qi=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])},Qi(t,e)};function ni(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Qi(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ze=function(){return ze=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},ze.apply(this,arguments)};function Cc(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 xi(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 Pi(t,e){var r=e&&e.cache?e.cache:kc,i=e&&e.serializer?e.serializer:Oc,s=e&&e.strategy?e.strategy:Tc;return s(t,{cache:r,serializer:i})}function Sc(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Ac(t,e,r,i){var s=Sc(i)?i:r(i),o=e.get(s);return typeof o=="undefined"&&(o=t.call(this,i),e.set(s,o)),o}function _a(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 ga(t,e,r,i,s){return r.bind(e,t,i,s)}function Tc(t,e){var r=t.length===1?Ac:_a;return ga(t,this,r,e.cache.create(),e.serializer)}function Ic(t,e){return ga(t,this,_a,e.cache.create(),e.serializer)}var Oc=function(){return JSON.stringify(arguments)},Nc=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}(),kc={create:function(){return new Nc}},Ei={variadic:Ic},Gr=function(){return Gr=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},Gr.apply(this,arguments)};var H;(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"})(H||(H={}));var re;(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"})(re||(re={}));var Et;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Et||(Et={}));function So(t){return t.type===re.literal}function Mc(t){return t.type===re.argument}function ba(t){return t.type===re.number}function va(t){return t.type===re.date}function ya(t){return t.type===re.time}function wa(t){return t.type===re.select}function xa(t){return t.type===re.plural}function Lc(t){return t.type===re.pound}function Pa(t){return t.type===re.tag}function Ea(t){return!!(t&&typeof t=="object"&&t.type===Et.number)}function es(t){return!!(t&&typeof t=="object"&&t.type===Et.dateTime)}var Ca=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Bc=/(?:[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 Rc(t){var e={};return t.replace(Bc,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 ne=function(){return ne=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},ne.apply(this,arguments)};var Dc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Hc(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(Dc).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,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function zc(t){return t.replace(/^(.*?)-/,"")}var Ao=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Sa=/^(@+)?(\+|#+)?[rs]?$/g,Fc=/(\*)(0+)|(#+)(0+)|(0+)/g,Aa=/^(0+)$/;function To(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Sa,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 Ta(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 Vc(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)),!Aa.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Io(t){var e={},r=Ta(t);return r||e}function Uc(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=zc(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=ne(ne(ne({},e),{notation:"scientific"}),s.options.reduce(function(l,u){return ne(ne({},l),Io(u))},{}));continue;case"engineering":e=ne(ne(ne({},e),{notation:"engineering"}),s.options.reduce(function(l,u){return ne(ne({},l),Io(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(Fc,function(l,u,c,d,f,p){if(u)e.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Aa.test(s.stem)){e.minimumIntegerDigits=s.stem.length;continue}if(Ao.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Ao,function(l,u,c,d,f,p){return c==="*"?e.minimumFractionDigits=u.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:f&&p?(e.minimumFractionDigits=f.length,e.maximumFractionDigits=f.length+p.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=s.options[0];o==="w"?e=ne(ne({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=ne(ne({},e),To(o)));continue}if(Sa.test(s.stem)){e=ne(ne({},e),To(s.stem));continue}var n=Ta(s.stem);n&&(e=ne(ne({},e),n));var a=Vc(s.stem);a&&(e=ne(ne({},e),a))}return e}var Cr={"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 $c(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=jc(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 jc(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=Cr[i||""]||Cr[r||""]||Cr["".concat(r,"-001")]||Cr["001"];return s[0]}var Ci,Gc=new RegExp("^".concat(Ca.source,"*")),Wc=new RegExp("".concat(Ca.source,"*$"));function z(t,e){return{start:t,end:e}}var qc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Yc=!!String.fromCodePoint,Xc=!!Object.fromEntries,Zc=!!String.prototype.codePointAt,Jc=!!String.prototype.trimStart,Kc=!!String.prototype.trimEnd,Qc=!!Number.isSafeInteger,ed=Qc?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ts=!0;try{var td=Oa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ts=((Ci=td.exec("a"))===null||Ci===void 0?void 0:Ci[0])==="a"}catch(t){ts=!1}var Oo=qc?function(e,r,i){return e.startsWith(r,i)}:function(e,r,i){return e.slice(i,i+r.length)===r},rs=Yc?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},No=Xc?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},Ia=Zc?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}},rd=Jc?function(e){return e.trimStart()}:function(e){return e.replace(Gc,"")},id=Kc?function(e){return e.trimEnd()}:function(e){return e.replace(Wc,"")};function Oa(t,e){return new RegExp(t,e)}var is;if(ts){var ko=Oa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");is=function(e,r){var i;ko.lastIndex=r;var s=ko.exec(e);return(i=s[1])!==null&&i!==void 0?i:""}}else is=function(e,r){for(var i=[];;){var s=Ia(e,r);if(s===void 0||Na(s)||ad(s))break;i.push(s),r+=s>=65536?2:1}return rs.apply(void 0,i)};var sd=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:re.pound,location:z(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(H.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ss(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:re.literal,value:"<".concat(s,"/>"),location:z(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()||!ss(this.char()))return this.error(H.INVALID_TAG,z(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(H.UNMATCHED_CLOSING_TAG,z(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:re.tag,value:s,children:n,location:z(i,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,z(a,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,z(i,this.clonePosition()))}else return this.error(H.INVALID_TAG,z(i,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&nd(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=z(i,this.clonePosition());return{val:{type:re.literal,value:s,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!od(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 rs.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(),rs(i))},t.prototype.parseArgument=function(e,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,z(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,z(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(H.MALFORMED_ARGUMENT,z(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,z(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:re.argument,value:s,location:z(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,z(i,this.clonePosition())):this.parseArgumentOptions(e,r,s,i);default:return this.error(H.MALFORMED_ARGUMENT,z(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),i=is(this.message,r),s=r+i.length;this.bumpTo(s);var o=this.clonePosition(),n=z(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(H.EXPECT_ARGUMENT_TYPE,z(n,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=id(d.val);if(f.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));var p=z(c,this.clonePosition());u={style:f,styleLocation:p}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=z(s,this.clonePosition());if(u&&Oo(u==null?void 0:u.style,"::",0)){var w=rd(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:re.number,value:i,location:g,style:d.val},err:null}}else{if(w.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,g);var y=w;this.locale&&(y=$c(w,this.locale));var f={type:Et.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Rc(y):{}},v=a==="date"?re.date:re.time;return{val:{type:v,value:i,location:g,style:f},err:null}}}return{val:{type:a==="number"?re.number:a==="date"?re.date:re.time,value:i,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,z(S,Gr({},S)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),x=0;if(a!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),k=this.parseIdentifierIfPossible(),x=d.val}var M=this.tryParsePluralOrSelectOptions(e,a,r,k);if(M.err)return M;var _=this.tryParseArgumentClose(s);if(_.err)return _;var R=z(s,this.clonePosition());return a==="select"?{val:{type:re.select,value:i,options:No(M.val),location:R},err:null}:{val:{type:re.plural,value:i,options:No(M.val),offset:x,pluralType:a==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,z(n,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,z(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(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,z(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=Hc(e)}catch(s){return this.error(H.INVALID_NUMBER_SKELETON,r)}return{val:{type:Et.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Uc(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,i,s){for(var o,n=!1,a=[],l=new Set,u=s.value,c=s.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=z(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,z(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,r,i);if(_.err)return _;var g=this.tryParseArgumentClose(p);if(g.err)return g;a.push([u,{value:_.val,location:z(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(H.MISSING_OTHER_CLAUSE,z(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=z(s,this.clonePosition());return o?(n*=i,ed(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=Ia(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(Oo(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()&&Na(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 ss(t){return t>=97&&t<=122||t>=65&&t<=90}function od(t){return ss(t)||t===47}function nd(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 Na(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function ad(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 os(t){t.forEach(function(e){if(delete e.location,wa(e)||xa(e))for(var r in e.options)delete e.options[r].location,os(e.options[r].value);else ba(e)&&Ea(e.style)||(va(e)||ya(e))&&es(e.style)?delete e.style.location:Pa(e)&&os(e.children)})}function ld(t,e){e===void 0&&(e={}),e=Gr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new sd(t,e).parse();if(r.err){var i=SyntaxError(H[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return e!=null&&e.captureLocation||os(r.val),r.val}var Ct;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Ct||(Ct={}));var ai=function(t){ni(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),Mo=function(t){ni(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('", "'),'"'),Ct.INVALID_VALUE,o)||this}return e}(ai),ud=function(t){ni(e,t);function e(r,i,s){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Ct.INVALID_VALUE,s)||this}return e}(ai),cd=function(t){ni(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,'"'),Ct.MISSING_VALUE,i)||this}return e}(ai),Pe;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(Pe||(Pe={}));function dd(t){return t.length<2?t:t.reduce(function(e,r){var i=e[e.length-1];return!i||i.type!==Pe.literal||r.type!==Pe.literal?e.push(r):i.value+=r.value,e},[])}function hd(t){return typeof t=="function"}function Lr(t,e,r,i,s,o,n){if(t.length===1&&So(t[0]))return[{type:Pe.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(So(c)){a.push({type:Pe.literal,value:c.value});continue}if(Lc(c)){typeof o=="number"&&a.push({type:Pe.literal,value:r.getNumberFormat(e).format(o)});continue}var d=c.value;if(!(s&&d in s))throw new cd(d,n);var f=s[d];if(Mc(c)){(!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(va(c)){var p=typeof c.style=="string"?i.date[c.style]:es(c.style)?c.style.parsedOptions:void 0;a.push({type:Pe.literal,value:r.getDateTimeFormat(e,p).format(f)});continue}if(ya(c)){var p=typeof c.style=="string"?i.time[c.style]:es(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:Pe.literal,value:r.getDateTimeFormat(e,p).format(f)});continue}if(ba(c)){var p=typeof c.style=="string"?i.number[c.style]:Ea(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),a.push({type:Pe.literal,value:r.getNumberFormat(e,p).format(f)});continue}if(Pa(c)){var _=c.children,g=c.value,w=s[g];if(!hd(w))throw new ud(g,"function",n);var y=Lr(_,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"?Pe.literal:Pe.object,value:x}}))}if(wa(c)){var S=c.options[f]||c.options.other;if(!S)throw new Mo(c.value,f,Object.keys(c.options),n);a.push.apply(a,Lr(S.value,e,r,i,s));continue}if(xa(c)){var S=c.options["=".concat(f)];if(!S){if(!Intl.PluralRules)throw new ai(`Intl.PluralRules is not available in this environment.
|
|
20
20
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
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)})}/**
|
|
21
|
+
`,Ct.MISSING_INTL_API,n);var k=r.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));S=c.options[k]||c.options.other}if(!S)throw new Mo(c.value,f,Object.keys(c.options),n);a.push.apply(a,Lr(S.value,e,r,i,s,f-(c.offset||0)));continue}}return dd(a)}function fd(t,e){return e?ze(ze(ze({},t||{}),e||{}),Object.keys(t).reduce(function(r,i){return r[i]=ze(ze({},t[i]),e[i]||{}),r},{})):t}function pd(t,e){return e?Object.keys(t).reduce(function(r,i){return r[i]=fd(t[i],e[i]),r},ze({},t)):t}function Si(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function md(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Pi(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,xi([void 0],r,!1)))},{cache:Si(t.number),strategy:Ei.variadic}),getDateTimeFormat:Pi(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,xi([void 0],r,!1)))},{cache:Si(t.dateTime),strategy:Ei.variadic}),getPluralRules:Pi(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,xi([void 0],r,!1)))},{cache:Si(t.pluralRules),strategy:Ei.variadic})}}var _d=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 c=u.reduce(function(d,f){return!d.length||f.type!==Pe.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Lr(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=Cc(n,["formatters"]);this.ast=t.__parse(e,ze(ze({},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=pd(t.formats,i),this.formatters=s&&s.formatters||md(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=ld,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 gd(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 Ze={},bd=(t,e,r)=>r&&(e in Ze||(Ze[e]={}),t in Ze[e]||(Ze[e][t]=r),r),ka=(t,e)=>{if(e==null)return;if(e in Ze&&t in Ze[e])return Ze[e][t];const r=li(e);for(let i=0;i<r.length;i++){const s=r[i],o=yd(s,t);if(o)return bd(t,e,o)}};let Bs;const lt=oi({});function vd(t){return Bs[t]||null}function Ma(t){return t in Bs}function yd(t,e){if(!Ma(t))return null;const r=vd(t);return gd(r,e)}function wd(t){if(t==null)return;const e=li(t);for(let r=0;r<e.length;r++){const i=e[r];if(Ma(i))return i}}function Rs(t,...e){delete Ze[t],lt.update(r=>(r[t]=Ec.all([r[t]||{},...e]),r))}Ot([lt],([t])=>Object.keys(t));lt.subscribe(t=>Bs=t);const Br={};function xd(t,e){Br[t].delete(e),Br[t].size===0&&delete Br[t]}function La(t){return Br[t]}function Pd(t){return li(t).map(e=>{const r=La(e);return[e,r?[...r]:[]]}).filter(([,e])=>e.length>0)}function ns(t){return t==null?!1:li(t).some(e=>{var r;return(r=La(e))==null?void 0:r.size})}function Ed(t,e){return Promise.all(e.map(i=>(xd(t,i),i().then(s=>s.default||s)))).then(i=>Rs(t,...i))}const zt={};function Ba(t){if(!ns(t))return t in zt?zt[t]:Promise.resolve();const e=Pd(t);return zt[t]=Promise.all(e.map(([r,i])=>Ed(r,i))).then(()=>{if(ns(t))return Ba(t);delete zt[t]}),zt[t]}const Cd={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"}}},Sd={fallbackLocale:null,loadingDelay:200,formats:Cd,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ad=Sd;function St(){return Ad}const Ai=oi(!1);var Td=Object.defineProperty,Id=Object.defineProperties,Od=Object.getOwnPropertyDescriptors,Lo=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,kd=Object.prototype.propertyIsEnumerable,Bo=(t,e,r)=>e in t?Td(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Md=(t,e)=>{for(var r in e||(e={}))Nd.call(e,r)&&Bo(t,r,e[r]);if(Lo)for(var r of Lo(e))kd.call(e,r)&&Bo(t,r,e[r]);return t},Ld=(t,e)=>Id(t,Od(e));let as;const Wr=oi(null);function Ro(t){return t.split("-").map((e,r,i)=>i.slice(0,r+1).join("-")).reverse()}function li(t,e=St().fallbackLocale){const r=Ro(t);return e?[...new Set([...r,...Ro(e)])]:r}function ut(){return as!=null?as:void 0}Wr.subscribe(t=>{as=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const Bd=t=>{if(t&&wd(t)&&ns(t)){const{loadingDelay:e}=St();let r;return typeof window!="undefined"&&ut()!=null&&e?r=window.setTimeout(()=>Ai.set(!0),e):Ai.set(!0),Ba(t).then(()=>{Wr.set(t)}).finally(()=>{clearTimeout(r),Ai.set(!1)})}return Wr.set(t)},Ge=Ld(Md({},Wr),{set:Bd}),ui=t=>{const e=Object.create(null);return i=>{const s=JSON.stringify(i);return s in e?e[s]:e[s]=t(i)}};var Rd=Object.defineProperty,qr=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,Do=(t,e,r)=>e in t?Rd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ds=(t,e)=>{for(var r in e||(e={}))Ra.call(e,r)&&Do(t,r,e[r]);if(qr)for(var r of qr(e))Da.call(e,r)&&Do(t,r,e[r]);return t},Nt=(t,e)=>{var r={};for(var i in t)Ra.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&qr)for(var i of qr(t))e.indexOf(i)<0&&Da.call(t,i)&&(r[i]=t[i]);return r};const tr=(t,e)=>{const{formats:r}=St();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Dd=ui(t=>{var e=t,{locale:r,format:i}=e,s=Nt(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=tr("number",i)),new Intl.NumberFormat(r,s)}),Hd=ui(t=>{var e=t,{locale:r,format:i}=e,s=Nt(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=tr("date",i):Object.keys(s).length===0&&(s=tr("date","short")),new Intl.DateTimeFormat(r,s)}),zd=ui(t=>{var e=t,{locale:r,format:i}=e,s=Nt(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=tr("time",i):Object.keys(s).length===0&&(s=tr("time","short")),new Intl.DateTimeFormat(r,s)}),Fd=(t={})=>{var e=t,{locale:r=ut()}=e,i=Nt(e,["locale"]);return Dd(Ds({locale:r},i))},Vd=(t={})=>{var e=t,{locale:r=ut()}=e,i=Nt(e,["locale"]);return Hd(Ds({locale:r},i))},Ud=(t={})=>{var e=t,{locale:r=ut()}=e,i=Nt(e,["locale"]);return zd(Ds({locale:r},i))},$d=ui((t,e=ut())=>new _d(t,e,St().formats,{ignoreTag:St().ignoreTag})),jd=(t,e={})=>{var r,i,s,o;let n=e;typeof t=="object"&&(n=t,t=n.id);const{values:a,locale:l=ut(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ka(t,l);if(!c)c=(o=(s=(i=(r=St()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:t,defaultValue:u}))!=null?s:u)!=null?o:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let d=c;try{d=$d(c,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,f.message)}return d},Gd=(t,e)=>Ud(e).format(t),Wd=(t,e)=>Vd(e).format(t),qd=(t,e)=>Fd(e).format(t),Yd=(t,e=ut())=>ka(t,e),Ha=Ot([Ge,lt],()=>jd);Ot([Ge],()=>Gd);Ot([Ge],()=>Wd);Ot([Ge],()=>qd);Ot([Ge,lt],()=>Yd);window.emWidgets={topic:ac};const Xd=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 Zd({withLocale:t,translations:e}){Ge.subscribe(r=>{r==null&&(lt.set(e),Ge.set(t))})}function Ho(t,e){Rs(t,e)}function Jd(t){Ge.set(t)}const mt="__WIDGET_GLOBAL_STYLE_CACHE__";function za(t,e){if(t){const r=document.createElement("style");r.innerHTML=e,t.appendChild(r)}}function Fa(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 Va(t,e,r,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return r=Kd(t,e),r;window[mt]||(window[mt]={}),r=Qd(t,e);const o=r.unsubscribe.bind(r),n=()=>{if(window[mt][e]){const a=window[mt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[mt][e]}o()};return r.unsubscribe=n,r}function Kd(t,e){const r=document.createElement("style");return window.emMessageBus.subscribe(e,i=>{t&&(r.innerHTML=i,t.appendChild(r))})}function Qd(t,e){return window.emMessageBus.subscribe(e,r=>{if(!t)return;const i=t.getRootNode(),s=window[mt];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 zo={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta.",generalError:"Došlo je do pogreške prilikom obrade vašeg zahtjeva. Molimo pokušajte ponovno...",1e3:"Nevažeći, korišten ili istekao korisnički ključ",1164:"Vaša nova lozinka je previše slična prethodnoj. Molimo odaberite lozinku koju nedavno niste koristili."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。",generalError:"您的請求出現錯誤。請再試一次...",1e3:"無效、已使用或過期的用戶密鑰",1164:"您的新密碼與之前使用的密碼過於相似。請選擇一個最近未曾使用過的密碼。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget.",generalError:"Une erreur s'est produite lors de votre demande. Veuillez réessayer...",1e3:"Clé utilisateur invalide, utilisée ou expirée",1164:"Votre nouveau mot de passe est trop similaire à un ancien. Veuillez en choisir un que vous n’avez pas utilisé récemment."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış.",generalError:"İsteğiniz yapılırken bir hata oluştu. Lütfen tekrar deneyin...",1e3:"Geçersiz, kullanılmış veya süresi dolmuş kullanıcı anahtarı",1164:"Yeni şifreniz daha önce kullandığınız bir şifreye çok benziyor. Lütfen son zamanlarda kullanmadığınız farklı bir şifre seçin."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului.",generalError:"A apărut o eroare în timpul solicitării dvs. Vă rugăm să încercați din nou...",1e3:"Cheie de utilizator invalidă, utilizată sau expirată",1164:"Noua parolă este prea asemănătoare cu una utilizată anterior. Vă rugăm să alegeți o parolă pe care nu ați folosit-o recent."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget.",generalError:"Hubo un error al realizar su solicitud. Por favor, inténtelo de nuevo...",1e3:"Clave de usuario inválida, usada o expirada",1164:"Tu nueva contraseña es demasiado similar a una que usaste anteriormente. Por favor, elige una que no hayas usado recientemente."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget.",generalError:"Houve um erro ao fazer sua solicitação. Por favor, tente novamente...",1e3:"Chave de usuário inválida, usada ou expirada",1164:"A sua nova palavra-passe é demasiado semelhante a uma que já usou. Por favor, escolha uma que não tenha usado recentemente."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."}};function eh(t){let e,r,i;return{c(){e=C("svg"),r=C("path"),i=C("animateTransform"),h(i,"attributeName","transform"),h(i,"type","rotate"),h(i,"dur","0.75s"),h(i,"values","0 12 12;360 12 12"),h(i,"repeatCount","indefinite"),h(r,"d","M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"),h(e,"fill","currentColor"),h(e,"viewBox","0 0 24 24"),h(e,"xmlns","http://www.w3.org/2000/svg")},m(s,o){L(s,e,o),m(e,r),m(r,i)},p:J,i:J,o:J,d(s){s&&N(e)}}}class rr extends Ls{constructor(e){super(),ks(this,e,null,eh,ii,{})}}Ms(rr,{},[],[],!0);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-BCPX2Z9Q.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 kt(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 th extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}kt(th);/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2019 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/const
|
|
33
|
+
*/const Rr=globalThis,Hs=Rr.ShadowRoot&&(Rr.ShadyCSS===void 0||Rr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zs=Symbol(),Fo=new WeakMap;let Fs=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==zs)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(Hs&&e===void 0){const i=r!==void 0&&r.length===1;i&&(e=Fo.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Fo.set(r,e))}return e}toString(){return this.cssText}};const rh=t=>new Fs(typeof t=="string"?t:t+"",void 0,zs),G=(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 Fs(r,t,zs)},Ua=(t,e)=>{if(Hs)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const i=document.createElement("style"),s=Rr.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}},Vo=Hs?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const i of e.cssRules)r+=i.cssText;return rh(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:ih,defineProperty:sh,getOwnPropertyDescriptor:oh,getOwnPropertyNames:nh,getOwnPropertySymbols:ah,getPrototypeOf:lh}=Object,Je=globalThis,Uo=Je.trustedTypes,uh=Uo?Uo.emptyScript:"",Ti=Je.reactiveElementPolyfillSupport,Yt=(t,e)=>t,ls={toAttribute(t,e){switch(e){case Boolean:t=t?uh: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}},$a=(t,e)=>!ih(t,e),$o={attribute:!0,type:String,converter:ls,reflect:!1,useDefault:!1,hasChanged:$a};var Un,$n;(Un=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),($n=Je.litPropertyMetadata)!=null||(Je.litPropertyMetadata=new WeakMap);let _t=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=$o){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&&sh(this.prototype,e,s)}}static getPropertyDescriptor(e,r,i){var n;const{get:s,set:o}=(n=oh(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:$o}static _$Ei(){if(this.hasOwnProperty(Yt("elementProperties")))return;const e=lh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Yt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Yt("properties"))){const r=this.properties,i=[...nh(r),...ah(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(Vo(s))}else e!==void 0&&r.push(Vo(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 Ua(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:ls).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:ls;this._$Em=s;const c=u.fromAttribute(r,l.type);this[s]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:c,this._$Em=null}}requestUpdate(e,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:$a)(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 Ye(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 jn;_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[Yt("elementProperties")]=new Map,_t[Yt("finalized")]=new Map,Ti==null||Ti({ReactiveElement:_t}),((jn=Je.reactiveElementVersions)!=null?jn:Je.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 Xt=globalThis,jo=t=>t,Yr=Xt.trustedTypes,Go=Yr?Yr.createPolicy("lit-html",{createHTML:t=>t}):void 0,ja="$lit$",Xe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ga="?"+Xe,ch=`<${Ga}>`,at=document,ir=()=>at.createComment(""),sr=t=>t===null||typeof t!="object"&&typeof t!="function",Vs=Array.isArray,dh=t=>Vs(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Ii=`[
|
|
42
|
+
\f\r]`,Ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wo=/-->/g,qo=/>/g,et=RegExp(`>|${Ii}(?:([^\\s"'>=/]+)(${Ii}*=${Ii}*(?:[^
|
|
43
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yo=/'/g,Xo=/"/g,Wa=/^(?:script|style|textarea|title)$/i,At=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),Zo=new WeakMap,rt=at.createTreeWalker(at,129);function qa(t,e){if(!Vs(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Go!==void 0?Go.createHTML(e):e}const hh=(t,e)=>{const r=t.length-1,i=[];let s,o=e===2?"<svg>":e===3?"<math>":"",n=Ft;for(let a=0;a<r;a++){const l=t[a];let u,c,d=-1,f=0;for(;f<l.length&&(n.lastIndex=f,c=n.exec(l),c!==null);)f=n.lastIndex,n===Ft?c[1]==="!--"?n=Wo:c[1]!==void 0?n=qo:c[2]!==void 0?(Wa.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=et):c[3]!==void 0&&(n=et):n===et?c[0]===">"?(n=s!=null?s:Ft,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?et:c[3]==='"'?Xo:Yo):n===Xo||n===Yo?n=et:n===Wo||n===qo?n=Ft:(n=et,s=void 0);const p=n===et&&t[a+1].startsWith("/>")?" ":"";o+=n===Ft?l+ch:d>=0?(i.push(u),l.slice(0,d)+ja+l.slice(d)+Xe+p):l+Xe+(d===-2?a:p)}return[qa(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class or{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let o=0,n=0;const a=e.length-1,l=this.parts,[u,c]=hh(e,r);if(this.el=or.createElement(u,i),rt.currentNode=this.el.content,r===2||r===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=rt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(ja)){const f=c[n++],p=s.getAttribute(d).split(Xe),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:p,ctor:_[1]==="."?ph:_[1]==="?"?mh:_[1]==="@"?_h:ci}),s.removeAttribute(d)}else d.startsWith(Xe)&&(l.push({type:6,index:o}),s.removeAttribute(d));if(Wa.test(s.tagName)){const d=s.textContent.split(Xe),f=d.length-1;if(f>0){s.textContent=Yr?Yr.emptyScript:"";for(let p=0;p<f;p++)s.append(d[p],ir()),rt.nextNode(),l.push({type:2,index:++o});s.append(d[f],ir())}}}else if(s.nodeType===8)if(s.data===Ga)l.push({type:2,index:o});else{let d=-1;for(;(d=s.data.indexOf(Xe,d+1))!==-1;)l.push({type:7,index:o}),d+=Xe.length-1}o++}}static createElement(e,r){const i=at.createElement("template");return i.innerHTML=e,i}}function Tt(t,e,r=t,i){var n,a,l;if(e===At)return e;let s=i!==void 0?(n=r._$Co)==null?void 0:n[i]:r._$Cl;const o=sr(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=Tt(t,s._$AS(t,e.values),s,i)),e}class fh{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:at).importNode(r,!0);rt.currentNode=s;let o=rt.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new fr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new gh(o,this,e)),this._$AV.push(c),l=i[++a]}n!==(l==null?void 0:l.index)&&(o=rt.nextNode(),n++)}return rt.currentNode=at,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 fr{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=ge,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=Tt(this,e,r),sr(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==At&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):dh(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!==ge&&sr(this._$AH)?this._$AA.nextSibling.data=e:this.T(at.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=or.createElement(qa(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 fh(s,this),a=n.u(this.options);n.p(r),this.T(a),this._$AH=n}}_$AC(e){let r=Zo.get(e.strings);return r===void 0&&Zo.set(e.strings,r=new or(e)),r}k(e){Vs(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 fr(this.O(ir()),this.O(ir()),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=jo(e).nextSibling;jo(e).remove(),e=s}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}}class ci{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,o){this.type=1,this._$AH=ge,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=ge}_$AI(e,r=this,i,s){const o=this.strings;let n=!1;if(o===void 0)e=Tt(this,e,r,0),n=!sr(e)||e!==this._$AH&&e!==At,n&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=Tt(this,a[i+l],r,l),u===At&&(u=this._$AH[l]),n||(n=!sr(u)||u!==this._$AH[l]),u===ge?e=ge:e!==ge&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}n&&!s&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class ph extends ci{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}}class mh extends ci{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}}class _h extends ci{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){var n;if((e=(n=Tt(this,e,r,0))!=null?n:ge)===At)return;const i=this._$AH,s=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ge&&(i===ge||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 gh{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){Tt(this,e)}}const Oi=Xt.litHtmlPolyfillSupport;var Gn;Oi==null||Oi(or,fr),((Gn=Xt.litHtmlVersions)!=null?Gn:Xt.litHtmlVersions=[]).push("3.3.3");const bh=(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 fr(e.insertBefore(ir(),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 st=globalThis;class yt extends _t{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=bh(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 At}}var Wn;yt._$litElement$=!0,yt.finalized=!0,(Wn=st.litElementHydrateSupport)==null||Wn.call(st,{LitElement:yt});const Ni=st.litElementPolyfillSupport;Ni==null||Ni({LitElement:yt});var qn;((qn=st.litElementVersions)!=null?qn:st.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 vh=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 Ya=[],us=new Set,Us=new Set;function Xa(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function yh(t){return Xa(customElements.get(t))}function wh(t=[]){return[t].flat(1/0).filter(e=>e instanceof Fs?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Za(t,e){return(t||"").split(" ").some(r=>new RegExp(`^${r.split("*").join(".*")}$`,"u").test(e))}function Ja(t){return t.map(e=>e.cssText).join(`
|
|
56
|
+
`)}const Xr="vaadin-themable-mixin-style";function xh(t,e){const r=document.createElement("style");r.id=Xr,r.textContent=Ja(t),e.content.appendChild(r)}function Ph(t){if(!t.shadowRoot)return;const e=t.constructor;if(t instanceof yt)[...t.shadowRoot.querySelectorAll("style")].forEach(r=>r.remove()),Ua(t.shadowRoot,e.elementStyles);else{const r=t.shadowRoot.getElementById(Xr),i=e.prototype._template;r.textContent=i.content.getElementById(Xr).textContent}}function Eh(t){us.forEach(e=>{const r=e.deref();r instanceof t?Ph(r):r||us.delete(e)})}function Ka(t){if(t.prototype instanceof yt)t.elementStyles=t.finalizeStyles(t.styles);else{const e=t.prototype._template;e.content.getElementById(Xr).textContent=Ja(t.getStylesForThis())}Us.forEach(e=>{const r=customElements.get(e);r!==t&&r.prototype instanceof t&&Ka(r)})}function Ch(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 we(t,e,r={}){e=wh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,r):Ya.push({themeFor:t,styles:e,include:r.include,moduleId:r.moduleId}),t&&Us.forEach(i=>{if(Za(t,i)&&yh(i)){const s=customElements.get(i);Ch(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".`),Ka(s),Eh(s)}})}function cs(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ya}function Sh(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Qa(t){const e=[];return t.include&&[].concat(t.include).forEach(r=>{const i=cs().find(s=>s.moduleId===r);i?e.push(...Qa(i),...i.styles):console.warn(`Included moduleId ${r} not found in style registry`)},t.styles),e}function Ah(t){const e=`${t}-default-theme`,r=cs().filter(i=>i.moduleId!==e&&Za(i.themeFor,t)).map(i=>xr(qe({},i),{styles:[...Qa(i),...i.styles],includePriority:Sh(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return r.length>0?r:cs().filter(i=>i.moduleId===e)}const di=t=>class extends vh(t){constructor(){super(),us.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Us.add(this.is),this.elementStyles)return;const r=this.prototype._template;!r||Xa(this)||xh(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,...Ah(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",r)},
|
|
60
|
+
*/const Th=(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)},Mt=(t,...e)=>{Th(`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 Ih=G`
|
|
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
|
+
`;Mt("color-props",Ih);const Oh=G`
|
|
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
|
+
`;we("",Oh,{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 Nh=G`
|
|
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
|
+
`;Mt("spacing-props",Nh);/**
|
|
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 kh=G`
|
|
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
|
+
`;G`
|
|
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
|
+
`;Mt("style-props",kh);/**
|
|
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 Mh=G`
|
|
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
|
+
`;Mt("font-icons",Mh);/**
|
|
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 Lh=G`
|
|
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
|
+
`;Mt("sizing-props",Lh);/**
|
|
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 Bh=G`
|
|
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
|
+
`,Rh=G`
|
|
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
|
+
`;we("",Rh,{moduleId:"lumo-typography"});Mt("typography-props",Bh);const el=G`
|
|
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
|
+
`;we("vaadin-item",el,{moduleId:"lumo-item"});const Dh=G`
|
|
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
|
+
`;we("vaadin-combo-box-item",[el,Dh],{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 Hh=G`
|
|
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 $s=G`
|
|
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
|
+
`;we("",$s,{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 js=G`
|
|
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
|
+
`;we("",js,{moduleId:"lumo-menu-overlay-core"});const zh=G`
|
|
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
|
+
`,Fh=[$s,js,zh];we("",Fh,{moduleId:"lumo-menu-overlay"});const Vh=G`
|
|
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
|
+
`,Uh=G`
|
|
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
|
+
`;we("vaadin-combo-box-overlay",[$s,js,Vh,Hh,Uh,G`
|
|
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"});we("vaadin-input-container",G`
|
|
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 tl=G`
|
|
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
|
+
`;we("",tl,{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 $h=G`
|
|
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 rl=G`
|
|
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
|
+
`;we("",rl,{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 jh=G`
|
|
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
|
+
`,il=[rl,tl,$h,jh];we("",il,{moduleId:"lumo-input-field-shared-styles"});const Gh=G`
|
|
1453
1453
|
[part='toggle-button']::before {
|
|
1454
1454
|
content: var(--lumo-icons-dropdown);
|
|
1455
1455
|
}
|
|
1456
|
-
`;
|
|
1456
|
+
`;we("vaadin-combo-box",[il,Gh],{moduleId:"lumo-combo-box"});/**
|
|
1457
1457
|
@license
|
|
1458
1458
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1459
1459
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1469,7 +1469,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1469
1469
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1470
1470
|
Code distributed by Google as part of the polymer project is also
|
|
1471
1471
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1472
|
-
*/let
|
|
1472
|
+
*/let Wh=/(url\()([^)]*)(\))/g,qh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Sr,Ne;function Zt(t,e){if(t&&qh.test(t)||t==="//")return t;if(Sr===void 0){Sr=!1;try{const r=new URL("b","http://a");r.pathname="c%20d",Sr=r.href==="http://a/c%20d"}catch(r){}}if(e||(e=document.baseURI||window.location.href),Sr)try{return new URL(t,e).href}catch(r){return t}return Ne||(Ne=document.implementation.createHTMLDocument("temp"),Ne.base=Ne.createElement("base"),Ne.head.appendChild(Ne.base),Ne.anchor=Ne.createElement("a"),Ne.body.appendChild(Ne.anchor)),Ne.base.href=e,Ne.anchor.href=t,Ne.anchor.href||t}function Gs(t,e){return t.replace(Wh,function(r,i,s,o){return i+"'"+Zt(s.replace(/["']/g,""),e)+"'"+o})}function Ws(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 Yh=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Xh=Yh&&"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 Zh=window.Polymer&&window.Polymer.rootPath||Ws(document.baseURI||window.location.href),Zr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let ds=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Jh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Kh=window.Polymer&&window.Polymer.legacyOptimizations||!1,Qh=window.Polymer&&window.Polymer.legacyWarnings||!1,ef=window.Polymer&&window.Polymer.syncInitialRender||!1,hs=window.Polymer&&window.Polymer.legacyUndefined||!1,tf=window.Polymer&&window.Polymer.orderedComputed||!1,Jo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,rf=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let sf=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 of=0;const ve=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let r=of++;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 qs={},sl={};function Ko(t,e){qs[t]=sl[t.toLowerCase()]=e}function Qo(t){return qs[t]||sl[t.toLowerCase()]}function nf(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class nr extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,r){if(e){let i=Qo(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=Zt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ws(r)}return this.__assetpath}register(e){if(e=e||this.id,e){if(ds&&Qo(e)!==void 0)throw Ko(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Ko(e,this),nf(this)}}}nr.prototype.modules=qs;customElements.define("dom-module",nr);/**
|
|
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 af="link[rel=import][type~=css]",lf="include",en="shady-unscoped";function ol(t){return nr.import(t)}function tn(t){let e=t.body?t.body:t;const r=Gs(e.textContent,t.baseURI),i=document.createElement("style");return i.textContent=r,i}function uf(t){const e=t.trim().split(/\s+/),r=[];for(let i=0;i<e.length;i++)r.push(...cf(e[i]));return r}function cf(t){const e=ol(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(e._styles===void 0){const r=[];r.push(...al(e));const i=e.querySelector("template");i&&r.push(...nl(i,e.assetpath)),e._styles=r}return e._styles}function nl(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(lf);n&&r.push(...uf(n).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Gs(o.textContent,e)),r.push(o)}t._styles=r}return t._styles}function df(t){let e=ol(t);return e?al(e):[]}function al(t){const e=[],r=t.querySelectorAll(af);for(let i=0;i<r.length;i++){let s=r[i];if(s.import){const o=s.import,n=s.hasAttribute(en);if(n&&!o._unscopedStyle){const a=tn(o);a.setAttribute(en,""),o._unscopedStyle=a}else o._style||(o._style=tn(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 ot=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 fs(t){return t.indexOf(".")>=0}function ct(t){let e=t.indexOf(".");return e===-1?t:t.slice(0,e)}function hf(t,e){return t.indexOf(e+".")===0}function Jr(t,e){return e.indexOf(t+".")===0}function Kr(t,e,r){return e+r.slice(t.length)}function jt(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 ll(t){return Array.isArray(t)?jt(t).split("."):t.toString().split(".")}function Se(t,e,r){let i=t,s=ll(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 rn(t,e,r){let i=t,s=ll(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 Qr={},ff=/-[a-z]/g,pf=/([A-Z])/g;function ul(t){return Qr[t]||(Qr[t]=t.indexOf("-")<0?t:t.replace(ff,e=>e[1].toUpperCase()))}function hi(t){return Qr[t]||(Qr[t]=t.replace(pf,"-$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 mf=0,cl=0,wt=[],_f=0,ps=!1,dl=document.createTextNode("");new window.MutationObserver(gf).observe(dl,{characterData:!0});function gf(){ps=!1;const t=wt.length;for(let e=0;e<t;e++){let r=wt[e];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}wt.splice(0,t),cl+=t}const bf={run(t){return ps||(ps=!0,dl.textContent=_f++),wt.push(t),mf++},cancel(t){const e=t-cl;if(e>=0){if(!wt[e])throw new Error("invalid async handle: "+t);wt[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 vf=bf,hl=ve(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,vf.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=ot(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 fl={};let Ar=HTMLElement.prototype;for(;Ar;){let t=Object.getOwnPropertyNames(Ar);for(let e=0;e<t.length;e++)fl[t[e]]=!0;Ar=Object.getPrototypeOf(Ar)}const yf=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function wf(t,e){if(!fl[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 xf=ve(t=>{const e=hl(t);class r extends e{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(ul(s[o]))}static attributeNameForProperty(s){return hi(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(yf(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){wf(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 Pf={"dom-if":!0,"dom-repeat":!0};let sn=!1,on=!1;function Ef(){if(!sn){sn=!0;const t=document.createElement("textarea");t.placeholder="a",on=t.placeholder===t.textContent}return on}function Cf(t){Ef()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Sf=(()=>{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 Af(t){let e=t.getAttribute("is");if(e&&Pf[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];Sf(t,r,i),r.removeAttribute(i)}}return t}function pl(t,e){let r=e.parentInfo&&pl(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 Tf(t,e,r,i){i.id&&(e[i.id]=r)}function If(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 Of(t,e,r,i){r.templateInfo&&(e._templateInfo=r.templateInfo,e._parentTemplateInfo=i)}function Nf(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 kf=ve(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),Cf(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=Af(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,u)&&(u.infoIndex=s.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,o){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,o){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,o,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(i,s,o,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let o=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,c=o.length,d;u<c&&(d=o[u]);u++){let f=l[u]=pl(a,d);Tf(this,a.$,f,d),Of(this,f,d,s),If(this,f,d)}return a=a,a}_addMethodEventListenerToNode(i,s,o,n){n=n||i;let a=Nf(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 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=[];/**
|
|
1570
|
+
*/let ar=0;const lr=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ml="__computeInfo",Mf=/[A-Z]/;function ki(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 Gt(t,e,r,i,s,o){if(e){let n=!1;const a=ar++;for(let l in r){let u=s?ct(l):l,c=e[u];if(c)for(let d=0,f=c.length,p;d<f&&(p=c[d]);d++)(!p.info||p.info.lastRun!==a)&&(!s||Ys(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 Lf(t,e,r,i,s,o,n,a){let l=!1,u=n?ct(i):i,c=e[u];if(c)for(let d=0,f=c.length,p;d<f&&(p=c[d]);d++)(!p.info||p.info.lastRun!==r)&&(!n||Ys(i,p.trigger))&&(p.info&&(p.info.lastRun=r),p.fn(t,i,s,o,p.info,n,a),l=!0);return l}function Ys(t,e){if(e){let r=e.name;return r==t||!!(e.structured&&hf(r,t))||!!(e.wildcard&&Jr(r,t))}else return!0}function nn(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 Bf(t,e,r,i,s){let o=t[$.NOTIFY],n,a=ar++;for(let u in e)e[u]&&(o&&Lf(t,o,a,u,r,i,s)||s&&Rf(t,u,r))&&(n=!0);let l;n&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Rf(t,e,r){let i=ct(e);if(i!==e){let s=hi(i)+"-changed";return _l(t,s,r[e],e),!0}return!1}function _l(t,e,r,i){let s={value:r,queueProperty:!0};i&&(s.path=i),ot(t).dispatchEvent(new CustomEvent(e,{detail:s}))}function Df(t,e,r,i,s,o){let a=(o?ct(e):e)!=e?e:null,l=a?Se(t,a):t.__data[e];a&&l===void 0&&(l=r[e]),_l(t,s.eventName,l,a)}function Hf(t,e,r,i,s){let o,n=t.detail,a=n&&n.path;a?(i=Kr(r,i,a),o=n&&n.value):o=t.currentTarget[r],o=s?!o:o,(!e[$.READ_ONLY]||!e[$.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function zf(t,e,r,i,s){let o=t.__data[e];Zr&&(o=Zr(o,s.attrName,"attribute",t)),t._propertyToAttribute(e,s.attrName,o)}function Ff(t,e,r,i){let s=t[$.COMPUTE];if(s)if(tf){ar++;const o=Uf(t),n=[];for(let l in e)an(l,s,n,o,i);let a;for(;a=n.shift();)gl(t,"",e,r,a)&&an(a.methodInfo,s,n,o,i);Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let o=e;for(;Gt(t,s,o,r,i);)Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const Vf=(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)},an=(t,e,r,i,s)=>{const o=s?ct(t):t,n=e[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ar&&(!s||Ys(t,l.trigger))&&(l.info.lastRun=ar,Vf(l.info,r,i))}};function Uf(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const r=t[$.COMPUTE];let{counts:i,ready:s,total:o}=$f(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 $f(t){const e=t[ml],r={},i=t[$.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 gl(t,e,r,i,s){let o=ms(t,e,r,i,s);if(o===lr)return!1;let n=s.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,o,!0):(t[n]=o,!1)}function jf(t,e,r){let i=t.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];Jr(o,e)?(s=Kr(o,n,e),t._setPendingPropertyOrPath(s,r,!0,!0)):Jr(n,e)&&(s=Kr(n,o,e),t._setPendingPropertyOrPath(s,r,!0,!0))}}}function Mi(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),Xf(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||hi(s)+"-changed",a.listenerNegate=c}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Gf(t,e,a,c,l)}}function Gf(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=vl(l),l.wildcard=!0),t._addTemplatePropertyEffect(e,l.rootProperty,{fn:Wf,info:n,trigger:l})}}}function Wf(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 c=r[e];e=Kr(u.source,l.target,e),a._setPendingPropertyOrPath(e,c,!1,!0)&&t._enqueueClient(a)}else{let c=s.evaluator._evaluateBinding(t,u,e,r,i,o);c!==lr&&qf(t,a,l,u,c)}}function qf(t,e,r,i,s){if(s=Yf(e,s,r,i),Zr&&(s=Zr(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[$.READ_ONLY]||!e[$.READ_ONLY][o])&&e._setPendingProperty(o,s)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,s)}}function Yf(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 Xf(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Zf(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];Jf(n,u),Kf(n,t,u)}n.__dataHost=t}}function Jf(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=ot(t)),t[o]=e.literal)}}function Kf(t,e,r){if(r.listenerEvent){let i=r.parts[0];t.addEventListener(r.listenerEvent,function(s){Hf(s,e,r.target,i.source,i.negate)})}}function ln(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 ms(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===lr?lr:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Qf=[],bl="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ep="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",tp="(?:'(?:[^'\\\\]|\\\\.)*')",rp='(?:"(?:[^"\\\\]|\\\\.)*")',ip="(?:"+tp+"|"+rp+")",un="(?:("+bl+"|"+ep+"|"+ip+")\\s*)",sp="(?:"+un+"(?:,\\s*"+un+")*)",op="(?:\\(\\s*(?:"+sp+"?)\\)\\s*)",np="("+bl+"\\s*"+op+"?)",ap="(\\[\\[|{{)\\s*",lp="(?:]]|}})",up="(?:(!)\\s*)?",cp=ap+up+np+lp,cn=new RegExp(cp,"g");function dn(t){let e="";for(let r=0;r<t.length;r++){let i=t[r].literal;e+=i||""}return e}function Li(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 dp(s,i)}else return i}return null}function dp(t,e){return e.args=t.map(function(r){let i=vl(r);return i.literal||(e.static=!1),i},this),e}function vl(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=ct(e),r.structured=fs(e),r.structured&&(r.wildcard=e.slice(-2)==".*",r.wildcard&&(r.name=e.slice(0,-2)))),r}function hn(t,e,r){let i=Se(t,r);return i===void 0&&(i=e[r]),i}function yl(t,e,r,i){const s={indexSplices:i};hs&&!t._overrideLegacyUndefined&&(e.splices=s),t.notifyPath(r+".splices",s),t.notifyPath(r+".length",e.length),hs&&!t._overrideLegacyUndefined&&(s.indexSplices=[])}function Vt(t,e,r,i,s,o){yl(t,e,r,[{index:i,addedCount:s,removed:o,object:e,type:"splice"}])}function hp(t){return t[0].toUpperCase()+t.substring(1)}const fp=ve(t=>{const e=kf(xf(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 $}_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(Ut.length){let s=Ut[Ut.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[$.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==$.READ_ONLY);let a=ki(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=ki(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,$.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,$.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,$.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,$.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||ct(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=Se(this,s);if(s=rn(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return jf(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=ot(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&fs(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[$.NOTIFY]&&this[$.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[$.READ_ONLY]||!this[$.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Ff(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),Gt(this,this[$.REFLECT],o,n,a),Gt(this,this[$.OBSERVE],o,n,a),l&&Bf(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[$.PROPAGATE]&&Gt(this,this[$.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(u,c)=>{Gt(this,s.propertyEffects,u,n,c,s.nodeList);for(let d=s.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,n,c)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=jt(s),o=jt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=jt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=Se(this,s,n);yl(this,a,n.path,o)}get(s,o){return Se(o||this,s)}set(s,o,n){n?rn(n,s,o):(!this[$.READ_ONLY]||!this[$.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=Se(this,s,n),l=a.length,u=a.push(...o);return o.length&&Vt(this,a,n.path,l,o.length,[]),u}pop(s){let o={path:""},n=Se(this,s,o),a=!!n.length,l=n.pop();return a&&Vt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},u=Se(this,s,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=u.splice(o):c=u.splice(o,n,...a),(a.length||c.length)&&Vt(this,u,l.path,o,a.length,c),c}shift(s){let o={path:""},n=Se(this,s,o),a=!!n.length,l=n.shift();return a&&Vt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=Se(this,s,n),l=a.unshift(...o);return o.length&&Vt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=Se(this,s,a),n=a.path}else Array.isArray(s)?n=jt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,$.READ_ONLY),o&&(this["_set"+hp(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,$.OBSERVE,{fn:nn,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,$.OBSERVE,{fn:nn,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Li(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");ln(this,n,$.OBSERVE,ms,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,$.NOTIFY,{fn:Df,info:{eventName:hi(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,$.REFLECT,{fn:zf,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Li(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=ln(this,a,$.COMPUTE,gl,s,n);ki(this,ml)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let u=0,c=s.length;u<c;u++){let{name:d,structured:f,wildcard:p,value:_,literal:g}=s[u];if(!g)if(p){const w=Jr(d,o),y=hn(a,n,w?o:d);_={path:w?o:d,value:y,base:w?Se(a,d):y}}else _=f?hn(a,n,d):a[d];if(hs&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return lr;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),Ut.push(this);let n=super._stampTemplate(s,o);if(Ut.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,Zf(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let c=0;c<u.length;c++){let d=u[c];ot(ot(d).parentNode).removeChild(d)}}static _parseTemplateNode(s,o,n){let a=e._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=dn(l)||" ",Mi(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let u=this._parseBindings(l,o);if(u){let c=a,d="property";Mf.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let f=dn(u);return f&&d=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),d=="attribute"&&c=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&c==="value"&&s.setAttribute(c,""),s.removeAttribute(c),d==="property"&&(a=ul(a)),Mi(this,o,n,d,a,u,f),!0}else return e._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=e._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,u=n.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";Jo&&(c||d)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let f=u.hostProps;if(rf&&c)f&&(o.hostProps=Object.assign(o.hostProps||{},f),Jo||(n.parentInfo.noted=!0));else{let p="{";for(let _ in f){let g=[{mode:p,source:_,dependencies:[_],hostProp:!0}];Mi(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=cn.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),f=!1,p="",_=-1;u=="{"&&(_=d.indexOf("::"))>0&&(p=d.substring(_+2),d=d.substring(0,_),f=!0);let g=Li(d),w=[];if(g){let{args:y,methodName:v}=g;for(let k=0;k<y.length;k++){let x=y[k];x.literal||w.push(x)}let S=o.dynamicFns;(S&&S[v]||g.static)&&(w.push(v),g.dynamicFn=!0)}else w.push(d);n.push({source:d,mode:u,negate:c,customEvent:f,signature:g,dependencies:w,event:p}),a=cn.lastIndex}if(a&&a<s.length){let u=s.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,u){let c;return o.signature?c=ms(s,n,a,l,o.signature):n!=o.source?c=Se(s,o.source):u&&fs(n)?c=Se(s,n):c=s.__data[n],o.negate&&(c=!c),c}}return r}),Ut=[];/**
|
|
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 pp(t){const e={};for(let r in t){const i=t[r];e[r]=typeof i=="function"?{type:i}:i}return e}const mp=ve(t=>{const e=hl(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=pp(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 _p="3.5.2",fn=window.ShadyCSS&&window.ShadyCSS.cssBuild,gp=ve(t=>{const e=mp(fp(t));function r(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let d=u[c];"value"in d&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=d)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,u,c,d){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,d)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,d[c.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,c,d){if(!fn){const f=u.content.querySelectorAll("style"),p=nl(u),_=df(c),g=u.content.firstElementChild;for(let y=0;y<_.length;y++){let v=_[y];v.textContent=l._processStyleText(v.textContent,d),u.content.insertBefore(v,g)}let w=0;for(let y=0;y<p.length;y++){let v=p[y],S=f[w];S!==v?(v=v.cloneNode(!0),S.parentNode.insertBefore(v,S)):w++,v.textContent=l._processStyleText(v.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),sf&&fn&&Xh){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&&(!ds||Jh)&&(u=nr.import(l,"template"),ds&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return _p}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):Kh||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)s(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let f=0;f<u.length;f++)d._createMethodObserver(u[f],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=Ws(u.url);else{const c=nr.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Zh,this.importPath=this.constructor.importPath;let u=r(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let f=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,f,!0):this[c]=f}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return Gs(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,f=d?Zt(d):"";o(this,c,u,f),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const c=ot(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ef&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=Zt(this.importPath)),Zt(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return Qh&&!(c in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,u,c,d)}}return a});/**
|
|
1597
1597
|
@license
|
|
1598
1598
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1599
1599
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1601,7 +1601,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1601
1601
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1602
1602
|
Code distributed by Google as part of the polymer project is also
|
|
1603
1603
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1604
|
-
*/const
|
|
1604
|
+
*/const pn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class wl{constructor(e,r){Pl(e,r);const i=r.reduce((s,o,n)=>s+xl(o)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function xl(t){if(t instanceof wl)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function bp(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof wl)return xl(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const pr=function(e,...r){Pl(e,r);const i=document.createElement("template");let s=r.reduce((o,n,a)=>o+bp(n)+e[a+1],e[0]);return pn&&(s=pn.createHTML(s)),i.innerHTML=s,i},Pl=(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 mr=gp(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 Ve=[];function _s(t,e,r=t.getAttribute("dir")){e?t.setAttribute("dir",e):r!=null&&t.removeAttribute("dir")}function gs(){return document.documentElement.getAttribute("dir")}function vp(){const t=gs();Ve.forEach(e=>{_s(e,t)})}const yp=new MutationObserver(vp);yp.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const fi=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(),_s(this,gs(),null))}attributeChangedCallback(r,i,s){if(super.attributeChangedCallback(r,i,s),r!=="dir")return;const o=gs(),n=s===o&&Ve.indexOf(this)===-1,a=!s&&i&&Ve.indexOf(this)===-1;n||a?(this.__subscribe(),_s(this,o,s)):s!==o&&i===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ve.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(){Ve.includes(this)||Ve.push(this)}__unsubscribe(){Ve.includes(this)&&Ve.splice(Ve.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 wp=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 xp=G`
|
|
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
|
+
*/we("vaadin-input-container",xp,{moduleId:"vaadin-input-container-styles"});class Pp extends wp(di(fi(mr))){static get is(){return"vaadin-input-container"}static get template(){return pr`
|
|
1694
1694
|
<slot name="prefix"></slot>
|
|
1695
1695
|
<slot></slot>
|
|
1696
1696
|
<slot name="suffix"></slot>
|
|
1697
|
-
`}}
|
|
1697
|
+
`}}kt(Pp);/**
|
|
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 Ep=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 Cp extends Ep(di(fi(mr))){static get template(){return pr`
|
|
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"}}kt(Cp);/**
|
|
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 bs=!1,Sp=[],El=[];function Ap(){bs=!0,requestAnimationFrame(function(){bs=!1,Tp(Sp),setTimeout(function(){Ip(El)})})}function Tp(t){for(;t.length;)Cl(t.shift())}function Ip(t){for(let e=0,r=t.length;e<r;e++)Cl(t.shift())}function Cl(t){const e=t[0],r=t[1],i=t[2];try{r.apply(e,i)}catch(s){setTimeout(()=>{throw s})}}function Op(t,e,r){bs||Ap(),El.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 pi=t=>t.test(navigator.userAgent),vs=t=>t.test(navigator.platform),Np=t=>t.test(navigator.vendor);pi(/Android/u);pi(/Chrome/u)&&Np(/Google Inc/u);pi(/Firefox/u);const kp=vs(/^iPad/u)||vs(/^Mac/u)&&navigator.maxTouchPoints>1,Mp=vs(/^iPhone/u),Lp=Mp||kp,Bp=pi(/^((?!chrome|android).)*safari/iu),ys=(()=>{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 ft=new WeakMap,Tr=new WeakMap,Ir={},Bi=0;const mn=t=>t&&t.nodeType===Node.ELEMENT_NODE,Ri=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},Rp=(t,e)=>mn(t)?e.map(r=>{if(!mn(r))return Ri(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 Ri(r,"is not contained inside",t),null}).filter(r=>!!r):(Ri(t,"is not a valid element"),[]),Dp=(t,e,r,i)=>{const s=Rp(e,Array.isArray(t)?t:[t]);Ir[r]||(Ir[r]=new WeakMap);const o=Ir[r],n=[],a=new Set,l=new Set(s),u=d=>{if(!d||a.has(d))return;a.add(d);const f=d.assignedSlot;f&&u(f),u(d.parentNode||d.host)};s.forEach(u);const c=d=>{if(!d||l.has(d))return;const f=d.shadowRoot;(f?[...d.children,...f.children]:[...d.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else{const g=_.getAttribute(i),w=g!==null&&g!=="false",y=(ft.get(_)||0)+1,v=(o.get(_)||0)+1;ft.set(_,y),o.set(_,v),n.push(_),y===1&&w&&Tr.set(_,!0),v===1&&_.setAttribute(r,"true"),w||_.setAttribute(i,"true")}})};return c(e),a.clear(),Bi+=1,()=>{n.forEach(d=>{const f=ft.get(d)-1,p=o.get(d)-1;ft.set(d,f),o.set(d,p),f||(Tr.has(d)?Tr.delete(d):d.removeAttribute(i)),p||d.removeAttribute(r)}),Bi-=1,Bi||(ft=new WeakMap,ft=new WeakMap,Tr=new WeakMap,Ir={})}},Hp=(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]"))),Dp(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 zp{constructor(e,r){this.host=e,this.callback=typeof r=="function"?r:()=>e}showModal(){const e=this.callback();this.__showOthers=Hp(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 Xs=!1;window.addEventListener("keydown",()=>{Xs=!0},{capture:!0});window.addEventListener("mousedown",()=>{Xs=!1},{capture:!0});function ws(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Zs(){return Xs}function Fp(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 Vp(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 Up(t,e){const r=[];for(;t.length>0&&e.length>0;)Vp(t[0],e[0])?r.push(e.shift()):r.push(t.shift());return r.concat(t,e)}function xs(t){const e=t.length;if(e<2)return t;const r=Math.ceil(e/2),i=xs(t.slice(0,r)),s=xs(t.slice(r));return Up(i,s)}function Sl(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 Al(t){return t.getRootNode().activeElement===t}function $p(t){if(!Sl(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}function Tl(t,e){if(t.nodeType!==Node.ELEMENT_NODE||Fp(t))return!1;const r=t,i=$p(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=Tl(n,e)||s}),s}function jp(t){const e=[];return Tl(t,e)?xs(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 Gp{saveFocus(e){this.focusNode=e||ws()}restoreFocus(e){const r=this.focusNode;if(!r)return;const i=e?e.preventScroll:!1;ws()===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 Di=[];class Wp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return jp(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Al).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.");Di.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Di.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Di).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 mi=ve(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 qp=t=>class extends mi(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new zp(this),this.__focusTrapController=new Wp(this),this.__focusRestorationController=new Gp}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=!Zs();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=ws();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 Il=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,e)=>t.__zIndex-e.__zIndex||0),Ps=()=>Il().filter(t=>t.$.overlay),Yp=t=>t===Ps().pop(),Xp=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Yp(this)}bringToFront(){let r="";const i=Il().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"),Ps().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=Ps();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 Zp=t=>class extends qp(Xp(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),Lp&&(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(),Op(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 Jp=G`
|
|
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 Kp(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 Js(t){return t?new Set(t.split(" ")):new Set}function _i(t){return t?[...t].join(" "):""}function Ol(t,e,r){const i=Js(t.getAttribute(e));i.add(r),t.setAttribute(e,_i(i))}function Qp(t,e,r){const i=Js(t.getAttribute(e));if(i.delete(r),i.size===0){t.removeAttribute(e);return}t.setAttribute(e,_i(i))}function em(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 tm(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:c,height:d}=t.getBoundingClientRect();if(n||e(),!c||!d)return;const f=Math.floor(u),p=Math.floor(i.clientWidth-(l+c)),_=Math.floor(i.clientHeight-(u+d)),g=Math.floor(l),y={rootMargin:`${-f}px ${-p}px ${-_}px ${-g}px`,threshold:Math.max(0,Math.min(1,a))||1};let v=!0;function S(k){let x=k[0].intersectionRatio;if(x!==a){if(!v)return o();x===0&&(x=1e-7),o(!1,x)}v=!1}r=new IntersectionObserver(S,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 Hi={start:"top",end:"bottom"},zi={start:"left",end:"right"},_n=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),rm=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=Kp(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(r=>{r.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=tm(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,_n.unobserve(i),r&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,_n.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,Hi,this,i),u=this.__calculatePositionInOneDimension(r,a,this.noHorizontalOverlap,zi,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,zi)}__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,Hi)}__shouldAlignStart(r,i,s,o,n,a,l){const u=s-r[a?l.end:l.start]-o[l.end],c=r[a?l.start:l.end]-o[l.start],d=n?u:c,p=d>(n?c:u)||d>i;return n===p}__adjustBottomProperty(r,i,s){let o;if(r===i.end){if(i.end===Hi.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===zi.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,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),d=this.__adjustBottomProperty(l,o,c),f=i[a?o.start:o.end]-r[s===a?o.end:o.start],p=d?`${d}px`:`${c+f*(a?-1:1)}px`;return{[l]:p,[u]:""}}};/**
|
|
1843
1843
|
* @license
|
|
1844
1844
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1845
1845
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1846
|
-
*/const
|
|
1846
|
+
*/const im=t=>class extends rm(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)&&!Sl(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 sm=G`
|
|
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
|
+
`;we("vaadin-combo-box-overlay",[Jp,sm],{moduleId:"vaadin-combo-box-overlay-styles"});class om extends im(Zp(fi(di(mr)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return pr`
|
|
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
|
+
`}}kt(om);/**
|
|
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 ei(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 nm=0;function Nl(){return nm++}/**
|
|
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 gn=0,kl=0;const xt=[];let Es=!1;function am(){Es=!1;const t=xt.length;for(let e=0;e<t;e++){const r=xt[e];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}xt.splice(0,t),kl+=t}const Dr={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)}},ur={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},Ml={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Cs={run(t){Es||(Es=!0,queueMicrotask(()=>am())),xt.push(t);const e=gn;return gn+=1,e},cancel(t){const e=t-kl;if(e>=0){if(!xt[e])throw new Error(`invalid async handle: ${t}`);xt[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 cr=new Set;class Le{static debounce(e,r,i){return e instanceof Le?e._cancelAsync():e=new Le,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,cr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),cr.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 Ll(t){cr.add(t)}function lm(){const t=!!cr.size;return cr.forEach(e=>{try{e.flush()}catch(r){setTimeout(()=>{throw r})}}),t}const Wt=()=>{let t;do t=lm();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 bn=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),um=bn&&bn[1]>=8,vn=3,cm={_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),Cs)}},_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 c=this._physicalBottom+this._scrollOffset,d=this._scrollPosition,f=this._scrollBottom;for(t?(e=this._physicalStart,r=d-u):(e=this._physicalEnd,r=c-f);i=this._getPhysicalSizeIncrement(e),r-=i,!(s.length>=l||r<=o);)if(t){if(a+s.length+1>=this._virtualCount||u+i>=d-this._scrollOffset)break;s.push(e),u+=i,e=(e+1)%l}else{if(n-s.length<=0||u+this._physicalSize-i<=f)break;s.push(e),u-=i,e=e===0?l-1:e-1}return{indexes:s,physicalTop:u-this._scrollOffset}},_update(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,vn,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)),Ml):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),Cs))}},_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(vn))},_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,ur))},_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;!um&&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||(Wt(),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)},ur)},_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]=Le.debounce(this._debouncers[t],r,e.bind(this)),Ll(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 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()}}/**
|
|
1902
|
+
*/const dm=1e5,Fi=1e3;class Bl{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<Fi?(i=e,this._vidxOffset=0):(i=Fi,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(),Wt(),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){Wt();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=Le.debounce(this.__placeholderClearDebouncer,ur,()=>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"}),Wt(),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(),Wt(),this._debounce("_update",this._update,Cs)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,dm)}}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=Le.debounce(this.__fixInvalidItemPositioningDebouncer,Dr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Le.debounce(this.__scrollReorderDebouncer,Dr.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=Le.debounce(this.__debouncerWheelAnimationFrame,ur,()=>{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=Le.debounce(this._debouncerIgnoreNewWheel,Dr.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(Bp){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=Fi,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(Bl.prototype,cm);class hm{constructor(e){this.__adapter=new Bl(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 It=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 fm=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}-${Nl()}`,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 It?!1:s&&r!==void 0&&i!==void 0?ei(s,r)===ei(s,i):r===i}__initVirtualizer(){this.__virtualizer=new hm({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 It&&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 pm extends fm(mr){static get is(){return"vaadin-combo-box-scroller"}static get template(){return pr`
|
|
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
|
+
`}}kt(pm);const mm=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Hr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function _m(){function t(){return!0}return Rl(t)}function gm(){try{return bm()?!0:vm()?Hr?!ym():!_m():!1}catch(t){return!1}}function bm(){return localStorage.getItem("vaadin.developmentmode.force")}function vm(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function ym(){return!!(Hr&&Object.keys(Hr).map(e=>Hr[e]).filter(e=>e.productionMode).length>0)}function Rl(t,e){if(typeof t!="function")return;const r=mm.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 yn=function(t,e){if(window.Vaadin.developmentMode)return Rl(t,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=gm());function wm(){/*! 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 xm=function(){if(typeof yn=="function")return yn(wm)};/**
|
|
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(){xm()};let Vi;const wn=new Set,Pm=t=>class extends fi(t){static finalize(){super.finalize();const{is:r}=this;r&&!wn.has(r)&&(window.Vaadin.registrations.push(this),wn.add(r),window.Vaadin.developmentModeCallback&&(Vi=Le.debounce(Vi,Ml,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ll(Vi)))}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 Em{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 Ks extends EventTarget{static generateId(e,r="default"){return`${r}-${e.localName}-${Nl()}`}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 Em(i,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!em(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 Cm extends Ks{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 Dl=ve(t=>class extends t{get _keyboardActive(){return Zs()}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 Hl=ve(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 Sm=t=>class extends Hl(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 Am=ve(t=>class extends Dl(Sm(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 Qs=ve(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 Ui=new WeakMap;function Tm(t){return Ui.has(t)||Ui.set(t,new Set),Ui.get(t)}function Im(t,e){const r=document.createElement("style");r.textContent=t,e===document?document.head.appendChild(r):e.insertBefore(r,e.firstChild)}const Om=ve(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const r=this.getRootNode(),i=Tm(r);this.slotStyles.forEach(s=>{i.has(s)||(Im(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 eo=ve(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 Nm=t=>class extends eo(Qs(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(),ys||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 $i=new Map;function to(t){return $i.has(t)||$i.set(t,new WeakMap),$i.get(t)}function zl(t,e){t&&t.removeAttribute(e)}function Fl(t,e){if(!t||!e)return;const r=to(e);if(r.has(t))return;const i=Js(t.getAttribute(e));r.set(t,new Set(i))}function km(t,e){if(!t||!e)return;const r=to(e),i=r.get(t);!i||i.size===0?t.removeAttribute(e):Ol(t,e,_i(i)),r.delete(t)}function ji(t,e,r={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:i,oldId:s,fromUser:o}=r,n=to(e),a=n.get(t);if(!o&&a){s&&a.delete(s),i&&a.add(i);return}o&&(a?i||n.delete(t):Fl(t,e),zl(t,e)),Qp(t,e,s);const l=i||_i(a);l&&Ol(t,e,l)}function Mm(t,e){Fl(t,e),zl(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 Lm{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?(Mm(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(km(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,r,i){ji(this.__target,"aria-labelledby",{newId:e,oldId:r,fromUser:i})}__setErrorIdToAriaAttribute(e,r){ji(this.__target,"aria-describedby",{newId:e,oldId:r,fromUser:!1})}__setHelperIdToAriaAttribute(e,r){ji(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 De=document.createElement("div");De.style.position="fixed";De.style.clip="rect(0px, 0px, 0px, 0px)";De.setAttribute("aria-live","polite");document.body.appendChild(De);let Or;function Bm(t,e={}){const r=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;r==="alert"?(De.removeAttribute("aria-live"),De.removeAttribute("role"),Or=Le.debounce(Or,ur,()=>{De.setAttribute("role","alert")})):(Or&&Or.cancel(),De.removeAttribute("role"),De.setAttribute("aria-live",r)),De.textContent="",setTimeout(()=>{De.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 ro extends Ks{constructor(e,r,i,s={}){super(e,r,i,xr(qe({},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 Rm extends ro{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&&Bm(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 Dm extends ro{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 Hm extends ro{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 zm=ve(t=>class extends mi(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Hm(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 io=ve(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 Fm=t=>class extends io(zm(mi(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 Lm(this),this._helperController=new Dm(this),this._errorController=new Rm(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 Vm=ve(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 Vl=ve(t=>class extends Vm(io(eo(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 Um=t=>class extends Om(Am(Vl(Fm(Nm(Qs(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(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=
|
|
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=Le.debounce(this._preventInputDebouncer,Dr.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 $m extends Ks{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 jm{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 Gm=t=>class extends Vl(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 Wm=G`
|
|
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 qm=G`
|
|
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 Ym=G`
|
|
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 Xm=[qm,Ym,Wm];/**
|
|
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 ti(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 ti(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 Ul({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=Ul({getItemId:t},o,r,i+1,n+1);if(a)return a}}function $l(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?$l(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 so{constructor(e,r,i,s,o){Y(this,"context");Y(this,"pageSize");Y(this,"items",[]);Y(this,"pendingRequests",{});Y(this,"__subCacheByIndex",{});Y(this,"__size",0);Y(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 so(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}=ti(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}=ti(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 Zm extends EventTarget{constructor(r,{size:i,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:u,dataProviderParams:c}){super();Y(this,"host");Y(this,"dataProvider");Y(this,"dataProviderParams");Y(this,"pageSize");Y(this,"isExpanded");Y(this,"getItemId");Y(this,"rootCache");Y(this,"placeholder");Y(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=c,this.rootCache=this.__createRootCache(i)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(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 ti(this.rootCache,r)}getItemContext(r){return Ul({getItemId:this.getItemId},this.rootCache,r)}getFlatIndexByPath(r){return $l(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 so(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=qe(qe({},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 Jm=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 Zm(this,{placeholder:new It,isPlaceholder:r=>r instanceof It,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 Km=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 e_{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 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())}};/**
|
|
2639
|
+
*/function xn(t){return t!=null}function Pn(t,e){return t.findIndex(r=>r instanceof It?!1:e(r))}const t_=t=>class extends Km(mi(io(Dl(Qs(eo(Hl(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 e_(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,c,d){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:c,itemClassNameGenerator:d}),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&&Al(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()&&!ys&&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?ei(this.itemLabelPath,r):void 0;return i==null&&(i=r?r.toString():""),i}_getItemValue(r){let i=r&&this.itemValuePath?ei(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",()=>{ys&&!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||(xn(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||!xn(i)?-1:Pn(r,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(r,i){return!r||!i?-1:Pn(r,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(r){r.stopPropagation(),!(r.detail.item instanceof It)&&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(Zs()){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
|
+
*/we("vaadin-combo-box",Xm,{moduleId:"vaadin-combo-box-styles"});class r_ extends Jm(t_(Gm(Um(di(Pm(mr)))))){static get is(){return"vaadin-combo-box"}static get template(){return pr`
|
|
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 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 {
|
|
2688
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $m(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new jm(this.inputElement,this._labelController)),this._tooltipController=new Cm(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)}}kt(r_);const i_=(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)},s_="https://challenges.cloudflare.com/turnstile/v0/api.js",o_=3e3,n_=5,a_=1e4,l_=5*60*1e3,u_="XXXX.DUMMY.TOKEN.XXXX",En="cf-captcha-response",Cn="cfCaptchaIsVisible";let $t=null;function Sn(){return typeof window=="undefined"?Promise.reject(new Error("[Turnstile] SSR")):window.turnstile?Promise.resolve():($t||($t=new Promise((t,e)=>{const r=setTimeout(()=>{$t=null,e(new Error("[Turnstile] script load timeout"))},a_),i=document.createElement("script");i.src=s_,i.async=!0,i.defer=!0,i.onload=()=>{clearTimeout(r),t()},i.onerror=()=>{clearTimeout(r),$t=null,e(new Error("[Turnstile] script failed to load"))},document.head.appendChild(i)})),$t)}function c_(t){const{siteKey:e,action:r,isEnabled:i=!0,enableFallback:s=!1,retryCount:o=n_}=t;let n=null,a=0,l,u,c=!1,d=0,f=null,p=null;function _(x){var M;n=x,x&&(a=Date.now()),(M=t.onTokenChange)==null||M.call(t,x)}function g(){l||!u||!window.turnstile||(l=window.turnstile.render(u,{sitekey:e,retry:"auto",action:r,appearance:"interaction-only",execution:"execute",theme:"light","retry-interval":o_,callback:x=>{var M;c||(d=0,_(x),(M=t.onLoadingChange)==null||M.call(t,!1),f==null||f(x),f=null,p=null)},"error-callback":x=>{var M;if(c)return!0;if(d+=1,d<=o)return!1;if(d=0,(M=t.onLoadingChange)==null||M.call(t,!1),l&&window.turnstile)try{window.turnstile.reset(l)}catch(R){}if(s)f==null||f(u_);else{const R=`[Turnstile] Verification failed (${x}). Please try again.`;console.error(R),p==null||p(new Error(R))}return f=null,p=null,!0},"expired-callback":()=>{_(null)}}))}function w(x){return Ye(this,null,function*(){var M;if(i){u=x;try{yield Sn(),g(),(M=t.onReady)==null||M.call(t)}catch(R){console.error("[Turnstile] script load error",R)}}})}function y(){return Ye(this,null,function*(){var x;if(i){if(!l&&(yield Sn(),g(),!l))throw new Error("[Turnstile] widget not ready");return(x=t.onLoadingChange)==null||x.call(t,!0),new Promise((M,R)=>{var se;f=M,p=R;try{window.turnstile.execute(l)}catch(W){console.error("[Turnstile] execute error",W),(se=t.onLoadingChange)==null||se.call(t,!1),f=null,p=null,R(W)}})}})}function v(){return Ye(this,null,function*(){if(i)return n&&Date.now()-a<l_?n:y()})}function S(){var x;if(l&&window.turnstile)try{window.turnstile.reset(l)}catch(M){}d=0,_(null),(x=t.onLoadingChange)==null||x.call(t,!1),p==null||p(new Error("[Turnstile] reset by caller")),f=null,p=null}function k(){var x;if(c=!0,l&&window.turnstile)try{window.turnstile.remove(l)}catch(M){}d=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:S,cleanup:k}}const d_="captchaContainer";function h_(t){sa(t,"svelte-bc1l21",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input,select{font-family:inherit}.GeneralPlayerForgotPasswordForm{height:auto;position:relative}.GeneralPlayerForgotPasswordForm .ModalLoaderWrapper{display:flex;height:100%;align-items:center}.GeneralPlayerForgotPasswordForm .ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.GeneralPlayerForgotPasswordForm .ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent;animation:Loader 1.2s linear infinite}.backButtonForgotPassword{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:24px;line-height:24px;border-radius:var(--emw--border-radius-medium, 15px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.FormContainer{width:100%}.FormForgotPassword{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8))}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-weight:var(--emw--font-weight-light, 300);padding-top:14px}.FormRequired{color:var(--emw--color-error, #ed0909)}.ForgotPasswordError{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail .dobFormatError,.NewPassword .dobFormatError,.ConfirmPassword .dobFormatError{padding:20px;width:100%;text-align:center;color:var(--emw--color-error, #ed0909)}.ResetPasswordByEmail .DobContainer,.NewPassword .DobContainer,.ConfirmPassword .DobContainer{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ResetPasswordByEmail .DobContainer .datePickerBox,.NewPassword .DobContainer .datePickerBox,.ConfirmPassword .DobContainer .datePickerBox{width:100%;padding:10px}.ResetPasswordByEmail .DobContainer .datePickerBox input,.NewPassword .DobContainer .datePickerBox input,.ConfirmPassword .DobContainer .datePickerBox input{border:0px;background:transparent}.ResetPasswordByEmail .DobContainer.Mobile,.NewPassword .DobContainer.Mobile,.ConfirmPassword .DobContainer.Mobile{flex-direction:column}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.ResetPasswordByEmail input:focus,.NewPassword input:focus,.ConfirmPassword input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPasswordByEmail.InvalidField input,.NewPassword.InvalidField input,.ConfirmPassword.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.resetPasswordButton,.ResetPasswordEmailGoToLogin{background:var(--emw--color-primary, #0e5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.resetPasswordButton[disabled],.ResetPasswordEmailGoToLogin[disabled]{background:var(--emw--color-primary, #0e5924);opacity:0.4;cursor:not-allowed}.ResetPasswordEmailGoToLogin{display:none}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.ResetPasswordByEmail .InvalidInput{bottom:-3px}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.FormForgotPassword{padding:50px}.FormMobileContainer{height:100%;background-color:var(--emw--color-gray-50, #f9f8f8)}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.resetPasswordButton{transition:all 0.1s ease-out}.resetPasswordButton svg{width:20px;height:20px}.CaptchaWrapper{width:100%;display:flex;justify-content:center}.FormMobileContainer{height:100%}.FormMobileContainer .FormForgotPassword{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}const f_=t=>({}),An=t=>({}),p_=t=>({}),Tn=t=>({});function In(t,e,r){const i=t.slice();return i[105]=e[r],i}function On(t){let e,r;return{c(){e=E("script"),_o(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){L(i,e,s)},p(i,s){s[0]&2&&!_o(e.src,r="//www.google.com/recaptcha/api.js?render="+i[1])&&h(e,"src",r)},d(i){i&&N(e)}}}function m_(t){let e,r,i,s,o,n,a=t[18]&&Nn(t);const l=[y_,v_,b_,g_],u=[];function c(d,f){return d[19]?0:d[21]?1:d[23]?2:d[24]?3:-1}return~(i=c(t))&&(s=u[i]=l[i](t)),{c(){e=E("div"),a&&a.c(),r=j(),s&&s.c(),h(e,"class",o="FormContainer "+(t[25]?"FormMobileContainer":""))},m(d,f){L(d,e,f),a&&a.m(e,null),m(e,r),~i&&u[i].m(e,null),n=!0},p(d,f){d[18]?a?a.p(d,f):(a=Nn(d),a.c(),a.m(e,r)):a&&(a.d(1),a=null);let p=i;i=c(d),i===p?~i&&u[i].p(d,f):(s&&($e(),pe(u[p],1,1,()=>{u[p]=null}),je()),~i?(s=u[i],s?s.p(d,f):(s=u[i]=l[i](d),s.c()),ae(s,1),s.m(e,null)):s=null),(!n||f[0]&33554432&&o!==(o="FormContainer "+(d[25]?"FormMobileContainer":"")))&&h(e,"class",o)},i(d){n||(ae(s),n=!0)},o(d){pe(s),n=!1},d(d){d&&N(e),a&&a.d(),~i&&u[i].d()}}}function __(t){let e;return{c(){e=E("div"),e.innerHTML='<div class="ModalLoader"></div>',h(e,"class","ModalLoaderWrapper")},m(r,i){L(r,e,i)},p:J,i:J,o:J,d(r){r&&N(e)}}}function Nn(t){let e;return{c(){e=E("general-player-forgot-password-sms-form"),O(e,"clientstyling",t[5]),O(e,"clientstylingurl",t[6]),O(e,"endpoint",t[0]),O(e,"mbsource",t[4]),O(e,"translationurl",t[7]),O(e,"smscodelength",t[12]),O(e,"smscodemaxattempts",t[11]),O(e,"phoneregex",t[9]),O(e,"phoneprefixeditable",t[10]),O(e,"smscodettl",t[13]),O(e,"resenddelay",t[14]),O(e,"lang",t[2])},m(r,i){L(r,e,i)},p(r,i){i[0]&32&&O(e,"clientstyling",r[5]),i[0]&64&&O(e,"clientstylingurl",r[6]),i[0]&1&&O(e,"endpoint",r[0]),i[0]&16&&O(e,"mbsource",r[4]),i[0]&128&&O(e,"translationurl",r[7]),i[0]&4096&&O(e,"smscodelength",r[12]),i[0]&2048&&O(e,"smscodemaxattempts",r[11]),i[0]&512&&O(e,"phoneregex",r[9]),i[0]&1024&&O(e,"phoneprefixeditable",r[10]),i[0]&8192&&O(e,"smscodettl",r[13]),i[0]&16384&&O(e,"resenddelay",r[14]),i[0]&4&&O(e,"lang",r[2])},d(r){r&&N(e)}}}function g_(t){let e,r,i,s,o,n,a,l,u,c,d,f,p,_,g,w=t[44]("forgotChangePasswordTitle")+"",y,v,S,k=t[44]("forgotChangePasswordDescription")+"",x,M,R,se=t[44]("forgotChangePasswordLogin")+"",W,ce,xe;return{c(){e=E("div"),r=E("div"),i=E("div"),s=C("svg"),o=C("defs"),n=C("style"),a=D(`.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=C("g"),u=C("g"),c=C("path"),d=C("g"),f=C("circle"),p=C("circle"),_=j(),g=E("h4"),y=D(w),v=j(),S=E("p"),x=D(k),M=j(),R=E("button"),W=D(se),h(c,"class","a"),h(c,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(c,"transform","translate(264.272 482.563)"),h(u,"transform","translate(-7360.574 8503.438)"),h(f,"class","c"),h(f,"cx","30"),h(f,"cy","30"),h(f,"r","30"),h(p,"class","d"),h(p,"cx","30"),h(p,"cy","30"),h(p,"r","29"),h(d,"class","b"),h(d,"transform","translate(-7106 8970)"),h(l,"transform","translate(7106 -8970)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"width","60"),h(s,"height","60"),h(s,"viewBox","0 0 60 60"),h(i,"class","NewPasswordSuccess"),h(i,"part","NewPasswordSuccess"),h(R,"class","resetPasswordButton"),h(R,"part","resetPasswordButton"),h(r,"class","FormContent"),h(r,"part","FormContent"),h(e,"class","FormForgotPassword"),h(e,"part","FormForgotPassword")},m(T,X){L(T,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,c),m(l,d),m(d,f),m(d,p),m(i,_),m(i,g),m(g,y),m(i,v),m(i,S),m(S,x),m(r,M),m(r,R),m(R,W),ce||(xe=fe(R,"click",t[80]),ce=!0)},p(T,X){X[1]&8192&&w!==(w=T[44]("forgotChangePasswordTitle")+"")&&ie(y,w),X[1]&8192&&k!==(k=T[44]("forgotChangePasswordDescription")+"")&&ie(x,k),X[1]&8192&&se!==(se=T[44]("forgotChangePasswordLogin")+"")&&ie(W,se)},i:J,o:J,d(T){T&&N(e),ce=!1,xe()}}}function b_(t){let e,r,i,s,o,n,a,l,u,c=t[44]("forgotNewPasswordPassword")+"",d,f,p,_,g,w,y,v,S,k,x,M,R=t[44]("forgotNewPasswordConfirmPassword")+"",se,W,ce,xe,T,X,Ee,ke,Me,be,oe,te,le,K,Ae,de,ue,Z,F=t[40]&&kn(t);function Be(ye,A){return ye[34]?x_:w_}let Te=Be(t),Q=Te(t),B=t[30]&&Mn(t);function Re(ye,A){return ye[35]?S_:C_}let me=Re(t),_e=me(t),P=t[31]&&!t[17]&&Ln(t),I=t[38]&&!t[17]&&Bn(t),V=t[15]&&Rn(t);const _r=[T_,A_],Ie=[];function Lt(ye,A){return ye[17]?0:1}return le=Lt(t),K=Ie[le]=_r[le](t),{c(){e=E("div"),r=E("div"),i=E("h4"),s=D(t[39]),o=j(),F&&F.c(),n=j(),a=E("form"),l=E("div"),u=E("label"),d=D(c),f=D(":"),p=E("span"),p.textContent="*",_=j(),g=E("input"),y=j(),Q.c(),v=j(),B&&B.c(),k=j(),x=E("div"),M=E("label"),se=D(R),W=D(":"),ce=E("span"),ce.textContent="*",xe=j(),T=E("input"),X=j(),_e.c(),Ee=j(),P&&P.c(),Me=j(),I&&I.c(),be=j(),V&&V.c(),oe=j(),te=E("button"),K.c(),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(g,"type","password"),h(g,"id","new-password"),h(g,"autocomplete",w=t[8]?"new-password":"off"),g.disabled=t[17],h(l,"class",S="NewPassword "+(t[30]?"InvalidField":"")),h(l,"part","NewPassword"),h(ce,"class","FormRequired"),h(ce,"part","FormRequired"),h(M,"for","RetypePassword"),h(T,"type","password"),h(T,"id","RetypePassword"),T.disabled=t[17],h(x,"class",ke="ConfirmPassword "+(t[31]?"InvalidField":"")),h(x,"part","ConfirmPassword"),h(te,"class","resetPasswordButton"),h(te,"part","resetPasswordButton"),te.disabled=Ae=!t[29]||t[17],h(a,"class","FormContent"),h(a,"part","FormContent"),h(e,"class","FormForgotPassword test"),h(e,"part","FormForgotPassword test")},m(ye,A){L(ye,e,A),m(e,r),m(r,i),m(i,s),m(r,o),F&&F.m(r,null),m(e,n),m(e,a),m(a,l),m(l,u),m(u,d),m(u,f),m(u,p),m(l,_),m(l,g),tt(g,t[36]),t[72](g),m(l,y),Q.m(l,null),m(l,v),B&&B.m(l,null),m(a,k),m(a,x),m(x,M),m(M,se),m(M,W),m(M,ce),m(x,xe),m(x,T),tt(T,t[37]),t[76](T),m(x,X),_e.m(x,null),m(x,Ee),P&&P.m(x,null),m(a,Me),I&&I.m(a,null),m(a,be),V&&V.m(a,null),m(a,oe),m(a,te),Ie[le].m(te,null),de=!0,ue||(Z=[fe(g,"input",t[71]),fe(g,"keyup",function(){Ke(t[54](t[30],t[36],t[32]))&&t[54](t[30],t[36],t[32]).apply(this,arguments)}),fe(T,"input",t[75]),fe(T,"keyup",function(){Ke(t[54](t[31],t[37],t[33]))&&t[54](t[31],t[37],t[33]).apply(this,arguments)}),fe(te,"click",t[79])],ue=!0)},p(ye,A){t=ye,(!de||A[1]&256)&&ie(s,t[39]),t[40]?F?F.p(t,A):(F=kn(t),F.c(),F.m(r,null)):F&&(F.d(1),F=null),(!de||A[1]&8192)&&c!==(c=t[44]("forgotNewPasswordPassword")+"")&&ie(d,c),(!de||A[0]&256&&w!==(w=t[8]?"new-password":"off"))&&h(g,"autocomplete",w),(!de||A[0]&131072)&&(g.disabled=t[17]),A[1]&32&&g.value!==t[36]&&tt(g,t[36]),Te===(Te=Be(t))&&Q?Q.p(t,A):(Q.d(1),Q=Te(t),Q&&(Q.c(),Q.m(l,v))),t[30]?B?B.p(t,A):(B=Mn(t),B.c(),B.m(l,null)):B&&(B.d(1),B=null),(!de||A[0]&1073741824&&S!==(S="NewPassword "+(t[30]?"InvalidField":"")))&&h(l,"class",S),(!de||A[1]&8192)&&R!==(R=t[44]("forgotNewPasswordConfirmPassword")+"")&&ie(se,R),(!de||A[0]&131072)&&(T.disabled=t[17]),A[1]&64&&T.value!==t[37]&&tt(T,t[37]),me===(me=Re(t))&&_e?_e.p(t,A):(_e.d(1),_e=me(t),_e&&(_e.c(),_e.m(x,Ee))),t[31]&&!t[17]?P?P.p(t,A):(P=Ln(t),P.c(),P.m(x,null)):P&&(P.d(1),P=null),(!de||A[1]&1&&ke!==(ke="ConfirmPassword "+(t[31]?"InvalidField":"")))&&h(x,"class",ke),t[38]&&!t[17]?I?I.p(t,A):(I=Bn(t),I.c(),I.m(a,be)):I&&(I.d(1),I=null),t[15]?V?(V.p(t,A),A[0]&32768&&ae(V,1)):(V=Rn(t),V.c(),ae(V,1),V.m(a,oe)):V&&($e(),pe(V,1,1,()=>{V=null}),je());let Bt=le;le=Lt(t),le===Bt?Ie[le].p(t,A):($e(),pe(Ie[Bt],1,1,()=>{Ie[Bt]=null}),je(),K=Ie[le],K?K.p(t,A):(K=Ie[le]=_r[le](t),K.c()),ae(K,1),K.m(te,null)),(!de||A[0]&537001984&&Ae!==(Ae=!t[29]||t[17]))&&(te.disabled=Ae)},i(ye){de||(ae(V),ae(K),de=!0)},o(ye){pe(V),pe(K),de=!1},d(ye){ye&&N(e),F&&F.d(),t[72](null),Q.d(),B&&B.d(),t[76](null),_e.d(),P&&P.d(),I&&I.d(),V&&V.d(),Ie[le].d(),ue=!1,He(Z)}}}function v_(t){let e,r,i,s,o,n,a,l,u,c,d,f,p,_,g,w=t[44]("forgotPasswordSuccess")+"",y,v,S,k=t[44]("forgotPasswordSuccessDescription")+"",x,M,R,se=t[44]("goToLogin")+"",W,ce,xe;return{c(){e=E("div"),r=E("div"),i=E("div"),s=C("svg"),o=C("defs"),n=C("style"),a=D(`.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=C("g"),u=C("g"),c=C("path"),d=C("g"),f=C("circle"),p=C("circle"),_=j(),g=E("h4"),y=D(w),v=j(),S=E("p"),x=D(k),M=j(),R=E("button"),W=D(se),h(c,"class","a"),h(c,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),h(c,"transform","translate(264.272 482.563)"),h(u,"transform","translate(-7360.574 8503.438)"),h(f,"class","c"),h(f,"cx","30"),h(f,"cy","30"),h(f,"r","30"),h(p,"class","d"),h(p,"cx","30"),h(p,"cy","30"),h(p,"r","29"),h(d,"class","b"),h(d,"transform","translate(-7106 8970)"),h(l,"transform","translate(7106 -8970)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"width","60"),h(s,"height","60"),h(s,"viewBox","0 0 60 60"),h(R,"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(T,X){L(T,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,c),m(l,d),m(d,f),m(d,p),m(i,_),m(i,g),m(g,y),m(i,v),m(i,S),m(S,x),m(i,M),m(i,R),m(R,W),ce||(xe=fe(R,"click",t[70]),ce=!0)},p(T,X){X[1]&8192&&w!==(w=T[44]("forgotPasswordSuccess")+"")&&ie(y,w),X[1]&8192&&k!==(k=T[44]("forgotPasswordSuccessDescription")+"")&&ie(x,k),X[1]&8192&&se!==(se=T[44]("goToLogin")+"")&&ie(W,se)},i:J,o:J,d(T){T&&N(e),ce=!1,xe()}}}function y_(t){let e,r,i,s,o,n,a,l,u,c=t[44]("goToLogin")+"",d,f,p,_,g,w,y,v,S,k=t[44]("forgotPasswordEmail")+"",x,M,R,se,W,ce,xe,T,X,Ee,ke,Me,be,oe,te,le,K,Ae,de,ue=t[40]&&Dn(t),Z=t[26]&&!t[17]&&Hn(t),F=t[20]&&!t[17]&&zn(t);function Be(P,I){return P[42]?I_:O_}let Te=Be(t),Q=Te(t),B=t[15]&&Vn(t);const Re=[B_,L_],me=[];function _e(P,I){return P[17]?0:1}return oe=_e(t),te=me[oe]=Re[oe](t),{c(){e=E("div"),r=E("div"),i=E("button"),s=C("svg"),o=C("defs"),n=C("style"),a=D(`.a {
|
|
2717
2717
|
fill: var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));
|
|
2718
2718
|
}
|
|
2719
|
-
`),l=
|
|
2719
|
+
`),l=C("path"),u=j(),d=D(c),f=j(),p=E("h4"),_=D(t[39]),g=j(),ue&&ue.c(),w=j(),y=E("form"),v=E("div"),S=E("label"),x=D(k),M=D(":"),R=E("span"),R.textContent="*",se=j(),W=E("input"),ce=j(),Z&&Z.c(),xe=j(),F&&F.c(),T=j(),Q.c(),ke=j(),B&&B.c(),Me=j(),be=E("button"),te.c(),h(l,"class","a"),h(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),h(l,"transform","translate(24 24) rotate(180)"),h(s,"xmlns","http://www.w3.org/2000/svg"),h(s,"viewBox","0 0 24 24"),h(i,"class","backButtonForgotPassword"),h(p,"class","FormHeaderTitle"),h(p,"part","FormHeaderTitle"),h(r,"class","FormHeader"),h(R,"class","FormRequired"),h(R,"part","FormRequired"),h(S,"for","ResetPasswordByEmail"),h(W,"type","text"),h(W,"id","ResetPasswordByEmail"),W.disabled=t[17],h(v,"class",X="ResetPasswordByEmail "+(t[26]?"InvalidField":"")),h(v,"part",Ee="ResetPasswordByEmail "+(t[26]?"InvalidField":"")),h(be,"class","resetPasswordButton"),h(be,"part","resetPasswordButton"),be.disabled=le=!t[27]||t[17],h(y,"class","FormContent"),h(y,"part","FormContent"),h(e,"class","FormForgotPassword")},m(P,I){L(P,e,I),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,d),m(r,f),m(r,p),m(p,_),m(r,g),ue&&ue.m(r,null),m(e,w),m(e,y),m(y,v),m(v,S),m(S,x),m(S,M),m(S,R),m(v,se),m(v,W),tt(W,t[22]),m(v,ce),Z&&Z.m(v,null),m(v,xe),F&&F.m(v,null),m(v,T),Q.m(v,null),m(y,ke),B&&B.m(y,null),m(y,Me),m(y,be),me[oe].m(be,null),K=!0,Ae||(de=[fe(i,"click",t[64]),fe(W,"input",t[65]),fe(W,"input",t[48]),fe(be,"click",t[69])],Ae=!0)},p(P,I){(!K||I[1]&8192)&&c!==(c=P[44]("goToLogin")+"")&&ie(d,c),(!K||I[1]&256)&&ie(_,P[39]),P[40]?ue?ue.p(P,I):(ue=Dn(P),ue.c(),ue.m(r,null)):ue&&(ue.d(1),ue=null),(!K||I[1]&8192)&&k!==(k=P[44]("forgotPasswordEmail")+"")&&ie(x,k),(!K||I[0]&131072)&&(W.disabled=P[17]),I[0]&4194304&&W.value!==P[22]&&tt(W,P[22]),P[26]&&!P[17]?Z?Z.p(P,I):(Z=Hn(P),Z.c(),Z.m(v,xe)):Z&&(Z.d(1),Z=null),P[20]&&!P[17]?F?F.p(P,I):(F=zn(P),F.c(),F.m(v,T)):F&&(F.d(1),F=null),Te===(Te=Be(P))&&Q?Q.p(P,I):(Q.d(1),Q=Te(P),Q&&(Q.c(),Q.m(v,null))),(!K||I[0]&67108864&&X!==(X="ResetPasswordByEmail "+(P[26]?"InvalidField":"")))&&h(v,"class",X),(!K||I[0]&67108864&&Ee!==(Ee="ResetPasswordByEmail "+(P[26]?"InvalidField":"")))&&h(v,"part",Ee),P[15]?B?(B.p(P,I),I[0]&32768&&ae(B,1)):(B=Vn(P),B.c(),ae(B,1),B.m(y,Me)):B&&($e(),pe(B,1,1,()=>{B=null}),je());let V=oe;oe=_e(P),oe===V?me[oe].p(P,I):($e(),pe(me[V],1,1,()=>{me[V]=null}),je(),te=me[oe],te?te.p(P,I):(te=me[oe]=Re[oe](P),te.c()),ae(te,1),te.m(be,null)),(!K||I[0]&134348800&&le!==(le=!P[27]||P[17]))&&(be.disabled=le)},i(P){K||(ae(B),ae(te),K=!0)},o(P){pe(B),pe(te),K=!1},d(P){P&&N(e),ue&&ue.d(),Z&&Z.d(),F&&F.d(),Q.d(),B&&B.d(),me[oe].d(),Ae=!1,He(de)}}}function kn(t){let e,r;return{c(){e=E("p"),r=D(t[40]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){L(i,e,s),m(e,r)},p(i,s){s[1]&512&&ie(r,i[40])},d(i){i&&N(e)}}}function w_(t){let e,r,i,s,o,n,a,l,u,c;return{c(){e=C("svg"),r=C("defs"),i=C("style"),s=D(`.a {
|
|
2720
2720
|
fill: var(--emw--color-white, #ffffff);
|
|
2721
2721
|
}
|
|
2722
|
-
`),o=
|
|
2722
|
+
`),o=C("g"),n=C("path"),a=C("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(d,f){L(d,e,f),m(e,r),m(r,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(c=fe(e,"click",t[74]),u=!0)},p(d,f){f[0]&1073741824&&l!==(l="TogglePasswordVisibility "+(d[30]?"InvalidToggle":""))&&h(e,"class",l)},d(d){d&&N(e),u=!1,c()}}}function x_(t){let e,r,i,s,o,n,a,l,u,c,d,f,p,_,g,w;return{c(){e=C("svg"),r=C("defs"),i=C("style"),s=D(`.a {
|
|
2723
2723
|
fill: var(--emw--color-white, #ffffff);
|
|
2724
2724
|
}
|
|
2725
|
-
`),o=
|
|
2725
|
+
`),o=C("g"),n=C("circle"),a=C("g"),l=C("path"),u=C("path"),c=C("g"),d=C("path"),f=C("path"),p=C("rect"),h(n,"class","a"),h(n,"cx","0.05"),h(n,"cy","0.05"),h(n,"r","0.05"),h(n,"transform","translate(121.017 31.148)"),h(l,"class","a"),h(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),h(l,"transform","translate(-142.164 -39.123)"),h(u,"class","a"),h(u,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),h(u,"transform","translate(-136.413 -42.068)"),h(a,"transform","translate(117.499 27.37)"),h(d,"class","a"),h(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),h(d,"transform","translate(-110.856 -33.157)"),h(f,"class","a"),h(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),h(f,"transform","translate(-130.743 -29.617)"),h(c,"transform","translate(110.856 24.899)"),h(p,"class","a"),h(p,"width","0.972"),h(p,"height","15.861"),h(p,"rx","0.486"),h(p,"transform","translate(114.827 23.858) rotate(-39.315)"),h(o,"transform","translate(-110.856 -23.242)"),h(e,"class",_="TogglePasswordVisibility "+(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){L(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,c),m(c,d),m(c,f),m(o,p),g||(w=fe(e,"click",t[73]),g=!0)},p(y,v){v[0]&1073741824&&_!==(_="TogglePasswordVisibility "+(y[30]?"InvalidToggle":""))&&h(e,"class",_)},d(y){y&&N(e),g=!1,w()}}}function Mn(t){let e;function r(o,n){return o[3]=="true"?E_:P_}let i=r(t),s=i(t);return{c(){s.c(),e=dr()},m(o,n){s.m(o,n),L(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&&N(e),s.d(o)}}}function P_(t){let e,r=t[44]("forgotNewPasswordPasswordError")+"",i;return{c(){e=E("p"),i=D(r),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotNewPasswordPasswordError")+"")&&ie(i,r)},d(s){s&&N(e)}}}function E_(t){let e,r=t[44]("simplePasswordError")+"",i;return{c(){e=E("p"),i=D(r),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("simplePasswordError")+"")&&ie(i,r)},d(s){s&&N(e)}}}function C_(t){let e,r,i,s,o,n,a,l,u,c;return{c(){e=C("svg"),r=C("defs"),i=C("style"),s=D(`.a {
|
|
2726
2726
|
fill: var(--emw--color-white, #ffffff);
|
|
2727
2727
|
}
|
|
2728
|
-
`),o=
|
|
2728
|
+
`),o=C("g"),n=C("path"),a=C("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(d,f){L(d,e,f),m(e,r),m(r,i),m(i,s),m(e,o),m(o,n),m(o,a),u||(c=fe(e,"click",t[78]),u=!0)},p(d,f){f[1]&1&&l!==(l="TogglePasswordVisibility "+(d[31]?"InvalidToggle":""))&&h(e,"class",l)},d(d){d&&N(e),u=!1,c()}}}function S_(t){let e,r,i,s,o,n,a,l,u,c,d,f,p,_,g,w;return{c(){e=C("svg"),r=C("defs"),i=C("style"),s=D(`.a {
|
|
2729
2729
|
fill: var(--emw--color-white, #ffffff);
|
|
2730
2730
|
}
|
|
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;
|
|
2731
|
+
`),o=C("g"),n=C("circle"),a=C("g"),l=C("path"),u=C("path"),c=C("g"),d=C("path"),f=C("path"),p=C("rect"),h(n,"class","a"),h(n,"cx","0.05"),h(n,"cy","0.05"),h(n,"r","0.05"),h(n,"transform","translate(121.017 31.148)"),h(l,"class","a"),h(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),h(l,"transform","translate(-142.164 -39.123)"),h(u,"class","a"),h(u,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),h(u,"transform","translate(-136.413 -42.068)"),h(a,"transform","translate(117.499 27.37)"),h(d,"class","a"),h(d,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),h(d,"transform","translate(-110.856 -33.157)"),h(f,"class","a"),h(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),h(f,"transform","translate(-130.743 -29.617)"),h(c,"transform","translate(110.856 24.899)"),h(p,"class","a"),h(p,"width","0.972"),h(p,"height","15.861"),h(p,"rx","0.486"),h(p,"transform","translate(114.827 23.858) rotate(-39.315)"),h(o,"transform","translate(-110.856 -23.242)"),h(e,"class",_="TogglePasswordVisibility "+(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){L(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,c),m(c,d),m(c,f),m(o,p),g||(w=fe(e,"click",t[77]),g=!0)},p(y,v){v[1]&1&&_!==(_="TogglePasswordVisibility "+(y[31]?"InvalidToggle":""))&&h(e,"class",_)},d(y){y&&N(e),g=!1,w()}}}function Ln(t){let e,r=t[44]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){e=E("p"),i=D(r),h(e,"class","InvalidInput"),h(e,"part","InvalidInput")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotNewPasswordConfirmPasswordError")+"")&&ie(i,r)},d(s){s&&N(e)}}}function Bn(t){let e,r;return{c(){e=E("p"),r=D(t[28]),h(e,"class","ErrorMessage"),h(e,"part","ErrorMessage")},m(i,s){L(i,e,s),m(e,r)},p(i,s){s[0]&268435456&&ie(r,i[28])},d(i){i&&N(e)}}}function Rn(t){let e,r;const i=t[63].captchaContainer,s=Jn(i,t,t[62],An);return{c(){e=E("div"),s&&s.c(),h(e,"class","CaptchaWrapper")},m(o,n){L(o,e,n),s&&s.m(e,null),r=!0},p(o,n){s&&s.p&&(!r||n[2]&1)&&ea(s,i,o,o[62],r?Qn(i,o[62],n,f_):ta(o[62]),An)},i(o){r||(ae(s,o),r=!0)},o(o){pe(s,o),r=!1},d(o){o&&N(e),s&&s.d(o)}}}function A_(t){let e=t[44]("forgotPasswordReset")+"",r;return{c(){r=D(e)},m(i,s){L(i,r,s)},p(i,s){s[1]&8192&&e!==(e=i[44]("forgotPasswordReset")+"")&&ie(r,e)},i:J,o:J,d(i){i&&N(r)}}}function T_(t){let e,r,i;var s=rr;function o(n,a){return{}}return s&&(e=zr(s,o())),{c(){e&&jr(e.$$.fragment),r=dr()},m(n,a){e&&Kt(e,n,a),L(n,r,a),i=!0},p(n,a){if(s!==(s=rr)){if(e){$e();const l=e;pe(l.$$.fragment,1,0,()=>{Qt(l,1)}),je()}s?(e=zr(s,o()),jr(e.$$.fragment),ae(e.$$.fragment,1),Kt(e,r.parentNode,r)):e=null}},i(n){i||(e&&ae(e.$$.fragment,n),i=!0)},o(n){e&&pe(e.$$.fragment,n),i=!1},d(n){n&&N(r),e&&Qt(e,n)}}}function Dn(t){let e,r;return{c(){e=E("p"),r=D(t[40]),h(e,"class","FormHeaderSubtitle"),h(e,"part","FormHeaderSubtitle")},m(i,s){L(i,e,s),m(e,r)},p(i,s){s[1]&512&&ie(r,i[40])},d(i){i&&N(e)}}}function Hn(t){let e,r=t[44]("forgotPasswordEmailInputError")+"",i;return{c(){e=E("p"),i=D(r),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotPasswordEmailInputError")+"")&&ie(i,r)},d(s){s&&N(e)}}}function zn(t){let e,r=t[44]("forgotPasswordEmailError")+"",i;return{c(){e=E("p"),i=D(r),h(e,"class","ForgotPasswordError"),h(e,"part","ForgotPasswordError")},m(s,o){L(s,e,o),m(e,i)},p(s,o){o[1]&8192&&r!==(r=s[44]("forgotPasswordEmailError")+"")&&ie(i,r)},d(s){s&&N(e)}}}function I_(t){let e,r,i=t[44](t[42])+"",s;return{c(){e=E("div"),r=E("span"),s=D(i),h(e,"class","dobFormatError")},m(o,n){L(o,e,n),m(e,r),m(r,s)},p(o,n){n[1]&10240&&i!==(i=o[44](o[42])+"")&&ie(s,i)},d(o){o&&N(e)}}}function O_(t){let e,r,i=Wi(t[41]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Fn(In(t,i,o));return{c(){e=E("div");for(let o=0;o<s.length;o+=1)s[o].c();h(e,"class",r="DobContainer "+(t[25]?"Mobile":""))},m(o,n){L(o,e,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(e,null)},p(o,n){if(n[1]&2225152){i=Wi(o[41]);let a;for(a=0;a<i.length;a+=1){const l=In(o,i,a);s[a]?s[a].p(l,n):(s[a]=Fn(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&&N(e),na(s,o)}}}function N_(t){let e,r,i,s,o;return{c(){e=E("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",r=t[44]("year")),O(e,"items",t[45]),O(e,"disabled",i=t[43].isYearDisabled)},m(n,a){L(n,e,a),s||(o=fe(e,"change",t[68]),s=!0)},p(n,a){a[1]&8192&&r!==(r=n[44]("year"))&&O(e,"label",r),a[1]&4096&&i!==(i=n[43].isYearDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function k_(t){let e,r,i,s,o;return{c(){e=E("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",r=t[44]("month")),O(e,"items",Object.keys(t[46])),O(e,"disabled",i=t[43].isMonthDisabled)},m(n,a){L(n,e,a),s||(o=fe(e,"change",t[67]),s=!0)},p(n,a){a[1]&8192&&r!==(r=n[44]("month"))&&O(e,"label",r),a[1]&4096&&i!==(i=n[43].isMonthDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function M_(t){let e,r,i,s,o;return{c(){e=E("vaadin-combo-box"),O(e,"class","datePickerBox"),O(e,"label",r=t[44]("day")),O(e,"items",t[47]),O(e,"disabled",i=t[43].isDayDisabled)},m(n,a){L(n,e,a),s||(o=fe(e,"change",t[66]),s=!0)},p(n,a){a[1]&8192&&r!==(r=n[44]("day"))&&O(e,"label",r),a[1]&4096&&i!==(i=n[43].isDayDisabled)&&O(e,"disabled",i)},d(n){n&&N(e),s=!1,o()}}}function Fn(t){let e;function r(o,n){if(o[105]==="dd")return M_;if(o[105]==="mm")return k_;if(o[105]==="yyyy")return N_}let i=r(t),s=i&&i(t);return{c(){s&&s.c(),e=dr()},m(o,n){s&&s.m(o,n),L(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&&N(e),s&&s.d(o)}}}function Vn(t){let e,r;const i=t[63].captchaContainer,s=Jn(i,t,t[62],Tn);return{c(){e=E("div"),s&&s.c(),h(e,"class","CaptchaWrapper")},m(o,n){L(o,e,n),s&&s.m(e,null),r=!0},p(o,n){s&&s.p&&(!r||n[2]&1)&&ea(s,i,o,o[62],r?Qn(i,o[62],n,p_):ta(o[62]),Tn)},i(o){r||(ae(s,o),r=!0)},o(o){pe(s,o),r=!1},d(o){o&&N(e),s&&s.d(o)}}}function L_(t){let e=t[44]("forgotPasswordReset")+"",r;return{c(){r=D(e)},m(i,s){L(i,r,s)},p(i,s){s[1]&8192&&e!==(e=i[44]("forgotPasswordReset")+"")&&ie(r,e)},i:J,o:J,d(i){i&&N(r)}}}function B_(t){let e,r,i;var s=rr;function o(n,a){return{}}return s&&(e=zr(s,o())),{c(){e&&jr(e.$$.fragment),r=dr()},m(n,a){e&&Kt(e,n,a),L(n,r,a),i=!0},p(n,a){if(s!==(s=rr)){if(e){$e();const l=e;pe(l.$$.fragment,1,0,()=>{Qt(l,1)}),je()}s?(e=zr(s,o()),jr(e.$$.fragment),ae(e.$$.fragment,1),Kt(e,r.parentNode,r)):e=null}},i(n){i||(e&&ae(e.$$.fragment,n),i=!0)},o(n){e&&pe(e.$$.fragment,n),i=!1},d(n){n&&N(r),e&&Qt(e,n)}}}function R_(t){let e,r,i,s,o,n,a,l,u,c=t[1]&&On(t);const d=[__,m_],f=[];function p(_,g){return g[0]&163840&&(n=null),n==null&&(n=!!(_[17]&&!_[15])),n?0:1}return a=p(t,[-1,-1,-1,-1]),l=f[a]=d[a](t),{c(){c&&c.c(),e=dr(),r=j(),i=E("div"),s=j(),o=E("div"),l.c(),h(i,"class","g-recaptcha"),h(i,"data-sitekey",t[1]),h(o,"class","GeneralPlayerForgotPasswordForm")},m(_,g){c&&c.m(document.head,null),m(document.head,e),L(_,r,g),L(_,i,g),L(_,s,g),L(_,o,g),f[a].m(o,null),t[81](o),u=!0},p(_,g){_[1]?c?c.p(_,g):(c=On(_),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null),(!u||g[0]&2)&&h(i,"data-sitekey",_[1]);let w=a;a=p(_,g),a===w?f[a].p(_,g):($e(),pe(f[w],1,1,()=>{f[w]=null}),je(),l=f[a],l?l.p(_,g):(l=f[a]=d[a](_),l.c()),ae(l,1),l.m(o,null))},i(_){u||(ae(l),u=!0)},o(_){pe(l),u=!1},d(_){_&&(N(r),N(i),N(s),N(o)),c&&c.d(_),N(e),f[a].d(),t[81](null)}}}function D_(t,e,r){let i;Zn(t,Ha,b=>r(44,i=b));let{$$slots:s={},$$scope:o}=e,{endpoint:n=""}=e,{forgotpasswordkey:a=""}=e,{captchakey:l=""}=e,{lang:u="en"}=e,{simplepasswordvalidation:c="false"}=e,{mbsource:d}=e,{clientstyling:f=""}=e,{clientstylingurl:p=""}=e,{translationurl:_=""}=e,{savecredentials:g=""}=e,{hastosetpass:w="false"}=e,{passwordregex:y=""}=e,{dobformat:v=""}=e,{mindobyears:S=18}=e,{maxdobyears:k=100}=e,{resetviasms:x="false"}=e,{phoneregex:M=""}=e,{phoneprefixeditable:R="false"}=e,{smscodemaxattempts:se="5"}=e,{smscodelength:W="6"}=e,{smscodettl:ce="5"}=e,{resenddelay:xe="1"}=e,{turnstileSiteKey:T}=e,X=!1,Ee=!1,ke=!0,Me=!1,be=!1,oe="",te=!1,le=!1,K=!1,Ae=!1,de=!1,ue=window.navigator.userAgent,Z="",F=!1,Be=sessionStorage.getItem("resetScreenWasSeen")==="true",Te=!1,Q=!1,B,Re,me=!1,_e=!1,P="",I="",V,_r,Ie=!1,Lt,ye,A,Bt=Array.from({length:k-S+1},(b,U)=>new Date().getFullYear()-S-U),oo={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},Gl=Array.from({length:31},(b,U)=>U+1),Qe=[],no="",gi=!0,Oe={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},Wl=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],Rt={dd:null,mm:null,yyyy:null},ao="";Zd({withLocale:"en",translations:{}});const ql=()=>{fetch(_).then(U=>U.json()).then(U=>{Object.keys(U).forEach(q=>{Ho(q,U[q])})}).catch(U=>{console.log(U)})};Object.keys(zo).forEach(b=>{Ho(b,zo[b])});const gr={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},Yl=()=>{r(27,de=v?!Ae&&!gi:!Ae)},Xl=b=>!!(gr.email.test(b)&&b.length<=100),lo=()=>{r(26,Ae=!Xl(oe)),Yl()},Dt=b=>{switch(b){case"userNewPassword":r(34,me=!me),r(32,B.type=me?"text":"password",B);break;case"userConfirmPassword":r(35,_e=!_e),r(33,Re.type=_e?"text":"password",Re);break}},br=b=>{switch(b){case"ToSMSReset":{r(18,Ee=!0),r(20,Me=!1),r(19,ke=!1),r(21,be=!1);break}case"ToEmailSuccess":r(20,Me=!1),r(19,ke=!1),r(18,Ee=!1),r(21,be=!0),window.postMessage({type:"resetPasswordLinkSent"},window.location.href);break;case"ToReset":r(19,ke=Be),r(23,te=!Be),r(18,Ee=!1),Be=!0,x!=="true"&&sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":r(23,te=!1),r(18,Ee=!1),r(24,le=!0);break}},vr=()=>{window.postMessage({type:"ToLogin"},window.location.href)};T&&(A=c_({action:"resetPassword",siteKey:T}));const Zl=()=>new Promise((b,U)=>{grecaptcha.ready(()=>{grecaptcha.execute(l,{action:"submit"}).then(q=>{b(q)})})}),uo=b=>{b.preventDefault(),r(17,X=!0),(T?A.ensureToken:Zl)().then(q=>{let Ce=new URL(`${n}/v1/player/resetpassword`);const We=T?{[En]:q,[Cn]:"false"}:{"g-recaptcha-response":q};let wr={method:"POST",headers:qe({"Content-Type":"application/json",Accept:"application/json"},We)};Ce.searchParams.append("email",oe),v&&Ce.searchParams.append("birthDate",ao),fetch(Ce,wr).then(he=>ho(he)).then(()=>{br("ToEmailSuccess")}).catch(he=>{r(20,Me=!0),console.error("There was an error with the reset password request.",he)}).finally(()=>{var he;r(17,X=!1),Be=!1,sessionStorage.setItem("resetScreenWasSeen","false"),T&&((he=A==null?void 0:A.reset)==null||he.call(A))})}).catch(q=>{r(20,Me=!0),r(17,X=!1),Be=!1,q!==null&&console.error("There was an error with captcha",q)})},Jl=()=>{if(r(56,v=v.toLowerCase()),!Wl.includes(v))return r(42,no="dobFormatError");r(41,Qe=v.split("/")),r(43,Oe.isDayDisabled=Qe[0]!=="dd",Oe),r(43,Oe.isMonthDisabled=Qe[0]!=="mm",Oe),r(43,Oe.isYearDisabled=Qe[0]!=="yyyy",Oe)},yr=(b,U)=>{Rt[U]=b.target.value,gi=Object.values(Rt).some(q=>!q),Qe.forEach((q,Ce)=>{if(U===q)switch(Qe[Ce+1]){case"dd":r(43,Oe.isDayDisabled=!1,Oe);case"mm":r(43,Oe.isMonthDisabled=!1,Oe);break;case"yyyy":r(43,Oe.isYearDisabled=!1,Oe);break}}),gi||(ao=`${Rt.yyyy}-${oo[Rt.mm]}-${Rt.dd}`),lo()},co=b=>Ye(this,null,function*(){var wr;b.preventDefault(),r(17,X=!0);let U=new URL(`${n}/v1/player/ResetPasswordByHashKey`);const q={};if(T)try{const he=yield(wr=A==null?void 0:A.ensureToken)==null?void 0:wr.call(A);q[En]=he,q[Cn]="false"}catch(he){r(38,Ie=!0),r(17,X=!1),he!==null&&(r(28,Z=`${he}`),console.error(Z));return}let Ce={hashKey:a,plainTextPassword:P};x==="true"&&(Ce.isUserHash=!0);let We={method:"POST",headers:qe({"Content-Type":"application/json",Accept:"application/json"},q),body:JSON.stringify(Ce)};fetch(U,We).then(he=>ho(he)).then(he=>{r(38,Ie=!1),br("ToSuccess")}).catch(he=>{r(38,Ie=!0),console.error("There was an error with changing the password.",he)}).finally(()=>{var he;r(17,X=!1),T&&((he=A==null?void 0:A.reset)==null||he.call(A))})}),Kl=()=>{a&&a.length>0&&br("ToReset")},Ql=()=>{x==="true"&&!a&&br("ToSMSReset")},eu=()=>{!Te&&!Q&&P&&I?r(29,F=!0):r(29,F=!1)},bi=b=>(c=="true"&&(gr.password=/^(?!.* ).{8,20}$/),!!gr.password.test(b)),tu=(b,U,q)=>{q.id==="new-password"?(r(30,Te=!bi(U)),I&&r(31,Q=P===I?!bi(U):!0)):r(31,Q=P===I?!bi(U):!0),eu()},ho=b=>Ye(this,null,function*(){var q,Ce;let U;try{U=yield b.json()}catch(We){console.error("JSON Parse Error:",We)}if(b.status>=300){const We=((q=U==null?void 0:U.thirdPartyResponse)==null?void 0:q.errorCode)||"generalError";return r(28,Z=i(We)),Z===String(We)&&/^\d+$/.test(Z)&&r(28,Z=(Ce=U==null?void 0:U.thirdPartyResponse)==null?void 0:Ce.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:Z}},window.location.href),Promise.reject(Z)}return U}),ru=()=>{Jd(u)},iu=()=>{r(39,Lt=i(w==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),r(40,ye=w==="true"?i("resetPasswordSubtitle"):"")},fo=b=>{!b||!b.data||b.data.type==="SwitchToResetPasswordScreen"&&r(55,a=b.data.key)};aa(()=>{var b,U;if(Xd(ue)&&r(25,K=!0),window.addEventListener("message",fo),T){const q=(b=V.getRootNode())==null?void 0:b.host,Ce=i_(q,d_);Ce&&((U=A==null?void 0:A.render)==null||U.call(A,Ce))}return()=>{var q;window.removeEventListener("message",fo),T&&((q=A==null?void 0:A.cleanup)==null||q.call(A))}});const su=()=>vr();function ou(){oe=this.value,r(22,oe)}const nu=b=>yr(b,"dd"),au=b=>yr(b,"mm"),lu=b=>yr(b,"yyyy"),uu=b=>uo(b),cu=()=>vr();function du(){P=this.value,r(36,P)}function hu(b){bt[b?"unshift":"push"](()=>{B=b,r(32,B)})}const fu=()=>Dt("userNewPassword"),pu=()=>Dt("userNewPassword");function mu(){I=this.value,r(37,I)}function _u(b){bt[b?"unshift":"push"](()=>{Re=b,r(33,Re)})}const gu=()=>Dt("userConfirmPassword"),bu=()=>Dt("userConfirmPassword"),vu=b=>co(b),yu=()=>vr();function wu(b){bt[b?"unshift":"push"](()=>{V=b,r(16,V)})}return t.$$set=b=>{"endpoint"in b&&r(0,n=b.endpoint),"forgotpasswordkey"in b&&r(55,a=b.forgotpasswordkey),"captchakey"in b&&r(1,l=b.captchakey),"lang"in b&&r(2,u=b.lang),"simplepasswordvalidation"in b&&r(3,c=b.simplepasswordvalidation),"mbsource"in b&&r(4,d=b.mbsource),"clientstyling"in b&&r(5,f=b.clientstyling),"clientstylingurl"in b&&r(6,p=b.clientstylingurl),"translationurl"in b&&r(7,_=b.translationurl),"savecredentials"in b&&r(8,g=b.savecredentials),"hastosetpass"in b&&r(57,w=b.hastosetpass),"passwordregex"in b&&r(58,y=b.passwordregex),"dobformat"in b&&r(56,v=b.dobformat),"mindobyears"in b&&r(59,S=b.mindobyears),"maxdobyears"in b&&r(60,k=b.maxdobyears),"resetviasms"in b&&r(61,x=b.resetviasms),"phoneregex"in b&&r(9,M=b.phoneregex),"phoneprefixeditable"in b&&r(10,R=b.phoneprefixeditable),"smscodemaxattempts"in b&&r(11,se=b.smscodemaxattempts),"smscodelength"in b&&r(12,W=b.smscodelength),"smscodettl"in b&&r(13,ce=b.smscodettl),"resenddelay"in b&&r(14,xe=b.resenddelay),"turnstileSiteKey"in b&&r(15,T=b.turnstileSiteKey),"$$scope"in b&&r(62,o=b.$$scope)},t.$$.update=()=>{t.$$.dirty[1]&1090519040&&x&&!a&&Ql(),t.$$.dirty[1]&16777216&&a&&Kl(),t.$$.dirty[0]&4&&u&&ru(),t.$$.dirty[0]&65568&&f&&V&&za(V,f),t.$$.dirty[0]&65600&&p&&V&&Fa(V,p),t.$$.dirty[0]&65552&&d&&V&&Va(V,`${d}.Style`,_r),t.$$.dirty[0]&128&&_&&ql(),t.$$.dirty[0]&4|t.$$.dirty[1]&67108864&&w&&u&&iu(),t.$$.dirty[1]&134217728&&y&&(gr.password=new RegExp(y)),t.$$.dirty[1]&33554432&&v&&Jl()},[n,l,u,c,d,f,p,_,g,M,R,se,W,ce,xe,T,V,X,Ee,ke,Me,be,oe,te,le,K,Ae,de,Z,F,Te,Q,B,Re,me,_e,P,I,Ie,Lt,ye,Qe,no,Oe,i,Bt,oo,Gl,lo,Dt,vr,uo,yr,co,tu,a,v,w,y,S,k,x,o,s,su,ou,nu,au,lu,uu,cu,du,hu,fu,pu,mu,_u,gu,bu,vu,yu,wu]}class jl extends Ls{constructor(e){super(),ks(this,e,D_,R_,ii,{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},h_,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),ee()}get forgotpasswordkey(){return this.$$.ctx[55]}set forgotpasswordkey(e){this.$$set({forgotpasswordkey:e}),ee()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),ee()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),ee()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),ee()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),ee()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),ee()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ee()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),ee()}get savecredentials(){return this.$$.ctx[8]}set savecredentials(e){this.$$set({savecredentials:e}),ee()}get hastosetpass(){return this.$$.ctx[57]}set hastosetpass(e){this.$$set({hastosetpass:e}),ee()}get passwordregex(){return this.$$.ctx[58]}set passwordregex(e){this.$$set({passwordregex:e}),ee()}get dobformat(){return this.$$.ctx[56]}set dobformat(e){this.$$set({dobformat:e}),ee()}get mindobyears(){return this.$$.ctx[59]}set mindobyears(e){this.$$set({mindobyears:e}),ee()}get maxdobyears(){return this.$$.ctx[60]}set maxdobyears(e){this.$$set({maxdobyears:e}),ee()}get resetviasms(){return this.$$.ctx[61]}set resetviasms(e){this.$$set({resetviasms:e}),ee()}get phoneregex(){return this.$$.ctx[9]}set phoneregex(e){this.$$set({phoneregex:e}),ee()}get phoneprefixeditable(){return this.$$.ctx[10]}set phoneprefixeditable(e){this.$$set({phoneprefixeditable:e}),ee()}get smscodemaxattempts(){return this.$$.ctx[11]}set smscodemaxattempts(e){this.$$set({smscodemaxattempts:e}),ee()}get smscodelength(){return this.$$.ctx[12]}set smscodelength(e){this.$$set({smscodelength:e}),ee()}get smscodettl(){return this.$$.ctx[13]}set smscodettl(e){this.$$set({smscodettl:e}),ee()}get resenddelay(){return this.$$.ctx[14]}set resenddelay(e){this.$$set({resenddelay:e}),ee()}get turnstileSiteKey(){return this.$$.ctx[15]}set turnstileSiteKey(e){this.$$set({turnstileSiteKey:e}),ee()}}Ms(jl,{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 H_=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=lt;exports.$format=Ha;exports.$locale=Ge;exports.GeneralPlayerForgotPasswordFormNd_ce=H_;exports.SvelteComponent=Ls;exports.addMessages=Rs;exports.add_render_callback=nt;exports.append=m;exports.append_styles=sa;exports.attr=h;exports.binding_callbacks=bt;exports.check_outros=je;exports.component_subscribe=Zn;exports.create_bidirectional_transition=Gu;exports.create_custom_element=Ms;exports.create_in_transition=$u;exports.create_out_transition=ju;exports.destroy_each=na;exports.detach=N;exports.element=E;exports.ensure_array_like=Wi;exports.flush=ee;exports.group_outros=$e;exports.identity=ri;exports.init=ks;exports.insert=L;exports.listen=fe;exports.onMount=aa;exports.run_all=He;exports.safe_not_equal=ii;exports.setClientStyling=za;exports.setClientStylingURL=Fa;exports.setStreamStyling=Va;exports.set_custom_element_data=O;exports.set_data=ie;exports.set_input_value=tt;exports.space=j;exports.split_css_unit=Iu;exports.text=D;exports.toggle_class=ku;exports.transition_in=ae;exports.transition_out=pe;
|