@everymatrix/casino-tournaments-table 0.0.280 → 0.0.281
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 f(){}function h(e){return e()}function p(){return Object.create(null)}function d(e){e.forEach(h)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function U(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function j(e,t){e.appendChild(t)}function $(e,t,r){e.insertBefore(t,r||null)}function q(e){e.parentNode.removeChild(e)}function T(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function B(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function V(){return z(" ")}function H(){return z("")}function E(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function X(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Q(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let S;function b(e){S=e}const g=[],e=[],n=[],i=[],y=Promise.resolve();let w=!1;function v(e){n.push(e)}let o=!1;const a=new Set;function C(){if(!o){o=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];b(t),function(e){{var t;null!==e.fragment&&(e.update(),d(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(v))}}(t.$$)}for(b(null),g.length=0;e.length;)e.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];a.has(r)||(a.add(r),r())}}while(n.length=0,g.length);for(;i.length;)i.pop()();w=!1,o=!1,a.clear()}}const _=new Set;function s(n,e,t,r,i,o,a=[-1]){var s,l=S;b(n);const u=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),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]&&(g.push(e),w||(w=!0,y.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,d(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(q)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(_.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||v(()=>{var e=o.map(h).filter(m);a?a.push(...e):d(e),t.$$.on_mount=[]}),s.forEach(v)}(n,e.target,e.anchor,e.customElement),C()}b(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(d(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,A="URLSearchParams"in P,R="Symbol"in P&&"iterator"in Symbol,L="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(e){return!1}}(),x="FormData"in P,O="ArrayBuffer"in P;function k(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 N(e){return e="string"!=typeof e?String(e):e}function I(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return R&&(e[Symbol.iterator]=function(){return e}),e}function M(t){this.map={},t instanceof M?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 D(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function F(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function G(e){var t=new FileReader,r=F(t);return t.readAsArrayBuffer(e),r}function Z(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:L&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:x&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:A&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():O&&L&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Z(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):O&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=Z(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):A&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},L&&(this.blob=function(){var e=D(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?D(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(G)}),this.text=function(){var e,t,r=D(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=F(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)},x&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}O&&(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))}),M.prototype.append=function(e,t){e=k(e),t=N(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},M.prototype.delete=function(e){delete this.map[k(e)]},M.prototype.get=function(e){return e=k(e),this.has(e)?this.map[e]:null},M.prototype.has=function(e){return this.map.hasOwnProperty(k(e))},M.prototype.set=function(e,t){this.map[k(e)]=N(t)},M.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},M.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),I(r)},M.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),I(t)},M.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),I(r)},R&&(M.prototype[Symbol.iterator]=M.prototype.entries);var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(e,t){if(!(this instanceof W))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 W){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new M(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 M(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<K.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 J(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 ee(e,t){if(!(this instanceof ee))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 M(t.headers),this.url=t.url||"",this._initBody(e)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})},Y.call(W.prototype),Y.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new M(this.headers),url:this.url})},ee.error=function(){var e=new ee(null,{status:0,statusText:""});return e.type="error",e};var te=[301,302,303,307,308];ee.redirect=function(e,t){if(-1===te.indexOf(t))throw new RangeError("Invalid status code");return new ee(null,{status:t,headers:{location:e}})};var re=P.DOMException;try{new re}catch(f){(re=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),re.prototype.constructor=re}function ne(n,a){return new Promise(function(i,e){var t=new W(n,a);if(t.signal&&t.signal.aborted)return e(new re("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 M,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 ee(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 re("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&&(L?o.responseType="blob":O&&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 M?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,N(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)})}ne.polyfill=!0,P.fetch||(P.fetch=ne,P.Headers=M,P.Request=W,P.Response=ee),self.fetch.bind(self);var ie=function(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ae(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 se(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 le(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function ue(e){return"function"==typeof e}function ce(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 fe=ce(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 he(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var pe=(me.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=ae(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(ue(o))try{o()}catch(e){i=e instanceof fe?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=ae(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{ge(c)}catch(e){i=null!=i?i:[],e instanceof fe?i=le(le([],se(i)),se(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 fe(i)}},me.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ge(e);else{if(e instanceof me){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},me.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},me.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},me.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&he(t,e)},me.prototype.remove=function(e){var t=this._teardowns;t&&he(t,e),e instanceof me&&e._removeParent(this)},me.EMPTY=((Gt=new me).closed=!0,Gt),me),de=pe.EMPTY;function me(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function be(e){return e instanceof pe||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function ge(e){ue(e)?e():e.unsubscribe()}var ye=void 0,we=!1,ve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,le([],se(e)))};function Te(){}function Ee(e){e()}var Ce,_e,Pe=(oe(Se,_e=pe),Se.create=function(e,t,r){return new Ae(e,t,r)},Se.prototype.next=function(e){this.isStopped||this._next(e)},Se.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Se.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Se.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_e.prototype.unsubscribe.call(this),this.destination=null)},Se.prototype._next=function(e){this.destination.next(e)},Se.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Se.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Se),Ae=(oe(Ue,Ce=Pe),Ue);function Ue(e,t,r){var n,i,o=Ce.call(this)||this;return ue(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&we?(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?Re(i):Te,error:Re(null!=t?t:Le),complete:r?Re(r):Te},o}function Se(e){var t=_e.call(this)||this;return t.isStopped=!1,e?be(t.destination=e)&&e.add(t):t.destination=xe,t}function Re(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,le([],se(e)))}catch(e){t=e,ve(function(){throw t})}}}function Le(e){throw e}var xe={closed:!0,next:Te,error:Le,complete:Te},Oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function ke(e){return e}var Ne=(Ie.prototype.lift=function(e){var t=new Ie;return t.source=this,t.operator=e,t},Ie.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Pe||n&&ue(n.next)&&ue(n.error)&&ue(n.complete)&&be(n)?e:new Ae(e,t,r);return Ee(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ie.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ie.prototype.forEach=function(n,e){var i=this;return new(e=Me(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ie.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ie.prototype[Oe]=function(){return this},Ie.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?ke:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ie.prototype.toPromise=function(e){var n=this;return new(e=Me(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ie.create=function(e){return new Ie(e)},Ie);function Ie(e){e&&(this._subscribe=e)}function Me(e){return null!==(e=null!=e?e:ye)&&void 0!==e?e:Promise}var De,Fe,Ge,je=ce(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$e=(oe(Xe,Ge=Ne),Xe.prototype.lift=function(e){var t=new qe(this,this);return t.operator=e,t},Xe.prototype._throwIfClosed=function(){if(this.closed)throw new je},Xe.prototype.next=function(o){var a=this;Ee(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=ae(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}}}})},Xe.prototype.error=function(t){var r=this;Ee(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)}})},Xe.prototype.complete=function(){var t=this;Ee(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Xe.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Xe.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Xe.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ge.prototype._trySubscribe.call(this,e)},Xe.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Xe.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?de:(n.push(e),new pe(function(){return he(n,e)}))},Xe.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Xe.prototype.asObservable=function(){var e=new Ne;return e.source=this,e},Xe.create=function(e,t){return new qe(e,t)},Xe),qe=(oe(He,Fe=$e),He.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)},He.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)},He.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)},He.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:de},He),Be={now:function(){return(Be.delegate||Date).now()},delegate:void 0},ze=(oe(Ve,De=$e),Ve.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(),De.prototype.next.call(this,e)},Ve.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Ve.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)}},Ve);function Ve(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Be);var n=De.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 He(e,t){var r=Fe.call(this)||this;return r.destination=e,r.source=t,r}function Xe(){var e=Ge.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Qe=[],Ze={};const Ye=[];function Ke(n,i=f){let o;const a=[];function s(e){if(r(n,e)&&(n=e,o)){const e=!Ye.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),Ye.push(t,n)}if(e){for(let e=0;e<Ye.length;e+=2)Ye[e][0](Ye[e+1]);Ye.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 We(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Ke(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=m(e)?e:f)},e=u.map((e,t)=>U(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){d(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===et));var t},et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?at(Array.isArray(e)?[]:{},e,t):e}function rt(e,t,r){return e.concat(t).map(function(e){return tt(e,r)})}function nt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function it(e,t){try{return t in e}catch(e){return!1}}function ot(n,i,o){var a={};return o.isMergeableObject(n)&&nt(n).forEach(function(e){a[e]=tt(n[e],o)}),nt(i).forEach(function(t){var e,r;(!it(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(it(n,t)&&o.isMergeableObject(i[t])?a[t]=function(){if(!o.customMerge)return at;var e=o.customMerge(t);return"function"==typeof e?e:at}()(n[t],i[t],o):a[t]=tt(i[t],o))}),a}function at(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||rt,r.isMergeableObject=r.isMergeableObject||Je,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ot(e,t,r):tt(t,r)}at.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return at(e,t,r)},{})};var st=at,lt=function(e,t){return(lt=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 ut(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}lt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ct,ft,ht,pt=function(){return(pt=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 dt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function mt(e){return e.type===ft.literal}function bt(e){return e.type===ft.number}function gt(e){return e.type===ft.date}function yt(e){return e.type===ft.time}function wt(e){return e.type===ft.select}function vt(e){return e.type===ft.plural}function Tt(e){return e.type===ft.tag}function Et(e){return e&&"object"==typeof e&&e.type===ht.number}function Ct(e){return e&&"object"==typeof e&&e.type===ht.dateTime}(jt=ct=ct||{})[jt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",jt[jt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",jt[jt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",jt[jt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",jt[jt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",jt[jt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",jt[jt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",jt[jt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",jt[jt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",jt[jt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",jt[jt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",jt[jt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",jt[jt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",jt[jt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",jt[jt.INVALID_TAG=23]="INVALID_TAG",jt[jt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",jt[jt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",jt[jt.UNCLOSED_TAG=27]="UNCLOSED_TAG",($t=ft=ft||{})[$t.literal=0]="literal",$t[$t.argument=1]="argument",$t[$t.number=2]="number",$t[$t.date=3]="date",$t[$t.time=4]="time",$t[$t.select=5]="select",$t[$t.plural=6]="plural",$t[$t.pound=7]="pound",$t[$t.tag=8]="tag",(qt=ht=ht||{})[qt.number=0]="number",qt[qt.dateTime=1]="dateTime";var _t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pt=/(?:[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 At,Ut=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,St=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Rt=/^(@+)?(\+|#+)?$/g,Lt=/(\*)(0+)|(#+)(0+)|(0+)/g,xt=/^(0+)$/;function Ot(e){var n={};return e.replace(Rt,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 kt(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 Nt(e){return kt(e)||{}}function It(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=pt(pt(pt({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(t))},{}));continue;case"engineering":a=pt(pt(pt({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(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(Lt,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(xt.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(St.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(St,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=pt(pt({},a),Ot(i.options[0])))}else Rt.test(i.stem)?a=pt(pt({},a),Ot(i.stem)):((n=kt(i.stem))&&(a=pt(pt({},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)),!xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=pt(pt({},a),n)))}return a}var Mt=new RegExp("^"+_t.source+"*"),Dt=new RegExp(_t.source+"*$");function Ft(e,t){return{start:e,end:t}}var Gt=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,$e=!!Object.fromEntries,jt=!!String.prototype.codePointAt,$t=!!String.prototype.trimStart,qt=!!String.prototype.trimEnd,Bt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_t=!0;try{_t="a"===(null===(At=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===At?void 0:At[0])}catch(f){_t=!1}var zt,Vt,Ht=Gt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Xt=Oe?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},Qt=$e?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},Zt=jt?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}},Yt=$t?function(e){return e.trimStart()}:function(e){return e.replace(Mt,"")},Kt=qt?function(e){return e.trimEnd()}:function(e){return e.replace(Dt,"")};function Wt(e,t){return new RegExp(e,t)}Vt=_t?(zt=Wt("([^\\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 i=Zt(e,t);if(void 0===i||rr(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 Xt.apply(void 0,n)};var Jt=(er.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},er.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(ct.UNMATCHED_CLOSING_TAG,Ft(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&tr(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:ft.pound,location:Ft(o,this.clonePosition())})}}}return{val:n,err:null}},er.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ft.literal,value:"<"+n+"/>",location:Ft(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()||!tr(this.char()))return this.error(ct.INVALID_TAG,Ft(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(ct.UNMATCHED_CLOSING_TAG,Ft(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ft.tag,value:n,children:e,location:Ft(r,this.clonePosition())},err:null}:this.error(ct.INVALID_TAG,Ft(t,this.clonePosition())))}return this.error(ct.UNCLOSED_TAG,Ft(r,this.clonePosition()))}return this.error(ct.INVALID_TAG,Ft(r,this.clonePosition()))},er.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())},er.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=Ft(r,this.clonePosition());return{val:{type:ft.literal,value:n,location:r},err:null}},er.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},er.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)},er.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))},er.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ct.EMPTY_ARGUMENT,Ft(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ft.argument,value:n,location:Ft(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()))}},er.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Vt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ft(e,this.clonePosition())}},er.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(ct.EXPECT_ARGUMENT_TYPE,Ft(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=Kt(h.val)).length)return this.error(ct.EXPECT_ARGUMENT_STYLE,Ft(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ft(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Ft(n,this.clonePosition());if(l&&Ht(null==l?void 0:l.style,"::",0)){u=Yt(l.style.slice(2));if("number"===a)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:ft.number,value:r,location:c,style:h.val},err:null};if(0===u.length)return this.error(ct.EXPECT_DATE_TIME_SKELETON,c);var f={type:ht.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Pt,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?ft.date:ft.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===a?ft.number:"date"===a?ft.date:ft.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(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,Ft(l,pt({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Ft(n,this.clonePosition());return"select"===a?{val:{type:ft.select,value:r,options:Qt(c.val),location:p},err:null}:{val:{type:ft.plural,value:r,options:Qt(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null};default:return this.error(ct.INVALID_ARGUMENT_TYPE,Ft(o,s))}},er.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},er.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(ct.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ft(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}},er.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(Ut).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(ct.INVALID_NUMBER_SKELETON,t)}return{val:{type:ht.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?It(r):{}},err:null}},er.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(ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,ct.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ft(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ft(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:Ft(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ct.MISSING_OTHER_CLAUSE,Ft(this.clonePosition(),this.clonePosition())):{val:o,err:null}},er.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=Ft(n,this.clonePosition());return i?Bt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},er.prototype.offset=function(){return this.position.offset},er.prototype.isEOF=function(){return this.offset()===this.message.length},er.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},er.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Zt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},er.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},er.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))},er.prototype.bumpIf=function(e){if(Ht(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},er.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)},er.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}},er.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},er.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},er);function er(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 tr(e){return 97<=e&&e<=122||65<=e&&e<=90}function rr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function nr(e,t){t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Jt(e,t).parse();if(r.err){e=SyntaxError(ct[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,wt(e)||vt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else bt(e)&&Et(e.style)||(gt(e)||yt(e))&&Ct(e.style)?delete e.style.location:Tt(e)&&r(e.children)})}(r.val),r.val}function ir(e,t){var r=t&&t.cache?t.cache:fr,n=t&&t.serializer?t.serializer:lr;return(t&&t.strategy?t.strategy:function(e,t){return sr(e,this,1===e.length?or:ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function or(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 ar(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 sr(e,t,r,n,i){return r.bind(t,e,n,i)}var lr=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.has=function(e){return e in this.cache},ur.prototype.get=function(e){return this.cache[e]},ur.prototype.set=function(e,t){this.cache[e]=t};var cr,fr={create:function(){return new ur}},hr={variadic:function(e,t){return sr(e,this,ar,t.cache.create(),t.serializer)},monadic:function(e,t){return sr(e,this,or,t.cache.create(),t.serializer)}};(_t=cr=cr||{}).MISSING_VALUE="MISSING_VALUE",_t.INVALID_VALUE="INVALID_VALUE",_t.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,br,gr,yr=(ut(Pr,gr=Error),Pr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Pr),wr=(ut(_r,br=yr),_r),vr=(ut(Cr,mr=yr),Cr),Tr=(ut(Er,dr=yr),Er);function Er(e,t){return dr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',cr.MISSING_VALUE,t)||this}function Cr(e,t,r){return mr.call(this,'Value for "'+e+'" must be of type '+t,cr.INVALID_VALUE,r)||this}function _r(e,t,r,n){return br.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',cr.INVALID_VALUE,n)||this}function Pr(e,t,r){e=gr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Ar(e,t,r,n,i,o,a){if(1===e.length&&mt(e[0]))return[{type:pr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(mt(c))s.push({type:pr.literal,value:c.value});else if(c.type===ft.pound)"number"==typeof o&&s.push({type:pr.literal,value:r.getNumberFormat(t).format(o)});else{var f=c.value;if(!(i&&f in i))throw new Tr(f,a);var h=i[f];if(c.type===ft.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?pr.literal:pr.object,value:h});else if(gt(c)){var p="string"==typeof c.style?n.date[c.style]:Ct(c.style)?c.style.parsedOptions:void 0;s.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(yt(c))p="string"==typeof c.style?n.time[c.style]:Ct(c.style)?c.style.parsedOptions:void 0,s.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(bt(c))(p="string"==typeof c.style?n.number[c.style]:Et(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:pr.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Tt(c)){var d=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new vr(m,"function",a);d=f(Ar(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?pr.literal:pr.object,value:e}}))}if(wt(c)){if(!(b=c.options[h]||c.options.other))throw new wr(c.value,h,Object.keys(c.options),a);s.push.apply(s,Ar(b.value,t,r,n,i))}else if(vt(c)){if(!(b=c.options["="+h])){if(!Intl.PluralRules)throw new yr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',cr.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),b=c.options[d]||c.options.other}if(!b)throw new wr(c.value,h,Object.keys(c.options),a);s.push.apply(s,Ar(b.value,t,r,n,i,h-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===pr.literal&&t.type===pr.literal?r.value+=t.value:e.push(t),e},[])}function Ur(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}}}}}(_t=pr=pr||{})[_t.literal=0]="literal",_t[_t.object=1]="object";var Sr=(Object.defineProperty(Rr,"defaultLocale",{get:function(){return Rr.memoizedDefaultLocale||(Rr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Rr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Rr.memoizedDefaultLocale=null,Rr.__parse=nr,Rr.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"}}},Rr);function Rr(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=Rr.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===pr.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,!Rr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Rr.__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=Rr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?pt(pt(pt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=pt(pt({},r[t]),n[t]||{}),e},{})):r),e},pt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,dt([void 0],t)))},{cache:Ur((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:hr.variadic}),getDateTimeFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,dt([void 0],t)))},{cache:Ur(n.dateTime),strategy:hr.variadic}),getPluralRules:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,dt([void 0],t)))},{cache:Ur(n.pluralRules),strategy:hr.variadic})}}const Lr={},xr=(t,r)=>{if(null!=r){if(r in Lr&&t in Lr[r])return Lr[r][t];var n,i,o=Xr(r);for(let e=0;e<o.length;e++){var a=(n=o[e],i=t,Nr(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 Or[e]||null}(n),i):null);if(a)return n=t,i=r,(a=a)&&(i in Lr||(Lr[i]={}),n in Lr[i]||(Lr[i][n]=a),a)}}};let Or;const kr=Ke({});function Nr(e){return e in Or}function Ir(t,...r){delete Lr[t],kr.update(e=>(e[t]=st.all([e[t]||{},...r]),e))}We([kr],([e])=>Object.keys(e)),kr.subscribe(e=>Or=e);const Mr={};function Dr(e){return Mr[e]}function Fr(e){return Xr(e).some(e=>{return null===(e=Dr(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=Xr(e).map(e=>{var t=Dr(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){Mr[e].delete(t),0===Mr[e].size&&delete Mr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Ir(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 qr={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 Br=Ke(!1);let zr;const Vr=Ke(null);function Hr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Xr(e,t=qr.fallbackLocale){e=Hr(e);return t?[...new Set([...e,...Hr(t)])]:e}Vr.subscribe(e=>{zr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Qr=Vr.set;Vr.set=t=>{if(function(e){if(null!=e){var t=Xr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Nr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=qr;let e;return"undefined"!=typeof window&&null!=zr&&r?e=window.setTimeout(()=>Br.set(!0),r):Br.set(!0),jr(t).then(()=>{Qr(t)}).finally(()=>{clearTimeout(e),Br.set(!1)})}return Qr(t)},Vr.update=e=>Qr(e(zr));const Zr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Yr=(e,t)=>{var{formats:r}=qr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kr=Zr(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=Yr("number",r)),new Intl.NumberFormat(t,e)}),Wr=Zr(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=Yr("date",r):0===Object.keys(e).length&&(e=Yr("date","short")),new Intl.DateTimeFormat(t,e)}),Jr=Zr(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=Yr("time",r):0===Object.keys(e).length&&(e=Yr("time","short")),new Intl.DateTimeFormat(t,e)}),en=Zr((e,t=zr)=>new Sr(e,t,qr.formats,{ignoreTag:qr.ignoreTag})),tn=We([Vr,kr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=zr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=xr(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 qr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Xr(n).join('", "')}".${Fr(zr)?"\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=en(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});We([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),We([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=$r(e,["locale"]);return Wr(Object.assign({locale:t},e))})(t).format(e)),We([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=$r(e,["locale"]);return Kr(Object.assign({locale:t},e))})(t).format(e)),We([Vr,kr],()=>(e,t=zr)=>xr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Qe.indexOf(e)&&(t=new ze(t),Ze[e]=t,Qe.push(e)),Ze[e]}};const rn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),nn={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize",UnqualifiedTips:"Minimum bet count not completed. Check Rules."}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Cele mai multe runde",winstakeratio:"Castig/miza",qualified:"Calificat",nowinners:"Niciun castigator inregistrat. Fii unul dintre castigatori!",Rank:"Pozitie",Player:"Nume",Points:"Puncte",Prize:"Premiu"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Rütbe",Player:"oyuncu",Points:"Puan",Prize:"Ödül"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Τάξη",Player:"Παίχτης",Points:"Πόντοι",Prize:"Βραβείο"}}};var on="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",an="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";function sn(e,t,r){const n=e.slice();return n[35]=t[r],n}function ln(e,t,r){const n=e.slice();return n[32]=t[r],n}function un(e,t,r){const n=e.slice();return n[35]=t[r],n}function cn(e,t,r){const n=e.slice();return n[32]=t[r],n}function fn(e,t,r){const n=e.slice();return n[35]=t[r],n}function hn(t){let r,n,i,o,a,s,l,u,c,e=t[11]("tournamentsTable.nowinners")+"",f=t[3],h=[];for(let e=0;e<f.length;e+=1)h[e]=gn(sn(t,f,e));return{c(){r=B("div"),n=B("table"),i=B("thead"),o=B("tr");for(let e=0;e<h.length;e+=1)h[e].c();a=V(),s=B("tbody"),l=B("tr"),u=B("td"),c=z(e),X(o,"part","LeftTableTr"),X(i,"part","LeftTableThead"),X(u,"colspan",t[8]),X(u,"part","LeftTableTd"),X(l,"part","LeftTableTr"),X(s,"part","LeftTableTbody"),X(n,"class","LeftTable"),X(n,"part","LeftTable"),X(r,"class","TournamentsTable"),X(r,"part","TournamentsTable")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o);for(let e=0;e<h.length;e+=1)h[e].m(o,null);j(n,a),j(n,s),j(s,l),j(l,u),j(u,c)},p(t,r){if(11273&r[0]){let e;for(f=t[3],e=0;e<f.length;e+=1){var n=sn(t,f,e);h[e]?h[e].p(n,r):(h[e]=gn(n),h[e].c(),h[e].m(o,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=f.length}2048&r[0]&&e!==(e=t[11]("tournamentsTable.nowinners")+"")&&Q(c,e),256&r[0]&&X(u,"colspan",t[8])},d(e){e&&q(r),T(h,e)}}}function pn(e){let r,n=e[5]&&yn(e);return{c(){n&&n.c(),r=H()},m(e,t){n&&n.m(e,t),$(e,r,t)},p(e,t){e[5]?n?n.p(e,t):(n=yn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&q(r)}}}function dn(e){let r,n=(t=e,(1==rn(t[12])?vn:wn)(e));var t;return{c(){n.c(),r=H()},m(e,t){n.m(e,t),$(e,r,t)},p(e,t){n.p(e,t)},d(e){n.d(e),e&&q(r)}}}function mn(e){let r,n,i=e[11](`tournamentsTable.${e[35]}`)+"";return{c(){r=B("p"),n=z(i),X(r,"data-sort",e[10]),X(r,"part","LeftTableP")},m(e,t){$(e,r,t),j(r,n)},p(e,t){2056&t[0]&&i!==(i=e[11](`tournamentsTable.${e[35]}`)+"")&&Q(n,i),1024&t[0]&&X(r,"data-sort",e[10])},d(e){e&&q(r)}}}function bn(r){let n,i,o,a,s=r[11](`tournamentsTable.${r[35]}`)+"";function l(){return r[21](r[35])}return{c(){n=B("button"),i=z(s),X(n,"data-sort",r[10]),X(n,"part","LeftTableButton")},m(e,t){$(e,n,t),j(n,i),o||(a=E(n,"click",l),o=!0)},p(e,t){r=e,2056&t[0]&&s!==(s=r[11](`tournamentsTable.${r[35]}`)+"")&&Q(i,s),1024&t[0]&&X(n,"data-sort",r[10])},d(e){e&&q(n),o=!1,a()}}}function gn(e){let r,n;function i(e){return"true"==e[0]?bn:mn}let o=i(e),a=o(e);return{c(){r=B("th"),a.c(),n=V(),X(r,"part","LeftTableTh")},m(e,t){$(e,r,t),a.m(r,null),j(r,n)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r,n)))},d(e){e&&q(r),a.d()}}}function yn(e){let r,n,i,o,a=e[11]("tournamentsTable.nowinners")+"";return{c(){r=B("div"),n=B("div"),i=B("p"),o=z(a),X(n,"class","TableUser"),X(n,"part","TableUser"),X(r,"class","TableContent"),X(r,"part","TableContent")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o)},p(e,t){2048&t[0]&&a!==(a=e[11]("tournamentsTable.nowinners")+"")&&Q(o,a)},d(e){e&&q(r)}}}function wn(r){let n,i,o,a,s,l,u,c,f,h,p,d,m=r[3],b=[];for(let e=0;e<m.length;e+=1)b[e]=Cn(un(r,m,e));let g="true"==r[1]&&r[4]&&_n(r),y=r[5]&&Sn(r);function e(e){return e[5]?In:Nn}let w=e(r),v=w(r);return{c(){n=B("div"),i=B("table"),o=B("thead"),a=B("tr");for(let e=0;e<b.length;e+=1)b[e].c();s=V(),l=B("tbody"),g&&g.c(),u=V(),y&&y.c(),c=V(),f=B("div"),h=B("div"),v.c(),X(a,"part","LeftTableTr"),X(o,"part","LeftTableThead"),X(l,"part","LeftTableTbody"),X(i,"class","LeftTable"),X(i,"part","LeftTable"),X(h,"class","CollapseButton"),X(h,"part","CollapseButton"),X(f,"class","RightButton"),X(f,"part","RightButton"),X(n,"class","TournamentsTable"),X(n,"part","TournamentsTable")},m(e,t){$(e,n,t),j(n,i),j(i,o),j(o,a);for(let e=0;e<b.length;e+=1)b[e].m(a,null);j(i,s),j(i,l),g&&g.m(l,null),j(l,u),y&&y.m(l,null),j(n,c),j(n,f),j(f,h),v.m(h,null),p||(d=E(h,"click",r[20]),p=!0)},p(t,r){if(11273&r[0]){let e;for(m=t[3],e=0;e<m.length;e+=1){var n=un(t,m,e);b[e]?b[e].p(n,r):(b[e]=Cn(n),b[e].c(),b[e].m(a,null))}for(;e<b.length;e+=1)b[e].d(1);b.length=m.length}"true"==t[1]&&t[4]?g?g.p(t,r):(g=_n(t),g.c(),g.m(l,u)):g&&(g.d(1),g=null),t[5]?y?y.p(t,r):(y=Sn(t),y.c(),y.m(l,null)):y&&(y.d(1),y=null),w!==(w=e(t))&&(v.d(1),v=w(t),v&&(v.c(),v.m(h,null)))},d(e){e&&q(n),T(b,e),g&&g.d(),y&&y.d(),v.d(),p=!1,d()}}}function vn(t){let n,i,r,o,a=t[3],s=[];for(let e=0;e<a.length;e+=1)s[e]=Fn(fn(t,a,e));let l="true"==t[1]&&t[4]&&Gn(t),u=t[5]&&Bn(t);return{c(){n=B("div"),i=B("div");for(let e=0;e<s.length;e+=1)s[e].c();r=V(),l&&l.c(),o=V(),u&&u.c(),X(i,"class","TableUser TableHeadRow"),X(i,"part","TableUser TableHeadRow"),X(n,"class","TableContent"),X(n,"part","TableContent")},m(e,t){$(e,n,t),j(n,i);for(let e=0;e<s.length;e+=1)s[e].m(i,null);j(n,r),l&&l.m(n,null),j(n,o),u&&u.m(n,null)},p(t,r){if(11273&r[0]){let e;for(a=t[3],e=0;e<a.length;e+=1){const o=fn(t,a,e);s[e]?s[e].p(o,r):(s[e]=Fn(o),s[e].c(),s[e].m(i,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}"true"==t[1]&&t[4]?l?l.p(t,r):(l=Gn(t),l.c(),l.m(n,o)):l&&(l.d(1),l=null),t[5]?u?u.p(t,r):(u=Bn(t),u.c(),u.m(n,null)):u&&(u.d(1),u=null)},d(e){e&&q(n),T(s,e),l&&l.d(),u&&u.d()}}}function Tn(e){let r,n,i=e[11](`tournamentsTable.${e[35]}`)+"";return{c(){r=B("p"),n=z(i),X(r,"data-sort",e[10]),X(r,"part","LeftTableP")},m(e,t){$(e,r,t),j(r,n)},p(e,t){2056&t[0]&&i!==(i=e[11](`tournamentsTable.${e[35]}`)+"")&&Q(n,i),1024&t[0]&&X(r,"data-sort",e[10])},d(e){e&&q(r)}}}function En(r){let n,i,o,a,s=r[11](`tournamentsTable.${r[35]}`)+"";function l(){return r[19](r[35])}return{c(){n=B("button"),i=z(s),X(n,"data-sort",r[10]),X(n,"part","LeftTableButton")},m(e,t){$(e,n,t),j(n,i),o||(a=E(n,"click",l),o=!0)},p(e,t){r=e,2056&t[0]&&s!==(s=r[11](`tournamentsTable.${r[35]}`)+"")&&Q(i,s),1024&t[0]&&X(n,"data-sort",r[10])},d(e){e&&q(n),o=!1,a()}}}function Cn(e){let r,n;function i(e){return"true"==e[0]?En:Tn}let o=i(e),a=o(e);return{c(){r=B("th"),a.c(),n=V(),X(r,"part","LeftTableTh")},m(e,t){$(e,r,t),a.m(r,null),j(r,n)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r,n)))},d(e){e&&q(r),a.d()}}}function _n(e){let r,n,i,o,a,s,l,u,c,t,f,h,p,d,m,b,g,y,w,v,T,E,C,_,P,A,U,S,R,L,x,O,k=e[4].Rank+"",N=e[4].Player+"",I=e[4].Points+"";function M(e){return e[4].Prize?An:Pn}let D=M(e),F=D(e),G=e[4].Unqualified&&Un(e);return{c(){r=B("tr"),n=B("td"),i=B("strong"),o=B("em"),a=z("#"),s=z(k),l=V(),u=B("div"),c=B("img"),h=V(),p=B("img"),y=V(),w=B("td"),v=z(N),T=V(),E=B("td"),C=B("div"),_=z(I),P=V(),A=B("td"),F.c(),x=V(),G&&G.c(),O=H(),c.src!==(t=on)&&X(c,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(c,"part","Rank_Arror_UP"),X(c,"class",f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),p.src!==(d=an)&&X(p,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(p,"part","Rank_Arror_Down"),X(p,"class",m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden")),X(u,"class",b="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(u,"part",g="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(i,"class","RankCol"),X(i,"part","RankCol"),X(n,"part","LeftTableTd"),X(w,"part","LeftTableTd"),X(C,"class","Flex"),X(C,"part","Flex"),X(E,"part","LeftTableTd"),X(A,"class",U=e[4].Unqualified?"":"Qualified"),X(A,"part",S=e[4].Unqualified?"":"Qualified"),X(r,"class",R="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":"")),X(r,"part",L="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(o,a),j(o,s),j(i,l),j(i,u),j(u,c),j(u,h),j(u,p),j(r,y),j(r,w),j(w,v),j(r,T),j(r,E),j(E,C),j(C,_),j(r,P),j(r,A),F.m(A,null),$(e,x,t),G&&G.m(e,t),$(e,O,t)},p(e,t){16&t[0]&&k!==(k=e[4].Rank+"")&&Q(s,k),192&t[0]&&f!==(f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&X(c,"class",f),192&t[0]&&m!==(m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&X(p,"class",m),64&t[0]&&b!==(b="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"class",b),64&t[0]&&g!==(g="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"part",g),16&t[0]&&N!==(N=e[4].Player+"")&&Q(v,N),16&t[0]&&I!==(I=e[4].Points+"")&&Q(_,I),D===(D=M(e))&&F?F.p(e,t):(F.d(1),F=D(e),F&&(F.c(),F.m(A,null))),16&t[0]&&U!==(U=e[4].Unqualified?"":"Qualified")&&X(A,"class",U),16&t[0]&&S!==(S=e[4].Unqualified?"":"Qualified")&&X(A,"part",S),16&t[0]&&R!==(R="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"class",R),16&t[0]&&L!==(L="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"part",L),e[4].Unqualified?G?G.p(e,t):(G=Un(e),G.c(),G.m(O.parentNode,O)):G&&(G.d(1),G=null)},d(e){e&&q(r),F.d(),e&&q(x),G&&G.d(e),e&&q(O)}}}function Pn(e){let r;return{c(){r=z("-")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function An(e){let r,n=e[4].Prize+"";return{c(){r=z(n)},m(e,t){$(e,r,t)},p(e,t){16&t[0]&&n!==(n=e[4].Prize+"")&&Q(r,n)},d(e){e&&q(r)}}}function Un(e){let r,n,i,o,a,s,l=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("tr"),n=B("td"),i=t("svg"),o=t("path"),a=V(),s=z(l),X(o,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(i,"class","ExclamationMark"),X(i,"part","ExclamationMark"),X(i,"width","10"),X(i,"height","10"),X(i,"viewBox","0 0 10 10"),X(i,"fill","none"),X(i,"xmlns","http://www.w3.org/2000/svg"),X(n,"colspan",e[8]),X(n,"part","LeftTableTd"),X(r,"class","TooltipsRow"),X(r,"part","TooltipsRow")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(n,a),j(n,s)},p(e,t){2048&t[0]&&l!==(l=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,l),256&t[0]&&X(n,"colspan",e[8])},d(e){e&&q(r)}}}function Sn(t){let i,o=t[9],a=[];for(let e=0;e<o.length;e+=1)a[e]=kn(ln(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();i=H()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);$(t,i,r)},p(t,r){if(3008&r[0]){let e;for(o=t[9],e=0;e<o.length;e+=1){var n=ln(t,o,e);a[e]?a[e].p(n,r):(a[e]=kn(n),a[e].c(),a[e].m(i.parentNode,i))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){T(a,e),e&&q(i)}}}function Rn(e){let r,t,n,i,o,a,s;return{c(){r=B("img"),i=V(),o=B("img"),r.src!==(t=on)&&X(r,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(r,"part","Rank_Arror_UP"),X(r,"class",n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),o.src!==(a=an)&&X(o,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(o,"part","Rank_Arror_Down"),X(o,"class",s="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))},m(e,t){$(e,r,t),$(e,i,t),$(e,o,t)},p(e,t){192&t[0]&&n!==(n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&X(r,"class",n),192&t[0]&&s!==(s="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&X(o,"class",s)},d(e){e&&q(r),e&&q(i),e&&q(o)}}}function Ln(e){let r;return{c(){r=z("-")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function xn(e){let r,n=e[32].Prize+"";return{c(){r=z(n)},m(e,t){$(e,r,t)},p(e,t){512&t[0]&&n!==(n=e[32].Prize+"")&&Q(r,n)},d(e){e&&q(r)}}}function On(e){let r,n,i,o,a,s,l,u=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("tr"),n=B("td"),i=t("svg"),o=t("path"),a=V(),s=z(u),l=V(),X(o,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(i,"class","ExclamationMark"),X(i,"part","ExclamationMark"),X(i,"width","10"),X(i,"height","10"),X(i,"viewBox","0 0 10 10"),X(i,"fill","none"),X(i,"xmlns","http://www.w3.org/2000/svg"),X(n,"colspan",e[8]),X(n,"part","LeftTableTd"),X(r,"class","TooltipsRow"),X(r,"part","TooltipsRow")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(n,a),j(n,s),j(r,l)},p(e,t){2048&t[0]&&u!==(u=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,u),256&t[0]&&X(n,"colspan",e[8])},d(e){e&&q(r)}}}function kn(e){let r,n,i,o,a,s,l,u,c,f,h,p,d,m,b,g,y,w,v,T,E,C,_,P,A,U=e[32].Rank+"",S=e[32].Player+"",R=e[32].Points+"",L=e[32].isCurrentUser&&Rn(e);function x(e){return e[32].Prize?xn:Ln}let O=x(e),k=O(e),N=e[32].Unqualified&&e[32].isCurrentUser&&On(e);return{c(){r=B("tr"),n=B("td"),i=B("strong"),o=B("em"),a=z("#"),s=z(U),l=V(),u=B("div"),L&&L.c(),h=V(),p=B("td"),d=z(S),m=V(),b=B("td"),g=B("div"),y=z(R),w=V(),v=B("td"),k.c(),P=V(),N&&N.c(),A=H(),X(u,"class",c="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(u,"part",f="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(i,"class","RankCol"),X(i,"part","RankCol"),X(n,"part","LeftTableTd"),X(p,"part","LeftTableTd"),X(g,"class","Flex ScoreUp"),X(g,"part","Flex ScoreUp"),X(b,"part","LeftTableTd"),X(v,"class",T=e[32].Unqualified?"":"Qualified"),X(v,"part",E=e[32].Unqualified?"":"Qualified"),X(r,"class",C=(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":"")),X(r,"part",_=(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(o,a),j(o,s),j(o,l),j(o,u),L&&L.m(u,null),j(r,h),j(r,p),j(p,d),j(r,m),j(r,b),j(b,g),j(g,y),j(r,w),j(r,v),k.m(v,null),$(e,P,t),N&&N.m(e,t),$(e,A,t)},p(e,t){512&t[0]&&U!==(U=e[32].Rank+"")&&Q(s,U),e[32].isCurrentUser?L?L.p(e,t):(L=Rn(e),L.c(),L.m(u,null)):L&&(L.d(1),L=null),64&t[0]&&c!==(c="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"class",c),64&t[0]&&f!==(f="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"part",f),512&t[0]&&S!==(S=e[32].Player+"")&&Q(d,S),512&t[0]&&R!==(R=e[32].Points+"")&&Q(y,R),O===(O=x(e))&&k?k.p(e,t):(k.d(1),k=O(e),k&&(k.c(),k.m(v,null))),512&t[0]&&T!==(T=e[32].Unqualified?"":"Qualified")&&X(v,"class",T),512&t[0]&&E!==(E=e[32].Unqualified?"":"Qualified")&&X(v,"part",E),512&t[0]&&C!==(C=(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"class",C),512&t[0]&&_!==(_=(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"part",_),e[32].Unqualified&&e[32].isCurrentUser?N?N.p(e,t):(N=On(e),N.c(),N.m(A.parentNode,A)):N&&(N.d(1),N=null)},d(e){e&&q(r),L&&L.d(),k.d(),e&&q(P),N&&N.d(e),e&&q(A)}}}function Nn(e){let r,n;return{c(){r=t("svg"),n=t("path"),X(n,"d","M6 9l6 6 6-6"),X(r,"xmlns","http://www.w3.org/2000/svg"),X(r,"width","24"),X(r,"height","24"),X(r,"viewBox","0 0 24 24"),X(r,"fill","none"),X(r,"stroke","#ffffff"),X(r,"stroke-width","2"),X(r,"stroke-linecap","round"),X(r,"stroke-linejoin","round")},m(e,t){$(e,r,t),j(r,n)},d(e){e&&q(r)}}}function In(e){let r,n;return{c(){r=t("svg"),n=t("path"),X(n,"d","M18 15l-6-6-6 6"),X(r,"xmlns","http://www.w3.org/2000/svg"),X(r,"width","24"),X(r,"height","24"),X(r,"viewBox","0 0 24 24"),X(r,"fill","none"),X(r,"stroke","#ffffff"),X(r,"stroke-width","2"),X(r,"stroke-linecap","round"),X(r,"stroke-linejoin","round")},m(e,t){$(e,r,t),j(r,n)},d(e){e&&q(r)}}}function Mn(e){let r,n,i=e[11](`tournamentsTable.${e[35]}`)+"";return{c(){r=B("p"),n=z(i),X(r,"data-sort",e[10])},m(e,t){$(e,r,t),j(r,n)},p(e,t){2056&t[0]&&i!==(i=e[11](`tournamentsTable.${e[35]}`)+"")&&Q(n,i),1024&t[0]&&X(r,"data-sort",e[10])},d(e){e&&q(r)}}}function Dn(r){let n,i,o,a,s=r[11](`tournamentsTable.${r[35]}`)+"";function l(){return r[18](r[35])}return{c(){n=B("button"),i=z(s),X(n,"data-sort",r[10])},m(e,t){$(e,n,t),j(n,i),o||(a=E(n,"click",l),o=!0)},p(e,t){r=e,2056&t[0]&&s!==(s=r[11](`tournamentsTable.${r[35]}`)+"")&&Q(i,s),1024&t[0]&&X(n,"data-sort",r[10])},d(e){e&&q(n),o=!1,a()}}}function Fn(e){let r,n,i,o;function a(e){return"true"==e[0]?Dn:Mn}let s=a(e),l=s(e);return{c(){r=B("div"),l.c(),n=V(),X(r,"class",i="TableCell Table"+e[35]),X(r,"part",o="TableCell Table"+e[35])},m(e,t){$(e,r,t),l.m(r,null),j(r,n)},p(e,t){s===(s=a(e))&&l?l.p(e,t):(l.d(1),l=s(e),l&&(l.c(),l.m(r,n))),8&t[0]&&i!==(i="TableCell Table"+e[35])&&X(r,"class",i),8&t[0]&&o!==(o="TableCell Table"+e[35])&&X(r,"part",o)},d(e){e&&q(r),l.d()}}}function Gn(e){let r,n,i,o,a,s,l,u,c,f,h,p,d,m,b,g,y=e[4].Rank+"",w=e[4].Player+"",v=e[4].Points+"";function T(e){return e[4].Prize?$n:jn}let E=T(e),C=E(e),_=e[4].Unqualified&&qn(e);return{c(){r=B("div"),n=B("div"),i=z(y),s=V(),l=B("div"),u=z(w),c=V(),f=B("div"),h=z(v),p=V(),C.c(),b=V(),_&&_.c(),g=H(),X(n,"class",o="TableCell TableRank "+(e[4].Prize?"Qualified":"")),X(n,"part",a="TableCell TableRank "+(e[4].Prize?"Qualified":"")),X(l,"class","TableCell TablePlayer"),X(l,"part","TableCell TablePlayer"),X(f,"class","TableCell TablePoints"),X(f,"part","TableCell TablePoints"),X(r,"class",d="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":"")),X(r,"part",m="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,s),j(r,l),j(l,u),j(r,c),j(r,f),j(f,h),j(r,p),C.m(r,null),$(e,b,t),_&&_.m(e,t),$(e,g,t)},p(e,t){16&t[0]&&y!==(y=e[4].Rank+"")&&Q(i,y),16&t[0]&&o!==(o="TableCell TableRank "+(e[4].Prize?"Qualified":""))&&X(n,"class",o),16&t[0]&&a!==(a="TableCell TableRank "+(e[4].Prize?"Qualified":""))&&X(n,"part",a),16&t[0]&&w!==(w=e[4].Player+"")&&Q(u,w),16&t[0]&&v!==(v=e[4].Points+"")&&Q(h,v),E===(E=T(e))&&C?C.p(e,t):(C.d(1),C=E(e),C&&(C.c(),C.m(r,null))),16&t[0]&&d!==(d="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"class",d),16&t[0]&&m!==(m="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"part",m),e[4].Unqualified?_?_.p(e,t):(_=qn(e),_.c(),_.m(g.parentNode,g)):_&&(_.d(1),_=null)},d(e){e&&q(r),C.d(),e&&q(b),_&&_.d(e),e&&q(g)}}}function jn(e){let r;return{c(){r=B("div"),r.textContent="-",X(r,"class","TableCell TablePrize"),X(r,"part","TableCell TablePrize")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function $n(e){let r,n,i,o,a=e[4].Prize+"";return{c(){r=B("div"),n=z(a),X(r,"class",i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified")),X(r,"part",o="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))},m(e,t){$(e,r,t),j(r,n)},p(e,t){16&t[0]&&a!==(a=e[4].Prize+"")&&Q(n,a),16&t[0]&&i!==(i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&X(r,"class",i),16&t[0]&&o!==(o="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&X(r,"part",o)},d(e){e&&q(r)}}}function qn(e){let r,n,i,o,a,s,l=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("div"),n=t("svg"),i=t("path"),o=V(),a=B("em"),s=z(l),X(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(n,"class","ExclamationMark"),X(n,"part","ExclamationMark"),X(n,"width","10"),X(n,"height","10"),X(n,"viewBox","0 0 10 10"),X(n,"fill","none"),X(n,"xmlns","http://www.w3.org/2000/svg"),X(r,"class","TableUserTooltips"),X(r,"part","TableUserTooltips")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,o),j(r,a),j(a,s)},p(e,t){2048&t[0]&&l!==(l=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,l)},d(e){e&&q(r)}}}function Bn(t){let i,o=t[9],a=[];for(let e=0;e<o.length;e+=1)a[e]=Xn(cn(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();i=H()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);$(t,i,r)},p(t,r){if(2560&r[0]){let e;for(o=t[9],e=0;e<o.length;e+=1){var n=cn(t,o,e);a[e]?a[e].p(n,r):(a[e]=Xn(n),a[e].c(),a[e].m(i.parentNode,i))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){T(a,e),e&&q(i)}}}function zn(e){let r;return{c(){r=B("div"),r.textContent="-",X(r,"class","TableCell TablePrize"),X(r,"part","TableCell TablePrize")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function Vn(e){let r,n,i,o,a=e[32].Prize+"";return{c(){r=B("div"),n=z(a),X(r,"class",i="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified")),X(r,"part",o="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified"))},m(e,t){$(e,r,t),j(r,n)},p(e,t){512&t[0]&&a!==(a=e[32].Prize+"")&&Q(n,a),512&t[0]&&i!==(i="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified"))&&X(r,"class",i),512&t[0]&&o!==(o="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified"))&&X(r,"part",o)},d(e){e&&q(r)}}}function Hn(e){let r,n,i,o,a,s,l,u,c,f=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("div"),n=t("svg"),i=t("path"),o=V(),a=B("em"),s=z(f),l=V(),X(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(n,"class","ExclamationMark"),X(n,"part","ExclamationMark"),X(n,"width","10"),X(n,"height","10"),X(n,"viewBox","0 0 10 10"),X(n,"fill","none"),X(n,"xmlns","http://www.w3.org/2000/svg"),X(r,"class",u="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":"")),X(r,"part",c="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,o),j(r,a),j(a,s),j(r,l)},p(e,t){2048&t[0]&&f!==(f=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,f),512&t[0]&&u!==(u="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"class",u),512&t[0]&&c!==(c="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"part",c)},d(e){e&&q(r)}}}function Xn(e){let r,n,i,o,a,s,l,u,c,f,h,p,d,m,b,g,y=e[32].Rank+"",w=e[32].Player+"",v=e[32].Points+"";function T(e){return e[32].Prize?Vn:zn}let E=T(e),C=E(e),_=e[32].isCurrentUser&&e[32].Unqualified&&Hn(e);return{c(){r=B("div"),n=B("div"),i=z(y),s=V(),l=B("div"),u=z(w),c=V(),f=B("div"),h=z(v),p=V(),C.c(),b=V(),_&&_.c(),g=H(),X(n,"class",o="TableCell TableRank "+(e[32].Prize?"Qualified":"")),X(n,"part",a="TableCell TableRank "+(e[32].Prize?"Qualified":"")),X(l,"class","TableCell TablePlayer"),X(l,"part","TableCell TablePlayer"),X(f,"class","TableCell TablePoints"),X(f,"part","TableCell TablePoints"),X(r,"class",d="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":"")),X(r,"part",m="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,s),j(r,l),j(l,u),j(r,c),j(r,f),j(f,h),j(r,p),C.m(r,null),$(e,b,t),_&&_.m(e,t),$(e,g,t)},p(e,t){512&t[0]&&y!==(y=e[32].Rank+"")&&Q(i,y),512&t[0]&&o!==(o="TableCell TableRank "+(e[32].Prize?"Qualified":""))&&X(n,"class",o),512&t[0]&&a!==(a="TableCell TableRank "+(e[32].Prize?"Qualified":""))&&X(n,"part",a),512&t[0]&&w!==(w=e[32].Player+"")&&Q(u,w),512&t[0]&&v!==(v=e[32].Points+"")&&Q(h,v),E===(E=T(e))&&C?C.p(e,t):(C.d(1),C=E(e),C&&(C.c(),C.m(r,null))),512&t[0]&&d!==(d="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":""))&&X(r,"class",d),512&t[0]&&m!==(m="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":""))&&X(r,"part",m),e[32].isCurrentUser&&e[32].Unqualified?_?_.p(e,t):(_=Hn(e),_.c(),_.m(g.parentNode,g)):_&&(_.d(1),_=null)},d(e){e&&q(r),C.d(),e&&q(b),_&&_.d(e),e&&q(g)}}}function Qn(e){let t,r;function n(e){return 0<e[2].length||e[4]?dn:(null==t&&(t=!(1!=rn(e[12]))),t?pn:hn)}let i=n(e),o=i(e);return{c(){o.c(),r=H(),this.c=f},m(e,t){o.m(e,t),$(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)))},i:f,o:f,d(e){o.d(e),e&&q(r)}}}function Zn(e,t,i){let r,n,o;var a=tn;e.$$.on_destroy.push(U(a,e=>i(11,o=e)));let s,l,{sortable:u=!1}=t,{firstrow:c=!1}=t,{lang:f="en"}=t,h=[],p=[],d=null,m=null,b=null,g=!0,y=window.navigator.userAgent,w=!1,v=!1;Object.keys(nn).forEach(e=>{Ir(e,nn[e])});let T,E;const C=e=>{s?(i(6,w=s!=e),i(7,v=s>e),w&&(T=(new Date).getTime(),setTimeout(function(){E=(new Date).getTime(),4<(E-T)/1e3&&i(6,w=!1),s=e},5e3))):s=e},_=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(i(2,p=t.data.tableData),i(9,r=p)),t.data&&"CasinoTableColumns"===t.data.type&&(i(3,h=t.data.tableColumns),i(8,l=h.length||4)),t.data&&"CasinoTableCurrentUserData"===t.data.type&&p&&(p.forEach(e=>{e.userID==t.data.tableData.userID&&(e.isCurrentUser=!0,s=s||t.data.tableData.Rank,b?(C(t.data.tableData.Rank),i(4,b=null)):C(t.data.tableData.Rank))}),i(9,r=p)),c&&t.data&&"CasinoTableFirstRowData"===t.data.type){var e=t.data.tableData;if(!b)return i(4,b=t.data.tableData),void(s=b.Rank);b&&b.UserID==e.UserID&&(C(e.Rank),i(4,b=t.data.tableData))}if(t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let n=t.data.tableData;p instanceof Array&&p.forEach(function(e,t){var r,e=(r=e.Rank,n.find(e=>e.Rank==r));e&&i(2,p[t]=e,p)})}},P=e=>{var t=e===d,r="ASC"===m,n=t&&!r;i(16,d=n?null:e),i(17,m=n?null:t&&r?"DESC":"ASC")},A=()=>{i(5,g=!g)};return t=()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}),function(){if(!S)throw new Error("Function called outside component initialization");return S}().$$.on_mount.push(t),e.$$set=e=>{"sortable"in e&&i(0,u=e.sortable),"firstrow"in e&&i(1,c=e.firstrow),"lang"in e&&i(15,f=e.lang)},e.$$.update=()=>{196612&e.$$.dirty[0]&&i(9,r=d&&m?(()=>{let e=[];if(p&&(e=[...p]),!p.length)return p;var t=typeof p[0][d.toLowerCase()];return e.sort((e=>{const r=d.toLowerCase();return"string"==e?(e,t)=>e[r].localeCompare(t[r]):"number"==e||"object"==e?(e,t)=>e[r]-t[r]:void 0})(t)),"ASC"===m?e:e.reverse()})():[...p]),196608&e.$$.dirty[0]&&i(10,n=null===d?m:null)},[u,c,p,h,b,g,w,v,l,r,n,o,y,P,A,f,d,m,e=>P(e),e=>P(e),()=>A(),e=>P(e)]}class Yn 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'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:#fff;display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.TableUser.UnqualifiedRow{border-bottom:0}.TableUserTooltips{background:var(--emfe-w-table-currentuser-bg, #533a34);width:100%;height:18px;text-align:center;font-size:0.8rem}.TooltipsRow{border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-top:0}.TooltipsRow .ExclamationMark{fill:var(--emfe-w-color-exclamation, #fecf00)}.TooltipsRow td{padding:0 0 10px 0;font-size:12px;color:var(--emfe-w-color-tooltips, #fecf00)}.TableCell{padding:10px;flex:2;text-align:center}.TableRank{flex:1 50px}.TablePlayer{flex:5}.TablePrize{flex:5}.Qualified{color:var(--emfe-w-highlight, #debb05)}.ExclamationMark{vertical-align:text-top;width:14px;height:14px;fill:var(--emfe-w-color-exclamation-mobile, #b5b5b5)}.TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%;border-collapse:collapse}.RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid #1B9800}.FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.FirstRow.UnqualifiedRow td{border-bottom:0}.FirstRow .RankCol{position:relative;width:max-content;display:inline}.FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.Show{display:inline-flex}.Hidden{display:none}.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0;color:var(--emfe-w-color-white, #FFFFFF)}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:var(--emfe-w-color-white, #FFFFFF);font-size:0.9rem;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}.flex{display:flex;align-items:center}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</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},Zn,Qn,r,{sortable:0,firstrow:1,lang:15},[-1,-1]),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(e){this.$set({sortable:e}),C()}get firstrow(){return this.$$.ctx[1]}set firstrow(e){this.$set({firstrow:e}),C()}get lang(){return this.$$.ctx[15]}set lang(e){this.$set({lang:e}),C()}}return customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",Yn),Yn});
|
|
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 h(e){return e()}function p(){return Object.create(null)}function d(e){e.forEach(h)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function U(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function j(e,t){e.appendChild(t)}function $(e,t,r){e.insertBefore(t,r||null)}function q(e){e.parentNode.removeChild(e)}function v(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function B(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function V(){return z(" ")}function H(){return z("")}function E(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function X(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Q(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let R;function b(e){R=e}const g=[],e=[],n=[],i=[],y=Promise.resolve();let w=!1;function T(e){n.push(e)}let o=!1;const a=new Set;function C(){if(!o){o=!0;do{for(let e=0;e<g.length;e+=1){var t=g[e];b(t),function(e){{var t;null!==e.fragment&&(e.update(),d(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T))}}(t.$$)}for(b(null),g.length=0;e.length;)e.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];a.has(r)||(a.add(r),r())}}while(n.length=0,g.length);for(;i.length;)i.pop()();w=!1,o=!1,a.clear()}}const _=new Set;function s(n,e,t,r,i,o,a=[-1]){var s,l=R;b(n);const u=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),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]&&(g.push(e),w||(w=!0,y.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,d(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(q)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(_.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||T(()=>{var e=o.map(h).filter(m);a?a.push(...e):d(e),t.$$.on_mount=[]}),s.forEach(T)}(n,e.target,e.anchor,e.customElement),C()}b(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(d(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,A="URLSearchParams"in P,L="Symbol"in P&&"iterator"in Symbol,S="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(e){return!1}}(),x="FormData"in P,k="ArrayBuffer"in P;function O(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 N(e){return e="string"!=typeof e?String(e):e}function I(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return L&&(e[Symbol.iterator]=function(){return e}),e}function M(t){this.map={},t instanceof M?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 D(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function F(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function G(e){var t=new FileReader,r=F(t);return t.readAsArrayBuffer(e),r}function Z(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:S&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:x&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:A&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():k&&S&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Z(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):k&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=Z(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):A&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S&&(this.blob=function(){var e=D(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?D(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(G)}),this.text=function(){var e,t,r=D(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=F(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)},x&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}k&&(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))}),M.prototype.append=function(e,t){e=O(e),t=N(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},M.prototype.delete=function(e){delete this.map[O(e)]},M.prototype.get=function(e){return e=O(e),this.has(e)?this.map[e]:null},M.prototype.has=function(e){return this.map.hasOwnProperty(O(e))},M.prototype.set=function(e,t){this.map[O(e)]=N(t)},M.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},M.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),I(r)},M.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),I(t)},M.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),I(r)},L&&(M.prototype[Symbol.iterator]=M.prototype.entries);var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(e,t){if(!(this instanceof W))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 W){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new M(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 M(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<K.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 J(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 ee(e,t){if(!(this instanceof ee))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 M(t.headers),this.url=t.url||"",this._initBody(e)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})},Y.call(W.prototype),Y.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new M(this.headers),url:this.url})},ee.error=function(){var e=new ee(null,{status:0,statusText:""});return e.type="error",e};var te=[301,302,303,307,308];ee.redirect=function(e,t){if(-1===te.indexOf(t))throw new RangeError("Invalid status code");return new ee(null,{status:t,headers:{location:e}})};var re=P.DOMException;try{new re}catch(f){(re=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),re.prototype.constructor=re}function ne(n,a){return new Promise(function(i,e){var t=new W(n,a);if(t.signal&&t.signal.aborted)return e(new re("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 M,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 ee(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 re("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&&(S?o.responseType="blob":k&&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 M?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,N(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)})}ne.polyfill=!0,P.fetch||(P.fetch=ne,P.Headers=M,P.Request=W,P.Response=ee),self.fetch.bind(self);var ie=function(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ae(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 se(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 le(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function ue(e){return"function"==typeof e}function ce(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 fe=ce(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 he(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var pe=(me.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=ae(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(ue(o))try{o()}catch(e){i=e instanceof fe?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=ae(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{ge(c)}catch(e){i=null!=i?i:[],e instanceof fe?i=le(le([],se(i)),se(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 fe(i)}},me.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ge(e);else{if(e instanceof me){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},me.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},me.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},me.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&he(t,e)},me.prototype.remove=function(e){var t=this._teardowns;t&&he(t,e),e instanceof me&&e._removeParent(this)},me.EMPTY=((Gt=new me).closed=!0,Gt),me),de=pe.EMPTY;function me(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function be(e){return e instanceof pe||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function ge(e){ue(e)?e():e.unsubscribe()}var ye=void 0,we=!1,Te=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,le([],se(e)))};function ve(){}function Ee(e){e()}var Ce,_e,Pe=(oe(Re,_e=pe),Re.create=function(e,t,r){return new Ae(e,t,r)},Re.prototype.next=function(e){this.isStopped||this._next(e)},Re.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Re.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Re.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_e.prototype.unsubscribe.call(this),this.destination=null)},Re.prototype._next=function(e){this.destination.next(e)},Re.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Re.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Re),Ae=(oe(Ue,Ce=Pe),Ue);function Ue(e,t,r){var n,i,o=Ce.call(this)||this;return ue(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&we?(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?Le(i):ve,error:Le(null!=t?t:Se),complete:r?Le(r):ve},o}function Re(e){var t=_e.call(this)||this;return t.isStopped=!1,e?be(t.destination=e)&&e.add(t):t.destination=xe,t}function Le(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,le([],se(e)))}catch(e){t=e,Te(function(){throw t})}}}function Se(e){throw e}var xe={closed:!0,next:ve,error:Se,complete:ve},ke="function"==typeof Symbol&&Symbol.observable||"@@observable";function Oe(e){return e}var Ne=(Ie.prototype.lift=function(e){var t=new Ie;return t.source=this,t.operator=e,t},Ie.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Pe||n&&ue(n.next)&&ue(n.error)&&ue(n.complete)&&be(n)?e:new Ae(e,t,r);return Ee(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ie.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ie.prototype.forEach=function(n,e){var i=this;return new(e=Me(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ie.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ie.prototype[ke]=function(){return this},Ie.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Oe:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ie.prototype.toPromise=function(e){var n=this;return new(e=Me(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ie.create=function(e){return new Ie(e)},Ie);function Ie(e){e&&(this._subscribe=e)}function Me(e){return null!==(e=null!=e?e:ye)&&void 0!==e?e:Promise}var De,Fe,Ge,je=ce(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$e=(oe(Xe,Ge=Ne),Xe.prototype.lift=function(e){var t=new qe(this,this);return t.operator=e,t},Xe.prototype._throwIfClosed=function(){if(this.closed)throw new je},Xe.prototype.next=function(o){var a=this;Ee(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=ae(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}}}})},Xe.prototype.error=function(t){var r=this;Ee(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)}})},Xe.prototype.complete=function(){var t=this;Ee(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Xe.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Xe.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Xe.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ge.prototype._trySubscribe.call(this,e)},Xe.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Xe.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?de:(n.push(e),new pe(function(){return he(n,e)}))},Xe.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Xe.prototype.asObservable=function(){var e=new Ne;return e.source=this,e},Xe.create=function(e,t){return new qe(e,t)},Xe),qe=(oe(He,Fe=$e),He.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)},He.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)},He.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)},He.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:de},He),Be={now:function(){return(Be.delegate||Date).now()},delegate:void 0},ze=(oe(Ve,De=$e),Ve.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(),De.prototype.next.call(this,e)},Ve.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Ve.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)}},Ve);function Ve(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Be);var n=De.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 He(e,t){var r=Fe.call(this)||this;return r.destination=e,r.source=t,r}function Xe(){var e=Ge.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Qe=[],Ze={};const Ye=[];function Ke(n,i=f){let o;const a=[];function s(e){if(r(n,e)&&(n=e,o)){const e=!Ye.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),Ye.push(t,n)}if(e){for(let e=0;e<Ye.length;e+=2)Ye[e][0](Ye[e+1]);Ye.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 We(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Ke(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=m(e)?e:f)},e=u.map((e,t)=>U(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){d(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===et));var t},et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?at(Array.isArray(e)?[]:{},e,t):e}function rt(e,t,r){return e.concat(t).map(function(e){return tt(e,r)})}function nt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function it(e,t){try{return t in e}catch(e){return!1}}function ot(n,i,o){var a={};return o.isMergeableObject(n)&&nt(n).forEach(function(e){a[e]=tt(n[e],o)}),nt(i).forEach(function(t){var e,r;(!it(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(it(n,t)&&o.isMergeableObject(i[t])?a[t]=function(){if(!o.customMerge)return at;var e=o.customMerge(t);return"function"==typeof e?e:at}()(n[t],i[t],o):a[t]=tt(i[t],o))}),a}function at(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||rt,r.isMergeableObject=r.isMergeableObject||Je,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ot(e,t,r):tt(t,r)}at.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return at(e,t,r)},{})};var st=at,lt=function(e,t){return(lt=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 ut(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}lt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ct,ft,ht,pt=function(){return(pt=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 dt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function mt(e){return e.type===ft.literal}function bt(e){return e.type===ft.number}function gt(e){return e.type===ft.date}function yt(e){return e.type===ft.time}function wt(e){return e.type===ft.select}function Tt(e){return e.type===ft.plural}function vt(e){return e.type===ft.tag}function Et(e){return e&&"object"==typeof e&&e.type===ht.number}function Ct(e){return e&&"object"==typeof e&&e.type===ht.dateTime}(jt=ct=ct||{})[jt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",jt[jt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",jt[jt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",jt[jt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",jt[jt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",jt[jt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",jt[jt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",jt[jt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",jt[jt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",jt[jt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",jt[jt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",jt[jt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",jt[jt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",jt[jt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",jt[jt.INVALID_TAG=23]="INVALID_TAG",jt[jt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",jt[jt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",jt[jt.UNCLOSED_TAG=27]="UNCLOSED_TAG",($t=ft=ft||{})[$t.literal=0]="literal",$t[$t.argument=1]="argument",$t[$t.number=2]="number",$t[$t.date=3]="date",$t[$t.time=4]="time",$t[$t.select=5]="select",$t[$t.plural=6]="plural",$t[$t.pound=7]="pound",$t[$t.tag=8]="tag",(qt=ht=ht||{})[qt.number=0]="number",qt[qt.dateTime=1]="dateTime";var _t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pt=/(?:[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 At,Ut=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Rt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?$/g,St=/(\*)(0+)|(#+)(0+)|(0+)/g,xt=/^(0+)$/;function kt(e){var n={};return e.replace(Lt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Ot(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Nt(e){return Ot(e)||{}}function It(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=pt(pt(pt({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(t))},{}));continue;case"engineering":a=pt(pt(pt({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(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(St,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(xt.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(Rt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Rt,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=pt(pt({},a),kt(i.options[0])))}else Lt.test(i.stem)?a=pt(pt({},a),kt(i.stem)):((n=Ot(i.stem))&&(a=pt(pt({},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)),!xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=pt(pt({},a),n)))}return a}var Mt=new RegExp("^"+_t.source+"*"),Dt=new RegExp(_t.source+"*$");function Ft(e,t){return{start:e,end:t}}var Gt=!!String.prototype.startsWith,ke=!!String.fromCodePoint,$e=!!Object.fromEntries,jt=!!String.prototype.codePointAt,$t=!!String.prototype.trimStart,qt=!!String.prototype.trimEnd,Bt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_t=!0;try{_t="a"===(null===(At=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===At?void 0:At[0])}catch(f){_t=!1}var zt,Vt,Ht=Gt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Xt=ke?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},Qt=$e?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},Zt=jt?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}},Yt=$t?function(e){return e.trimStart()}:function(e){return e.replace(Mt,"")},Kt=qt?function(e){return e.trimEnd()}:function(e){return e.replace(Dt,"")};function Wt(e,t){return new RegExp(e,t)}Vt=_t?(zt=Wt("([^\\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 i=Zt(e,t);if(void 0===i||rr(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 Xt.apply(void 0,n)};var Jt=(er.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},er.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(ct.UNMATCHED_CLOSING_TAG,Ft(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&tr(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:ft.pound,location:Ft(o,this.clonePosition())})}}}return{val:n,err:null}},er.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ft.literal,value:"<"+n+"/>",location:Ft(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()||!tr(this.char()))return this.error(ct.INVALID_TAG,Ft(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(ct.UNMATCHED_CLOSING_TAG,Ft(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ft.tag,value:n,children:e,location:Ft(r,this.clonePosition())},err:null}:this.error(ct.INVALID_TAG,Ft(t,this.clonePosition())))}return this.error(ct.UNCLOSED_TAG,Ft(r,this.clonePosition()))}return this.error(ct.INVALID_TAG,Ft(r,this.clonePosition()))},er.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())},er.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=Ft(r,this.clonePosition());return{val:{type:ft.literal,value:n,location:r},err:null}},er.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},er.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)},er.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))},er.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ct.EMPTY_ARGUMENT,Ft(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ft.argument,value:n,location:Ft(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ct.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()))}},er.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Vt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ft(e,this.clonePosition())}},er.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(ct.EXPECT_ARGUMENT_TYPE,Ft(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=Kt(h.val)).length)return this.error(ct.EXPECT_ARGUMENT_STYLE,Ft(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ft(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Ft(n,this.clonePosition());if(l&&Ht(null==l?void 0:l.style,"::",0)){u=Yt(l.style.slice(2));if("number"===a)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:ft.number,value:r,location:c,style:h.val},err:null};if(0===u.length)return this.error(ct.EXPECT_DATE_TIME_SKELETON,c);var f={type:ht.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Pt,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?ft.date:ft.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===a?ft.number:"date"===a?ft.date:ft.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(ct.EXPECT_SELECT_ARGUMENT_OPTIONS,Ft(l,pt({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ct.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ct.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Ft(n,this.clonePosition());return"select"===a?{val:{type:ft.select,value:r,options:Qt(c.val),location:p},err:null}:{val:{type:ft.plural,value:r,options:Qt(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null};default:return this.error(ct.INVALID_ARGUMENT_TYPE,Ft(o,s))}},er.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ct.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},er.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(ct.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ft(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}},er.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(Ut).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(ct.INVALID_NUMBER_SKELETON,t)}return{val:{type:ht.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?It(r):{}},err:null}},er.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(ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,ct.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ft(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?ct.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ct.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ft(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:Ft(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?ct.EXPECT_SELECT_ARGUMENT_SELECTOR:ct.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ct.MISSING_OTHER_CLAUSE,Ft(this.clonePosition(),this.clonePosition())):{val:o,err:null}},er.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=Ft(n,this.clonePosition());return i?Bt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},er.prototype.offset=function(){return this.position.offset},er.prototype.isEOF=function(){return this.offset()===this.message.length},er.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},er.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Zt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},er.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},er.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))},er.prototype.bumpIf=function(e){if(Ht(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},er.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)},er.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}},er.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},er.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},er);function er(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 tr(e){return 97<=e&&e<=122||65<=e&&e<=90}function rr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function nr(e,t){t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Jt(e,t).parse();if(r.err){e=SyntaxError(ct[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,wt(e)||Tt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else bt(e)&&Et(e.style)||(gt(e)||yt(e))&&Ct(e.style)?delete e.style.location:vt(e)&&r(e.children)})}(r.val),r.val}function ir(e,t){var r=t&&t.cache?t.cache:fr,n=t&&t.serializer?t.serializer:lr;return(t&&t.strategy?t.strategy:function(e,t){return sr(e,this,1===e.length?or:ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function or(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 ar(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 sr(e,t,r,n,i){return r.bind(t,e,n,i)}var lr=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.has=function(e){return e in this.cache},ur.prototype.get=function(e){return this.cache[e]},ur.prototype.set=function(e,t){this.cache[e]=t};var cr,fr={create:function(){return new ur}},hr={variadic:function(e,t){return sr(e,this,ar,t.cache.create(),t.serializer)},monadic:function(e,t){return sr(e,this,or,t.cache.create(),t.serializer)}};(_t=cr=cr||{}).MISSING_VALUE="MISSING_VALUE",_t.INVALID_VALUE="INVALID_VALUE",_t.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,br,gr,yr=(ut(Pr,gr=Error),Pr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Pr),wr=(ut(_r,br=yr),_r),Tr=(ut(Cr,mr=yr),Cr),vr=(ut(Er,dr=yr),Er);function Er(e,t){return dr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',cr.MISSING_VALUE,t)||this}function Cr(e,t,r){return mr.call(this,'Value for "'+e+'" must be of type '+t,cr.INVALID_VALUE,r)||this}function _r(e,t,r,n){return br.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',cr.INVALID_VALUE,n)||this}function Pr(e,t,r){e=gr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Ar(e,t,r,n,i,o,a){if(1===e.length&&mt(e[0]))return[{type:pr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(mt(c))s.push({type:pr.literal,value:c.value});else if(c.type===ft.pound)"number"==typeof o&&s.push({type:pr.literal,value:r.getNumberFormat(t).format(o)});else{var f=c.value;if(!(i&&f in i))throw new vr(f,a);var h=i[f];if(c.type===ft.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?pr.literal:pr.object,value:h});else if(gt(c)){var p="string"==typeof c.style?n.date[c.style]:Ct(c.style)?c.style.parsedOptions:void 0;s.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(yt(c))p="string"==typeof c.style?n.time[c.style]:Ct(c.style)?c.style.parsedOptions:void 0,s.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(bt(c))(p="string"==typeof c.style?n.number[c.style]:Et(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:pr.literal,value:r.getNumberFormat(t,p).format(h)});else{if(vt(c)){var d=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Tr(m,"function",a);d=f(Ar(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?pr.literal:pr.object,value:e}}))}if(wt(c)){if(!(b=c.options[h]||c.options.other))throw new wr(c.value,h,Object.keys(c.options),a);s.push.apply(s,Ar(b.value,t,r,n,i))}else if(Tt(c)){if(!(b=c.options["="+h])){if(!Intl.PluralRules)throw new yr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',cr.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),b=c.options[d]||c.options.other}if(!b)throw new wr(c.value,h,Object.keys(c.options),a);s.push.apply(s,Ar(b.value,t,r,n,i,h-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===pr.literal&&t.type===pr.literal?r.value+=t.value:e.push(t),e},[])}function Ur(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}}}}}(_t=pr=pr||{})[_t.literal=0]="literal",_t[_t.object=1]="object";var Rr=(Object.defineProperty(Lr,"defaultLocale",{get:function(){return Lr.memoizedDefaultLocale||(Lr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Lr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Lr.memoizedDefaultLocale=null,Lr.__parse=nr,Lr.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"}}},Lr);function Lr(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=Lr.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===pr.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,!Lr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Lr.__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=Lr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?pt(pt(pt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=pt(pt({},r[t]),n[t]||{}),e},{})):r),e},pt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,dt([void 0],t)))},{cache:Ur((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:hr.variadic}),getDateTimeFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,dt([void 0],t)))},{cache:Ur(n.dateTime),strategy:hr.variadic}),getPluralRules:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,dt([void 0],t)))},{cache:Ur(n.pluralRules),strategy:hr.variadic})}}const Sr={},xr=(t,r)=>{if(null!=r){if(r in Sr&&t in Sr[r])return Sr[r][t];var n,i,o=Xr(r);for(let e=0;e<o.length;e++){var a=(n=o[e],i=t,Nr(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 kr[e]||null}(n),i):null);if(a)return n=t,i=r,(a=a)&&(i in Sr||(Sr[i]={}),n in Sr[i]||(Sr[i][n]=a),a)}}};let kr;const Or=Ke({});function Nr(e){return e in kr}function Ir(t,...r){delete Sr[t],Or.update(e=>(e[t]=st.all([e[t]||{},...r]),e))}We([Or],([e])=>Object.keys(e)),Or.subscribe(e=>kr=e);const Mr={};function Dr(e){return Mr[e]}function Fr(e){return Xr(e).some(e=>{return null===(e=Dr(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=Xr(e).map(e=>{var t=Dr(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){Mr[e].delete(t),0===Mr[e].size&&delete Mr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Ir(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 qr={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 Br=Ke(!1);let zr;const Vr=Ke(null);function Hr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Xr(e,t=qr.fallbackLocale){e=Hr(e);return t?[...new Set([...e,...Hr(t)])]:e}Vr.subscribe(e=>{zr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Qr=Vr.set;Vr.set=t=>{if(function(e){if(null!=e){var t=Xr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Nr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=qr;let e;return"undefined"!=typeof window&&null!=zr&&r?e=window.setTimeout(()=>Br.set(!0),r):Br.set(!0),jr(t).then(()=>{Qr(t)}).finally(()=>{clearTimeout(e),Br.set(!1)})}return Qr(t)},Vr.update=e=>Qr(e(zr));const Zr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Yr=(e,t)=>{var{formats:r}=qr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kr=Zr(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=Yr("number",r)),new Intl.NumberFormat(t,e)}),Wr=Zr(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=Yr("date",r):0===Object.keys(e).length&&(e=Yr("date","short")),new Intl.DateTimeFormat(t,e)}),Jr=Zr(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=Yr("time",r):0===Object.keys(e).length&&(e=Yr("time","short")),new Intl.DateTimeFormat(t,e)}),en=Zr((e,t=zr)=>new Rr(e,t,qr.formats,{ignoreTag:qr.ignoreTag})),tn=We([Vr,Or],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=zr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=xr(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 qr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Xr(n).join('", "')}".${Fr(zr)?"\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=en(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});We([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),We([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=$r(e,["locale"]);return Wr(Object.assign({locale:t},e))})(t).format(e)),We([Vr],()=>(e,t)=>((e={})=>{var{locale:t=zr}=e,e=$r(e,["locale"]);return Kr(Object.assign({locale:t},e))})(t).format(e)),We([Vr,Or],()=>(e,t=zr)=>xr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Qe.indexOf(e)&&(t=new ze(t),Ze[e]=t,Qe.push(e)),Ze[e]}};const rn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),nn={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize",UnqualifiedTips:"Minimum bet count not completed. Check Rules."}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Cele mai multe runde",winstakeratio:"Castig/miza",qualified:"Calificat",nowinners:"Niciun castigator inregistrat. Fii unul dintre castigatori!",Rank:"Pozitie",Player:"Nume",Points:"Puncte",Prize:"Premiu"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Rütbe",Player:"oyuncu",Points:"Puan",Prize:"Ödül"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Τάξη",Player:"Παίχτης",Points:"Πόντοι",Prize:"Βραβείο"}}};var on="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",an="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";function sn(e,t,r){const n=e.slice();return n[35]=t[r],n}function ln(e,t,r){const n=e.slice();return n[32]=t[r],n}function un(e,t,r){const n=e.slice();return n[35]=t[r],n}function cn(e,t,r){const n=e.slice();return n[32]=t[r],n}function fn(e,t,r){const n=e.slice();return n[35]=t[r],n}function hn(t){let r,n,i,o,a,s,l,u,c,e=t[11]("tournamentsTable.nowinners")+"",f=t[3],h=[];for(let e=0;e<f.length;e+=1)h[e]=gn(sn(t,f,e));return{c(){r=B("div"),n=B("table"),i=B("thead"),o=B("tr");for(let e=0;e<h.length;e+=1)h[e].c();a=V(),s=B("tbody"),l=B("tr"),u=B("td"),c=z(e),X(o,"part","LeftTableTr"),X(i,"part","LeftTableThead"),X(u,"colspan",t[8]),X(u,"part","LeftTableTd"),X(l,"part","LeftTableTr"),X(s,"part","LeftTableTbody"),X(n,"class","LeftTable"),X(n,"part","LeftTable"),X(r,"class","TournamentsTable"),X(r,"part","TournamentsTable")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o);for(let e=0;e<h.length;e+=1)h[e].m(o,null);j(n,a),j(n,s),j(s,l),j(l,u),j(u,c)},p(t,r){if(11273&r[0]){let e;for(f=t[3],e=0;e<f.length;e+=1){var n=sn(t,f,e);h[e]?h[e].p(n,r):(h[e]=gn(n),h[e].c(),h[e].m(o,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=f.length}2048&r[0]&&e!==(e=t[11]("tournamentsTable.nowinners")+"")&&Q(c,e),256&r[0]&&X(u,"colspan",t[8])},d(e){e&&q(r),v(h,e)}}}function pn(e){let r,n=e[5]&&yn(e);return{c(){n&&n.c(),r=H()},m(e,t){n&&n.m(e,t),$(e,r,t)},p(e,t){e[5]?n?n.p(e,t):(n=yn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&q(r)}}}function dn(e){let r,n=(t=e,(1==rn(t[12])?Tn:wn)(e));var t;return{c(){n.c(),r=H()},m(e,t){n.m(e,t),$(e,r,t)},p(e,t){n.p(e,t)},d(e){n.d(e),e&&q(r)}}}function mn(e){let r,n,i=e[11](`tournamentsTable.${e[35]}`)+"";return{c(){r=B("p"),n=z(i),X(r,"data-sort",e[10]),X(r,"part","LeftTableP")},m(e,t){$(e,r,t),j(r,n)},p(e,t){2056&t[0]&&i!==(i=e[11](`tournamentsTable.${e[35]}`)+"")&&Q(n,i),1024&t[0]&&X(r,"data-sort",e[10])},d(e){e&&q(r)}}}function bn(r){let n,i,o,a,s=r[11](`tournamentsTable.${r[35]}`)+"";function l(){return r[21](r[35])}return{c(){n=B("button"),i=z(s),X(n,"data-sort",r[10]),X(n,"part","LeftTableButton")},m(e,t){$(e,n,t),j(n,i),o||(a=E(n,"click",l),o=!0)},p(e,t){r=e,2056&t[0]&&s!==(s=r[11](`tournamentsTable.${r[35]}`)+"")&&Q(i,s),1024&t[0]&&X(n,"data-sort",r[10])},d(e){e&&q(n),o=!1,a()}}}function gn(e){let r,n;function i(e){return"true"==e[0]?bn:mn}let o=i(e),a=o(e);return{c(){r=B("th"),a.c(),n=V(),X(r,"part","LeftTableTh")},m(e,t){$(e,r,t),a.m(r,null),j(r,n)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r,n)))},d(e){e&&q(r),a.d()}}}function yn(e){let r,n,i,o,a=e[11]("tournamentsTable.nowinners")+"";return{c(){r=B("div"),n=B("div"),i=B("p"),o=z(a),X(n,"class","TableUser"),X(n,"part","TableUser"),X(r,"class","TableContent"),X(r,"part","TableContent")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o)},p(e,t){2048&t[0]&&a!==(a=e[11]("tournamentsTable.nowinners")+"")&&Q(o,a)},d(e){e&&q(r)}}}function wn(r){let n,i,o,a,s,l,u,c,f,h,p,d,m=r[3],b=[];for(let e=0;e<m.length;e+=1)b[e]=Cn(un(r,m,e));let g="true"==r[1]&&r[4]&&_n(r),y=r[5]&&Rn(r);function e(e){return e[5]?In:Nn}let w=e(r),T=w(r);return{c(){n=B("div"),i=B("table"),o=B("thead"),a=B("tr");for(let e=0;e<b.length;e+=1)b[e].c();s=V(),l=B("tbody"),g&&g.c(),u=V(),y&&y.c(),c=V(),f=B("div"),h=B("div"),T.c(),X(a,"part","LeftTableTr"),X(o,"part","LeftTableThead"),X(l,"part","LeftTableTbody"),X(i,"class","LeftTable"),X(i,"part","LeftTable"),X(h,"class","CollapseButton"),X(h,"part","CollapseButton"),X(f,"class","RightButton"),X(f,"part","RightButton"),X(n,"class","TournamentsTable"),X(n,"part","TournamentsTable")},m(e,t){$(e,n,t),j(n,i),j(i,o),j(o,a);for(let e=0;e<b.length;e+=1)b[e].m(a,null);j(i,s),j(i,l),g&&g.m(l,null),j(l,u),y&&y.m(l,null),j(n,c),j(n,f),j(f,h),T.m(h,null),p||(d=E(h,"click",r[20]),p=!0)},p(t,r){if(11273&r[0]){let e;for(m=t[3],e=0;e<m.length;e+=1){var n=un(t,m,e);b[e]?b[e].p(n,r):(b[e]=Cn(n),b[e].c(),b[e].m(a,null))}for(;e<b.length;e+=1)b[e].d(1);b.length=m.length}"true"==t[1]&&t[4]?g?g.p(t,r):(g=_n(t),g.c(),g.m(l,u)):g&&(g.d(1),g=null),t[5]?y?y.p(t,r):(y=Rn(t),y.c(),y.m(l,null)):y&&(y.d(1),y=null),w!==(w=e(t))&&(T.d(1),T=w(t),T&&(T.c(),T.m(h,null)))},d(e){e&&q(n),v(b,e),g&&g.d(),y&&y.d(),T.d(),p=!1,d()}}}function Tn(t){let n,i,r,o,a=t[3],s=[];for(let e=0;e<a.length;e+=1)s[e]=Fn(fn(t,a,e));let l="true"==t[1]&&t[4]&&Gn(t),u=t[5]&&Bn(t);return{c(){n=B("div"),i=B("div");for(let e=0;e<s.length;e+=1)s[e].c();r=V(),l&&l.c(),o=V(),u&&u.c(),X(i,"class","TableUser TableHeadRow"),X(i,"part","TableUser TableHeadRow"),X(n,"class","TableContent"),X(n,"part","TableContent")},m(e,t){$(e,n,t),j(n,i);for(let e=0;e<s.length;e+=1)s[e].m(i,null);j(n,r),l&&l.m(n,null),j(n,o),u&&u.m(n,null)},p(t,r){if(11273&r[0]){let e;for(a=t[3],e=0;e<a.length;e+=1){const o=fn(t,a,e);s[e]?s[e].p(o,r):(s[e]=Fn(o),s[e].c(),s[e].m(i,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}"true"==t[1]&&t[4]?l?l.p(t,r):(l=Gn(t),l.c(),l.m(n,o)):l&&(l.d(1),l=null),t[5]?u?u.p(t,r):(u=Bn(t),u.c(),u.m(n,null)):u&&(u.d(1),u=null)},d(e){e&&q(n),v(s,e),l&&l.d(),u&&u.d()}}}function vn(e){let r,n,i=e[11](`tournamentsTable.${e[35]}`)+"";return{c(){r=B("p"),n=z(i),X(r,"data-sort",e[10]),X(r,"part","LeftTableP")},m(e,t){$(e,r,t),j(r,n)},p(e,t){2056&t[0]&&i!==(i=e[11](`tournamentsTable.${e[35]}`)+"")&&Q(n,i),1024&t[0]&&X(r,"data-sort",e[10])},d(e){e&&q(r)}}}function En(r){let n,i,o,a,s=r[11](`tournamentsTable.${r[35]}`)+"";function l(){return r[19](r[35])}return{c(){n=B("button"),i=z(s),X(n,"data-sort",r[10]),X(n,"part","LeftTableButton")},m(e,t){$(e,n,t),j(n,i),o||(a=E(n,"click",l),o=!0)},p(e,t){r=e,2056&t[0]&&s!==(s=r[11](`tournamentsTable.${r[35]}`)+"")&&Q(i,s),1024&t[0]&&X(n,"data-sort",r[10])},d(e){e&&q(n),o=!1,a()}}}function Cn(e){let r,n;function i(e){return"true"==e[0]?En:vn}let o=i(e),a=o(e);return{c(){r=B("th"),a.c(),n=V(),X(r,"part","LeftTableTh")},m(e,t){$(e,r,t),a.m(r,null),j(r,n)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r,n)))},d(e){e&&q(r),a.d()}}}function _n(e){let r,n,i,o,a,s,l,u,c,t,f,h,p,d,m,b,g,y,w,T,v,E,C,_,P,A,U,R,L,S,x,k,O=e[4].Rank+"",N=e[4].Player+"",I=e[4].Points+"";function M(e){return e[4].Prize?An:Pn}let D=M(e),F=D(e),G=e[4].Unqualified&&Un(e);return{c(){r=B("tr"),n=B("td"),i=B("strong"),o=B("em"),a=z("#"),s=z(O),l=V(),u=B("div"),c=B("img"),h=V(),p=B("img"),y=V(),w=B("td"),T=z(N),v=V(),E=B("td"),C=B("div"),_=z(I),P=V(),A=B("td"),F.c(),x=V(),G&&G.c(),k=H(),X(o,"part","LeftTableTdEm"),c.src!==(t=on)&&X(c,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(c,"part","Rank_Arror_UP"),X(c,"class",f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),p.src!==(d=an)&&X(p,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(p,"part","Rank_Arror_Down"),X(p,"class",m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden")),X(u,"class",b="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(u,"part",g="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(i,"class","RankCol"),X(i,"part","RankCol"),X(n,"part","LeftTableTd RankFirstRow"),X(w,"part","LeftTableTd"),X(C,"class","Flex"),X(C,"part","Flex"),X(E,"part","LeftTableTd"),X(A,"class",U="LeftTableTd "+(e[4].Unqualified?"":"Qualified")),X(A,"part",R="LeftTableTd "+(e[4].Unqualified?"":"Qualified")),X(r,"class",L="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":"")),X(r,"part",S="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(o,a),j(o,s),j(i,l),j(i,u),j(u,c),j(u,h),j(u,p),j(r,y),j(r,w),j(w,T),j(r,v),j(r,E),j(E,C),j(C,_),j(r,P),j(r,A),F.m(A,null),$(e,x,t),G&&G.m(e,t),$(e,k,t)},p(e,t){16&t[0]&&O!==(O=e[4].Rank+"")&&Q(s,O),192&t[0]&&f!==(f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&X(c,"class",f),192&t[0]&&m!==(m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&X(p,"class",m),64&t[0]&&b!==(b="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"class",b),64&t[0]&&g!==(g="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"part",g),16&t[0]&&N!==(N=e[4].Player+"")&&Q(T,N),16&t[0]&&I!==(I=e[4].Points+"")&&Q(_,I),D===(D=M(e))&&F?F.p(e,t):(F.d(1),F=D(e),F&&(F.c(),F.m(A,null))),16&t[0]&&U!==(U="LeftTableTd "+(e[4].Unqualified?"":"Qualified"))&&X(A,"class",U),16&t[0]&&R!==(R="LeftTableTd "+(e[4].Unqualified?"":"Qualified"))&&X(A,"part",R),16&t[0]&&L!==(L="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"class",L),16&t[0]&&S!==(S="FirstRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"part",S),e[4].Unqualified?G?G.p(e,t):(G=Un(e),G.c(),G.m(k.parentNode,k)):G&&(G.d(1),G=null)},d(e){e&&q(r),F.d(),e&&q(x),G&&G.d(e),e&&q(k)}}}function Pn(e){let r;return{c(){r=z("-")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function An(e){let r,n=e[4].Prize+"";return{c(){r=z(n)},m(e,t){$(e,r,t)},p(e,t){16&t[0]&&n!==(n=e[4].Prize+"")&&Q(r,n)},d(e){e&&q(r)}}}function Un(e){let r,n,i,o,a,s,l=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("tr"),n=B("td"),i=t("svg"),o=t("path"),a=V(),s=z(l),X(o,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(i,"class","ExclamationMark"),X(i,"part","ExclamationMark"),X(i,"width","10"),X(i,"height","10"),X(i,"viewBox","0 0 10 10"),X(i,"fill","none"),X(i,"xmlns","http://www.w3.org/2000/svg"),X(n,"colspan",e[8]),X(n,"part","LeftTableTd"),X(r,"class","TooltipsRow"),X(r,"part","TooltipsRow")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(n,a),j(n,s)},p(e,t){2048&t[0]&&l!==(l=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,l),256&t[0]&&X(n,"colspan",e[8])},d(e){e&&q(r)}}}function Rn(t){let i,o=t[9],a=[];for(let e=0;e<o.length;e+=1)a[e]=On(ln(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();i=H()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);$(t,i,r)},p(t,r){if(3008&r[0]){let e;for(o=t[9],e=0;e<o.length;e+=1){var n=ln(t,o,e);a[e]?a[e].p(n,r):(a[e]=On(n),a[e].c(),a[e].m(i.parentNode,i))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){v(a,e),e&&q(i)}}}function Ln(e){let r,t,n,i,o,a,s;return{c(){r=B("img"),i=V(),o=B("img"),r.src!==(t=on)&&X(r,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(r,"part","Rank_Arror_UP"),X(r,"class",n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),o.src!==(a=an)&&X(o,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),X(o,"part","Rank_Arror_Down"),X(o,"class",s="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))},m(e,t){$(e,r,t),$(e,i,t),$(e,o,t)},p(e,t){192&t[0]&&n!==(n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&X(r,"class",n),192&t[0]&&s!==(s="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&X(o,"class",s)},d(e){e&&q(r),e&&q(i),e&&q(o)}}}function Sn(e){let r;return{c(){r=z("-")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function xn(e){let r,n=e[32].Prize+"";return{c(){r=z(n)},m(e,t){$(e,r,t)},p(e,t){512&t[0]&&n!==(n=e[32].Prize+"")&&Q(r,n)},d(e){e&&q(r)}}}function kn(e){let r,n,i,o,a,s,l,u=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("tr"),n=B("td"),i=t("svg"),o=t("path"),a=V(),s=z(u),l=V(),X(o,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(i,"class","ExclamationMark"),X(i,"part","ExclamationMark"),X(i,"width","10"),X(i,"height","10"),X(i,"viewBox","0 0 10 10"),X(i,"fill","none"),X(i,"xmlns","http://www.w3.org/2000/svg"),X(n,"colspan",e[8]),X(n,"part","LeftTableTd"),X(r,"class","TooltipsRow"),X(r,"part","TooltipsRow")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(n,a),j(n,s),j(r,l)},p(e,t){2048&t[0]&&u!==(u=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,u),256&t[0]&&X(n,"colspan",e[8])},d(e){e&&q(r)}}}function On(e){let r,n,i,o,a,s,l,u,c,f,h,p,d,m,b,g,y,w,T,v,E,C,_,P,A,U,R=e[32].Rank+"",L=e[32].Player+"",S=e[32].Points+"",x=e[32].isCurrentUser&&Ln(e);function k(e){return e[32].Prize?xn:Sn}let O=k(e),N=O(e),I=e[32].Unqualified&&e[32].isCurrentUser&&kn(e);return{c(){r=B("tr"),n=B("td"),i=B("strong"),o=B("em"),a=z("#"),s=z(R),l=V(),u=B("div"),x&&x.c(),p=V(),d=B("td"),m=z(L),b=V(),g=B("td"),y=B("div"),w=z(S),T=V(),v=B("td"),N.c(),A=V(),I&&I.c(),U=H(),X(u,"class",c="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(u,"part",f="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),X(o,"part","LeftTableTdEm"),X(i,"class","RankCol"),X(i,"part","RankCol"),X(n,"part",h="LeftTableTd Rank-"+e[32].Rank),X(d,"part","LeftTableTd"),X(y,"class","Flex ScoreUp"),X(y,"part","Flex ScoreUp"),X(g,"part","LeftTableTd"),X(v,"class",E="LeftTableTd "+(e[32].Unqualified?"":"Qualified")),X(v,"part",C="LeftTableTd "+(e[32].Unqualified?"":"Qualified")),X(r,"class",_="LeftTableTr "+(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":"")),X(r,"part",P="LeftTableTr "+(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(i,o),j(o,a),j(o,s),j(o,l),j(o,u),x&&x.m(u,null),j(r,p),j(r,d),j(d,m),j(r,b),j(r,g),j(g,y),j(y,w),j(r,T),j(r,v),N.m(v,null),$(e,A,t),I&&I.m(e,t),$(e,U,t)},p(e,t){512&t[0]&&R!==(R=e[32].Rank+"")&&Q(s,R),e[32].isCurrentUser?x?x.p(e,t):(x=Ln(e),x.c(),x.m(u,null)):x&&(x.d(1),x=null),64&t[0]&&c!==(c="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"class",c),64&t[0]&&f!==(f="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&X(u,"part",f),512&t[0]&&h!==(h="LeftTableTd Rank-"+e[32].Rank)&&X(n,"part",h),512&t[0]&&L!==(L=e[32].Player+"")&&Q(m,L),512&t[0]&&S!==(S=e[32].Points+"")&&Q(w,S),O===(O=k(e))&&N?N.p(e,t):(N.d(1),N=O(e),N&&(N.c(),N.m(v,null))),512&t[0]&&E!==(E="LeftTableTd "+(e[32].Unqualified?"":"Qualified"))&&X(v,"class",E),512&t[0]&&C!==(C="LeftTableTd "+(e[32].Unqualified?"":"Qualified"))&&X(v,"part",C),512&t[0]&&_!==(_="LeftTableTr "+(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"class",_),512&t[0]&&P!==(P="LeftTableTr "+(e[32].isCurrentUser?"FirstRow":"")+" "+(e[32].isCurrentUser&&e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"part",P),e[32].Unqualified&&e[32].isCurrentUser?I?I.p(e,t):(I=kn(e),I.c(),I.m(U.parentNode,U)):I&&(I.d(1),I=null)},d(e){e&&q(r),x&&x.d(),N.d(),e&&q(A),I&&I.d(e),e&&q(U)}}}function Nn(e){let r,n;return{c(){r=t("svg"),n=t("path"),X(n,"d","M6 9l6 6 6-6"),X(r,"xmlns","http://www.w3.org/2000/svg"),X(r,"width","24"),X(r,"height","24"),X(r,"viewBox","0 0 24 24"),X(r,"fill","none"),X(r,"stroke","#ffffff"),X(r,"stroke-width","2"),X(r,"stroke-linecap","round"),X(r,"stroke-linejoin","round")},m(e,t){$(e,r,t),j(r,n)},d(e){e&&q(r)}}}function In(e){let r,n;return{c(){r=t("svg"),n=t("path"),X(n,"d","M18 15l-6-6-6 6"),X(r,"xmlns","http://www.w3.org/2000/svg"),X(r,"width","24"),X(r,"height","24"),X(r,"viewBox","0 0 24 24"),X(r,"fill","none"),X(r,"stroke","#ffffff"),X(r,"stroke-width","2"),X(r,"stroke-linecap","round"),X(r,"stroke-linejoin","round")},m(e,t){$(e,r,t),j(r,n)},d(e){e&&q(r)}}}function Mn(e){let r,n,i=e[11](`tournamentsTable.${e[35]}`)+"";return{c(){r=B("p"),n=z(i),X(r,"data-sort",e[10])},m(e,t){$(e,r,t),j(r,n)},p(e,t){2056&t[0]&&i!==(i=e[11](`tournamentsTable.${e[35]}`)+"")&&Q(n,i),1024&t[0]&&X(r,"data-sort",e[10])},d(e){e&&q(r)}}}function Dn(r){let n,i,o,a,s=r[11](`tournamentsTable.${r[35]}`)+"";function l(){return r[18](r[35])}return{c(){n=B("button"),i=z(s),X(n,"data-sort",r[10])},m(e,t){$(e,n,t),j(n,i),o||(a=E(n,"click",l),o=!0)},p(e,t){r=e,2056&t[0]&&s!==(s=r[11](`tournamentsTable.${r[35]}`)+"")&&Q(i,s),1024&t[0]&&X(n,"data-sort",r[10])},d(e){e&&q(n),o=!1,a()}}}function Fn(e){let r,n,i,o;function a(e){return"true"==e[0]?Dn:Mn}let s=a(e),l=s(e);return{c(){r=B("div"),l.c(),n=V(),X(r,"class",i="TableCell Table"+e[35]),X(r,"part",o="TableCell Table"+e[35])},m(e,t){$(e,r,t),l.m(r,null),j(r,n)},p(e,t){s===(s=a(e))&&l?l.p(e,t):(l.d(1),l=s(e),l&&(l.c(),l.m(r,n))),8&t[0]&&i!==(i="TableCell Table"+e[35])&&X(r,"class",i),8&t[0]&&o!==(o="TableCell Table"+e[35])&&X(r,"part",o)},d(e){e&&q(r),l.d()}}}function Gn(e){let r,n,i,o,a,s,l,u,c,f,h,p,d,m,b,g,y=e[4].Rank+"",w=e[4].Player+"",T=e[4].Points+"";function v(e){return e[4].Prize?$n:jn}let E=v(e),C=E(e),_=e[4].Unqualified&&qn(e);return{c(){r=B("div"),n=B("div"),i=z(y),s=V(),l=B("div"),u=z(w),c=V(),f=B("div"),h=z(T),p=V(),C.c(),b=V(),_&&_.c(),g=H(),X(n,"class",o="TableCell TableRank "+(e[4].Prize?"Qualified":"")),X(n,"part",a="TableCell TableRank RankFirstRow "+(e[4].Prize?"Qualified":"")),X(l,"class","TableCell TablePlayer"),X(l,"part","TableCell TablePlayer"),X(f,"class","TableCell TablePoints"),X(f,"part","TableCell TablePoints"),X(r,"class",d="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":"")),X(r,"part",m="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,s),j(r,l),j(l,u),j(r,c),j(r,f),j(f,h),j(r,p),C.m(r,null),$(e,b,t),_&&_.m(e,t),$(e,g,t)},p(e,t){16&t[0]&&y!==(y=e[4].Rank+"")&&Q(i,y),16&t[0]&&o!==(o="TableCell TableRank "+(e[4].Prize?"Qualified":""))&&X(n,"class",o),16&t[0]&&a!==(a="TableCell TableRank RankFirstRow "+(e[4].Prize?"Qualified":""))&&X(n,"part",a),16&t[0]&&w!==(w=e[4].Player+"")&&Q(u,w),16&t[0]&&T!==(T=e[4].Points+"")&&Q(h,T),E===(E=v(e))&&C?C.p(e,t):(C.d(1),C=E(e),C&&(C.c(),C.m(r,null))),16&t[0]&&d!==(d="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"class",d),16&t[0]&&m!==(m="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&X(r,"part",m),e[4].Unqualified?_?_.p(e,t):(_=qn(e),_.c(),_.m(g.parentNode,g)):_&&(_.d(1),_=null)},d(e){e&&q(r),C.d(),e&&q(b),_&&_.d(e),e&&q(g)}}}function jn(e){let r;return{c(){r=B("div"),r.textContent="-",X(r,"class","TableCell TablePrize"),X(r,"part","TableCell TablePrize")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function $n(e){let r,n,i,o,a=e[4].Prize+"";return{c(){r=B("div"),n=z(a),X(r,"class",i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified")),X(r,"part",o="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))},m(e,t){$(e,r,t),j(r,n)},p(e,t){16&t[0]&&a!==(a=e[4].Prize+"")&&Q(n,a),16&t[0]&&i!==(i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&X(r,"class",i),16&t[0]&&o!==(o="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&X(r,"part",o)},d(e){e&&q(r)}}}function qn(e){let r,n,i,o,a,s,l=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("div"),n=t("svg"),i=t("path"),o=V(),a=B("em"),s=z(l),X(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(n,"class","ExclamationMark"),X(n,"part","ExclamationMark"),X(n,"width","10"),X(n,"height","10"),X(n,"viewBox","0 0 10 10"),X(n,"fill","none"),X(n,"xmlns","http://www.w3.org/2000/svg"),X(a,"part","TableUserTooltipsEm"),X(r,"class","TableUserTooltips"),X(r,"part","TableUserTooltips")},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,o),j(r,a),j(a,s)},p(e,t){2048&t[0]&&l!==(l=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,l)},d(e){e&&q(r)}}}function Bn(t){let i,o=t[9],a=[];for(let e=0;e<o.length;e+=1)a[e]=Xn(cn(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();i=H()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);$(t,i,r)},p(t,r){if(2560&r[0]){let e;for(o=t[9],e=0;e<o.length;e+=1){var n=cn(t,o,e);a[e]?a[e].p(n,r):(a[e]=Xn(n),a[e].c(),a[e].m(i.parentNode,i))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){v(a,e),e&&q(i)}}}function zn(e){let r;return{c(){r=B("div"),r.textContent="-",X(r,"class","TableCell TablePrize"),X(r,"part","TableCell TablePrize")},m(e,t){$(e,r,t)},p:f,d(e){e&&q(r)}}}function Vn(e){let r,n,i,o,a=e[32].Prize+"";return{c(){r=B("div"),n=z(a),X(r,"class",i="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified")),X(r,"part",o="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified"))},m(e,t){$(e,r,t),j(r,n)},p(e,t){512&t[0]&&a!==(a=e[32].Prize+"")&&Q(n,a),512&t[0]&&i!==(i="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified"))&&X(r,"class",i),512&t[0]&&o!==(o="TableCell TablePrize "+(e[32].Unqualified?"":"Qualified"))&&X(r,"part",o)},d(e){e&&q(r)}}}function Hn(e){let r,n,i,o,a,s,l,u,c,f=e[11]("tournamentsTable.UnqualifiedTips")+"";return{c(){r=B("div"),n=t("svg"),i=t("path"),o=V(),a=B("em"),s=z(f),l=V(),X(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),X(n,"class","ExclamationMark"),X(n,"part","ExclamationMark"),X(n,"width","10"),X(n,"height","10"),X(n,"viewBox","0 0 10 10"),X(n,"fill","none"),X(n,"xmlns","http://www.w3.org/2000/svg"),X(a,"part","TableUserTooltipsEm"),X(r,"class",u="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":"")),X(r,"part",c="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,o),j(r,a),j(a,s),j(r,l)},p(e,t){2048&t[0]&&f!==(f=e[11]("tournamentsTable.UnqualifiedTips")+"")&&Q(s,f),512&t[0]&&u!==(u="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"class",u),512&t[0]&&c!==(c="TableUserTooltips "+(e[32].Unqualified?"UnqualifiedRow":""))&&X(r,"part",c)},d(e){e&&q(r)}}}function Xn(e){let r,n,i,o,a,s,l,u,c,f,h,p,d,m,b,g,y=e[32].Rank+"",w=e[32].Player+"",T=e[32].Points+"";function v(e){return e[32].Prize?Vn:zn}let E=v(e),C=E(e),_=e[32].isCurrentUser&&e[32].Unqualified&&Hn(e);return{c(){r=B("div"),n=B("div"),i=z(y),s=V(),l=B("div"),u=z(w),c=V(),f=B("div"),h=z(T),p=V(),C.c(),b=V(),_&&_.c(),g=H(),X(n,"class",o="TableCell TableRank "+(e[32].Prize?"Qualified":"")),X(n,"part",a="TableCell Rank-"+e[32].Rank+" TableRank "+(e[32].Prize?"Qualified":"")),X(l,"class","TableCell TablePlayer"),X(l,"part","TableCell TablePlayer"),X(f,"class","TableCell TablePoints"),X(f,"part","TableCell TablePoints"),X(r,"class",d="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":"")),X(r,"part",m="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":""))},m(e,t){$(e,r,t),j(r,n),j(n,i),j(r,s),j(r,l),j(l,u),j(r,c),j(r,f),j(f,h),j(r,p),C.m(r,null),$(e,b,t),_&&_.m(e,t),$(e,g,t)},p(e,t){512&t[0]&&y!==(y=e[32].Rank+"")&&Q(i,y),512&t[0]&&o!==(o="TableCell TableRank "+(e[32].Prize?"Qualified":""))&&X(n,"class",o),512&t[0]&&a!==(a="TableCell Rank-"+e[32].Rank+" TableRank "+(e[32].Prize?"Qualified":""))&&X(n,"part",a),512&t[0]&&w!==(w=e[32].Player+"")&&Q(u,w),512&t[0]&&T!==(T=e[32].Points+"")&&Q(h,T),E===(E=v(e))&&C?C.p(e,t):(C.d(1),C=E(e),C&&(C.c(),C.m(r,null))),512&t[0]&&d!==(d="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":""))&&X(r,"class",d),512&t[0]&&m!==(m="TableUser "+(e[32].isCurrentUser?"CurrentUserRow":""))&&X(r,"part",m),e[32].isCurrentUser&&e[32].Unqualified?_?_.p(e,t):(_=Hn(e),_.c(),_.m(g.parentNode,g)):_&&(_.d(1),_=null)},d(e){e&&q(r),C.d(),e&&q(b),_&&_.d(e),e&&q(g)}}}function Qn(e){let t,r;function n(e){return 0<e[2].length||e[4]?dn:(null==t&&(t=!(1!=rn(e[12]))),t?pn:hn)}let i=n(e),o=i(e);return{c(){o.c(),r=H(),this.c=f},m(e,t){o.m(e,t),$(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)))},i:f,o:f,d(e){o.d(e),e&&q(r)}}}function Zn(e,t,i){let r,n,o;var a=tn;e.$$.on_destroy.push(U(a,e=>i(11,o=e)));let s,l,{sortable:u=!1}=t,{firstrow:c=!1}=t,{lang:f="en"}=t,h=[],p=[],d=null,m=null,b=null,g=!0,y=window.navigator.userAgent,w=!1,T=!1;Object.keys(nn).forEach(e=>{Ir(e,nn[e])});let v,E;const C=e=>{s?(i(6,w=s!=e),i(7,T=s>e),w&&(v=(new Date).getTime(),setTimeout(function(){E=(new Date).getTime(),4<(E-v)/1e3&&i(6,w=!1),s=e},5e3))):s=e},_=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(i(2,p=t.data.tableData),i(9,r=p)),t.data&&"CasinoTableColumns"===t.data.type&&(i(3,h=t.data.tableColumns),i(8,l=h.length||4)),t.data&&"CasinoTableCurrentUserData"===t.data.type&&p&&(p.forEach(e=>{e.userID==t.data.tableData.userID&&(e.isCurrentUser=!0,s=s||t.data.tableData.Rank,b?(C(t.data.tableData.Rank),i(4,b=null)):C(t.data.tableData.Rank))}),i(9,r=p)),c&&t.data&&"CasinoTableFirstRowData"===t.data.type){var e=t.data.tableData;if(!b)return i(4,b=t.data.tableData),void(s=b.Rank);b&&b.UserID==e.UserID&&(C(e.Rank),i(4,b=t.data.tableData))}if(t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let n=t.data.tableData;p instanceof Array&&p.forEach(function(e,t){var r,e=(r=e.Rank,n.find(e=>e.Rank==r));e&&i(2,p[t]=e,p)})}},P=e=>{var t=e===d,r="ASC"===m,n=t&&!r;i(16,d=n?null:e),i(17,m=n?null:t&&r?"DESC":"ASC")},A=()=>{i(5,g=!g)};return t=()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}),function(){if(!R)throw new Error("Function called outside component initialization");return R}().$$.on_mount.push(t),e.$$set=e=>{"sortable"in e&&i(0,u=e.sortable),"firstrow"in e&&i(1,c=e.firstrow),"lang"in e&&i(15,f=e.lang)},e.$$.update=()=>{196612&e.$$.dirty[0]&&i(9,r=d&&m?(()=>{let e=[];if(p&&(e=[...p]),!p.length)return p;var t=typeof p[0][d.toLowerCase()];return e.sort((e=>{const r=d.toLowerCase();return"string"==e?(e,t)=>e[r].localeCompare(t[r]):"number"==e||"object"==e?(e,t)=>e[r]-t[r]:void 0})(t)),"ASC"===m?e:e.reverse()})():[...p]),196608&e.$$.dirty[0]&&i(10,n=null===d?m:null)},[u,c,p,h,b,g,w,T,l,r,n,o,y,P,A,f,d,m,e=>P(e),e=>P(e),()=>A(),e=>P(e)]}class Yn 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'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:#fff;display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.TableUser.UnqualifiedRow{border-bottom:0}.TableUserTooltips{background:var(--emfe-w-table-currentuser-bg, #533a34);width:100%;height:18px;text-align:center;font-size:0.8rem}.TooltipsRow{border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-top:0}.TooltipsRow .ExclamationMark{fill:var(--emfe-w-color-exclamation, #fecf00)}.TooltipsRow td{padding:0 0 10px 0;font-size:12px;color:var(--emfe-w-color-tooltips, #fecf00)}.TableCell{padding:10px;flex:2;text-align:center}.TableRank{flex:1 50px}.TablePlayer{flex:5}.TablePrize{flex:5}.Qualified{color:var(--emfe-w-highlight, #debb05)}.ExclamationMark{vertical-align:text-top;width:14px;height:14px;fill:var(--emfe-w-color-exclamation-mobile, #b5b5b5)}.TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%;border-collapse:collapse}.RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid #1B9800}.FirstRow.UnqualifiedRow{outline:0;border:2px solid var(--emfe-w-tooltips-border, #fecf00);border-bottom:0}.FirstRow.UnqualifiedRow td{border-bottom:0}.FirstRow .RankCol{position:relative;width:max-content;display:inline}.FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.Show{display:inline-flex}.Hidden{display:none}.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0;color:var(--emfe-w-color-white, #FFFFFF)}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:var(--emfe-w-color-white, #FFFFFF);font-size:0.9rem;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}.flex{display:flex;align-items:center}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</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},Zn,Qn,r,{sortable:0,firstrow:1,lang:15},[-1,-1]),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(e){this.$set({sortable:e}),C()}get firstrow(){return this.$$.ctx[1]}set firstrow(e){this.$set({firstrow:e}),C()}get lang(){return this.$$.ctx[15]}set lang(e){this.$set({lang:e}),C()}}return customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",Yn),Yn});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-table.js.map
|