@everymatrix/player-profile-info 0.0.200 → 0.0.204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function bt(){}function p(e){return e()}function f(){return Object.create(null)}function gt(e){e.forEach(p)}function h(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function vt(e,t){e.appendChild(t)}function Et(e,t,r){e.insertBefore(t,r||null)}function _t(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function Pt(e){return document.createTextNode(e)}function wt(){return Pt(" ")}function a(){return Pt("")}function Tt(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function At(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function s(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function xt(e,t){e.value=null==t?"":t}function St(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}let X;function d(e){X=e}const y=[],H=[],n=[],e=[],m=Promise.resolve();let b=!1;function It(e){n.push(e)}let o=!1;const i=new Set;function g(){if(!o){o=!0;do{for(let e=0;e<y.length;e+=1){var t=y[e];d(t),function(e){{var t;null!==e.fragment&&(e.update(),gt(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(It))}}(t.$$)}for(d(null),y.length=0;H.length;)H.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];i.has(r)||(i.add(r),r())}}while(n.length=0,y.length);for(;e.length;)e.pop()();b=!1,o=!1,i.clear()}}const v=new Set;function l(n,e,t,r,o,i,a=[-1]){var s,l=X;d(n);const u=n.$$={fragment:null,ctx:null,props:i,update:bt,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:f(),dirty:a,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]&&(y.push(e),b||(b=!0,m.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,gt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const bt=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(bt),bt.forEach(_t)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(v.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:a,after_update:s}=t.$$;o&&o.m(e,r),n||It(()=>{var e=i.map(p).filter(h);a?a.push(...e):gt(e),t.$$.on_mount=[]}),s.forEach(It)}(n,e.target,e.anchor,e.customElement),g()}d(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(h);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){gt(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(gt(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=bt}$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 c,E,_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==_&&_,P="URLSearchParams"in _,w="Symbol"in _&&"iterator"in Symbol,T="FileReader"in _&&"Blob"in _&&function(){try{return new Blob,!0}catch(e){return!1}}(),A="FormData"in _,x="ArrayBuffer"in _;function S(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 I(e){return e="string"!=typeof e?String(e):e}function C(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return w&&(e[Symbol.iterator]=function(){return e}),e}function O(t){this.map={},t instanceof O?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 L(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 D(e){var t=new FileReader,r=N(t);return t.readAsArrayBuffer(e),r}function M(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function R(){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:A&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:P&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():x&&T&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=M(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(e)||E(e))?this._bodyArrayBuffer=M(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=L(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?L(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(D)}),this.text=function(){var e,t,r=L(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)},A&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}x&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),O.prototype.append=function(e,t){e=S(e),t=I(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},O.prototype.delete=function(e){delete this.map[S(e)]},O.prototype.get=function(e){return e=S(e),this.has(e)?this.map[e]:null},O.prototype.has=function(e){return this.map.hasOwnProperty(S(e))},O.prototype.set=function(e,t){this.map[S(e)]=I(t)},O.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},O.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),C(r)},O.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),C(t)},O.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),C(r)},w&&(O.prototype[Symbol.iterator]=O.prototype.entries);var U=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function B(e,t){if(!(this instanceof B))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 B){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new O(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 O(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<U.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 k(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 F(e,t){if(!(this instanceof F))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 O(t.headers),this.url=t.url||"",this._initBody(e)}B.prototype.clone=function(){return new B(this,{body:this._bodyInit})},R.call(B.prototype),R.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new O(this.headers),url:this.url})},F.error=function(){var e=new F(null,{status:0,statusText:""});return e.type="error",e};var G=[301,302,303,307,308];F.redirect=function(e,t){if(-1===G.indexOf(t))throw new RangeError("Invalid status code");return new F(null,{status:t,headers:{location:e}})};var j=_.DOMException;try{new j}catch(bt){(j=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),j.prototype.constructor=j}function $(n,a){return new Promise(function(o,e){var t=new B(n,a);if(t.signal&&t.signal.aborted)return e(new j("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 O,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 F(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 j("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&_.location.href?_.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":x&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof O?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){i.setRequestHeader(e,I(a.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,_.fetch||(_.fetch=$,_.Headers=O,_.Request=B,_.Response=F),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 V(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 q(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.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 a}function Y(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Q(e){return"function"==typeof e}function K(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 Z=K(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 J(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var ee=(re.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 a=V(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(Q(i))try{i()}catch(e){o=e instanceof Z?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=V(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{oe(c)}catch(e){o=null!=o?o:[],e instanceof Z?o=Y(Y([],q(o)),q(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 Z(o)}},re.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)oe(e);else{if(e instanceof re){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},re.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},re.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},re.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&J(t,e)},re.prototype.remove=function(e){var t=this._teardowns;t&&J(t,e),e instanceof re&&e._removeParent(this)},re.EMPTY=((kt=new re).closed=!0,kt),re),te=ee.EMPTY;function re(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ne(e){return e instanceof ee||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function oe(e){Q(e)?e():e.unsubscribe()}var ie=void 0,ae=!1,se=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Y([],q(e)))};function le(){}function ue(e){e()}var ce,pe,fe=(W(ye,pe=ee),ye.create=function(e,t,r){return new he(e,t,r)},ye.prototype.next=function(e){this.isStopped||this._next(e)},ye.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ye.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ye.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,pe.prototype.unsubscribe.call(this),this.destination=null)},ye.prototype._next=function(e){this.destination.next(e)},ye.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ye.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ye),he=(W(de,ce=fe),de);function de(e,t,r){var n,o,i=ce.call(this)||this;return Q(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&ae?(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?me(o):le,error:me(null!=t?t:be),complete:r?me(r):le},i}function ye(e){var t=pe.call(this)||this;return t.isStopped=!1,e?ne(t.destination=e)&&e.add(t):t.destination=ge,t}function me(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,Y([],q(e)))}catch(e){t=e,se(function(){throw t})}}}function be(e){throw e}var ge={closed:!0,next:le,error:be,complete:le},ve="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ee(e){return e}var _e=(Pe.prototype.lift=function(e){var t=new Pe;return t.source=this,t.operator=e,t},Pe.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof fe||n&&Q(n.next)&&Q(n.error)&&Q(n.complete)&&ne(n)?e:new he(e,t,r);return ue(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},Pe.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Pe.prototype.forEach=function(n,e){var o=this;return new(e=we(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Pe.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Pe.prototype[ve]=function(){return this},Pe.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Ee:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Pe.prototype.toPromise=function(e){var n=this;return new(e=we(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Pe.create=function(e){return new Pe(e)},Pe);function Pe(e){e&&(this._subscribe=e)}function we(e){return null!==(e=null!=e?e:ie)&&void 0!==e?e:Promise}var Te,Ae,xe,Se=K(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ie=(W(Me,xe=_e),Me.prototype.lift=function(e){var t=new Ce(this,this);return t.operator=e,t},Me.prototype._throwIfClosed=function(){if(this.closed)throw new Se},Me.prototype.next=function(i){var a=this;ue(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=V(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}}}})},Me.prototype.error=function(t){var r=this;ue(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)}})},Me.prototype.complete=function(){var t=this;ue(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Me.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Me.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Me.prototype._trySubscribe=function(e){return this._throwIfClosed(),xe.prototype._trySubscribe.call(this,e)},Me.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Me.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?te:(n.push(e),new ee(function(){return J(n,e)}))},Me.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Me.prototype.asObservable=function(){var e=new _e;return e.source=this,e},Me.create=function(e,t){return new Ce(e,t)},Me),Ce=(W(De,Ae=Ie),De.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)},De.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)},De.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)},De.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:te},De),Oe={now:function(){return(Oe.delegate||Date).now()},delegate:void 0},Le=(W(Ne,Te=Ie),Ne.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(),Te.prototype.next.call(this,e)},Ne.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},Ne.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(),a=0,s=1;s<r.length&&r[s]<=i;s+=2)a=s;a&&r.splice(0,a+1)}},Ne);function Ne(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Oe);var n=Te.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 De(e,t){var r=Ae.call(this)||this;return r.destination=e,r.source=t,r}function Me(){var e=xe.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Re=[],Ue={};const Be=[];function ke(n,o=bt){let i;const a=[];function s(e){if(r(n,e)&&(n=e,i)){const e=!Be.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),Be.push(t,n)}if(e){for(let e=0;e<Be.length;e+=2)Be[e][0](Be[e+1]);Be.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=bt){const r=[e,t];return a.push(r),1===a.length&&(i=o(s)||bt),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(i(),i=null)}}}}function Fe(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return ke(t,t=>{let n=!1;const o=[];let i=0,r=bt;const a=()=>{var e;i||(r(),e=s(l?o[0]:o,t),c?t(e):r=h(e)?e:bt)},e=u.map((r,t)=>function(e){if(null==r)return bt;const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}([e=>{o[t]=e,i&=~(1<<t),n&&a()},()=>{i|=1<<t}]));return n=!0,a(),function(){gt(e),r()}}).subscribe,1}var Ge=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===je));var t},je="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function $e(e,t){return!1!==t.clone&&t.isMergeableObject(e)?He(Array.isArray(e)?[]:{},e,t):e}function ze(e,t,r){return e.concat(t).map(function(e){return $e(e,r)})}function We(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Ve(e,t){try{return t in e}catch(e){return!1}}function Xe(n,o,i){var a={};return i.isMergeableObject(n)&&We(n).forEach(function(e){a[e]=$e(n[e],i)}),We(o).forEach(function(t){var e,r;(!Ve(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Ve(n,t)&&i.isMergeableObject(o[t])?a[t]=function(){if(!i.customMerge)return He;var e=i.customMerge(t);return"function"==typeof e?e:He}()(n[t],o[t],i):a[t]=$e(o[t],i))}),a}function He(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||ze,r.isMergeableObject=r.isMergeableObject||Ge,r.cloneUnlessOtherwiseSpecified=$e;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Xe(e,t,r):$e(t,r)}He.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return He(e,t,r)},{})};var qe=He,Ye=function(e,t){return(Ye=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 Qe(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}Ye(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ke,Ze,Je,et=function(){return(et=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 tt(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function rt(e){return e.type===Ze.literal}function nt(e){return e.type===Ze.number}function ot(e){return e.type===Ze.date}function it(e){return e.type===Ze.time}function at(e){return e.type===Ze.select}function st(e){return e.type===Ze.plural}function lt(e){return e.type===Ze.tag}function ut(e){return e&&"object"==typeof e&&e.type===Je.number}function ct(e){return e&&"object"==typeof e&&e.type===Je.dateTime}(Ft=Ke=Ke||{})[Ft.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Ft[Ft.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Ft[Ft.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Ft[Ft.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Ft[Ft.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Ft[Ft.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Ft[Ft.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Ft[Ft.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Ft[Ft.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Ft[Ft.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Ft[Ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Ft[Ft.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Ft[Ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Ft[Ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Ft[Ft.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Ft[Ft.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Ft[Ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Ft[Ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Ft[Ft.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Ft[Ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Ft[Ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Ft[Ft.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Ft[Ft.INVALID_TAG=23]="INVALID_TAG",Ft[Ft.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Ft[Ft.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Ft[Ft.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Gt=Ze=Ze||{})[Gt.literal=0]="literal",Gt[Gt.argument=1]="argument",Gt[Gt.number=2]="number",Gt[Gt.date=3]="date",Gt[Gt.time=4]="time",Gt[Gt.select=5]="select",Gt[Gt.plural=6]="plural",Gt[Gt.pound=7]="pound",Gt[Gt.tag=8]="tag",(jt=Je=Je||{})[jt.number=0]="number",jt[jt.dateTime=1]="dateTime";var pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ft=/(?:[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 ht,dt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,yt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,mt=/^(@+)?(\+|#+)?$/g,Ct=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function Lt(e){var n={};return e.replace(mt,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 Nt(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 Dt(e){return Nt(e)||{}}function Mt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=o.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=et(et(et({},a),{notation:"scientific"}),o.options.reduce(function(e,t){return et(et({},e),Dt(t))},{}));continue;case"engineering":a=et(et(et({},a),{notation:"engineering"}),o.options.reduce(function(e,t){return et(et({},e),Dt(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.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(Ct,function(e,t,r,n,o,i){if(t)a.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(Ot.test(o.stem))a.minimumIntegerDigits=o.stem.length;else if(yt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(yt,function(e,t,r,n,o,i){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:o&&i?(a.minimumFractionDigits=o.length,a.maximumFractionDigits=o.length+i.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),o.options.length&&(a=et(et({},a),Lt(o.options[0])))}else mt.test(o.stem)?a=et(et({},a),Lt(o.stem)):((n=Nt(o.stem))&&(a=et(et({},a),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)),!Ot.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(a=et(et({},a),n)))}return a}var Rt=new RegExp("^"+pt.source+"*"),Ut=new RegExp(pt.source+"*$");function Bt(e,t){return{start:e,end:t}}var kt=!!String.prototype.startsWith,ve=!!String.fromCodePoint,Ie=!!Object.fromEntries,Ft=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,jt=!!String.prototype.trimEnd,$t=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pt=!0;try{pt="a"===(null===(ht=Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ht?void 0:ht[0])}catch(bt){pt=!1}var zt,Wt,Vt=kt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Xt=ve?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},Ht=Ie?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},qt=Ft?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}},Yt=Gt?function(e){return e.trimStart()}:function(e){return e.replace(Rt,"")},Qt=jt?function(e){return e.trimEnd()}:function(e){return e.replace(Ut,"")};function Kt(e,t){return new RegExp(e,t)}Wt=pt?(zt=Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return zt.lastIndex=t,null!==(e=zt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=qt(e,t);if(void 0===o||tr(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 Xt.apply(void 0,n)};var Zt=(Jt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Jt.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(Ke.UNMATCHED_CLOSING_TAG,Bt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&er(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:Ze.pound,location:Bt(i,this.clonePosition())})}}}return{val:n,err:null}},Jt.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ze.literal,value:"<"+n+"/>",location:Bt(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()||!er(this.char()))return this.error(Ke.INVALID_TAG,Bt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(Ke.UNMATCHED_CLOSING_TAG,Bt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ze.tag,value:n,children:e,location:Bt(r,this.clonePosition())},err:null}:this.error(Ke.INVALID_TAG,Bt(t,this.clonePosition())))}return this.error(Ke.UNCLOSED_TAG,Bt(r,this.clonePosition()))}return this.error(Ke.INVALID_TAG,Bt(r,this.clonePosition()))},Jt.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())},Jt.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=Bt(r,this.clonePosition());return{val:{type:Ze.literal,value:n,location:r},err:null}},Jt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Jt.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 Xt.apply(void 0,t)},Jt.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(),Xt(r))},Jt.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,Bt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ke.EMPTY_ARGUMENT,Bt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ke.MALFORMED_ARGUMENT,Bt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,Bt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ze.argument,value:n,location:Bt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,Bt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Ke.MALFORMED_ARGUMENT,Bt(r,this.clonePosition()))}},Jt.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Wt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Bt(e,this.clonePosition())}},Jt.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Ke.EXPECT_ARGUMENT_TYPE,Bt(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(p=Qt(f.val)).length)return this.error(Ke.EXPECT_ARGUMENT_STYLE,Bt(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Bt(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=Bt(n,this.clonePosition());if(l&&Vt(null==l?void 0:l.style,"::",0)){u=Yt(l.style.slice(2));if("number"===a)return(f=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?f:{val:{type:Ze.number,value:r,location:c,style:f.val},err:null};if(0===u.length)return this.error(Ke.EXPECT_DATE_TIME_SKELETON,c);var p={type:Je.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(ft,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"===a?Ze.date:Ze.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===a?Ze.number:"date"===a?Ze.date:Ze.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(Ke.EXPECT_SELECT_ARGUMENT_OPTIONS,Bt(l,et({},l)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Ke.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Bt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Ke.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ke.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=f.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=Bt(n,this.clonePosition());return"select"===a?{val:{type:Ze.select,value:r,options:Ht(c.val),location:h},err:null}:{val:{type:Ze.plural,value:r,options:Ht(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:h},err:null};default:return this.error(Ke.INVALID_ARGUMENT_TYPE,Bt(i,s))}},Jt.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,Bt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Jt.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(Ke.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Bt(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}},Jt.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(dt).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),a=0,s=o;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(Ke.INVALID_NUMBER_SKELETON,t)}return{val:{type:Je.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Mt(r):{}},err:null}},Jt.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Ke.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ke.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Bt(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?Ke.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ke.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ke.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ke.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Bt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(p);if(u.err)return u;i.push([s,{value:c.val,location:Bt(p,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===i.length?this.error("select"===t?Ke.EXPECT_SELECT_ARGUMENT_SELECTOR:Ke.EXPECT_PLURAL_ARGUMENT_SELECTOR,Bt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Ke.MISSING_OTHER_CLAUSE,Bt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},Jt.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 a=this.char();if(!(48<=a&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}n=Bt(n,this.clonePosition());return o?$t(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},Jt.prototype.offset=function(){return this.position.offset},Jt.prototype.isEOF=function(){return this.offset()===this.message.length},Jt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Jt.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=qt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Jt.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Jt.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))},Jt.prototype.bumpIf=function(e){if(Vt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Jt.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)},Jt.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}},Jt.prototype.bumpSpace=function(){for(;!this.isEOF()&&tr(this.char());)this.bump()},Jt.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},Jt);function Jt(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 er(e){return 97<=e&&e<=122||65<=e&&e<=90}function tr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function rr(e,t){t=et({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Zt(e,t).parse();if(r.err){e=SyntaxError(Ke[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,at(e)||st(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else nt(e)&&ut(e.style)||(ot(e)||it(e))&&ct(e.style)?delete e.style.location:lt(e)&&r(e.children)})}(r.val),r.val}function nr(e,t){var r=t&&t.cache?t.cache:cr,n=t&&t.serializer?t.serializer:sr;return(t&&t.strategy?t.strategy:function(e,t){return ar(e,this,1===e.length?or:ir,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function or(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 ir(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 ar(e,t,r,n,o){return r.bind(t,e,n,o)}var sr=function(){return JSON.stringify(arguments)};function lr(){this.cache=Object.create(null)}lr.prototype.has=function(e){return e in this.cache},lr.prototype.get=function(e){return this.cache[e]},lr.prototype.set=function(e,t){this.cache[e]=t};var ur,cr={create:function(){return new lr}},pr={variadic:function(e,t){return ar(e,this,ir,t.cache.create(),t.serializer)},monadic:function(e,t){return ar(e,this,or,t.cache.create(),t.serializer)}};(pt=ur=ur||{}).MISSING_VALUE="MISSING_VALUE",pt.INVALID_VALUE="INVALID_VALUE",pt.MISSING_INTL_API="MISSING_INTL_API";var fr,hr,dr,yr,mr,br=(Qe(Tr,mr=Error),Tr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Tr),gr=(Qe(wr,yr=br),wr),vr=(Qe(Pr,dr=br),Pr),Er=(Qe(_r,hr=br),_r);function _r(e,t){return hr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',ur.MISSING_VALUE,t)||this}function Pr(e,t,r){return dr.call(this,'Value for "'+e+'" must be of type '+t,ur.INVALID_VALUE,r)||this}function wr(e,t,r,n){return yr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',ur.INVALID_VALUE,n)||this}function Tr(e,t,r){e=mr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Ar(e,t,r,n,o,i,a){if(1===e.length&&rt(e[0]))return[{type:fr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(rt(c))s.push({type:fr.literal,value:c.value});else if(c.type===Ze.pound)"number"==typeof i&&s.push({type:fr.literal,value:r.getNumberFormat(t).format(i)});else{var p=c.value;if(!(o&&p in o))throw new Er(p,a);var f=o[p];if(c.type===Ze.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?fr.literal:fr.object,value:f});else if(ot(c)){var h="string"==typeof c.style?n.date[c.style]:ct(c.style)?c.style.parsedOptions:void 0;s.push({type:fr.literal,value:r.getDateTimeFormat(t,h).format(f)})}else if(it(c))h="string"==typeof c.style?n.time[c.style]:ct(c.style)?c.style.parsedOptions:void 0,s.push({type:fr.literal,value:r.getDateTimeFormat(t,h).format(f)});else if(nt(c))(h="string"==typeof c.style?n.number[c.style]:ut(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(f*=h.scale||1),s.push({type:fr.literal,value:r.getNumberFormat(t,h).format(f)});else{if(lt(c)){var d=c.children,y=c.value,p=o[y];if("function"!=typeof p)throw new vr(y,"function",a);d=p(Ar(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?fr.literal:fr.object,value:e}}))}if(at(c)){if(!(m=c.options[f]||c.options.other))throw new gr(c.value,f,Object.keys(c.options),a);s.push.apply(s,Ar(m.value,t,r,n,o))}else if(st(c)){if(!(m=c.options["="+f])){if(!Intl.PluralRules)throw new br('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ur.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new gr(c.value,f,Object.keys(c.options),a);s.push.apply(s,Ar(m.value,t,r,n,o,f-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===fr.literal&&t.type===fr.literal?r.value+=t.value:e.push(t),e},[])}function xr(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=fr=fr||{})[pt.literal=0]="literal",pt[pt.object=1]="object";var Sr=(Object.defineProperty(Ir,"defaultLocale",{get:function(){return Ir.memoizedDefaultLocale||(Ir.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Ir.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Ir.memoizedDefaultLocale=null,Ir.__parse=rr,Ir.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"}}},Ir);function Ir(e,t,r,n){var o,i,a=this;if(void 0===t&&(t=Ir.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===fr.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 Ar(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Ir.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Ir.__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=Ir.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?et(et(et({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=et(et({},r[t]),n[t]||{}),e},{})):r),e},et({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:nr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,tt([void 0],t)))},{cache:xr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:pr.variadic}),getDateTimeFormat:nr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,tt([void 0],t)))},{cache:xr(n.dateTime),strategy:pr.variadic}),getPluralRules:nr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,tt([void 0],t)))},{cache:xr(n.pluralRules),strategy:pr.variadic})}}const Cr={},Or=(t,r)=>{if(null!=r){if(r in Cr&&t in Cr[r])return Cr[r][t];var n,o,i=Vr(r);for(let e=0;e<i.length;e++){var a=(n=i[e],o=t,Dr(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 Lr[e]||null}(n),o):null);if(a)return n=t,o=r,(a=a)&&(o in Cr||(Cr[o]={}),n in Cr[o]||(Cr[o][n]=a),a)}}};let Lr;const Nr=ke({});function Dr(e){return e in Lr}Fe([Nr],([e])=>Object.keys(e)),Nr.subscribe(e=>Lr=e);const Mr={};function Rr(e){return Mr[e]}function Ur(e){return Vr(e).some(e=>{return null===(e=Rr(e))||void 0===e?void 0:e.size})}function Br(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 Cr[t],Nr.update(e=>(e[t]=qe.all([e[t]||{},...r]),e))}(t,...e))}const kr={};function Fr(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 Gr={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 jr=ke(!1);let $r;const zr=ke(null);function Wr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Vr(e,t=Gr.fallbackLocale){e=Wr(e);return t?[...new Set([...e,...Wr(t)])]:e}zr.subscribe(e=>{$r=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Xr=zr.set;zr.set=t=>{if(function(e){if(null!=e){var t=Vr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Dr(r))return r}}}(t)&&Ur(t)){var{loadingDelay:r}=Gr;let e;return"undefined"!=typeof window&&null!=$r&&r?e=window.setTimeout(()=>jr.set(!0),r):jr.set(!0),function e(t){if(!Ur(t))return t in kr?kr[t]:void 0;const r=Vr(t).map(e=>{var t=Rr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return kr[t]=Promise.all(r.map(([e,t])=>Br(e,t))).then(()=>Ur(t)?e(t):void delete kr[t]),kr[t]}(t).then(()=>{Xr(t)}).finally(()=>{clearTimeout(e),jr.set(!1)})}return Xr(t)},zr.update=e=>Xr(e($r));const Hr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},qr=(e,t)=>{var{formats:r}=Gr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Yr=Hr(e=>{var{locale:t,format:r}=e,e=Fr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=qr("number",r)),new Intl.NumberFormat(t,e)}),Qr=Hr(e=>{var{locale:t,format:r}=e,e=Fr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=qr("date",r):0===Object.keys(e).length&&(e=qr("date","short")),new Intl.DateTimeFormat(t,e)}),Kr=Hr(e=>{var{locale:t,format:r}=e,e=Fr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=qr("time",r):0===Object.keys(e).length&&(e=qr("time","short")),new Intl.DateTimeFormat(t,e)}),Zr=Hr((e,t=$r)=>new Sr(e,t,Gr.formats,{ignoreTag:Gr.ignoreTag}));function Jr(e,t,r){const n=e.slice();return n[67]=t[r],n}function en(r){let o,n,i,a,s,l,u,c,p,f,h,d,y,m,b,g,v,E,_,P,e,w,T,A,x,S,I,C,O,L,N,D,M,R,U,B,k,F,G,j,$,z,W,V,X,H,q,Y,Q,K,Z,J,ee,te,re,ne,oe,ie,ae,se,le,ue,ce,pe,fe,he,de,ye,me,be,ge,ve,Ee,_e,Pe,we,Te,Ae,xe,Se,Ie,Ce,Oe,Le,Ne,De,Me,Re,Ue,Be,ke,Fe,Ge,je,$e,ze,We,Ve,Xe,He,qe,Ye,Qe,Ke,Ze,Je,et,tt,rt,nt,ot,it,at,st,lt,ut,ct,pt,ft,ht=r[25]&&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="MyAccountCategoryTitleMobile">Profile Info</h2>',At(n,"class","MenuReturnButton")},m(e,t){Et(e,n,t),o||(i=Tt(n,"click",r[36]),o=!0)},p:bt,d(e){e&&_t(n),o=!1,i()}}}(r),dt=r[12],yt=[];for(let e=0;e<dt.length;e+=1)yt[e]=nn(Jr(r,dt,e));let mt=r[13]&&on();return{c(){o=t("form"),ht&&ht.c(),n=wt(),i=t("h2"),a=Pt("Profile Info"),s=wt(),l=t("div"),l.innerHTML="<h3>Personal Details</h3>",u=wt(),c=t("section"),p=t("div"),f=t("label"),f.textContent="User name:",h=wt(),d=t("input"),y=wt(),m=t("div"),b=t("label"),b.textContent="Phone:",g=wt(),v=t("div"),E=t("select");for(let e=0;e<yt.length;e+=1)yt[e].c();_=wt(),P=t("input"),w=wt(),T=t("div"),A=t("label"),A.textContent="Email:",x=wt(),S=t("input"),I=wt(),C=t("div"),O=t("label"),O.textContent="Security Question:",L=wt(),N=t("input"),M=wt(),R=t("div"),U=t("label"),U.textContent="First name:",B=wt(),k=t("input"),F=wt(),G=t("div"),j=t("label"),j.textContent="Security Answer:",$=wt(),z=t("input"),V=wt(),X=t("div"),H=t("label"),H.textContent="Last Name:",q=wt(),Y=t("input"),Q=wt(),K=t("div"),Z=t("label"),Z.textContent="Date of birth:",J=wt(),ee=t("input"),te=wt(),re=t("div"),ne=t("label"),ne.textContent="Currency:",oe=wt(),ie=t("input"),ae=wt(),se=t("div"),le=t("label"),le.textContent="Title:",ue=wt(),ce=t("input"),pe=wt(),fe=t("div"),fe.innerHTML="<h3>Location Details</h3>",he=wt(),de=t("section"),ye=t("div"),me=t("label"),me.textContent="Country:",be=wt(),ge=t("input"),Ee=wt(),_e=t("div"),Pe=t("label"),Pe.textContent="City:",we=wt(),Te=t("input"),Se=wt(),Ie=t("div"),Ce=t("label"),Ce.textContent="Address:",Oe=wt(),Le=t("input"),De=wt(),Me=t("div"),Re=t("label"),Re.textContent="Postal Code:",Ue=wt(),Be=t("input"),Ge=wt(),je=t("div"),je.innerHTML="<h3>Notifications</h3>",$e=wt(),ze=t("section"),We=t("div"),Ve=t("label"),Xe=t("input"),He=wt(),qe=t("span"),Ye=wt(),Qe=t("span"),Qe.textContent="Enable SMS notifications",Ke=wt(),Ze=t("div"),Je=t("label"),et=t("input"),tt=wt(),rt=t("span"),nt=wt(),ot=t("span"),ot.textContent="Enable Emails",it=wt(),at=t("section"),st=t("div"),lt=Pt("Save Changes"),ct=wt(),mt&&mt.c(),At(i,"class","MyAccountCategoryTitle "+(r[25]?"MyAccountCategoryTitleNone":"")),At(l,"class","PlayerNotificationsHeader"),At(d,"type","text"),At(d,"class","FieldDisabled"),d.value=r[23],d.readOnly=!0,At(p,"class","PlayerInfoBox"),void 0===r[8]&&It(()=>r[37].call(E)),At(P,"type","text"),At(P,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),At(P,"placeholder",e=r[0]?r[18].number:""),At(v,"class","PlayerPhoneNumber"),At(m,"class","PlayerInfoBox"),At(S,"type","email"),At(S,"class","FieldDisabled"),S.value=r[19],S.readOnly=!0,At(T,"class","PlayerInfoBox"),At(N,"type","text"),At(N,"placeholder",D=r[0]?r[31]:""),At(C,"class","PlayerInfoBox"),At(k,"type","text"),At(k,"class","FieldDisabled"),k.value=r[20],k.readOnly=!0,At(R,"class","PlayerInfoBox"),At(z,"type","text"),At(z,"placeholder",W=r[0]?r[30]:""),At(G,"class","PlayerInfoBox"),At(Y,"type","text"),At(Y,"class","FieldDisabled"),Y.value=r[22],Y.readOnly=!0,At(X,"class","PlayerInfoBox"),At(ee,"type","text"),At(ee,"class","FieldDisabled"),ee.value=r[15],ee.readOnly=!0,At(K,"class","PlayerInfoBox"),At(ie,"type","text"),At(ie,"class","FieldDisabled"),ie.value=r[17],ie.readOnly=!0,At(re,"class","PlayerInfoBox"),At(ce,"type","text"),At(ce,"class","FieldDisabled"),ce.value=r[21],ce.readOnly=!0,At(se,"class","PlayerInfoBox"),At(c,"class","PlayerDetailsContent"),At(fe,"class","PlayerLocationHeader"),At(ge,"type","text"),At(ge,"class","PlayerCountry FieldDisabled"),At(ge,"placeholder",r[16]),ge.value=ve=r[11].Name,ge.readOnly=!0,At(ye,"class","PlayerInfoBox"),At(Te,"type","text"),At(Te,"placeholder",Ae=r[0]?r[28]:""),Te.value=xe=r[0]?"":r[14].city,At(_e,"class","PlayerInfoBox"),At(Le,"placeholder",r[27]),At(Le,"type","text"),Le.value=Ne=r[0]?"":r[14].address,At(Ie,"class","PlayerInfoBox"),At(Be,"type","number"),At(Be,"placeholder",ke=r[0]?r[29]:""),Be.value=Fe=r[0]?"":r[14].postalCode,At(Me,"class","PlayerInfoBox"),At(de,"class","PlayerLocationContent"),At(je,"class","PlayerNotificationsHeader"),At(Xe,"type","checkbox"),At(Xe,"id","SMSNotification"),At(Xe,"name","Enable SMS notifications"),At(qe,"class","Checkmark"),At(Ve,"for","SMSNotification"),At(We,"class","PlayerNotificationBox"),At(et,"type","checkbox"),At(et,"id","EmailNotification"),At(et,"name","Enable Emails"),At(rt,"class","Checkmark"),At(Je,"for","EmailNotification"),At(Ze,"class","PlayerNotificationBox"),At(ze,"class","PlayerNotificationsCheckboxArea"),At(st,"class",ut="PlayerDetailsSaveButton "+(r[10]&&r[24]?"":"PlayerButtonDisabled")),At(at,"class","PlayerDetailsButtonsArea "+(r[25]?"PlayerDetailsButtonsAreaMobile":"")),At(o,"class","PlayerInfoWrapper "+(r[25]?"PlayerInfoWrapperMobile":"")+" "+(r[26].matches&&r[25]?"PlayerInfoWrapperTablet":""))},m(e,t){Et(e,o,t),ht&&ht.m(o,null),vt(o,n),vt(o,i),vt(i,a),vt(o,s),vt(o,l),vt(o,u),vt(o,c),vt(c,p),vt(p,f),vt(p,h),vt(p,d),vt(c,y),vt(c,m),vt(m,b),vt(m,g),vt(m,v),vt(v,E);for(let e=0;e<yt.length;e+=1)yt[e].m(E,null);St(E,r[8]),vt(v,_),vt(v,P),xt(P,r[9]),vt(c,w),vt(c,T),vt(T,A),vt(T,x),vt(T,S),vt(c,I),vt(c,C),vt(C,O),vt(C,L),vt(C,N),xt(N,r[6]),vt(c,M),vt(c,R),vt(R,U),vt(R,B),vt(R,k),vt(c,F),vt(c,G),vt(G,j),vt(G,$),vt(G,z),xt(z,r[7]),vt(c,V),vt(c,X),vt(X,H),vt(X,q),vt(X,Y),vt(c,Q),vt(c,K),vt(K,Z),vt(K,J),vt(K,ee),vt(c,te),vt(c,re),vt(re,ne),vt(re,oe),vt(re,ie),vt(c,ae),vt(c,se),vt(se,le),vt(se,ue),vt(se,ce),vt(o,pe),vt(o,fe),vt(o,he),vt(o,de),vt(de,ye),vt(ye,me),vt(ye,be),vt(ye,ge),vt(de,Ee),vt(de,_e),vt(_e,Pe),vt(_e,we),vt(_e,Te),r[45](Te),vt(de,Se),vt(de,Ie),vt(Ie,Ce),vt(Ie,Oe),vt(Ie,Le),r[47](Le),vt(de,De),vt(de,Me),vt(Me,Re),vt(Me,Ue),vt(Me,Be),r[49](Be),vt(o,Ge),vt(o,je),vt(o,$e),vt(o,ze),vt(ze,We),vt(We,Ve),vt(Ve,Xe),Xe.checked=r[4],vt(Ve,He),vt(Ve,qe),vt(Ve,Ye),vt(Ve,Qe),vt(ze,Ke),vt(ze,Ze),vt(Ze,Je),vt(Je,et),et.checked=r[5],vt(Je,tt),vt(Je,rt),vt(Je,nt),vt(Je,ot),vt(o,it),vt(o,at),vt(at,st),vt(st,lt),vt(o,ct),mt&&mt.m(o,null),pt||(ft=[Tt(E,"change",r[37]),Tt(E,"change",r[38]),Tt(P,"input",r[39]),Tt(P,"keyup",r[40]),Tt(N,"input",r[41]),Tt(N,"keyup",r[42]),Tt(z,"input",r[43]),Tt(z,"keyup",r[44]),Tt(Te,"keyup",r[46]),Tt(Le,"keyup",r[48]),Tt(Be,"keyup",r[50]),Tt(Xe,"change",r[51]),Tt(Xe,"change",r[34]),Tt(et,"change",r[52]),Tt(et,"change",r[34]),Tt(st,"click",r[53])],pt=!0)},p(t,r){if(t[25]&&ht.p(t,r),8388608&r[0]&&d.value!==t[23]&&(d.value=t[23]),20480&r[0]){let e;for(dt=t[12],e=0;e<dt.length;e+=1){var n=Jr(t,dt,e);yt[e]?yt[e].p(n,r):(yt[e]=nn(n),yt[e].c(),yt[e].m(E,null))}for(;e<yt.length;e+=1)yt[e].d(1);yt.length=dt.length}4352&r[0]&&St(E,t[8]),262145&r[0]&&e!==(e=t[0]?t[18].number:"")&&At(P,"placeholder",e),512&r[0]&&P.value!==t[9]&&xt(P,t[9]),524288&r[0]&&S.value!==t[19]&&(S.value=t[19]),1&r[0]&&D!==(D=t[0]?t[31]:"")&&At(N,"placeholder",D),64&r[0]&&N.value!==t[6]&&xt(N,t[6]),1048576&r[0]&&k.value!==t[20]&&(k.value=t[20]),1&r[0]&&W!==(W=t[0]?t[30]:"")&&At(z,"placeholder",W),128&r[0]&&z.value!==t[7]&&xt(z,t[7]),4194304&r[0]&&Y.value!==t[22]&&(Y.value=t[22]),32768&r[0]&&ee.value!==t[15]&&(ee.value=t[15]),131072&r[0]&&ie.value!==t[17]&&(ie.value=t[17]),2097152&r[0]&&ce.value!==t[21]&&(ce.value=t[21]),65536&r[0]&&At(ge,"placeholder",t[16]),2048&r[0]&&ve!==(ve=t[11].Name)&&ge.value!==ve&&(ge.value=ve),1&r[0]&&Ae!==(Ae=t[0]?t[28]:"")&&At(Te,"placeholder",Ae),16385&r[0]&&xe!==(xe=t[0]?"":t[14].city)&&Te.value!==xe&&(Te.value=xe),16385&r[0]&&Ne!==(Ne=t[0]?"":t[14].address)&&Le.value!==Ne&&(Le.value=Ne),1&r[0]&&ke!==(ke=t[0]?t[29]:"")&&At(Be,"placeholder",ke),16385&r[0]&&Fe!==(Fe=t[0]?"":t[14].postalCode)&&(Be.value=Fe),16&r[0]&&(Xe.checked=t[4]),32&r[0]&&(et.checked=t[5]),16778240&r[0]&&ut!==(ut="PlayerDetailsSaveButton "+(t[10]&&t[24]?"":"PlayerButtonDisabled"))&&At(st,"class",ut),t[13]?mt||(mt=on(),mt.c(),mt.m(o,null)):mt&&(mt.d(1),mt=null)},d(e){e&&_t(o),ht&&ht.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(yt,e),r[45](null),r[47](null),r[49](null),mt&&mt.d(),pt=!1,gt(ft)}}}function tn(e){let r,n,o,i=e[67].Prefix+"";return{c(){r=t("option"),n=Pt(i),r.__value=o=e[67].Prefix,r.value=r.__value},m(e,t){Et(e,r,t),vt(r,n)},p(e,t){4096&t[0]&&i!==(i=e[67].Prefix+"")&&s(n,i),4096&t[0]&&o!==(o=e[67].Prefix)&&(r.__value=o,r.value=r.__value)},d(e){e&&_t(r)}}}function rn(e){let r,n,o,i=e[67].Prefix+"";return{c(){r=t("option"),n=Pt(i),r.selected=!0,r.__value=o=e[67].Prefix,r.value=r.__value},m(e,t){Et(e,r,t),vt(r,n)},p(e,t){4096&t[0]&&i!==(i=e[67].Prefix+"")&&s(n,i),4096&t[0]&&o!==(o=e[67].Prefix)&&(r.__value=o,r.value=r.__value)},d(e){e&&_t(r)}}}function nn(e){let r;function n(e){return e[67].Prefix===e[14].mobiePrefix?rn:tn}let o=n(e),i=o(e);return{c(){i.c(),r=a()},m(e,t){i.m(e,t),Et(e,r,t)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},d(e){i.d(e),e&&_t(r)}}}function on(){let r;return{c(){r=t("section"),r.innerHTML='<p class="PlayerDetailsConfirmSaveText">Your changes have been saved!</p>',At(r,"class","PlayerDetailsConfirmSave")},m(e,t){Et(e,r,t)},d(e){e&&_t(r)}}}function an(e){let r,n=en(e);return{c(){n.c(),r=a(),this.c=bt},m(e,t){n.m(e,t),Et(e,r,t)},p(e,t){n.p(e,t)},i:bt,o:bt,d(e){n.d(e),e&&_t(r)}}}function sn(e,t,r){let n,o,i,{endpoint:a=""}=t,s="PC"!=((E=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":E.toLowerCase().match(/iphone/i)?"iPhone":E.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),l=!0,u=!1,c=!1,p="",f="",h="",d="",y=!1,m={},b=[],g=[],v=!1;var E,t=window.matchMedia("(min-width: 768px)");let _={address1:"",address2:"",city:"",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},P={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},w={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",gender:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:T,birth:A,city:x,country:S,currency:I,mobile:C,email:O,firstname:L,gender:N,language:D,lastname:M,postalCode:R,securityAnswer:U,securityQuestion:B,username:k}=w;const F=e=>{if(e.data)switch(e.data.type){case"ProfileDetailsData":r(0,l=!1),w=e.data.profileDetails,r(23,k=w.username),r(18,C=w.mobile),r(19,O=w.email),r(20,L=w.firstname),r(22,M=w.lastname),D=w.language,r(15,A=w.birth.day+"/"+w.birth.month+"/"+w.birth.year),r(17,I=w.currency),r(21,N=w.gender),r(16,S=w.country),r(11,m=g.find(e=>e.Alpha2Code===w.country)),r(4,u=w.consents.acceptSMSOffers),r(5,c=w.consents.acceptNewsEmail),r(6,p=w.securityQuestion),r(7,f=w.securityAnswer),r(8,h=w.mobile.prefix),r(9,d=w.mobile.number),r(14,P={address:w.address1,city:w.city,acceptNewsEmail:w.consents.acceptNewsEmail,acceptSMSOffers:w.consents.acceptSMSOffers,mobilePrefix:C.prefix,mobileNumber:C.number,postalCode:w.postalCode,securityAnswer:w.securityAnswer,securityQuestion:w.securityQuestion});break;case"ConfirmProfileInfoSave":r(10,y=!1),G()}},G=()=>{r(13,v=!0),setTimeout(()=>{r(13,v=!1)},3e3)};let j=!1;const $=()=>{1==y&&1==j&&window.postMessage({type:"UpdatePlayerInfo",provisionalArray:_},window.location.href)},z=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},W=()=>{_={acceptNewsEmail:c,acceptSMSOffers:u,address:o.value,city:i.value,mobileNumber:d,mobilePrefix:h,postalCode:n.value,securityAnswer:f,securityQuestion:p},V(_,P),p.length<=0||f.length<=0||!i.value||!o.value||!n.value||d.length<=0?r(24,j=!1):r(24,j=!0)},V=(e,t)=>{JSON.stringify(e)===JSON.stringify(t)?r(10,y=!1):r(10,y=!0)};return E=()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}),function(){if(!X)throw new Error("Function called outside component initialization");return X}().$$.on_mount.push(E),e.$$set=e=>{"endpoint"in e&&r(35,a=e.endpoint)},e.$$.update=()=>{16&e.$$.dirty[1]&&a&&fetch(`${a}/player/countries`).then(e=>e.json()).then(e=>{g=e.countries}),16&e.$$.dirty[1]&&a&&fetch(`${a}/player/phonecodes`).then(e=>e.json()).then(e=>{r(12,b=e.phoneCodes)})},[l,n,o,i,u,c,p,f,h,d,y,m,b,v,P,A,S,I,C,O,L,N,M,k,j,s,t,T,x,R,U,B,$,z,W,a,()=>z(),function(){h=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(8,h),r(12,b)},()=>W(),function(){d=this.value,r(9,d)},()=>W(),function(){p=this.value,r(6,p)},()=>W(),function(){f=this.value,r(7,f)},()=>W(),function(e){H[e?"unshift":"push"](()=>{i=e,r(3,i)})},()=>W(),function(e){H[e?"unshift":"push"](()=>{o=e,r(2,o)})},()=>W(),function(e){H[e?"unshift":"push"](()=>{n=e,r(1,n)})},()=>W(),function(){u=this.checked,r(4,u)},function(){c=this.checked,r(5,c)},()=>$()]}Fe([zr,Nr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=$r,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Or(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 Gr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Vr(n).join('", "')}".${Ur($r)?"\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 a=i;try{a=Zr(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a}),Fe([zr],()=>(e,t)=>((e={})=>{var{locale:t=$r}=e,e=Fr(e,["locale"]);return Kr(Object.assign({locale:t},e))})(t).format(e)),Fe([zr],()=>(e,t)=>((e={})=>{var{locale:t=$r}=e,e=Fr(e,["locale"]);return Qr(Object.assign({locale:t},e))})(t).format(e)),Fe([zr],()=>(e,t)=>((e={})=>{var{locale:t=$r}=e,e=Fr(e,["locale"]);return Yr(Object.assign({locale:t},e))})(t).format(e)),Fe([zr,Nr],()=>(e,t=$r)=>Or(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Re.indexOf(e)&&(t=new Le(t),Ue[e]=t,Re.push(e)),Ue[e]}};class ln extends u{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'}.MyAccountCategoryTitle{font-size:26px;color:#D0046C;font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:#D0046C}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:#07072A;background:#F9F8F8;padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:#D0046C;text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;background:#FFF;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:#07072A;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:#D1D1D1;cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:#D0046C}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#07072A;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:#9e0352}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:#F9F8F8;max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:#58586B}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:#07072A;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:#fff}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:#fff}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:#0cdc13;color:#fff;padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}</style>",l(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},sn,an,r,{endpoint:35},[-1,-1,-1]),e&&(e.target&&Et(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["endpoint"]}get endpoint(){return this.$$.ctx[35]}set endpoint(e){this.$set({endpoint:e}),g()}}return customElements.get("player-profile-info")||customElements.define("player-profile-info",ln),ln});
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 f(){}function p(e){return e()}function h(){return Object.create(null)}function yr(e){e.forEach(p)}function d(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Z(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function mr(e,t){e.appendChild(t)}function br(e,t,r){e.insertBefore(t,r||null)}function gr(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function vr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Er(e){return document.createTextNode(e)}function Pr(){return Er(" ")}function a(){return Er("")}function _r(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function wr(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Tr(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Ar(e,t){e.value=null==t?"":t}function xr(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}let J;function y(e){J=e}const m=[],ee=[],n=[],e=[],b=Promise.resolve();let g=!1;function Sr(e){n.push(e)}let i=!1;const o=new Set;function v(){if(!i){i=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];y(t),function(e){{var t;null!==e.fragment&&(e.update(),yr(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Sr))}}(t.$$)}for(y(null),m.length=0;ee.length;)ee.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];o.has(r)||(o.add(r),r())}}while(n.length=0,m.length);for(;e.length;)e.pop()();g=!1,i=!1,o.clear()}}const E=new Set;function s(n,e,t,r,i,o,a=[-1]){var s,l=J;y(n);const u=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:a,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&&i(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]&&(m.push(e),g||(g=!0,b.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,yr(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const f=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(f),f.forEach(gr)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(E.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:a,after_update:s}=t.$$;i&&i.m(e,r),n||Sr(()=>{var e=o.map(p).filter(d);a?a.push(...e):yr(e),t.$$.on_mount=[]}),s.forEach(Sr)}(n,e.target,e.anchor,e.customElement),v()}y(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(p).filter(d);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){yr(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(yr(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$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,P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,_="URLSearchParams"in P,w="Symbol"in P&&"iterator"in Symbol,T="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(e){return!1}}(),A="FormData"in P,x="ArrayBuffer"in P;function S(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 I(e){return e="string"!=typeof e?String(e):e}function C(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return w&&(e[Symbol.iterator]=function(){return e}),e}function N(t){this.map={},t instanceof N?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 O(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function D(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function L(e){var t=new FileReader,r=D(t);return t.readAsArrayBuffer(e),r}function M(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function R(){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:A&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():x&&T&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=M(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=M(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):_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},T&&(this.blob=function(){var e=O(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?O(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(L)}),this.text=function(){var e,t,r=O(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=D(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)},A&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}x&&(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))}),N.prototype.append=function(e,t){e=S(e),t=I(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},N.prototype.delete=function(e){delete this.map[S(e)]},N.prototype.get=function(e){return e=S(e),this.has(e)?this.map[e]:null},N.prototype.has=function(e){return this.map.hasOwnProperty(S(e))},N.prototype.set=function(e,t){this.map[S(e)]=I(t)},N.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},N.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),C(r)},N.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),C(t)},N.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),C(r)},w&&(N.prototype[Symbol.iterator]=N.prototype.entries);var B=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function U(e,t){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof U){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new N(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 N(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 k(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 F(e,t){if(!(this instanceof F))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 N(t.headers),this.url=t.url||"",this._initBody(e)}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})},R.call(U.prototype),R.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})},F.error=function(){var e=new F(null,{status:0,statusText:""});return e.type="error",e};var G=[301,302,303,307,308];F.redirect=function(e,t){if(-1===G.indexOf(t))throw new RangeError("Invalid status code");return new F(null,{status:t,headers:{location:e}})};var j=P.DOMException;try{new j}catch(f){(j=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),j.prototype.constructor=j}function $(n,a){return new Promise(function(i,e){var t=new U(n,a);if(t.signal&&t.signal.aborted)return e(new j("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new N,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 o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new F(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new j("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&P.location.href?P.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(T?o.responseType="blob":x&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof N?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,I(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}$.polyfill=!0,P.fetch||(P.fetch=$,P.Headers=N,P.Request=U,P.Response=F),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 V(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 X(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function H(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function q(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 Y=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 K(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var te=(ne.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=V(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(q(o))try{o()}catch(e){i=e instanceof Y?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=V(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{oe(c)}catch(e){i=null!=i?i:[],e instanceof Y?i=H(H([],X(i)),X(e.errors)):i.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(i)throw new Y(i)}},ne.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)oe(e);else{if(e instanceof ne){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},ne.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},ne.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},ne.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&K(t,e)},ne.prototype.remove=function(e){var t=this._teardowns;t&&K(t,e),e instanceof ne&&e._removeParent(this)},ne.EMPTY=((St=new ne).closed=!0,St),ne),re=te.EMPTY;function ne(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ie(e){return e instanceof te||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function oe(e){q(e)?e():e.unsubscribe()}var ae=void 0,se=!1,le=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,H([],X(e)))};function ue(){}function ce(e){e()}var fe,pe,he=(W(me,pe=te),me.create=function(e,t,r){return new de(e,t,r)},me.prototype.next=function(e){this.isStopped||this._next(e)},me.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},me.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},me.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,pe.prototype.unsubscribe.call(this),this.destination=null)},me.prototype._next=function(e){this.destination.next(e)},me.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},me.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},me),de=(W(ye,fe=he),ye);function ye(e,t,r){var n,i,o=fe.call(this)||this;return q(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&se?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?be(i):ue,error:be(null!=t?t:ge),complete:r?be(r):ue},o}function me(e){var t=pe.call(this)||this;return t.isStopped=!1,e?ie(t.destination=e)&&e.add(t):t.destination=ve,t}function be(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,H([],X(e)))}catch(e){t=e,le(function(){throw t})}}}function ge(e){throw e}var ve={closed:!0,next:ue,error:ge,complete:ue},Ee="function"==typeof Symbol&&Symbol.observable||"@@observable";function Pe(e){return e}var _e=(we.prototype.lift=function(e){var t=new we;return t.source=this,t.operator=e,t},we.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof he||n&&q(n.next)&&q(n.error)&&q(n.complete)&&ie(n)?e:new de(e,t,r);return ce(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},we.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},we.prototype.forEach=function(n,e){var i=this;return new(e=Te(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},we.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},we.prototype[Ee]=function(){return this},we.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Pe:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},we.prototype.toPromise=function(e){var n=this;return new(e=Te(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},we.create=function(e){return new we(e)},we);function we(e){e&&(this._subscribe=e)}function Te(e){return null!==(e=null!=e?e:ae)&&void 0!==e?e:Promise}var Ae,xe,Se,Ie=Q(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ce=(W(Re,Se=_e),Re.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},Re.prototype._throwIfClosed=function(){if(this.closed)throw new Ie},Re.prototype.next=function(o){var a=this;ce(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=V(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Re.prototype.error=function(t){var r=this;ce(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)}})},Re.prototype.complete=function(){var t=this;ce(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Re.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Re.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Re.prototype._trySubscribe=function(e){return this._throwIfClosed(),Se.prototype._trySubscribe.call(this,e)},Re.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Re.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?re:(n.push(e),new te(function(){return K(n,e)}))},Re.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Re.prototype.asObservable=function(){var e=new _e;return e.source=this,e},Re.create=function(e,t){return new Ne(e,t)},Re),Ne=(W(Me,xe=Ce),Me.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)},Me.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)},Me.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)},Me.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:re},Me),Oe={now:function(){return(Oe.delegate||Date).now()},delegate:void 0},De=(W(Le,Ae=Ce),Le.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),Ae.prototype.next.call(this,e)},Le.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Le.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),a=0,s=1;s<r.length&&r[s]<=o;s+=2)a=s;a&&r.splice(0,a+1)}},Le);function Le(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Oe);var n=Ae.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 Me(e,t){var r=xe.call(this)||this;return r.destination=e,r.source=t,r}function Re(){var e=Se.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Be=[],Ue={};const ke=[];function Fe(n,i=f){let o;const a=[];function s(e){if(r(n,e)&&(n=e,o)){const e=!ke.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),ke.push(t,n)}if(e){for(let e=0;e<ke.length;e+=2)ke[e][0](ke[e+1]);ke.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=f){const r=[e,t];return a.push(r),1===a.length&&(o=i(s)||f),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(o(),o=null)}}}}function Ge(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Fe(t,t=>{let r=!1;const n=[];let i=0,o=f;const a=()=>{var e;i||(o(),e=s(l?n[0]:n,t),c?t(e):o=d(e)?e:f)},e=u.map((e,t)=>Z(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){yr(e),o()}}).subscribe}}var je=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===$e));var t},$e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qe(Array.isArray(e)?[]:{},e,t):e}function We(e,t,r){return e.concat(t).map(function(e){return ze(e,r)})}function Ve(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Xe(e,t){try{return t in e}catch(e){return!1}}function He(n,i,o){var a={};return o.isMergeableObject(n)&&Ve(n).forEach(function(e){a[e]=ze(n[e],o)}),Ve(i).forEach(function(t){var e,r;(!Xe(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Xe(n,t)&&o.isMergeableObject(i[t])?a[t]=function(){if(!o.customMerge)return qe;var e=o.customMerge(t);return"function"==typeof e?e:qe}()(n[t],i[t],o):a[t]=ze(i[t],o))}),a}function qe(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||We,r.isMergeableObject=r.isMergeableObject||je,r.cloneUnlessOtherwiseSpecified=ze;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):He(e,t,r):ze(t,r)}qe.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return qe(e,t,r)},{})};var Qe=qe,Ye=function(e,t){return(Ye=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 Ke(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}Ye(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ze,Je,et,tt=function(){return(tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function rt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function nt(e){return e.type===Je.literal}function it(e){return e.type===Je.number}function ot(e){return e.type===Je.date}function at(e){return e.type===Je.time}function st(e){return e.type===Je.select}function lt(e){return e.type===Je.plural}function ut(e){return e.type===Je.tag}function ct(e){return e&&"object"==typeof e&&e.type===et.number}function ft(e){return e&&"object"==typeof e&&e.type===et.dateTime}(It=Ze=Ze||{})[It.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",It[It.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",It[It.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",It[It.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",It[It.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",It[It.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",It[It.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",It[It.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",It[It.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",It[It.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",It[It.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",It[It.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",It[It.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",It[It.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",It[It.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",It[It.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",It[It.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",It[It.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",It[It.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",It[It.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",It[It.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",It[It.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",It[It.INVALID_TAG=23]="INVALID_TAG",It[It.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",It[It.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",It[It.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ct=Je=Je||{})[Ct.literal=0]="literal",Ct[Ct.argument=1]="argument",Ct[Ct.number=2]="number",Ct[Ct.date=3]="date",Ct[Ct.time=4]="time",Ct[Ct.select=5]="select",Ct[Ct.plural=6]="plural",Ct[Ct.pound=7]="pound",Ct[Ct.tag=8]="tag",(Nt=et=et||{})[Nt.number=0]="number",Nt[Nt.dateTime=1]="dateTime";var pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ht=/(?:[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 dt,yt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,mt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bt=/^(@+)?(\+|#+)?$/g,gt=/(\*)(0+)|(#+)(0+)|(0+)/g,vt=/^(0+)$/;function Et(e){var n={};return e.replace(bt,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 Pt(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 _t(e){return Pt(e)||{}}function wt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=i.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=tt(tt(tt({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return tt(tt({},e),_t(t))},{}));continue;case"engineering":a=tt(tt(tt({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return tt(tt({},e),_t(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(gt,function(e,t,r,n,i,o){if(t)a.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(vt.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(mt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(mt,function(e,t,r,n,i,o){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:i&&o?(a.minimumFractionDigits=i.length,a.maximumFractionDigits=i.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),i.options.length&&(a=tt(tt({},a),Et(i.options[0])))}else bt.test(i.stem)?a=tt(tt({},a),Et(i.stem)):((n=Pt(i.stem))&&(a=tt(tt({},a),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)),!vt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=tt(tt({},a),n)))}return a}var Tt=new RegExp("^"+pt.source+"*"),At=new RegExp(pt.source+"*$");function xt(e,t){return{start:e,end:t}}var St=!!String.prototype.startsWith,Ee=!!String.fromCodePoint,Ce=!!Object.fromEntries,It=!!String.prototype.codePointAt,Ct=!!String.prototype.trimStart,Nt=!!String.prototype.trimEnd,Ot=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pt=!0;try{pt="a"===(null===(dt=Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===dt?void 0:dt[0])}catch(f){pt=!1}var Dt,Lt,Mt=St?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Rt=Ee?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Bt=Ce?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Ut=It?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},kt=Ct?function(e){return e.trimStart()}:function(e){return e.replace(Tt,"")},Ft=Nt?function(e){return e.trimEnd()}:function(e){return e.replace(At,"")};function Gt(e,t){return new RegExp(e,t)}Lt=pt?(Dt=Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Dt.lastIndex=t,null!==(e=Dt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Ut(e,t);if(void 0===i||Wt(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Rt.apply(void 0,n)};var jt=($t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},$t.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Ze.UNMATCHED_CLOSING_TAG,xt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&zt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:Je.pound,location:xt(o,this.clonePosition())})}}}return{val:n,err:null}},$t.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Je.literal,value:"<"+n+"/>",location:xt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zt(this.char()))return this.error(Ze.INVALID_TAG,xt(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(Ze.UNMATCHED_CLOSING_TAG,xt(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Je.tag,value:n,children:e,location:xt(r,this.clonePosition())},err:null}:this.error(Ze.INVALID_TAG,xt(t,this.clonePosition())))}return this.error(Ze.UNCLOSED_TAG,xt(r,this.clonePosition()))}return this.error(Ze.INVALID_TAG,xt(r,this.clonePosition()))},$t.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())},$t.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=xt(r,this.clonePosition());return{val:{type:Je.literal,value:n,location:r},err:null}},$t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(zt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},$t.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 Rt.apply(void 0,t)},$t.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(),Rt(r))},$t.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ze.EMPTY_ARGUMENT,xt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ze.MALFORMED_ARGUMENT,xt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Je.argument,value:n,location:xt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Ze.MALFORMED_ARGUMENT,xt(r,this.clonePosition()))}},$t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Lt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:xt(e,this.clonePosition())}},$t.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Ze.EXPECT_ARGUMENT_TYPE,xt(o,s));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===(f=Ft(p.val)).length)return this.error(Ze.EXPECT_ARGUMENT_STYLE,xt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:xt(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=xt(n,this.clonePosition());if(l&&Mt(null==l?void 0:l.style,"::",0)){u=kt(l.style.slice(2));if("number"===a)return(p=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?p:{val:{type:Je.number,value:r,location:c,style:p.val},err:null};if(0===u.length)return this.error(Ze.EXPECT_DATE_TIME_SKELETON,c);var f={type:et.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(ht,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===a?Je.date:Je.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===a?Je.number:"date"===a?Je.date:Je.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(Ze.EXPECT_SELECT_ARGUMENT_OPTIONS,xt(l,tt({},l)));this.bumpSpace();var p,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Ze.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(Ze.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ze.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=p.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=xt(n,this.clonePosition());return"select"===a?{val:{type:Je.select,value:r,options:Bt(c.val),location:h},err:null}:{val:{type:Je.plural,value:r,options:Bt(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:h},err:null};default:return this.error(Ze.INVALID_ARGUMENT_TYPE,xt(o,s))}},$t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Ze.EXPECT_ARGUMENT_CLOSING_BRACE,xt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},$t.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(Ze.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xt(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}},$t.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(yt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),a=0,s=i;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(Ze.INVALID_NUMBER_SKELETON,t)}return{val:{type:et.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?wt(r):{}},err:null}},$t.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ze.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=xt(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?Ze.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ze.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ze.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,xt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(f);if(u.err)return u;o.push([s,{value:c.val,location:xt(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?Ze.EXPECT_SELECT_ARGUMENT_SELECTOR:Ze.EXPECT_PLURAL_ARGUMENT_SELECTOR,xt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Ze.MISSING_OTHER_CLAUSE,xt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},$t.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}n=xt(n,this.clonePosition());return i?Ot(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},$t.prototype.offset=function(){return this.position.offset},$t.prototype.isEOF=function(){return this.offset()===this.message.length},$t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},$t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ut(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},$t.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},$t.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))},$t.prototype.bumpIf=function(e){if(Mt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},$t.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)},$t.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}},$t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Wt(this.char());)this.bump()},$t.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},$t);function $t(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 zt(e){return 97<=e&&e<=122||65<=e&&e<=90}function Wt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Vt(e,t){t=tt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new jt(e,t).parse();if(r.err){e=SyntaxError(Ze[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,st(e)||lt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else it(e)&&ct(e.style)||(ot(e)||at(e))&&ft(e.style)?delete e.style.location:ut(e)&&r(e.children)})}(r.val),r.val}function Xt(e,t){var r=t&&t.cache?t.cache:Jt,n=t&&t.serializer?t.serializer:Yt;return(t&&t.strategy?t.strategy:function(e,t){return Qt(e,this,1===e.length?Ht:qt,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Ht(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function qt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function Qt(e,t,r,n,i){return r.bind(t,e,n,i)}var Yt=function(){return JSON.stringify(arguments)};function Kt(){this.cache=Object.create(null)}Kt.prototype.has=function(e){return e in this.cache},Kt.prototype.get=function(e){return this.cache[e]},Kt.prototype.set=function(e,t){this.cache[e]=t};var Zt,Jt={create:function(){return new Kt}},er={variadic:function(e,t){return Qt(e,this,qt,t.cache.create(),t.serializer)},monadic:function(e,t){return Qt(e,this,Ht,t.cache.create(),t.serializer)}};(pt=Zt=Zt||{}).MISSING_VALUE="MISSING_VALUE",pt.INVALID_VALUE="INVALID_VALUE",pt.MISSING_INTL_API="MISSING_INTL_API";var tr,rr,nr,ir,or,ar=(Ke(hr,or=Error),hr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},hr),sr=(Ke(pr,ir=ar),pr),lr=(Ke(fr,nr=ar),fr),ur=(Ke(cr,rr=ar),cr);function cr(e,t){return rr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Zt.MISSING_VALUE,t)||this}function fr(e,t,r){return nr.call(this,'Value for "'+e+'" must be of type '+t,Zt.INVALID_VALUE,r)||this}function pr(e,t,r,n){return ir.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Zt.INVALID_VALUE,n)||this}function hr(e,t,r){e=or.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function dr(e,t,r,n,i,o,a){if(1===e.length&&nt(e[0]))return[{type:tr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(nt(c))s.push({type:tr.literal,value:c.value});else if(c.type===Je.pound)"number"==typeof o&&s.push({type:tr.literal,value:r.getNumberFormat(t).format(o)});else{var f=c.value;if(!(i&&f in i))throw new ur(f,a);var p=i[f];if(c.type===Je.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?tr.literal:tr.object,value:p});else if(ot(c)){var h="string"==typeof c.style?n.date[c.style]:ft(c.style)?c.style.parsedOptions:void 0;s.push({type:tr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(at(c))h="string"==typeof c.style?n.time[c.style]:ft(c.style)?c.style.parsedOptions:void 0,s.push({type:tr.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(it(c))(h="string"==typeof c.style?n.number[c.style]:ct(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:tr.literal,value:r.getNumberFormat(t,h).format(p)});else{if(ut(c)){var d=c.children,y=c.value,f=i[y];if("function"!=typeof f)throw new lr(y,"function",a);d=f(dr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?tr.literal:tr.object,value:e}}))}if(st(c)){if(!(m=c.options[p]||c.options.other))throw new sr(c.value,p,Object.keys(c.options),a);s.push.apply(s,dr(m.value,t,r,n,i))}else if(lt(c)){if(!(m=c.options["="+p])){if(!Intl.PluralRules)throw new ar('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Zt.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new sr(c.value,p,Object.keys(c.options),a);s.push.apply(s,dr(m.value,t,r,n,i,p-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===tr.literal&&t.type===tr.literal?r.value+=t.value:e.push(t),e},[])}function Ir(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=tr=tr||{})[pt.literal=0]="literal",pt[pt.object=1]="object";var Cr=(Object.defineProperty(Nr,"defaultLocale",{get:function(){return Nr.memoizedDefaultLocale||(Nr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Nr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Nr.memoizedDefaultLocale=null,Nr.__parse=Vt,Nr.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"}}},Nr);function Nr(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=Nr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===tr.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 dr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Nr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Nr.__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=(i=Nr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?tt(tt(tt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=tt(tt({},r[t]),n[t]||{}),e},{})):r),e},tt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,rt([void 0],t)))},{cache:Ir((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:er.variadic}),getDateTimeFormat:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,rt([void 0],t)))},{cache:Ir(n.dateTime),strategy:er.variadic}),getPluralRules:Xt(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,rt([void 0],t)))},{cache:Ir(n.pluralRules),strategy:er.variadic})}}const Or={},Dr=(t,r)=>{if(null!=r){if(r in Or&&t in Or[r])return Or[r][t];var n,i,o=qr(r);for(let e=0;e<o.length;e++){var a=(n=o[e],i=t,Rr(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 Lr[e]||null}(n),i):null);if(a)return n=t,i=r,(a=a)&&(i in Or||(Or[i]={}),n in Or[i]||(Or[i][n]=a),a)}}};let Lr;const Mr=Fe({});function Rr(e){return e in Lr}function Br(t,...r){delete Or[t],Mr.update(e=>(e[t]=Qe.all([e[t]||{},...r]),e))}Ge([Mr],([e])=>Object.keys(e)),Mr.subscribe(e=>Lr=e);const Ur={};function kr(e){return Ur[e]}function Fr(e){return qr(e).some(e=>{return null===(e=kr(e))||void 0===e?void 0:e.size})}const Gr={};function jr(e){if(!Fr(e))return e in Gr?Gr[e]:void 0;const t=qr(e).map(e=>{var t=kr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Gr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Ur[e].delete(t),0===Ur[e].size&&delete Ur[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Br(t,...e))}(e))).then(()=>Fr(e)?jr(e):void delete Gr[e]),Gr[e]}function $r(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const zr={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 Wr=Fe(!1);let Vr;const Xr=Fe(null);function Hr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function qr(e,t=zr.fallbackLocale){e=Hr(e);return t?[...new Set([...e,...Hr(t)])]:e}Xr.subscribe(e=>{Vr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Qr=Xr.set;Xr.set=t=>{if(function(e){if(null!=e){var t=qr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Rr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=zr;let e;return"undefined"!=typeof window&&null!=Vr&&r?e=window.setTimeout(()=>Wr.set(!0),r):Wr.set(!0),jr(t).then(()=>{Qr(t)}).finally(()=>{clearTimeout(e),Wr.set(!1)})}return Qr(t)},Xr.update=e=>Qr(e(Vr));const Yr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Kr=(e,t)=>{var{formats:r}=zr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Kr("number",r)),new Intl.NumberFormat(t,e)}),Jr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Kr("date",r):0===Object.keys(e).length&&(e=Kr("date","short")),new Intl.DateTimeFormat(t,e)}),en=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Kr("time",r):0===Object.keys(e).length&&(e=Kr("time","short")),new Intl.DateTimeFormat(t,e)}),tn=Yr((e,t=Vr)=>new Cr(e,t,zr.formats,{ignoreTag:zr.ignoreTag})),rn=Ge([Xr,Mr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Vr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Dr(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else zr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${qr(n).join('", "')}".${Fr(Vr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let a=o;try{a=tn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return en(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Zr(Object.assign({locale:t},e))})(t).format(e)),Ge([Xr,Mr],()=>(e,t=Vr)=>Dr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Be.indexOf(e)&&(t=new De(t),Ue[e]=t,Be.push(e)),Ue[e]}};const nn={en:{playerProfile:{title:"Profile Info",personalDetails:"Personal Details",userName:"User name:",userPhone:"Phone:",userEmail:"Email:",securityQuestion:"Security Question:",firstName:"First name:",securityAnswer:"Security Answer:",lastName:"Last Name:",dateOfBirth:"Date of birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userAddress:"Address:",userPostalCode:"Postal Code:",userNotifications:"Notifications",userSMSNotification:"Enable SMS notifications",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"}},ro:{playerProfile:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCity:"Oraș:",userAddress:"Adresă:",userPostalCode:"Cod poștal:",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"}}};function on(e,t,r){const n=e.slice();return n[79]=t[r],n}function an(r){let i,n,o,a,s,l,u,c,f,p,h,d,y,m,b,g,v,E,P,_,w,T,A,x,e,S,I,C,N,O,D,L,M,R,B,U,k,F,G,j,$,z,W,V,X,H,q,Q,Y,K,Z,J,ee,te,re,ne,ie,oe,ae,se,le,ue,ce,fe,pe,he,de,ye,me,be,ge,ve,Ee,Pe,_e,we,Te,Ae,xe,Se,Ie,Ce,Ne,Oe,De,Le,Me,Re,Be,Ue,ke,Fe,Ge,je,$e,ze,We,Ve,Xe,He,qe,Qe,Ye,Ke,Ze,Je,et,tt,rt,nt,it,ot,at,st,lt,ut,ct,ft,pt,ht,dt,yt,mt,bt,gt,vt,Et,Pt,_t,wt,Tt,At,xt,St,It,Ct,Nt,Ot,Dt,Lt,Mt,Rt,Bt,Ut,kt,Ft,Gt,jt=r[28]("playerProfile.title")+"",$t=r[28]("playerProfile.personalDetails")+"",zt=r[28]("playerProfile.userName")+"",Wt=r[28]("playerProfile.userPhone")+"",Vt=r[28]("playerProfile.userEmail")+"",Xt=r[28]("playerProfile.securityQuestion")+"",Ht=r[28]("playerProfile.firstName")+"",qt=r[28]("playerProfile.securityAnswer")+"",Qt=r[28]("playerProfile.lastName")+"",Yt=r[28]("playerProfile.dateOfBirth")+"",Kt=r[28]("playerProfile.currency")+"",Zt=r[28]("playerProfile.userTitle")+"",Jt=r[28]("playerProfile.locationDetails")+"",er=r[28]("playerProfile.userCountry")+"",tr=r[28]("playerProfile.userCity")+"",rr=r[28]("playerProfile.userAddress")+"",nr=r[28]("playerProfile.userPostalCode")+"",ir=r[28]("playerProfile.userNotifications")+"",or=r[28]("playerProfile.userSMSNotification")+"",ar=r[28]("playerProfile.userEmailNotification")+"",sr=r[28]("playerProfile.userProfileSaveChanges")+"",lr=r[29]&&function(r){let n,i,o,a,s,l,u,c,f,p,h,d,y,m=r[28]("playerProfile.title")+"";return{c(){n=t("div"),i=vr("svg"),o=vr("defs"),a=vr("style"),s=Er(".aaa{fill:#d0046c;}"),l=vr("g"),u=vr("g"),c=vr("path"),f=Pr(),p=t("h2"),h=Er(m),wr(c,"class","aaa"),wr(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),wr(c,"transform","translate(15 15) rotate(180)"),wr(u,"transform","translate(20 158)"),wr(l,"transform","translate(-20 -158)"),wr(i,"xmlns","http://www.w3.org/2000/svg"),wr(i,"width","15"),wr(i,"height","15"),wr(i,"viewBox","0 0 15 15"),wr(p,"class","MyAccountCategoryTitleMobile"),wr(n,"class","MenuReturnButton")},m(e,t){br(e,n,t),mr(n,i),mr(i,o),mr(o,a),mr(a,s),mr(i,l),mr(l,u),mr(u,c),mr(n,f),mr(n,p),mr(p,h),d||(y=_r(n,"click",r[44]),d=!0)},p(e,t){268435456&t[0]&&m!==(m=e[28]("playerProfile.title")+"")&&Tr(h,m)},d(e){e&&gr(n),d=!1,y()}}}(r),ur=r[12],cr=[];for(let e=0;e<ur.length;e+=1)cr[e]=un(on(r,ur,e));let fr=r[13]&&cn(),pr=r[15]&&fn(),hr=r[14]&&pn(),dr=r[16]&&hn(r);return{c(){i=t("form"),lr&&lr.c(),n=Pr(),o=t("h2"),a=Er(jt),s=Pr(),l=t("div"),u=t("h3"),c=Er($t),f=Pr(),p=t("section"),h=t("div"),d=t("label"),y=Er(zt),m=Pr(),b=t("input"),g=Pr(),v=t("div"),E=t("label"),P=Er(Wt),_=Pr(),w=t("div"),T=t("select");for(let e=0;e<cr.length;e+=1)cr[e].c();A=Pr(),x=t("input"),S=Pr(),I=t("div"),C=t("label"),N=Er(Vt),O=Pr(),D=t("input"),L=Pr(),M=t("div"),R=t("label"),B=Er(Xt),U=Pr(),k=t("input"),G=Pr(),j=t("div"),$=t("label"),z=Er(Ht),W=Pr(),V=t("input"),X=Pr(),H=t("div"),q=t("label"),Q=Er(qt),Y=Pr(),K=t("input"),J=Pr(),ee=t("div"),te=t("label"),re=Er(Qt),ne=Pr(),ie=t("input"),oe=Pr(),ae=t("div"),se=t("label"),le=Er(Yt),ue=Pr(),ce=t("input"),fe=Pr(),pe=t("div"),he=t("label"),de=Er(Kt),ye=Pr(),me=t("input"),be=Pr(),ge=t("div"),ve=t("label"),Ee=Er(Zt),Pe=Pr(),_e=t("input"),we=Pr(),Te=t("div"),Ae=t("h3"),xe=Er(Jt),Se=Pr(),Ie=t("section"),Ce=t("div"),Ne=t("label"),Oe=Er(er),De=Pr(),Le=t("input"),Re=Pr(),Be=t("div"),Ue=t("label"),ke=Er(tr),Fe=Pr(),Ge=t("input"),ze=Pr(),fr&&fr.c(),Ve=Pr(),Xe=t("div"),He=t("label"),qe=Er(rr),Qe=Pr(),Ye=t("input"),Ze=Pr(),pr&&pr.c(),et=Pr(),tt=t("div"),rt=t("label"),nt=Er(nr),it=Pr(),ot=t("input"),lt=Pr(),hr&&hr.c(),ct=Pr(),ft=t("div"),pt=t("h3"),ht=Er(ir),dt=Pr(),yt=t("section"),mt=t("div"),bt=t("label"),gt=t("input"),vt=Pr(),Et=t("span"),Pt=Pr(),_t=t("span"),wt=Er(or),Tt=Pr(),At=t("div"),xt=t("label"),St=t("input"),It=Pr(),Ct=t("span"),Nt=Pr(),Ot=t("span"),Dt=Er(ar),Lt=Pr(),Mt=t("section"),Rt=t("div"),Bt=Er(sr),kt=Pr(),dr&&dr.c(),wr(o,"class","MyAccountCategoryTitle "+(r[29]?"MyAccountCategoryTitleNone":"")),wr(l,"class","PlayerNotificationsHeader"),wr(b,"type","text"),wr(b,"class","FieldDisabled"),b.value=r[26],b.readOnly=!0,wr(h,"class","PlayerInfoBox"),void 0===r[8]&&Sr(()=>r[45].call(T)),wr(x,"type","text"),wr(x,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),wr(x,"placeholder",e=r[0]?r[21].number:""),wr(w,"class","PlayerPhoneNumber"),wr(v,"class","PlayerInfoBox"),wr(D,"type","email"),wr(D,"class","FieldDisabled"),D.value=r[22],D.readOnly=!0,wr(I,"class","PlayerInfoBox"),wr(k,"type","text"),wr(k,"placeholder",F=r[0]?r[35]:""),wr(M,"class","PlayerInfoBox"),wr(V,"type","text"),wr(V,"class","FieldDisabled"),V.value=r[23],V.readOnly=!0,wr(j,"class","PlayerInfoBox"),wr(K,"type","text"),wr(K,"placeholder",Z=r[0]?r[34]:""),wr(H,"class","PlayerInfoBox"),wr(ie,"type","text"),wr(ie,"class","FieldDisabled"),ie.value=r[25],ie.readOnly=!0,wr(ee,"class","PlayerInfoBox"),wr(ce,"type","text"),wr(ce,"class","FieldDisabled"),ce.value=r[18],ce.readOnly=!0,wr(ae,"class","PlayerInfoBox"),wr(me,"type","text"),wr(me,"class","FieldDisabled"),me.value=r[20],me.readOnly=!0,wr(pe,"class","PlayerInfoBox"),wr(_e,"type","text"),wr(_e,"class","FieldDisabled"),_e.value=r[24],_e.readOnly=!0,wr(ge,"class","PlayerInfoBox"),wr(p,"class","PlayerDetailsContent"),wr(Te,"class","PlayerLocationHeader"),wr(Le,"type","text"),wr(Le,"class","PlayerCountry FieldDisabled"),wr(Le,"placeholder",r[19]),Le.value=Me=r[11].Name,Le.readOnly=!0,wr(Ce,"class","PlayerInfoBox"),wr(Ge,"type","text"),wr(Ge,"placeholder",je=r[0]?r[32]:""),Ge.value=$e=r[0]?"":r[17].city,wr(Be,"class",We="PlayerInfoBox "+(r[13]?"InvalidField":"")),wr(Ye,"placeholder",r[31]),wr(Ye,"type","text"),Ye.value=Ke=r[0]?"":r[17].address,wr(Xe,"class",Je="PlayerInfoBox "+(r[15]?"InvalidField":"")),wr(ot,"type","number"),wr(ot,"placeholder",at=r[0]?r[33]:""),ot.value=st=r[0]?"":r[17].postalCode,wr(tt,"class",ut="PlayerInfoBox "+(r[14]?"InvalidField":"")),wr(Ie,"class","PlayerLocationContent"),wr(ft,"class","PlayerNotificationsHeader"),wr(gt,"type","checkbox"),wr(gt,"id","SMSNotification"),wr(gt,"name","Enable SMS notifications"),wr(Et,"class","Checkmark"),wr(bt,"for","SMSNotification"),wr(mt,"class","PlayerNotificationBox"),wr(St,"type","checkbox"),wr(St,"id","EmailNotification"),wr(St,"name","Enable Emails"),wr(Ct,"class","Checkmark"),wr(xt,"for","EmailNotification"),wr(At,"class","PlayerNotificationBox"),wr(yt,"class","PlayerNotificationsCheckboxArea"),wr(Rt,"class",Ut="PlayerDetailsSaveButton "+(r[10]&&r[27]?"":"PlayerButtonDisabled")),wr(Mt,"class","PlayerDetailsButtonsArea "+(r[29]?"PlayerDetailsButtonsAreaMobile":"")),wr(i,"class","PlayerInfoWrapper "+(r[29]?"PlayerInfoWrapperMobile":"")+" "+(r[30].matches&&r[29]?"PlayerInfoWrapperTablet":""))},m(e,t){br(e,i,t),lr&&lr.m(i,null),mr(i,n),mr(i,o),mr(o,a),mr(i,s),mr(i,l),mr(l,u),mr(u,c),mr(i,f),mr(i,p),mr(p,h),mr(h,d),mr(d,y),mr(h,m),mr(h,b),mr(p,g),mr(p,v),mr(v,E),mr(E,P),mr(v,_),mr(v,w),mr(w,T);for(let e=0;e<cr.length;e+=1)cr[e].m(T,null);xr(T,r[8]),mr(w,A),mr(w,x),Ar(x,r[9]),mr(p,S),mr(p,I),mr(I,C),mr(C,N),mr(I,O),mr(I,D),mr(p,L),mr(p,M),mr(M,R),mr(R,B),mr(M,U),mr(M,k),Ar(k,r[6]),mr(p,G),mr(p,j),mr(j,$),mr($,z),mr(j,W),mr(j,V),mr(p,X),mr(p,H),mr(H,q),mr(q,Q),mr(H,Y),mr(H,K),Ar(K,r[7]),mr(p,J),mr(p,ee),mr(ee,te),mr(te,re),mr(ee,ne),mr(ee,ie),mr(p,oe),mr(p,ae),mr(ae,se),mr(se,le),mr(ae,ue),mr(ae,ce),mr(p,fe),mr(p,pe),mr(pe,he),mr(he,de),mr(pe,ye),mr(pe,me),mr(p,be),mr(p,ge),mr(ge,ve),mr(ve,Ee),mr(ge,Pe),mr(ge,_e),mr(i,we),mr(i,Te),mr(Te,Ae),mr(Ae,xe),mr(i,Se),mr(i,Ie),mr(Ie,Ce),mr(Ce,Ne),mr(Ne,Oe),mr(Ce,De),mr(Ce,Le),mr(Ie,Re),mr(Ie,Be),mr(Be,Ue),mr(Ue,ke),mr(Be,Fe),mr(Be,Ge),r[53](Ge),mr(Be,ze),fr&&fr.m(Be,null),mr(Ie,Ve),mr(Ie,Xe),mr(Xe,He),mr(He,qe),mr(Xe,Qe),mr(Xe,Ye),r[55](Ye),mr(Xe,Ze),pr&&pr.m(Xe,null),mr(Ie,et),mr(Ie,tt),mr(tt,rt),mr(rt,nt),mr(tt,it),mr(tt,ot),r[57](ot),mr(tt,lt),hr&&hr.m(tt,null),mr(i,ct),mr(i,ft),mr(ft,pt),mr(pt,ht),mr(i,dt),mr(i,yt),mr(yt,mt),mr(mt,bt),mr(bt,gt),gt.checked=r[4],mr(bt,vt),mr(bt,Et),mr(bt,Pt),mr(bt,_t),mr(_t,wt),mr(yt,Tt),mr(yt,At),mr(At,xt),mr(xt,St),St.checked=r[5],mr(xt,It),mr(xt,Ct),mr(xt,Nt),mr(xt,Ot),mr(Ot,Dt),mr(i,Lt),mr(i,Mt),mr(Mt,Rt),mr(Rt,Bt),mr(i,kt),dr&&dr.m(i,null),Ft||(Gt=[_r(T,"change",r[45]),_r(T,"change",r[46]),_r(x,"input",r[47]),_r(x,"keyup",r[48]),_r(k,"input",r[49]),_r(k,"keyup",r[50]),_r(K,"input",r[51]),_r(K,"keyup",r[52]),_r(Ge,"blur",r[36]),_r(Ge,"keyup",r[54]),_r(Ye,"blur",r[38]),_r(Ye,"keyup",r[56]),_r(ot,"blur",r[37]),_r(ot,"keyup",r[58]),_r(gt,"change",r[59]),_r(gt,"change",r[41]),_r(St,"change",r[60]),_r(St,"change",r[41]),_r(Rt,"click",r[61])],Ft=!0)},p(t,r){if(t[29]&&lr.p(t,r),268435456&r[0]&&jt!==(jt=t[28]("playerProfile.title")+"")&&Tr(a,jt),268435456&r[0]&&$t!==($t=t[28]("playerProfile.personalDetails")+"")&&Tr(c,$t),268435456&r[0]&&zt!==(zt=t[28]("playerProfile.userName")+"")&&Tr(y,zt),67108864&r[0]&&b.value!==t[26]&&(b.value=t[26]),268435456&r[0]&&Wt!==(Wt=t[28]("playerProfile.userPhone")+"")&&Tr(P,Wt),135168&r[0]){let e;for(ur=t[12],e=0;e<ur.length;e+=1){var n=on(t,ur,e);cr[e]?cr[e].p(n,r):(cr[e]=un(n),cr[e].c(),cr[e].m(T,null))}for(;e<cr.length;e+=1)cr[e].d(1);cr.length=ur.length}4352&r[0]&&xr(T,t[8]),2097153&r[0]&&e!==(e=t[0]?t[21].number:"")&&wr(x,"placeholder",e),512&r[0]&&x.value!==t[9]&&Ar(x,t[9]),268435456&r[0]&&Vt!==(Vt=t[28]("playerProfile.userEmail")+"")&&Tr(N,Vt),4194304&r[0]&&D.value!==t[22]&&(D.value=t[22]),268435456&r[0]&&Xt!==(Xt=t[28]("playerProfile.securityQuestion")+"")&&Tr(B,Xt),1&r[0]&&F!==(F=t[0]?t[35]:"")&&wr(k,"placeholder",F),64&r[0]&&k.value!==t[6]&&Ar(k,t[6]),268435456&r[0]&&Ht!==(Ht=t[28]("playerProfile.firstName")+"")&&Tr(z,Ht),8388608&r[0]&&V.value!==t[23]&&(V.value=t[23]),268435456&r[0]&&qt!==(qt=t[28]("playerProfile.securityAnswer")+"")&&Tr(Q,qt),1&r[0]&&Z!==(Z=t[0]?t[34]:"")&&wr(K,"placeholder",Z),128&r[0]&&K.value!==t[7]&&Ar(K,t[7]),268435456&r[0]&&Qt!==(Qt=t[28]("playerProfile.lastName")+"")&&Tr(re,Qt),33554432&r[0]&&ie.value!==t[25]&&(ie.value=t[25]),268435456&r[0]&&Yt!==(Yt=t[28]("playerProfile.dateOfBirth")+"")&&Tr(le,Yt),262144&r[0]&&ce.value!==t[18]&&(ce.value=t[18]),268435456&r[0]&&Kt!==(Kt=t[28]("playerProfile.currency")+"")&&Tr(de,Kt),1048576&r[0]&&me.value!==t[20]&&(me.value=t[20]),268435456&r[0]&&Zt!==(Zt=t[28]("playerProfile.userTitle")+"")&&Tr(Ee,Zt),16777216&r[0]&&_e.value!==t[24]&&(_e.value=t[24]),268435456&r[0]&&Jt!==(Jt=t[28]("playerProfile.locationDetails")+"")&&Tr(xe,Jt),268435456&r[0]&&er!==(er=t[28]("playerProfile.userCountry")+"")&&Tr(Oe,er),524288&r[0]&&wr(Le,"placeholder",t[19]),2048&r[0]&&Me!==(Me=t[11].Name)&&Le.value!==Me&&(Le.value=Me),268435456&r[0]&&tr!==(tr=t[28]("playerProfile.userCity")+"")&&Tr(ke,tr),1&r[0]&&je!==(je=t[0]?t[32]:"")&&wr(Ge,"placeholder",je),131073&r[0]&&$e!==($e=t[0]?"":t[17].city)&&Ge.value!==$e&&(Ge.value=$e),t[13]?fr||(fr=cn(),fr.c(),fr.m(Be,null)):fr&&(fr.d(1),fr=null),8192&r[0]&&We!==(We="PlayerInfoBox "+(t[13]?"InvalidField":""))&&wr(Be,"class",We),268435456&r[0]&&rr!==(rr=t[28]("playerProfile.userAddress")+"")&&Tr(qe,rr),131073&r[0]&&Ke!==(Ke=t[0]?"":t[17].address)&&Ye.value!==Ke&&(Ye.value=Ke),t[15]?pr||(pr=fn(),pr.c(),pr.m(Xe,null)):pr&&(pr.d(1),pr=null),32768&r[0]&&Je!==(Je="PlayerInfoBox "+(t[15]?"InvalidField":""))&&wr(Xe,"class",Je),268435456&r[0]&&nr!==(nr=t[28]("playerProfile.userPostalCode")+"")&&Tr(nt,nr),1&r[0]&&at!==(at=t[0]?t[33]:"")&&wr(ot,"placeholder",at),131073&r[0]&&st!==(st=t[0]?"":t[17].postalCode)&&(ot.value=st),t[14]?hr||(hr=pn(),hr.c(),hr.m(tt,null)):hr&&(hr.d(1),hr=null),16384&r[0]&&ut!==(ut="PlayerInfoBox "+(t[14]?"InvalidField":""))&&wr(tt,"class",ut),268435456&r[0]&&ir!==(ir=t[28]("playerProfile.userNotifications")+"")&&Tr(ht,ir),16&r[0]&&(gt.checked=t[4]),268435456&r[0]&&or!==(or=t[28]("playerProfile.userSMSNotification")+"")&&Tr(wt,or),32&r[0]&&(St.checked=t[5]),268435456&r[0]&&ar!==(ar=t[28]("playerProfile.userEmailNotification")+"")&&Tr(Dt,ar),268435456&r[0]&&sr!==(sr=t[28]("playerProfile.userProfileSaveChanges")+"")&&Tr(Bt,sr),134218752&r[0]&&Ut!==(Ut="PlayerDetailsSaveButton "+(t[10]&&t[27]?"":"PlayerButtonDisabled"))&&wr(Rt,"class",Ut),t[16]?dr?dr.p(t,r):(dr=hn(t),dr.c(),dr.m(i,null)):dr&&(dr.d(1),dr=null)},d(e){e&&gr(i),lr&&lr.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(cr,e),r[53](null),fr&&fr.d(),r[55](null),pr&&pr.d(),r[57](null),hr&&hr.d(),dr&&dr.d(),Ft=!1,yr(Gt)}}}function sn(e){let r,n,i,o=e[79].Prefix+"";return{c(){r=t("option"),n=Er(o),r.__value=i=e[79].Prefix,r.value=r.__value},m(e,t){br(e,r,t),mr(r,n)},p(e,t){4096&t[0]&&o!==(o=e[79].Prefix+"")&&Tr(n,o),4096&t[0]&&i!==(i=e[79].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&gr(r)}}}function ln(e){let r,n,i,o=e[79].Prefix+"";return{c(){r=t("option"),n=Er(o),r.selected=!0,r.__value=i=e[79].Prefix,r.value=r.__value},m(e,t){br(e,r,t),mr(r,n)},p(e,t){4096&t[0]&&o!==(o=e[79].Prefix+"")&&Tr(n,o),4096&t[0]&&i!==(i=e[79].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&gr(r)}}}function un(e){let r;function n(e){return e[79].Prefix===e[17].mobiePrefix?ln:sn}let i=n(e),o=i(e);return{c(){o.c(),r=a()},m(e,t){o.m(e,t),br(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&gr(r)}}}function cn(){let r;return{c(){r=t("p"),r.textContent="City must be at least 1 character long and 50 characters maximum.",wr(r,"class","InvalidInput")},m(e,t){br(e,r,t)},d(e){e&&gr(r)}}}function fn(){let r;return{c(){r=t("p"),r.textContent="Address must be at least 1 character long and 100 characters maximum.",wr(r,"class","InvalidInput")},m(e,t){br(e,r,t)},d(e){e&&gr(r)}}}function pn(){let r;return{c(){r=t("p"),r.textContent="Postal Code must be at least 1 character long and 20 characters maximum.",wr(r,"class","InvalidInput")},m(e,t){br(e,r,t)},d(e){e&&gr(r)}}}function hn(e){let r,n,i,o=e[28]("playerProfile.userProfileConfirmationMessage")+"";return{c(){r=t("section"),n=t("p"),i=Er(o),wr(n,"class","PlayerDetailsConfirmSaveText"),wr(r,"class","PlayerDetailsConfirmSave")},m(e,t){br(e,r,t),mr(r,n),mr(n,i)},p(e,t){268435456&t[0]&&o!==(o=e[28]("playerProfile.userProfileConfirmationMessage")+"")&&Tr(i,o)},d(e){e&&gr(r)}}}function dn(e){let r,n=an(e);return{c(){n.c(),r=a(),this.c=f},m(e,t){n.m(e,t),br(e,r,t)},p(e,t){n.p(e,t)},i:f,o:f,d(e){n.d(e),e&&gr(r)}}}function yn(t,e,r){let n;var i=rn;t.$$.on_destroy.push(Z(i,e=>r(28,n=e)));let o,a,s,{endpoint:l=""}=e,{lang:u="en"}=e,c="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),f=!0,p=!1,h=!1,d="",y="",m="",b="",g=!1,v={},E=[],P=[],_="",w="",T="",A=!1;Object.keys(nn).forEach(e=>{Br(e,nn[e])});e=window.matchMedia("(min-width: 768px)");let x={address1:"",address2:"",city:"",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},S={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},I={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:C,birth:N,city:O,country:D,currency:L,mobile:M,email:R,firstname:B,userTitles:U,language:k,lastname:F,postalCode:G,securityAnswer:j,securityQuestion:$,username:z}=I;const W=e=>{if(e.data)switch(e.data.type){case"ProfileDetailsData":r(0,f=!1),I=e.data.profileDetails,r(26,z=I.username),r(21,M=I.mobile),r(22,R=I.email),r(23,B=I.firstname),r(25,F=I.lastname),k=I.language,r(18,N=I.birth.day+"/"+I.birth.month+"/"+I.birth.year),r(20,L=I.currency),r(24,U=I.title),r(19,D=I.country),r(11,v=P.find(e=>e.Alpha2Code===I.country)),r(4,p=I.consents.acceptSMSOffers),r(5,h=I.consents.acceptNewsEmail),r(6,d=I.securityQuestion),r(7,y=I.securityAnswer),r(8,m=I.mobile.prefix),r(9,b=I.mobile.number),r(17,S={address:I.address1,city:I.city,acceptNewsEmail:I.consents.acceptNewsEmail,acceptSMSOffers:I.consents.acceptSMSOffers,mobilePrefix:M.prefix,mobileNumber:M.number,postalCode:I.postalCode,securityAnswer:I.securityAnswer,securityQuestion:I.securityQuestion});break;case"ConfirmProfileInfoSave":r(10,g=!1),V()}},V=()=>{r(16,A=!0),setTimeout(()=>{r(16,A=!1)},3e3)};let X=!1;const H=()=>{d.length<=0||y.length<=0||_||T||w||b.length<=0?r(27,X=!1):r(27,X=!0)},q=()=>{1==g&&1==X&&window.postMessage({type:"UpdatePlayerInfo",provisionalArray:x},window.location.href)},Q=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},Y=()=>{x={acceptNewsEmail:h,acceptSMSOffers:p,address:a.value,city:s.value,mobileNumber:b,mobilePrefix:m,postalCode:o.value,securityAnswer:y,securityQuestion:d},K(x,S),H()},K=(e,t)=>{JSON.stringify(e)===JSON.stringify(t)?r(10,g=!1):r(10,g=!0)};return i=()=>(window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W)}),function(){if(!J)throw new Error("Function called outside component initialization");return J}().$$.on_mount.push(i),t.$$set=e=>{"endpoint"in e&&r(42,l=e.endpoint),"lang"in e&&r(43,u=e.lang)},t.$$.update=()=>{var e;4096&t.$$.dirty[1]&&u&&(e=u,Xr.set(e)),2048&t.$$.dirty[1]&&l&&fetch(`${l}/player/countries`).then(e=>e.json()).then(e=>{P=e.countries}),2048&t.$$.dirty[1]&&l&&fetch(`${l}/player/phonecodes`).then(e=>e.json()).then(e=>{r(12,E=e.phoneCodes)})},[f,o,a,s,p,h,d,y,m,b,g,v,E,_,w,T,A,S,N,D,L,M,R,B,U,F,z,X,n,c,e,C,O,G,j,$,()=>{r(13,_=!(s.value&&s.value.length<=50)),H()},()=>{r(14,w=!(o.value&&o.value.length<=20)),H()},()=>{r(15,T=!(a.value&&a.value.length<=100)),H()},q,Q,Y,l,u,()=>Q(),function(){m=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(8,m),r(12,E)},()=>Y(),function(){b=this.value,r(9,b)},()=>Y(),function(){d=this.value,r(6,d)},()=>Y(),function(){y=this.value,r(7,y)},()=>Y(),function(e){ee[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>Y(),function(e){ee[e?"unshift":"push"](()=>{a=e,r(2,a)})},()=>Y(),function(e){ee[e?"unshift":"push"](()=>{o=e,r(1,o)})},()=>Y(),function(){p=this.checked,r(4,p)},function(){h=this.checked,r(5,h)},()=>q()]}class mn 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'}.MyAccountCategoryTitle{font-size:26px;color:#D0046C;font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:#D0046C}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:#07072A;background:#F9F8F8;padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:#D0046C;text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;background:#FFF;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox.InvalidField input{border:1px solid #FD2839;background:#FFF1F1;color:#FD2839}.PlayerInfoBox .InvalidInput{color:#FD2839;font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:#07072A;border:1px solid #D1D1D1;border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat #FFF;background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:#D1D1D1;cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:#D0046C}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#07072A;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:#9e0352}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:#F9F8F8;max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:#58586B}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:#07072A;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:#fff}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:#fff}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:#0cdc13;color:#fff;padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}</style>",s(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},yn,dn,r,{endpoint:42,lang:43},[-1,-1,-1]),e&&(e.target&&br(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["endpoint","lang"]}get endpoint(){return this.$$.ctx[42]}set endpoint(e){this.$set({endpoint:e}),v()}get lang(){return this.$$.ctx[43]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("player-profile-info")||customElements.define("player-profile-info",mn),mn});
2
2
  //# sourceMappingURL=player-profile-info.js.map