@everymatrix/player-change-password 0.0.192 → 0.0.196
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 rt(){}function h(t){return t()}function p(){return Object.create(null)}function nt(t){t.forEach(h)}function ot(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function it(t,e){t.appendChild(e)}function st(t,e,r){t.insertBefore(e,r||null)}function at(t){t.parentNode.removeChild(t)}function e(t){return document.createElement(t)}function t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function lt(t){return document.createTextNode(t)}function ut(){return lt(" ")}function ct(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function ht(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function pt(t,e){t.value=null==e?"":e}let I;function f(t){I=t}const d=[],O=[],n=[],o=[],g=Promise.resolve();let m=!1;function y(t){n.push(t)}let i=!1;const s=new Set;function b(){if(!i){i=!0;do{for(let t=0;t<d.length;t+=1){var e=d[t];f(e),function(t){{var e;null!==t.fragment&&(t.update(),nt(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(y))}}(e.$$)}for(f(null),d.length=0;O.length;)O.pop()();for(let t=0;t<n.length;t+=1){const r=n[t];s.has(r)||(s.add(r),r())}}while(n.length=0,d.length);for(;o.length;)o.pop()();m=!1,i=!1,s.clear()}}const w=new Set;function a(n,t,e,r,o,i,s=[-1]){var a,l=I;f(n);const u=n.$$={fragment:null,ctx:null,props:i,update:rt,not_equal:o,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=e?e(n,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return u.ctx&&o(u.ctx[t],u.ctx[t]=r)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](r),c&&(r=t,-1===(t=n).$$.dirty[0]&&(d.push(t),m||(m=!0,g.then(b)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],u.update(),c=!0,nt(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){const rt=(r=t.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(rt),rt.forEach(at)}else u.fragment&&u.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(w.delete(a),a.i(void 0)),function(e,t,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,r),n||y(()=>{var t=i.map(h).filter(ot);s?s.push(...t):nt(t),e.$$.on_mount=[]}),a.forEach(y)}(n,t.target,t.anchor,t.customElement),b()}f(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(ot);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){nt(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(nt(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=rt}$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 u,c,v="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==v&&v,E="URLSearchParams"in v,P="Symbol"in v&&"iterator"in Symbol,_="FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(t){return!1}}(),T="FormData"in v,C="ArrayBuffer"in v;function A(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 x(t){return t="string"!=typeof t?String(t):t}function S(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return P&&(t[Symbol.iterator]=function(){return t}),t}function L(e){this.map={},e instanceof L?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 N(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function M(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=M(e);return e.readAsArrayBuffer(t),r}function U(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function D(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:_&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:T&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:E&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():C&&_&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=U(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):C&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=U(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):E&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_&&(this.blob=function(){var t=N(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?N(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=N(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=M(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),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},T&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}C&&(u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&-1<u.indexOf(Object.prototype.toString.call(t))}),L.prototype.append=function(t,e){t=A(t),e=x(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},L.prototype.delete=function(t){delete this.map[A(t)]},L.prototype.get=function(t){return t=A(t),this.has(t)?this.map[t]:null},L.prototype.has=function(t){return this.map.hasOwnProperty(A(t))},L.prototype.set=function(t,e){this.map[A(t)]=x(e)},L.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},L.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),S(r)},L.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),S(e)},L.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),S(r)},P&&(L.prototype[Symbol.iterator]=L.prototype.entries);var B=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(t,e){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(e=e||{}).body;if(t instanceof k){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new L(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=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 L(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<B.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)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"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 F(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 G(t,e){if(!(this instanceof G))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 L(e.headers),this.url=e.url||"",this._initBody(t)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},D.call(k.prototype),D.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},G.error=function(){var t=new G(null,{status:0,statusText:""});return t.type="error",t};var j=[301,302,303,307,308];G.redirect=function(t,e){if(-1===j.indexOf(e))throw new RangeError("Invalid status code");return new G(null,{status:e,headers:{location:t}})};var $=v.DOMException;try{new $}catch(rt){($=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),$.prototype.constructor=$}function V(n,s){return new Promise(function(o,t){var e=new k(n,s);if(e.signal&&e.signal.aborted)return t(new $("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 L,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 n="response"in i?i.response:i.responseText;setTimeout(function(){o(new G(n,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 $("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&v.location.href?v.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&&(_?i.responseType="blob":C&&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 L?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,x(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)})}V.polyfill=!0,v.fetch||(v.fetch=V,v.Headers=L,v.Request=k,v.Response=G),self.fetch.bind(self);var z=function(t,e){return(z=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 W(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}z(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function X(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function H(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function Y(t){return"function"==typeof t}function q(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 K=q(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 Q(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var J=(et.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=X(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(Y(i))try{i()}catch(t){o=t instanceof K?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=X(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{dt(c)}catch(t){o=null!=o?o:[],t instanceof K?o=H(H([],Z(o)),Z(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new K(o)}},et.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)dt(t);else{if(t instanceof et){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},et.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},et.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},et.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Q(e,t)},et.prototype.remove=function(t){var e=this._teardowns;e&&Q(e,t),t instanceof et&&t._removeParent(this)},et.EMPTY=((De=new et).closed=!0,De),et),tt=J.EMPTY;function et(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function ft(t){return t instanceof J||t&&"closed"in t&&Y(t.remove)&&Y(t.add)&&Y(t.unsubscribe)}function dt(t){Y(t)?t():t.unsubscribe()}var gt=void 0,mt=!1,yt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,H([],Z(t)))};function bt(){}function wt(t){t()}var vt,Et,Pt=(W(Ct,Et=J),Ct.create=function(t,e,r){return new _t(t,e,r)},Ct.prototype.next=function(t){this.isStopped||this._next(t)},Ct.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Ct.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ct.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Et.prototype.unsubscribe.call(this),this.destination=null)},Ct.prototype._next=function(t){this.destination.next(t)},Ct.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Ct.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ct),_t=(W(Tt,vt=Pt),Tt);function Tt(t,e,r){var n,o,i=vt.call(this)||this;return Y(t)?o=t:t&&(o=t.next,e=t.error,r=t.complete,i&&mt?(n=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:n=t,o=null==o?void 0:o.bind(n),e=null==e?void 0:e.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?At(o):bt,error:At(null!=e?e:xt),complete:r?At(r):bt},i}function Ct(t){var e=Et.call(this)||this;return e.isStopped=!1,t?ft(e.destination=t)&&t.add(e):e.destination=St,e}function At(n){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{n.apply(void 0,H([],Z(t)))}catch(t){e=t,yt(function(){throw e})}}}function xt(t){throw t}var St={closed:!0,next:bt,error:xt,complete:bt},It="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ot(t){return t}var Lt=(Nt.prototype.lift=function(t){var e=new Nt;return e.source=this,e.operator=t,e},Nt.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Pt||n&&Y(n.next)&&Y(n.error)&&Y(n.complete)&&ft(n)?t:new _t(t,e,r);return wt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},Nt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Nt.prototype.forEach=function(n,t){var o=this;return new(t=Mt(t))(function(t,e){var r=o.subscribe(function(t){try{n(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Nt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Nt.prototype[It]=function(){return this},Nt.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Ot:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Nt.prototype.toPromise=function(t){var n=this;return new(t=Mt(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Nt.create=function(t){return new Nt(t)},Nt);function Nt(t){t&&(this._subscribe=t)}function Mt(t){return null!==(t=null!=t?t:gt)&&void 0!==t?t:Promise}var Rt,Ut,Dt,Bt=q(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kt=(W(zt,Dt=Lt),zt.prototype.lift=function(t){var e=new Ft(this,this);return e.operator=t,e},zt.prototype._throwIfClosed=function(){if(this.closed)throw new Bt},zt.prototype.next=function(i){var s=this;wt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=X(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}})},zt.prototype.error=function(e){var r=this;wt(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;wt(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(),Dt.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,n=this.observers;return e||r?tt:(n.push(t),new J(function(){return Q(n,t)}))},zt.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},zt.prototype.asObservable=function(){var t=new Lt;return t.source=this,t},zt.create=function(t,e){return new Ft(t,e)},zt),Ft=(W(Vt,Ut=kt),Vt.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)},Vt.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)},Vt.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)},Vt.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:tt},Vt),Gt={now:function(){return(Gt.delegate||Date).now()},delegate:void 0},jt=(W($t,Rt=kt),$t.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(n.push(t),o||n.push(i.now()+e)),this._trimBuffer(),Rt.prototype.next.call(this,t)},$t.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},$t.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!n){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)}},$t);function $t(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Gt);var n=Rt.call(this)||this;return n._bufferSize=t,n._windowTime=e,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=e===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,e),n}function Vt(t,e){var r=Ut.call(this)||this;return r.destination=t,r.source=e,r}function zt(){var t=Dt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let Wt=[],Xt={};const Zt=[];function Ht(n,o=rt){let i;const s=[];function a(t){if(r(n,t)&&(n=t,i)){const t=!Zt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Zt.push(e,n)}if(t){for(let t=0;t<Zt.length;t+=2)Zt[t][0](Zt[t+1]);Zt.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=rt){const r=[t,e];return s.push(r),1===s.length&&(i=o(a)||rt),t(n),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function Yt(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return Ht(e,e=>{let n=!1;const o=[];let i=0,r=rt;const s=()=>{var t;i||(r(),t=a(l?o[0]:o,e),c?e(t):r=ot(t)?t:rt)},t=u.map((r,e)=>function(t){if(null==r)return rt;const e=r.subscribe(...t);return e.unsubscribe?()=>e.unsubscribe():e}([t=>{o[e]=t,i&=~(1<<e),n&&s()},()=>{i|=1<<e}]));return n=!0,s(),function(){nt(t),r()}}).subscribe,1}var qt=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Kt));var e},Kt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Qt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ne(Array.isArray(t)?[]:{},t,e):t}function Jt(t,e,r){return t.concat(e).map(function(t){return Qt(t,r)})}function te(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function ee(t,e){try{return e in t}catch(t){return!1}}function re(n,o,i){var s={};return i.isMergeableObject(n)&&te(n).forEach(function(t){s[t]=Qt(n[t],i)}),te(o).forEach(function(e){var t,r;(!ee(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(ee(n,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return ne;var t=i.customMerge(e);return"function"==typeof t?t:ne}()(n[e],o[e],i):s[e]=Qt(o[e],i))}),s}function ne(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Jt,r.isMergeableObject=r.isMergeableObject||qt,r.cloneUnlessOtherwiseSpecified=Qt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):re(t,e,r):Qt(e,r)}ne.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return ne(t,e,r)},{})};var oe=ne,ie=function(t,e){return(ie=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 se(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}ie(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ae,le,ue,ce=function(){return(ce=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function he(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function pe(t){return t.type===le.literal}function fe(t){return t.type===le.number}function de(t){return t.type===le.date}function ge(t){return t.type===le.time}function me(t){return t.type===le.select}function ye(t){return t.type===le.plural}function be(t){return t.type===le.tag}function we(t){return t&&"object"==typeof t&&t.type===ue.number}function ve(t){return t&&"object"==typeof t&&t.type===ue.dateTime}(Be=ae=ae||{})[Be.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Be[Be.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Be[Be.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Be[Be.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Be[Be.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Be[Be.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Be[Be.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Be[Be.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Be[Be.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Be[Be.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Be[Be.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Be[Be.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Be[Be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Be[Be.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Be[Be.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Be[Be.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Be[Be.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Be[Be.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Be[Be.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Be[Be.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Be[Be.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Be[Be.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Be[Be.INVALID_TAG=23]="INVALID_TAG",Be[Be.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Be[Be.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Be[Be.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ke=le=le||{})[ke.literal=0]="literal",ke[ke.argument=1]="argument",ke[ke.number=2]="number",ke[ke.date=3]="date",ke[ke.time=4]="time",ke[ke.select=5]="select",ke[ke.plural=6]="plural",ke[ke.pound=7]="pound",ke[ke.tag=8]="tag",(Fe=ue=ue||{})[Fe.number=0]="number",Fe[Fe.dateTime=1]="dateTime";var Ee=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pe=/(?:[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 _e,Te=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ae=/^(@+)?(\+|#+)?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Se=/^(0+)$/;function Ie(t){var n={};return t.replace(Ae,function(t,e,r){return"string"!=typeof r?(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length):"+"===r?n.minimumSignificantDigits=e.length:"#"===e[0]?n.maximumSignificantDigits=e.length:(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),n}function Oe(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 Le(t){return Oe(t)||{}}function Ne(t){for(var s={},e=0,r=t;e<r.length;e++){var n,o=r[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.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=o.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=ce(ce(ce({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return ce(ce({},t),Le(e))},{}));continue;case"engineering":s=ce(ce(ce({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return ce(ce({},t),Le(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(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(xe,function(t,e,r,n,o,i){if(e)s.minimumIntegerDigits=r.length;else{if(n&&o)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(Se.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ce.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ce,function(t,e,r,n,o,i){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=ce(ce({},s),Ie(o.options[0])))}else Ae.test(o.stem)?s=ce(ce({},s),Ie(o.stem)):((n=Oe(o.stem))&&(s=ce(ce({},s),n)),(n=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)),!Se.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=ce(ce({},s),n)))}return s}var Me=new RegExp("^"+Ee.source+"*"),Re=new RegExp(Ee.source+"*$");function Ue(t,e){return{start:t,end:e}}var De=!!String.prototype.startsWith,It=!!String.fromCodePoint,kt=!!Object.fromEntries,Be=!!String.prototype.codePointAt,ke=!!String.prototype.trimStart,Fe=!!String.prototype.trimEnd,Ge=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ee=!0;try{Ee="a"===(null===(_e=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_e?void 0:_e[0])}catch(rt){Ee=!1}var je,$e,Ve=De?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},ze=It?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;i<o;){if(1114111<(r=t[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},We=kt?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],o=o[1];e[i]=o}return e},Xe=Be?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var n,o=t.charCodeAt(e);return o<55296||56319<o||e+1===r||(n=t.charCodeAt(e+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},Ze=ke?function(t){return t.trimStart()}:function(t){return t.replace(Me,"")},He=Fe?function(t){return t.trimEnd()}:function(t){return t.replace(Re,"")};function Ye(t,e){return new RegExp(t,e)}$e=Ee?(je=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return je.lastIndex=e,null!==(t=je.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,n=[];;){var o=Xe(t,e);if(void 0===o||Je(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),e+=65536<=o?2:1}return ze.apply(void 0,n)};var qe=(Ke.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ke.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.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(ae.UNMATCHED_CLOSING_TAG,Ue(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Qe(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:le.pound,location:Ue(i,this.clonePosition())})}}}return{val:n,err:null}},Ke.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:le.literal,value:"<"+n+"/>",location:Ue(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qe(this.char()))return this.error(ae.INVALID_TAG,Ue(e,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(ae.UNMATCHED_CLOSING_TAG,Ue(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:le.tag,value:n,children:t,location:Ue(r,this.clonePosition())},err:null}:this.error(ae.INVALID_TAG,Ue(e,this.clonePosition())))}return this.error(ae.UNCLOSED_TAG,Ue(r,this.clonePosition()))}return this.error(ae.INVALID_TAG,Ue(r,this.clonePosition()))},Ke.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())},Ke.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{o=this.tryParseUnquoted(t,e);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Ue(r,this.clonePosition());return{val:{type:le.literal,value:n,location:r},err:null}},Ke.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Qe(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},Ke.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)},Ke.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))},Ke.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ae.EMPTY_ARGUMENT,Ue(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ae.MALFORMED_ARGUMENT,Ue(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:le.argument,value:n,location:Ue(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(ae.MALFORMED_ARGUMENT,Ue(r,this.clonePosition()))}},Ke.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=$e(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:Ue(t,this.clonePosition())}},Ke.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ae.EXPECT_ARGUMENT_TYPE,Ue(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(h=He(p.val)).length)return this.error(ae.EXPECT_ARGUMENT_STYLE,Ue(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:Ue(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var c=Ue(n,this.clonePosition());if(l&&Ve(null==l?void 0:l.style,"::",0)){u=Ze(l.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?p:{val:{type:le.number,value:r,location:c,style:p.val},err:null};if(0===u.length)return this.error(ae.EXPECT_DATE_TIME_SKELETON,c);var h={type:ue.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(Pe,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][e-1];break;case"s":o.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":o.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""}),o):{}};return{val:{type:"date"===s?le.date:le.time,value:r,location:c,style:h},err:null}}return{val:{type:"number"===s?le.number:"date"===s?le.date:le.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ae.EXPECT_SELECT_ARGUMENT_OPTIONS,Ue(l,ce({},l)));this.bumpSpace();var p,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ue(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=p.val}c=this.tryParsePluralOrSelectOptions(t,s,e,c);if(c.err)return c;if((f=this.tryParseArgumentClose(n)).err)return f;var f=Ue(n,this.clonePosition());return"select"===s?{val:{type:le.select,value:r,options:We(c.val),location:f},err:null}:{val:{type:le.plural,value:r,options:We(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(ae.INVALID_ARGUMENT_TYPE,Ue(i,a))}},Ke.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ke.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(ae.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ue(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}},Ke.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,n=t.split(Te).filter(function(t){return 0<t.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(ae.INVALID_NUMBER_SKELETON,e)}return{val:{type:ue.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ne(r):{}},err:null}},Ke.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o=!1,i=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,ae.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ue(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?ae.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ae.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ue(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,r);if(c.err)return c;u=this.tryParseArgumentClose(h);if(u.err)return u;i.push([a,{value:c.val,location:Ue(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===i.length?this.error("select"===e?ae.EXPECT_SELECT_ARGUMENT_SELECTOR:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ue(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ae.MISSING_OTHER_CLAUSE,Ue(this.clonePosition(),this.clonePosition())):{val:i,err:null}},Ke.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Ue(n,this.clonePosition());return o?Ge(i*=r)?{val:i,err:null}:this.error(e,n):this.error(t,n)},Ke.prototype.offset=function(){return this.position.offset},Ke.prototype.isEOF=function(){return this.offset()===this.message.length},Ke.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ke.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Xe(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},Ke.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},Ke.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))},Ke.prototype.bumpIf=function(t){if(Ve(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},Ke.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)},Ke.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}},Ke.prototype.bumpSpace=function(){for(;!this.isEOF()&&Je(this.char());)this.bump()},Ke.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},Ke);function Ke(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 Qe(t){return 97<=t&&t<=122||65<=t&&t<=90}function Je(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function tr(t,e){e=ce({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new qe(t,e).parse();if(r.err){t=SyntaxError(ae[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,me(t)||ye(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else fe(t)&&we(t.style)||(de(t)||ge(t))&&ve(t.style)?delete t.style.location:be(t)&&r(t.children)})}(r.val),r.val}function er(t,e){var r=e&&e.cache?e.cache:lr,n=e&&e.serializer?e.serializer:ir;return(e&&e.strategy?e.strategy:function(t,e){return or(t,this,1===t.length?rr:nr,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function rr(t,e,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=e.get(o);return void 0===r&&(r=t.call(this,n),e.set(o,r)),r}function nr(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=e.get(o);return void 0===r&&(r=t.apply(this,n),e.set(o,r)),r}function or(t,e,r,n,o){return r.bind(e,t,n,o)}var ir=function(){return JSON.stringify(arguments)};function sr(){this.cache=Object.create(null)}sr.prototype.has=function(t){return t in this.cache},sr.prototype.get=function(t){return this.cache[t]},sr.prototype.set=function(t,e){this.cache[t]=e};var ar,lr={create:function(){return new sr}},ur={variadic:function(t,e){return or(t,this,nr,e.cache.create(),e.serializer)},monadic:function(t,e){return or(t,this,rr,e.cache.create(),e.serializer)}};(Ee=ar=ar||{}).MISSING_VALUE="MISSING_VALUE",Ee.INVALID_VALUE="INVALID_VALUE",Ee.MISSING_INTL_API="MISSING_INTL_API";var cr,hr,pr,fr,dr,gr=(se(Pr,dr=Error),Pr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Pr),mr=(se(Er,fr=gr),Er),yr=(se(vr,pr=gr),vr),br=(se(wr,hr=gr),wr);function wr(t,e){return hr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',ar.MISSING_VALUE,e)||this}function vr(t,e,r){return pr.call(this,'Value for "'+t+'" must be of type '+e,ar.INVALID_VALUE,r)||this}function Er(t,e,r,n){return fr.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',ar.INVALID_VALUE,n)||this}function Pr(t,e,r){t=dr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function _r(t,e,r,n,o,i,s){if(1===t.length&&pe(t[0]))return[{type:cr.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(pe(c))a.push({type:cr.literal,value:c.value});else if(c.type===le.pound)"number"==typeof i&&a.push({type:cr.literal,value:r.getNumberFormat(e).format(i)});else{var h=c.value;if(!(o&&h in o))throw new br(h,s);var p=o[h];if(c.type===le.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?cr.literal:cr.object,value:p});else if(de(c)){var f="string"==typeof c.style?n.date[c.style]:ve(c.style)?c.style.parsedOptions:void 0;a.push({type:cr.literal,value:r.getDateTimeFormat(e,f).format(p)})}else if(ge(c))f="string"==typeof c.style?n.time[c.style]:ve(c.style)?c.style.parsedOptions:void 0,a.push({type:cr.literal,value:r.getDateTimeFormat(e,f).format(p)});else if(fe(c))(f="string"==typeof c.style?n.number[c.style]:we(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:cr.literal,value:r.getNumberFormat(e,f).format(p)});else{if(be(c)){var d=c.children,g=c.value,h=o[g];if("function"!=typeof h)throw new yr(g,"function",s);d=h(_r(d,e,r,n,o,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?cr.literal:cr.object,value:t}}))}if(me(c)){if(!(m=c.options[p]||c.options.other))throw new mr(c.value,p,Object.keys(c.options),s);a.push.apply(a,_r(m.value,e,r,n,o))}else if(ye(c)){if(!(m=c.options["="+p])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ar.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:c.pluralType}).select(p-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new mr(c.value,p,Object.keys(c.options),s);a.push.apply(a,_r(m.value,e,r,n,o,p-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===cr.literal&&e.type===cr.literal?r.value+=e.value:t.push(e),t},[])}function Tr(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}}}}}(Ee=cr=cr||{})[Ee.literal=0]="literal",Ee[Ee.object=1]="object";var Cr=(Object.defineProperty(Ar,"defaultLocale",{get:function(){return Ar.memoizedDefaultLocale||(Ar.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Ar.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Ar.memoizedDefaultLocale=null,Ar.__parse=tr,Ar.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"}}},Ar);function Ar(t,e,r,n){var o,i,s=this;if(void 0===e&&(e=Ar.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===cr.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 _r(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,!Ar.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Ar.__parse(t,{ignoreTag:null==n?void 0:n.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=(o=Ar.formats,(i=r)?Object.keys(o).reduce(function(t,e){var r,n;return t[e]=(r=o[e],(n=i[e])?ce(ce(ce({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=ce(ce({},r[e]),n[e]||{}),t},{})):r),t},ce({},o)):o),this.locales=e,this.formatters=n&&n.formatters||{getNumberFormat:er(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,he([void 0],e)))},{cache:Tr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:ur.variadic}),getDateTimeFormat:er(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,he([void 0],e)))},{cache:Tr(n.dateTime),strategy:ur.variadic}),getPluralRules:er(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,he([void 0],e)))},{cache:Tr(n.pluralRules),strategy:ur.variadic})}}const xr={},Sr=(e,r)=>{if(null!=r){if(r in xr&&e in xr[r])return xr[r][e];var n,o,i=Vr(r);for(let t=0;t<i.length;t++){var s=(n=i[t],o=e,Lr(n)?function(t,e){if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(0<t){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(function(t){return Ir[t]||null}(n),o):null);if(s)return n=e,o=r,(s=s)&&(o in xr||(xr[o]={}),n in xr[o]||(xr[o][n]=s),s)}}};let Ir;const Or=Ht({});function Lr(t){return t in Ir}Yt([Or],([t])=>Object.keys(t)),Or.subscribe(t=>Ir=t);const Nr={};function Mr(t){return Nr[t]}function Rr(t){return Vr(t).some(t=>{return null===(t=Mr(t))||void 0===t?void 0:t.size})}function Ur(e,t){return Promise.all(t.map(t=>(function(t,e){Nr[t].delete(e),0===Nr[t].size&&delete Nr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>function(e,...r){delete xr[e],Or.update(t=>(t[e]=oe.all([t[e]||{},...r]),t))}(e,...t))}const Dr={};function Br(t,e){var r={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}const kr={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 Fr=Ht(!1);let Gr;const jr=Ht(null);function $r(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Vr(t,e=kr.fallbackLocale){t=$r(t);return e?[...new Set([...t,...$r(e)])]:t}jr.subscribe(t=>{Gr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const zr=jr.set;jr.set=e=>{if(function(t){if(null!=t){var e=Vr(t);for(let t=0;t<e.length;t++){var r=e[t];if(Lr(r))return r}}}(e)&&Rr(e)){var{loadingDelay:r}=kr;let t;return"undefined"!=typeof window&&null!=Gr&&r?t=window.setTimeout(()=>Fr.set(!0),r):Fr.set(!0),function t(e){if(!Rr(e))return e in Dr?Dr[e]:void 0;const r=Vr(e).map(t=>{var e=Mr(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Dr[e]=Promise.all(r.map(([t,e])=>Ur(t,e))).then(()=>Rr(e)?t(e):void delete Dr[e]),Dr[e]}(e).then(()=>{zr(e)}).finally(()=>{clearTimeout(t),Fr.set(!1)})}return zr(e)},jr.update=t=>zr(t(Gr));const Wr=r=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},Xr=(t,e)=>{var{formats:r}=kr;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Zr=Wr(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=Xr("number",r)),new Intl.NumberFormat(e,t)}),Hr=Wr(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=Xr("date",r):0===Object.keys(t).length&&(t=Xr("date","short")),new Intl.DateTimeFormat(e,t)}),Yr=Wr(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=Xr("time",r):0===Object.keys(t).length&&(t=Xr("time","short")),new Intl.DateTimeFormat(e,t)}),qr=Wr((t,e=Gr)=>new Cr(t,e,kr.formats,{ignoreTag:kr.ignoreTag}));function Kr(r){let n,o,i,s,a,l,u,c,h,p=r[17]&&function(r){let n,o,i;return{c(){n=e("div"),n.innerHTML='<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 240.823 240.823" style="enable-background:new 0 0 240.823 240.823;" xml:space="preserve" width="18px" fill="#58586B"><g><path id="Chevron_Right" d="M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z"></path></g></svg> \n <span>Return to menu</span>',ht(n,"class","MenuReturnButton")},m(t,e){st(t,n,e),o||(i=ct(n,"click",r[38]),o=!0)},p:rt,d(t){t&&at(n),o=!1,i()}}}(r);return{c(){p&&p.c(),n=ut(),o=e("div"),o.innerHTML="<h3>Change Password</h3>",i=ut(),s=e("div"),a=e("div"),a.innerHTML='<div class="IconContainer"><div class="Checkmark"></div></div> \n <div class="TextContainer"><h3>PASSWORD RESET</h3> \n <p>Your password has been reset successfully.</p></div>',l=ut(),u=e("div"),u.textContent="Back to Casino",ht(o,"class","PlayerChangePasswordHeader"),ht(a,"class","SuccessWrapper"),ht(u,"class","PlayerChangePasswordBackButton"),ht(s,"class","ChangedPasswordSuccessfully")},m(t,e){p&&p.m(t,e),st(t,n,e),st(t,o,e),st(t,i,e),st(t,s,e),it(s,a),it(s,l),it(s,u),c||(h=ct(u,"click",r[39]),c=!0)},p(t,e){t[17]&&p.p(t,e)},d(t){p&&p.d(t),t&&at(n),t&&at(o),t&&at(i),t&&at(s),c=!1,h()}}}function Qr(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b,w,v,E,P,_,T,C,A,x,S,I,O,L,N,M,R,U,D,B,k,F,G=r[17]&&function(r){let n,o,i;return{c(){n=e("div"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:#d0046c;}</style></defs><g transform="translate(-20 -158)"><g transform="translate(20 158)"><path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"></path></g></g></svg> \n <h2 class="ChangePasswordTitleMobile">Change Password</h2>',ht(n,"class","MenuReturnButton")},m(t,e){st(t,n,e),o||(i=ct(n,"click",r[24]),o=!0)},p:rt,d(t){t&&at(n),o=!1,i()}}}(r);function j(t){return t[8]?tn:Jr}let $=j(r),V=$(r),z=r[2]&&en();function W(t){return t[9]?nn:rn}let X=W(r),Z=X(r);function H(t){return t[11]?sn:t[3]?on:void 0}let Y=H(r),q=Y&&Y(r);function K(t){return t[10]?ln:an}let Q=K(r),J=Q(r),tt=r[4]&&un(),et=r[16]&&cn(r);return{c(){G&&G.c(),n=ut(),o=e("h2"),i=lt("Change Password"),s=ut(),a=e("section"),l=e("div"),u=e("label"),u.textContent="Current Password:",c=ut(),h=e("input"),p=ut(),V.c(),f=ut(),z&&z.c(),g=ut(),m=e("div"),y=e("label"),y.textContent="New Password:",b=ut(),w=e("input"),v=ut(),Z.c(),E=ut(),q&&q.c(),_=ut(),T=e("div"),C=e("label"),C.textContent="Confirm Password:",A=ut(),x=e("input"),S=ut(),J.c(),I=ut(),tt&&tt.c(),L=ut(),et&&et.c(),N=ut(),M=e("section"),R=e("div"),U=lt("Change Password"),ht(o,"class","ChangePasswordTitle "+(r[17]?"ChangePasswordTitleNone":"")),ht(u,"for","CurrentPassword"),ht(h,"id","CurrentPassword"),ht(h,"type","password"),ht(l,"class",d="PlayerChangePasswordBox "+(r[2]?"InvalidField":"")),ht(y,"for","NewPassword"),ht(w,"id","NewPassword"),ht(w,"type","password"),ht(m,"class",P="PlayerChangePasswordBox "+(r[3]?"InvalidField":"")),ht(C,"for","ConfirmPassword"),ht(x,"id","ConfirmPassword"),ht(x,"type","password"),ht(T,"class",O="PlayerChangePasswordBox "+(r[4]?"InvalidField":"")),ht(a,"class","PlayerChangePasswordContent"),ht(R,"class",D="PlayerChangePasswordSaveButton "+(r[1]?"":"ButtonInactive")),ht(R,"disabled",B=!r[1]),ht(M,"class","PlayerChangePasswordButtonsArea")},m(t,e){G&&G.m(t,e),st(t,n,e),st(t,o,e),it(o,i),st(t,s,e),st(t,a,e),it(a,l),it(l,u),it(l,c),it(l,h),pt(h,r[12]),r[26](h),it(l,p),V.m(l,null),it(l,f),z&&z.m(l,null),it(a,g),it(a,m),it(m,y),it(m,b),it(m,w),pt(w,r[13]),r[30](w),it(m,v),Z.m(m,null),it(m,E),q&&q.m(m,null),it(a,_),it(a,T),it(T,C),it(T,A),it(T,x),pt(x,r[14]),r[34](x),it(T,S),J.m(T,null),it(T,I),tt&&tt.m(T,null),st(t,L,e),et&&et.m(t,e),st(t,N,e),st(t,M,e),it(M,R),it(R,U),k||(F=[ct(h,"input",r[25]),ct(h,"blur",function(){ot(r[20](r[2],r[12],r[5]))&&r[20](r[2],r[12],r[5]).apply(this,arguments)}),ct(w,"input",r[29]),ct(w,"blur",function(){ot(r[20](r[3],r[13],r[6]))&&r[20](r[3],r[13],r[6]).apply(this,arguments)}),ct(x,"input",r[33]),ct(x,"blur",function(){ot(r[20](r[4],r[14],r[7]))&&r[20](r[4],r[14],r[7]).apply(this,arguments)}),ct(R,"click",r[37])],k=!0)},p(t,e){(r=t)[17]&&G.p(r,e),4096&e[0]&&h.value!==r[12]&&pt(h,r[12]),$===($=j(r))&&V?V.p(r,e):(V.d(1),V=$(r),V&&(V.c(),V.m(l,f))),r[2]?z||(z=en(),z.c(),z.m(l,null)):z&&(z.d(1),z=null),4&e[0]&&d!==(d="PlayerChangePasswordBox "+(r[2]?"InvalidField":""))&&ht(l,"class",d),8192&e[0]&&w.value!==r[13]&&pt(w,r[13]),X===(X=W(r))&&Z?Z.p(r,e):(Z.d(1),Z=X(r),Z&&(Z.c(),Z.m(m,E))),Y!==(Y=H(r))&&(q&&q.d(1),q=Y&&Y(r),q&&(q.c(),q.m(m,null))),8&e[0]&&P!==(P="PlayerChangePasswordBox "+(r[3]?"InvalidField":""))&&ht(m,"class",P),16384&e[0]&&x.value!==r[14]&&pt(x,r[14]),Q===(Q=K(r))&&J?J.p(r,e):(J.d(1),J=Q(r),J&&(J.c(),J.m(T,I))),r[4]?tt||(tt=un(),tt.c(),tt.m(T,null)):tt&&(tt.d(1),tt=null),16&e[0]&&O!==(O="PlayerChangePasswordBox "+(r[4]?"InvalidField":""))&&ht(T,"class",O),r[16]?et?et.p(r,e):(et=cn(r),et.c(),et.m(N.parentNode,N)):et&&(et.d(1),et=null),2&e[0]&&D!==(D="PlayerChangePasswordSaveButton "+(r[1]?"":"ButtonInactive"))&&ht(R,"class",D),2&e[0]&&B!==(B=!r[1])&&ht(R,"disabled",B)},d(t){G&&G.d(t),t&&at(n),t&&at(o),t&&at(s),t&&at(a),r[26](null),V.d(),z&&z.d(),r[30](null),Z.d(),q&&q.d(),r[34](null),J.d(),tt&&tt.d(),t&&at(L),et&&et.d(t),t&&at(N),t&&at(M),k=!1,nt(F)}}}function Jr(r){let n,o,i,s,a,l,u,c,h,p;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=lt(".a{fill:#fff;}"),a=t("g"),l=t("path"),u=t("circle"),ht(l,"class","a"),ht(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"),ht(l,"transform","translate(0)"),ht(u,"class","a"),ht(u,"cx","2.779"),ht(u,"cy","2.779"),ht(u,"r","2.779"),ht(u,"transform","translate(20.827 30.303)"),ht(a,"transform","translate(-14.185 -27.832)"),ht(n,"class",c="TogglePasswordVisibility "+(r[2]?"InvalidToggle":"")),ht(n,"xmlns","http://www.w3.org/2000/svg"),ht(n,"width","18.843"),ht(n,"height","10.5"),ht(n,"viewBox","0 0 18.843 10.5")},m(t,e){st(t,n,e),it(n,o),it(o,i),it(i,s),it(n,a),it(a,l),it(a,u),h||(p=ct(n,"click",r[28]),h=!0)},p(t,e){4&e[0]&&c!==(c="TogglePasswordVisibility "+(t[2]?"InvalidToggle":""))&&ht(n,"class",c)},d(t){t&&at(n),h=!1,p()}}}function tn(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=lt(".a{fill:#fff;}"),a=t("g"),l=t("circle"),u=t("g"),c=t("path"),h=t("path"),p=t("g"),f=t("path"),d=t("path"),g=t("rect"),ht(l,"class","a"),ht(l,"cx","0.05"),ht(l,"cy","0.05"),ht(l,"r","0.05"),ht(l,"transform","translate(121.017 31.148)"),ht(c,"class","a"),ht(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ht(c,"transform","translate(-142.164 -39.123)"),ht(h,"class","a"),ht(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ht(h,"transform","translate(-136.413 -42.068)"),ht(u,"transform","translate(117.499 27.37)"),ht(f,"class","a"),ht(f,"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"),ht(f,"transform","translate(-110.856 -33.157)"),ht(d,"class","a"),ht(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"),ht(d,"transform","translate(-130.743 -29.617)"),ht(p,"transform","translate(110.856 24.899)"),ht(g,"class","a"),ht(g,"width","0.972"),ht(g,"height","15.861"),ht(g,"rx","0.486"),ht(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ht(a,"transform","translate(-110.856 -23.242)"),ht(n,"class",m="TogglePasswordVisibility "+(r[2]?"InvalidToggle":"")),ht(n,"xmlns","http://www.w3.org/2000/svg"),ht(n,"width","18.844"),ht(n,"height","12.887"),ht(n,"viewBox","0 0 18.844 12.887")},m(t,e){st(t,n,e),it(n,o),it(o,i),it(i,s),it(n,a),it(a,l),it(a,u),it(u,c),it(u,h),it(a,p),it(p,f),it(p,d),it(a,g),y||(b=ct(n,"click",r[27]),y=!0)},p(t,e){4&e[0]&&m!==(m="TogglePasswordVisibility "+(t[2]?"InvalidToggle":""))&&ht(n,"class",m)},d(t){t&&at(n),y=!1,b()}}}function en(){let r;return{c(){r=e("p"),r.textContent="The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",ht(r,"class","InvalidInput")},m(t,e){st(t,r,e)},d(t){t&&at(r)}}}function rn(r){let n,o,i,s,a,l,u,c,h,p;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=lt(".a{fill:#fff;}"),a=t("g"),l=t("path"),u=t("circle"),ht(l,"class","a"),ht(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"),ht(l,"transform","translate(0)"),ht(u,"class","a"),ht(u,"cx","2.779"),ht(u,"cy","2.779"),ht(u,"r","2.779"),ht(u,"transform","translate(20.827 30.303)"),ht(a,"transform","translate(-14.185 -27.832)"),ht(n,"class",c="TogglePasswordVisibility "+(r[3]?"InvalidToggle":"")),ht(n,"xmlns","http://www.w3.org/2000/svg"),ht(n,"width","18.843"),ht(n,"height","10.5"),ht(n,"viewBox","0 0 18.843 10.5")},m(t,e){st(t,n,e),it(n,o),it(o,i),it(i,s),it(n,a),it(a,l),it(a,u),h||(p=ct(n,"click",r[32]),h=!0)},p(t,e){8&e[0]&&c!==(c="TogglePasswordVisibility "+(t[3]?"InvalidToggle":""))&&ht(n,"class",c)},d(t){t&&at(n),h=!1,p()}}}function nn(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=lt(".a{fill:#fff;}"),a=t("g"),l=t("circle"),u=t("g"),c=t("path"),h=t("path"),p=t("g"),f=t("path"),d=t("path"),g=t("rect"),ht(l,"class","a"),ht(l,"cx","0.05"),ht(l,"cy","0.05"),ht(l,"r","0.05"),ht(l,"transform","translate(121.017 31.148)"),ht(c,"class","a"),ht(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ht(c,"transform","translate(-142.164 -39.123)"),ht(h,"class","a"),ht(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ht(h,"transform","translate(-136.413 -42.068)"),ht(u,"transform","translate(117.499 27.37)"),ht(f,"class","a"),ht(f,"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"),ht(f,"transform","translate(-110.856 -33.157)"),ht(d,"class","a"),ht(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"),ht(d,"transform","translate(-130.743 -29.617)"),ht(p,"transform","translate(110.856 24.899)"),ht(g,"class","a"),ht(g,"width","0.972"),ht(g,"height","15.861"),ht(g,"rx","0.486"),ht(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ht(a,"transform","translate(-110.856 -23.242)"),ht(n,"class",m="TogglePasswordVisibility "+(r[3]?"InvalidToggle":"")),ht(n,"xmlns","http://www.w3.org/2000/svg"),ht(n,"width","18.844"),ht(n,"height","12.887"),ht(n,"viewBox","0 0 18.844 12.887")},m(t,e){st(t,n,e),it(n,o),it(o,i),it(i,s),it(n,a),it(a,l),it(a,u),it(u,c),it(u,h),it(a,p),it(p,f),it(p,d),it(a,g),y||(b=ct(n,"click",r[31]),y=!0)},p(t,e){8&e[0]&&m!==(m="TogglePasswordVisibility "+(t[3]?"InvalidToggle":""))&&ht(n,"class",m)},d(t){t&&at(n),y=!1,b()}}}function on(t){let r;return{c(){r=e("p"),r.textContent="The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",ht(r,"class","InvalidInput")},m(t,e){st(t,r,e)},d(t){t&&at(r)}}}function sn(t){let r;return{c(){r=e("p"),r.textContent="The new password must be different from the old password.",ht(r,"class","InvalidInputNew")},m(t,e){st(t,r,e)},d(t){t&&at(r)}}}function an(r){let n,o,i,s,a,l,u,c,h,p;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=lt(".a{fill:#fff;}"),a=t("g"),l=t("path"),u=t("circle"),ht(l,"class","a"),ht(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"),ht(l,"transform","translate(0)"),ht(u,"class","a"),ht(u,"cx","2.779"),ht(u,"cy","2.779"),ht(u,"r","2.779"),ht(u,"transform","translate(20.827 30.303)"),ht(a,"transform","translate(-14.185 -27.832)"),ht(n,"class",c="TogglePasswordVisibility "+(r[4]?"InvalidToggle":"")),ht(n,"xmlns","http://www.w3.org/2000/svg"),ht(n,"width","18.843"),ht(n,"height","10.5"),ht(n,"viewBox","0 0 18.843 10.5")},m(t,e){st(t,n,e),it(n,o),it(o,i),it(i,s),it(n,a),it(a,l),it(a,u),h||(p=ct(n,"click",r[36]),h=!0)},p(t,e){16&e[0]&&c!==(c="TogglePasswordVisibility "+(t[4]?"InvalidToggle":""))&&ht(n,"class",c)},d(t){t&&at(n),h=!1,p()}}}function ln(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b;return{c(){n=t("svg"),o=t("defs"),i=t("style"),s=lt(".a{fill:#fff;}"),a=t("g"),l=t("circle"),u=t("g"),c=t("path"),h=t("path"),p=t("g"),f=t("path"),d=t("path"),g=t("rect"),ht(l,"class","a"),ht(l,"cx","0.05"),ht(l,"cy","0.05"),ht(l,"r","0.05"),ht(l,"transform","translate(121.017 31.148)"),ht(c,"class","a"),ht(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),ht(c,"transform","translate(-142.164 -39.123)"),ht(h,"class","a"),ht(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),ht(h,"transform","translate(-136.413 -42.068)"),ht(u,"transform","translate(117.499 27.37)"),ht(f,"class","a"),ht(f,"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"),ht(f,"transform","translate(-110.856 -33.157)"),ht(d,"class","a"),ht(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"),ht(d,"transform","translate(-130.743 -29.617)"),ht(p,"transform","translate(110.856 24.899)"),ht(g,"class","a"),ht(g,"width","0.972"),ht(g,"height","15.861"),ht(g,"rx","0.486"),ht(g,"transform","translate(114.827 23.858) rotate(-39.315)"),ht(a,"transform","translate(-110.856 -23.242)"),ht(n,"class",m="TogglePasswordVisibility "+(r[4]?"InvalidToggle":"")),ht(n,"xmlns","http://www.w3.org/2000/svg"),ht(n,"width","18.844"),ht(n,"height","12.887"),ht(n,"viewBox","0 0 18.844 12.887")},m(t,e){st(t,n,e),it(n,o),it(o,i),it(i,s),it(n,a),it(a,l),it(a,u),it(u,c),it(u,h),it(a,p),it(p,f),it(p,d),it(a,g),y||(b=ct(n,"click",r[35]),y=!0)},p(t,e){16&e[0]&&m!==(m="TogglePasswordVisibility "+(t[4]?"InvalidToggle":""))&&ht(n,"class",m)},d(t){t&&at(n),y=!1,b()}}}function un(){let r;return{c(){r=e("p"),r.textContent="Password must match the new password and must follow the same rules.",ht(r,"class","InvalidInput")},m(t,e){st(t,r,e)},d(t){t&&at(r)}}}function cn(t){let r,n,o;return{c(){r=e("div"),n=e("p"),o=lt(t[15]),ht(n,"class","PasswordChangedError")},m(t,e){st(t,r,e),it(r,n),it(n,o)},p(t,e){32768&e[0]&&(e=o,t=t[15],e.wholeText!==(t=""+t)&&(e.data=t))},d(t){t&&at(r)}}}function hn(t){let r,n=function(t){let r;function n(t){return t[0]?Kr:Qr}let o=n(t),i=o(t);return{c(){r=e("form"),i.c(),ht(r,"class","PlayerChangePasswordWrapper "+(t[17]?"PlayerChangePasswordWrapperMobile":"")+" "+(t[18].matches&&t[17]?"PlayerChangePasswordWrapperTablet":""))},m(t,e){st(t,r,e),i.m(r,null)},p(t,e){o===(o=n(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(r,null)))},d(t){t&&at(r),i.d()}}}(t);return{c(){n.c(),r=lt(""),this.c=rt},m(t,e){n.m(t,e),st(t,r,e)},p(t,e){n.p(t,e)},i:rt,o:rt,d(t){n.d(t),t&&at(r)}}}function pn(t,e,n){let r="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),o=!1;var i;const s=window.matchMedia("(min-width: 768px)"),a={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};let l,u,c,h=!1,p=!1,f=!1,d=!1,g=!1,m=!1,y,b="",w="",v="",E=!1,P="",_=!1;const T=t=>{switch(t){case"userCurrentPassword":n(8,d=!d),n(5,l.type=d?"text":"password",l);break;case"userNewPassword":n(9,g=!g),n(6,u.type=g?"text":"password",u);break;case"userConfirmPassword":n(10,m=!m),n(7,c.type=m?"text":"password",c)}},C=t=>!!a.password.test(t),A=()=>{o&&window.postMessage({type:"ChangePassword",userCurrentPassword:b,userNewPassword:w},window.location.href)},x=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},S=t=>{if(t.data)switch(t.data.type){case"PasswordChangedSuccessfully":n(0,E=!0);break;case"ShowPasswordChangedError":n(16,_=t.data.showErrorPasswordChanged),n(15,P=t.data.errorPasswordChanged)}};return i=()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}),function(){if(!I)throw new Error("Function called outside component initialization");return I}().$$.on_mount.push(i),t.$$.update=()=>{t.$$.dirty[0]},[E,o,h,p,f,l,u,c,d,g,m,!1,b,w,v,P,_,r,s,T,(t,e,r)=>{"CurrentPassword"===r.id?n(2,h=!C(e)):"NewPassword"===r.id?(n(3,p=!C(e)),b&&n(11,y=b===w)):n(4,f=w!==v||!C(e)),n(1,o=!(h||p||f||!b||!w||!v))},A,x,()=>{},()=>x(),function(){b=this.value,n(12,b)},function(t){O[t?"unshift":"push"](()=>{l=t,n(5,l)})},()=>T("userCurrentPassword"),()=>T("userCurrentPassword"),function(){w=this.value,n(13,w)},function(t){O[t?"unshift":"push"](()=>{u=t,n(6,u)})},()=>T("userNewPassword"),()=>T("userNewPassword"),function(){v=this.value,n(14,v)},function(t){O[t?"unshift":"push"](()=>{c=t,n(7,c)})},()=>T("userConfirmPassword"),()=>T("userConfirmPassword"),()=>A(),()=>x(),()=>{}]}Yt([jr,Or],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:n=Gr,default:o}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Sr(t,n);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 kr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Vr(n).join('", "')}".${Rr(Gr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!r)return i;let s=i;try{s=qr(i,n).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s}),Yt([jr],()=>(t,e)=>((t={})=>{var{locale:e=Gr}=t,t=Br(t,["locale"]);return Yr(Object.assign({locale:e},t))})(e).format(t)),Yt([jr],()=>(t,e)=>((t={})=>{var{locale:e=Gr}=t,t=Br(t,["locale"]);return Hr(Object.assign({locale:e},t))})(e).format(t)),Yt([jr],()=>(t,e)=>((t={})=>{var{locale:e=Gr}=t,t=Br(t,["locale"]);return Zr(Object.assign({locale:e},t))})(e).format(t)),Yt([jr,Or],()=>(t,e=Gr)=>Sr(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==Wt.indexOf(t)&&(e=new jt(e),Xt[t]=e,Wt.push(t)),Xt[t]}};class fn extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>.PlayerChangePasswordWrapper{color:#07072A;padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:#D0046C;font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:#D0046C}.ChangePasswordTitleNone{display:none}.PlayerChangePasswordContent{display:grid;grid-column-gap:50px;grid-row-gap:15px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerChangePasswordButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px}.PlayerChangePasswordSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:#FFF;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerChangePasswordBox{display:flex;flex-direction:column;position:relative}.PlayerChangePasswordBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerChangePasswordBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;border:1px solid #D1D1D1;background:#FFFFFF;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerChangePasswordBox input:focus,.PlayerChangePasswordBox input :focus-within,.PlayerChangePasswordBox input :focus-visible,.PlayerChangePasswordBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerChangePasswordBox input::-webkit-outer-spin-button,.PlayerChangePasswordBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerChangePasswordBox.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInput{bottom:-16px}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInputNew{bottom:-24px}.TogglePasswordVisibility{height:20px;position:absolute;right:10px;top:28px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:#D0046C}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:#58586B}.InvalidInput,.InvalidInputNew{color:#D0046C;font-size:10px;position:absolute;bottom:-25px;margin:0;line-height:10px}.InvalidInputNew{bottom:-24px}.PasswordChangedError{color:#FD2839;font-size:16px;line-height:19.2px;margin-top:0}.ChangedPasswordSuccessfully{color:#fff;position:relative}.ChangedPasswordSuccessfully .SuccessWrapper{display:inline-flex;align-items:center;margin-bottom:20px}.ChangedPasswordSuccessfully .IconContainer{width:45px;height:45px;border:1px solid #16CE16;border-radius:50px;display:flex;align-items:center;justify-content:center}.ChangedPasswordSuccessfully .Checkmark{width:12px;height:22px;border:solid #16CE16;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:relative;top:-3px}.ChangedPasswordSuccessfully h3{font-size:20px;font-weight:400;margin:10px 0;color:#16CE16}.ChangedPasswordSuccessfully p{margin:0;font-size:14px;font-weight:300;color:#07072A}.ChangedPasswordSuccessfully .TextContainer{display:flex;flex-direction:column;padding:10px 20px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:#FFF;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;border:1px solid #D0046C;background:#D0046C;max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:#D0046C;background:#fff}.PlayerChangePasswordWrapperMobile{height:100%;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column;height:100%}.PlayerChangePasswordWrapperMobile:after{content:'';position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordButtonsArea{grid-column-gap:10px}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{font-size:12px;height:44px;color:#58586B}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{color:#fff}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordWrapperMobile .ChangedPasswordSuccessfully{color:#58586B}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerChangePasswordWrapperTablet{padding:40px 25% 100% 25%}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordContent{grid-row-gap:20px}.PlayerChangePasswordWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerChangePasswordWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox label{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox input{height:30px;font-size:20px;line-height:30px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility{width:30px;top:46px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea{grid-column-gap:40px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{font-size:18px;height:56px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{color:#fff}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton.ButtonInactive{color:#58586B}</style>",a(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},pn,hn,r,{},[-1,-1]),t&&t.target&&st(t.target,this,t.anchor)}}return customElements.get("player-change-password")||customElements.define("player-change-password",fn),fn});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function re(){}function h(e){return e()}function p(){return Object.create(null)}function ne(e){e.forEach(h)}function oe(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function ie(e,t){e.appendChild(t)}function se(e,t,r){e.insertBefore(t,r||null)}function ae(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function le(e){return document.createTextNode(e)}function ue(){return le(" ")}function ce(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function he(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function pe(e,t){e.value=null==t?"":t}let I;function f(e){I=e}const d=[],O=[],n=[],o=[],g=Promise.resolve();let m=!1;function y(e){n.push(e)}let i=!1;const s=new Set;function b(){if(!i){i=!0;do{for(let e=0;e<d.length;e+=1){var t=d[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),ne(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(y))}}(t.$$)}for(f(null),d.length=0;O.length;)O.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,d.length);for(;o.length;)o.pop()();m=!1,i=!1,s.clear()}}const w=new Set;function a(n,e,t,r,o,i,s=[-1]){var a,l=I;f(n);const u=n.$$={fragment:null,ctx:null,props:i,update:re,not_equal:o,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(d.push(e),m||(m=!0,g.then(b)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,ne(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const re=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(re),re.forEach(ae)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(w.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=t.$$;o&&o.m(e,r),n||y(()=>{var e=i.map(h).filter(oe);s?s.push(...e):ne(e),t.$$.on_mount=[]}),a.forEach(y)}(n,e.target,e.anchor,e.customElement),b()}f(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(oe);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){ne(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(ne(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=re}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var u,c,v="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==v&&v,P="URLSearchParams"in v,E="Symbol"in v&&"iterator"in Symbol,T="FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(e){return!1}}(),_="FormData"in v,C="ArrayBuffer"in v;function A(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function x(e){return e="string"!=typeof e?String(e):e}function S(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return E&&(e[Symbol.iterator]=function(){return e}),e}function L(t){this.map={},t instanceof L?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function M(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function N(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function R(e){var t=new FileReader,r=N(t);return t.readAsArrayBuffer(e),r}function U(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function D(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:T&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:P&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():C&&T&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=U(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):C&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=U(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):P&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},T&&(this.blob=function(){var e=M(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(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 e,t,r=M(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=N(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}C&&(u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&-1<u.indexOf(Object.prototype.toString.call(e))}),L.prototype.append=function(e,t){e=A(e),t=x(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},L.prototype.delete=function(e){delete this.map[A(e)]},L.prototype.get=function(e){return e=A(e),this.has(e)?this.map[e]:null},L.prototype.has=function(e){return this.map.hasOwnProperty(A(e))},L.prototype.set=function(e,t){this.map[A(e)]=x(t)},L.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},L.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),S(r)},L.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),S(t)},L.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),S(r)},E&&(L.prototype[Symbol.iterator]=L.prototype.entries);var B=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof k){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new L(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new L(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<B.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function F(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function G(e,t){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new L(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},D.call(k.prototype),D.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},G.error=function(){var e=new G(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];G.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new G(null,{status:t,headers:{location:e}})};var V=v.DOMException;try{new V}catch(re){(V=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),V.prototype.constructor=V}function $(n,s){return new Promise(function(o,e){var t=new k(n,s);if(t.signal&&t.signal.aborted)return e(new V("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new L,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new G(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new V("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&v.location.href?v.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(T?i.responseType="blob":C&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof L?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,x(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}$.polyfill=!0,v.fetch||(v.fetch=$,v.Headers=L,v.Request=k,v.Response=G),self.fetch.bind(self);var z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function X(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function H(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Y(e){return"function"==typeof e}function q(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var K=q(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Q(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var J=(te.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=X(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(Y(i))try{i()}catch(e){o=e instanceof K?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=X(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{de(c)}catch(e){o=null!=o?o:[],e instanceof K?o=H(H([],Z(o)),Z(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new K(o)}},te.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)de(e);else{if(e instanceof te){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},te.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},te.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},te.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Q(t,e)},te.prototype.remove=function(e){var t=this._teardowns;t&&Q(t,e),e instanceof te&&e._removeParent(this)},te.EMPTY=((Dt=new te).closed=!0,Dt),te),ee=J.EMPTY;function te(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function fe(e){return e instanceof J||e&&"closed"in e&&Y(e.remove)&&Y(e.add)&&Y(e.unsubscribe)}function de(e){Y(e)?e():e.unsubscribe()}var ge=void 0,me=!1,ye=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,H([],Z(e)))};function be(){}function we(e){e()}var ve,Pe,Ee=(W(Ce,Pe=J),Ce.create=function(e,t,r){return new Te(e,t,r)},Ce.prototype.next=function(e){this.isStopped||this._next(e)},Ce.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Ce.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ce.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Pe.prototype.unsubscribe.call(this),this.destination=null)},Ce.prototype._next=function(e){this.destination.next(e)},Ce.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Ce.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ce),Te=(W(_e,ve=Ee),_e);function _e(e,t,r){var n,o,i=ve.call(this)||this;return Y(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&me?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Ae(o):be,error:Ae(null!=t?t:xe),complete:r?Ae(r):be},i}function Ce(e){var t=Pe.call(this)||this;return t.isStopped=!1,e?fe(t.destination=e)&&e.add(t):t.destination=Se,t}function Ae(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,H([],Z(e)))}catch(e){t=e,ye(function(){throw t})}}}function xe(e){throw e}var Se={closed:!0,next:be,error:xe,complete:be},Ie="function"==typeof Symbol&&Symbol.observable||"@@observable";function Oe(e){return e}var Le=(Me.prototype.lift=function(e){var t=new Me;return t.source=this,t.operator=e,t},Me.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Ee||n&&Y(n.next)&&Y(n.error)&&Y(n.complete)&&fe(n)?e:new Te(e,t,r);return we(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},Me.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Me.prototype.forEach=function(n,e){var o=this;return new(e=Ne(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Me.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Me.prototype[Ie]=function(){return this},Me.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Oe:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Me.prototype.toPromise=function(e){var n=this;return new(e=Ne(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Me.create=function(e){return new Me(e)},Me);function Me(e){e&&(this._subscribe=e)}function Ne(e){return null!==(e=null!=e?e:ge)&&void 0!==e?e:Promise}var Re,Ue,De,Be=q(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ke=(W(ze,De=Le),ze.prototype.lift=function(e){var t=new Fe(this,this);return t.operator=e,t},ze.prototype._throwIfClosed=function(){if(this.closed)throw new Be},ze.prototype.next=function(i){var s=this;we(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=X(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},ze.prototype.error=function(t){var r=this;we(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},ze.prototype.complete=function(){var t=this;we(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},ze.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(ze.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),ze.prototype._trySubscribe=function(e){return this._throwIfClosed(),De.prototype._trySubscribe.call(this,e)},ze.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},ze.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ee:(n.push(e),new J(function(){return Q(n,e)}))},ze.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},ze.prototype.asObservable=function(){var e=new Le;return e.source=this,e},ze.create=function(e,t){return new Fe(e,t)},ze),Fe=(W($e,Ue=ke),$e.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},$e.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},$e.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},$e.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ee},$e),Ge={now:function(){return(Ge.delegate||Date).now()},delegate:void 0},je=(W(Ve,Re=ke),Ve.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),Re.prototype.next.call(this,e)},Ve.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},Ve.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Ve);function Ve(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ge);var n=Re.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function $e(e,t){var r=Ue.call(this)||this;return r.destination=e,r.source=t,r}function ze(){var e=De.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let We=[],Xe={};const Ze=[];function He(n,o=re){let i;const s=[];function a(e){if(r(n,e)&&(n=e,i)){const e=!Ze.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),Ze.push(t,n)}if(e){for(let e=0;e<Ze.length;e+=2)Ze[e][0](Ze[e+1]);Ze.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=re){const r=[e,t];return s.push(r),1===s.length&&(i=o(a)||re),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function Ye(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return He(t,t=>{let n=!1;const o=[];let i=0,r=re;const s=()=>{var e;i||(r(),e=a(l?o[0]:o,t),c?t(e):r=oe(e)?e:re)},e=u.map((r,t)=>function(e){if(null==r)return re;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{o[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}]));return n=!0,s(),function(){ne(e),r()}}).subscribe,1}var qe=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===Ke));var t},Ke="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Qe(e,t){return!1!==t.clone&&t.isMergeableObject(e)?nt(Array.isArray(e)?[]:{},e,t):e}function Je(e,t,r){return e.concat(t).map(function(e){return Qe(e,r)})}function et(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function tt(e,t){try{return t in e}catch(e){return!1}}function rt(n,o,i){var s={};return i.isMergeableObject(n)&&et(n).forEach(function(e){s[e]=Qe(n[e],i)}),et(o).forEach(function(t){var e,r;(!tt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(tt(n,t)&&i.isMergeableObject(o[t])?s[t]=function(){if(!i.customMerge)return nt;var e=i.customMerge(t);return"function"==typeof e?e:nt}()(n[t],o[t],i):s[t]=Qe(o[t],i))}),s}function nt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Je,r.isMergeableObject=r.isMergeableObject||qe,r.cloneUnlessOtherwiseSpecified=Qe;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):rt(e,t,r):Qe(t,r)}nt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return nt(e,t,r)},{})};var ot=nt,it=function(e,t){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function st(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}it(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var at,lt,ut,ct=function(){return(ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ht(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function pt(e){return e.type===lt.literal}function ft(e){return e.type===lt.number}function dt(e){return e.type===lt.date}function gt(e){return e.type===lt.time}function mt(e){return e.type===lt.select}function yt(e){return e.type===lt.plural}function bt(e){return e.type===lt.tag}function wt(e){return e&&"object"==typeof e&&e.type===ut.number}function vt(e){return e&&"object"==typeof e&&e.type===ut.dateTime}(Bt=at=at||{})[Bt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Bt[Bt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Bt[Bt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Bt[Bt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Bt[Bt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Bt[Bt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Bt[Bt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Bt[Bt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Bt[Bt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Bt[Bt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Bt[Bt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Bt[Bt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Bt[Bt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Bt[Bt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Bt[Bt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Bt[Bt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Bt[Bt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Bt[Bt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Bt[Bt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Bt[Bt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Bt[Bt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Bt[Bt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Bt[Bt.INVALID_TAG=23]="INVALID_TAG",Bt[Bt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Bt[Bt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Bt[Bt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(kt=lt=lt||{})[kt.literal=0]="literal",kt[kt.argument=1]="argument",kt[kt.number=2]="number",kt[kt.date=3]="date",kt[kt.time=4]="time",kt[kt.select=5]="select",kt[kt.plural=6]="plural",kt[kt.pound=7]="pound",kt[kt.tag=8]="tag",(Ft=ut=ut||{})[Ft.number=0]="number",Ft[Ft.dateTime=1]="dateTime";var Pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Et=/(?:[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 Tt,_t=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ct=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,At=/^(@+)?(\+|#+)?$/g,xt=/(\*)(0+)|(#+)(0+)|(0+)/g,St=/^(0+)$/;function It(e){var n={};return e.replace(At,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Ot(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Lt(e){return Ot(e)||{}}function Mt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.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=o.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=ct(ct(ct({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return ct(ct({},e),Lt(t))},{}));continue;case"engineering":s=ct(ct(ct({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return ct(ct({},e),Lt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(xt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&o)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(St.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ct.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ct,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),o.options.length&&(s=ct(ct({},s),It(o.options[0])))}else At.test(o.stem)?s=ct(ct({},s),It(o.stem)):((n=Ot(o.stem))&&(s=ct(ct({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!St.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=ct(ct({},s),n)))}return s}var Nt=new RegExp("^"+Pt.source+"*"),Rt=new RegExp(Pt.source+"*$");function Ut(e,t){return{start:e,end:t}}var Dt=!!String.prototype.startsWith,Ie=!!String.fromCodePoint,ke=!!Object.fromEntries,Bt=!!String.prototype.codePointAt,kt=!!String.prototype.trimStart,Ft=!!String.prototype.trimEnd,Gt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pt=!0;try{Pt="a"===(null===(Tt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Tt?void 0:Tt[0])}catch(re){Pt=!1}var jt,Vt,$t=Dt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},zt=Ie?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Wt=ke?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},Xt=Bt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},Zt=kt?function(e){return e.trimStart()}:function(e){return e.replace(Nt,"")},Ht=Ft?function(e){return e.trimEnd()}:function(e){return e.replace(Rt,"")};function Yt(e,t){return new RegExp(e,t)}Vt=Pt?(jt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return jt.lastIndex=t,null!==(e=jt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=Xt(e,t);if(void 0===o||Jt(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return zt.apply(void 0,n)};var qt=(Kt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Kt.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(at.UNMATCHED_CLOSING_TAG,Ut(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Qt(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:lt.pound,location:Ut(i,this.clonePosition())})}}}return{val:n,err:null}},Kt.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:lt.literal,value:"<"+n+"/>",location:Ut(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qt(this.char()))return this.error(at.INVALID_TAG,Ut(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(at.UNMATCHED_CLOSING_TAG,Ut(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:lt.tag,value:n,children:e,location:Ut(r,this.clonePosition())},err:null}:this.error(at.INVALID_TAG,Ut(t,this.clonePosition())))}return this.error(at.UNCLOSED_TAG,Ut(r,this.clonePosition()))}return this.error(at.INVALID_TAG,Ut(r,this.clonePosition()))},Kt.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},Kt.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Ut(r,this.clonePosition());return{val:{type:lt.literal,value:n,location:r},err:null}},Kt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Qt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Kt.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return zt.apply(void 0,t)},Kt.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),zt(r))},Kt.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(at.EMPTY_ARGUMENT,Ut(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(at.MALFORMED_ARGUMENT,Ut(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:lt.argument,value:n,location:Ut(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(at.MALFORMED_ARGUMENT,Ut(r,this.clonePosition()))}},Kt.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Vt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ut(e,this.clonePosition())}},Kt.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(at.EXPECT_ARGUMENT_TYPE,Ut(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(h=Ht(p.val)).length)return this.error(at.EXPECT_ARGUMENT_STYLE,Ut(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:Ut(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var c=Ut(n,this.clonePosition());if(l&&$t(null==l?void 0:l.style,"::",0)){u=Zt(l.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?p:{val:{type:lt.number,value:r,location:c,style:p.val},err:null};if(0===u.length)return this.error(at.EXPECT_DATE_TIME_SKELETON,c);var h={type:ut.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(Et,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===s?lt.date:lt.time,value:r,location:c,style:h},err:null}}return{val:{type:"number"===s?lt.number:"date"===s?lt.date:lt.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(at.EXPECT_SELECT_ARGUMENT_OPTIONS,Ut(l,ct({},l)));this.bumpSpace();var p,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ut(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(at.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,at.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=p.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((f=this.tryParseArgumentClose(n)).err)return f;var f=Ut(n,this.clonePosition());return"select"===s?{val:{type:lt.select,value:r,options:Wt(c.val),location:f},err:null}:{val:{type:lt.plural,value:r,options:Wt(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(at.INVALID_ARGUMENT_TYPE,Ut(i,a))}},Kt.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(at.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Kt.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(at.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ut(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},Kt.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(_t).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(at.INVALID_NUMBER_SKELETON,t)}return{val:{type:ut.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Mt(r):{}},err:null}},Kt.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(at.EXPECT_PLURAL_ARGUMENT_SELECTOR,at.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ut(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?at.DUPLICATE_SELECT_ARGUMENT_SELECTOR:at.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?at.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:at.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ut(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(h);if(u.err)return u;i.push([a,{value:c.val,location:Ut(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===i.length?this.error("select"===t?at.EXPECT_SELECT_ARGUMENT_SELECTOR:at.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(at.MISSING_OTHER_CLAUSE,Ut(this.clonePosition(),this.clonePosition())):{val:i,err:null}},Kt.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Ut(n,this.clonePosition());return o?Gt(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},Kt.prototype.offset=function(){return this.position.offset},Kt.prototype.isEOF=function(){return this.offset()===this.message.length},Kt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Kt.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Xt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Kt.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Kt.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},Kt.prototype.bumpIf=function(e){if($t(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Kt.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Kt.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Kt.prototype.bumpSpace=function(){for(;!this.isEOF()&&Jt(this.char());)this.bump()},Kt.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Kt);function Kt(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Qt(e){return 97<=e&&e<=122||65<=e&&e<=90}function Jt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function er(e,t){t=ct({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new qt(e,t).parse();if(r.err){e=SyntaxError(at[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,mt(e)||yt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else ft(e)&&wt(e.style)||(dt(e)||gt(e))&&vt(e.style)?delete e.style.location:bt(e)&&r(e.children)})}(r.val),r.val}function tr(e,t){var r=t&&t.cache?t.cache:lr,n=t&&t.serializer?t.serializer:ir;return(t&&t.strategy?t.strategy:function(e,t){return or(e,this,1===e.length?rr:nr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function rr(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function nr(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function or(e,t,r,n,o){return r.bind(t,e,n,o)}var ir=function(){return JSON.stringify(arguments)};function sr(){this.cache=Object.create(null)}sr.prototype.has=function(e){return e in this.cache},sr.prototype.get=function(e){return this.cache[e]},sr.prototype.set=function(e,t){this.cache[e]=t};var ar,lr={create:function(){return new sr}},ur={variadic:function(e,t){return or(e,this,nr,t.cache.create(),t.serializer)},monadic:function(e,t){return or(e,this,rr,t.cache.create(),t.serializer)}};(Pt=ar=ar||{}).MISSING_VALUE="MISSING_VALUE",Pt.INVALID_VALUE="INVALID_VALUE",Pt.MISSING_INTL_API="MISSING_INTL_API";var cr,hr,pr,fr,dr,gr=(st(Er,dr=Error),Er.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Er),mr=(st(Pr,fr=gr),Pr),yr=(st(vr,pr=gr),vr),br=(st(wr,hr=gr),wr);function wr(e,t){return hr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',ar.MISSING_VALUE,t)||this}function vr(e,t,r){return pr.call(this,'Value for "'+e+'" must be of type '+t,ar.INVALID_VALUE,r)||this}function Pr(e,t,r,n){return fr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',ar.INVALID_VALUE,n)||this}function Er(e,t,r){e=dr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Tr(e,t,r,n,o,i,s){if(1===e.length&&pt(e[0]))return[{type:cr.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(pt(c))a.push({type:cr.literal,value:c.value});else if(c.type===lt.pound)"number"==typeof i&&a.push({type:cr.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new br(h,s);var p=o[h];if(c.type===lt.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?cr.literal:cr.object,value:p});else if(dt(c)){var f="string"==typeof c.style?n.date[c.style]:vt(c.style)?c.style.parsedOptions:void 0;a.push({type:cr.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(gt(c))f="string"==typeof c.style?n.time[c.style]:vt(c.style)?c.style.parsedOptions:void 0,a.push({type:cr.literal,value:r.getDateTimeFormat(t,f).format(p)});else if(ft(c))(f="string"==typeof c.style?n.number[c.style]:wt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:cr.literal,value:r.getNumberFormat(t,f).format(p)});else{if(bt(c)){var d=c.children,g=c.value,h=o[g];if("function"!=typeof h)throw new yr(g,"function",s);d=h(Tr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?cr.literal:cr.object,value:e}}))}if(mt(c)){if(!(m=c.options[p]||c.options.other))throw new mr(c.value,p,Object.keys(c.options),s);a.push.apply(a,Tr(m.value,t,r,n,o))}else if(yt(c)){if(!(m=c.options["="+p])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ar.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new mr(c.value,p,Object.keys(c.options),s);a.push.apply(a,Tr(m.value,t,r,n,o,p-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===cr.literal&&t.type===cr.literal?r.value+=t.value:e.push(t),e},[])}function _r(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(Pt=cr=cr||{})[Pt.literal=0]="literal",Pt[Pt.object=1]="object";var Cr=(Object.defineProperty(Ar,"defaultLocale",{get:function(){return Ar.memoizedDefaultLocale||(Ar.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Ar.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Ar.memoizedDefaultLocale=null,Ar.__parse=er,Ar.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"}}},Ar);function Ar(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=Ar.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===cr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Tr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Ar.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Ar.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Ar.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?ct(ct(ct({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=ct(ct({},r[t]),n[t]||{}),e},{})):r),e},ct({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ht([void 0],t)))},{cache:_r((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:ur.variadic}),getDateTimeFormat:tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ht([void 0],t)))},{cache:_r(n.dateTime),strategy:ur.variadic}),getPluralRules:tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ht([void 0],t)))},{cache:_r(n.pluralRules),strategy:ur.variadic})}}const xr={},Sr=(t,r)=>{if(null!=r){if(r in xr&&t in xr[r])return xr[r][t];var n,o,i=$r(r);for(let e=0;e<i.length;e++){var s=(n=i[e],o=t,Lr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ir[e]||null}(n),o):null);if(s)return n=t,o=r,(s=s)&&(o in xr||(xr[o]={}),n in xr[o]||(xr[o][n]=s),s)}}};let Ir;const Or=He({});function Lr(e){return e in Ir}Ye([Or],([e])=>Object.keys(e)),Or.subscribe(e=>Ir=e);const Mr={};function Nr(e){return Mr[e]}function Rr(e){return $r(e).some(e=>{return null===(e=Nr(e))||void 0===e?void 0:e.size})}function Ur(t,e){return Promise.all(e.map(e=>(function(e,t){Mr[e].delete(t),0===Mr[e].size&&delete Mr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>function(t,...r){delete xr[t],Or.update(e=>(e[t]=ot.all([e[t]||{},...r]),e))}(t,...e))}const Dr={};function Br(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const kr={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 Fr=He(!1);let Gr;const jr=He(null);function Vr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function $r(e,t=kr.fallbackLocale){e=Vr(e);return t?[...new Set([...e,...Vr(t)])]:e}jr.subscribe(e=>{Gr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const zr=jr.set;jr.set=t=>{if(function(e){if(null!=e){var t=$r(e);for(let e=0;e<t.length;e++){var r=t[e];if(Lr(r))return r}}}(t)&&Rr(t)){var{loadingDelay:r}=kr;let e;return"undefined"!=typeof window&&null!=Gr&&r?e=window.setTimeout(()=>Fr.set(!0),r):Fr.set(!0),function e(t){if(!Rr(t))return t in Dr?Dr[t]:void 0;const r=$r(t).map(e=>{var t=Nr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Dr[t]=Promise.all(r.map(([e,t])=>Ur(e,t))).then(()=>Rr(t)?e(t):void delete Dr[t]),Dr[t]}(t).then(()=>{zr(t)}).finally(()=>{clearTimeout(e),Fr.set(!1)})}return zr(t)},jr.update=e=>zr(e(Gr));const Wr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Xr=(e,t)=>{var{formats:r}=kr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zr=Wr(e=>{var{locale:t,format:r}=e,e=Br(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Xr("number",r)),new Intl.NumberFormat(t,e)}),Hr=Wr(e=>{var{locale:t,format:r}=e,e=Br(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Xr("date",r):0===Object.keys(e).length&&(e=Xr("date","short")),new Intl.DateTimeFormat(t,e)}),Yr=Wr(e=>{var{locale:t,format:r}=e,e=Br(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Xr("time",r):0===Object.keys(e).length&&(e=Xr("time","short")),new Intl.DateTimeFormat(t,e)}),qr=Wr((e,t=Gr)=>new Cr(e,t,kr.formats,{ignoreTag:kr.ignoreTag}));function Kr(r){let n,o,i,s,a,l,u,c,h,p=r[17]&&function(r){let n,o,i;return{c(){n=t("div"),n.innerHTML='<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 240.823 240.823" style="enable-background:new 0 0 240.823 240.823;" xml:space="preserve" width="18px" fill="#58586B"><g><path id="Chevron_Right" d="M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z"></path></g></svg> \n <span>Return to menu</span>',he(n,"class","MenuReturnButton")},m(e,t){se(e,n,t),o||(i=ce(n,"click",r[38]),o=!0)},p:re,d(e){e&&ae(n),o=!1,i()}}}(r);return{c(){p&&p.c(),n=ue(),o=t("div"),o.innerHTML="<h3>Change Password</h3>",i=ue(),s=t("div"),a=t("div"),a.innerHTML='<div class="IconContainer"><div class="Checkmark"></div></div> \n <div class="TextContainer"><h3>PASSWORD RESET</h3> \n <p>Your password has been reset successfully.</p></div>',l=ue(),u=t("div"),u.textContent="Back to Casino",he(o,"class","PlayerChangePasswordHeader"),he(a,"class","SuccessWrapper"),he(u,"class","PlayerChangePasswordBackButton"),he(s,"class","ChangedPasswordSuccessfully")},m(e,t){p&&p.m(e,t),se(e,n,t),se(e,o,t),se(e,i,t),se(e,s,t),ie(s,a),ie(s,l),ie(s,u),c||(h=ce(u,"click",r[39]),c=!0)},p(e,t){e[17]&&p.p(e,t)},d(e){p&&p.d(e),e&&ae(n),e&&ae(o),e&&ae(i),e&&ae(s),c=!1,h()}}}function Qr(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b,w,v,P,E,T,_,C,A,x,S,I,O,L,M,N,R,U,D,B,k,F,G=r[17]&&function(r){let n,o,i;return{c(){n=t("div"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:#d0046c;}</style></defs><g transform="translate(-20 -158)"><g transform="translate(20 158)"><path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"></path></g></g></svg> \n <h2 class="ChangePasswordTitleMobile">Change Password</h2>',he(n,"class","MenuReturnButton")},m(e,t){se(e,n,t),o||(i=ce(n,"click",r[24]),o=!0)},p:re,d(e){e&&ae(n),o=!1,i()}}}(r);function j(e){return e[8]?en:Jr}let V=j(r),$=V(r),z=r[2]&&tn();function W(e){return e[9]?nn:rn}let X=W(r),Z=X(r);function H(e){return e[11]?sn:e[3]?on:void 0}let Y=H(r),q=Y&&Y(r);function K(e){return e[10]?ln:an}let Q=K(r),J=Q(r),ee=r[4]&&un(),te=r[16]&&cn(r);return{c(){G&&G.c(),n=ue(),o=t("h2"),i=le("Change Password"),s=ue(),a=t("section"),l=t("div"),u=t("label"),u.textContent="Current Password:",c=ue(),h=t("input"),p=ue(),$.c(),f=ue(),z&&z.c(),g=ue(),m=t("div"),y=t("label"),y.textContent="New Password:",b=ue(),w=t("input"),v=ue(),Z.c(),P=ue(),q&&q.c(),T=ue(),_=t("div"),C=t("label"),C.textContent="Confirm Password:",A=ue(),x=t("input"),S=ue(),J.c(),I=ue(),ee&&ee.c(),L=ue(),te&&te.c(),M=ue(),N=t("section"),R=t("div"),U=le("Change Password"),he(o,"class","ChangePasswordTitle "+(r[17]?"ChangePasswordTitleNone":"")),he(u,"for","CurrentPassword"),he(h,"id","CurrentPassword"),he(h,"type","password"),he(l,"class",d="PlayerChangePasswordBox "+(r[2]?"InvalidField":"")),he(y,"for","NewPassword"),he(w,"id","NewPassword"),he(w,"type","password"),he(m,"class",E="PlayerChangePasswordBox "+(r[3]?"InvalidField":"")),he(C,"for","ConfirmPassword"),he(x,"id","ConfirmPassword"),he(x,"type","password"),he(_,"class",O="PlayerChangePasswordBox "+(r[4]?"InvalidField":"")),he(a,"class","PlayerChangePasswordContent"),he(R,"class",D="PlayerChangePasswordSaveButton "+(r[1]?"":"ButtonInactive")),he(R,"disabled",B=!r[1]),he(N,"class","PlayerChangePasswordButtonsArea")},m(e,t){G&&G.m(e,t),se(e,n,t),se(e,o,t),ie(o,i),se(e,s,t),se(e,a,t),ie(a,l),ie(l,u),ie(l,c),ie(l,h),pe(h,r[12]),r[26](h),ie(l,p),$.m(l,null),ie(l,f),z&&z.m(l,null),ie(a,g),ie(a,m),ie(m,y),ie(m,b),ie(m,w),pe(w,r[13]),r[30](w),ie(m,v),Z.m(m,null),ie(m,P),q&&q.m(m,null),ie(a,T),ie(a,_),ie(_,C),ie(_,A),ie(_,x),pe(x,r[14]),r[34](x),ie(_,S),J.m(_,null),ie(_,I),ee&&ee.m(_,null),se(e,L,t),te&&te.m(e,t),se(e,M,t),se(e,N,t),ie(N,R),ie(R,U),k||(F=[ce(h,"input",r[25]),ce(h,"blur",function(){oe(r[20](r[2],r[12],r[5]))&&r[20](r[2],r[12],r[5]).apply(this,arguments)}),ce(w,"input",r[29]),ce(w,"blur",function(){oe(r[20](r[3],r[13],r[6]))&&r[20](r[3],r[13],r[6]).apply(this,arguments)}),ce(x,"input",r[33]),ce(x,"blur",function(){oe(r[20](r[4],r[14],r[7]))&&r[20](r[4],r[14],r[7]).apply(this,arguments)}),ce(R,"click",r[37])],k=!0)},p(e,t){(r=e)[17]&&G.p(r,t),4096&t[0]&&h.value!==r[12]&&pe(h,r[12]),V===(V=j(r))&&$?$.p(r,t):($.d(1),$=V(r),$&&($.c(),$.m(l,f))),r[2]?z||(z=tn(),z.c(),z.m(l,null)):z&&(z.d(1),z=null),4&t[0]&&d!==(d="PlayerChangePasswordBox "+(r[2]?"InvalidField":""))&&he(l,"class",d),8192&t[0]&&w.value!==r[13]&&pe(w,r[13]),X===(X=W(r))&&Z?Z.p(r,t):(Z.d(1),Z=X(r),Z&&(Z.c(),Z.m(m,P))),Y!==(Y=H(r))&&(q&&q.d(1),q=Y&&Y(r),q&&(q.c(),q.m(m,null))),8&t[0]&&E!==(E="PlayerChangePasswordBox "+(r[3]?"InvalidField":""))&&he(m,"class",E),16384&t[0]&&x.value!==r[14]&&pe(x,r[14]),Q===(Q=K(r))&&J?J.p(r,t):(J.d(1),J=Q(r),J&&(J.c(),J.m(_,I))),r[4]?ee||(ee=un(),ee.c(),ee.m(_,null)):ee&&(ee.d(1),ee=null),16&t[0]&&O!==(O="PlayerChangePasswordBox "+(r[4]?"InvalidField":""))&&he(_,"class",O),r[16]?te?te.p(r,t):(te=cn(r),te.c(),te.m(M.parentNode,M)):te&&(te.d(1),te=null),2&t[0]&&D!==(D="PlayerChangePasswordSaveButton "+(r[1]?"":"ButtonInactive"))&&he(R,"class",D),2&t[0]&&B!==(B=!r[1])&&he(R,"disabled",B)},d(e){G&&G.d(e),e&&ae(n),e&&ae(o),e&&ae(s),e&&ae(a),r[26](null),$.d(),z&&z.d(),r[30](null),Z.d(),q&&q.d(),r[34](null),J.d(),ee&&ee.d(),e&&ae(L),te&&te.d(e),e&&ae(M),e&&ae(N),k=!1,ne(F)}}}function Jr(r){let n,o,i,s,a,l,u,c,h,p;return{c(){n=e("svg"),o=e("defs"),i=e("style"),s=le(".a{fill:#fff;}"),a=e("g"),l=e("path"),u=e("circle"),he(l,"class","a"),he(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"),he(l,"transform","translate(0)"),he(u,"class","a"),he(u,"cx","2.779"),he(u,"cy","2.779"),he(u,"r","2.779"),he(u,"transform","translate(20.827 30.303)"),he(a,"transform","translate(-14.185 -27.832)"),he(n,"class",c="TogglePasswordVisibility "+(r[2]?"InvalidToggle":"")+" "+(r[17]?"TogglePasswordVisibilityMobile":"")),he(n,"xmlns","http://www.w3.org/2000/svg"),he(n,"width","18.843"),he(n,"height","10.5"),he(n,"viewBox","0 0 18.843 10.5")},m(e,t){se(e,n,t),ie(n,o),ie(o,i),ie(i,s),ie(n,a),ie(a,l),ie(a,u),h||(p=ce(n,"click",r[28]),h=!0)},p(e,t){4&t[0]&&c!==(c="TogglePasswordVisibility "+(e[2]?"InvalidToggle":"")+" "+(e[17]?"TogglePasswordVisibilityMobile":""))&&he(n,"class",c)},d(e){e&&ae(n),h=!1,p()}}}function en(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b;return{c(){n=e("svg"),o=e("defs"),i=e("style"),s=le(".a{fill:#fff;}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),f=e("path"),d=e("path"),g=e("rect"),he(l,"class","a"),he(l,"cx","0.05"),he(l,"cy","0.05"),he(l,"r","0.05"),he(l,"transform","translate(121.017 31.148)"),he(c,"class","a"),he(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),he(c,"transform","translate(-142.164 -39.123)"),he(h,"class","a"),he(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),he(h,"transform","translate(-136.413 -42.068)"),he(u,"transform","translate(117.499 27.37)"),he(f,"class","a"),he(f,"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"),he(f,"transform","translate(-110.856 -33.157)"),he(d,"class","a"),he(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"),he(d,"transform","translate(-130.743 -29.617)"),he(p,"transform","translate(110.856 24.899)"),he(g,"class","a"),he(g,"width","0.972"),he(g,"height","15.861"),he(g,"rx","0.486"),he(g,"transform","translate(114.827 23.858) rotate(-39.315)"),he(a,"transform","translate(-110.856 -23.242)"),he(n,"class",m="TogglePasswordVisibility "+(r[2]?"InvalidToggle":"")+" "+(r[17]?"TogglePasswordVisibilityMobile":"")),he(n,"xmlns","http://www.w3.org/2000/svg"),he(n,"width","18.844"),he(n,"height","12.887"),he(n,"viewBox","0 0 18.844 12.887")},m(e,t){se(e,n,t),ie(n,o),ie(o,i),ie(i,s),ie(n,a),ie(a,l),ie(a,u),ie(u,c),ie(u,h),ie(a,p),ie(p,f),ie(p,d),ie(a,g),y||(b=ce(n,"click",r[27]),y=!0)},p(e,t){4&t[0]&&m!==(m="TogglePasswordVisibility "+(e[2]?"InvalidToggle":"")+" "+(e[17]?"TogglePasswordVisibilityMobile":""))&&he(n,"class",m)},d(e){e&&ae(n),y=!1,b()}}}function tn(){let r;return{c(){r=t("p"),r.textContent="The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",he(r,"class","InvalidInput")},m(e,t){se(e,r,t)},d(e){e&&ae(r)}}}function rn(r){let n,o,i,s,a,l,u,c,h,p;return{c(){n=e("svg"),o=e("defs"),i=e("style"),s=le(".a{fill:#fff;}"),a=e("g"),l=e("path"),u=e("circle"),he(l,"class","a"),he(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"),he(l,"transform","translate(0)"),he(u,"class","a"),he(u,"cx","2.779"),he(u,"cy","2.779"),he(u,"r","2.779"),he(u,"transform","translate(20.827 30.303)"),he(a,"transform","translate(-14.185 -27.832)"),he(n,"class",c="TogglePasswordVisibility "+(r[3]?"InvalidToggle":"")+" "+(r[17]?"TogglePasswordVisibilityMobile":"")),he(n,"xmlns","http://www.w3.org/2000/svg"),he(n,"width","18.843"),he(n,"height","10.5"),he(n,"viewBox","0 0 18.843 10.5")},m(e,t){se(e,n,t),ie(n,o),ie(o,i),ie(i,s),ie(n,a),ie(a,l),ie(a,u),h||(p=ce(n,"click",r[32]),h=!0)},p(e,t){8&t[0]&&c!==(c="TogglePasswordVisibility "+(e[3]?"InvalidToggle":"")+" "+(e[17]?"TogglePasswordVisibilityMobile":""))&&he(n,"class",c)},d(e){e&&ae(n),h=!1,p()}}}function nn(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b;return{c(){n=e("svg"),o=e("defs"),i=e("style"),s=le(".a{fill:#fff;}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),f=e("path"),d=e("path"),g=e("rect"),he(l,"class","a"),he(l,"cx","0.05"),he(l,"cy","0.05"),he(l,"r","0.05"),he(l,"transform","translate(121.017 31.148)"),he(c,"class","a"),he(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),he(c,"transform","translate(-142.164 -39.123)"),he(h,"class","a"),he(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),he(h,"transform","translate(-136.413 -42.068)"),he(u,"transform","translate(117.499 27.37)"),he(f,"class","a"),he(f,"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"),he(f,"transform","translate(-110.856 -33.157)"),he(d,"class","a"),he(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"),he(d,"transform","translate(-130.743 -29.617)"),he(p,"transform","translate(110.856 24.899)"),he(g,"class","a"),he(g,"width","0.972"),he(g,"height","15.861"),he(g,"rx","0.486"),he(g,"transform","translate(114.827 23.858) rotate(-39.315)"),he(a,"transform","translate(-110.856 -23.242)"),he(n,"class",m="TogglePasswordVisibility "+(r[3]?"InvalidToggle":"")+" "+(r[17]?"TogglePasswordVisibilityMobile":"")),he(n,"xmlns","http://www.w3.org/2000/svg"),he(n,"width","18.844"),he(n,"height","12.887"),he(n,"viewBox","0 0 18.844 12.887")},m(e,t){se(e,n,t),ie(n,o),ie(o,i),ie(i,s),ie(n,a),ie(a,l),ie(a,u),ie(u,c),ie(u,h),ie(a,p),ie(p,f),ie(p,d),ie(a,g),y||(b=ce(n,"click",r[31]),y=!0)},p(e,t){8&t[0]&&m!==(m="TogglePasswordVisibility "+(e[3]?"InvalidToggle":"")+" "+(e[17]?"TogglePasswordVisibilityMobile":""))&&he(n,"class",m)},d(e){e&&ae(n),y=!1,b()}}}function on(e){let r;return{c(){r=t("p"),r.textContent="The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",he(r,"class","InvalidInput")},m(e,t){se(e,r,t)},d(e){e&&ae(r)}}}function sn(e){let r;return{c(){r=t("p"),r.textContent="The new password must be different from the old password.",he(r,"class","InvalidInputNew")},m(e,t){se(e,r,t)},d(e){e&&ae(r)}}}function an(r){let n,o,i,s,a,l,u,c,h,p;return{c(){n=e("svg"),o=e("defs"),i=e("style"),s=le(".a{fill:#fff;}"),a=e("g"),l=e("path"),u=e("circle"),he(l,"class","a"),he(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"),he(l,"transform","translate(0)"),he(u,"class","a"),he(u,"cx","2.779"),he(u,"cy","2.779"),he(u,"r","2.779"),he(u,"transform","translate(20.827 30.303)"),he(a,"transform","translate(-14.185 -27.832)"),he(n,"class",c="TogglePasswordVisibility "+(r[4]?"InvalidToggle":"")+" "+(r[17]?"TogglePasswordVisibilityMobile":"")),he(n,"xmlns","http://www.w3.org/2000/svg"),he(n,"width","18.843"),he(n,"height","10.5"),he(n,"viewBox","0 0 18.843 10.5")},m(e,t){se(e,n,t),ie(n,o),ie(o,i),ie(i,s),ie(n,a),ie(a,l),ie(a,u),h||(p=ce(n,"click",r[36]),h=!0)},p(e,t){16&t[0]&&c!==(c="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[17]?"TogglePasswordVisibilityMobile":""))&&he(n,"class",c)},d(e){e&&ae(n),h=!1,p()}}}function ln(r){let n,o,i,s,a,l,u,c,h,p,f,d,g,m,y,b;return{c(){n=e("svg"),o=e("defs"),i=e("style"),s=le(".a{fill:#fff;}"),a=e("g"),l=e("circle"),u=e("g"),c=e("path"),h=e("path"),p=e("g"),f=e("path"),d=e("path"),g=e("rect"),he(l,"class","a"),he(l,"cx","0.05"),he(l,"cy","0.05"),he(l,"r","0.05"),he(l,"transform","translate(121.017 31.148)"),he(c,"class","a"),he(c,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),he(c,"transform","translate(-142.164 -39.123)"),he(h,"class","a"),he(h,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),he(h,"transform","translate(-136.413 -42.068)"),he(u,"transform","translate(117.499 27.37)"),he(f,"class","a"),he(f,"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"),he(f,"transform","translate(-110.856 -33.157)"),he(d,"class","a"),he(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"),he(d,"transform","translate(-130.743 -29.617)"),he(p,"transform","translate(110.856 24.899)"),he(g,"class","a"),he(g,"width","0.972"),he(g,"height","15.861"),he(g,"rx","0.486"),he(g,"transform","translate(114.827 23.858) rotate(-39.315)"),he(a,"transform","translate(-110.856 -23.242)"),he(n,"class",m="TogglePasswordVisibility "+(r[4]?"InvalidToggle":"")+" "+(r[17]?"TogglePasswordVisibilityMobile":"")),he(n,"xmlns","http://www.w3.org/2000/svg"),he(n,"width","18.844"),he(n,"height","12.887"),he(n,"viewBox","0 0 18.844 12.887")},m(e,t){se(e,n,t),ie(n,o),ie(o,i),ie(i,s),ie(n,a),ie(a,l),ie(a,u),ie(u,c),ie(u,h),ie(a,p),ie(p,f),ie(p,d),ie(a,g),y||(b=ce(n,"click",r[35]),y=!0)},p(e,t){16&t[0]&&m!==(m="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[17]?"TogglePasswordVisibilityMobile":""))&&he(n,"class",m)},d(e){e&&ae(n),y=!1,b()}}}function un(){let r;return{c(){r=t("p"),r.textContent="Password must match the new password and must follow the same rules.",he(r,"class","InvalidInput")},m(e,t){se(e,r,t)},d(e){e&&ae(r)}}}function cn(e){let r,n,o;return{c(){r=t("div"),n=t("p"),o=le(e[15]),he(n,"class","PasswordChangedError")},m(e,t){se(e,r,t),ie(r,n),ie(n,o)},p(e,t){32768&t[0]&&(t=o,e=e[15],t.wholeText!==(e=""+e)&&(t.data=e))},d(e){e&&ae(r)}}}function hn(e){let r,n=function(e){let r;function n(e){return e[0]?Kr:Qr}let o=n(e),i=o(e);return{c(){r=t("form"),i.c(),he(r,"class","PlayerChangePasswordWrapper "+(e[17]?"PlayerChangePasswordWrapperMobile":"")+" "+(e[18].matches&&e[17]?"PlayerChangePasswordWrapperTablet":""))},m(e,t){se(e,r,t),i.m(r,null)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r,null)))},d(e){e&&ae(r),i.d()}}}(e);return{c(){n.c(),r=le(""),this.c=re},m(e,t){n.m(e,t),se(e,r,t)},p(e,t){n.p(e,t)},i:re,o:re,d(e){n.d(e),e&&ae(r)}}}function pn(e,t,n){let r="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),o=!1;var i;const s=window.matchMedia("(min-width: 768px)"),a={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};let l,u,c,h=!1,p=!1,f=!1,d=!1,g=!1,m=!1,y,b="",w="",v="",P=!1,E="",T=!1;const _=e=>{switch(e){case"userCurrentPassword":n(8,d=!d),n(5,l.type=d?"text":"password",l);break;case"userNewPassword":n(9,g=!g),n(6,u.type=g?"text":"password",u);break;case"userConfirmPassword":n(10,m=!m),n(7,c.type=m?"text":"password",c)}},C=e=>!!a.password.test(e),A=()=>{o&&window.postMessage({type:"ChangePassword",userCurrentPassword:b,userNewPassword:w},window.location.href)},x=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},S=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":n(0,P=!0);break;case"ShowPasswordChangedError":n(16,T=e.data.showErrorPasswordChanged),n(15,E=e.data.errorPasswordChanged)}};return i=()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}),function(){if(!I)throw new Error("Function called outside component initialization");return I}().$$.on_mount.push(i),e.$$.update=()=>{e.$$.dirty[0]},[P,o,h,p,f,l,u,c,d,g,m,!1,b,w,v,E,T,r,s,_,(e,t,r)=>{"CurrentPassword"===r.id?n(2,h=!C(t)):"NewPassword"===r.id?(n(3,p=!C(t)),b&&n(11,y=b===w)):n(4,f=w!==v||!C(t)),n(1,o=!(h||p||f||!b||!w||!v))},A,x,()=>{},()=>x(),function(){b=this.value,n(12,b)},function(e){O[e?"unshift":"push"](()=>{l=e,n(5,l)})},()=>_("userCurrentPassword"),()=>_("userCurrentPassword"),function(){w=this.value,n(13,w)},function(e){O[e?"unshift":"push"](()=>{u=e,n(6,u)})},()=>_("userNewPassword"),()=>_("userNewPassword"),function(){v=this.value,n(14,v)},function(e){O[e?"unshift":"push"](()=>{c=e,n(7,c)})},()=>_("userConfirmPassword"),()=>_("userConfirmPassword"),()=>A(),()=>x(),()=>{}]}Ye([jr,Or],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Gr,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Sr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else kr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${$r(n).join('", "')}".${Rr(Gr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let s=i;try{s=qr(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s}),Ye([jr],()=>(e,t)=>((e={})=>{var{locale:t=Gr}=e,e=Br(e,["locale"]);return Yr(Object.assign({locale:t},e))})(t).format(e)),Ye([jr],()=>(e,t)=>((e={})=>{var{locale:t=Gr}=e,e=Br(e,["locale"]);return Hr(Object.assign({locale:t},e))})(t).format(e)),Ye([jr],()=>(e,t)=>((e={})=>{var{locale:t=Gr}=e,e=Br(e,["locale"]);return Zr(Object.assign({locale:t},e))})(t).format(e)),Ye([jr,Or],()=>(e,t=Gr)=>Sr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==We.indexOf(e)&&(t=new je(t),Xe[e]=t,We.push(e)),Xe[e]}};class fn extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerChangePasswordWrapper{color:#07072A;padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:#D0046C;font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:#D0046C}.ChangePasswordTitleNone{display:none}.PlayerChangePasswordContent{display:grid;grid-column-gap:50px;grid-row-gap:15px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerChangePasswordButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr}.PlayerChangePasswordSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:#FFF;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerChangePasswordBox{display:flex;flex-direction:column;position:relative}.PlayerChangePasswordBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerChangePasswordBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;border:1px solid #D1D1D1;background:#FFFFFF;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerChangePasswordBox input:focus,.PlayerChangePasswordBox input :focus-within,.PlayerChangePasswordBox input :focus-visible,.PlayerChangePasswordBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerChangePasswordBox input::-webkit-outer-spin-button,.PlayerChangePasswordBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerChangePasswordBox.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInput{bottom:-16px}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInputNew{bottom:-24px}.TogglePasswordVisibility{height:20px;position:absolute;right:10px;top:33px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:#D0046C}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:#58586B}.TogglePasswordVisibilityMobile{top:31px}.InvalidInput,.InvalidInputNew{color:#D0046C;font-size:10px;position:absolute;bottom:-25px;margin:0;line-height:10px}.InvalidInputNew{bottom:-24px}.PasswordChangedError{color:#FD2839;font-size:16px;line-height:19.2px;margin-top:0}.ChangedPasswordSuccessfully{color:#fff;position:relative}.ChangedPasswordSuccessfully .SuccessWrapper{display:inline-flex;align-items:center;margin-bottom:20px}.ChangedPasswordSuccessfully .IconContainer{width:45px;height:45px;border:1px solid #16CE16;border-radius:50px;display:flex;align-items:center;justify-content:center}.ChangedPasswordSuccessfully .Checkmark{width:12px;height:22px;border:solid #16CE16;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:relative;top:-3px}.ChangedPasswordSuccessfully h3{font-size:20px;font-weight:400;margin:10px 0;color:#16CE16}.ChangedPasswordSuccessfully p{margin:0;font-size:14px;font-weight:300;color:#07072A}.ChangedPasswordSuccessfully .TextContainer{display:flex;flex-direction:column;padding:10px 20px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:#FFF;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;border:1px solid #D0046C;background:#D0046C;max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:#D0046C;background:#fff}.PlayerChangePasswordWrapperMobile{height:100%;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column;height:100%}.PlayerChangePasswordWrapperMobile:after{content:'';position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordButtonsArea{grid-column-gap:10px}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{font-size:12px;height:44px;color:#58586B}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{color:#fff}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordWrapperMobile .ChangedPasswordSuccessfully{color:#58586B}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerChangePasswordWrapperTablet{padding:40px 25% 100% 25%}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordContent{grid-row-gap:20px}.PlayerChangePasswordWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerChangePasswordWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox label{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox input{height:30px;font-size:20px;line-height:30px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility{width:30px;top:46px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea{grid-column-gap:40px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{font-size:18px;height:56px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{color:#fff}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton.ButtonInactive{color:#58586B}</style>",a(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},pn,hn,r,{},[-1,-1]),e&&e.target&&se(e.target,this,e.anchor)}}return customElements.get("player-change-password")||customElements.define("player-change-password",fn),fn});
|
|
2
2
|
//# sourceMappingURL=player-change-password.js.map
|