@everymatrix/general-player-login-form 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(_){"use strict";(X=_)&&"object"==typeof X&&0 in X;function x(){}function S(e){return e()}function B(){return Object.create(null)}function Z(e){e.forEach(S)}function A(e){return"function"==typeof e}function P(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let H,C;function I(e,t){return(H=H||document.createElement("a")).href=t,e===H.href}function L(e,...t){if(null==e)return x;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function oe(e,t,r){e.$$.on_destroy.push(L(t,r))}function Y(e,t){e.appendChild(t)}function q(e,t,r){e.insertBefore(t,r||null)}function W(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function J(e){return document.createTextNode(e)}function Q(){return J(" ")}function O(){return J("")}function ee(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function te(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function n(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:te(e,t,r)}function re(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function ne(e,t){e.value=null==t?"":t}function F(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function N(e){const t={};for(const r of e)t[r.name]=r.value;return t}function M(e){C=e}function se(e){!function(){if(C)return C;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const R=[],ae=[],U=[],k=[],D=Promise.resolve();let $=!1;function G(e){U.push(e)}const j=new Set;let V=0;function g(){const e=C;do{for(;V<R.length;){const e=R[V];V++,M(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),Z(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(G))}for(M(null),R.length=0,V=0;ae.length;)ae.pop()();for(let e=0;e<U.length;e+=1){const n=U[e];j.has(n)||(j.add(n),n())}}while(U.length=0,R.length);for(;k.length;)k.pop()();$=!1,j.clear(),M(e)}const z=new Set;var X="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function le(n,e,t,r,i,o,s,a=[-1]){var l=C;M(n);const c=n.$$={fragment:null,ctx:null,props:o,update:x,not_equal:i,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:B(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(c.root);let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(R.push(e),$||($=!0,D.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,Z(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){o=e.target;const n=Array.from(o.childNodes);c.fragment&&c.fragment.l(n),n.forEach(W)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(z.delete(a),a.i(void 0));{var h=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:f,after_update:m}=h.$$;p&&p.m(s,t),r||G(()=>{var e=d.map(S).filter(A);f?f.push(...e):Z(e),h.$$.on_mount=[]}),m.forEach(G)}g()}M(l)}let ce;"function"==typeof HTMLElement&&(ce=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(A);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){Z(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(Z(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=x}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ue,he,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,pe="URLSearchParams"in a,de="Symbol"in a&&"iterator"in Symbol,fe="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in a,ge="ArrayBuffer"in a;function ye(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function be(e){return e="string"!=typeof e?String(e):e}function ve(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Ee(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function we(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Te(e){var t=new FileReader,r=we(t);return t.readAsArrayBuffer(e),r}function _e(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:fe&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:pe&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ge&&fe&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=_e(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ge&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=_e(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):pe&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fe&&(this.blob=function(){var e=Ee(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Ee(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Te)}),this.text=function(){var e,t,r=Ee(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=we(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},me&&(this.formData=function(){return this.text().then(Ae)}),this.json=function(){return this.text().then(JSON.parse)},this}ge&&(ue=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<ue.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=ye(e),t=be(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[ye(e)]},l.prototype.get=function(e){return e=ye(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(ye(e))},l.prototype.set=function(e,t){this.map[ye(e)]=be(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ve(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ve(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ve(r)},de&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Be=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof c){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<Be.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ae(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}c.prototype.clone=function(){return new c(this,{body:this._bodyInit})},Se.call(c.prototype),Se.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:0,statusText:""});return e.type="error",e};var Pe=[301,302,303,307,308],He=(u.redirect=function(e,t){if(-1===Pe.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},a.DOMException);try{new He}catch(_){(He=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),He.prototype.constructor=He}function Ce(n,s){return new Promise(function(i,e){var t=new c(n,s);if(t.signal&&t.signal.aborted)return e(new He("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new u(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new He("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(fe?o.responseType="blob":ge&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,be(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}Ce.polyfill=!0,a.fetch||(a.fetch=Ce,a.Headers=l,a.Request=c,a.Response=u),self.fetch.bind(self);var Ie=function(e,t){return(Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Oe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ne(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function xe(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Me=xe(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Re(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Oe(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(e){i=e instanceof Me?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Oe(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{$e(u)}catch(e){i=null!=i?i:[],e instanceof Me?i=Ne(Ne([],Fe(i)),Fe(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Me(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)$e(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((o=new r).closed=!0,o);var Ue=r,ke=Ue.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function De(e){return e instanceof Ue||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function $e(e){h(e)?e():e.unsubscribe()}var Ge=void 0,je=!1,Ve=!1,ze={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=ze.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Fe(r))):setTimeout.apply(void 0,Ne([e,t],Fe(r)))},clearTimeout:function(e){var t=ze.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Xe(){}var Ke=null;function Ze(e){if(je){var t=!Ke;if(t&&(Ke={errorThrown:!1,error:null}),e(),t){var t=Ke,r=t.errorThrown,t=t.error;if(Ke=null,r)throw t}}else e()}Le(i,Ye=Ue),i.create=function(e,t,r){return new tt(e,t,r)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ye.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Ye,qe=i,We=Function.prototype.bind;function i(e){var t=Ye.call(this)||this;return t.isStopped=!1,e?De(t.destination=e)&&e.add(t):t.destination=ot,t}function Je(e,t){return We.call(e,t)}nt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){it(e)}},nt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){it(e)}else it(e)},nt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){it(e)}};var Qe,et=nt,tt=(Le(rt,Qe=qe),rt);function rt(e,t,r){var n=Qe.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Ve?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&Je(e.next,t),error:e.error&&Je(e.error,t),complete:e.complete&&Je(e.complete,t)}):e;return n.destination=new et(r),n}function nt(e){this.partialObserver=e}function it(e){var t=e;ze.setTimeout(function(){throw t})}var ot={closed:!0,next:Xe,error:function(e){throw e},complete:Xe},o="function"==typeof Symbol&&Symbol.observable||"@@observable";function st(e){return e}s.prototype.lift=function(e){var t=new s;return t.source=this,t.operator=e,t},s.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof qe||n&&h(n.next)&&h(n.error)&&h(n.complete)&&De(n)?e:new tt(e,t,r);return Ze(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(n,e){var i=this;return new(e=lt(e))(function(e,t){var r=new tt({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},s.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},s.prototype[o]=function(){return this},s.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?st:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},s.prototype.toPromise=function(e){var n=this;return new(e=lt(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},s.create=function(e){return new s(e)};var at=s;function s(e){e&&(this._subscribe=e)}function lt(e){return null!=(e=null!=e?e:Ge)?e:Promise}var ct,ut,ht,pt=xe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=(Le(p,ht=at),p.prototype.lift=function(e){var t=new dt(this,this);return t.operator=e,t},p.prototype._throwIfClosed=function(){if(this.closed)throw new pt},p.prototype.next=function(i){var o=this;Ze(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Oe(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},p.prototype.error=function(t){var r=this;Ze(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},p.prototype.complete=function(){var t=this;Ze(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},p.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(p.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),p.prototype._trySubscribe=function(e){return this._throwIfClosed(),ht.prototype._trySubscribe.call(this,e)},p.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},p.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?ke:(this.currentObservers=null,i.push(e),new Ue(function(){t.currentObservers=null,Re(i,e)}))},p.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},p.prototype.asObservable=function(){var e=new at;return e.source=this,e},p.create=function(e,t){return new dt(e,t)},p),dt=(Le(yt,ut=o),yt.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},yt.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},yt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},yt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ke},yt),ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0},mt=(Le(gt,ct=o),gt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),ct.prototype.next.call(this,e)},gt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},gt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},gt);function gt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ft);var n=ct.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function yt(e,t){var r=ut.call(this)||this;return r.destination=e,r.source=t,r}function p(){var e=ht.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],vt={};const Et=[];function wt(n,i=x){let o;const s=new Set;function a(e){if(P(n,e)&&(n=e,o)){const e=!Et.length;for(const e of s)e[1](),Et.push(e,n);if(e){for(let e=0;e<Et.length;e+=2)Et[e][0](Et[e+1]);Et.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=x){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||x),e(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function Tt(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:wt(t,t=>{let r=!1;const n=[];let i=0,o=x;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=A(e)?e:x)},e=c.map((e,t)=>L(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){Z(e),o()}}).subscribe}}function _t(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===St));var t}var St="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Bt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?It(Array.isArray(e)?[]:{},e,t):e}function At(e,t,r){return e.concat(t).map(function(e){return Bt(e,r)})}function Pt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Ht(e,t){try{return t in e}catch(e){return!1}}function Ct(n,i,o){var s={};return o.isMergeableObject(n)&&Pt(n).forEach(function(e){s[e]=Bt(n[e],o)}),Pt(i).forEach(function(t){var e,r;(!Ht(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Ht(n,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return It;e=e.customMerge(t);return"function"==typeof e?e:It}(o)(n[t],i[t],o):s[t]=Bt(i[t],o))}),s}function It(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||At,r.isMergeableObject=r.isMergeableObject||_t,r.cloneUnlessOtherwiseSpecified=Bt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Ct(e,t,r):Bt(t,r)}It.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return It(e,t,r)},{});throw new Error("first argument should be an array")};var Lt=It,Ot=function(e,t){return(Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ft(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m,y,Nt,b=function(){return(b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function xt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Mt(e){return e.type===y.literal}function Rt(e){return e.type===y.number}function Ut(e){return e.type===y.date}function kt(e){return e.type===y.time}function Dt(e){return e.type===y.select}function $t(e){return e.type===y.plural}function Gt(e){return e.type===y.tag}function jt(e){return e&&"object"==typeof e&&e.type===Nt.number}function Vt(e){return e&&"object"==typeof e&&e.type===Nt.dateTime}(o=m=m||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=y=y||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=Nt=Nt||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,zt=/(?:[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;var Xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Yt=/(\*)(0+)|(#+)(0+)|(0+)/g,qt=/^(0+)$/;function Wt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Zt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Jt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Qt(e){return Jt(e)||{}}function er(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=b(b(b({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return b(b({},e),Qt(t))},{}));continue;case"engineering":s=b(b(b({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return b(b({},e),Qt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Yt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Kt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Kt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=b(b({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=b(b({},s),Wt(o)))}else Zt.test(i.stem)?s=b(b({},s),Wt(i.stem)):((o=Jt(i.stem))&&(s=b(b({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!qt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=b(b({},s),n)))}return s}var tr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var rr=new RegExp("^".concat(o.source,"*")),nr=new RegExp("".concat(o.source,"*$"));function v(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,ir=!!String.fromCodePoint,or=!!Object.fromEntries,sr=!!String.prototype.codePointAt,ar=!!String.prototype.trimStart,lr=!!String.prototype.trimEnd,cr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ur=!0;try{ur="a"===(null==(Lr=vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Lr[0])}catch(_){ur=!1}var hr,pr,dr=o?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},fr=ir?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},mr=or?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},gr=sr?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},yr=ar?function(e){return e.trimStart()}:function(e){return e.replace(rr,"")},br=lr?function(e){return e.trimEnd()}:function(e){return e.replace(nr,"")};function vr(e,t){return new RegExp(e,t)}pr=ur?(hr=vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return hr.lastIndex=t,null!=(t=hr.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=gr(e,t);if(void 0===i||Tr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return fr.apply(void 0,n)};d.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},d.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&wr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},d.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wr(this.char()))return this.error(m.INVALID_TAG,v(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,v(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,v(r,this.clonePosition()))}return this.error(m.INVALID_TAG,v(r,this.clonePosition()))},d.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},d.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=v(r,this.clonePosition());return{val:{type:y.literal,value:n,location:r},err:null}},d.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},d.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return fr.apply(void 0,t)},d.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),fr(r))},d.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,v(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(m.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(m.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},d.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=pr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},d.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,v(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(d=br(f.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:v(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(n)).err)return c;var u=v(n,this.clonePosition());if(l&&dr(null==l?void 0:l.style,"::",0)){var h=yr(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?f:{val:{type:y.number,value:r,location:u,style:f.val},err:null};if(0===h.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,u);var p=h,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(tr[t||""]||tr[r||""]||tr["".concat(r,"-001")]||tr["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale)),{type:Nt.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(zt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}});return{val:{type:"date"===s?y.date:y.time,value:r,location:u,style:d},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:u,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,v(p,b({},p)));this.bumpSpace();var f,d=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),d=this.parseIdentifierIfPossible(),u=f.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((c=this.tryParseArgumentClose(n)).err)return c;h=v(n,this.clonePosition());return"select"===s?{val:{type:y.select,value:r,options:mr(l.val),location:h},err:null}:{val:{type:y.plural,value:r,options:mr(l.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,v(o,a))}},d.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},d.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},d.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Xt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?er(r):{}},err:null}},d.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var h=this.tryParseArgumentClose(u);if(h.err)return h;o.push([a,{value:c.val,location:v(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(m.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},d.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=v(n,this.clonePosition());return i?cr(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},d.prototype.offset=function(){return this.position.offset},d.prototype.isEOF=function(){return this.offset()===this.message.length},d.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},d.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=gr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},d.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},d.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},d.prototype.bumpIf=function(e){if(dr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},d.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},d.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},d.prototype.bumpSpace=function(){for(;!this.isEOF()&&Tr(this.char());)this.bump()},d.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Er=d;function d(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function wr(e){return 97<=e&&e<=122||65<=e&&e<=90}function Tr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function _r(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Er(e,t).parse();if(e.err)throw(r=SyntaxError(m[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Dt(e)||$t(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Rt(e)&&jt(e.style)||(Ut(e)||kt(e))&&Vt(e.style)?delete e.style.location:Gt(e)&&r(e.children)})}(e.val),e.val}function Sr(e,t){var r=t&&t.cache?t.cache:Or,n=t&&t.serializer?t.serializer:Hr;return(t&&t.strategy?t.strategy:function(e,t){return Pr(e,this,1===e.length?Br:Ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Br(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Ar(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Pr(e,t,r,n,i){return r.bind(t,e,n,i)}var Hr=function(){return JSON.stringify(arguments)};function Cr(){this.cache=Object.create(null)}Cr.prototype.get=function(e){return this.cache[e]},Cr.prototype.set=function(e,t){this.cache[e]=t};var Ir,Lr,Or={create:function(){return new Cr}},Fr={variadic:function(e,t){return Pr(e,this,Ar,t.cache.create(),t.serializer)},monadic:function(e,t){return Pr(e,this,Br,t.cache.create(),t.serializer)}};(Lr=Ir=Ir||{}).MISSING_VALUE="MISSING_VALUE",Lr.INVALID_VALUE="INVALID_VALUE",Lr.MISSING_INTL_API="MISSING_INTL_API";Ft(zr,Rr=Error),zr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var E,Nr,xr,Mr,Rr,Ur=zr,kr=(Ft(Vr,Mr=Ur),Vr),Dr=(Ft(jr,xr=Ur),jr),$r=(Ft(Gr,Nr=Ur),Gr);function Gr(e,t){return Nr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Ir.MISSING_VALUE,t)||this}function jr(e,t,r){return xr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Ir.INVALID_VALUE,r)||this}function Vr(e,t,r,n){return Mr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ir.INVALID_VALUE,n)||this}function zr(e,t,r){e=Rr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Xr(e,t,r,n,i,o,s){if(1===e.length&&Mt(e[0]))return[{type:E.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Mt(u))a.push({type:E.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&a.push({type:E.literal,value:r.getNumberFormat(t).format(o)});else{var h=u.value;if(!(i&&h in i))throw new $r(h,s);h=i[h];if(u.type===y.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?E.literal:E.object,value:h});else if(Ut(u)){var p="string"==typeof u.style?n.date[u.style]:Vt(u.style)?u.style.parsedOptions:void 0;a.push({type:E.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(kt(u))p="string"==typeof u.style?n.time[u.style]:Vt(u.style)?u.style.parsedOptions:n.time.medium,a.push({type:E.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Rt(u))(p="string"==typeof u.style?n.number[u.style]:jt(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:E.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Gt(u)){var d=u.children,f=u.value,m=i[f];if("function"!=typeof m)throw new Dr(f,"function",s);f=m(Xr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?E.literal:E.object,value:e}}))}if(Dt(u)){if(!(g=u.options[h]||u.options.other))throw new kr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Xr(g.value,t,r,n,i))}else if($t(u)){if(!(g=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new Ur('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ir.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new kr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Xr(g.value,t,r,n,i,h-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===E.literal&&t.type===E.literal?r.value+=t.value:e.push(t),e},[])}function Kr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(o=E=E||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(f,"defaultLocale",{get:function(){return f.memoizedDefaultLocale||(f.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),f.memoizedDefaultLocale},enumerable:!1,configurable:!0}),f.memoizedDefaultLocale=null,f.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},f.__parse=_r,f.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"}}};var Zr=f;function f(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=f.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===E.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Xr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=f.resolveLocale(t),"string"==typeof e){if(this.message=e,!f.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=f.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,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=(i=f.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?b(b(b({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=b(b({},r[t]),n[t]||{}),e},{})):r),e},b({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Sr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:Kr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Fr.variadic}),getDateTimeFormat:Sr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:Kr(t.dateTime),strategy:Fr.variadic}),getPluralRules:Sr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,xt([void 0],t,!1)))},{cache:Kr(t.pluralRules),strategy:Fr.variadic})}}const w={},Yr=(e,t,r)=>r&&(t in w||(w[t]={}),e in w[t]||(w[t][e]=r),r),qr=(t,r)=>{if(null!=r){if(r in w&&t in w[r])return w[r][t];var n=pn(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!Jr(e))return null;e=function(e){return Wr[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Yr(t,r,i)}}};let Wr;const K=wt({});function Jr(e){return e in Wr}function Qr(t,...r){delete w[t],K.update(e=>(e[t]=Lt.all([e[t]||{},...r]),e))}Tt([K],([e])=>Object.keys(e)),K.subscribe(e=>Wr=e);const en={};function tn(e){return en[e]}function rn(e){return null!=e&&pn(e).some(e=>{return null==(e=tn(e))?void 0:e.size})}const nn={};function on(e){if(!rn(e))return e in nn?nn[e]:Promise.resolve();const t=pn(e).map(e=>{var t=tn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return nn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return en[t].delete(r),0===en[t].size&&delete en[t],e().then(e=>e.default||e)}));return r.then(e=>Qr(n,...e))}})).then(()=>{if(rn(e))return on(e);delete nn[e]}),nn[e]}function sn(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const an={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const ln=wt(!1);let cn;const un=wt(null);function hn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function pn(e,t=an.fallbackLocale){e=hn(e);return t?[...new Set([...e,...hn(t)])]:e}function T(){return null!=cn?cn:void 0}un.subscribe(e=>{cn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ie=Object.assign(Object.assign({},un),{set:t=>{if(t&&function(e){if(null!=e){var t=pn(e);for(let e=0;e<t.length;e++){var r=t[e];if(Jr(r))return r}}}(t)&&rn(t)){var r=an["loadingDelay"];let e;return"undefined"!=typeof window&&null!=T()&&r?e=window.setTimeout(()=>ln.set(!0),r):ln.set(!0),on(t).then(()=>{un.set(t)}).finally(()=>{clearTimeout(e),ln.set(!1)})}return un.set(t)}}),dn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},fn=(e,t)=>{var r=an["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},mn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=fn("number",r)),new Intl.NumberFormat(t,e)}),gn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=fn("date",r):0===Object.keys(e).length&&(e=fn("date","short")),new Intl.DateTimeFormat(t,e)}),yn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=fn("time",r):0===Object.keys(e).length&&(e=fn("time","short")),new Intl.DateTimeFormat(t,e)}),bn=dn((e,t=T())=>new Zr(e,t,an.formats,{ignoreTag:an.ignoreTag})),vn=Tt([ie,K],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=T(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=qr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let c=l;try{c=bn(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function En(e,t){Qr(e,t)}Tt([ie],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=sn(e,["locale"]);return yn(Object.assign({locale:t},e))})(t).format(e)),Tt([ie],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=sn(e,["locale"]);return gn(Object.assign({locale:t},e))})(t).format(e)),Tt([ie],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=sn(e,["locale"]);return mn(Object.assign({locale:t},e))})(t).format(e)),Tt([ie,K],()=>(e,t=T())=>qr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new mt(t),vt[e]=t,bt.push(e)),vt[e]}};const wn={en:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"}},zh:{smsVerification:{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"}},fr:{smsVerification:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"}},tr:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Activate Account",resend:"Resend"}},ro:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"}},es:{smsVerification:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"}},pt:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"}}};function Tn(e){let r,n=e[5]("smsVerification.errorTitle")+"";return{c(){r=J(n)},m(e,t){q(e,r,t)},p(e,t){32&t&&n!==(n=e[5]("smsVerification.errorTitle")+"")&&re(r,n)},d(e){e&&W(r)}}}function _n(e){let r,n=e[5]("smsVerification.title")+"";return{c(){r=J(n)},m(e,t){q(e,r,t)},p(e,t){32&t&&n!==(n=e[5]("smsVerification.title")+"")&&re(r,n)},d(e){e&&W(r)}}}function Sn(e){let r,n,i=e[5]("smsVerification.smsCodeError")+"";return{c(){r=t("p"),n=J(i),te(r,"class","InvalidInput"),te(r,"part","InvalidInput")},m(e,t){q(e,r,t),Y(r,n)},p(e,t){32&t&&i!==(i=e[5]("smsVerification.smsCodeError")+"")&&re(n,i)},d(e){e&&W(r)}}}function Bn(e){let r,n,i=e[5]("smsVerification.resendMessage")+"";return{c(){r=t("p"),n=J(i),te(r,"class","SmsVerificationResendMessage"),te(r,"part","SmsVerificationResendMessage")},m(e,t){q(e,r,t),Y(r,n)},p(e,t){32&t&&i!==(i=e[5]("smsVerification.resendMessage")+"")&&re(n,i)},d(e){e&&W(r)}}}function An(e){let r,n,i,o,s,a=e[4]<10?"0":"";return{c(){r=t("span"),n=J("(0:"),i=J(a),o=J(e[4]),s=J(")"),te(r,"class","SmsVerificationResendTimer")},m(e,t){q(e,r,t),Y(r,n),Y(r,i),Y(r,o),Y(r,s)},p(e,t){16&t&&a!==(a=e[4]<10?"0":"")&&re(i,a),16&t&&re(o,e[4])},d(e){e&&W(r)}}}function Pn(r){let n,i,o,s,a,l,c,u,h,p,d,f,m,g,y,b,v,E,w,T,_,S,B,A=r[5]("smsVerification.code")+"",P=r[5]("smsVerification.activate")+"",H=r[5]("smsVerification.resend")+"";function C(e){return e[2]?_n:Tn}let I=C(r),L=I(r),O=!r[2]&&Sn(r),F=r[3]&&Bn(r),N=r[3]&&An(r);return{c(){n=t("div"),i=t("h3"),L.c(),o=Q(),s=t("div"),a=t("label"),l=J(A),c=J(":"),(u=t("span")).textContent="*",h=Q(),p=t("input"),d=Q(),O&&O.c(),g=Q(),F&&F.c(),y=Q(),b=t("button"),v=J(P),E=Q(),w=t("button"),T=J(H),_=Q(),N&&N.c(),this.c=x,te(i,"class","Title"),te(i,"part","Title"),te(u,"class","FormRequired"),te(u,"part","FormRequired"),te(a,"for","SmsCode"),te(p,"type","text"),te(p,"id","SmsCode"),te(p,"inputmode","numeric"),te(p,"pattern","[0-9]*"),te(p,"maxlength","6"),te(s,"class",f="Field SmsVerificationField "+(r[2]?"":"InvalidField")),te(s,"part",m="SmsVerificationField "+(r[2]?"":"InvalidField")),te(b,"class","Button SmsVerificationValidate"),te(b,"part","SmsVerificationValidate"),te(w,"class","Button SmsVerificationResend"),te(w,"part","SmsVerificationResend"),w.disabled=r[3],te(n,"class","Container SmsVerificationContainer"),te(n,"part","SmsVerificationContainer")},m(e,t){q(e,n,t),Y(n,i),L.m(i,null),Y(n,o),Y(n,s),Y(s,a),Y(a,l),Y(a,c),Y(a,u),Y(s,h),Y(s,p),ne(p,r[1]),Y(s,d),O&&O.m(s,null),Y(n,g),F&&F.m(n,null),Y(n,y),Y(n,b),Y(b,v),Y(n,E),Y(n,w),Y(w,T),Y(w,_),N&&N.m(w,null),r[19](n),S||(B=[ee(p,"input",r[17]),ee(p,"keydown",r[18]),ee(b,"click",r[6]),ee(w,"click",r[7])],S=!0)},p(e,[t]){I===(I=C(e))&&L?L.p(e,t):(L.d(1),(L=I(e))&&(L.c(),L.m(i,null))),32&t&&A!==(A=e[5]("smsVerification.code")+"")&&re(l,A),2&t&&p.value!==e[1]&&ne(p,e[1]),e[2]?O&&(O.d(1),O=null):O?O.p(e,t):((O=Sn(e)).c(),O.m(s,null)),4&t&&f!==(f="Field SmsVerificationField "+(e[2]?"":"InvalidField"))&&te(s,"class",f),4&t&&m!==(m="SmsVerificationField "+(e[2]?"":"InvalidField"))&&te(s,"part",m),e[3]?F?F.p(e,t):((F=Bn(e)).c(),F.m(n,y)):F&&(F.d(1),F=null),32&t&&P!==(P=e[5]("smsVerification.activate")+"")&&re(v,P),32&t&&H!==(H=e[5]("smsVerification.resend")+"")&&re(T,H),e[3]?N?N.p(e,t):((N=An(e)).c(),N.m(w,null)):N&&(N.d(1),N=null),8&t&&(w.disabled=e[3])},i:x,o:x,d(e){e&&W(n),L.d(),O&&O.d(),F&&F.d(),N&&N.d(),r[19](null),S=!1,Z(B)}}}function Hn(e,t,r){let n;oe(e,vn,e=>r(5,n=e));let i,o,s,{endpoint:a=""}=t,{tokenid:l=""}=t,{playerid:c=""}=t,{smstemplate:u="Please use this code {0} to activate your accout"}=t,{number:h=""}=t,{clientstyling:p=""}=t,{clientstylingurl:d=""}=t,{translationurl:f=""}=t,m=!0,g=!1,y=+localStorage.getItem("smsTimer")||0,b=Date.now()/1e3-y,v=60-Math.floor(b);const E={numeric:/^[0-9]{0,6}$/};var w,T;({withLocale:w,translations:T}={withLocale:"en",translations:{}}),ie.subscribe(e=>{null==e&&(K.set(T),ie.set(w))}),Object.keys(wn).forEach(e=>{En(e,wn[e])});const _=()=>{0<v?r(4,v--,v):(clearInterval(o),r(3,o=!1),r(4,v=60))},S=()=>{b<60&&r(3,o=setInterval(()=>{_()},1e3))},B=e=>{E.numeric.test(e.key)||8===e.keyCode||9===e.keyCode||46===e.keyCode||e.preventDefault()};return se(()=>{var e;c&&h||(e=JSON.parse(localStorage.getItem("playerData")),r(10,c=e.playerid),r(11,h=e.number)),S()}),e.$$set=e=>{"endpoint"in e&&r(12,a=e.endpoint),"tokenid"in e&&r(9,l=e.tokenid),"playerid"in e&&r(10,c=e.playerid),"smstemplate"in e&&r(13,u=e.smstemplate),"number"in e&&r(11,h=e.number),"clientstyling"in e&&r(14,p=e.clientstyling),"clientstylingurl"in e&&r(15,d=e.clientstylingurl),"translationurl"in e&&r(16,f=e.translationurl)},e.$$.update=()=>{if(e.$$.dirty,16385&e.$$.dirty&&p&&s){let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)}if(32769&e.$$.dirty&&d&&s){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}65536&e.$$.dirty&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{En(e,t[e])})}).catch(e=>{console.log(e)})},[s,i,m,o,v,n,async()=>{try{if(!(await fetch(`${a}/player/${c}/activateSMS?tokenId=${l}&validationCode=`+i,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),r(2,m=!1),new Error("Could not activate user");r(2,m=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href)}catch(e){console.log(e)}},async()=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),S();try{const e=await fetch(a+"/player/sms/token",{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:c,messageTemplate:u,destination:h})}),t=await e.json();if(!e.ok)throw g=!0,new Error("Failed to fetch");r(9,l=t.id),g=!1,_()}catch(e){g=!0,console.error(e)}},B,l,c,h,a,u,p,d,f,function(){i=this.value,r(1,i)},e=>B(e),function(e){ae[e?"unshift":"push"](()=>{s=e,r(0,s)})}]}function Cn(){"undefined"!=typeof window&&window.cstmNativeBridge&&window.cstmNativeBridge.call}customElements.get("general-player-sms-verification-form")||customElements.define("general-player-sms-verification-form",class extends ce{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px}.Button{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000)}</style>',le(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Hn,Pn,P,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,clientstyling:14,clientstylingurl:15,translationurl:16},null),e&&(e.target&&q(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["endpoint","tokenid","playerid","smstemplate","number","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),g()}get tokenid(){return this.$$.ctx[9]}set tokenid(e){this.$$set({tokenid:e}),g()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),g()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(e){this.$$set({smstemplate:e}),g()}get number(){return this.$$.ctx[11]}set number(e){this.$$set({number:e}),g()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),g()}}),window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var r,n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t)return r=window.cstmNativeBridge.eventListeners[n],window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],r&&r.apply(this,arguments),t.apply(this,arguments)},!0;console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t,r=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof r?(t=Array.prototype.slice.call(arguments,1),r.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var In=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},Ln=function(e,...t){try{return Cn(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},On=function(e,t){try{return Cn(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Fn(e,t){Qr(e,t)}const Nn={en:{loginForm:{loginTitle:"Welcome",loginSubtitle:"Don't have an account yet?",loginSubtitleRegister:"Register now",loginUsername:"Username or Email",loginUsernameError:"Name must be at least 4 characters long and contain no special characters. Email should contain '@' and a 2-3 letter long domain.",loginPassword:"Password",loginPasswordError:"Password must be 8-20 characters long and contain at least 1 uppercase letter, 1 number and 1 special character.",loginSimplePasswordError:"Password must be 8-20 characters long.",loginButton:"Login",loginForgotPassword:"I forgot my password"}},zh:{loginForm:{loginTitle:"歡迎",loginSubtitle:"還沒有帳戶?",loginSubtitleRegister:"現在註冊",loginUsername:"用戶名或電子郵件",loginUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。 電子郵件應包含“@”和 2-3 個字母長的域。",loginPassword:"密碼",loginPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",loginSimplePasswordError:"密码长度必须为 8-20 个字符。",loginButton:"登入",loginForgotPassword:"我忘記了我的密碼"}},fr:{loginForm:{loginTitle:"Vous êtes les bienvenus",loginSubtitle:"Vous n'avez pas encore de compte?",loginSubtitleRegister:"Inscrivez-vous maintenant",loginUsername:"Nom d'utilisateur ou l'adresse mail",loginUsernameError:'Le nom doit comporter au moins 2 caratères et ne pas contenir de caractères spéciaux, l\'adresse mail doit contenir "@" et un domaine de 2-3 lettres.',loginPassword:"Mot de passe",loginPasswordError:"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.",loginSimplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",loginButton:"Se connecter ",loginForgotPassword:"J'ai oublié mon mot de passe"}},tr:{loginForm:{loginTitle:"Hoş geldin",loginSubtitle:"Henüz bir hesabınız yok mu?",loginSubtitleRegister:"Şimdi üye Ol",loginUsername:"Kullanıcı adı ya da email",loginUsernameError:"Ad en az 4 karakter uzunluğunda olmalı ve özel karakter içermemelidir. E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",loginPassword:"Parola",loginPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",loginSimplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalıdır.",loginButton:"Giriş yapmak",loginForgotPassword:"I forgot my password"}},ro:{loginForm:{loginTitle:"Bine ai venit",loginSubtitle:"Nu ai cont?",loginSubtitleRegister:"Inregistreaza-te acum",loginUsername:"Utilizator sau Email",loginUsernameError:"Utilizatorul trebuie sa aiba minim 4 litere si sa nu contina caractere speciale. Email-ul trebuie sa contina '@' si domeniul sa aiba 2-3 litere lungime.",loginPassword:"Parola",loginPasswordError:"Parola trebuie sa aiba o lungime de 8-20 de caractere, sa contina cel putin o litera mare, o cifra si un caracter special.",loginSimplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",loginButton:"Autentificare",loginForgotPassword:"Mi-am uitat parola"}},es:{loginForm:{loginTitle:"Bienvenido",loginSubtitle:"Aún no esta registrado?",loginSubtitleRegister:"Regístrate",loginUsername:"Usuario o Email",loginUsernameError:"El nombre de Usuario debe tener al menos 4 caracteres y no contener caracteres especiales. El Email debe contener '@' y un dominio de 2 a 3 letras.",loginPassword:"Contraseña",loginPasswordError:"La Contraseña debe tener entre 8 a 20 caracteres y contener almenos una letra mayúscula",loginSimplePasswordError:"La Contraseña debe tener entre 8 a 20 caracteres",loginButton:"Iniciar sesión",loginForgotPassword:"Olvide mi contraseña"}},pt:{loginForm:{loginTitle:"Bem-vindo",loginSubtitle:"Não tem uma conta ainda?",loginSubtitleRegister:"Registrar agora",loginUsername:"Nome de usuário ou email",loginUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais. O e-mail deve conter '@' e um domínio de 2 a 3 letras.",loginPassword:"Senha",loginPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",loginSimplePasswordError:"A senha deve ter de 8 a 20 caracteres.",loginButton:"Entrar",loginForgotPassword:"Esqueci a minha senha"}}},xn=X["document"];function Mn(e){let r,n;return{c(){I((r=t("script")).src,n="//www.google.com/recaptcha/api.js?render="+e[2])||te(r,"src",n),r.async=!0,r.defer=!0},m(e,t){q(e,r,t)},p(e,t){4&t[0]&&!I(r.src,n="//www.google.com/recaptcha/api.js?render="+e[2])&&te(r,"src",n)},d(e){e&&W(r)}}}function Rn(e){let r,n,i,o,s;function a(e){return e[21]?Dn:kn}let l=a(e),c=l(e),u=!e[10]&&Yn(e);return{c(){r=t("div"),n=t("div"),c.c(),i=Q(),u&&u.c(),te(n,"class","FormLeftSide"),te(n,"part","FormLeftSide"),te(r,"class",o="FormContainer "+(e[10]?"FormMobileContainer":"")),te(r,"part",s="FormContainer "+(e[10]?"FormMobileContainer":""))},m(e,t){q(e,r,t),Y(r,n),c.m(n,null),Y(r,i),u&&u.m(r,null)},p(e,t){l===(l=a(e))&&c?c.p(e,t):(c.d(1),(c=l(e))&&(c.c(),c.m(n,null))),e[10]?u&&(u.d(1),u=null):u?u.p(e,t):((u=Yn(e)).c(),u.m(r,null)),1024&t[0]&&o!==(o="FormContainer "+(e[10]?"FormMobileContainer":""))&&te(r,"class",o),1024&t[0]&&s!==(s="FormContainer "+(e[10]?"FormMobileContainer":""))&&te(r,"part",s)},d(e){e&&W(r),c.d(),u&&u.d()}}}function Un(e){let r;return{c(){(r=t("div")).innerHTML='<div class="ModalLoader" part="ModalLoader"></div>',te(r,"class","ModalLoaderWrapper"),te(r,"part","ModalLoaderWrapper")},m(e,t){q(e,r,t)},p:x,d(e){e&&W(r)}}}function kn(r){let n,i,o,s,a,l,c,u,h,p,d,f,m,g=r[22]("loginForm.loginTitle")+"",y=r[22]("loginForm.loginSubtitle")+"",b=r[22]("loginForm.loginSubtitleRegister")+"";function v(e){return e[20]?Gn:$n}let E=v(r),w=E(r);return{c(){n=t("div"),i=t("h4"),o=J(g),s=Q(),a=t("p"),l=J(y),c=Q(),u=t("span"),h=J(b),p=Q(),w.c(),d=O(),te(i,"class","FormHeaderTitle"),te(i,"part","FormHeaderTitle"),te(u,"class","FormRegisterCallToAction"),te(a,"class","FormHeaderSubtitle"),te(a,"part","FormHeaderSubtitle"),te(n,"class","FormHeader"),te(n,"part","FormHeader")},m(e,t){q(e,n,t),Y(n,i),Y(i,o),Y(n,s),Y(n,a),Y(a,l),Y(a,c),Y(a,u),Y(u,h),q(e,p,t),w.m(e,t),q(e,d,t),f||(m=ee(u,"click",r[33]),f=!0)},p(e,t){4194304&t[0]&&g!==(g=e[22]("loginForm.loginTitle")+"")&&re(o,g),4194304&t[0]&&y!==(y=e[22]("loginForm.loginSubtitle")+"")&&re(l,y),4194304&t[0]&&b!==(b=e[22]("loginForm.loginSubtitleRegister")+"")&&re(h,b),E===(E=v(e))&&w?w.p(e,t):(w.d(1),(w=E(e))&&(w.c(),w.m(d.parentNode,d)))},d(e){e&&W(n),e&&W(p),w.d(e),e&&W(d),f=!1,m()}}}function Dn(e){let r;return{c(){n(r=t("general-player-sms-verification-form"),"endpoint",e[0]),n(r,"number",e[9]),n(r,"clientstyling",e[4]),n(r,"clientstylingurl",e[5]),n(r,"playerid",e[7]),n(r,"tokenid",e[8])},m(e,t){q(e,r,t)},p(e,t){1&t[0]&&n(r,"endpoint",e[0]),512&t[0]&&n(r,"number",e[9]),16&t[0]&&n(r,"clientstyling",e[4]),32&t[0]&&n(r,"clientstylingurl",e[5]),128&t[0]&&n(r,"playerid",e[7]),256&t[0]&&n(r,"tokenid",e[8])},d(e){e&&W(r)}}}function $n(r){let n,i,o,s,a,l,c,U,u,k,h,p,D,d,f,m,$,g,G,y,j,b,v,E,w,V,T,_,S,z,B,A,P,X,H=r[22]("loginForm.loginUsername")+"",C=r[22]("loginForm.loginPassword")+"",I=r[22]("loginForm.loginButton")+"",L=r[22]("loginForm.loginForgotPassword")+"",O=r[13]&&jn(r);function K(e){return e[18]?zn:Vn}let F=K(r),N=F(r),x=r[14]&&"true"!==r[3]&&Xn(r),M=r[14]&&"true"===r[3]&&Kn(r),R=r[15]&&Zn(r);return{c(){n=t("div"),i=t("form"),o=t("div"),s=t("label"),a=J(H),l=J(":"),(c=t("span")).textContent="*",U=Q(),u=t("input"),k=Q(),O&&O.c(),D=Q(),d=t("div"),f=t("label"),m=J(C),$=J(":"),(g=t("span")).textContent="*",G=Q(),y=t("input"),j=Q(),N.c(),b=Q(),x&&x.c(),v=Q(),M&&M.c(),V=Q(),R&&R.c(),T=Q(),_=t("button"),S=J(I),z=Q(),B=t("button"),A=J(L),te(c,"class","FormRequired"),te(c,"part","FormRequired"),te(s,"for","username"),te(u,"type","text"),te(u,"id","email"),te(u,"name","email"),te(u,"autocomplete","username email"),u.required=!0,te(o,"class",h="UserContainer "+(r[13]?"InvalidField":"")),te(o,"part",p="UserContainer "+(r[13]?"InvalidField":"")),te(g,"class","FormRequired"),te(g,"part","FormRequired"),te(f,"for","current-password"),te(y,"type","password"),te(y,"name","current-password"),te(y,"id","current-password"),te(y,"autocomplete","current-password"),te(y,"aria-describedby","password-constraints"),y.required=!0,te(d,"class",E="PasswordContainer "+(r[14]?"InvalidField":"")),te(d,"part",w="PasswordContainer "+(r[14]?"InvalidField":"")),te(_,"class","SignInButton"),te(_,"part","SignInButton"),_.disabled=r[19],te(_,"id","signin-button"),te(B,"class","ForgotPasswordButton"),te(B,"part","ForgotPasswordButton"),te(i,"id","signin"),te(n,"class","FormContent"),te(n,"part","FormContent")},m(e,t){q(e,n,t),Y(n,i),Y(i,o),Y(o,s),Y(s,a),Y(s,l),Y(s,c),Y(o,U),Y(o,u),ne(u,r[11]),Y(o,k),O&&O.m(o,null),Y(i,D),Y(i,d),Y(d,f),Y(f,m),Y(f,$),Y(f,g),Y(d,G),Y(d,y),ne(y,r[12]),r[36](y),Y(d,j),N.m(d,null),Y(d,b),x&&x.m(d,null),Y(d,v),M&&M.m(d,null),Y(i,V),R&&R.m(i,null),Y(i,T),Y(i,_),Y(_,S),Y(i,z),Y(i,B),Y(B,A),P||(X=[ee(u,"input",r[34]),ee(u,"input",r[28]),ee(y,"input",r[35]),ee(y,"input",r[29]),ee(_,"click",r[39]),ee(B,"click",r[40])],P=!0)},p(e,t){4194304&t[0]&&H!==(H=e[22]("loginForm.loginUsername")+"")&&re(a,H),2048&t[0]&&u.value!==e[11]&&ne(u,e[11]),e[13]?O?O.p(e,t):((O=jn(e)).c(),O.m(o,null)):O&&(O.d(1),O=null),8192&t[0]&&h!==(h="UserContainer "+(e[13]?"InvalidField":""))&&te(o,"class",h),8192&t[0]&&p!==(p="UserContainer "+(e[13]?"InvalidField":""))&&te(o,"part",p),4194304&t[0]&&C!==(C=e[22]("loginForm.loginPassword")+"")&&re(m,C),4096&t[0]&&y.value!==e[12]&&ne(y,e[12]),F===(F=K(e))&&N?N.p(e,t):(N.d(1),(N=F(e))&&(N.c(),N.m(d,b))),e[14]&&"true"!==e[3]?x?x.p(e,t):((x=Xn(e)).c(),x.m(d,v)):x&&(x.d(1),x=null),e[14]&&"true"===e[3]?M?M.p(e,t):((M=Kn(e)).c(),M.m(d,null)):M&&(M.d(1),M=null),16384&t[0]&&E!==(E="PasswordContainer "+(e[14]?"InvalidField":""))&&te(d,"class",E),16384&t[0]&&w!==(w="PasswordContainer "+(e[14]?"InvalidField":""))&&te(d,"part",w),e[15]?R?R.p(e,t):((R=Zn(e)).c(),R.m(i,T)):R&&(R.d(1),R=null),4194304&t[0]&&I!==(I=e[22]("loginForm.loginButton")+"")&&re(S,I),524288&t[0]&&(_.disabled=e[19]),4194304&t[0]&&L!==(L=e[22]("loginForm.loginForgotPassword")+"")&&re(A,L)},d(e){e&&W(n),O&&O.d(),r[36](null),N.d(),x&&x.d(),M&&M.d(),R&&R.d(),P=!1,Z(X)}}}function Gn(e){let r;return{c(){(r=t("p")).textContent="Waiting for credentials"},m(e,t){q(e,r,t)},p:x,d(e){e&&W(r)}}}function jn(e){let r,n,i=e[22]("loginForm.loginUsernameError")+"";return{c(){r=t("p"),n=J(i),te(r,"class","InvalidInput"),te(r,"part","InvalidInput")},m(e,t){q(e,r,t),Y(r,n)},p(e,t){4194304&t[0]&&i!==(i=e[22]("loginForm.loginUsernameError")+"")&&re(n,i)},d(e){e&&W(r)}}}function Vn(r){let n,i,o,s,a,l,c,u,h;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=J(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),c=e("circle"),te(l,"class","a"),te(l,"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"),te(l,"transform","translate(0)"),te(c,"class","a"),te(c,"cx","2.779"),te(c,"cy","2.779"),te(c,"r","2.779"),te(c,"transform","translate(20.827 30.303)"),te(a,"transform","translate(-14.185 -27.832)"),te(n,"class","TogglePasswordVisibility"),te(n,"part","TogglePasswordVisibility"),te(n,"xmlns","http://www.w3.org/2000/svg"),te(n,"width","18.843"),te(n,"height","10.5"),te(n,"viewBox","0 0 18.843 10.5")},m(e,t){q(e,n,t),Y(n,i),Y(i,o),Y(o,s),Y(n,a),Y(a,l),Y(a,c),u||(h=ee(n,"click",r[38]),u=!0)},p:x,d(e){e&&W(n),u=!1,h()}}}function zn(r){let n,i,o,s,a,l,c,u,h,p,d,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=J(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),h=e("path"),p=e("g"),d=e("path"),f=e("path"),m=e("rect"),te(l,"class","a"),te(l,"cx","0.05"),te(l,"cy","0.05"),te(l,"r","0.05"),te(l,"transform","translate(121.017 31.148)"),te(u,"class","a"),te(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),te(u,"transform","translate(-142.164 -39.123)"),te(h,"class","a"),te(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),te(h,"transform","translate(-136.413 -42.068)"),te(c,"transform","translate(117.499 27.37)"),te(d,"class","a"),te(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"),te(d,"transform","translate(-110.856 -33.157)"),te(f,"class","a"),te(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"),te(f,"transform","translate(-130.743 -29.617)"),te(p,"transform","translate(110.856 24.899)"),te(m,"class","a"),te(m,"width","0.972"),te(m,"height","15.861"),te(m,"rx","0.486"),te(m,"transform","translate(114.827 23.858) rotate(-39.315)"),te(a,"transform","translate(-110.856 -23.242)"),te(n,"class","TogglePasswordVisibility"),te(n,"part","TogglePasswordVisibility"),te(n,"xmlns","http://www.w3.org/2000/svg"),te(n,"width","18.844"),te(n,"height","12.887"),te(n,"viewBox","0 0 18.844 12.887")},m(e,t){q(e,n,t),Y(n,i),Y(i,o),Y(o,s),Y(n,a),Y(a,l),Y(a,c),Y(c,u),Y(c,h),Y(a,p),Y(p,d),Y(p,f),Y(a,m),g||(y=ee(n,"click",r[37]),g=!0)},p:x,d(e){e&&W(n),g=!1,y()}}}function Xn(e){let r,n,i=e[22]("loginForm.loginPasswordError")+"";return{c(){r=t("p"),n=J(i),te(r,"class","InvalidInput"),te(r,"part","InvalidInput")},m(e,t){q(e,r,t),Y(r,n)},p(e,t){4194304&t[0]&&i!==(i=e[22]("loginForm.loginPasswordError")+"")&&re(n,i)},d(e){e&&W(r)}}}function Kn(e){let r,n,i=e[22]("loginForm.loginSimplePasswordError")+"";return{c(){r=t("p"),n=J(i),te(r,"class","InvalidInput"),te(r,"part","InvalidInput")},m(e,t){q(e,r,t),Y(r,n)},p(e,t){4194304&t[0]&&i!==(i=e[22]("loginForm.loginSimplePasswordError")+"")&&re(n,i)},d(e){e&&W(r)}}}function Zn(e){let r,n;return{c(){r=t("p"),n=J(e[15]),te(r,"class","ErrorMessage"),te(r,"part","ErrorMessage")},m(e,t){q(e,r,t),Y(r,n)},p(e,t){32768&t[0]&&re(n,e[15])},d(e){e&&W(r)}}}function Yn(e){let r;return{c(){te(r=t("div"),"class","FormRightSide"),te(r,"part","FormRightSide"),F(r,"background-image","url('"+e[1]+"')")},m(e,t){q(e,r,t)},p(e,t){2&t[0]&&F(r,"background-image","url('"+e[1]+"')")},d(e){e&&W(r)}}}function qn(r){let n,i,o,s,a,l=r[2]&&Mn(r);function c(e){return e[16]?Un:Rn}let u=c(r),h=u(r);return{c(){l&&l.c(),n=O(),i=Q(),o=t("div"),s=Q(),a=t("div"),h.c(),this.c=x,te(o,"class","g-recaptcha"),te(o,"data-sitekey",r[2]),te(a,"class","PlayerLoginFormWrapper")},m(e,t){l&&l.m(xn.head,null),Y(xn.head,n),q(e,i,t),q(e,o,t),q(e,s,t),q(e,a,t),h.m(a,null),r[41](a)},p(e,t){e[2]?l?l.p(e,t):((l=Mn(e)).c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null),4&t[0]&&te(o,"data-sitekey",e[2]),u===(u=c(e))&&h?h.p(e,t):(h.d(1),(h=u(e))&&(h.c(),h.m(a,null)))},i:x,o:x,d(e){l&&l.d(e),W(n),e&&W(i),e&&W(o),e&&W(s),e&&W(a),h.d(),r[41](null)}}}function Wn(t,e,i){let r;oe(t,vn,e=>i(22,r=e));let n,o,s,a,l,{endpoint:c=""}=e,{imagedesktop:u=""}=e,{captchakey:h=""}=e,{lang:p=""}=e,{smsverification:d="false"}=e,{simplepasswordvalidation:f="false"}=e,{clientstyling:m=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,b=!1,v=!1,E=window.navigator.userAgent,w="",T="",_={username:"",password:""},S=!1,B=!1,A="",P=!1,H=!1,C=!0,I,L=!1,M=+localStorage.getItem("smsTimer")||0,R=Date.now()/1e3-M,O="true"==localStorage.getItem("smsValidation")&&R<60,F={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};var N,U;({withLocale:N,translations:U}={withLocale:"en",translations:{}}),ie.subscribe(e=>{null==e&&(K.set(U),ie.set(N))}),Object.keys(Nn).forEach(e=>{Fn(e,Nn[e])});const k=()=>{i(18,H=!0),$()},D=()=>{i(18,H=!1),$()},$=()=>{i(17,a.type=H?"text":"password",a)},G=()=>{window.postMessage({type:"ToRegister"},window.location.href)},j=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)},x=e=>{null!=e&&e.preventDefault(),new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(h,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{V(w)&&z(T)&&(_={username:w,password:T,token:e},i(16,P=!0),window.postMessage({type:"SubmitLoginForm",loginData:_},window.location.href))})},V=e=>!!((F.user.test(e)||F.email.test(e))&&e.length<=100),z=e=>!!F.password.test(e),X=e=>{if(e.data)switch(e.data.type){case"ModalLoader":case"UserSessionID":i(16,P=!1);break;case"HasError":i(15,A=e.data.error),i(16,P=!1);break;case"SmsVerification":i(7,n=e.data.userid),i(9,s=e.data.number),i(21,O=e.data.startSmsValidation),(async(e,t)=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3)));try{const r=await fetch(`${c}/player/sms/token`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:t,messageTemplate:"Please use this code {0} to activate your account",destination:e})}),n=await r.json();if(!r.ok)throw b=!0,new Error("Failed to fetch");i(8,o=n.id);n.maxValidationAttempts;b=!1}catch(e){b=!0,console.error(e)}})(s,n),localStorage.setItem("smsValidation","true"),localStorage.setItem("playerData",JSON.stringify({playerid:n,number:s}));break;case"SmsHasBeenValidated":x()}};return se(()=>{return window.addEventListener("message",X,!1),window.postMessage({type:"LoginRegisterModalActive"},window.location.href),I=!!In(E),i(20,L=I),I&&(On("GET_CREDENTIALS",e=>{var t;L&&(e?({username:e,password:t}=e,i(11,w=e),i(12,T=t),x()):i(20,L=!1))}),Ln("GET_CREDENTIALS")||i(20,L=!1)),i(10,v=!!((e=E).toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),()=>{window.removeEventListener("message",X)};var e}),t.$$set=e=>{"endpoint"in e&&i(0,c=e.endpoint),"imagedesktop"in e&&i(1,u=e.imagedesktop),"captchakey"in e&&i(2,h=e.captchakey),"lang"in e&&i(30,p=e.lang),"smsverification"in e&&i(31,d=e.smsverification),"simplepasswordvalidation"in e&&i(3,f=e.simplepasswordvalidation),"clientstyling"in e&&i(4,m=e.clientstyling),"clientstylingurl"in e&&i(5,g=e.clientstylingurl),"translationurl"in e&&i(32,y=e.translationurl)},t.$$.update=()=>{if(1073741825&t.$$.dirty[0]&&c&&p&&(e=p,ie.set(e)),8&t.$$.dirty[0]&&f&&"true"==f&&(F.password=/^(?!.* ).{8,20}$/),80&t.$$.dirty[0]&&m&&l){let e=document.createElement("style");e.innerHTML=m,l.appendChild(e)}if(96&t.$$.dirty[0]&&g&&l){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{l.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2&t.$$.dirty[1]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fn(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,h,f,m,g,l,n,o,s,v,w,T,S,B,A,P,a,H,C,L,O,r,k,D,G,j,x,()=>{i(13,S=!V(w)),i(19,C=!(!S&&!B&&T))},()=>{i(14,B=!z(T)),i(19,C=!(!S&&!B&&w))},p,d,y,()=>G(),function(){w=this.value,i(11,w)},function(){T=this.value,i(12,T)},function(e){ae[e?"unshift":"push"](()=>{a=e,i(17,a)})},()=>D(),()=>k(),e=>x(e),()=>j(),function(e){ae[e?"unshift":"push"](()=>{l=e,i(6,l)})}]}class Jn extends ce{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.PlayerLoginFormWrapper{height:100%}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:var(--emfe-w-color-gray-50, #F9F8F8)}.FormRightSide{background-size:cover;background-position:center;background-repeat:no-repeat}.FormHeaderTitle{color:var(--emfe-w-color-black, #000000);font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.FormHeaderSubtitle{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;font-weight:300;margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserContainer input,.PasswordContainer input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.SignInButton{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.SignInButton[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:14px;font-weight:300;color:var(--emfe-w-color-primary, #D0046C);margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emfe-w-color-error, #FD2839)}.FormMobileContainer{height:100%}.FormMobileContainer .FormLeftSide{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input{max-width:unset}.ModalLoaderWrapper{display:flex;height:100%;align-items:center}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:Loader 1.2s linear infinite}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>',le(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Wn,qn,P,{endpoint:0,imagedesktop:1,captchakey:2,lang:30,smsverification:31,simplepasswordvalidation:3,clientstyling:4,clientstylingurl:5,translationurl:32},null,[-1,-1]),e&&(e.target&&q(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["endpoint","imagedesktop","captchakey","lang","smsverification","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),g()}get imagedesktop(){return this.$$.ctx[1]}set imagedesktop(e){this.$$set({imagedesktop:e}),g()}get captchakey(){return this.$$.ctx[2]}set captchakey(e){this.$$set({captchakey:e}),g()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),g()}get smsverification(){return this.$$.ctx[31]}set smsverification(e){this.$$set({smsverification:e}),g()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[32]}set translationurl(e){this.$$set({translationurl:e}),g()}}return customElements.get("general-player-login-form")||customElements.define("general-player-login-form",Jn),Jn});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(_){"use strict";(X=_)&&"object"==typeof X&&0 in X;function x(){}function S(e){return e()}function B(){return Object.create(null)}function q(e){e.forEach(S)}function A(e){return"function"==typeof e}function P(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let H,C;function I(e,t){return(H=H||document.createElement("a")).href=t,e===H.href}function L(e,...t){if(null==e)return x;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function se(e,t,r){e.$$.on_destroy.push(L(t,r))}function W(e,t){e.appendChild(t)}function J(e,t,r){e.insertBefore(t,r||null)}function Q(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ee(e){return document.createTextNode(e)}function te(){return ee(" ")}function O(){return ee("")}function re(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function ne(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function n(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:ne(e,t,r)}function ie(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function oe(e,t){e.value=null==t?"":t}function F(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function N(e){const t={};for(const r of e)t[r.name]=r.value;return t}function M(e){C=e}function ae(e){!function(){if(C)return C;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const R=[],le=[],U=[],k=[],$=Promise.resolve();let D=!1;function G(e){U.push(e)}const j=new Set;let V=0;function g(){const e=C;do{for(;V<R.length;){const e=R[V];V++,M(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),q(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(G))}for(M(null),R.length=0,V=0;le.length;)le.pop()();for(let e=0;e<U.length;e+=1){const n=U[e];j.has(n)||(j.add(n),n())}}while(U.length=0,R.length);for(;k.length;)k.pop()();D=!1,j.clear(),M(e)}const z=new Set;var X="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function K(n,e,t,r,i,o,s,a=[-1]){var l=C;M(n);const c=n.$$={fragment:null,ctx:null,props:o,update:x,not_equal:i,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:B(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(c.root);let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(R.push(e),D||(D=!0,$.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,q(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){o=e.target;const n=Array.from(o.childNodes);c.fragment&&c.fragment.l(n),n.forEach(Q)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(z.delete(a),a.i(void 0));{var h=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:f,after_update:m}=h.$$;p&&p.m(s,t),r||G(()=>{var e=d.map(S).filter(A);f?f.push(...e):q(e),h.$$.on_mount=[]}),m.forEach(G)}g()}M(l)}let ce;"function"==typeof HTMLElement&&(ce=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(A);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(q(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=x}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ue,he,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,pe="URLSearchParams"in a,de="Symbol"in a&&"iterator"in Symbol,fe="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in a,ge="ArrayBuffer"in a;function ye(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function be(e){return e="string"!=typeof e?String(e):e}function ve(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Ee(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function we(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Te(e){var t=new FileReader,r=we(t);return t.readAsArrayBuffer(e),r}function _e(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:fe&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:pe&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ge&&fe&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=_e(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ge&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=_e(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):pe&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fe&&(this.blob=function(){var e=Ee(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Ee(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Te)}),this.text=function(){var e,t,r=Ee(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=we(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},me&&(this.formData=function(){return this.text().then(Ae)}),this.json=function(){return this.text().then(JSON.parse)},this}ge&&(ue=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<ue.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=ye(e),t=be(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[ye(e)]},l.prototype.get=function(e){return e=ye(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(ye(e))},l.prototype.set=function(e,t){this.map[ye(e)]=be(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ve(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ve(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ve(r)},de&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Be=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof c){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<Be.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ae(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}c.prototype.clone=function(){return new c(this,{body:this._bodyInit})},Se.call(c.prototype),Se.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:0,statusText:""});return e.type="error",e};var Pe=[301,302,303,307,308],He=(u.redirect=function(e,t){if(-1===Pe.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},a.DOMException);try{new He}catch(_){(He=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),He.prototype.constructor=He}function Ce(n,s){return new Promise(function(i,e){var t=new c(n,s);if(t.signal&&t.signal.aborted)return e(new He("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new u(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new He("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(fe?o.responseType="blob":ge&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,be(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}Ce.polyfill=!0,a.fetch||(a.fetch=Ce,a.Headers=l,a.Request=c,a.Response=u),self.fetch.bind(self);var Ie=function(e,t){return(Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Oe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ne(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function xe(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Me=xe(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Re(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Oe(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(e){i=e instanceof Me?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Oe(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{De(u)}catch(e){i=null!=i?i:[],e instanceof Me?i=Ne(Ne([],Fe(i)),Fe(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Me(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)De(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((o=new r).closed=!0,o);var Ue=r,ke=Ue.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function $e(e){return e instanceof Ue||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function De(e){h(e)?e():e.unsubscribe()}var Ge=void 0,je=!1,Ve=!1,ze={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=ze.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Fe(r))):setTimeout.apply(void 0,Ne([e,t],Fe(r)))},clearTimeout:function(e){var t=ze.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Xe(){}var Ke=null;function Ze(e){if(je){var t=!Ke;if(t&&(Ke={errorThrown:!1,error:null}),e(),t){var t=Ke,r=t.errorThrown,t=t.error;if(Ke=null,r)throw t}}else e()}Le(i,Ye=Ue),i.create=function(e,t,r){return new tt(e,t,r)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ye.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Ye,qe=i,We=Function.prototype.bind;function i(e){var t=Ye.call(this)||this;return t.isStopped=!1,e?$e(t.destination=e)&&e.add(t):t.destination=ot,t}function Je(e,t){return We.call(e,t)}nt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){it(e)}},nt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){it(e)}else it(e)},nt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){it(e)}};var Qe,et=nt,tt=(Le(rt,Qe=qe),rt);function rt(e,t,r){var n=Qe.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Ve?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&Je(e.next,t),error:e.error&&Je(e.error,t),complete:e.complete&&Je(e.complete,t)}):e;return n.destination=new et(r),n}function nt(e){this.partialObserver=e}function it(e){var t=e;ze.setTimeout(function(){throw t})}var ot={closed:!0,next:Xe,error:function(e){throw e},complete:Xe},o="function"==typeof Symbol&&Symbol.observable||"@@observable";function st(e){return e}s.prototype.lift=function(e){var t=new s;return t.source=this,t.operator=e,t},s.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof qe||n&&h(n.next)&&h(n.error)&&h(n.complete)&&$e(n)?e:new tt(e,t,r);return Ze(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(n,e){var i=this;return new(e=lt(e))(function(e,t){var r=new tt({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},s.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},s.prototype[o]=function(){return this},s.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?st:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},s.prototype.toPromise=function(e){var n=this;return new(e=lt(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},s.create=function(e){return new s(e)};var at=s;function s(e){e&&(this._subscribe=e)}function lt(e){return null!=(e=null!=e?e:Ge)?e:Promise}var ct,ut,ht,pt=xe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=(Le(p,ht=at),p.prototype.lift=function(e){var t=new dt(this,this);return t.operator=e,t},p.prototype._throwIfClosed=function(){if(this.closed)throw new pt},p.prototype.next=function(i){var o=this;Ze(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Oe(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},p.prototype.error=function(t){var r=this;Ze(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},p.prototype.complete=function(){var t=this;Ze(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},p.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(p.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),p.prototype._trySubscribe=function(e){return this._throwIfClosed(),ht.prototype._trySubscribe.call(this,e)},p.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},p.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?ke:(this.currentObservers=null,i.push(e),new Ue(function(){t.currentObservers=null,Re(i,e)}))},p.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},p.prototype.asObservable=function(){var e=new at;return e.source=this,e},p.create=function(e,t){return new dt(e,t)},p),dt=(Le(yt,ut=o),yt.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},yt.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},yt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},yt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ke},yt),ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0},mt=(Le(gt,ct=o),gt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),ct.prototype.next.call(this,e)},gt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},gt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},gt);function gt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ft);var n=ct.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function yt(e,t){var r=ut.call(this)||this;return r.destination=e,r.source=t,r}function p(){var e=ht.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],vt={};const Et=[];function wt(n,i=x){let o;const s=new Set;function a(e){if(P(n,e)&&(n=e,o)){const e=!Et.length;for(const e of s)e[1](),Et.push(e,n);if(e){for(let e=0;e<Et.length;e+=2)Et[e][0](Et[e+1]);Et.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=x){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||x),e(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function Tt(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:wt(t,t=>{let r=!1;const n=[];let i=0,o=x;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=A(e)?e:x)},e=c.map((e,t)=>L(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){q(e),o()}}).subscribe}}function _t(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===St));var t}var St="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Bt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?It(Array.isArray(e)?[]:{},e,t):e}function At(e,t,r){return e.concat(t).map(function(e){return Bt(e,r)})}function Pt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Ht(e,t){try{return t in e}catch(e){return!1}}function Ct(n,i,o){var s={};return o.isMergeableObject(n)&&Pt(n).forEach(function(e){s[e]=Bt(n[e],o)}),Pt(i).forEach(function(t){var e,r;(!Ht(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Ht(n,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return It;e=e.customMerge(t);return"function"==typeof e?e:It}(o)(n[t],i[t],o):s[t]=Bt(i[t],o))}),s}function It(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||At,r.isMergeableObject=r.isMergeableObject||_t,r.cloneUnlessOtherwiseSpecified=Bt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Ct(e,t,r):Bt(t,r)}It.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return It(e,t,r)},{});throw new Error("first argument should be an array")};var Lt=It,Ot=function(e,t){return(Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ft(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m,y,Nt,b=function(){return(b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function xt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Mt(e){return e.type===y.literal}function Rt(e){return e.type===y.number}function Ut(e){return e.type===y.date}function kt(e){return e.type===y.time}function $t(e){return e.type===y.select}function Dt(e){return e.type===y.plural}function Gt(e){return e.type===y.tag}function jt(e){return e&&"object"==typeof e&&e.type===Nt.number}function Vt(e){return e&&"object"==typeof e&&e.type===Nt.dateTime}(o=m=m||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=y=y||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=Nt=Nt||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,zt=/(?:[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;var Xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Yt=/(\*)(0+)|(#+)(0+)|(0+)/g,qt=/^(0+)$/;function Wt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Zt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Jt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Qt(e){return Jt(e)||{}}function er(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=b(b(b({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return b(b({},e),Qt(t))},{}));continue;case"engineering":s=b(b(b({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return b(b({},e),Qt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Yt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Kt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Kt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=b(b({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=b(b({},s),Wt(o)))}else Zt.test(i.stem)?s=b(b({},s),Wt(i.stem)):((o=Jt(i.stem))&&(s=b(b({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!qt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=b(b({},s),n)))}return s}var tr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var rr=new RegExp("^".concat(o.source,"*")),nr=new RegExp("".concat(o.source,"*$"));function v(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,ir=!!String.fromCodePoint,or=!!Object.fromEntries,sr=!!String.prototype.codePointAt,ar=!!String.prototype.trimStart,lr=!!String.prototype.trimEnd,cr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ur=!0;try{ur="a"===(null==(Lr=vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Lr[0])}catch(_){ur=!1}var hr,pr,dr=o?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},fr=ir?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},mr=or?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},gr=sr?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},yr=ar?function(e){return e.trimStart()}:function(e){return e.replace(rr,"")},br=lr?function(e){return e.trimEnd()}:function(e){return e.replace(nr,"")};function vr(e,t){return new RegExp(e,t)}pr=ur?(hr=vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return hr.lastIndex=t,null!=(t=hr.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=gr(e,t);if(void 0===i||Tr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return fr.apply(void 0,n)};d.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},d.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&wr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},d.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wr(this.char()))return this.error(m.INVALID_TAG,v(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,v(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,v(r,this.clonePosition()))}return this.error(m.INVALID_TAG,v(r,this.clonePosition()))},d.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},d.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=v(r,this.clonePosition());return{val:{type:y.literal,value:n,location:r},err:null}},d.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},d.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return fr.apply(void 0,t)},d.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),fr(r))},d.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,v(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(m.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(m.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},d.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=pr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},d.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,v(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(d=br(f.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:v(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(n)).err)return c;var u=v(n,this.clonePosition());if(l&&dr(null==l?void 0:l.style,"::",0)){var h=yr(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?f:{val:{type:y.number,value:r,location:u,style:f.val},err:null};if(0===h.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,u);var p=h,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(tr[t||""]||tr[r||""]||tr["".concat(r,"-001")]||tr["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale)),{type:Nt.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(zt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}});return{val:{type:"date"===s?y.date:y.time,value:r,location:u,style:d},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:u,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,v(p,b({},p)));this.bumpSpace();var f,d=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),d=this.parseIdentifierIfPossible(),u=f.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((c=this.tryParseArgumentClose(n)).err)return c;h=v(n,this.clonePosition());return"select"===s?{val:{type:y.select,value:r,options:mr(l.val),location:h},err:null}:{val:{type:y.plural,value:r,options:mr(l.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,v(o,a))}},d.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},d.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},d.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Xt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?er(r):{}},err:null}},d.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var h=this.tryParseArgumentClose(u);if(h.err)return h;o.push([a,{value:c.val,location:v(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(m.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},d.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=v(n,this.clonePosition());return i?cr(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},d.prototype.offset=function(){return this.position.offset},d.prototype.isEOF=function(){return this.offset()===this.message.length},d.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},d.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=gr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},d.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},d.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},d.prototype.bumpIf=function(e){if(dr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},d.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},d.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},d.prototype.bumpSpace=function(){for(;!this.isEOF()&&Tr(this.char());)this.bump()},d.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Er=d;function d(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function wr(e){return 97<=e&&e<=122||65<=e&&e<=90}function Tr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function _r(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Er(e,t).parse();if(e.err)throw(r=SyntaxError(m[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,$t(e)||Dt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Rt(e)&&jt(e.style)||(Ut(e)||kt(e))&&Vt(e.style)?delete e.style.location:Gt(e)&&r(e.children)})}(e.val),e.val}function Sr(e,t){var r=t&&t.cache?t.cache:Or,n=t&&t.serializer?t.serializer:Hr;return(t&&t.strategy?t.strategy:function(e,t){return Pr(e,this,1===e.length?Br:Ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Br(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Ar(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Pr(e,t,r,n,i){return r.bind(t,e,n,i)}var Hr=function(){return JSON.stringify(arguments)};function Cr(){this.cache=Object.create(null)}Cr.prototype.get=function(e){return this.cache[e]},Cr.prototype.set=function(e,t){this.cache[e]=t};var Ir,Lr,Or={create:function(){return new Cr}},Fr={variadic:function(e,t){return Pr(e,this,Ar,t.cache.create(),t.serializer)},monadic:function(e,t){return Pr(e,this,Br,t.cache.create(),t.serializer)}};(Lr=Ir=Ir||{}).MISSING_VALUE="MISSING_VALUE",Lr.INVALID_VALUE="INVALID_VALUE",Lr.MISSING_INTL_API="MISSING_INTL_API";Ft(zr,Rr=Error),zr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var E,Nr,xr,Mr,Rr,Ur=zr,kr=(Ft(Vr,Mr=Ur),Vr),$r=(Ft(jr,xr=Ur),jr),Dr=(Ft(Gr,Nr=Ur),Gr);function Gr(e,t){return Nr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Ir.MISSING_VALUE,t)||this}function jr(e,t,r){return xr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Ir.INVALID_VALUE,r)||this}function Vr(e,t,r,n){return Mr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ir.INVALID_VALUE,n)||this}function zr(e,t,r){e=Rr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Xr(e,t,r,n,i,o,s){if(1===e.length&&Mt(e[0]))return[{type:E.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Mt(u))a.push({type:E.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&a.push({type:E.literal,value:r.getNumberFormat(t).format(o)});else{var h=u.value;if(!(i&&h in i))throw new Dr(h,s);h=i[h];if(u.type===y.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?E.literal:E.object,value:h});else if(Ut(u)){var p="string"==typeof u.style?n.date[u.style]:Vt(u.style)?u.style.parsedOptions:void 0;a.push({type:E.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(kt(u))p="string"==typeof u.style?n.time[u.style]:Vt(u.style)?u.style.parsedOptions:n.time.medium,a.push({type:E.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Rt(u))(p="string"==typeof u.style?n.number[u.style]:jt(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:E.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Gt(u)){var d=u.children,f=u.value,m=i[f];if("function"!=typeof m)throw new $r(f,"function",s);f=m(Xr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?E.literal:E.object,value:e}}))}if($t(u)){if(!(g=u.options[h]||u.options.other))throw new kr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Xr(g.value,t,r,n,i))}else if(Dt(u)){if(!(g=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new Ur('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ir.MISSING_INTL_API,s);var m=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new kr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Xr(g.value,t,r,n,i,h-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===E.literal&&t.type===E.literal?r.value+=t.value:e.push(t),e},[])}function Kr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(o=E=E||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(f,"defaultLocale",{get:function(){return f.memoizedDefaultLocale||(f.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),f.memoizedDefaultLocale},enumerable:!1,configurable:!0}),f.memoizedDefaultLocale=null,f.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},f.__parse=_r,f.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"}}};var Zr=f;function f(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=f.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===E.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Xr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=f.resolveLocale(t),"string"==typeof e){if(this.message=e,!f.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=f.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,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=(i=f.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?b(b(b({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=b(b({},r[t]),n[t]||{}),e},{})):r),e},b({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Sr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:Kr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Fr.variadic}),getDateTimeFormat:Sr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:Kr(t.dateTime),strategy:Fr.variadic}),getPluralRules:Sr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,xt([void 0],t,!1)))},{cache:Kr(t.pluralRules),strategy:Fr.variadic})}}const w={},Yr=(e,t,r)=>r&&(t in w||(w[t]={}),e in w[t]||(w[t][e]=r),r),qr=(t,r)=>{if(null!=r){if(r in w&&t in w[r])return w[r][t];var n=pn(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!Jr(e))return null;e=function(e){return Wr[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Yr(t,r,i)}}};let Wr;const Z=wt({});function Jr(e){return e in Wr}function Qr(t,...r){delete w[t],Z.update(e=>(e[t]=Lt.all([e[t]||{},...r]),e))}Tt([Z],([e])=>Object.keys(e)),Z.subscribe(e=>Wr=e);const en={};function tn(e){return en[e]}function rn(e){return null!=e&&pn(e).some(e=>{return null==(e=tn(e))?void 0:e.size})}const nn={};function on(e){if(!rn(e))return e in nn?nn[e]:Promise.resolve();const t=pn(e).map(e=>{var t=tn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return nn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return en[t].delete(r),0===en[t].size&&delete en[t],e().then(e=>e.default||e)}));return r.then(e=>Qr(n,...e))}})).then(()=>{if(rn(e))return on(e);delete nn[e]}),nn[e]}function sn(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const an={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const ln=wt(!1);let cn;const un=wt(null);function hn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function pn(e,t=an.fallbackLocale){e=hn(e);return t?[...new Set([...e,...hn(t)])]:e}function T(){return null!=cn?cn:void 0}un.subscribe(e=>{cn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const Y=Object.assign(Object.assign({},un),{set:t=>{if(t&&function(e){if(null!=e){var t=pn(e);for(let e=0;e<t.length;e++){var r=t[e];if(Jr(r))return r}}}(t)&&rn(t)){var r=an["loadingDelay"];let e;return"undefined"!=typeof window&&null!=T()&&r?e=window.setTimeout(()=>ln.set(!0),r):ln.set(!0),on(t).then(()=>{un.set(t)}).finally(()=>{clearTimeout(e),ln.set(!1)})}return un.set(t)}}),dn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},fn=(e,t)=>{var r=an["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},mn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=fn("number",r)),new Intl.NumberFormat(t,e)}),gn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=fn("date",r):0===Object.keys(e).length&&(e=fn("date","short")),new Intl.DateTimeFormat(t,e)}),yn=dn(e=>{var{locale:t,format:r}=e,e=sn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=fn("time",r):0===Object.keys(e).length&&(e=fn("time","short")),new Intl.DateTimeFormat(t,e)}),bn=dn((e,t=T())=>new Zr(e,t,an.formats,{ignoreTag:an.ignoreTag})),vn=Tt([Y,Z],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=T(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=qr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let c=l;try{c=bn(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function En(e,t){Qr(e,t)}Tt([Y],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=sn(e,["locale"]);return yn(Object.assign({locale:t},e))})(t).format(e)),Tt([Y],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=sn(e,["locale"]);return gn(Object.assign({locale:t},e))})(t).format(e)),Tt([Y],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=sn(e,["locale"]);return mn(Object.assign({locale:t},e))})(t).format(e)),Tt([Y,Z],()=>(e,t=T())=>qr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new mt(t),vt[e]=t,bt.push(e)),vt[e]}};const wn={en:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"}},zh:{smsVerification:{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"}},fr:{smsVerification:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"}},tr:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Activate Account",resend:"Resend"}},ro:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"}},es:{smsVerification:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"}},pt:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"}}};function Tn(e){let r,n=e[5]("smsVerification.errorTitle")+"";return{c(){r=ee(n)},m(e,t){J(e,r,t)},p(e,t){32&t&&n!==(n=e[5]("smsVerification.errorTitle")+"")&&ie(r,n)},d(e){e&&Q(r)}}}function _n(e){let r,n=e[5]("smsVerification.title")+"";return{c(){r=ee(n)},m(e,t){J(e,r,t)},p(e,t){32&t&&n!==(n=e[5]("smsVerification.title")+"")&&ie(r,n)},d(e){e&&Q(r)}}}function Sn(e){let r,n,i=e[5]("smsVerification.smsCodeError")+"";return{c(){r=t("p"),n=ee(i),ne(r,"class","InvalidInput"),ne(r,"part","InvalidInput")},m(e,t){J(e,r,t),W(r,n)},p(e,t){32&t&&i!==(i=e[5]("smsVerification.smsCodeError")+"")&&ie(n,i)},d(e){e&&Q(r)}}}function Bn(e){let r,n,i=e[5]("smsVerification.resendMessage")+"";return{c(){r=t("p"),n=ee(i),ne(r,"class","SmsVerificationResendMessage"),ne(r,"part","SmsVerificationResendMessage")},m(e,t){J(e,r,t),W(r,n)},p(e,t){32&t&&i!==(i=e[5]("smsVerification.resendMessage")+"")&&ie(n,i)},d(e){e&&Q(r)}}}function An(e){let r,n,i,o,s,a=e[4]<10?"0":"";return{c(){r=t("span"),n=ee("(0:"),i=ee(a),o=ee(e[4]),s=ee(")"),ne(r,"class","SmsVerificationResendTimer")},m(e,t){J(e,r,t),W(r,n),W(r,i),W(r,o),W(r,s)},p(e,t){16&t&&a!==(a=e[4]<10?"0":"")&&ie(i,a),16&t&&ie(o,e[4])},d(e){e&&Q(r)}}}function Pn(r){let n,i,o,s,a,l,c,u,h,p,d,f,m,g,y,b,v,E,w,T,_,S,B,A=r[5]("smsVerification.code")+"",P=r[5]("smsVerification.activate")+"",H=r[5]("smsVerification.resend")+"";function C(e){return e[2]?_n:Tn}let I=C(r),L=I(r),O=!r[2]&&Sn(r),F=r[3]&&Bn(r),N=r[3]&&An(r);return{c(){n=t("div"),i=t("h3"),L.c(),o=te(),s=t("div"),a=t("label"),l=ee(A),c=ee(":"),(u=t("span")).textContent="*",h=te(),p=t("input"),d=te(),O&&O.c(),g=te(),F&&F.c(),y=te(),b=t("button"),v=ee(P),E=te(),w=t("button"),T=ee(H),_=te(),N&&N.c(),this.c=x,ne(i,"class","Title"),ne(i,"part","Title"),ne(u,"class","FormRequired"),ne(u,"part","FormRequired"),ne(a,"for","SmsCode"),ne(p,"type","text"),ne(p,"id","SmsCode"),ne(p,"inputmode","numeric"),ne(p,"pattern","[0-9]*"),ne(p,"maxlength","6"),ne(s,"class",f="Field SmsVerificationField "+(r[2]?"":"InvalidField")),ne(s,"part",m="SmsVerificationField "+(r[2]?"":"InvalidField")),ne(b,"class","Button SmsVerificationValidate"),ne(b,"part","SmsVerificationValidate"),ne(w,"class","Button SmsVerificationResend"),ne(w,"part","SmsVerificationResend"),w.disabled=r[3],ne(n,"class","Container SmsVerificationContainer"),ne(n,"part","SmsVerificationContainer")},m(e,t){J(e,n,t),W(n,i),L.m(i,null),W(n,o),W(n,s),W(s,a),W(a,l),W(a,c),W(a,u),W(s,h),W(s,p),oe(p,r[1]),W(s,d),O&&O.m(s,null),W(n,g),F&&F.m(n,null),W(n,y),W(n,b),W(b,v),W(n,E),W(n,w),W(w,T),W(w,_),N&&N.m(w,null),r[19](n),S||(B=[re(p,"input",r[17]),re(p,"keydown",r[18]),re(b,"click",r[6]),re(w,"click",r[7])],S=!0)},p(e,[t]){I===(I=C(e))&&L?L.p(e,t):(L.d(1),(L=I(e))&&(L.c(),L.m(i,null))),32&t&&A!==(A=e[5]("smsVerification.code")+"")&&ie(l,A),2&t&&p.value!==e[1]&&oe(p,e[1]),e[2]?O&&(O.d(1),O=null):O?O.p(e,t):((O=Sn(e)).c(),O.m(s,null)),4&t&&f!==(f="Field SmsVerificationField "+(e[2]?"":"InvalidField"))&&ne(s,"class",f),4&t&&m!==(m="SmsVerificationField "+(e[2]?"":"InvalidField"))&&ne(s,"part",m),e[3]?F?F.p(e,t):((F=Bn(e)).c(),F.m(n,y)):F&&(F.d(1),F=null),32&t&&P!==(P=e[5]("smsVerification.activate")+"")&&ie(v,P),32&t&&H!==(H=e[5]("smsVerification.resend")+"")&&ie(T,H),e[3]?N?N.p(e,t):((N=An(e)).c(),N.m(w,null)):N&&(N.d(1),N=null),8&t&&(w.disabled=e[3])},i:x,o:x,d(e){e&&Q(n),L.d(),O&&O.d(),F&&F.d(),N&&N.d(),r[19](null),S=!1,q(B)}}}function Hn(e,t,r){let n;se(e,vn,e=>r(5,n=e));let i,o,s,{endpoint:a=""}=t,{tokenid:l=""}=t,{playerid:c=""}=t,{smstemplate:u="Please use this code {0} to activate your accout"}=t,{number:h=""}=t,{clientstyling:p=""}=t,{clientstylingurl:d=""}=t,{translationurl:f=""}=t,m=!0,g=!1,y=+localStorage.getItem("smsTimer")||0,b=Date.now()/1e3-y,v=60-Math.floor(b);const E={numeric:/^[0-9]{0,6}$/};var w,T;({withLocale:w,translations:T}={withLocale:"en",translations:{}}),Y.subscribe(e=>{null==e&&(Z.set(T),Y.set(w))}),Object.keys(wn).forEach(e=>{En(e,wn[e])});const _=()=>{0<v?r(4,v--,v):(clearInterval(o),r(3,o=!1),r(4,v=60))},S=()=>{b<60&&r(3,o=setInterval(()=>{_()},1e3))},B=e=>{E.numeric.test(e.key)||8===e.keyCode||9===e.keyCode||46===e.keyCode||e.preventDefault()};return ae(()=>{var e;c&&h||(e=JSON.parse(localStorage.getItem("playerData")),r(10,c=e.playerid),r(11,h=e.number)),S()}),e.$$set=e=>{"endpoint"in e&&r(12,a=e.endpoint),"tokenid"in e&&r(9,l=e.tokenid),"playerid"in e&&r(10,c=e.playerid),"smstemplate"in e&&r(13,u=e.smstemplate),"number"in e&&r(11,h=e.number),"clientstyling"in e&&r(14,p=e.clientstyling),"clientstylingurl"in e&&r(15,d=e.clientstylingurl),"translationurl"in e&&r(16,f=e.translationurl)},e.$$.update=()=>{if(e.$$.dirty,16385&e.$$.dirty&&p&&s){let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)}if(32769&e.$$.dirty&&d&&s){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}65536&e.$$.dirty&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{En(e,t[e])})}).catch(e=>{console.log(e)})},[s,i,m,o,v,n,async()=>{try{if(!(await fetch(`${a}/player/${c}/activateSMS?tokenId=${l}&validationCode=`+i,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),r(2,m=!1),new Error("Could not activate user");r(2,m=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href)}catch(e){console.log(e)}},async()=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),S();try{const e=await fetch(a+"/player/sms/token",{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:c,messageTemplate:u,destination:h})}),t=await e.json();if(!e.ok)throw g=!0,new Error("Failed to fetch");r(9,l=t.id),g=!1,_()}catch(e){g=!0,console.error(e)}},B,l,c,h,a,u,p,d,f,function(){i=this.value,r(1,i)},e=>B(e),function(e){le[e?"unshift":"push"](()=>{s=e,r(0,s)})}]}function Cn(){"undefined"!=typeof window&&window.cstmNativeBridge&&window.cstmNativeBridge.call}customElements.get("general-player-sms-verification-form")||customElements.define("general-player-sms-verification-form",class extends ce{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px}.Button{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000)}</style>',K(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Hn,Pn,P,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,clientstyling:14,clientstylingurl:15,translationurl:16},null),e&&(e.target&&J(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["endpoint","tokenid","playerid","smstemplate","number","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),g()}get tokenid(){return this.$$.ctx[9]}set tokenid(e){this.$$set({tokenid:e}),g()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),g()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(e){this.$$set({smstemplate:e}),g()}get number(){return this.$$.ctx[11]}set number(e){this.$$set({number:e}),g()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),g()}}),window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var r,n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t)return r=window.cstmNativeBridge.eventListeners[n],window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],r&&r.apply(this,arguments),t.apply(this,arguments)},!0;console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t,r=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof r?(t=Array.prototype.slice.call(arguments,1),r.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var In=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},Ln=function(e,...t){try{return Cn(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},On=function(e,t){try{return Cn(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Fn(e,t){Qr(e,t)}const Nn={en:{loginForm:{loginTitle:"Welcome",loginSubtitle:"Don't have an account yet?",loginSubtitleRegister:"Register now",loginUsername:"Username or Email",loginUsernameError:"Name must be at least 4 characters long and contain no special characters. Email should contain '@' and a 2-3 letter long domain.",loginPassword:"Password",loginPasswordError:"Password must be 8-20 characters long and contain at least 1 uppercase letter, 1 number and 1 special character.",loginSimplePasswordError:"Password must be 8-20 characters long.",loginButton:"Login",loginForgotPassword:"I forgot my password"}},zh:{loginForm:{loginTitle:"歡迎",loginSubtitle:"還沒有帳戶?",loginSubtitleRegister:"現在註冊",loginUsername:"用戶名或電子郵件",loginUsernameError:"名稱的長度必須至少為 2 個字符且不包含特殊字符。 電子郵件應包含“@”和 2-3 個字母長的域。",loginPassword:"密碼",loginPasswordError:"密碼長度必須為 8-20 個字符,並且至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",loginSimplePasswordError:"密码长度必须为 8-20 个字符。",loginButton:"登入",loginForgotPassword:"我忘記了我的密碼"}},fr:{loginForm:{loginTitle:"Vous êtes les bienvenus",loginSubtitle:"Vous n'avez pas encore de compte?",loginSubtitleRegister:"Inscrivez-vous maintenant",loginUsername:"Nom d'utilisateur ou l'adresse mail",loginUsernameError:'Le nom doit comporter au moins 2 caratères et ne pas contenir de caractères spéciaux, l\'adresse mail doit contenir "@" et un domaine de 2-3 lettres.',loginPassword:"Mot de passe",loginPasswordError:"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.",loginSimplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",loginButton:"Se connecter ",loginForgotPassword:"J'ai oublié mon mot de passe"}},tr:{loginForm:{loginTitle:"Hoş geldin",loginSubtitle:"Henüz bir hesabınız yok mu?",loginSubtitleRegister:"Şimdi üye Ol",loginUsername:"Kullanıcı adı ya da email",loginUsernameError:"Ad en az 4 karakter uzunluğunda olmalı ve özel karakter içermemelidir. E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",loginPassword:"Parola",loginPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",loginSimplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalıdır.",loginButton:"Giriş yapmak",loginForgotPassword:"I forgot my password"}},ro:{loginForm:{loginTitle:"Bine ai venit",loginSubtitle:"Nu ai cont?",loginSubtitleRegister:"Inregistreaza-te acum",loginUsername:"Utilizator sau Email",loginUsernameError:"Utilizatorul trebuie sa aiba minim 4 litere si sa nu contina caractere speciale. Email-ul trebuie sa contina '@' si domeniul sa aiba 2-3 litere lungime.",loginPassword:"Parola",loginPasswordError:"Parola trebuie sa aiba o lungime de 8-20 de caractere, sa contina cel putin o litera mare, o cifra si un caracter special.",loginSimplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",loginButton:"Autentificare",loginForgotPassword:"Mi-am uitat parola"}},es:{loginForm:{loginTitle:"Bienvenido",loginSubtitle:"Aún no esta registrado?",loginSubtitleRegister:"Regístrate",loginUsername:"Usuario o Email",loginUsernameError:"El nombre de Usuario debe tener al menos 4 caracteres y no contener caracteres especiales. El Email debe contener '@' y un dominio de 2 a 3 letras.",loginPassword:"Contraseña",loginPasswordError:"La Contraseña debe tener entre 8 a 20 caracteres y contener almenos una letra mayúscula",loginSimplePasswordError:"La Contraseña debe tener entre 8 a 20 caracteres",loginButton:"Iniciar sesión",loginForgotPassword:"Olvide mi contraseña"}},pt:{loginForm:{loginTitle:"Bem-vindo",loginSubtitle:"Não tem uma conta ainda?",loginSubtitleRegister:"Registrar agora",loginUsername:"Nome de usuário ou email",loginUsernameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais. O e-mail deve conter '@' e um domínio de 2 a 3 letras.",loginPassword:"Senha",loginPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",loginSimplePasswordError:"A senha deve ter de 8 a 20 caracteres.",loginButton:"Entrar",loginForgotPassword:"Esqueci a minha senha"}}},xn=X["document"];function Mn(e){let r,n;return{c(){I((r=t("script")).src,n="//www.google.com/recaptcha/api.js?render="+e[2])||ne(r,"src",n),r.async=!0,r.defer=!0},m(e,t){J(e,r,t)},p(e,t){4&t[0]&&!I(r.src,n="//www.google.com/recaptcha/api.js?render="+e[2])&&ne(r,"src",n)},d(e){e&&Q(r)}}}function Rn(e){let r,n,i,o,s;function a(e){return e[22]?$n:kn}let l=a(e),c=l(e),u=!e[11]&&Yn(e);return{c(){r=t("div"),n=t("div"),c.c(),i=te(),u&&u.c(),ne(n,"class","FormLeftSide"),ne(n,"part","FormLeftSide"),ne(r,"class",o="FormContainer "+(e[11]?"FormMobileContainer":"")),ne(r,"part",s="FormContainer "+(e[11]?"FormMobileContainer":""))},m(e,t){J(e,r,t),W(r,n),c.m(n,null),W(r,i),u&&u.m(r,null)},p(e,t){l===(l=a(e))&&c?c.p(e,t):(c.d(1),(c=l(e))&&(c.c(),c.m(n,null))),e[11]?u&&(u.d(1),u=null):u?u.p(e,t):((u=Yn(e)).c(),u.m(r,null)),2048&t[0]&&o!==(o="FormContainer "+(e[11]?"FormMobileContainer":""))&&ne(r,"class",o),2048&t[0]&&s!==(s="FormContainer "+(e[11]?"FormMobileContainer":""))&&ne(r,"part",s)},d(e){e&&Q(r),c.d(),u&&u.d()}}}function Un(e){let r;return{c(){(r=t("div")).innerHTML='<div class="ModalLoader" part="ModalLoader"></div>',ne(r,"class","ModalLoaderWrapper"),ne(r,"part","ModalLoaderWrapper")},m(e,t){J(e,r,t)},p:x,d(e){e&&Q(r)}}}function kn(r){let n,i,o,s,a,l,c,u,h,p,d,f,m,g=r[23]("loginForm.loginTitle")+"",y=r[23]("loginForm.loginSubtitle")+"",b=r[23]("loginForm.loginSubtitleRegister")+"";function v(e){return e[21]?Gn:Dn}let E=v(r),w=E(r);return{c(){n=t("div"),i=t("h4"),o=ee(g),s=te(),a=t("p"),l=ee(y),c=te(),u=t("span"),h=ee(b),p=te(),w.c(),d=O(),ne(i,"class","FormHeaderTitle"),ne(i,"part","FormHeaderTitle"),ne(u,"class","FormRegisterCallToAction"),ne(a,"class","FormHeaderSubtitle"),ne(a,"part","FormHeaderSubtitle"),ne(n,"class","FormHeader"),ne(n,"part","FormHeader")},m(e,t){J(e,n,t),W(n,i),W(i,o),W(n,s),W(n,a),W(a,l),W(a,c),W(a,u),W(u,h),J(e,p,t),w.m(e,t),J(e,d,t),f||(m=re(u,"click",r[34]),f=!0)},p(e,t){8388608&t[0]&&g!==(g=e[23]("loginForm.loginTitle")+"")&&ie(o,g),8388608&t[0]&&y!==(y=e[23]("loginForm.loginSubtitle")+"")&&ie(l,y),8388608&t[0]&&b!==(b=e[23]("loginForm.loginSubtitleRegister")+"")&&ie(h,b),E===(E=v(e))&&w?w.p(e,t):(w.d(1),(w=E(e))&&(w.c(),w.m(d.parentNode,d)))},d(e){e&&Q(n),e&&Q(p),w.d(e),e&&Q(d),f=!1,m()}}}function $n(e){let r;return{c(){n(r=t("general-player-sms-verification-form"),"endpoint",e[0]),n(r,"number",e[10]),n(r,"clientstyling",e[4]),n(r,"clientstylingurl",e[5]),n(r,"playerid",e[8]),n(r,"tokenid",e[9])},m(e,t){J(e,r,t)},p(e,t){1&t[0]&&n(r,"endpoint",e[0]),1024&t[0]&&n(r,"number",e[10]),16&t[0]&&n(r,"clientstyling",e[4]),32&t[0]&&n(r,"clientstylingurl",e[5]),256&t[0]&&n(r,"playerid",e[8]),512&t[0]&&n(r,"tokenid",e[9])},d(e){e&&Q(r)}}}function Dn(r){let n,i,o,s,a,U,l,k,c,u,$,h,p,D,d,f,m,G,g,j,y,b,V,v,E,w,T,z,_,S,B,X,A,P,K,Z,H=r[23]("loginForm.loginUsername")+"",C=r[23]("loginForm.loginPassword")+"",I=r[23]("loginForm.loginButton")+"",L=r[23]("loginForm.loginForgotPassword")+"",O=r[14]&&jn(r);function Y(e){return e[19]?zn:Vn}let F=Y(r),N=F(r),x=r[15]&&"true"!==r[3]&&Xn(r),M=r[15]&&"true"===r[3]&&Kn(r),R=r[16]&&Zn(r);return{c(){n=t("div"),i=t("form"),o=t("div"),s=t("label"),a=ee(H),U=ee(":"),(l=t("span")).textContent="*",k=te(),c=t("input"),$=te(),O&&O.c(),D=te(),d=t("div"),f=t("label"),m=ee(C),G=ee(":"),(g=t("span")).textContent="*",j=te(),y=t("input"),V=te(),N.c(),v=te(),x&&x.c(),E=te(),M&&M.c(),z=te(),R&&R.c(),_=te(),S=t("button"),B=ee(I),X=te(),A=t("button"),P=ee(L),ne(l,"class","FormRequired"),ne(l,"part","FormRequired"),ne(s,"for","username"),ne(c,"type","text"),ne(c,"id","email"),ne(c,"name","email"),ne(c,"autocomplete",u=r[6]?"username email":"off"),c.required=!0,ne(o,"class",h="UserContainer "+(r[14]?"InvalidField":"")),ne(o,"part",p="UserContainer "+(r[14]?"InvalidField":"")),ne(g,"class","FormRequired"),ne(g,"part","FormRequired"),ne(f,"for","current-password"),ne(y,"type","password"),ne(y,"name","current-password"),ne(y,"id","current-password"),ne(y,"autocomplete",b=r[6]?"current-password":"off"),ne(y,"aria-describedby","password-constraints"),y.required=!0,ne(d,"class",w="PasswordContainer "+(r[15]?"InvalidField":"")),ne(d,"part",T="PasswordContainer "+(r[15]?"InvalidField":"")),ne(S,"class","SignInButton"),ne(S,"part","SignInButton"),S.disabled=r[20],ne(S,"id","signin-button"),ne(A,"class","ForgotPasswordButton"),ne(A,"part","ForgotPasswordButton"),ne(i,"id","signin"),ne(n,"class","FormContent"),ne(n,"part","FormContent")},m(e,t){J(e,n,t),W(n,i),W(i,o),W(o,s),W(s,a),W(s,U),W(s,l),W(o,k),W(o,c),oe(c,r[12]),W(o,$),O&&O.m(o,null),W(i,D),W(i,d),W(d,f),W(f,m),W(f,G),W(f,g),W(d,j),W(d,y),oe(y,r[13]),r[37](y),W(d,V),N.m(d,null),W(d,v),x&&x.m(d,null),W(d,E),M&&M.m(d,null),W(i,z),R&&R.m(i,null),W(i,_),W(i,S),W(S,B),W(i,X),W(i,A),W(A,P),K||(Z=[re(c,"input",r[35]),re(c,"input",r[29]),re(y,"input",r[36]),re(y,"input",r[30]),re(S,"click",r[40]),re(A,"click",r[41])],K=!0)},p(e,t){8388608&t[0]&&H!==(H=e[23]("loginForm.loginUsername")+"")&&ie(a,H),64&t[0]&&u!==(u=e[6]?"username email":"off")&&ne(c,"autocomplete",u),4096&t[0]&&c.value!==e[12]&&oe(c,e[12]),e[14]?O?O.p(e,t):((O=jn(e)).c(),O.m(o,null)):O&&(O.d(1),O=null),16384&t[0]&&h!==(h="UserContainer "+(e[14]?"InvalidField":""))&&ne(o,"class",h),16384&t[0]&&p!==(p="UserContainer "+(e[14]?"InvalidField":""))&&ne(o,"part",p),8388608&t[0]&&C!==(C=e[23]("loginForm.loginPassword")+"")&&ie(m,C),64&t[0]&&b!==(b=e[6]?"current-password":"off")&&ne(y,"autocomplete",b),8192&t[0]&&y.value!==e[13]&&oe(y,e[13]),F===(F=Y(e))&&N?N.p(e,t):(N.d(1),(N=F(e))&&(N.c(),N.m(d,v))),e[15]&&"true"!==e[3]?x?x.p(e,t):((x=Xn(e)).c(),x.m(d,E)):x&&(x.d(1),x=null),e[15]&&"true"===e[3]?M?M.p(e,t):((M=Kn(e)).c(),M.m(d,null)):M&&(M.d(1),M=null),32768&t[0]&&w!==(w="PasswordContainer "+(e[15]?"InvalidField":""))&&ne(d,"class",w),32768&t[0]&&T!==(T="PasswordContainer "+(e[15]?"InvalidField":""))&&ne(d,"part",T),e[16]?R?R.p(e,t):((R=Zn(e)).c(),R.m(i,_)):R&&(R.d(1),R=null),8388608&t[0]&&I!==(I=e[23]("loginForm.loginButton")+"")&&ie(B,I),1048576&t[0]&&(S.disabled=e[20]),8388608&t[0]&&L!==(L=e[23]("loginForm.loginForgotPassword")+"")&&ie(P,L)},d(e){e&&Q(n),O&&O.d(),r[37](null),N.d(),x&&x.d(),M&&M.d(),R&&R.d(),K=!1,q(Z)}}}function Gn(e){let r;return{c(){(r=t("p")).textContent="Waiting for credentials"},m(e,t){J(e,r,t)},p:x,d(e){e&&Q(r)}}}function jn(e){let r,n,i=e[23]("loginForm.loginUsernameError")+"";return{c(){r=t("p"),n=ee(i),ne(r,"class","InvalidInput"),ne(r,"part","InvalidInput")},m(e,t){J(e,r,t),W(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("loginForm.loginUsernameError")+"")&&ie(n,i)},d(e){e&&Q(r)}}}function Vn(r){let n,i,o,s,a,l,c,u,h;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=ee(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("path"),c=e("circle"),ne(l,"class","a"),ne(l,"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"),ne(l,"transform","translate(0)"),ne(c,"class","a"),ne(c,"cx","2.779"),ne(c,"cy","2.779"),ne(c,"r","2.779"),ne(c,"transform","translate(20.827 30.303)"),ne(a,"transform","translate(-14.185 -27.832)"),ne(n,"class","TogglePasswordVisibility"),ne(n,"part","TogglePasswordVisibility"),ne(n,"xmlns","http://www.w3.org/2000/svg"),ne(n,"width","18.843"),ne(n,"height","10.5"),ne(n,"viewBox","0 0 18.843 10.5")},m(e,t){J(e,n,t),W(n,i),W(i,o),W(o,s),W(n,a),W(a,l),W(a,c),u||(h=re(n,"click",r[39]),u=!0)},p:x,d(e){e&&Q(n),u=!1,h()}}}function zn(r){let n,i,o,s,a,l,c,u,h,p,d,f,m,g,y;return{c(){n=e("svg"),i=e("defs"),o=e("style"),s=ee(".a{fill:var(--emfe-w-color-contrast, #07072A);}"),a=e("g"),l=e("circle"),c=e("g"),u=e("path"),h=e("path"),p=e("g"),d=e("path"),f=e("path"),m=e("rect"),ne(l,"class","a"),ne(l,"cx","0.05"),ne(l,"cy","0.05"),ne(l,"r","0.05"),ne(l,"transform","translate(121.017 31.148)"),ne(u,"class","a"),ne(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ne(u,"transform","translate(-142.164 -39.123)"),ne(h,"class","a"),ne(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ne(h,"transform","translate(-136.413 -42.068)"),ne(c,"transform","translate(117.499 27.37)"),ne(d,"class","a"),ne(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"),ne(d,"transform","translate(-110.856 -33.157)"),ne(f,"class","a"),ne(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"),ne(f,"transform","translate(-130.743 -29.617)"),ne(p,"transform","translate(110.856 24.899)"),ne(m,"class","a"),ne(m,"width","0.972"),ne(m,"height","15.861"),ne(m,"rx","0.486"),ne(m,"transform","translate(114.827 23.858) rotate(-39.315)"),ne(a,"transform","translate(-110.856 -23.242)"),ne(n,"class","TogglePasswordVisibility"),ne(n,"part","TogglePasswordVisibility"),ne(n,"xmlns","http://www.w3.org/2000/svg"),ne(n,"width","18.844"),ne(n,"height","12.887"),ne(n,"viewBox","0 0 18.844 12.887")},m(e,t){J(e,n,t),W(n,i),W(i,o),W(o,s),W(n,a),W(a,l),W(a,c),W(c,u),W(c,h),W(a,p),W(p,d),W(p,f),W(a,m),g||(y=re(n,"click",r[38]),g=!0)},p:x,d(e){e&&Q(n),g=!1,y()}}}function Xn(e){let r,n,i=e[23]("loginForm.loginPasswordError")+"";return{c(){r=t("p"),n=ee(i),ne(r,"class","InvalidInput"),ne(r,"part","InvalidInput")},m(e,t){J(e,r,t),W(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("loginForm.loginPasswordError")+"")&&ie(n,i)},d(e){e&&Q(r)}}}function Kn(e){let r,n,i=e[23]("loginForm.loginSimplePasswordError")+"";return{c(){r=t("p"),n=ee(i),ne(r,"class","InvalidInput"),ne(r,"part","InvalidInput")},m(e,t){J(e,r,t),W(r,n)},p(e,t){8388608&t[0]&&i!==(i=e[23]("loginForm.loginSimplePasswordError")+"")&&ie(n,i)},d(e){e&&Q(r)}}}function Zn(e){let r,n;return{c(){r=t("p"),n=ee(e[16]),ne(r,"class","ErrorMessage"),ne(r,"part","ErrorMessage")},m(e,t){J(e,r,t),W(r,n)},p(e,t){65536&t[0]&&ie(n,e[16])},d(e){e&&Q(r)}}}function Yn(e){let r;return{c(){ne(r=t("div"),"class","FormRightSide"),ne(r,"part","FormRightSide"),F(r,"background-image","url('"+e[1]+"')")},m(e,t){J(e,r,t)},p(e,t){2&t[0]&&F(r,"background-image","url('"+e[1]+"')")},d(e){e&&Q(r)}}}function qn(r){let n,i,o,s,a,l=r[2]&&Mn(r);function c(e){return e[17]?Un:Rn}let u=c(r),h=u(r);return{c(){l&&l.c(),n=O(),i=te(),o=t("div"),s=te(),a=t("div"),h.c(),this.c=x,ne(o,"class","g-recaptcha"),ne(o,"data-sitekey",r[2]),ne(a,"class","PlayerLoginFormWrapper")},m(e,t){l&&l.m(xn.head,null),W(xn.head,n),J(e,i,t),J(e,o,t),J(e,s,t),J(e,a,t),h.m(a,null),r[42](a)},p(e,t){e[2]?l?l.p(e,t):((l=Mn(e)).c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null),4&t[0]&&ne(o,"data-sitekey",e[2]),u===(u=c(e))&&h?h.p(e,t):(h.d(1),(h=u(e))&&(h.c(),h.m(a,null)))},i:x,o:x,d(e){l&&l.d(e),Q(n),e&&Q(i),e&&Q(o),e&&Q(s),e&&Q(a),h.d(),r[42](null)}}}function Wn(t,e,i){let r;se(t,vn,e=>i(23,r=e));let n,o,s,a,l,{endpoint:c=""}=e,{imagedesktop:u=""}=e,{captchakey:h=""}=e,{lang:p=""}=e,{smsverification:d="false"}=e,{simplepasswordvalidation:f="false"}=e,{clientstyling:m=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,{savecredentials:b=""}=e,v=!1,E=!1,w=window.navigator.userAgent,T="",_="",S={username:"",password:""},B=!1,A=!1,P="",H=!1,C=!1,I=!0,L,O=!1,M=+localStorage.getItem("smsTimer")||0,R=Date.now()/1e3-M,F="true"==localStorage.getItem("smsValidation")&&R<60,N={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,email:/^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};var U,k;({withLocale:U,translations:k}={withLocale:"en",translations:{}}),Y.subscribe(e=>{null==e&&(Z.set(k),Y.set(U))}),Object.keys(Nn).forEach(e=>{Fn(e,Nn[e])});const $=()=>{i(19,C=!0),G()},D=()=>{i(19,C=!1),G()},G=()=>{i(18,a.type=C?"text":"password",a)},j=()=>{window.postMessage({type:"ToRegister"},window.location.href)},V=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)},x=e=>{null!=e&&e.preventDefault(),new Promise((t,e)=>{grecaptcha.ready(()=>{grecaptcha.execute(h,{action:"submit"}).then(e=>{t(e)})})}).then(e=>{z(T)&&X(_)&&(S={username:T,password:_,token:e},i(17,H=!0),window.postMessage({type:"SubmitLoginForm",loginData:S},window.location.href))})},z=e=>!!((N.user.test(e)||N.email.test(e))&&e.length<=100),X=e=>!!N.password.test(e),K=e=>{if(e.data)switch(e.data.type){case"ModalLoader":case"UserSessionID":i(17,H=!1);break;case"HasError":i(16,P=e.data.error),i(17,H=!1);break;case"SmsVerification":i(8,n=e.data.userid),i(10,s=e.data.number),i(22,F=e.data.startSmsValidation),(async(e,t)=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3)));try{const r=await fetch(`${c}/player/sms/token`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:t,messageTemplate:"Please use this code {0} to activate your account",destination:e})}),n=await r.json();if(!r.ok)throw v=!0,new Error("Failed to fetch");i(9,o=n.id);n.maxValidationAttempts;v=!1}catch(e){v=!0,console.error(e)}})(s,n),localStorage.setItem("smsValidation","true"),localStorage.setItem("playerData",JSON.stringify({playerid:n,number:s}));break;case"SmsHasBeenValidated":x()}};return ae(()=>{return window.addEventListener("message",K,!1),window.postMessage({type:"LoginRegisterModalActive"},window.location.href),L=!!In(w),i(21,O=L),L&&(On("GET_CREDENTIALS",e=>{var t;O&&(e?({username:e,password:t}=e,i(12,T=e),i(13,_=t),x()):i(21,O=!1))}),Ln("GET_CREDENTIALS")||i(21,O=!1)),i(11,E=!!((e=w).toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),()=>{window.removeEventListener("message",K)};var e}),t.$$set=e=>{"endpoint"in e&&i(0,c=e.endpoint),"imagedesktop"in e&&i(1,u=e.imagedesktop),"captchakey"in e&&i(2,h=e.captchakey),"lang"in e&&i(31,p=e.lang),"smsverification"in e&&i(32,d=e.smsverification),"simplepasswordvalidation"in e&&i(3,f=e.simplepasswordvalidation),"clientstyling"in e&&i(4,m=e.clientstyling),"clientstylingurl"in e&&i(5,g=e.clientstylingurl),"translationurl"in e&&i(33,y=e.translationurl),"savecredentials"in e&&i(6,b=e.savecredentials)},t.$$.update=()=>{if(1&t.$$.dirty[0]|1&t.$$.dirty[1]&&c&&p&&(e=p,Y.set(e)),8&t.$$.dirty[0]&&f&&"true"==f&&(N.password=/^(?!.* ).{8,20}$/),144&t.$$.dirty[0]&&m&&l){let e=document.createElement("style");e.innerHTML=m,l.appendChild(e)}if(160&t.$$.dirty[0]&&g&&l){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{l.appendChild(t)},1),setTimeout(()=>{},500)})}var e;4&t.$$.dirty[1]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fn(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,h,f,m,g,b,l,n,o,s,E,T,_,B,A,P,H,a,C,I,O,F,r,$,D,j,V,x,()=>{i(14,B=!z(T)),i(20,I=!(!B&&!A&&_))},()=>{i(15,A=!X(_)),i(20,I=!(!B&&!A&&T))},p,d,y,()=>j(),function(){T=this.value,i(12,T)},function(){_=this.value,i(13,_)},function(e){le[e?"unshift":"push"](()=>{a=e,i(18,a)})},()=>D(),()=>$(),e=>x(e),()=>V(),function(e){le[e?"unshift":"push"](()=>{l=e,i(7,l)})}]}class Jn extends ce{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.PlayerLoginFormWrapper{height:100%}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:var(--emfe-w-color-gray-50, #F9F8F8)}.FormRightSide{background-size:cover;background-position:center;background-repeat:no-repeat}.FormHeaderTitle{color:var(--emfe-w-color-black, #000000);font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.FormHeaderSubtitle{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;font-weight:300;margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserContainer input,.PasswordContainer input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.SignInButton{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.SignInButton[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:14px;font-weight:300;color:var(--emfe-w-color-primary, #D0046C);margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emfe-w-color-error, #FD2839)}.FormMobileContainer{height:100%}.FormMobileContainer .FormLeftSide{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input{max-width:unset}.ModalLoaderWrapper{display:flex;height:100%;align-items:center}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:Loader 1.2s linear infinite}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>',K(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Wn,qn,P,{endpoint:0,imagedesktop:1,captchakey:2,lang:31,smsverification:32,simplepasswordvalidation:3,clientstyling:4,clientstylingurl:5,translationurl:33,savecredentials:6},null,[-1,-1,-1]),e&&(e.target&&J(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["endpoint","imagedesktop","captchakey","lang","smsverification","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl","savecredentials"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),g()}get imagedesktop(){return this.$$.ctx[1]}set imagedesktop(e){this.$$set({imagedesktop:e}),g()}get captchakey(){return this.$$.ctx[2]}set captchakey(e){this.$$set({captchakey:e}),g()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),g()}get smsverification(){return this.$$.ctx[32]}set smsverification(e){this.$$set({smsverification:e}),g()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[33]}set translationurl(e){this.$$set({translationurl:e}),g()}get savecredentials(){return this.$$.ctx[6]}set savecredentials(e){this.$$set({savecredentials:e}),g()}}return customElements.get("general-player-login-form")||customElements.define("general-player-login-form",Jn),Jn});
2
2
  //# sourceMappingURL=general-player-login-form.js.map