@everymatrix/general-player-forgot-password-form 0.0.240 → 0.0.244

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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function f(){}function p(t){return t()}function h(){return Object.create(null)}function H(t){t.forEach(p)}function Z(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function I(t,...e){if(null==t)return f;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function q(t,e){t.appendChild(e)}function Y(t,e,r){t.insertBefore(e,r||null)}function K(t){t.parentNode.removeChild(t)}function e(t){return document.createElement(t)}function k(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function W(t){return document.createTextNode(t)}function Q(){return W(" ")}function c(){return W("")}function J(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function tt(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function et(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function rt(t,e){t.value=null==e?"":e}let U;function d(t){U=t}const m=[],M=[],o=[],t=[],g=Promise.resolve();let y=!1;function w(t){o.push(t)}let n=!1;const i=new Set;function b(){if(!n){n=!0;do{for(let t=0;t<m.length;t+=1){var e=m[t];d(e),function(t){{var e;null!==t.fragment&&(t.update(),H(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(w))}}(e.$$)}for(d(null),m.length=0;M.length;)M.pop()();for(let t=0;t<o.length;t+=1){const r=o[t];i.has(r)||(i.add(r),r())}}while(o.length=0,m.length);for(;t.length;)t.pop()();y=!1,n=!1,i.clear()}}const v=new Set;function s(o,t,e,r,n,i,s=[-1]){var a,l=U;d(o);const c=o.$$={fragment:null,ctx:null,props:i,update:f,not_equal:n,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=e?e(o,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return c.ctx&&n(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&(r=t,-1===(t=o).$$.dirty[0]&&(m.push(t),y||(y=!0,g.then(b)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],c.update(),u=!0,H(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){const f=(r=t.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(f),f.forEach(K)}else c.fragment&&c.fragment.c();t.intro&&(a=o.$$.fragment)&&a.i&&(v.delete(a),a.i(void 0)),function(e,t,r,o){const{fragment:n,on_mount:i,on_destroy:s,after_update:a}=e.$$;n&&n.m(t,r),o||w(()=>{var t=i.map(p).filter(Z);s?s.push(...t):H(t),e.$$.on_mount=[]}),a.forEach(w)}(o,t.target,t.anchor,t.customElement),b()}d(l)}let a;"function"==typeof HTMLElement&&(a=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(p).filter(Z);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){H(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(H(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=f}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var l,u,E="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==E&&E,P="URLSearchParams"in E,_="Symbol"in E&&"iterator"in Symbol,T="FileReader"in E&&"Blob"in E&&function(){try{return new Blob,!0}catch(t){return!1}}(),A="FormData"in E,S="ArrayBuffer"in E;function L(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function N(t){return t="string"!=typeof t?String(t):t}function C(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _&&(t[Symbol.iterator]=function(){return t}),t}function x(e){this.map={},e instanceof x?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function O(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function F(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function R(t){var e=new FileReader,r=F(e);return e.readAsArrayBuffer(t),r}function D(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function G(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:T&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:A&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:P&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():S&&T&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=D(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=D(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):P&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},T&&(this.blob=function(){var t=O(this);if(t)return t;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?O(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(R)}),this.text=function(){var t,e,r=O(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=F(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}S&&(l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&-1<l.indexOf(Object.prototype.toString.call(t))}),x.prototype.append=function(t,e){t=L(t),e=N(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},x.prototype.delete=function(t){delete this.map[L(t)]},x.prototype.get=function(t){return t=L(t),this.has(t)?this.map[t]:null},x.prototype.has=function(t){return this.map.hasOwnProperty(L(t))},x.prototype.set=function(t,e){this.map[L(t)]=N(e)},x.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},x.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),C(r)},x.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),C(e)},x.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),C(r)},_&&(x.prototype[Symbol.iterator]=x.prototype.entries);var j=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function B(t,e){if(!(this instanceof B))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(e=e||{}).body;if(t instanceof B){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new x(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new x(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<j.indexOf(t)?t:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function $(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function V(t,e){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new x(e.headers),this.url=e.url||"",this._initBody(t)}B.prototype.clone=function(){return new B(this,{body:this._bodyInit})},G.call(B.prototype),G.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new x(this.headers),url:this.url})},V.error=function(){var t=new V(null,{status:0,statusText:""});return t.type="error",t};var z=[301,302,303,307,308];V.redirect=function(t,e){if(-1===z.indexOf(e))throw new RangeError("Invalid status code");return new V(null,{status:e,headers:{location:t}})};var X=E.DOMException;try{new X}catch(f){(X=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),X.prototype.constructor=X}function ot(o,s){return new Promise(function(n,t){var e=new B(o,s);if(e.signal&&e.signal.aborted)return t(new X("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new x,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout(function(){n(new V(o,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new X("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&E.location.href?E.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(T?i.responseType="blob":S&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof x?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,N(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}ot.polyfill=!0,E.fetch||(E.fetch=ot,E.Headers=x,E.Request=B,E.Response=V),self.fetch.bind(self);var nt=function(t,e){return(nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function it(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}nt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function st(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&o>=t.length?void 0:t)&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function lt(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function ct(t){return"function"==typeof t}function ut(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var ft=ut(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function pt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var ht=(mt.prototype.unsubscribe=function(){var t,e,r,o,n;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=st(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(ct(i))try{i()}catch(t){n=t instanceof ft?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=st(i),c=l.next();!c.done;c=l.next()){var u=c.value;try{yt(u)}catch(t){n=null!=n?n:[],t instanceof ft?n=lt(lt([],at(n)),at(t.errors)):n.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(n)throw new ft(n)}},mt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)yt(t);else{if(t instanceof mt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},mt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},mt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},mt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&pt(e,t)},mt.prototype.remove=function(t){var e=this._teardowns;e&&pt(e,t),t instanceof mt&&t._removeParent(this)},mt.EMPTY=((Ge=new mt).closed=!0,Ge),mt),dt=ht.EMPTY;function mt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function gt(t){return t instanceof ht||t&&"closed"in t&&ct(t.remove)&&ct(t.add)&&ct(t.unsubscribe)}function yt(t){ct(t)?t():t.unsubscribe()}var wt=void 0,bt=!1,vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,lt([],at(t)))};function Et(){}function Pt(t){t()}var _t,Tt,At=(it(Nt,Tt=ht),Nt.create=function(t,e,r){return new St(t,e,r)},Nt.prototype.next=function(t){this.isStopped||this._next(t)},Nt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Nt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Nt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Tt.prototype.unsubscribe.call(this),this.destination=null)},Nt.prototype._next=function(t){this.destination.next(t)},Nt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Nt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Nt),St=(it(Lt,_t=At),Lt);function Lt(t,e,r){var o,n,i=_t.call(this)||this;return ct(t)?n=t:t&&(n=t.next,e=t.error,r=t.complete,i&&bt?(o=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:o=t,n=null==n?void 0:n.bind(o),e=null==e?void 0:e.bind(o),r=null==r?void 0:r.bind(o)),i.destination={next:n?Ct(n):Et,error:Ct(null!=e?e:xt),complete:r?Ct(r):Et},i}function Nt(t){var e=Tt.call(this)||this;return e.isStopped=!1,t?gt(e.destination=t)&&t.add(e):e.destination=Ot,e}function Ct(o){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{o.apply(void 0,lt([],at(t)))}catch(t){e=t,vt(function(){throw e})}}}function xt(t){throw t}var Ot={closed:!0,next:Et,error:xt,complete:Et},Ft="function"==typeof Symbol&&Symbol.observable||"@@observable";function Rt(t){return t}var It=(Ut.prototype.lift=function(t){var e=new Ut;return e.source=this,e.operator=t,e},Ut.prototype.subscribe=function(t,e,r){var o,n=this,i=(o=t)&&o instanceof At||o&&ct(o.next)&&ct(o.error)&&ct(o.complete)&&gt(o)?t:new St(t,e,r);return Pt(function(){var t=n.operator,e=n.source;i.add(t?t.call(i,e):e?n._subscribe(i):n._trySubscribe(i))}),i},Ut.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Ut.prototype.forEach=function(o,t){var n=this;return new(t=kt(t))(function(t,e){var r=n.subscribe(function(t){try{o(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Ut.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Ut.prototype[Ft]=function(){return this},Ut.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Rt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Ut.prototype.toPromise=function(t){var o=this;return new(t=kt(t))(function(t,e){var r;o.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Ut.create=function(t){return new Ut(t)},Ut);function Ut(t){t&&(this._subscribe=t)}function kt(t){return null!==(t=null!=t?t:wt)&&void 0!==t?t:Promise}var Mt,Dt,Gt,jt=ut(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Bt=(it(Zt,Gt=It),Zt.prototype.lift=function(t){var e=new $t(this,this);return e.operator=t,e},Zt.prototype._throwIfClosed=function(){if(this.closed)throw new jt},Zt.prototype.next=function(i){var s=this;Pt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var o=st(r),n=o.next();!n.done;n=o.next())n.value.next(i)}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}})},Zt.prototype.error=function(e){var r=this;Pt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},Zt.prototype.complete=function(){var e=this;Pt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},Zt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Zt.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),Zt.prototype._trySubscribe=function(t){return this._throwIfClosed(),Gt.prototype._trySubscribe.call(this,t)},Zt.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},Zt.prototype._innerSubscribe=function(t){var e=this.hasError,r=this.isStopped,o=this.observers;return e||r?dt:(o.push(t),new ht(function(){return pt(o,t)}))},Zt.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,o=this.isStopped;e?t.error(r):o&&t.complete()},Zt.prototype.asObservable=function(){var t=new It;return t.source=this,t},Zt.create=function(t,e){return new $t(t,e)},Zt),$t=(it(Ht,Dt=Bt),Ht.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},Ht.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},Ht.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},Ht.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:dt},Ht),Vt={now:function(){return(Vt.delegate||Date).now()},delegate:void 0},zt=(it(Xt,Mt=Bt),Xt.prototype.next=function(t){var e=this,r=e.isStopped,o=e._buffer,n=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(o.push(t),n||o.push(i.now()+e)),this._trimBuffer(),Mt.prototype.next.call(this,t)},Xt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,o=this._buffer.slice(),n=0;n<o.length&&!t.closed;n+=r?1:2)t.next(o[n]);return this._checkFinalizedStatuses(t),e},Xt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,n=(o?1:2)*t;if(t<1/0&&n<r.length&&r.splice(0,r.length-n),!o){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Xt);function Xt(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Vt);var o=Mt.call(this)||this;return o._bufferSize=t,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,e),o}function Ht(t,e){var r=Dt.call(this)||this;return r.destination=t,r.source=e,r}function Zt(){var t=Gt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let qt=[],Yt={};const Kt=[];function Wt(o,n=f){let i;const s=[];function a(t){if(r(o,t)&&(o=t,i)){const t=!Kt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Kt.push(e,o)}if(t){for(let t=0;t<Kt.length;t+=2)Kt[t][0](Kt[t+1]);Kt.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=f){const r=[t,e];return s.push(r),1===s.length&&(i=n(a)||f),t(o),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function Qt(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,u=a.length<2;return{subscribe:Wt(e,e=>{let r=!1;const o=[];let n=0,i=f;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),u?e(t):i=Z(t)?t:f)},t=c.map((t,e)=>I(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){H(t),i()}}).subscribe}}var Jt=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===te));var e},te="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?se(Array.isArray(t)?[]:{},t,e):t}function re(t,e,r){return t.concat(e).map(function(t){return ee(t,r)})}function oe(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function ne(t,e){try{return e in t}catch(t){return!1}}function ie(o,n,i){var s={};return i.isMergeableObject(o)&&oe(o).forEach(function(t){s[t]=ee(o[t],i)}),oe(n).forEach(function(e){var t,r;(!ne(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(ne(o,e)&&i.isMergeableObject(n[e])?s[e]=function(){if(!i.customMerge)return se;var t=i.customMerge(e);return"function"==typeof t?t:se}()(o[e],n[e],i):s[e]=ee(n[e],i))}),s}function se(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||re,r.isMergeableObject=r.isMergeableObject||Jt,r.cloneUnlessOtherwiseSpecified=ee;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):ie(t,e,r):ee(e,r)}se.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return se(t,e,r)},{})};var ae=se,le=function(t,e){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function ce(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}le(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ue,fe,pe,he=function(){return(he=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function de(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function me(t){return t.type===fe.literal}function ge(t){return t.type===fe.number}function ye(t){return t.type===fe.date}function we(t){return t.type===fe.time}function be(t){return t.type===fe.select}function ve(t){return t.type===fe.plural}function Ee(t){return t.type===fe.tag}function Pe(t){return t&&"object"==typeof t&&t.type===pe.number}function _e(t){return t&&"object"==typeof t&&t.type===pe.dateTime}(je=ue=ue||{})[je.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",je[je.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",je[je.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",je[je.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",je[je.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",je[je.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",je[je.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",je[je.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",je[je.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",je[je.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",je[je.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",je[je.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",je[je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",je[je.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",je[je.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",je[je.INVALID_TAG=23]="INVALID_TAG",je[je.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",je[je.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",je[je.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Be=fe=fe||{})[Be.literal=0]="literal",Be[Be.argument=1]="argument",Be[Be.number=2]="number",Be[Be.date=3]="date",Be[Be.time=4]="time",Be[Be.select=5]="select",Be[Be.plural=6]="plural",Be[Be.pound=7]="pound",Be[Be.tag=8]="tag",($e=pe=pe||{})[$e.number=0]="number",$e[$e.dateTime=1]="dateTime";var Te=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ae=/(?:[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 Se,Le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ne=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ce=/^(@+)?(\+|#+)?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function Fe(t){var o={};return t.replace(Ce,function(t,e,r){return"string"!=typeof r?(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length):"+"===r?o.minimumSignificantDigits=e.length:"#"===e[0]?o.maximumSignificantDigits=e.length:(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),o}function Re(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ie(t){return Re(t)||{}}function Ue(t){for(var s={},e=0,r=t;e<r.length;e++){var o,n=r[e];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.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=n.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=he(he(he({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return he(he({},t),Ie(e))},{}));continue;case"engineering":s=he(he(he({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return he(he({},t),Ie(e))},{}));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(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(xe,function(t,e,r,o,n,i){if(e)s.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oe.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(Ne.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ne,function(t,e,r,o,n,i){return"*"===r?s.minimumFractionDigits=e.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),n.options.length&&(s=he(he({},s),Fe(n.options[0])))}else Ce.test(n.stem)?s=he(he({},s),Fe(n.stem)):((o=Re(n.stem))&&(s=he(he({},s),o)),(o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Oe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=he(he({},s),o)))}return s}var ke=new RegExp("^"+Te.source+"*"),Me=new RegExp(Te.source+"*$");function De(t,e){return{start:t,end:e}}var Ge=!!String.prototype.startsWith,Ft=!!String.fromCodePoint,Bt=!!Object.fromEntries,je=!!String.prototype.codePointAt,Be=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,Ve=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Te=!0;try{Te="a"===(null===(Se=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Se?void 0:Se[0])}catch(f){Te=!1}var ze,Xe,He=Ge?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Ze=Ft?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,o="",n=t.length,i=0;i<n;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},qe=Bt?Object.fromEntries:function(t){for(var e={},r=0,o=t;r<o.length;r++){var n=o[r],i=n[0],n=n[1];e[i]=n}return e},Ye=je?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var o,n=t.charCodeAt(e);return n<55296||56319<n||e+1===r||(o=t.charCodeAt(e+1))<56320||57343<o?n:o-56320+(n-55296<<10)+65536}},Ke=Be?function(t){return t.trimStart()}:function(t){return t.replace(ke,"")},We=$e?function(t){return t.trimEnd()}:function(t){return t.replace(Me,"")};function Qe(t,e){return new RegExp(t,e)}Xe=Te?(ze=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return ze.lastIndex=e,null!==(t=ze.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,o=[];;){var n=Ye(t,e);if(void 0===n||rr(n)||(33<=(r=n)&&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;o.push(n),e+=65536<=n?2:1}return Ze.apply(void 0,o)};var Je=(tr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},tr.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(t,r)).err)return n;o.push(n.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ue.UNMATCHED_CLOSING_TAG,De(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&er(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(t,e)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:fe.pound,location:De(i,this.clonePosition())})}}}return{val:o,err:null}},tr.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<"+o+"/>",location:De(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(t+1,e,!0);if(n.err)return n;t=n.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(ue.INVALID_TAG,De(e,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(ue.UNMATCHED_CLOSING_TAG,De(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:o,children:t,location:De(r,this.clonePosition())},err:null}:this.error(ue.INVALID_TAG,De(e,this.clonePosition())))}return this.error(ue.UNCLOSED_TAG,De(r,this.clonePosition()))}return this.error(ue.INVALID_TAG,De(r,this.clonePosition()))},tr.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},tr.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n)o+=n;else{n=this.tryParseUnquoted(t,e);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=De(r,this.clonePosition());return{val:{type:fe.literal,value:o,location:r},err:null}},tr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},tr.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Ze.apply(void 0,e)},tr.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Ze(r))},tr.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ue.EMPTY_ARGUMENT,De(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ue.MALFORMED_ARGUMENT,De(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:o,location:De(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(ue.MALFORMED_ARGUMENT,De(r,this.clonePosition()))}},tr.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xe(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:De(t,this.clonePosition())}},tr.prototype.parseArgumentOptions=function(t,e,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ue.EXPECT_ARGUMENT_TYPE,De(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=We(p.val)).length)return this.error(ue.EXPECT_ARGUMENT_STYLE,De(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:De(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(o)).err)return h;var u=De(o,this.clonePosition());if(l&&He(null==l?void 0:l.style,"::",0)){c=Ke(l.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?p:{val:{type:fe.number,value:r,location:u,style:p.val},err:null};if(0===c.length)return this.error(ue.EXPECT_DATE_TIME_SKELETON,u);var f={type:pe.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(Ae,function(t){var e=t.length;switch(t[0]){case"G":n.era=4===e?"long":5===e?"narrow":"short";break;case"y":n.year=2===e?"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":n.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][e-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][e-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][e-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][e-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":n.minute=["numeric","2-digit"][e-1];break;case"s":n.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=e<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""}),n):{}};return{val:{type:"date"===s?fe.date:fe.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===s?fe.number:"date"===s?fe.date:fe.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ue.EXPECT_SELECT_ARGUMENT_OPTIONS,De(l,he({},l)));this.bumpSpace();var p,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ue.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=p.val}u=this.tryParsePluralOrSelectOptions(t,s,e,u);if(u.err)return u;if((h=this.tryParseArgumentClose(o)).err)return h;var h=De(o,this.clonePosition());return"select"===s?{val:{type:fe.select,value:r,options:qe(u.val),location:h},err:null}:{val:{type:fe.plural,value:r,options:qe(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(ue.INVALID_ARGUMENT_TYPE,De(i,a))}},tr.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},tr.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ue.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,De(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},tr.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,o=t.split(Le).filter(function(t){return 0<t.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:n})}return e}(t)}catch(t){return this.error(ue.INVALID_NUMBER_SKELETON,e)}return{val:{type:pe.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ue(r):{}},err:null}},tr.prototype.tryParsePluralOrSelectOptions=function(t,e,r,o){for(var n=!1,i=[],s=new Set,a=o.value,l=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,ue.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=De(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===e?ue.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ue.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ue.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,De(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,r);if(u.err)return u;c=this.tryParseArgumentClose(f);if(c.err)return c;i.push([a,{value:u.val,location:De(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===i.length?this.error("select"===e?ue.EXPECT_SELECT_ARGUMENT_SELECTOR:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,De(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(ue.MISSING_OTHER_CLAUSE,De(this.clonePosition(),this.clonePosition())):{val:i,err:null}},tr.prototype.tryParseDecimalInteger=function(t,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=De(o,this.clonePosition());return n?Ve(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},tr.prototype.offset=function(){return this.position.offset},tr.prototype.isEOF=function(){return this.offset()===this.message.length},tr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},tr.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ye(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},tr.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},tr.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},tr.prototype.bumpIf=function(t){if(He(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},tr.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},tr.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},tr.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},tr.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},tr);function tr(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function er(t){return 97<=t&&t<=122||65<=t&&t<=90}function rr(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function or(t,e){e=he({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new Je(t,e).parse();if(r.err){t=SyntaxError(ue[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,be(t)||ve(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else ge(t)&&Pe(t.style)||(ye(t)||we(t))&&_e(t.style)?delete t.style.location:Ee(t)&&r(t.children)})}(r.val),r.val}function nr(t,e){var r=e&&e.cache?e.cache:fr,o=e&&e.serializer?e.serializer:lr;return(e&&e.strategy?e.strategy:function(t,e){return ar(t,this,1===t.length?ir:sr,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function ir(t,e,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),r=e.get(n);return void 0===r&&(r=t.call(this,o),e.set(n,r)),r}function sr(t,e,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),r=e.get(n);return void 0===r&&(r=t.apply(this,o),e.set(n,r)),r}function ar(t,e,r,o,n){return r.bind(e,t,o,n)}var lr=function(){return JSON.stringify(arguments)};function cr(){this.cache=Object.create(null)}cr.prototype.has=function(t){return t in this.cache},cr.prototype.get=function(t){return this.cache[t]},cr.prototype.set=function(t,e){this.cache[t]=e};var ur,fr={create:function(){return new cr}},pr={variadic:function(t,e){return ar(t,this,sr,e.cache.create(),e.serializer)},monadic:function(t,e){return ar(t,this,ir,e.cache.create(),e.serializer)}};(Te=ur=ur||{}).MISSING_VALUE="MISSING_VALUE",Te.INVALID_VALUE="INVALID_VALUE",Te.MISSING_INTL_API="MISSING_INTL_API";var hr,dr,mr,gr,yr,wr=(ce(Ar,yr=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),br=(ce(Tr,gr=wr),Tr),vr=(ce(_r,mr=wr),_r),Er=(ce(Pr,dr=wr),Pr);function Pr(t,e){return dr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',ur.MISSING_VALUE,e)||this}function _r(t,e,r){return mr.call(this,'Value for "'+t+'" must be of type '+e,ur.INVALID_VALUE,r)||this}function Tr(t,e,r,o){return gr.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',ur.INVALID_VALUE,o)||this}function Ar(t,e,r){t=yr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Sr(t,e,r,o,n,i,s){if(1===t.length&&me(t[0]))return[{type:hr.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];if(me(u))a.push({type:hr.literal,value:u.value});else if(u.type===fe.pound)"number"==typeof i&&a.push({type:hr.literal,value:r.getNumberFormat(e).format(i)});else{var f=u.value;if(!(n&&f in n))throw new Er(f,s);var p=n[f];if(u.type===fe.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?hr.literal:hr.object,value:p});else if(ye(u)){var h="string"==typeof u.style?o.date[u.style]:_e(u.style)?u.style.parsedOptions:void 0;a.push({type:hr.literal,value:r.getDateTimeFormat(e,h).format(p)})}else if(we(u))h="string"==typeof u.style?o.time[u.style]:_e(u.style)?u.style.parsedOptions:void 0,a.push({type:hr.literal,value:r.getDateTimeFormat(e,h).format(p)});else if(ge(u))(h="string"==typeof u.style?o.number[u.style]:Pe(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),a.push({type:hr.literal,value:r.getNumberFormat(e,h).format(p)});else{if(Ee(u)){var d=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new vr(m,"function",s);d=f(Sr(d,e,r,o,n,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?hr.literal:hr.object,value:t}}))}if(be(u)){if(!(g=u.options[p]||u.options.other))throw new br(u.value,p,Object.keys(u.options),s);a.push.apply(a,Sr(g.value,e,r,o,n))}else if(ve(u)){if(!(g=u.options["="+p])){if(!Intl.PluralRules)throw new wr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ur.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:u.pluralType}).select(p-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new br(u.value,p,Object.keys(u.options),s);a.push.apply(a,Sr(g.value,e,r,o,n,p-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===hr.literal&&e.type===hr.literal?r.value+=e.value:t.push(e),t},[])}function Lr(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(Te=hr=hr||{})[Te.literal=0]="literal",Te[Te.object=1]="object";var Nr=(Object.defineProperty(Cr,"defaultLocale",{get:function(){return Cr.memoizedDefaultLocale||(Cr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Cr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Cr.memoizedDefaultLocale=null,Cr.__parse=or,Cr.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"}}},Cr);function Cr(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=Cr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===hr.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Sr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Cr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Cr.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=Cr.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?he(he(he({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=he(he({},r[e]),o[e]||{}),t},{})):r),t},he({},n)):n),this.locales=e,this.formatters=o&&o.formatters||{getNumberFormat:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,de([void 0],e)))},{cache:Lr((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:pr.variadic}),getDateTimeFormat:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,de([void 0],e)))},{cache:Lr(o.dateTime),strategy:pr.variadic}),getPluralRules:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,de([void 0],e)))},{cache:Lr(o.pluralRules),strategy:pr.variadic})}}const xr={},Or=(e,r)=>{if(null!=r){if(r in xr&&e in xr[r])return xr[r][e];var o,n,i=Zr(r);for(let t=0;t<i.length;t++){var s=(o=i[t],n=e,Ir(o)?function(t,e){if(e in t)return t[e];const r=e.split(".");let o=t;for(let t=0;t<r.length;t++)if("object"==typeof o){if(0<t){const e=r.slice(t,r.length).join(".");if(e in o){o=o[e];break}}o=o[r[t]]}else o=void 0;return o}(function(t){return Fr[t]||null}(o),n):null);if(s)return o=e,n=r,(s=s)&&(n in xr||(xr[n]={}),o in xr[n]||(xr[n][o]=s),s)}}};let Fr;const Rr=Wt({});function Ir(t){return t in Fr}function Ur(e,...r){delete xr[e],Rr.update(t=>(t[e]=ae.all([t[e]||{},...r]),t))}Qt([Rr],([t])=>Object.keys(t)),Rr.subscribe(t=>Fr=t);const kr={};function Mr(t){return kr[t]}function Dr(t){return Zr(t).some(t=>{return null===(t=Mr(t))||void 0===t?void 0:t.size})}const Gr={};function jr(t){if(!Dr(t))return t in Gr?Gr[t]:void 0;const e=Zr(t).map(t=>{var e=Mr(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Gr[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){kr[t].delete(e),0===kr[t].size&&delete kr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Ur(e,...t))}(t))).then(()=>Dr(t)?jr(t):void delete Gr[t]),Gr[t]}function Br(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const $r={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const Vr=Wt(!1);let zr;const Xr=Wt(null);function Hr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Zr(t,e=$r.fallbackLocale){t=Hr(t);return e?[...new Set([...t,...Hr(e)])]:t}Xr.subscribe(t=>{zr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const qr=Xr.set;Xr.set=e=>{if(function(t){if(null!=t){var e=Zr(t);for(let t=0;t<e.length;t++){var r=e[t];if(Ir(r))return r}}}(e)&&Dr(e)){var{loadingDelay:r}=$r;let t;return"undefined"!=typeof window&&null!=zr&&r?t=window.setTimeout(()=>Vr.set(!0),r):Vr.set(!0),jr(e).then(()=>{qr(e)}).finally(()=>{clearTimeout(t),Vr.set(!1)})}return qr(e)},Xr.update=t=>qr(t(zr));const Yr=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},Kr=(t,e)=>{var{formats:r}=$r;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Wr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Kr("number",r)),new Intl.NumberFormat(e,t)}),Qr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Kr("date",r):0===Object.keys(t).length&&(t=Kr("date","short")),new Intl.DateTimeFormat(e,t)}),Jr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Kr("time",r):0===Object.keys(t).length&&(t=Kr("time","short")),new Intl.DateTimeFormat(e,t)}),to=Yr((t,e=zr)=>new Nr(t,e,$r.formats,{ignoreTag:$r.ignoreTag})),eo=Qt([Xr,Rr],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:o=zr,default:n}=e;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Or(t,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else $r.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Zr(o).join('", "')}".${Dr(zr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=n||t;if(!r)return i;let s=i;try{s=to(i,o).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Jr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Qr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Wr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr,Rr],()=>(t,e=zr)=>Or(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==qt.indexOf(t)&&(e=new zt(e),Yt[t]=e,qt.push(t)),Yt[t]}};const ro={en:{forgotPasswordForm:{goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",forgotPasswordEmail:"Email",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login"}},tr:{forgotPasswordForm:{goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",forgotPasswordEmail:"E-posta",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlamak için talimatları içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Onay şifresi yeni şifreyle eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için tıklayınız"}},ro:{forgotPasswordForm:{goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parola Uitata",forgotPasswordEmail:"Email",forgotPasswordEmailError:"Acest email nu exista",forgotPasswordReset:"Reseteaza parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instructiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parola",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie sa fie intre 8 si 20 de caractere, sa contina o litera mare, o cifra si un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmata trebuie sa fie la fel ca parola noua si sa respecte aceleasi reguli",forgotNewPasswordButton:"Schimba parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbata cu succes.",forgotChangePasswordLogin:"Autentificare"}}};function oo(t){let r,o;return{c(){r=e("script"),r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[0])&&tt(r,"src",o),r.async=!0,r.defer=!0},m(t,e){Y(t,r,e)},p(t,e){1&e[0]&&r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[0])&&tt(r,"src",o)},d(t){t&&K(r)}}}function no(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E,P,_,T,A,S,L=r[17]("forgotPasswordForm.forgotChangePasswordTitle")+"",N=r[17]("forgotPasswordForm.forgotChangePasswordDescription")+"",C=r[17]("forgotPasswordForm.forgotChangePasswordLogin")+"";return{c(){o=e("div"),n=e("div"),i=e("div"),s=k("svg"),a=k("defs"),l=k("style"),c=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),u=k("g"),f=k("g"),p=k("path"),h=k("g"),d=k("circle"),m=k("circle"),g=Q(),y=e("h4"),w=W(L),b=Q(),v=e("p"),E=W(N),P=Q(),_=e("button"),T=W(C),tt(p,"class","a"),tt(p,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),tt(p,"transform","translate(264.272 482.563)"),tt(f,"transform","translate(-7360.574 8503.438)"),tt(d,"class","c"),tt(d,"cx","30"),tt(d,"cy","30"),tt(d,"r","30"),tt(m,"class","d"),tt(m,"cx","30"),tt(m,"cy","30"),tt(m,"r","29"),tt(h,"class","b"),tt(h,"transform","translate(-7106 8970)"),tt(u,"transform","translate(7106 -8970)"),tt(s,"xmlns","http://www.w3.org/2000/svg"),tt(s,"width","60"),tt(s,"height","60"),tt(s,"viewBox","0 0 60 60"),tt(i,"class","NewPasswordSuccess"),tt(_,"class","resetPasswordButton"),tt(n,"class","FormContent"),tt(o,"class","FormLeftSide")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(s,a),q(a,l),q(l,c),q(s,u),q(u,f),q(f,p),q(u,h),q(h,d),q(h,m),q(i,g),q(i,y),q(y,w),q(i,b),q(i,v),q(v,E),q(n,P),q(n,_),q(_,T),A||(S=J(_,"click",r[38]),A=!0)},p(t,e){131072&e[0]&&L!==(L=t[17]("forgotPasswordForm.forgotChangePasswordTitle")+"")&&et(w,L),131072&e[0]&&N!==(N=t[17]("forgotPasswordForm.forgotChangePasswordDescription")+"")&&et(E,N),131072&e[0]&&C!==(C=t[17]("forgotPasswordForm.forgotChangePasswordLogin")+"")&&et(T,C)},d(t){t&&K(o),A=!1,S()}}}function io(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E,P,_,T,A,S,L,N,C,x,O,F,R,I=r[17]("forgotPasswordForm.forgotNewPasswordTitle")+"",U=r[17]("forgotPasswordForm.forgotNewPasswordPassword")+"",k=r[17]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"",M=r[17]("forgotPasswordForm.forgotNewPasswordButton")+"";function D(t){return t[13]?co:lo}let G=D(r),j=G(r),B=r[9]&&uo(r);function $(t){return t[14]?po:fo}let V=$(r),z=V(r),X=r[10]&&ho(r);return{c(){o=e("div"),n=e("div"),i=e("h4"),s=W(I),a=Q(),l=e("div"),c=e("div"),u=e("label"),f=W(U),p=W(":"),h=e("span"),h.textContent="*",d=Q(),m=e("input"),g=Q(),j.c(),y=Q(),B&&B.c(),w=Q(),b=e("div"),v=e("label"),E=W(k),P=W(":"),_=e("span"),_.textContent="*",T=Q(),A=e("input"),S=Q(),z.c(),L=Q(),X&&X.c(),N=Q(),C=e("button"),x=W(M),tt(i,"class","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(h,"class","FormRequired"),tt(u,"for","NewPassword"),tt(m,"type","password"),tt(m,"id","NewPassword"),tt(c,"class","NewPassword"),tt(_,"class","FormRequired"),tt(v,"for","RetypePassword"),tt(A,"type","password"),tt(A,"id","RetypePassword"),tt(b,"class","ConfirmPassword"),tt(C,"class","resetPasswordButton"),C.disabled=O=!r[8],tt(l,"class","FormContent"),tt(o,"class","FormLeftSide test")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(o,l),q(l,c),q(c,u),q(u,f),q(u,p),q(u,h),q(c,d),q(c,m),rt(m,r[15]),r[30](m),q(c,g),j.m(c,null),q(c,y),B&&B.m(c,null),q(l,w),q(l,b),q(b,v),q(v,E),q(v,P),q(v,_),q(b,T),q(b,A),rt(A,r[16]),r[34](A),q(b,S),z.m(b,null),q(b,L),X&&X.m(b,null),q(l,N),q(l,C),q(C,x),F||(R=[J(m,"input",r[29]),J(m,"blur",function(){Z(r[22](r[9],r[15],r[11]))&&r[22](r[9],r[15],r[11]).apply(this,arguments)}),J(A,"input",r[33]),J(A,"keyup",function(){Z(r[22](r[10],r[16],r[12]))&&r[22](r[10],r[16],r[12]).apply(this,arguments)}),J(C,"click",r[37])],F=!0)},p(t,e){r=t,131072&e[0]&&I!==(I=r[17]("forgotPasswordForm.forgotNewPasswordTitle")+"")&&et(s,I),131072&e[0]&&U!==(U=r[17]("forgotPasswordForm.forgotNewPasswordPassword")+"")&&et(f,U),32768&e[0]&&m.value!==r[15]&&rt(m,r[15]),G===(G=D(r))&&j?j.p(r,e):(j.d(1),j=G(r),j&&(j.c(),j.m(c,y))),r[9]?B?B.p(r,e):(B=uo(r),B.c(),B.m(c,null)):B&&(B.d(1),B=null),131072&e[0]&&k!==(k=r[17]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"")&&et(E,k),65536&e[0]&&A.value!==r[16]&&rt(A,r[16]),V===(V=$(r))&&z?z.p(r,e):(z.d(1),z=V(r),z&&(z.c(),z.m(b,L))),r[10]?X?X.p(r,e):(X=ho(r),X.c(),X.m(b,null)):X&&(X.d(1),X=null),131072&e[0]&&M!==(M=r[17]("forgotPasswordForm.forgotNewPasswordButton")+"")&&et(x,M),256&e[0]&&O!==(O=!r[8])&&(C.disabled=O)},d(t){t&&K(o),r[30](null),j.d(),B&&B.d(),r[34](null),z.d(),X&&X.d(),F=!1,H(R)}}}function so(t){let r,o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E=t[17]("forgotPasswordForm.forgotPasswordSuccess")+"",P=t[17]("forgotPasswordForm.forgotPasswordSuccessDescription")+"";return{c(){r=e("div"),o=e("div"),n=e("div"),i=k("svg"),s=k("defs"),a=k("style"),l=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),c=k("g"),u=k("g"),f=k("path"),p=k("g"),h=k("circle"),d=k("circle"),m=Q(),g=e("h4"),y=W(E),w=Q(),b=e("p"),v=W(P),tt(f,"class","a"),tt(f,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),tt(f,"transform","translate(264.272 482.563)"),tt(u,"transform","translate(-7360.574 8503.438)"),tt(h,"class","c"),tt(h,"cx","30"),tt(h,"cy","30"),tt(h,"r","30"),tt(d,"class","d"),tt(d,"cx","30"),tt(d,"cy","30"),tt(d,"r","29"),tt(p,"class","b"),tt(p,"transform","translate(-7106 8970)"),tt(c,"transform","translate(7106 -8970)"),tt(i,"xmlns","http://www.w3.org/2000/svg"),tt(i,"width","60"),tt(i,"height","60"),tt(i,"viewBox","0 0 60 60"),tt(n,"class","NewPasswordSuccess"),tt(o,"class","FormContent"),tt(r,"class","FormLeftSide")},m(t,e){Y(t,r,e),q(r,o),q(o,n),q(n,i),q(i,s),q(s,a),q(a,l),q(i,c),q(c,u),q(u,f),q(c,p),q(p,h),q(p,d),q(n,m),q(n,g),q(g,y),q(n,w),q(n,b),q(b,v)},p(t,e){131072&e[0]&&E!==(E=t[17]("forgotPasswordForm.forgotPasswordSuccess")+"")&&et(y,E),131072&e[0]&&P!==(P=t[17]("forgotPasswordForm.forgotPasswordSuccessDescription")+"")&&et(v,P)},d(t){t&&K(r)}}}function ao(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E,P,_,T,A,S,L,N,C,x,O=r[17]("forgotPasswordForm.goToLogin")+"",F=r[17]("forgotPasswordForm.forgotPasswordTitle")+"",R=r[17]("forgotPasswordForm.forgotPasswordEmail")+"",I=r[17]("forgotPasswordForm.forgotPasswordReset")+"",U=r[2]&&mo(r);return{c(){o=e("div"),n=e("div"),i=e("button"),s=k("svg"),a=k("defs"),l=k("style"),c=W(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),u=k("path"),f=Q(),p=W(O),h=Q(),d=e("h4"),m=W(F),g=Q(),y=e("div"),w=e("div"),b=e("label"),v=W(R),E=W(":"),P=e("span"),P.textContent="*",_=Q(),T=e("input"),A=Q(),U&&U.c(),S=Q(),L=e("button"),N=W(I),tt(u,"class","a"),tt(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),tt(u,"transform","translate(24 24) rotate(180)"),tt(s,"xmlns","http://www.w3.org/2000/svg"),tt(s,"viewBox","0 0 24 24"),tt(i,"class","backButtonForgotPassword"),tt(d,"class","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(P,"class","FormRequired"),tt(b,"for","ResetPasswordByEmail"),tt(T,"type","text"),tt(T,"id","ResetPasswordByEmail"),tt(w,"class","ResetPasswordByEmail "),tt(L,"class","resetPasswordButton"),tt(y,"class","FormContent"),tt(o,"class","FormLeftSide")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(s,a),q(a,l),q(l,c),q(s,u),q(i,f),q(i,p),q(n,h),q(n,d),q(d,m),q(o,g),q(o,y),q(y,w),q(w,b),q(b,v),q(b,E),q(b,P),q(w,_),q(w,T),rt(T,r[4]),q(w,A),U&&U.m(w,null),q(y,S),q(y,L),q(L,N),C||(x=[J(i,"click",r[26]),J(T,"input",r[27]),J(L,"click",r[28])],C=!0)},p(t,e){131072&e[0]&&O!==(O=t[17]("forgotPasswordForm.goToLogin")+"")&&et(p,O),131072&e[0]&&F!==(F=t[17]("forgotPasswordForm.forgotPasswordTitle")+"")&&et(m,F),131072&e[0]&&R!==(R=t[17]("forgotPasswordForm.forgotPasswordEmail")+"")&&et(v,R),16&e[0]&&T.value!==t[4]&&rt(T,t[4]),t[2]?U?U.p(t,e):(U=mo(t),U.c(),U.m(w,null)):U&&(U.d(1),U=null),131072&e[0]&&I!==(I=t[17]("forgotPasswordForm.forgotPasswordReset")+"")&&et(N,I)},d(t){t&&K(o),U&&U.d(),C=!1,H(x)}}}function lo(r){let o,n,i,s,a,l,c,u,f,p;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("path"),c=k("circle"),tt(l,"class","a"),tt(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"),tt(l,"transform","translate(0)"),tt(c,"class","a"),tt(c,"cx","2.779"),tt(c,"cy","2.779"),tt(c,"r","2.779"),tt(c,"transform","translate(20.827 30.303)"),tt(a,"transform","translate(-14.185 -27.832)"),tt(o,"class",u="TogglePasswordVisibility "+(r[9]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.843"),tt(o,"height","10.5"),tt(o,"viewBox","0 0 18.843 10.5")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),f||(p=J(o,"click",r[32]),f=!0)},p(t,e){512&e[0]&&u!==(u="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&tt(o,"class",u)},d(t){t&&K(o),f=!1,p()}}}function co(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("circle"),c=k("g"),u=k("path"),f=k("path"),p=k("g"),h=k("path"),d=k("path"),m=k("rect"),tt(l,"class","a"),tt(l,"cx","0.05"),tt(l,"cy","0.05"),tt(l,"r","0.05"),tt(l,"transform","translate(121.017 31.148)"),tt(u,"class","a"),tt(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),tt(u,"transform","translate(-142.164 -39.123)"),tt(f,"class","a"),tt(f,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),tt(f,"transform","translate(-136.413 -42.068)"),tt(c,"transform","translate(117.499 27.37)"),tt(h,"class","a"),tt(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),tt(h,"transform","translate(-110.856 -33.157)"),tt(d,"class","a"),tt(d,"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"),tt(d,"transform","translate(-130.743 -29.617)"),tt(p,"transform","translate(110.856 24.899)"),tt(m,"class","a"),tt(m,"width","0.972"),tt(m,"height","15.861"),tt(m,"rx","0.486"),tt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),tt(a,"transform","translate(-110.856 -23.242)"),tt(o,"class",g="TogglePasswordVisibility "+(r[9]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.844"),tt(o,"height","12.887"),tt(o,"viewBox","0 0 18.844 12.887")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),q(c,u),q(c,f),q(a,p),q(p,h),q(p,d),q(a,m),y||(w=J(o,"click",r[31]),y=!0)},p(t,e){512&e[0]&&g!==(g="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&tt(o,"class",g)},d(t){t&&K(o),y=!1,w()}}}function uo(t){let r,o,n=t[17]("forgotPasswordForm.forgotNewPasswordPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotNewPasswordPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function fo(r){let o,n,i,s,a,l,c,u,f,p;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("path"),c=k("circle"),tt(l,"class","a"),tt(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"),tt(l,"transform","translate(0)"),tt(c,"class","a"),tt(c,"cx","2.779"),tt(c,"cy","2.779"),tt(c,"r","2.779"),tt(c,"transform","translate(20.827 30.303)"),tt(a,"transform","translate(-14.185 -27.832)"),tt(o,"class",u="TogglePasswordVisibility "+(r[10]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.843"),tt(o,"height","10.5"),tt(o,"viewBox","0 0 18.843 10.5")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),f||(p=J(o,"click",r[36]),f=!0)},p(t,e){1024&e[0]&&u!==(u="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&tt(o,"class",u)},d(t){t&&K(o),f=!1,p()}}}function po(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("circle"),c=k("g"),u=k("path"),f=k("path"),p=k("g"),h=k("path"),d=k("path"),m=k("rect"),tt(l,"class","a"),tt(l,"cx","0.05"),tt(l,"cy","0.05"),tt(l,"r","0.05"),tt(l,"transform","translate(121.017 31.148)"),tt(u,"class","a"),tt(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),tt(u,"transform","translate(-142.164 -39.123)"),tt(f,"class","a"),tt(f,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),tt(f,"transform","translate(-136.413 -42.068)"),tt(c,"transform","translate(117.499 27.37)"),tt(h,"class","a"),tt(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),tt(h,"transform","translate(-110.856 -33.157)"),tt(d,"class","a"),tt(d,"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"),tt(d,"transform","translate(-130.743 -29.617)"),tt(p,"transform","translate(110.856 24.899)"),tt(m,"class","a"),tt(m,"width","0.972"),tt(m,"height","15.861"),tt(m,"rx","0.486"),tt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),tt(a,"transform","translate(-110.856 -23.242)"),tt(o,"class",g="TogglePasswordVisibility "+(r[10]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.844"),tt(o,"height","12.887"),tt(o,"viewBox","0 0 18.844 12.887")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),q(c,u),q(c,f),q(a,p),q(p,h),q(p,d),q(a,m),y||(w=J(o,"click",r[35]),y=!0)},p(t,e){1024&e[0]&&g!==(g="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&tt(o,"class",g)},d(t){t&&K(o),y=!1,w()}}}function ho(t){let r,o,n=t[17]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function mo(t){let r,o,n=t[17]("forgotPasswordForm.forgotPasswordEmailError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","ForgotPasswordError")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotPasswordEmailError")+"")&&et(o,n)},d(t){t&&K(r)}}}function go(){let r;return{c(){r=e("div"),tt(r,"class","FormRightSide"),r.style.setProperty("background","url('https://storage.googleapis.com/stateless-winmasters-one/2021/03/908d327e-em_welcome_promo.jpg') no-repeat","")},m(t,e){Y(t,r,e)},d(t){t&&K(r)}}}function yo(t){let r,o,n,i,s,a=t[0]&&oo(t),l=function(t){let r,o;function n(t){return t[1]?ao:t[3]?so:t[5]?io:t[6]?no:void 0}let i=n(t),s=i&&i(t),a=!t[7]&&go();return{c(){r=e("div"),s&&s.c(),o=Q(),a&&a.c(),tt(r,"class","FormContainer")},m(t,e){Y(t,r,e),s&&s.m(r,null),q(r,o),a&&a.m(r,null)},p(t,e){i===(i=n(t))&&s?s.p(t,e):(s&&s.d(1),s=i&&i(t),s&&(s.c(),s.m(r,o))),t[7]?a&&(a.d(1),a=null):a||(a=go(),a.c(),a.m(r,null))},d(t){t&&K(r),s&&s.d(),a&&a.d()}}}(t);return{c(){a&&a.c(),r=c(),o=Q(),n=e("div"),i=Q(),l.c(),s=c(),this.c=f,tt(n,"class","g-recaptcha"),tt(n,"data-sitekey",t[0])},m(t,e){a&&a.m(document.head,null),q(document.head,r),Y(t,o,e),Y(t,n,e),Y(t,i,e),l.m(t,e),Y(t,s,e)},p(t,e){t[0]?a?a.p(t,e):(a=oo(t),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null),1&e[0]&&tt(n,"data-sitekey",t[0]),l.p(t,e)},i:f,o:f,d(t){a&&a.d(t),K(r),t&&K(o),t&&K(n),t&&K(i),l.d(t),t&&K(s)}}}function wo(e,t,o){let r;var n=eo;e.$$.on_destroy.push(I(n,t=>o(17,r=t)));var i=this&&this.__awaiter||function(t,s,a,l){return new(a=a||Promise)(function(r,e){function o(t){try{i(l.next(t))}catch(t){e(t)}}function n(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(o,n)}i((l=l.apply(t,s||[])).next())})};let s,a,{endpoint:l=""}=t,{forgotpasswordkey:c=""}=t,{captchakey:u=""}=t,{lang:f=""}=t,p=!0,h=!1,d=!1,m="",g=!1,y=!1,w=!1,b=window.navigator.userAgent,v,E=!1,P=!1,_=!1,T=!1,A="",S="";Object.keys(ro).forEach(t=>{Ur(t,ro[t])});const L={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},N=t=>{switch(t){case"userNewPassword":o(13,_=!_),o(11,s.type=_?"text":"password",s);break;case"userConfirmPassword":o(14,T=!T),o(12,a.type=T?"text":"password",a)}},C=t=>{switch(t){case"ToEmailSuccess":o(2,h=!1),o(1,p=!1),o(3,d=!0);break;case"ToReset":o(1,p=!1),o(5,g=!0);break;case"ToSuccess":o(5,g=!1),o(6,y=!0)}},x=()=>{window.postMessage({type:"ToLogin"},window.location.href)},O=()=>{new Promise((e,t)=>{grecaptcha.ready(()=>{grecaptcha.execute(u,{action:"submit"}).then(t=>{e(t)})})}).then(t=>{let e=new URL(`${l}/player/resetpassword`),r={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":t}};e.searchParams.append("email",m),fetch(e,r).then(t=>{200==t.status?C("ToEmailSuccess"):o(2,h=!0)})})},F=()=>{var t=new URL(`${l}/player/ResetPasswordByHashKey`),e={hashKey:c,plainTextPassword:A},e={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t,e).then(t=>{200==t.status&&C("ToSuccess")})},R=t=>!!L.password.test(t);return t=()=>i(void 0,void 0,void 0,function*(){var t;((t=b).toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))&&o(7,w=!0)}),function(){if(!U)throw new Error("Function called outside component initialization");return U}().$$.on_mount.push(t),e.$$set=t=>{"endpoint"in t&&o(23,l=t.endpoint),"forgotpasswordkey"in t&&o(24,c=t.forgotpasswordkey),"captchakey"in t&&o(0,u=t.captchakey),"lang"in t&&o(25,f=t.lang)},e.$$.update=()=>{var t;16777216&e.$$.dirty[0]&&c&&c&&0<c.length&&C("ToReset"),33554432&e.$$.dirty[0]&&f&&(t=f,Xr.set(t))},[u,p,h,d,m,g,y,w,!1,E,P,s,a,_,T,A,S,r,N,x,O,F,(t,e,r)=>{"NewPassword"===r.id?(o(9,E=!R(e)),S&&o(10,P=A!==S||!R(e))):o(10,P=A!==S||!R(e)),o(8,v=!(E||P||!A||!S))},l,c,f,()=>x(),function(){m=this.value,o(4,m)},()=>O(),function(){A=this.value,o(15,A)},function(t){M[t?"unshift":"push"](()=>{s=t,o(11,s)})},()=>N("userNewPassword"),()=>N("userNewPassword"),function(){S=this.value,o(16,S)},function(t){M[t?"unshift":"push"](()=>{a=t,o(12,a)})},()=>N("userConfirmPassword"),()=>N("userConfirmPassword"),()=>F(),()=>x()]}class bo extends a{constructor(t){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}.backButtonForgotPassword{display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:24px !important;line-height:24px;border-radius:5px;border:none;background:transparent;height:60px;padding:0;text-transform:uppercase;font-size:16px;cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emfe-w-color-primary, #D0046C)}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:var(--emfe-w-color-gray-50, #F9F8F8)}.FormHeaderTitle{color:var(--emfe-w-color-black, #000000);font-size:28px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.FormRequired{color:var(--emfe-w-color-secondary, #FD2839)}.ForgotPasswordError{color:var(--emfe-w-color-secondary, #FD2839);margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emfe-w-color-green, #48952a);font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:16px;color:var(--emfe-w-color-black, #000000);text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-color-primary, #D0046C)}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:14px;font-weight:300;padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.ResetPasswordByEmail.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)}.resetPasswordButton{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}.resetPasswordButton[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.InvalidInput{color:var(--emfe-w-color-secondary, #FD2839);font-size:10px;position:absolute;bottom:10px;line-height:10px}.FormLeftSide{padding:40px 20px;height:460px}.FormMobileContainer .ResetPasswordByEmail input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}</style>",s(this,{target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},wo,yo,r,{endpoint:23,forgotpasswordkey:24,captchakey:0,lang:25},[-1,-1]),t&&(t.target&&Y(t.target,this,t.anchor),t.props&&(this.$set(t.props),b()))}static get observedAttributes(){return["endpoint","forgotpasswordkey","captchakey","lang"]}get endpoint(){return this.$$.ctx[23]}set endpoint(t){this.$set({endpoint:t}),b()}get forgotpasswordkey(){return this.$$.ctx[24]}set forgotpasswordkey(t){this.$set({forgotpasswordkey:t}),b()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$set({captchakey:t}),b()}get lang(){return this.$$.ctx[25]}set lang(t){this.$set({lang:t}),b()}}return customElements.get("general-player-forgot-password-form")||customElements.define("general-player-forgot-password-form",bo),bo});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function f(){}function p(t){return t()}function h(){return Object.create(null)}function H(t){t.forEach(p)}function Z(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function I(t,...e){if(null==t)return f;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function q(t,e){t.appendChild(e)}function Y(t,e,r){t.insertBefore(e,r||null)}function K(t){t.parentNode.removeChild(t)}function e(t){return document.createElement(t)}function k(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function W(t){return document.createTextNode(t)}function Q(){return W(" ")}function c(){return W("")}function J(t,e,r,o){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r,o)}function tt(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function et(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function rt(t,e){t.value=null==e?"":e}let U;function d(t){U=t}const m=[],M=[],o=[],t=[],g=Promise.resolve();let y=!1;function w(t){o.push(t)}let n=!1;const i=new Set;function b(){if(!n){n=!0;do{for(let t=0;t<m.length;t+=1){var e=m[t];d(e),function(t){{var e;null!==t.fragment&&(t.update(),H(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(w))}}(e.$$)}for(d(null),m.length=0;M.length;)M.pop()();for(let t=0;t<o.length;t+=1){const r=o[t];i.has(r)||(i.add(r),r())}}while(o.length=0,m.length);for(;t.length;)t.pop()();y=!1,n=!1,i.clear()}}const v=new Set;function s(o,t,e,r,n,i,s=[-1]){var a,l=U;d(o);const c=o.$$={fragment:null,ctx:null,props:i,update:f,not_equal:n,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=e?e(o,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return c.ctx&&n(c.ctx[t],c.ctx[t]=r)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](r),u&&(r=t,-1===(t=o).$$.dirty[0]&&(m.push(t),y||(y=!0,g.then(b)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],c.update(),u=!0,H(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){const f=(r=t.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(f),f.forEach(K)}else c.fragment&&c.fragment.c();t.intro&&(a=o.$$.fragment)&&a.i&&(v.delete(a),a.i(void 0)),function(e,t,r,o){const{fragment:n,on_mount:i,on_destroy:s,after_update:a}=e.$$;n&&n.m(t,r),o||w(()=>{var t=i.map(p).filter(Z);s?s.push(...t):H(t),e.$$.on_mount=[]}),a.forEach(w)}(o,t.target,t.anchor,t.customElement),b()}d(l)}let a;"function"==typeof HTMLElement&&(a=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(p).filter(Z);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){H(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(H(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=f}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var l,u,E="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==E&&E,P="URLSearchParams"in E,_="Symbol"in E&&"iterator"in Symbol,T="FileReader"in E&&"Blob"in E&&function(){try{return new Blob,!0}catch(t){return!1}}(),A="FormData"in E,S="ArrayBuffer"in E;function L(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function N(t){return t="string"!=typeof t?String(t):t}function C(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _&&(t[Symbol.iterator]=function(){return t}),t}function x(e){this.map={},e instanceof x?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function O(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function F(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function R(t){var e=new FileReader,r=F(e);return e.readAsArrayBuffer(t),r}function D(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function G(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:T&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:A&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:P&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():S&&T&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=D(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=D(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):P&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},T&&(this.blob=function(){var t=O(this);if(t)return t;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?O(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(R)}),this.text=function(){var t,e,r=O(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=F(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}S&&(l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&-1<l.indexOf(Object.prototype.toString.call(t))}),x.prototype.append=function(t,e){t=L(t),e=N(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},x.prototype.delete=function(t){delete this.map[L(t)]},x.prototype.get=function(t){return t=L(t),this.has(t)?this.map[t]:null},x.prototype.has=function(t){return this.map.hasOwnProperty(L(t))},x.prototype.set=function(t,e){this.map[L(t)]=N(e)},x.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},x.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),C(r)},x.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),C(e)},x.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),C(r)},_&&(x.prototype[Symbol.iterator]=x.prototype.entries);var j=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function B(t,e){if(!(this instanceof B))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(e=e||{}).body;if(t instanceof B){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new x(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new x(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<j.indexOf(t)?t:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function $(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function V(t,e){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new x(e.headers),this.url=e.url||"",this._initBody(t)}B.prototype.clone=function(){return new B(this,{body:this._bodyInit})},G.call(B.prototype),G.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new x(this.headers),url:this.url})},V.error=function(){var t=new V(null,{status:0,statusText:""});return t.type="error",t};var z=[301,302,303,307,308];V.redirect=function(t,e){if(-1===z.indexOf(e))throw new RangeError("Invalid status code");return new V(null,{status:e,headers:{location:t}})};var X=E.DOMException;try{new X}catch(f){(X=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),X.prototype.constructor=X}function ot(o,s){return new Promise(function(n,t){var e=new B(o,s);if(e.signal&&e.signal.aborted)return t(new X("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new x,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout(function(){n(new V(o,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new X("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&E.location.href?E.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(T?i.responseType="blob":S&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof x?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,N(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}ot.polyfill=!0,E.fetch||(E.fetch=ot,E.Headers=x,E.Request=B,E.Response=V),self.fetch.bind(self);var nt=function(t,e){return(nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function it(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}nt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function st(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&o>=t.length?void 0:t)&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function lt(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function ct(t){return"function"==typeof t}function ut(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var ft=ut(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function pt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var ht=(mt.prototype.unsubscribe=function(){var t,e,r,o,n;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=st(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(ct(i))try{i()}catch(t){n=t instanceof ft?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=st(i),c=l.next();!c.done;c=l.next()){var u=c.value;try{yt(u)}catch(t){n=null!=n?n:[],t instanceof ft?n=lt(lt([],at(n)),at(t.errors)):n.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(n)throw new ft(n)}},mt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)yt(t);else{if(t instanceof mt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},mt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},mt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},mt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&pt(e,t)},mt.prototype.remove=function(t){var e=this._teardowns;e&&pt(e,t),t instanceof mt&&t._removeParent(this)},mt.EMPTY=((Ge=new mt).closed=!0,Ge),mt),dt=ht.EMPTY;function mt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function gt(t){return t instanceof ht||t&&"closed"in t&&ct(t.remove)&&ct(t.add)&&ct(t.unsubscribe)}function yt(t){ct(t)?t():t.unsubscribe()}var wt=void 0,bt=!1,vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,lt([],at(t)))};function Et(){}function Pt(t){t()}var _t,Tt,At=(it(Nt,Tt=ht),Nt.create=function(t,e,r){return new St(t,e,r)},Nt.prototype.next=function(t){this.isStopped||this._next(t)},Nt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Nt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Nt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Tt.prototype.unsubscribe.call(this),this.destination=null)},Nt.prototype._next=function(t){this.destination.next(t)},Nt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Nt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Nt),St=(it(Lt,_t=At),Lt);function Lt(t,e,r){var o,n,i=_t.call(this)||this;return ct(t)?n=t:t&&(n=t.next,e=t.error,r=t.complete,i&&bt?(o=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:o=t,n=null==n?void 0:n.bind(o),e=null==e?void 0:e.bind(o),r=null==r?void 0:r.bind(o)),i.destination={next:n?Ct(n):Et,error:Ct(null!=e?e:xt),complete:r?Ct(r):Et},i}function Nt(t){var e=Tt.call(this)||this;return e.isStopped=!1,t?gt(e.destination=t)&&t.add(e):e.destination=Ot,e}function Ct(o){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{o.apply(void 0,lt([],at(t)))}catch(t){e=t,vt(function(){throw e})}}}function xt(t){throw t}var Ot={closed:!0,next:Et,error:xt,complete:Et},Ft="function"==typeof Symbol&&Symbol.observable||"@@observable";function Rt(t){return t}var It=(Ut.prototype.lift=function(t){var e=new Ut;return e.source=this,e.operator=t,e},Ut.prototype.subscribe=function(t,e,r){var o,n=this,i=(o=t)&&o instanceof At||o&&ct(o.next)&&ct(o.error)&&ct(o.complete)&&gt(o)?t:new St(t,e,r);return Pt(function(){var t=n.operator,e=n.source;i.add(t?t.call(i,e):e?n._subscribe(i):n._trySubscribe(i))}),i},Ut.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Ut.prototype.forEach=function(o,t){var n=this;return new(t=kt(t))(function(t,e){var r=n.subscribe(function(t){try{o(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Ut.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Ut.prototype[Ft]=function(){return this},Ut.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Rt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Ut.prototype.toPromise=function(t){var o=this;return new(t=kt(t))(function(t,e){var r;o.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Ut.create=function(t){return new Ut(t)},Ut);function Ut(t){t&&(this._subscribe=t)}function kt(t){return null!==(t=null!=t?t:wt)&&void 0!==t?t:Promise}var Mt,Dt,Gt,jt=ut(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Bt=(it(Zt,Gt=It),Zt.prototype.lift=function(t){var e=new $t(this,this);return e.operator=t,e},Zt.prototype._throwIfClosed=function(){if(this.closed)throw new jt},Zt.prototype.next=function(i){var s=this;Pt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var o=st(r),n=o.next();!n.done;n=o.next())n.value.next(i)}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}})},Zt.prototype.error=function(e){var r=this;Pt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},Zt.prototype.complete=function(){var e=this;Pt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},Zt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Zt.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),Zt.prototype._trySubscribe=function(t){return this._throwIfClosed(),Gt.prototype._trySubscribe.call(this,t)},Zt.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},Zt.prototype._innerSubscribe=function(t){var e=this.hasError,r=this.isStopped,o=this.observers;return e||r?dt:(o.push(t),new ht(function(){return pt(o,t)}))},Zt.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,o=this.isStopped;e?t.error(r):o&&t.complete()},Zt.prototype.asObservable=function(){var t=new It;return t.source=this,t},Zt.create=function(t,e){return new $t(t,e)},Zt),$t=(it(Ht,Dt=Bt),Ht.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},Ht.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},Ht.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},Ht.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:dt},Ht),Vt={now:function(){return(Vt.delegate||Date).now()},delegate:void 0},zt=(it(Xt,Mt=Bt),Xt.prototype.next=function(t){var e=this,r=e.isStopped,o=e._buffer,n=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(o.push(t),n||o.push(i.now()+e)),this._trimBuffer(),Mt.prototype.next.call(this,t)},Xt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,o=this._buffer.slice(),n=0;n<o.length&&!t.closed;n+=r?1:2)t.next(o[n]);return this._checkFinalizedStatuses(t),e},Xt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,n=(o?1:2)*t;if(t<1/0&&n<r.length&&r.splice(0,r.length-n),!o){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Xt);function Xt(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Vt);var o=Mt.call(this)||this;return o._bufferSize=t,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,e),o}function Ht(t,e){var r=Dt.call(this)||this;return r.destination=t,r.source=e,r}function Zt(){var t=Gt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let qt=[],Yt={};const Kt=[];function Wt(o,n=f){let i;const s=[];function a(t){if(r(o,t)&&(o=t,i)){const t=!Kt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Kt.push(e,o)}if(t){for(let t=0;t<Kt.length;t+=2)Kt[t][0](Kt[t+1]);Kt.length=0}}}return{set:a,update:function(t){a(t(o))},subscribe:function(t,e=f){const r=[t,e];return s.push(r),1===s.length&&(i=n(a)||f),t(o),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function Qt(t,a,e){const l=!Array.isArray(t),c=l?[t]:t,u=a.length<2;return{subscribe:Wt(e,e=>{let r=!1;const o=[];let n=0,i=f;const s=()=>{var t;n||(i(),t=a(l?o[0]:o,e),u?e(t):i=Z(t)?t:f)},t=c.map((t,e)=>I(t,t=>{o[e]=t,n&=~(1<<e),r&&s()},()=>{n|=1<<e}));return r=!0,s(),function(){H(t),i()}}).subscribe}}var Jt=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===te));var e},te="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?se(Array.isArray(t)?[]:{},t,e):t}function re(t,e,r){return t.concat(e).map(function(t){return ee(t,r)})}function oe(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function ne(t,e){try{return e in t}catch(t){return!1}}function ie(o,n,i){var s={};return i.isMergeableObject(o)&&oe(o).forEach(function(t){s[t]=ee(o[t],i)}),oe(n).forEach(function(e){var t,r;(!ne(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(ne(o,e)&&i.isMergeableObject(n[e])?s[e]=function(){if(!i.customMerge)return se;var t=i.customMerge(e);return"function"==typeof t?t:se}()(o[e],n[e],i):s[e]=ee(n[e],i))}),s}function se(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||re,r.isMergeableObject=r.isMergeableObject||Jt,r.cloneUnlessOtherwiseSpecified=ee;var o=Array.isArray(e);return o===Array.isArray(t)?o?r.arrayMerge(t,e,r):ie(t,e,r):ee(e,r)}se.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return se(t,e,r)},{})};var ae=se,le=function(t,e){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function ce(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}le(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ue,fe,pe,he=function(){return(he=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function de(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}function me(t){return t.type===fe.literal}function ge(t){return t.type===fe.number}function ye(t){return t.type===fe.date}function we(t){return t.type===fe.time}function be(t){return t.type===fe.select}function ve(t){return t.type===fe.plural}function Ee(t){return t.type===fe.tag}function Pe(t){return t&&"object"==typeof t&&t.type===pe.number}function _e(t){return t&&"object"==typeof t&&t.type===pe.dateTime}(je=ue=ue||{})[je.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",je[je.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",je[je.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",je[je.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",je[je.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",je[je.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",je[je.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",je[je.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",je[je.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",je[je.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",je[je.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",je[je.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",je[je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",je[je.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",je[je.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",je[je.INVALID_TAG=23]="INVALID_TAG",je[je.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",je[je.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",je[je.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Be=fe=fe||{})[Be.literal=0]="literal",Be[Be.argument=1]="argument",Be[Be.number=2]="number",Be[Be.date=3]="date",Be[Be.time=4]="time",Be[Be.select=5]="select",Be[Be.plural=6]="plural",Be[Be.pound=7]="pound",Be[Be.tag=8]="tag",($e=pe=pe||{})[$e.number=0]="number",$e[$e.dateTime=1]="dateTime";var Te=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ae=/(?:[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 Se,Le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ne=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ce=/^(@+)?(\+|#+)?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function Fe(t){var o={};return t.replace(Ce,function(t,e,r){return"string"!=typeof r?(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length):"+"===r?o.minimumSignificantDigits=e.length:"#"===e[0]?o.maximumSignificantDigits=e.length:(o.minimumSignificantDigits=e.length,o.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),o}function Re(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ie(t){return Re(t)||{}}function Ue(t){for(var s={},e=0,r=t;e<r.length;e++){var o,n=r[e];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.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=n.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=he(he(he({},s),{notation:"scientific"}),n.options.reduce(function(t,e){return he(he({},t),Ie(e))},{}));continue;case"engineering":s=he(he(he({},s),{notation:"engineering"}),n.options.reduce(function(t,e){return he(he({},t),Ie(e))},{}));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(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(xe,function(t,e,r,o,n,i){if(e)s.minimumIntegerDigits=r.length;else{if(o&&n)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oe.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(Ne.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ne,function(t,e,r,o,n,i){return"*"===r?s.minimumFractionDigits=e.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:n&&i?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),n.options.length&&(s=he(he({},s),Fe(n.options[0])))}else Ce.test(n.stem)?s=he(he({},s),Fe(n.stem)):((o=Re(n.stem))&&(s=he(he({},s),o)),(o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Oe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem))&&(s=he(he({},s),o)))}return s}var ke=new RegExp("^"+Te.source+"*"),Me=new RegExp(Te.source+"*$");function De(t,e){return{start:t,end:e}}var Ge=!!String.prototype.startsWith,Ft=!!String.fromCodePoint,Bt=!!Object.fromEntries,je=!!String.prototype.codePointAt,Be=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,Ve=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Te=!0;try{Te="a"===(null===(Se=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Se?void 0:Se[0])}catch(f){Te=!1}var ze,Xe,He=Ge?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Ze=Ft?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,o="",n=t.length,i=0;i<n;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},qe=Bt?Object.fromEntries:function(t){for(var e={},r=0,o=t;r<o.length;r++){var n=o[r],i=n[0],n=n[1];e[i]=n}return e},Ye=je?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var o,n=t.charCodeAt(e);return n<55296||56319<n||e+1===r||(o=t.charCodeAt(e+1))<56320||57343<o?n:o-56320+(n-55296<<10)+65536}},Ke=Be?function(t){return t.trimStart()}:function(t){return t.replace(ke,"")},We=$e?function(t){return t.trimEnd()}:function(t){return t.replace(Me,"")};function Qe(t,e){return new RegExp(t,e)}Xe=Te?(ze=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return ze.lastIndex=e,null!==(t=ze.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,o=[];;){var n=Ye(t,e);if(void 0===n||rr(n)||(33<=(r=n)&&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;o.push(n),e+=65536<=n?2:1}return Ze.apply(void 0,o)};var Je=(tr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},tr.prototype.parseMessage=function(t,e,r){for(var o=[];!this.isEOF();){var n,i=this.char();if(123===i){if((n=this.parseArgument(t,r)).err)return n;o.push(n.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ue.UNMATCHED_CLOSING_TAG,De(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&er(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;o.push(n.val)}else{if((n=this.parseLiteral(t,e)).err)return n;o.push(n.val)}}else{i=this.clonePosition();this.bump(),o.push({type:fe.pound,location:De(i,this.clonePosition())})}}}return{val:o,err:null}},tr.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<"+o+"/>",location:De(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(t+1,e,!0);if(n.err)return n;t=n.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(ue.INVALID_TAG,De(e,this.clonePosition()));n=this.clonePosition();return o!==this.parseTagName()?this.error(ue.UNMATCHED_CLOSING_TAG,De(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:o,children:t,location:De(r,this.clonePosition())},err:null}:this.error(ue.INVALID_TAG,De(e,this.clonePosition())))}return this.error(ue.UNCLOSED_TAG,De(r,this.clonePosition()))}return this.error(ue.INVALID_TAG,De(r,this.clonePosition()))},tr.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},tr.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(e);if(n)o+=n;else{n=this.tryParseUnquoted(t,e);if(n)o+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;o+=n}}}r=De(r,this.clonePosition());return{val:{type:fe.literal,value:o,location:r},err:null}},tr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},tr.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Ze.apply(void 0,e)},tr.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),Ze(r))},tr.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ue.EMPTY_ARGUMENT,De(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ue.MALFORMED_ARGUMENT,De(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:o,location:De(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition())):this.parseArgumentOptions(t,e,o,r);default:return this.error(ue.MALFORMED_ARGUMENT,De(r,this.clonePosition()))}},tr.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xe(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:De(t,this.clonePosition())}},tr.prototype.parseArgumentOptions=function(t,e,r,o){var n,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ue.EXPECT_ARGUMENT_TYPE,De(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=We(p.val)).length)return this.error(ue.EXPECT_ARGUMENT_STYLE,De(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:De(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(o)).err)return h;var u=De(o,this.clonePosition());if(l&&He(null==l?void 0:l.style,"::",0)){c=Ke(l.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?p:{val:{type:fe.number,value:r,location:u,style:p.val},err:null};if(0===c.length)return this.error(ue.EXPECT_DATE_TIME_SKELETON,u);var f={type:pe.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},c.replace(Ae,function(t){var e=t.length;switch(t[0]){case"G":n.era=4===e?"long":5===e?"narrow":"short";break;case"y":n.year=2===e?"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":n.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][e-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][e-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][e-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][e-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][e-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":n.minute=["numeric","2-digit"][e-1];break;case"s":n.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=e<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""}),n):{}};return{val:{type:"date"===s?fe.date:fe.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===s?fe.number:"date"===s?fe.date:fe.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ue.EXPECT_SELECT_ARGUMENT_OPTIONS,De(l,he({},l)));this.bumpSpace();var p,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ue.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=p.val}u=this.tryParsePluralOrSelectOptions(t,s,e,u);if(u.err)return u;if((h=this.tryParseArgumentClose(o)).err)return h;var h=De(o,this.clonePosition());return"select"===s?{val:{type:fe.select,value:r,options:qe(u.val),location:h},err:null}:{val:{type:fe.plural,value:r,options:qe(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(ue.INVALID_ARGUMENT_TYPE,De(i,a))}},tr.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ue.EXPECT_ARGUMENT_CLOSING_BRACE,De(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},tr.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ue.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,De(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},tr.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,o=t.split(Le).filter(function(t){return 0<t.length});r<o.length;r++){var n=o[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var i=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:n})}return e}(t)}catch(t){return this.error(ue.INVALID_NUMBER_SKELETON,e)}return{val:{type:pe.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ue(r):{}},err:null}},tr.prototype.tryParsePluralOrSelectOptions=function(t,e,r,o){for(var n=!1,i=[],s=new Set,a=o.value,l=o.location;;){if(0===a.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,ue.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=De(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===e?ue.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ue.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ue.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,De(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,r);if(u.err)return u;c=this.tryParseArgumentClose(f);if(c.err)return c;i.push([a,{value:u.val,location:De(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===i.length?this.error("select"===e?ue.EXPECT_SELECT_ARGUMENT_SELECTOR:ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,De(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(ue.MISSING_OTHER_CLAUSE,De(this.clonePosition(),this.clonePosition())):{val:i,err:null}},tr.prototype.tryParseDecimalInteger=function(t,e){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,i=10*i+(s-48),this.bump()}o=De(o,this.clonePosition());return n?Ve(i*=r)?{val:i,err:null}:this.error(e,o):this.error(t,o)},tr.prototype.offset=function(){return this.position.offset},tr.prototype.isEOF=function(){return this.offset()===this.message.length},tr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},tr.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ye(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},tr.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},tr.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},tr.prototype.bumpIf=function(t){if(He(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},tr.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},tr.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},tr.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},tr.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},tr);function tr(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function er(t){return 97<=t&&t<=122||65<=t&&t<=90}function rr(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function or(t,e){e=he({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new Je(t,e).parse();if(r.err){t=SyntaxError(ue[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,be(t)||ve(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else ge(t)&&Pe(t.style)||(ye(t)||we(t))&&_e(t.style)?delete t.style.location:Ee(t)&&r(t.children)})}(r.val),r.val}function nr(t,e){var r=e&&e.cache?e.cache:fr,o=e&&e.serializer?e.serializer:lr;return(e&&e.strategy?e.strategy:function(t,e){return ar(t,this,1===t.length?ir:sr,e.cache.create(),e.serializer)})(t,{cache:r,serializer:o})}function ir(t,e,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),r=e.get(n);return void 0===r&&(r=t.call(this,o),e.set(n,r)),r}function sr(t,e,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),r=e.get(n);return void 0===r&&(r=t.apply(this,o),e.set(n,r)),r}function ar(t,e,r,o,n){return r.bind(e,t,o,n)}var lr=function(){return JSON.stringify(arguments)};function cr(){this.cache=Object.create(null)}cr.prototype.has=function(t){return t in this.cache},cr.prototype.get=function(t){return this.cache[t]},cr.prototype.set=function(t,e){this.cache[t]=e};var ur,fr={create:function(){return new cr}},pr={variadic:function(t,e){return ar(t,this,sr,e.cache.create(),e.serializer)},monadic:function(t,e){return ar(t,this,ir,e.cache.create(),e.serializer)}};(Te=ur=ur||{}).MISSING_VALUE="MISSING_VALUE",Te.INVALID_VALUE="INVALID_VALUE",Te.MISSING_INTL_API="MISSING_INTL_API";var hr,dr,mr,gr,yr,wr=(ce(Ar,yr=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),br=(ce(Tr,gr=wr),Tr),vr=(ce(_r,mr=wr),_r),Er=(ce(Pr,dr=wr),Pr);function Pr(t,e){return dr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',ur.MISSING_VALUE,e)||this}function _r(t,e,r){return mr.call(this,'Value for "'+t+'" must be of type '+e,ur.INVALID_VALUE,r)||this}function Tr(t,e,r,o){return gr.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',ur.INVALID_VALUE,o)||this}function Ar(t,e,r){t=yr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Sr(t,e,r,o,n,i,s){if(1===t.length&&me(t[0]))return[{type:hr.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];if(me(u))a.push({type:hr.literal,value:u.value});else if(u.type===fe.pound)"number"==typeof i&&a.push({type:hr.literal,value:r.getNumberFormat(e).format(i)});else{var f=u.value;if(!(n&&f in n))throw new Er(f,s);var p=n[f];if(u.type===fe.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?hr.literal:hr.object,value:p});else if(ye(u)){var h="string"==typeof u.style?o.date[u.style]:_e(u.style)?u.style.parsedOptions:void 0;a.push({type:hr.literal,value:r.getDateTimeFormat(e,h).format(p)})}else if(we(u))h="string"==typeof u.style?o.time[u.style]:_e(u.style)?u.style.parsedOptions:void 0,a.push({type:hr.literal,value:r.getDateTimeFormat(e,h).format(p)});else if(ge(u))(h="string"==typeof u.style?o.number[u.style]:Pe(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),a.push({type:hr.literal,value:r.getNumberFormat(e,h).format(p)});else{if(Ee(u)){var d=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new vr(m,"function",s);d=f(Sr(d,e,r,o,n,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?hr.literal:hr.object,value:t}}))}if(be(u)){if(!(g=u.options[p]||u.options.other))throw new br(u.value,p,Object.keys(u.options),s);a.push.apply(a,Sr(g.value,e,r,o,n))}else if(ve(u)){if(!(g=u.options["="+p])){if(!Intl.PluralRules)throw new wr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ur.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:u.pluralType}).select(p-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new br(u.value,p,Object.keys(u.options),s);a.push.apply(a,Sr(g.value,e,r,o,n,p-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===hr.literal&&e.type===hr.literal?r.value+=e.value:t.push(e),t},[])}function Lr(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(Te=hr=hr||{})[Te.literal=0]="literal",Te[Te.object=1]="object";var Nr=(Object.defineProperty(Cr,"defaultLocale",{get:function(){return Cr.memoizedDefaultLocale||(Cr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Cr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Cr.memoizedDefaultLocale=null,Cr.__parse=or,Cr.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"}}},Cr);function Cr(t,e,r,o){var n,i,s=this;if(void 0===e&&(e=Cr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===hr.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Sr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Cr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Cr.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=Cr.formats,(i=r)?Object.keys(n).reduce(function(t,e){var r,o;return t[e]=(r=n[e],(o=i[e])?he(he(he({},r||{}),o||{}),Object.keys(r).reduce(function(t,e){return t[e]=he(he({},r[e]),o[e]||{}),t},{})):r),t},he({},n)):n),this.locales=e,this.formatters=o&&o.formatters||{getNumberFormat:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,de([void 0],e)))},{cache:Lr((o=void 0===(o=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:o).number),strategy:pr.variadic}),getDateTimeFormat:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,de([void 0],e)))},{cache:Lr(o.dateTime),strategy:pr.variadic}),getPluralRules:nr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,de([void 0],e)))},{cache:Lr(o.pluralRules),strategy:pr.variadic})}}const xr={},Or=(e,r)=>{if(null!=r){if(r in xr&&e in xr[r])return xr[r][e];var o,n,i=Zr(r);for(let t=0;t<i.length;t++){var s=(o=i[t],n=e,Ir(o)?function(t,e){if(e in t)return t[e];const r=e.split(".");let o=t;for(let t=0;t<r.length;t++)if("object"==typeof o){if(0<t){const e=r.slice(t,r.length).join(".");if(e in o){o=o[e];break}}o=o[r[t]]}else o=void 0;return o}(function(t){return Fr[t]||null}(o),n):null);if(s)return o=e,n=r,(s=s)&&(n in xr||(xr[n]={}),o in xr[n]||(xr[n][o]=s),s)}}};let Fr;const Rr=Wt({});function Ir(t){return t in Fr}function Ur(e,...r){delete xr[e],Rr.update(t=>(t[e]=ae.all([t[e]||{},...r]),t))}Qt([Rr],([t])=>Object.keys(t)),Rr.subscribe(t=>Fr=t);const kr={};function Mr(t){return kr[t]}function Dr(t){return Zr(t).some(t=>{return null===(t=Mr(t))||void 0===t?void 0:t.size})}const Gr={};function jr(t){if(!Dr(t))return t in Gr?Gr[t]:void 0;const e=Zr(t).map(t=>{var e=Mr(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Gr[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){kr[t].delete(e),0===kr[t].size&&delete kr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Ur(e,...t))}(t))).then(()=>Dr(t)?jr(t):void delete Gr[t]),Gr[t]}function Br(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const $r={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const Vr=Wt(!1);let zr;const Xr=Wt(null);function Hr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Zr(t,e=$r.fallbackLocale){t=Hr(t);return e?[...new Set([...t,...Hr(e)])]:t}Xr.subscribe(t=>{zr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const qr=Xr.set;Xr.set=e=>{if(function(t){if(null!=t){var e=Zr(t);for(let t=0;t<e.length;t++){var r=e[t];if(Ir(r))return r}}}(e)&&Dr(e)){var{loadingDelay:r}=$r;let t;return"undefined"!=typeof window&&null!=zr&&r?t=window.setTimeout(()=>Vr.set(!0),r):Vr.set(!0),jr(e).then(()=>{qr(e)}).finally(()=>{clearTimeout(t),Vr.set(!1)})}return qr(e)},Xr.update=t=>qr(t(zr));const Yr=r=>{const o=Object.create(null);return t=>{var e=JSON.stringify(t);return e in o?o[e]:o[e]=r(t)}},Kr=(t,e)=>{var{formats:r}=$r;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Wr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Kr("number",r)),new Intl.NumberFormat(e,t)}),Qr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Kr("date",r):0===Object.keys(t).length&&(t=Kr("date","short")),new Intl.DateTimeFormat(e,t)}),Jr=Yr(t=>{var{locale:e,format:r}=t,t=Br(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Kr("time",r):0===Object.keys(t).length&&(t=Kr("time","short")),new Intl.DateTimeFormat(e,t)}),to=Yr((t,e=zr)=>new Nr(t,e,$r.formats,{ignoreTag:$r.ignoreTag})),eo=Qt([Xr,Rr],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:o=zr,default:n}=e;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Or(t,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else $r.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Zr(o).join('", "')}".${Dr(zr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=n||t;if(!r)return i;let s=i;try{s=to(i,o).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Jr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Qr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=Br(t,["locale"]);return Wr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr,Rr],()=>(t,e=zr)=>Or(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==qt.indexOf(t)&&(e=new zt(e),Yt[t]=e,qt.push(t)),Yt[t]}};const ro={en:{forgotPasswordForm:{goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",forgotPasswordEmail:"Email",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login"}},tr:{forgotPasswordForm:{goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",forgotPasswordEmail:"E-posta",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlamak için talimatları içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Onay şifresi yeni şifreyle eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için tıklayınız"}},ro:{forgotPasswordForm:{goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parola Uitata",forgotPasswordEmail:"Email",forgotPasswordEmailError:"Acest email nu exista",forgotPasswordReset:"Reseteaza parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instructiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parola",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie sa fie intre 8 si 20 de caractere, sa contina o litera mare, o cifra si un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmata trebuie sa fie la fel ca parola noua si sa respecte aceleasi reguli",forgotNewPasswordButton:"Schimba parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbata cu succes.",forgotChangePasswordLogin:"Autentificare"}}};function oo(t){let r,o;return{c(){r=e("script"),r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[0])&&tt(r,"src",o),r.async=!0,r.defer=!0},m(t,e){Y(t,r,e)},p(t,e){1&e[0]&&r.src!==(o="//www.google.com/recaptcha/api.js?render="+t[0])&&tt(r,"src",o)},d(t){t&&K(r)}}}function no(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E,P,_,T,A,S,L=r[17]("forgotPasswordForm.forgotChangePasswordTitle")+"",N=r[17]("forgotPasswordForm.forgotChangePasswordDescription")+"",C=r[17]("forgotPasswordForm.forgotChangePasswordLogin")+"";return{c(){o=e("div"),n=e("div"),i=e("div"),s=k("svg"),a=k("defs"),l=k("style"),c=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),u=k("g"),f=k("g"),p=k("path"),h=k("g"),d=k("circle"),m=k("circle"),g=Q(),y=e("h4"),w=W(L),b=Q(),v=e("p"),E=W(N),P=Q(),_=e("button"),T=W(C),tt(p,"class","a"),tt(p,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),tt(p,"transform","translate(264.272 482.563)"),tt(f,"transform","translate(-7360.574 8503.438)"),tt(d,"class","c"),tt(d,"cx","30"),tt(d,"cy","30"),tt(d,"r","30"),tt(m,"class","d"),tt(m,"cx","30"),tt(m,"cy","30"),tt(m,"r","29"),tt(h,"class","b"),tt(h,"transform","translate(-7106 8970)"),tt(u,"transform","translate(7106 -8970)"),tt(s,"xmlns","http://www.w3.org/2000/svg"),tt(s,"width","60"),tt(s,"height","60"),tt(s,"viewBox","0 0 60 60"),tt(i,"class","NewPasswordSuccess"),tt(_,"class","resetPasswordButton"),tt(n,"class","FormContent"),tt(o,"class","FormLeftSide")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(s,a),q(a,l),q(l,c),q(s,u),q(u,f),q(f,p),q(u,h),q(h,d),q(h,m),q(i,g),q(i,y),q(y,w),q(i,b),q(i,v),q(v,E),q(n,P),q(n,_),q(_,T),A||(S=J(_,"click",r[38]),A=!0)},p(t,e){131072&e[0]&&L!==(L=t[17]("forgotPasswordForm.forgotChangePasswordTitle")+"")&&et(w,L),131072&e[0]&&N!==(N=t[17]("forgotPasswordForm.forgotChangePasswordDescription")+"")&&et(E,N),131072&e[0]&&C!==(C=t[17]("forgotPasswordForm.forgotChangePasswordLogin")+"")&&et(T,C)},d(t){t&&K(o),A=!1,S()}}}function io(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E,P,_,T,A,S,L,N,C,x,O,F,R,I=r[17]("forgotPasswordForm.forgotNewPasswordTitle")+"",U=r[17]("forgotPasswordForm.forgotNewPasswordPassword")+"",k=r[17]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"",M=r[17]("forgotPasswordForm.forgotNewPasswordButton")+"";function D(t){return t[13]?co:lo}let G=D(r),j=G(r),B=r[9]&&uo(r);function $(t){return t[14]?po:fo}let V=$(r),z=V(r),X=r[10]&&ho(r);return{c(){o=e("div"),n=e("div"),i=e("h4"),s=W(I),a=Q(),l=e("div"),c=e("div"),u=e("label"),f=W(U),p=W(":"),h=e("span"),h.textContent="*",d=Q(),m=e("input"),g=Q(),j.c(),y=Q(),B&&B.c(),w=Q(),b=e("div"),v=e("label"),E=W(k),P=W(":"),_=e("span"),_.textContent="*",T=Q(),A=e("input"),S=Q(),z.c(),L=Q(),X&&X.c(),N=Q(),C=e("button"),x=W(M),tt(i,"class","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(h,"class","FormRequired"),tt(u,"for","NewPassword"),tt(m,"type","password"),tt(m,"id","NewPassword"),tt(c,"class","NewPassword"),tt(_,"class","FormRequired"),tt(v,"for","RetypePassword"),tt(A,"type","password"),tt(A,"id","RetypePassword"),tt(b,"class","ConfirmPassword"),tt(C,"class","resetPasswordButton"),C.disabled=O=!r[8],tt(l,"class","FormContent"),tt(o,"class","FormLeftSide test")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(o,l),q(l,c),q(c,u),q(u,f),q(u,p),q(u,h),q(c,d),q(c,m),rt(m,r[15]),r[30](m),q(c,g),j.m(c,null),q(c,y),B&&B.m(c,null),q(l,w),q(l,b),q(b,v),q(v,E),q(v,P),q(v,_),q(b,T),q(b,A),rt(A,r[16]),r[34](A),q(b,S),z.m(b,null),q(b,L),X&&X.m(b,null),q(l,N),q(l,C),q(C,x),F||(R=[J(m,"input",r[29]),J(m,"blur",function(){Z(r[22](r[9],r[15],r[11]))&&r[22](r[9],r[15],r[11]).apply(this,arguments)}),J(A,"input",r[33]),J(A,"keyup",function(){Z(r[22](r[10],r[16],r[12]))&&r[22](r[10],r[16],r[12]).apply(this,arguments)}),J(C,"click",r[37])],F=!0)},p(t,e){r=t,131072&e[0]&&I!==(I=r[17]("forgotPasswordForm.forgotNewPasswordTitle")+"")&&et(s,I),131072&e[0]&&U!==(U=r[17]("forgotPasswordForm.forgotNewPasswordPassword")+"")&&et(f,U),32768&e[0]&&m.value!==r[15]&&rt(m,r[15]),G===(G=D(r))&&j?j.p(r,e):(j.d(1),j=G(r),j&&(j.c(),j.m(c,y))),r[9]?B?B.p(r,e):(B=uo(r),B.c(),B.m(c,null)):B&&(B.d(1),B=null),131072&e[0]&&k!==(k=r[17]("forgotPasswordForm.forgotNewPasswordConfirmPassword")+"")&&et(E,k),65536&e[0]&&A.value!==r[16]&&rt(A,r[16]),V===(V=$(r))&&z?z.p(r,e):(z.d(1),z=V(r),z&&(z.c(),z.m(b,L))),r[10]?X?X.p(r,e):(X=ho(r),X.c(),X.m(b,null)):X&&(X.d(1),X=null),131072&e[0]&&M!==(M=r[17]("forgotPasswordForm.forgotNewPasswordButton")+"")&&et(x,M),256&e[0]&&O!==(O=!r[8])&&(C.disabled=O)},d(t){t&&K(o),r[30](null),j.d(),B&&B.d(),r[34](null),z.d(),X&&X.d(),F=!1,H(R)}}}function so(t){let r,o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E=t[17]("forgotPasswordForm.forgotPasswordSuccess")+"",P=t[17]("forgotPasswordForm.forgotPasswordSuccessDescription")+"";return{c(){r=e("div"),o=e("div"),n=e("div"),i=k("svg"),s=k("defs"),a=k("style"),l=W(".a{fill:#16ce16;}.b,.d{fill:none;}.b{stroke:#16ce16;stroke-width:2px;}.c{stroke:none;}"),c=k("g"),u=k("g"),f=k("path"),p=k("g"),h=k("circle"),d=k("circle"),m=Q(),g=e("h4"),y=W(E),w=Q(),b=e("p"),v=W(P),tt(f,"class","a"),tt(f,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),tt(f,"transform","translate(264.272 482.563)"),tt(u,"transform","translate(-7360.574 8503.438)"),tt(h,"class","c"),tt(h,"cx","30"),tt(h,"cy","30"),tt(h,"r","30"),tt(d,"class","d"),tt(d,"cx","30"),tt(d,"cy","30"),tt(d,"r","29"),tt(p,"class","b"),tt(p,"transform","translate(-7106 8970)"),tt(c,"transform","translate(7106 -8970)"),tt(i,"xmlns","http://www.w3.org/2000/svg"),tt(i,"width","60"),tt(i,"height","60"),tt(i,"viewBox","0 0 60 60"),tt(n,"class","NewPasswordSuccess"),tt(o,"class","FormContent"),tt(r,"class","FormLeftSide")},m(t,e){Y(t,r,e),q(r,o),q(o,n),q(n,i),q(i,s),q(s,a),q(a,l),q(i,c),q(c,u),q(u,f),q(c,p),q(p,h),q(p,d),q(n,m),q(n,g),q(g,y),q(n,w),q(n,b),q(b,v)},p(t,e){131072&e[0]&&E!==(E=t[17]("forgotPasswordForm.forgotPasswordSuccess")+"")&&et(y,E),131072&e[0]&&P!==(P=t[17]("forgotPasswordForm.forgotPasswordSuccessDescription")+"")&&et(v,P)},d(t){t&&K(r)}}}function ao(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w,b,v,E,P,_,T,A,S,L,N,C,x,O=r[17]("forgotPasswordForm.goToLogin")+"",F=r[17]("forgotPasswordForm.forgotPasswordTitle")+"",R=r[17]("forgotPasswordForm.forgotPasswordEmail")+"",I=r[17]("forgotPasswordForm.forgotPasswordReset")+"",U=r[2]&&mo(r);return{c(){o=e("div"),n=e("div"),i=e("button"),s=k("svg"),a=k("defs"),l=k("style"),c=W(".a{fill:var(--emfe-w-color-primary, #D0046C);}"),u=k("path"),f=Q(),p=W(O),h=Q(),d=e("h4"),m=W(F),g=Q(),y=e("div"),w=e("div"),b=e("label"),v=W(R),E=W(":"),P=e("span"),P.textContent="*",_=Q(),T=e("input"),A=Q(),U&&U.c(),S=Q(),L=e("button"),N=W(I),tt(u,"class","a"),tt(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),tt(u,"transform","translate(24 24) rotate(180)"),tt(s,"xmlns","http://www.w3.org/2000/svg"),tt(s,"viewBox","0 0 24 24"),tt(i,"class","backButtonForgotPassword"),tt(d,"class","FormHeaderTitle"),tt(n,"class","FormHeader"),tt(P,"class","FormRequired"),tt(b,"for","ResetPasswordByEmail"),tt(T,"type","text"),tt(T,"id","ResetPasswordByEmail"),tt(w,"class","ResetPasswordByEmail "),tt(L,"class","resetPasswordButton"),tt(y,"class","FormContent"),tt(o,"class","FormLeftSide")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(s,a),q(a,l),q(l,c),q(s,u),q(i,f),q(i,p),q(n,h),q(n,d),q(d,m),q(o,g),q(o,y),q(y,w),q(w,b),q(b,v),q(b,E),q(b,P),q(w,_),q(w,T),rt(T,r[4]),q(w,A),U&&U.m(w,null),q(y,S),q(y,L),q(L,N),C||(x=[J(i,"click",r[26]),J(T,"input",r[27]),J(L,"click",r[28])],C=!0)},p(t,e){131072&e[0]&&O!==(O=t[17]("forgotPasswordForm.goToLogin")+"")&&et(p,O),131072&e[0]&&F!==(F=t[17]("forgotPasswordForm.forgotPasswordTitle")+"")&&et(m,F),131072&e[0]&&R!==(R=t[17]("forgotPasswordForm.forgotPasswordEmail")+"")&&et(v,R),16&e[0]&&T.value!==t[4]&&rt(T,t[4]),t[2]?U?U.p(t,e):(U=mo(t),U.c(),U.m(w,null)):U&&(U.d(1),U=null),131072&e[0]&&I!==(I=t[17]("forgotPasswordForm.forgotPasswordReset")+"")&&et(N,I)},d(t){t&&K(o),U&&U.d(),C=!1,H(x)}}}function lo(r){let o,n,i,s,a,l,c,u,f,p;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("path"),c=k("circle"),tt(l,"class","a"),tt(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"),tt(l,"transform","translate(0)"),tt(c,"class","a"),tt(c,"cx","2.779"),tt(c,"cy","2.779"),tt(c,"r","2.779"),tt(c,"transform","translate(20.827 30.303)"),tt(a,"transform","translate(-14.185 -27.832)"),tt(o,"class",u="TogglePasswordVisibility "+(r[9]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.843"),tt(o,"height","10.5"),tt(o,"viewBox","0 0 18.843 10.5")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),f||(p=J(o,"click",r[32]),f=!0)},p(t,e){512&e[0]&&u!==(u="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&tt(o,"class",u)},d(t){t&&K(o),f=!1,p()}}}function co(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("circle"),c=k("g"),u=k("path"),f=k("path"),p=k("g"),h=k("path"),d=k("path"),m=k("rect"),tt(l,"class","a"),tt(l,"cx","0.05"),tt(l,"cy","0.05"),tt(l,"r","0.05"),tt(l,"transform","translate(121.017 31.148)"),tt(u,"class","a"),tt(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),tt(u,"transform","translate(-142.164 -39.123)"),tt(f,"class","a"),tt(f,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),tt(f,"transform","translate(-136.413 -42.068)"),tt(c,"transform","translate(117.499 27.37)"),tt(h,"class","a"),tt(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),tt(h,"transform","translate(-110.856 -33.157)"),tt(d,"class","a"),tt(d,"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"),tt(d,"transform","translate(-130.743 -29.617)"),tt(p,"transform","translate(110.856 24.899)"),tt(m,"class","a"),tt(m,"width","0.972"),tt(m,"height","15.861"),tt(m,"rx","0.486"),tt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),tt(a,"transform","translate(-110.856 -23.242)"),tt(o,"class",g="TogglePasswordVisibility "+(r[9]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.844"),tt(o,"height","12.887"),tt(o,"viewBox","0 0 18.844 12.887")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),q(c,u),q(c,f),q(a,p),q(p,h),q(p,d),q(a,m),y||(w=J(o,"click",r[31]),y=!0)},p(t,e){512&e[0]&&g!==(g="TogglePasswordVisibility "+(t[9]?"InvalidToggle":""))&&tt(o,"class",g)},d(t){t&&K(o),y=!1,w()}}}function uo(t){let r,o,n=t[17]("forgotPasswordForm.forgotNewPasswordPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotNewPasswordPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function fo(r){let o,n,i,s,a,l,c,u,f,p;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("path"),c=k("circle"),tt(l,"class","a"),tt(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"),tt(l,"transform","translate(0)"),tt(c,"class","a"),tt(c,"cx","2.779"),tt(c,"cy","2.779"),tt(c,"r","2.779"),tt(c,"transform","translate(20.827 30.303)"),tt(a,"transform","translate(-14.185 -27.832)"),tt(o,"class",u="TogglePasswordVisibility "+(r[10]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.843"),tt(o,"height","10.5"),tt(o,"viewBox","0 0 18.843 10.5")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),f||(p=J(o,"click",r[36]),f=!0)},p(t,e){1024&e[0]&&u!==(u="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&tt(o,"class",u)},d(t){t&&K(o),f=!1,p()}}}function po(r){let o,n,i,s,a,l,c,u,f,p,h,d,m,g,y,w;return{c(){o=k("svg"),n=k("defs"),i=k("style"),s=W(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),a=k("g"),l=k("circle"),c=k("g"),u=k("path"),f=k("path"),p=k("g"),h=k("path"),d=k("path"),m=k("rect"),tt(l,"class","a"),tt(l,"cx","0.05"),tt(l,"cy","0.05"),tt(l,"r","0.05"),tt(l,"transform","translate(121.017 31.148)"),tt(u,"class","a"),tt(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),tt(u,"transform","translate(-142.164 -39.123)"),tt(f,"class","a"),tt(f,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),tt(f,"transform","translate(-136.413 -42.068)"),tt(c,"transform","translate(117.499 27.37)"),tt(h,"class","a"),tt(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),tt(h,"transform","translate(-110.856 -33.157)"),tt(d,"class","a"),tt(d,"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"),tt(d,"transform","translate(-130.743 -29.617)"),tt(p,"transform","translate(110.856 24.899)"),tt(m,"class","a"),tt(m,"width","0.972"),tt(m,"height","15.861"),tt(m,"rx","0.486"),tt(m,"transform","translate(114.827 23.858) rotate(-39.315)"),tt(a,"transform","translate(-110.856 -23.242)"),tt(o,"class",g="TogglePasswordVisibility "+(r[10]?"InvalidToggle":"")),tt(o,"xmlns","http://www.w3.org/2000/svg"),tt(o,"width","18.844"),tt(o,"height","12.887"),tt(o,"viewBox","0 0 18.844 12.887")},m(t,e){Y(t,o,e),q(o,n),q(n,i),q(i,s),q(o,a),q(a,l),q(a,c),q(c,u),q(c,f),q(a,p),q(p,h),q(p,d),q(a,m),y||(w=J(o,"click",r[35]),y=!0)},p(t,e){1024&e[0]&&g!==(g="TogglePasswordVisibility "+(t[10]?"InvalidToggle":""))&&tt(o,"class",g)},d(t){t&&K(o),y=!1,w()}}}function ho(t){let r,o,n=t[17]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","InvalidInput")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotNewPasswordConfirmPasswordError")+"")&&et(o,n)},d(t){t&&K(r)}}}function mo(t){let r,o,n=t[17]("forgotPasswordForm.forgotPasswordEmailError")+"";return{c(){r=e("p"),o=W(n),tt(r,"class","ForgotPasswordError")},m(t,e){Y(t,r,e),q(r,o)},p(t,e){131072&e[0]&&n!==(n=t[17]("forgotPasswordForm.forgotPasswordEmailError")+"")&&et(o,n)},d(t){t&&K(r)}}}function go(){let r;return{c(){r=e("div"),tt(r,"class","FormRightSide"),r.style.setProperty("background","url('https://storage.googleapis.com/stateless-winmasters-one/2021/03/908d327e-em_welcome_promo.jpg') no-repeat","")},m(t,e){Y(t,r,e)},d(t){t&&K(r)}}}function yo(t){let r,o,n,i,s,a=t[0]&&oo(t),l=function(t){let r,o;function n(t){return t[1]?ao:t[3]?so:t[5]?io:t[6]?no:void 0}let i=n(t),s=i&&i(t),a=!t[7]&&go();return{c(){r=e("div"),s&&s.c(),o=Q(),a&&a.c(),tt(r,"class","FormContainer")},m(t,e){Y(t,r,e),s&&s.m(r,null),q(r,o),a&&a.m(r,null)},p(t,e){i===(i=n(t))&&s?s.p(t,e):(s&&s.d(1),s=i&&i(t),s&&(s.c(),s.m(r,o))),t[7]?a&&(a.d(1),a=null):a||(a=go(),a.c(),a.m(r,null))},d(t){t&&K(r),s&&s.d(),a&&a.d()}}}(t);return{c(){a&&a.c(),r=c(),o=Q(),n=e("div"),i=Q(),l.c(),s=c(),this.c=f,tt(n,"class","g-recaptcha"),tt(n,"data-sitekey",t[0])},m(t,e){a&&a.m(document.head,null),q(document.head,r),Y(t,o,e),Y(t,n,e),Y(t,i,e),l.m(t,e),Y(t,s,e)},p(t,e){t[0]?a?a.p(t,e):(a=oo(t),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null),1&e[0]&&tt(n,"data-sitekey",t[0]),l.p(t,e)},i:f,o:f,d(t){a&&a.d(t),K(r),t&&K(o),t&&K(n),t&&K(i),l.d(t),t&&K(s)}}}function wo(e,t,o){let r;var n=eo;e.$$.on_destroy.push(I(n,t=>o(17,r=t)));var i=this&&this.__awaiter||function(t,s,a,l){return new(a=a||Promise)(function(r,e){function o(t){try{i(l.next(t))}catch(t){e(t)}}function n(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(o,n)}i((l=l.apply(t,s||[])).next())})};let s,a,{endpoint:l=""}=t,{forgotpasswordkey:c=""}=t,{captchakey:u=""}=t,{lang:f=""}=t,p=!0,h=!1,d=!1,m="",g=!1,y=!1,w=!1,b=window.navigator.userAgent,v,E=!1,P=!1,_=!1,T=!1,A="",S="";Object.keys(ro).forEach(t=>{Ur(t,ro[t])});const L={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},N=t=>{switch(t){case"userNewPassword":o(13,_=!_),o(11,s.type=_?"text":"password",s);break;case"userConfirmPassword":o(14,T=!T),o(12,a.type=T?"text":"password",a)}},C=t=>{switch(t){case"ToEmailSuccess":o(2,h=!1),o(1,p=!1),o(3,d=!0);break;case"ToReset":o(1,p=!1),o(5,g=!0);break;case"ToSuccess":o(5,g=!1),o(6,y=!0)}},x=()=>{window.postMessage({type:"ToLogin"},window.location.href)},O=()=>{new Promise((e,t)=>{grecaptcha.ready(()=>{grecaptcha.execute(u,{action:"submit"}).then(t=>{e(t)})})}).then(t=>{let e=new URL(`${l}/player/resetpassword`),r={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":t}};e.searchParams.append("email",m),fetch(e,r).then(t=>{200==t.status?C("ToEmailSuccess"):o(2,h=!0)})})},F=()=>{var t=new URL(`${l}/player/ResetPasswordByHashKey`),e={hashKey:c,plainTextPassword:A},e={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t,e).then(t=>{200==t.status&&C("ToSuccess")})},R=t=>!!L.password.test(t);return t=()=>i(void 0,void 0,void 0,function*(){var t;((t=b).toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))&&o(7,w=!0)}),function(){if(!U)throw new Error("Function called outside component initialization");return U}().$$.on_mount.push(t),e.$$set=t=>{"endpoint"in t&&o(23,l=t.endpoint),"forgotpasswordkey"in t&&o(24,c=t.forgotpasswordkey),"captchakey"in t&&o(0,u=t.captchakey),"lang"in t&&o(25,f=t.lang)},e.$$.update=()=>{var t;16777216&e.$$.dirty[0]&&c&&c&&0<c.length&&C("ToReset"),33554432&e.$$.dirty[0]&&f&&(t=f,Xr.set(t))},[u,p,h,d,m,g,y,w,!1,E,P,s,a,_,T,A,S,r,N,x,O,F,(t,e,r)=>{"NewPassword"===r.id?(o(9,E=!R(e)),S&&o(10,P=A!==S||!R(e))):o(10,P=A!==S||!R(e)),o(8,v=!(E||P||!A||!S))},l,c,f,()=>x(),function(){m=this.value,o(4,m)},()=>O(),function(){A=this.value,o(15,A)},function(t){M[t?"unshift":"push"](()=>{s=t,o(11,s)})},()=>N("userNewPassword"),()=>N("userNewPassword"),function(){S=this.value,o(16,S)},function(t){M[t?"unshift":"push"](()=>{a=t,o(12,a)})},()=>N("userConfirmPassword"),()=>N("userConfirmPassword"),()=>F(),()=>x()]}class bo extends a{constructor(t){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}.backButtonForgotPassword{display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:24px !important;line-height:24px;border-radius:5px;border:none;background:transparent;height:60px;padding:0;text-transform:uppercase;font-size:16px;cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emfe-w-color-primary, #D0046C)}.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:var(--emfe-w-color-gray-50, #F9F8F8)}.FormHeaderTitle{color:var(--emfe-w-color-black, #000000);font-size:28px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.FormRequired{color:var(--emfe-w-color-error, #FD2839)}.ForgotPasswordError{color:var(--emfe-w-color-error, #FD2839);margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emfe-w-color-green, #48952a);font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:16px;color:var(--emfe-w-color-black, #000000);text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-color-primary, #D0046C)}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:14px;font-weight:300;padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.ResetPasswordByEmail.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)}.resetPasswordButton{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}.resetPasswordButton[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;bottom:10px;line-height:10px}.FormLeftSide{padding:40px 20px;height:460px}.FormMobileContainer .ResetPasswordByEmail input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}</style>",s(this,{target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},wo,yo,r,{endpoint:23,forgotpasswordkey:24,captchakey:0,lang:25},[-1,-1]),t&&(t.target&&Y(t.target,this,t.anchor),t.props&&(this.$set(t.props),b()))}static get observedAttributes(){return["endpoint","forgotpasswordkey","captchakey","lang"]}get endpoint(){return this.$$.ctx[23]}set endpoint(t){this.$set({endpoint:t}),b()}get forgotpasswordkey(){return this.$$.ctx[24]}set forgotpasswordkey(t){this.$set({forgotpasswordkey:t}),b()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$set({captchakey:t}),b()}get lang(){return this.$$.ctx[25]}set lang(t){this.$set({lang:t}),b()}}return customElements.get("general-player-forgot-password-form")||customElements.define("general-player-forgot-password-form",bo),bo});
2
2
  //# sourceMappingURL=general-player-forgot-password-form.js.map