@everymatrix/casino-tournaments-limited-controller 1.98.7 → 1.98.9

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.
@@ -17,10 +17,10 @@ PERFORMANCE OF THIS SOFTWARE.
17
17
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
18
18
  `):"",this.name="UnsubscriptionError",this.errors=n}});function hn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Pt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=an(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(x){t={error:x}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(Ie(c))try{c()}catch(x){o=x instanceof Yt?x.errors:[x]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=an(f),b=d.next();!b.done;b=d.next()){var S=b.value;try{Mn(S)}catch(x){o=o!=null?o:[],x instanceof Yt?o=ln(ln([],un(o)),un(x.errors)):o.push(x)}}}catch(x){r={error:x}}finally{try{b&&!b.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(o)throw new Yt(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Mn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&hn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&hn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),br=Pt.EMPTY;function Er(e){return e instanceof Pt||e&&"closed"in e&&Ie(e.remove)&&Ie(e.add)&&Ie(e.unsubscribe)}function Mn(e){Ie(e)?e():e.unsubscribe()}var _i={Promise:void 0},Ni={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,ln([e,t],un(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Pi(e){Ni.setTimeout(function(){throw e})}function kn(){}function wt(e){e()}var yr=function(e){ut(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Er(n)&&n.add(r)):r.destination=Mi,r}return t.create=function(n,r,i){return new fn(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Pt),Di=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){bt(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){bt(r)}else bt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){bt(n)}},e}(),fn=function(e){ut(t,e);function t(n,r,i){var o=e.call(this)||this,s;return Ie(n)||!n?s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=n,o.destination=new Di(s),o}return t}(yr);function bt(e){Pi(e)}function Li(e){throw e}var Mi={closed:!0,next:kn,error:Li,complete:kn},ki=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ui(e){return e}function Fi(e){return e.length===0?Ui:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var Un=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=ji(t)?t:new fn(t,n,r);return wt(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Fn(n),new n(function(i,o){var s=new fn({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[ki]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Fi(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Fn(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function Fn(e){var t;return(t=e!=null?e:_i.Promise)!==null&&t!==void 0?t:Promise}function Gi(e){return e&&Ie(e.next)&&Ie(e.error)&&Ie(e.complete)}function ji(e){return e&&e instanceof yr||Gi(e)&&Er(e)}var Qi=Ar(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wr=function(e){ut(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Gn(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Qi},t.prototype.next=function(n){var r=this;wt(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=an(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;wt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;wt(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?br:(this.currentObservers=null,a.push(n),new Pt(function(){r.currentObservers=null,hn(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new Un;return n.source=this,n},t.create=function(n,r){return new Gn(n,r)},t}(Un),Gn=function(e){ut(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:br},t}(wr),xr={now:function(){return(xr.delegate||Date).now()},delegate:void 0},zi=function(e){ut(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=xr);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!n.closed;l+=o?1:2)n.next(a[l]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},t}(wr);const jn=[],Qn={},Ji=(e,t=0)=>{if(jn.indexOf(e)==-1){const n=new zi(t);Qn[e]=n,jn.push(e)}return Qn[e]},Ge=[];function Xi(e,t){return{subscribe:Dt(e,t).subscribe}}function Dt(e,t=ee){let n;const r=new Set;function i(a){if(Nt(e,a)&&(e=a,n)){const l=!Ge.length;for(const u of r)u[1](),Ge.push(u,e);if(l){for(let u=0;u<Ge.length;u+=2)Ge[u][0](Ge[u+1]);Ge.length=0}}}function o(a){i(a(e))}function s(a,l=ee){const u=[a,l];return r.add(u),r.size===1&&(n=t(i,o)||ee),a(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function Ye(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Xi(n,(s,a)=>{let l=!1;const u=[];let c=0,f=ee;const d=()=>{if(c)return;f();const S=t(r?u[0]:u,s,a);o?s(S):f=_t(S)?S:ee},b=i.map((S,x)=>cr(S,F=>{u[x]=F,c&=~(1<<x),l&&d()},()=>{c|=1<<x}));return l=!0,d(),function(){at(b),f(),l=!1}})}var Vi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wi=function(t){return Yi(t)&&!qi(t)};function Yi(e){return!!e&&typeof e=="object"}function qi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eo(e)}var Ki=typeof Symbol=="function"&&Symbol.for,$i=Ki?Symbol.for("react.element"):60103;function eo(e){return e.$$typeof===$i}function to(e){return Array.isArray(e)?[]:{}}function ot(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xe(to(e),e,t):e}function no(e,t,n){return e.concat(t).map(function(r){return ot(r,n)})}function ro(e,t){if(!t.customMerge)return Xe;var n=t.customMerge(e);return typeof n=="function"?n:Xe}function io(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function zn(e){return Object.keys(e).concat(io(e))}function Ir(e,t){try{return t in e}catch(n){return!1}}function oo(e,t){return Ir(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function so(e,t,n){var r={};return n.isMergeableObject(e)&&zn(e).forEach(function(i){r[i]=ot(e[i],n)}),zn(t).forEach(function(i){oo(e,i)||(Ir(e,i)&&n.isMergeableObject(t[i])?r[i]=ro(i,n)(e[i],t[i],n):r[i]=ot(t[i],n))}),r}function Xe(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||no,n.isMergeableObject=n.isMergeableObject||Wi,n.cloneUnlessOtherwiseSpecified=ot;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):so(e,t,n):ot(t,n)}Xe.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Xe(r,i,n)},{})};var ao=Xe,uo=ao;const lo=Zi(uo);var cn=function(e,t){return cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},cn(e,t)};function Lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ae=function(){return Ae=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ae.apply(this,arguments)};function ho(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Kt(e,t){var n=t&&t.cache?t.cache:Ao,r=t&&t.serializer?t.serializer:go,i=t&&t.strategy?t.strategy:po;return i(e,{cache:n,serializer:r})}function fo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function co(e,t,n,r){var i=fo(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function Sr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function Br(e,t,n,r,i){return n.bind(t,e,r,i)}function po(e,t){var n=e.length===1?co:Sr;return Br(e,this,n,t.cache.create(),t.serializer)}function mo(e,t){return Br(e,this,Sr,t.cache.create(),t.serializer)}var go=function(){return JSON.stringify(arguments)},vo=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Ao={create:function(){return new vo}},$t={variadic:mo},Ct=function(){return Ct=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ct.apply(this,arguments)};var R;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(R||(R={}));var j;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(j||(j={}));var Ve;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ve||(Ve={}));function Jn(e){return e.type===j.literal}function bo(e){return e.type===j.argument}function Tr(e){return e.type===j.number}function Cr(e){return e.type===j.date}function Hr(e){return e.type===j.time}function Rr(e){return e.type===j.select}function Or(e){return e.type===j.plural}function Eo(e){return e.type===j.pound}function _r(e){return e.type===j.tag}function Nr(e){return!!(e&&typeof e=="object"&&e.type===Ve.number)}function dn(e){return!!(e&&typeof e=="object"&&e.type===Ve.dateTime)}var Pr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yo=/(?:[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;function wo(e){var t={};return e.replace(yo,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""}),t}var X=function(){return X=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},X.apply(this,arguments)};var xo=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Io(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(xo).filter(function(d){return d.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var f=c[u];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function So(e){return e.replace(/^(.*?)-/,"")}var Xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Dr=/^(@+)?(\+|#+)?[rs]?$/g,Bo=/(\*)(0+)|(#+)(0+)|(0+)/g,Lr=/^(0+)$/;function Vn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Dr,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Mr(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 To(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zn(e){var t={},n=Mr(e);return n||t}function Co(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=So(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=X(X(X({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return X(X({},l),Zn(u))},{}));continue;case"engineering":t=X(X(X({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return X(X({},l),Zn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Bo,function(l,u,c,f,d,b){if(u)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Lr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Xn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xn,function(l,u,c,f,d,b){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&b?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+b.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=X(X({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=X(X({},t),Vn(o)));continue}if(Dr.test(i.stem)){t=X(X({},t),Vn(i.stem));continue}var s=Mr(i.stem);s&&(t=X(X({},t),s));var a=To(i.stem);a&&(t=X(X({},t),a))}return t}var Et={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ho(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Ro(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function Ro(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Et[r||""]||Et[n||""]||Et["".concat(n,"-001")]||Et["001"];return i[0]}var en,Oo=new RegExp("^".concat(Pr.source,"*")),_o=new RegExp("".concat(Pr.source,"*$"));function _(e,t){return{start:e,end:t}}var No=!!String.prototype.startsWith&&"_a".startsWith("a",1),Po=!!String.fromCodePoint,Do=!!Object.fromEntries,Lo=!!String.prototype.codePointAt,Mo=!!String.prototype.trimStart,ko=!!String.prototype.trimEnd,Uo=!!Number.isSafeInteger,Fo=Uo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pn=!0;try{var Go=Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pn=((en=Go.exec("a"))===null||en===void 0?void 0:en[0])==="a"}catch(e){pn=!1}var Wn=No?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},mn=Po?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Yn=Do?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},kr=Lo?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},jo=Mo?function(t){return t.trimStart()}:function(t){return t.replace(Oo,"")},Qo=ko?function(t){return t.trimEnd()}:function(t){return t.replace(_o,"")};function Ur(e,t){return new RegExp(e,t)}var gn;if(pn){var qn=Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gn=function(t,n){var r;qn.lastIndex=n;var i=qn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else gn=function(t,n){for(var r=[];;){var i=kr(t,n);if(i===void 0||Fr(i)||Vo(i))break;r.push(i),n+=i>=65536?2:1}return mn.apply(void 0,r)};var zo=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:j.pound,location:_(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(R.UNMATCHED_CLOSING_TAG,_(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&vn(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:j.literal,value:"<".concat(i,"/>"),location:_(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!vn(this.char()))return this.error(R.INVALID_TAG,_(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(R.UNMATCHED_CLOSING_TAG,_(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:i,children:s,location:_(r,this.clonePosition())},err:null}:this.error(R.INVALID_TAG,_(a,this.clonePosition())))}else return this.error(R.UNCLOSED_TAG,_(r,this.clonePosition()))}else return this.error(R.INVALID_TAG,_(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Xo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=_(r,this.clonePosition());return{val:{type:j.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Jo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return mn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),mn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,_(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(R.EMPTY_ARGUMENT,_(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(R.MALFORMED_ARGUMENT,_(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,_(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:i,location:_(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,_(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(R.MALFORMED_ARGUMENT,_(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=gn(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=_(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(R.EXPECT_ARGUMENT_TYPE,_(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=Qo(f.val);if(d.length===0)return this.error(R.EXPECT_ARGUMENT_STYLE,_(this.clonePosition(),this.clonePosition()));var b=_(c,this.clonePosition());u={style:d,styleLocation:b}}var S=this.tryParseArgumentClose(i);if(S.err)return S;var x=_(i,this.clonePosition());if(u&&Wn(u==null?void 0:u.style,"::",0)){var F=jo(u.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(F,u.styleLocation);return f.err?f:{val:{type:j.number,value:r,location:x,style:f.val},err:null}}else{if(F.length===0)return this.error(R.EXPECT_DATE_TIME_SKELETON,x);var Q=F;this.locale&&(Q=Ho(F,this.locale));var d={type:Ve.dateTime,pattern:Q,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?wo(Q):{}},N=a==="date"?j.date:j.time;return{val:{type:N,value:r,location:x,style:d},err:null}}}return{val:{type:a==="number"?j.number:a==="date"?j.date:j.time,value:r,location:x,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS,_(T,Ct({},T)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),V=0;if(a!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),k=this.parseIdentifierIfPossible(),V=f.val}var W=this.tryParsePluralOrSelectOptions(t,a,n,k);if(W.err)return W;var S=this.tryParseArgumentClose(i);if(S.err)return S;var B=_(i,this.clonePosition());return a==="select"?{val:{type:j.select,value:r,options:Yn(W.val),location:B},err:null}:{val:{type:j.plural,value:r,options:Yn(W.val),offset:V,pluralType:a==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(R.INVALID_ARGUMENT_TYPE,_(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,_(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Io(t)}catch(i){return this.error(R.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ve.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Co(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR,R.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=_(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?R.DUPLICATE_SELECT_ARGUMENT_SELECTOR:R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_(this.clonePosition(),this.clonePosition()));var S=this.parseMessage(t+1,n,r);if(S.err)return S;var x=this.tryParseArgumentClose(b);if(x.err)return x;a.push([u,{value:S.val,location:_(b,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(n==="select"?R.EXPECT_SELECT_ARGUMENT_SELECTOR:R.EXPECT_PLURAL_ARGUMENT_SELECTOR,_(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(R.MISSING_OTHER_CLAUSE,_(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=_(i,this.clonePosition());return o?(s*=r,Fo(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=kr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Wn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Fr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function vn(e){return e>=97&&e<=122||e>=65&&e<=90}function Jo(e){return vn(e)||e===47}function Xo(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Fr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Vo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function An(e){e.forEach(function(t){if(delete t.location,Rr(t)||Or(t))for(var n in t.options)delete t.options[n].location,An(t.options[n].value);else Tr(t)&&Nr(t.style)||(Cr(t)||Hr(t))&&dn(t.style)?delete t.style.location:_r(t)&&An(t.children)})}function Zo(e,t){t===void 0&&(t={}),t=Ct({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new zo(e,t).parse();if(n.err){var r=SyntaxError(R[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||An(n.val),n.val}var Ze;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ze||(Ze={}));var Mt=function(e){Lt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Kn=function(e){Lt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ze.INVALID_VALUE,o)||this}return t}(Mt),Wo=function(e){Lt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ze.INVALID_VALUE,i)||this}return t}(Mt),Yo=function(e){Lt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ze.MISSING_VALUE,r)||this}return t}(Mt),se;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(se||(se={}));function qo(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==se.literal||n.type!==se.literal?t.push(n):r.value+=n.value,t},[])}function Ko(e){return typeof e=="function"}function xt(e,t,n,r,i,o,s){if(e.length===1&&Jn(e[0]))return[{type:se.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Jn(c)){a.push({type:se.literal,value:c.value});continue}if(Eo(c)){typeof o=="number"&&a.push({type:se.literal,value:n.getNumberFormat(t).format(o)});continue}var f=c.value;if(!(i&&f in i))throw new Yo(f,s);var d=i[f];if(bo(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?se.literal:se.object,value:d});continue}if(Cr(c)){var b=typeof c.style=="string"?r.date[c.style]:dn(c.style)?c.style.parsedOptions:void 0;a.push({type:se.literal,value:n.getDateTimeFormat(t,b).format(d)});continue}if(Hr(c)){var b=typeof c.style=="string"?r.time[c.style]:dn(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:se.literal,value:n.getDateTimeFormat(t,b).format(d)});continue}if(Tr(c)){var b=typeof c.style=="string"?r.number[c.style]:Nr(c.style)?c.style.parsedOptions:void 0;b&&b.scale&&(d=d*(b.scale||1)),a.push({type:se.literal,value:n.getNumberFormat(t,b).format(d)});continue}if(_r(c)){var S=c.children,x=c.value,F=i[x];if(!Ko(F))throw new Wo(x,"function",s);var Q=xt(S,t,n,r,i,o),N=F(Q.map(function(V){return V.value}));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map(function(V){return{type:typeof V=="string"?se.literal:se.object,value:V}}))}if(Rr(c)){var T=c.options[d]||c.options.other;if(!T)throw new Kn(c.value,d,Object.keys(c.options),s);a.push.apply(a,xt(T.value,t,n,r,i));continue}if(Or(c)){var T=c.options["=".concat(d)];if(!T){if(!Intl.PluralRules)throw new Mt(`Intl.PluralRules is not available in this environment.
19
19
  Try polyfilling it using "@formatjs/intl-pluralrules"
20
- `,Ze.MISSING_INTL_API,s);var k=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));T=c.options[k]||c.options.other}if(!T)throw new Kn(c.value,d,Object.keys(c.options),s);a.push.apply(a,xt(T.value,t,n,r,i,d-(c.offset||0)));continue}}return qo(a)}function $o(e,t){return t?Ae(Ae(Ae({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Ae(Ae({},e[r]),t[r]||{}),n},{})):e}function es(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=$o(e[r],t[r]),n},Ae({},e)):e}function tn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ts(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,qt([void 0],n,!1)))},{cache:tn(e.number),strategy:$t.variadic}),getDateTimeFormat:Kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,qt([void 0],n,!1)))},{cache:tn(e.dateTime),strategy:$t.variadic}),getPluralRules:Kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,qt([void 0],n,!1)))},{cache:tn(e.pluralRules),strategy:$t.variadic})}}var ns=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(f,d){return!f.length||d.type!==se.literal||typeof f[f.length-1]!="string"?f.push(d.value):f[f.length-1]+=d.value,f},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return xt(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=ho(s,["formatters"]);this.ast=e.__parse(t,Ae(Ae({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=es(e.formats,r),this.formatters=i&&i.formatters||ts(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Zo,e.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"}}},e}();function rs(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Ce={},is=(e,t,n)=>n&&(t in Ce||(Ce[t]={}),e in Ce[t]||(Ce[t][e]=n),n),Gr=(e,t)=>{if(t==null)return;if(t in Ce&&e in Ce[t])return Ce[t][e];const n=kt(t);for(let r=0;r<n.length;r++){const i=n[r],o=ss(i,e);if(o)return is(e,t,o)}};let Cn;const qe=Dt({});function os(e){return Cn[e]||null}function jr(e){return e in Cn}function ss(e,t){if(!jr(e))return null;const n=os(e);return rs(n,t)}function as(e){if(e==null)return;const t=kt(e);for(let n=0;n<t.length;n++){const r=t[n];if(jr(r))return r}}function Qr(e,...t){delete Ce[e],qe.update(n=>(n[e]=lo.all([n[e]||{},...t]),n))}Ye([qe],([e])=>Object.keys(e));qe.subscribe(e=>Cn=e);const It={};function us(e,t){It[e].delete(t),It[e].size===0&&delete It[e]}function zr(e){return It[e]}function ls(e){return kt(e).map(t=>{const n=zr(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function bn(e){return e==null?!1:kt(e).some(t=>{var n;return(n=zr(t))==null?void 0:n.size})}function hs(e,t){return Promise.all(t.map(r=>(us(e,r),r().then(i=>i.default||i)))).then(r=>Qr(e,...r))}const tt={};function Jr(e){if(!bn(e))return e in tt?tt[e]:Promise.resolve();const t=ls(e);return tt[e]=Promise.all(t.map(([n,r])=>hs(n,r))).then(()=>{if(bn(e))return Jr(e);delete tt[e]}),tt[e]}const fs={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"}}},cs={fallbackLocale:null,loadingDelay:200,formats:fs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ds=cs;function We(){return ds}const nn=Dt(!1);var ps=Object.defineProperty,ms=Object.defineProperties,gs=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,vs=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,er=(e,t,n)=>t in e?ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bs=(e,t)=>{for(var n in t||(t={}))vs.call(t,n)&&er(e,n,t[n]);if($n)for(var n of $n(t))As.call(t,n)&&er(e,n,t[n]);return e},Es=(e,t)=>ms(e,gs(t));let En;const Ht=Dt(null);function tr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function kt(e,t=We().fallbackLocale){const n=tr(e);return t?[...new Set([...n,...tr(t)])]:n}function De(){return En!=null?En:void 0}Ht.subscribe(e=>{En=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ys=e=>{if(e&&as(e)&&bn(e)){const{loadingDelay:t}=We();let n;return typeof window!="undefined"&&De()!=null&&t?n=window.setTimeout(()=>nn.set(!0),t):nn.set(!0),Jr(e).then(()=>{Ht.set(e)}).finally(()=>{clearTimeout(n),nn.set(!1)})}return Ht.set(e)},Re=Es(bs({},Ht),{set:ys}),Ut=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var ws=Object.defineProperty,Rt=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,nr=(e,t,n)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hn=(e,t)=>{for(var n in t||(t={}))Xr.call(t,n)&&nr(e,n,t[n]);if(Rt)for(var n of Rt(t))Vr.call(t,n)&&nr(e,n,t[n]);return e},Ke=(e,t)=>{var n={};for(var r in e)Xr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rt)for(var r of Rt(e))t.indexOf(r)<0&&Vr.call(e,r)&&(n[r]=e[r]);return n};const st=(e,t)=>{const{formats:n}=We();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xs=Ut(e=>{var t=e,{locale:n,format:r}=t,i=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=st("number",r)),new Intl.NumberFormat(n,i)}),Is=Ut(e=>{var t=e,{locale:n,format:r}=t,i=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=st("date",r):Object.keys(i).length===0&&(i=st("date","short")),new Intl.DateTimeFormat(n,i)}),Ss=Ut(e=>{var t=e,{locale:n,format:r}=t,i=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=st("time",r):Object.keys(i).length===0&&(i=st("time","short")),new Intl.DateTimeFormat(n,i)}),Bs=(e={})=>{var t=e,{locale:n=De()}=t,r=Ke(t,["locale"]);return xs(Hn({locale:n},r))},Ts=(e={})=>{var t=e,{locale:n=De()}=t,r=Ke(t,["locale"]);return Is(Hn({locale:n},r))},Cs=(e={})=>{var t=e,{locale:n=De()}=t,r=Ke(t,["locale"]);return Ss(Hn({locale:n},r))},Hs=Ut((e,t=De())=>new ns(e,t,We().formats,{ignoreTag:We().ignoreTag})),Rs=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=De(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Gr(e,l);if(!c)c=(o=(i=(r=(n=We()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let f=c;try{f=Hs(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},Os=(e,t)=>Cs(t).format(e),_s=(e,t)=>Ts(t).format(e),Ns=(e,t)=>Bs(t).format(e),Ps=(e,t=De())=>Gr(e,t),Ds=Ye([Re,qe],()=>Rs);Ye([Re],()=>Os);Ye([Re],()=>_s);Ye([Re],()=>Ns);Ye([Re,qe],()=>Ps);window.emWidgets={topic:Ji};const Zr=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)),Ls=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const{userAgent:Ms}=window.navigator;Zr(window.navigator.userAgent);Ls(Ms);const rr=e=>{switch(e){case"Unstarted":return"Scheduled";case"Running":return"Ongoing";case"Closing":return"Finished";case"Closed":return"Finished";default:console.error("matching status failed")}},Ot={en:{500:"500 - Internal server error",scheduled:"Upcoming",ongoing:"Running",finished:"Closed",last:"last",loading:"Loading, please wait ...",noTournaments:"No tournaments found",nothing:"Nothing to show here.",name:"Name",rank:"Rank",enddate:"End Date",prize:"Prize",myTournaments:"My Tournaments"},hr:{500:"500 - Interna pogreška poslužitelja",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",last:"zadnje",loading:"Učitavanje, molimo pričekajte ...",noTournaments:"Nema pronađenih turnira",nothing:"Nema ničega za prikazati ovdje.",name:"Ime",rank:"Poredak",enddate:"Datum završetka",prize:"Nagrada",myTournaments:"Moji turniri"},"zh-hk":{500:"500内部服务器错误",scheduled:"即将到来",ongoing:"跑步",finished:"关闭",last:"最后的",loading:"加载请稍候 ...",noTournaments:"没有找到比赛",nothing:"这里没有什么可显示的。",name:"姓名",rank:"秩",enddate:"结束日期",prize:"奖",myTournaments:"我的锦标赛"},fr:{500:"500 - Erreur interne du serveur",scheduled:"A venir",ongoing:"Fonctionnement",finished:"Fermé",last:"dernière",loading:"Chargement, veuillez patienter ...",noTournaments:"Aucun tournoi trouvé",nothing:"Rien à montrer ici.",name:"Nom",rank:"Rang",enddate:"Date de fin",prize:"Prix",myTournaments:"Mes tournois"},ro:{500:"500 - Eroare internă de server",scheduled:"Urmează",ongoing:"Rulează",finished:"Închis",last:"ultimul",loading:"Se încarcă...",noTournaments:"Niciun turneu",nothing:"Niciun turneu disponibil aici",name:"Nume",rank:"Poziție",enddate:"Data finalizării",prize:"Premiu",myTournaments:"Turneele Mele"},tr:{500:"500 - Dahili sunucu hatası",scheduled:"Yaklaşan",ongoing:"Devam eden",finished:"Kapalı",last:"son",loading:"Yükleniyor, lütfen bekleyin ...",noTournaments:"Turnuva bulunamadı",nothing:"Burada gösterilecek bir şey yok.",prizes:"Ödüller",name:"Ad",rank:"Sıra",enddate:"Bitiş Tarihi",prize:"Ödül",myTournaments:"Turnuvalarım"},el:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",last:"τελευταίος",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά",nothing:"Δεν υπάρχει τίποτα εδώ.",prizes:"Έπαθλα",name:"Ονομα",rank:"Τάξη",enddate:"Ημερομηνία λήξης",prize:"Βραβείο",myTournaments:"Τα τουρνουά μου"},es:{500:"500 - Error servidor interno",scheduled:"Próximamente",ongoing:"En vivo",finished:"Cerrado",last:"último",loading:"Cargando…",noTournaments:"No se encontraron Torneos",nothing:"Nada que mostrar aquí.",name:"Nombre",rank:"Ranking",enddate:"Fecha fin",prize:"Premio",myTournaments:"Mis Torneos"},hu:{500:"500 - Belső szerver hiba",scheduled:"Közelgő",ongoing:"Jelenleg folyó",finished:"Lezárt",last:"Legutóbbi",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található",nothing:"Nincs megjelenítendő adat.",name:"Név",rank:"rangsor",enddate:"Befejezés dátuma",prize:"Díj",myTournaments:"Versenyeim"},"en-us":{500:"500 - Internal server error",scheduled:"Upcoming",ongoing:"Running",finished:"Closed",last:"last",loading:"Loading, please wait ...",noTournaments:"No tournaments found",nothing:"Nothing to show here.",name:"Name",rank:"Rank",enddate:"End Date",prize:"Prize",myTournaments:"My Tournaments"}};function Wr({withLocale:e,translations:t}){Re.subscribe(n=>{n==null&&(qe.set(t),Re.set(e))})}function yn(e,t){Qr(e,t)}function ks(e){Re.set(e)}const Us=()=>{Wr({withLocale:"en",translations:{}}),Object.keys(Ot).forEach(e=>{yn(e,Ot[e])})};var wn={exports:{}};/** @license
20
+ `,Ze.MISSING_INTL_API,s);var k=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));T=c.options[k]||c.options.other}if(!T)throw new Kn(c.value,d,Object.keys(c.options),s);a.push.apply(a,xt(T.value,t,n,r,i,d-(c.offset||0)));continue}}return qo(a)}function $o(e,t){return t?Ae(Ae(Ae({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Ae(Ae({},e[r]),t[r]||{}),n},{})):e}function es(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=$o(e[r],t[r]),n},Ae({},e)):e}function tn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ts(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,qt([void 0],n,!1)))},{cache:tn(e.number),strategy:$t.variadic}),getDateTimeFormat:Kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,qt([void 0],n,!1)))},{cache:tn(e.dateTime),strategy:$t.variadic}),getPluralRules:Kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,qt([void 0],n,!1)))},{cache:tn(e.pluralRules),strategy:$t.variadic})}}var ns=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(f,d){return!f.length||d.type!==se.literal||typeof f[f.length-1]!="string"?f.push(d.value):f[f.length-1]+=d.value,f},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return xt(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=ho(s,["formatters"]);this.ast=e.__parse(t,Ae(Ae({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=es(e.formats,r),this.formatters=i&&i.formatters||ts(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Zo,e.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"}}},e}();function rs(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Ce={},is=(e,t,n)=>n&&(t in Ce||(Ce[t]={}),e in Ce[t]||(Ce[t][e]=n),n),Gr=(e,t)=>{if(t==null)return;if(t in Ce&&e in Ce[t])return Ce[t][e];const n=kt(t);for(let r=0;r<n.length;r++){const i=n[r],o=ss(i,e);if(o)return is(e,t,o)}};let Cn;const qe=Dt({});function os(e){return Cn[e]||null}function jr(e){return e in Cn}function ss(e,t){if(!jr(e))return null;const n=os(e);return rs(n,t)}function as(e){if(e==null)return;const t=kt(e);for(let n=0;n<t.length;n++){const r=t[n];if(jr(r))return r}}function Qr(e,...t){delete Ce[e],qe.update(n=>(n[e]=lo.all([n[e]||{},...t]),n))}Ye([qe],([e])=>Object.keys(e));qe.subscribe(e=>Cn=e);const It={};function us(e,t){It[e].delete(t),It[e].size===0&&delete It[e]}function zr(e){return It[e]}function ls(e){return kt(e).map(t=>{const n=zr(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function bn(e){return e==null?!1:kt(e).some(t=>{var n;return(n=zr(t))==null?void 0:n.size})}function hs(e,t){return Promise.all(t.map(r=>(us(e,r),r().then(i=>i.default||i)))).then(r=>Qr(e,...r))}const tt={};function Jr(e){if(!bn(e))return e in tt?tt[e]:Promise.resolve();const t=ls(e);return tt[e]=Promise.all(t.map(([n,r])=>hs(n,r))).then(()=>{if(bn(e))return Jr(e);delete tt[e]}),tt[e]}const fs={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"}}},cs={fallbackLocale:null,loadingDelay:200,formats:fs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ds=cs;function We(){return ds}const nn=Dt(!1);var ps=Object.defineProperty,ms=Object.defineProperties,gs=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,vs=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,er=(e,t,n)=>t in e?ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bs=(e,t)=>{for(var n in t||(t={}))vs.call(t,n)&&er(e,n,t[n]);if($n)for(var n of $n(t))As.call(t,n)&&er(e,n,t[n]);return e},Es=(e,t)=>ms(e,gs(t));let En;const Ht=Dt(null);function tr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function kt(e,t=We().fallbackLocale){const n=tr(e);return t?[...new Set([...n,...tr(t)])]:n}function De(){return En!=null?En:void 0}Ht.subscribe(e=>{En=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ys=e=>{if(e&&as(e)&&bn(e)){const{loadingDelay:t}=We();let n;return typeof window!="undefined"&&De()!=null&&t?n=window.setTimeout(()=>nn.set(!0),t):nn.set(!0),Jr(e).then(()=>{Ht.set(e)}).finally(()=>{clearTimeout(n),nn.set(!1)})}return Ht.set(e)},Re=Es(bs({},Ht),{set:ys}),Ut=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var ws=Object.defineProperty,Rt=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,nr=(e,t,n)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hn=(e,t)=>{for(var n in t||(t={}))Xr.call(t,n)&&nr(e,n,t[n]);if(Rt)for(var n of Rt(t))Vr.call(t,n)&&nr(e,n,t[n]);return e},Ke=(e,t)=>{var n={};for(var r in e)Xr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rt)for(var r of Rt(e))t.indexOf(r)<0&&Vr.call(e,r)&&(n[r]=e[r]);return n};const st=(e,t)=>{const{formats:n}=We();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xs=Ut(e=>{var t=e,{locale:n,format:r}=t,i=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=st("number",r)),new Intl.NumberFormat(n,i)}),Is=Ut(e=>{var t=e,{locale:n,format:r}=t,i=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=st("date",r):Object.keys(i).length===0&&(i=st("date","short")),new Intl.DateTimeFormat(n,i)}),Ss=Ut(e=>{var t=e,{locale:n,format:r}=t,i=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=st("time",r):Object.keys(i).length===0&&(i=st("time","short")),new Intl.DateTimeFormat(n,i)}),Bs=(e={})=>{var t=e,{locale:n=De()}=t,r=Ke(t,["locale"]);return xs(Hn({locale:n},r))},Ts=(e={})=>{var t=e,{locale:n=De()}=t,r=Ke(t,["locale"]);return Is(Hn({locale:n},r))},Cs=(e={})=>{var t=e,{locale:n=De()}=t,r=Ke(t,["locale"]);return Ss(Hn({locale:n},r))},Hs=Ut((e,t=De())=>new ns(e,t,We().formats,{ignoreTag:We().ignoreTag})),Rs=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=De(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Gr(e,l);if(!c)c=(o=(i=(r=(n=We()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let f=c;try{f=Hs(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},Os=(e,t)=>Cs(t).format(e),_s=(e,t)=>Ts(t).format(e),Ns=(e,t)=>Bs(t).format(e),Ps=(e,t=De())=>Gr(e,t),Ds=Ye([Re,qe],()=>Rs);Ye([Re],()=>Os);Ye([Re],()=>_s);Ye([Re],()=>Ns);Ye([Re,qe],()=>Ps);window.emWidgets={topic:Ji};const Zr=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)),Ls=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const{userAgent:Ms}=window.navigator;Zr(window.navigator.userAgent);Ls(Ms);const rr=e=>{switch(e){case"Unstarted":return"Scheduled";case"Running":return"Ongoing";case"Closing":return"Finished";case"Closed":return"Finished";default:console.error("matching status failed")}},Ot={en:{500:"500 - Internal server error",scheduled:"Upcoming",ongoing:"Running",finished:"Closed",last:"last",loading:"Loading, please wait ...",noTournaments:"No tournaments found",nothing:"Nothing to show here.",name:"Name",rank:"Rank",enddate:"End Date",prize:"Prize",myTournaments:"My Tournaments"},hr:{500:"500 - Interna pogreška poslužitelja",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",last:"zadnje",loading:"Učitavanje, molimo pričekajte ...",noTournaments:"Nema pronađenih turnira",nothing:"Nema ničega za prikazati ovdje.",name:"Ime",rank:"Poredak",enddate:"Datum završetka",prize:"Nagrada",myTournaments:"Moji turniri"},"zh-hk":{500:"500内部服务器错误",scheduled:"即将到来",ongoing:"跑步",finished:"关闭",last:"最后的",loading:"加载请稍候 ...",noTournaments:"没有找到比赛",nothing:"这里没有什么可显示的。",name:"姓名",rank:"秩",enddate:"结束日期",prize:"奖",myTournaments:"我的锦标赛"},fr:{500:"500 - Erreur interne du serveur",scheduled:"A venir",ongoing:"Fonctionnement",finished:"Fermé",last:"dernière",loading:"Chargement, veuillez patienter ...",noTournaments:"Aucun tournoi trouvé",nothing:"Rien à montrer ici.",name:"Nom",rank:"Rang",enddate:"Date de fin",prize:"Prix",myTournaments:"Mes tournois"},ro:{500:"500 - Eroare internă de server",scheduled:"Urmează",ongoing:"Rulează",finished:"Închis",last:"ultimul",loading:"Se încarcă...",noTournaments:"Niciun turneu",nothing:"Niciun turneu disponibil aici",name:"Nume",rank:"Poziție",enddate:"Data finalizării",prize:"Premiu",myTournaments:"Turneele Mele"},tr:{500:"500 - Dahili sunucu hatası",scheduled:"Yaklaşan",ongoing:"Devam eden",finished:"Kapalı",last:"son",loading:"Yükleniyor, lütfen bekleyin ...",noTournaments:"Turnuva bulunamadı",nothing:"Burada gösterilecek bir şey yok.",prizes:"Ödüller",name:"Ad",rank:"Sıra",enddate:"Bitiş Tarihi",prize:"Ödül",myTournaments:"Turnuvalarım"},el:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",last:"τελευταίος",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά",nothing:"Δεν υπάρχει τίποτα εδώ.",prizes:"Έπαθλα",name:"Ονομα",rank:"Τάξη",enddate:"Ημερομηνία λήξης",prize:"Βραβείο",myTournaments:"Τα τουρνουά μου"},es:{500:"500 - Error servidor interno",scheduled:"Próximamente",ongoing:"En vivo",finished:"Cerrado",last:"último",loading:"Cargando…",noTournaments:"No se encontraron Torneos",nothing:"Nada que mostrar aquí.",name:"Nombre",rank:"Ranking",enddate:"Fecha fin",prize:"Premio",myTournaments:"Mis Torneos"},hu:{500:"500 - Belső szerver hiba",scheduled:"Közelgő",ongoing:"Jelenleg folyó",finished:"Lezárt",last:"Legutóbbi",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található",nothing:"Nincs megjelenítendő adat.",name:"Név",rank:"rangsor",enddate:"Befejezés dátuma",prize:"Díj",myTournaments:"Versenyeim"},ru:{500:"500 - Внутренняя ошибка сервера",scheduled:"Предстоящие",ongoing:"Идёт",finished:"Завершено",last:"последний",loading:"Загрузка, пожалуйста подождите ...",noTournaments:"Турниры не найдены",nothing:"Здесь нечего показать.",name:"Название",rank:"Место",enddate:"Дата окончания",prize:"Приз",myTournaments:"Мои турниры"},az:{500:"500 - Daxili server xətası",scheduled:"Gələcək",ongoing:"Davam edir",finished:"Bağlıdır",last:"sonuncu",loading:"Yüklənir, zəhmət olmasa gözləyin ...",noTournaments:"Turnir tapılmadı",nothing:"Burada göstəriləcək heç nə yoxdur.",name:"Ad",rank:"Sıra",enddate:"Bitmə tarixi",prize:"Mükafat",myTournaments:"Mənim Turnirlərim"},"en-us":{500:"500 - Internal server error",scheduled:"Upcoming",ongoing:"Running",finished:"Closed",last:"last",loading:"Loading, please wait ...",noTournaments:"No tournaments found",nothing:"Nothing to show here.",name:"Name",rank:"Rank",enddate:"End Date",prize:"Prize",myTournaments:"My Tournaments"}};function Wr({withLocale:e,translations:t}){Re.subscribe(n=>{n==null&&(qe.set(t),Re.set(e))})}function yn(e,t){Qr(e,t)}function ks(e){Re.set(e)}const Us=()=>{Wr({withLocale:"en",translations:{}}),Object.keys(Ot).forEach(e=>{yn(e,Ot[e])})};var wn={exports:{}};/** @license
21
21
  * eventsource.js
22
22
  * Available under MIT License (MIT)
23
23
  * https://github.com/Yaffle/EventSource/
24
24
  */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,a=n.ActiveXObject,l=n.EventSource,u=n.document,c=n.Promise,f=n.fetch,d=n.Response,b=n.TextDecoder,S=n.TextEncoder,x=n.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(h){u.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(h){function m(){}return m.prototype=h,new m}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var F=f;f=function(h,m){var v=m.signal;return F(h,{headers:m.headers,credentials:m.credentials,cache:m.cache}).then(function(p){var y=p.body.getReader();return v._reader=y,v._aborted&&v._reader.cancel(),{status:p.status,statusText:p.statusText,headers:p.headers,body:{getReader:function(){return y}}}})},x=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function Q(){this.bitsNeeded=0,this.codePoint=0}Q.prototype.decode=function(h){function m(P,U,w){if(w===1)return P>=128>>U&&P<<U<=2047;if(w===2)return P>=2048>>U&&P<<U<=55295||P>=57344>>U&&P<<U<=65535;if(w===3)return P>=65536>>U&&P<<U<=1114111;throw new Error}function v(P,U){if(P===6*1)return U>>6>15?3:U>31?2:1;if(P===6*2)return U>15?3:2;if(P===6*3)return 3;throw new Error}for(var p=65533,y="",A=this.bitsNeeded,C=this.codePoint,z=0;z<h.length;z+=1){var O=h[z];A!==0&&(O<128||O>191||!m(C<<6|O&63,A-6,v(A,C)))&&(A=0,C=p,y+=String.fromCharCode(C)),A===0?(O>=0&&O<=127?(A=0,C=O):O>=192&&O<=223?(A=6*1,C=O&31):O>=224&&O<=239?(A=6*2,C=O&15):O>=240&&O<=247?(A=6*3,C=O&7):(A=0,C=p),A!==0&&!m(C,A,v(A,C))&&(A=0,C=p)):(A-=6,C=C<<6|O&63),A===0&&(C<=65535?y+=String.fromCharCode(C):(y+=String.fromCharCode(55296+(C-65535-1>>10)),y+=String.fromCharCode(56320+(C-65535-1&1023))))}return this.bitsNeeded=A,this.codePoint=C,y};var N=function(){try{return new b().decode(new S().encode("test"),{stream:!0})==="test"}catch(h){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+h)}return!1};(b==null||S==null||!N())&&(b=Q);var T=function(){};function k(h){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=T,this.onload=T,this.onerror=T,this.onreadystatechange=T,this._contentType="",this._xhr=h,this._sendTimeout=0,this._abort=T}k.prototype.open=function(h,m){this._abort(!0);var v=this,p=this._xhr,y=1,A=0;this._abort=function(w){v._sendTimeout!==0&&(i(v._sendTimeout),v._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,p.onload=T,p.onerror=T,p.onabort=T,p.onprogress=T,p.onreadystatechange=T,p.abort(),A!==0&&(i(A),A=0),w||(v.readyState=4,v.onabort(null),v.onreadystatechange())),y=0};var C=function(){if(y===1){var w=0,J="",Ee=void 0;if("contentType"in p)w=200,J="OK",Ee=p.contentType;else try{w=p.status,J=p.statusText,Ee=p.getResponseHeader("Content-Type")}catch($e){w=0,J="",Ee=void 0}w!==0&&(y=2,v.readyState=2,v.status=w,v.statusText=J,v._contentType=Ee,v.onreadystatechange())}},z=function(){if(C(),y===2||y===3){y=3;var w="";try{w=p.responseText}catch(J){}v.readyState=3,v.responseText=w,v.onprogress()}},O=function(w,J){if((J==null||J.preventDefault==null)&&(J={preventDefault:T}),z(),y===1||y===2||y===3){if(y=4,A!==0&&(i(A),A=0),v.readyState=4,w==="load")v.onload(J);else if(w==="error")v.onerror(J);else if(w==="abort")v.onabort(J);else throw new TypeError;v.onreadystatechange()}},P=function(w){p!=null&&(p.readyState===4?(!("onload"in p)||!("onerror"in p)||!("onabort"in p))&&O(p.responseText===""?"error":"load",w):p.readyState===3?"onprogress"in p||z():p.readyState===2&&C())},U=function(){A=r(function(){U()},500),p.readyState===3&&z()};"onload"in p&&(p.onload=function(w){O("load",w)}),"onerror"in p&&(p.onerror=function(w){O("error",w)}),"onabort"in p&&(p.onabort=function(w){O("abort",w)}),"onprogress"in p&&(p.onprogress=z),"onreadystatechange"in p&&(p.onreadystatechange=function(w){P(w)}),("contentType"in p||!("ontimeout"in o.prototype))&&(m+=(m.indexOf("?")===-1?"?":"&")+"padding=true"),p.open(h,m,!0),"readyState"in p&&(A=r(function(){U()},0))},k.prototype.abort=function(){this._abort(!1)},k.prototype.getResponseHeader=function(h){return this._contentType},k.prototype.setRequestHeader=function(h,m){var v=this._xhr;"setRequestHeader"in v&&v.setRequestHeader(h,m)},k.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},k.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var h=this;h._sendTimeout=r(function(){h._sendTimeout=0,h.send()},4);return}var m=this._xhr;"withCredentials"in m&&(m.withCredentials=this.withCredentials);try{m.send(void 0)}catch(v){throw v}};function V(h){return h.replace(/[A-Z]/g,function(m){return String.fromCharCode(m.charCodeAt(0)+32)})}function W(h){for(var m=Object.create(null),v=h.split(`\r
25
25
  `),p=0;p<v.length;p+=1){var y=v[p],A=y.split(": "),C=A.shift(),z=A.join(": ");m[V(C)]=z}this._map=m}W.prototype.get=function(h){return this._map[V(h)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function B(){}B.prototype.open=function(h,m,v,p,y,A,C){h.open("GET",y);var z=0;h.onprogress=function(){var P=h.responseText,U=P.slice(z);z+=U.length,v(U)},h.onerror=function(P){P.preventDefault(),p(new Error("NetworkError"))},h.onload=function(){p(null)},h.onabort=function(){p(null)},h.onreadystatechange=function(){if(h.readyState===o.HEADERS_RECEIVED){var P=h.status,U=h.statusText,w=h.getResponseHeader("Content-Type"),J=h.getAllResponseHeaders();m(P,U,w,new W(J))}},h.withCredentials=A;for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&h.setRequestHeader(O,C[O]);return h.send(),h};function E(h){this._headers=h}E.prototype.get=function(h){return this._headers.get(h)};function H(){}H.prototype.open=function(h,m,v,p,y,A,C){var z=null,O=new x,P=O.signal,U=new b;return f(y,{headers:C,credentials:A?"include":"same-origin",signal:P,cache:"no-store"}).then(function(w){return z=w.body.getReader(),m(w.status,w.statusText,w.headers.get("Content-Type"),new E(w.headers)),new c(function(J,Ee){var $e=function(){z.read().then(function(ae){if(ae.done)J(void 0);else{var re=U.decode(ae.value,{stream:!0});v(re),$e()}}).catch(function(ae){Ee(ae)})};$e()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){p(w)}),{abort:function(){z!=null&&z.cancel(),O.abort()}}};function ge(){this._listeners=Object.create(null)}function Se(h){r(function(){throw h},0)}ge.prototype.dispatchEvent=function(h){h.target=this;var m=this._listeners[h.type];if(m!=null)for(var v=m.length,p=0;p<v;p+=1){var y=m[p];try{typeof y.handleEvent=="function"?y.handleEvent(h):y.call(this,h)}catch(A){Se(A)}}},ge.prototype.addEventListener=function(h,m){h=String(h);var v=this._listeners,p=v[h];p==null&&(p=[],v[h]=p);for(var y=!1,A=0;A<p.length;A+=1)p[A]===m&&(y=!0);y||p.push(m)},ge.prototype.removeEventListener=function(h,m){h=String(h);var v=this._listeners,p=v[h];if(p!=null){for(var y=[],A=0;A<p.length;A+=1)p[A]!==m&&y.push(p[A]);y.length===0?delete v[h]:v[h]=y}};function ce(h){this.type=h,this.target=void 0}function Oe(h,m){ce.call(this,h),this.data=m.data,this.lastEventId=m.lastEventId}Oe.prototype=Object.create(ce.prototype);function de(h,m){ce.call(this,h),this.status=m.status,this.statusText=m.statusText,this.headers=m.headers}de.prototype=Object.create(ce.prototype);function te(h,m){ce.call(this,h),this.error=m.error}te.prototype=Object.create(ce.prototype);var Be=-1,ve=0,Te=1,g=2,M=-1,K=0,D=1,lt=2,Ft=3,Gt=/^text\/event\-stream(;.*)?$/i,jt=1e3,Kr=18e6,Qt=function(h,m){var v=h==null?m:parseInt(h,10);return v!==v&&(v=m),zt(v)},zt=function(h){return Math.min(Math.max(h,jt),Kr)},Le=function(h,m,v){try{typeof m=="function"&&m.call(h,v)}catch(p){Se(p)}};function pe(h,m){ge.call(this),m=m||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,ti(this,h,m)}function $r(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var ei=f!=null&&d!=null&&"body"in d.prototype;function ti(h,m,v){m=String(m);var p=!!v.withCredentials,y=v.lastEventIdQueryParameterName||"lastEventId",A=zt(1e3),C=Qt(v.heartbeatTimeout,45e3),z="",O=A,P=!1,U=0,w=v.headers||{},J=v.Transport,Ee=ei&&J==null?void 0:new k(J!=null?new J:$r()),$e=J!=null&&typeof J!="string"?new J:Ee==null?new H:new B,ae=void 0,re=0,me=Be,Me="",ht="",ye="",ft="",ie=K,Jt=0,_e=0,ni=function($,Y,ue,le){if(me===ve)if($===200&&ue!=null&&Gt.test(ue)){me=Te,P=Date.now(),O=A,h.readyState=Te;var oe=new de("open",{status:$,statusText:Y,headers:le});h.dispatchEvent(oe),Le(h,h.onopen,oe)}else{var ne="";$!==200?(Y&&(Y=Y.replace(/\s+/g," ")),ne="EventSource's response has a status "+$+" "+Y+" that is not 200. Aborting the connection."):ne="EventSource's response has a Content-Type specifying an unsupported type: "+(ue==null?"-":ue.replace(/\s+/g," "))+". Aborting the connection.",Xt();var oe=new de("error",{status:$,statusText:Y,headers:le});h.dispatchEvent(oe),Le(h,h.onerror,oe),console.error(ne)}},ri=function($){if(me===Te){for(var Y=-1,ue=0;ue<$.length;ue+=1){var le=$.charCodeAt(ue);(le===10||le===13)&&(Y=ue)}var oe=(Y!==-1?ft:"")+$.slice(0,Y+1);ft=(Y===-1?ft:"")+$.slice(Y+1),$!==""&&(P=Date.now(),U+=$.length);for(var ne=0;ne<oe.length;ne+=1){var le=oe.charCodeAt(ne);if(ie===M&&le===10)ie=K;else if(ie===M&&(ie=K),le===13||le===10){if(ie!==K){ie===D&&(_e=ne+1);var we=oe.slice(Jt,_e-1),xe=oe.slice(_e+(_e<ne&&oe.charCodeAt(_e)===32?1:0),ne);we==="data"?(Me+=`
26
- `,Me+=xe):we==="id"?ht=xe:we==="event"?ye=xe:we==="retry"?(A=Qt(xe,A),O=A):we==="heartbeatTimeout"&&(C=Qt(xe,C),re!==0&&(i(re),re=r(function(){et()},C)))}if(ie===K){if(Me!==""){z=ht,ye===""&&(ye="message");var ke=new Oe(ye,{data:Me.slice(1),lastEventId:ht});if(h.dispatchEvent(ke),ye==="open"?Le(h,h.onopen,ke):ye==="message"?Le(h,h.onmessage,ke):ye==="error"&&Le(h,h.onerror,ke),me===g)return}Me="",ye=""}ie=le===13?M:K}else ie===K&&(Jt=ne,ie=D),ie===D?le===58&&(_e=ne+1,ie=lt):ie===lt&&(ie=Ft)}}},On=function($){if(me===Te||me===ve){me=Be,re!==0&&(i(re),re=0),re=r(function(){et()},O),O=zt(Math.min(A*16,O*2)),h.readyState=ve;var Y=new te("error",{error:$});h.dispatchEvent(Y),Le(h,h.onerror,Y),$!=null&&console.error($)}},Xt=function(){me=g,ae!=null&&(ae.abort(),ae=void 0),re!==0&&(i(re),re=0),h.readyState=g},et=function(){if(re=0,me!==Be){if(!P&&ae!=null)On(new Error("No activity within "+C+" milliseconds. "+(me===ve?"No response received.":U+" chars received.")+" Reconnecting.")),ae!=null&&(ae.abort(),ae=void 0);else{var $=Math.max((P||Date.now())+C-Date.now(),1);P=!1,re=r(function(){et()},$)}return}P=!1,U=0,re=r(function(){et()},C),me=ve,Me="",ye="",ht=z,ft="",Jt=0,_e=0,ie=K;var Y=m;if(m.slice(0,5)!=="data:"&&m.slice(0,5)!=="blob:"&&z!==""){var ue=m.indexOf("?");Y=ue===-1?m:m.slice(0,ue+1)+m.slice(ue+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(xe,ke){return ke===y?"":xe}),Y+=(m.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(z)}var le=h.withCredentials,oe={};oe.Accept="text/event-stream";var ne=h.headers;if(ne!=null)for(var we in ne)Object.prototype.hasOwnProperty.call(ne,we)&&(oe[we]=ne[we]);try{ae=$e.open(Ee,ni,ri,On,Y,le,oe)}catch(xe){throw Xt(),xe}};h.url=m,h.readyState=ve,h.withCredentials=p,h.headers=w,h._close=Xt,et()}pe.prototype=Object.create(ge.prototype),pe.prototype.CONNECTING=ve,pe.prototype.OPEN=Te,pe.prototype.CLOSED=g,pe.prototype.close=function(){this._close()},pe.CONNECTING=ve,pe.OPEN=Te,pe.CLOSED=g,pe.prototype.withCredentials=void 0;var Rn=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Rn=pe),function(h){{var m=h(t);m!==void 0&&(e.exports=m)}}(function(h){h.EventSourcePolyfill=pe,h.NativeEventSource=l,h.EventSource=Rn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Vi:globalThis)})(wn,wn.exports);var Fs=wn.exports;const Yr=e=>window.postMessage(e,window.location.href),Gs=(e,t)=>{Yr({type:"TournamentsTabTotalUpdate",state:e,total:t})},rn=(e,t)=>{Yr({type:"TournamentsTabLocaleTextUpdate",state:e,text:t})},js=e=>n=>{Object.keys(e).map(r=>{if(n.data&&n.data.type==r){const i=n.data,{type:o}=i,s=Zt(i,["type"]);e[r](s)}})},Qs=e=>{const t=js(e);In(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}))},zs=(e,t=null)=>{let n={accept:"text/event-stream"};return t&&(n["X-SessionID"]=t),new Fs.EventSourcePolyfill(e,{headers:n})},Js=(e,t,n)=>{e&&(e.removeEventListener("message",n),e.close());let r=t;return typeof r!="undefined"&&r.addEventListener("message",n),r},Xs=e=>n=>{let r=n.data;if(r)try{let i=JSON.parse(r);if(!i)return;Object.keys(e).map(o=>{if(i.messageType==o){const s=i,{messageType:a}=s,l=Zt(s,["messageType"]);console.log(a,l),e[o](l)}})}catch(i){console.error(i)}};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTab-CZnpd2hJ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}function Vs(e){xn(e,"svelte-1l19mel",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CloseButton{position:absolute;right:1.5625vw;font-size:3.4375vw;color:#FFFFFF;cursor:pointer}.NoContent{padding:120px}.Root{background:#282828}.Root .top-wrapper{padding:1.875vw;display:flex;background:#333333}.Root .top-wrapper .svg{width:10.9375vw;height:10.9375vw}.Root .top-wrapper .text{color:white;font-size:5vw;padding-left:3.125vw;font-weight:bold;line-height:5.9375vw;padding-top:2.1875vw}.Root section{padding:0 3.75vw}table{width:100%;border-collapse:collapse;font-size:3.75vw;line-height:4.375vw;@import url("https://rsms.me/inter/inter.css");}table div{font:initial;font-family:"Inter", sans-serif}@supports (font-variation-settings: normal){table div{font:initial;font-family:"Inter var", sans-serif}}table thead{background:#1C1C1C;color:#F7F7F7}table th,table td{padding:2.5vw 1.5625vw;overflow-wrap:break-word}table td{color:#B5B5B5}.Title{color:#FF8364;text-decoration-line:underline;word-break:break-word}.Title:active{opacity:0.6}.Prize .Rank:active{color:#FFD700}.Loading{display:flex;justify-content:center;padding:9.375vw}')}function ir(e,t,n){const r=e.slice();return r[32]=t[n],r[34]=n,r}function or(e,t,n){const r=e.slice();return r[35]=t[n],r}function sr(e,t,n){const r=e.slice();return r[32]=t[n],r}function Zs(e){let t;return{c(){t=je("image"),I(t,"id","image0_2606_356"),I(t,"width","512"),I(t,"height","512"),dr(t,"xlink:href",e[8])},m(n,r){q(n,t,r)},p:ee,d(n){n&&Z(t)}}}function Ws(e){let t,n,r;function i(a,l){return a[6]?Ks:qs}let o=i(e),s=o(e);return{c(){t=G("section"),n=G("casino-tournaments-tab"),r=be(),s.c(),Ue(n,"tabs",e[1]),Ue(n,"defaulttab",e[0]),Ue(n,"mbsource",e[2])},m(a,l){q(a,t,l),L(t,n),L(t,r),s.m(t,null)},p(a,l){l[0]&2&&Ue(n,"tabs",a[1]),l[0]&1&&Ue(n,"defaulttab",a[0]),l[0]&4&&Ue(n,"mbsource",a[2]),o===(o=i(a))&&s?s.p(a,l):(s.d(1),s=o(a),s&&(s.c(),s.m(t,null)))},d(a){a&&Z(t),s.d()}}}function Ys(e){let t;return{c(){t=G("div"),t.innerHTML="<casino-tournaments-limited-controller-loader></casino-tournaments-limited-controller-loader>",I(t,"class","Loading")},m(n,r){q(n,t,r)},p:ee,d(n){n&&Z(t)}}}function qs(e){let t;return{c(){t=G("div"),I(t,"class","NoContent")},m(n,r){q(n,t,r)},p:ee,d(n){n&&Z(t)}}}function Ks(e){let t,n,r,i,o=Ne([e[7]("name"),e[7]("rank"),e[7]("enddate"),e[7]("prize")]),s=[];for(let u=0;u<4;u+=1)s[u]=ar(sr(e,o,u));let a=Ne(e[6]),l=[];for(let u=0;u<a.length;u+=1)l[u]=hr(ir(e,a,u));return{c(){t=G("table"),n=G("thead"),r=G("tr");for(let u=0;u<4;u+=1)s[u].c();i=be();for(let u=0;u<l.length;u+=1)l[u].c()},m(u,c){q(u,t,c),L(t,n),L(n,r);for(let f=0;f<4;f+=1)s[f]&&s[f].m(r,null);L(t,i);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null)},p(u,c){if(c[0]&128){o=Ne([u[7]("name"),u[7]("rank"),u[7]("enddate"),u[7]("prize")]);let f;for(f=0;f<4;f+=1){const d=sr(u,o,f);s[f]?s[f].p(d,c):(s[f]=ar(d),s[f].c(),s[f].m(r,null))}for(;f<4;f+=1)s[f].d(1)}if(c[0]&64){a=Ne(u[6]);let f;for(f=0;f<a.length;f+=1){const d=ir(u,a,f);l[f]?l[f].p(d,c):(l[f]=hr(d),l[f].c(),l[f].m(t,null))}for(;f<l.length;f+=1)l[f].d(1);l.length=a.length}},d(u){u&&Z(t),St(s,u),St(l,u)}}}function ar(e){let t,n=e[32]+"",r;return{c(){t=G("th"),r=He(n)},m(i,o){q(i,t,o),L(t,r)},p(i,o){o[0]&128&&n!==(n=i[32]+"")&&Pe(r,n)},d(i){i&&Z(t)}}}function ur(e){var T,k,V,W;let t,n=((T=e[32])==null?void 0:T.title)+"",r,i,o,s=(((k=e[32])==null?void 0:k.rank)||" -")+"",a,l,u,c,f,d=(((V=e[32])==null?void 0:V.prize)||" -")+"",b,S,x;function F(){return e[21](e[32])}let Q=Ne(Ln((W=e[32])==null?void 0:W.enddate)),N=[];for(let B=0;B<Q.length;B+=1)N[B]=lr(or(e,Q,B));return{c(){var B,E;t=G("td"),r=He(n),i=be(),o=G("td"),a=He(s),l=be(),u=G("td");for(let H=0;H<N.length;H+=1)N[H].c();c=be(),f=G("td"),b=He(d),I(t,"class","Title"),I(t,"part","Title"),I(o,"class","Rank"),vt(o,"active",(B=e[32])==null?void 0:B.prize),I(u,"class","EndDate"),I(u,"part","EndDate"),I(f,"class","Prize"),vt(f,"active",(E=e[32])==null?void 0:E.prize)},m(B,E){q(B,t,E),L(t,r),q(B,i,E),q(B,o,E),L(o,a),q(B,l,E),q(B,u,E);for(let H=0;H<N.length;H+=1)N[H]&&N[H].m(u,null);q(B,c,E),q(B,f,E),L(f,b),S||(x=rt(t,"click",F),S=!0)},p(B,E){var H,ge,Se,ce,Oe,de;if(e=B,E[0]&64&&n!==(n=((H=e[32])==null?void 0:H.title)+"")&&Pe(r,n),E[0]&64&&s!==(s=(((ge=e[32])==null?void 0:ge.rank)||" -")+"")&&Pe(a,s),E[0]&64&&vt(o,"active",(Se=e[32])==null?void 0:Se.prize),E[0]&64){Q=Ne(Ln((ce=e[32])==null?void 0:ce.enddate));let te;for(te=0;te<Q.length;te+=1){const Be=or(e,Q,te);N[te]?N[te].p(Be,E):(N[te]=lr(Be),N[te].c(),N[te].m(u,null))}for(;te<N.length;te+=1)N[te].d(1);N.length=Q.length}E[0]&64&&d!==(d=(((Oe=e[32])==null?void 0:Oe.prize)||" -")+"")&&Pe(b,d),E[0]&64&&vt(f,"active",(de=e[32])==null?void 0:de.prize)},d(B){B&&(Z(t),Z(i),Z(o),Z(l),Z(u),Z(c),Z(f)),St(N,B),S=!1,x()}}}function lr(e){let t,n=e[35]+"",r;return{c(){t=G("p"),r=He(n)},m(i,o){q(i,t,o),L(t,r)},p(i,o){o[0]&64&&n!==(n=i[35]+"")&&Pe(r,n)},d(i){i&&Z(t)}}}function hr(e){let t,n,r,i=e[32]&&ur(e);return{c(){t=G("tbody"),n=G("tr"),i&&i.c(),r=be()},m(o,s){q(o,t,s),L(t,n),i&&i.m(n,null),L(t,r)},p(o,s){o[32]?i?i.p(o,s):(i=ur(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},d(o){o&&Z(t),i&&i.d()}}}function $s(e){let t,n,r,i,o,s,a,l,u,c,f,d,b=e[7]("myTournaments")+"",S,x,F,Q,N,T,k=e[8]&&Zs(e);function V(E,H){return E[5]?Ys:Ws}let W=V(e),B=W(e);return{c(){t=G("div"),n=G("div"),r=G("div"),i=je("svg"),o=je("rect"),s=je("defs"),a=je("pattern"),l=je("use"),k&&k.c(),f=be(),d=G("div"),S=He(b),x=be(),F=G("div"),F.textContent="X",Q=be(),B.c(),I(o,"width",e[4]),I(o,"height",e[4]),I(o,"fill","url(#pattern0)"),dr(l,"xlink:href","#image0_2606_356"),I(l,"transform","scale(0.00195312)"),I(a,"id","pattern0"),I(a,"patternContentUnits","objectBoundingBox"),I(a,"width","1"),I(a,"height","1"),I(i,"width",e[4]),I(i,"height",e[4]),I(i,"viewBox",u=`0 0 ${e[4]} ${e[4]}`),I(i,"fill","none"),I(i,"xmlns","http://www.w3.org/2000/svg"),I(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),I(r,"class","svg"),Tt(()=>e[19].call(r)),I(d,"class","text"),I(F,"class","CloseButton"),I(F,"part","CloseButton"),I(n,"class","top-wrapper"),I(t,"class","Root"),I(t,"part","Root")},m(E,H){q(E,t,H),L(t,n),L(n,r),L(r,i),L(i,o),L(i,s),L(s,a),L(a,l),k&&k.m(s,null),c=di(r,e[19].bind(r)),L(n,f),L(n,d),L(d,S),L(n,x),L(n,F),L(t,Q),B.m(t,null),e[22](t),N||(T=rt(F,"click",e[20]),N=!0)},p(E,H){H[0]&16&&I(o,"width",E[4]),H[0]&16&&I(o,"height",E[4]),E[8]&&k.p(E,H),H[0]&16&&I(i,"width",E[4]),H[0]&16&&I(i,"height",E[4]),H[0]&16&&u!==(u=`0 0 ${E[4]} ${E[4]}`)&&I(i,"viewBox",u),H[0]&128&&b!==(b=E[7]("myTournaments")+"")&&Pe(S,b),W===(W=V(E))&&B?B.p(E,H):(B.d(1),B=W(E),B&&(B.c(),B.m(t,null)))},i:ee,o:ee,d(E){E&&Z(t),k&&k.d(),c(),B.d(),e[22](null),N=!1,T()}}}function ea(e,t,n){let r,i,o,s,a;ui(e,Ds,g=>n(7,a=g));let{endpoint:l=""}=t,{lang:u="en"}=t,{session:c=""}=t,{state:f=void 0}=t,{states:d="Scheduled,Ongoing,Finished"}=t,{filter:b=""}=t,{clientstyling:S=""}=t,{clientstylingurl:x=""}=t,{translationurl:F=""}=t,{mbsource:Q}=t;Wr({withLocale:"en",translations:{}});const N=()=>{fetch(F).then(M=>M.json()).then(M=>{Object.keys(M).forEach(K=>{yn(K,M[K])}),de()}).catch(M=>{console.error(M)})};Object.keys(Ot).forEach(g=>{yn(g,Ot[g])});let T,k,V,W=0,B=Bi,E=!0,H={};const ge=g=>{let M={};i.map(D=>{M[D]||(M[D]=[])}),((g==null?void 0:g.items)||[]).map(D=>{const{id:lt,nameOrTitle:Ft,endTime:Gt}=D.tournament,jt={id:lt,title:Ft,rank:D.leaderBoard&&`#${D.leaderBoard.rank}/${D.endRank}`,enddate:Gt,prize:D.leaderBoard&&D.leaderBoard.prizeName};M[rr(D.tournament.state)].push(jt)}),n(16,H=M)},Se=Xs({PlayerLeaderBoardsUpdate:g=>{ge(g),o.map(M=>{Gs(M,H[M].length)})},TournamentUpdate:g=>{if(g!=null&&g.item){const M=(g==null?void 0:g.item)||{};let K=rr(M.state);n(16,H=pt(dt({},H),{[K]:H[K].map(D=>(D==null?void 0:D.id)===M.id?pt(dt({},D),{title:M.nameOrTitle,enddate:M.endTime}):D)}))}}}),ce=(g,M)=>mt(this,null,function*(){const K=`${l}/v1/tournaments`,D=new URL(K);D.searchParams.append("pagination",`offset=${g},limit=${M}`),D.searchParams.append("sortField","StartTime"),D.searchParams.append("sortOrder","desc"),D.searchParams.append("language",u),D.searchParams.append("XSessionId",c),b&&D.searchParams.append("filter",b),V=Js(V,zs(`${K}/leaderboard/player/updates?${D.searchParams.toString()}`),Se)});Us();const Oe=()=>{ce(0,30),ks(u),de()},de=()=>{setTimeout(()=>{const g=M=>a(`${M}`);rn("Scheduled",g("scheduled")),rn("Ongoing",g("ongoing")),rn("Finished",`${g("finished")} (${g("last")} 48h)`)},1)};In(()=>()=>{V&&V.removeEventListener("message",Se)}),Qs({TournamentsTabSwitch:g=>mt(this,null,function*(){return n(17,r=g.tab)})});function te(){W=this.clientWidth,n(4,W)}const Be=()=>window.postMessage({type:"OnCloseThumbnail"},window.location.href),ve=g=>{window.postMessage({type:"MyTournamentFromNavClicked",tournamentId:g==null?void 0:g.id,showLeaderboard:!0},window.location.href)};function Te(g){Bt[g?"unshift":"push"](()=>{T=g,n(3,T)})}return e.$$set=g=>{"endpoint"in g&&n(9,l=g.endpoint),"lang"in g&&n(10,u=g.lang),"session"in g&&n(11,c=g.session),"state"in g&&n(0,f=g.state),"states"in g&&n(1,d=g.states),"filter"in g&&n(12,b=g.filter),"clientstyling"in g&&n(13,S=g.clientstyling),"clientstylingurl"in g&&n(14,x=g.clientstylingurl),"translationurl"in g&&n(15,F=g.translationurl),"mbsource"in g&&n(2,Q=g.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&1&&n(17,r=f),e.$$.dirty[0]&2&&n(18,i=d.split(",")),e.$$.dirty[0]&262144&&(o=i.filter(g=>g!=="Finished")),e.$$.dirty[0]&196608&&n(6,s=H[r]),e.$$.dirty[0]&7680&&l&&b&&u&&c&&Oe(),e.$$.dirty[0]&8200&&S&&T&&mr(T,S),e.$$.dirty[0]&16392&&x&&T&&gr(T,x),e.$$.dirty[0]&12&&Q&&T&&vr(T,`${Q}.Style`,k),e.$$.dirty[0]&32768&&F&&N(),e.$$.dirty[0]&1024&&u&&de(),e.$$.dirty[0]&65536&&Object.keys(H).length&&(n(5,E=!1),de())},[f,d,Q,T,W,E,s,a,B,l,u,c,b,S,x,F,H,r,i,te,Be,ve,Te]}class qr extends Tn{constructor(t){super(),Sn(this,t,ea,$s,Nt,{endpoint:9,lang:10,session:11,state:0,states:1,filter:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:2},Vs,[-1,-1])}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),he()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),he()}get session(){return this.$$.ctx[11]}set session(t){this.$$set({session:t}),he()}get state(){return this.$$.ctx[0]}set state(t){this.$$set({state:t}),he()}get states(){return this.$$.ctx[1]}set states(t){this.$$set({states:t}),he()}get filter(){return this.$$.ctx[12]}set filter(t){this.$$set({filter:t}),he()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),he()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),he()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),he()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),he()}}Bn(qr,{endpoint:{},lang:{},session:{},state:{},states:{},filter:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const ta=Object.freeze(Object.defineProperty({__proto__:null,default:qr},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsLimitedController_ce=ta;exports.SvelteComponent=Tn;exports.append=L;exports.append_styles=xn;exports.attr=I;exports.binding_callbacks=Bt;exports.create_custom_element=Bn;exports.destroy_each=St;exports.detach=Z;exports.element=G;exports.ensure_array_like=Ne;exports.flush=he;exports.init=Sn;exports.insert=q;exports.isMobile=Zr;exports.is_function=_t;exports.listen=rt;exports.noop=ee;exports.onMount=In;exports.safe_not_equal=Nt;exports.setClientStyling=mr;exports.setClientStylingURL=gr;exports.setStreamStyling=vr;exports.set_data=Pe;exports.space=be;exports.text=He;
26
+ `,Me+=xe):we==="id"?ht=xe:we==="event"?ye=xe:we==="retry"?(A=Qt(xe,A),O=A):we==="heartbeatTimeout"&&(C=Qt(xe,C),re!==0&&(i(re),re=r(function(){et()},C)))}if(ie===K){if(Me!==""){z=ht,ye===""&&(ye="message");var ke=new Oe(ye,{data:Me.slice(1),lastEventId:ht});if(h.dispatchEvent(ke),ye==="open"?Le(h,h.onopen,ke):ye==="message"?Le(h,h.onmessage,ke):ye==="error"&&Le(h,h.onerror,ke),me===g)return}Me="",ye=""}ie=le===13?M:K}else ie===K&&(Jt=ne,ie=D),ie===D?le===58&&(_e=ne+1,ie=lt):ie===lt&&(ie=Ft)}}},On=function($){if(me===Te||me===ve){me=Be,re!==0&&(i(re),re=0),re=r(function(){et()},O),O=zt(Math.min(A*16,O*2)),h.readyState=ve;var Y=new te("error",{error:$});h.dispatchEvent(Y),Le(h,h.onerror,Y),$!=null&&console.error($)}},Xt=function(){me=g,ae!=null&&(ae.abort(),ae=void 0),re!==0&&(i(re),re=0),h.readyState=g},et=function(){if(re=0,me!==Be){if(!P&&ae!=null)On(new Error("No activity within "+C+" milliseconds. "+(me===ve?"No response received.":U+" chars received.")+" Reconnecting.")),ae!=null&&(ae.abort(),ae=void 0);else{var $=Math.max((P||Date.now())+C-Date.now(),1);P=!1,re=r(function(){et()},$)}return}P=!1,U=0,re=r(function(){et()},C),me=ve,Me="",ye="",ht=z,ft="",Jt=0,_e=0,ie=K;var Y=m;if(m.slice(0,5)!=="data:"&&m.slice(0,5)!=="blob:"&&z!==""){var ue=m.indexOf("?");Y=ue===-1?m:m.slice(0,ue+1)+m.slice(ue+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(xe,ke){return ke===y?"":xe}),Y+=(m.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(z)}var le=h.withCredentials,oe={};oe.Accept="text/event-stream";var ne=h.headers;if(ne!=null)for(var we in ne)Object.prototype.hasOwnProperty.call(ne,we)&&(oe[we]=ne[we]);try{ae=$e.open(Ee,ni,ri,On,Y,le,oe)}catch(xe){throw Xt(),xe}};h.url=m,h.readyState=ve,h.withCredentials=p,h.headers=w,h._close=Xt,et()}pe.prototype=Object.create(ge.prototype),pe.prototype.CONNECTING=ve,pe.prototype.OPEN=Te,pe.prototype.CLOSED=g,pe.prototype.close=function(){this._close()},pe.CONNECTING=ve,pe.OPEN=Te,pe.CLOSED=g,pe.prototype.withCredentials=void 0;var Rn=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Rn=pe),function(h){{var m=h(t);m!==void 0&&(e.exports=m)}}(function(h){h.EventSourcePolyfill=pe,h.NativeEventSource=l,h.EventSource=Rn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Vi:globalThis)})(wn,wn.exports);var Fs=wn.exports;const Yr=e=>window.postMessage(e,window.location.href),Gs=(e,t)=>{Yr({type:"TournamentsTabTotalUpdate",state:e,total:t})},rn=(e,t)=>{Yr({type:"TournamentsTabLocaleTextUpdate",state:e,text:t})},js=e=>n=>{Object.keys(e).map(r=>{if(n.data&&n.data.type==r){const i=n.data,{type:o}=i,s=Zt(i,["type"]);e[r](s)}})},Qs=e=>{const t=js(e);In(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}))},zs=(e,t=null)=>{let n={accept:"text/event-stream"};return t&&(n["X-SessionID"]=t),new Fs.EventSourcePolyfill(e,{headers:n})},Js=(e,t,n)=>{e&&(e.removeEventListener("message",n),e.close());let r=t;return typeof r!="undefined"&&r.addEventListener("message",n),r},Xs=e=>n=>{let r=n.data;if(r)try{let i=JSON.parse(r);if(!i)return;Object.keys(e).map(o=>{if(i.messageType==o){const s=i,{messageType:a}=s,l=Zt(s,["messageType"]);console.log(a,l),e[o](l)}})}catch(i){console.error(i)}};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTab-Baz6f4Zb.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}function Vs(e){xn(e,"svelte-1l19mel",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CloseButton{position:absolute;right:1.5625vw;font-size:3.4375vw;color:#FFFFFF;cursor:pointer}.NoContent{padding:120px}.Root{background:#282828}.Root .top-wrapper{padding:1.875vw;display:flex;background:#333333}.Root .top-wrapper .svg{width:10.9375vw;height:10.9375vw}.Root .top-wrapper .text{color:white;font-size:5vw;padding-left:3.125vw;font-weight:bold;line-height:5.9375vw;padding-top:2.1875vw}.Root section{padding:0 3.75vw}table{width:100%;border-collapse:collapse;font-size:3.75vw;line-height:4.375vw;@import url("https://rsms.me/inter/inter.css");}table div{font:initial;font-family:"Inter", sans-serif}@supports (font-variation-settings: normal){table div{font:initial;font-family:"Inter var", sans-serif}}table thead{background:#1C1C1C;color:#F7F7F7}table th,table td{padding:2.5vw 1.5625vw;overflow-wrap:break-word}table td{color:#B5B5B5}.Title{color:#FF8364;text-decoration-line:underline;word-break:break-word}.Title:active{opacity:0.6}.Prize .Rank:active{color:#FFD700}.Loading{display:flex;justify-content:center;padding:9.375vw}')}function ir(e,t,n){const r=e.slice();return r[32]=t[n],r[34]=n,r}function or(e,t,n){const r=e.slice();return r[35]=t[n],r}function sr(e,t,n){const r=e.slice();return r[32]=t[n],r}function Zs(e){let t;return{c(){t=je("image"),I(t,"id","image0_2606_356"),I(t,"width","512"),I(t,"height","512"),dr(t,"xlink:href",e[8])},m(n,r){q(n,t,r)},p:ee,d(n){n&&Z(t)}}}function Ws(e){let t,n,r;function i(a,l){return a[6]?Ks:qs}let o=i(e),s=o(e);return{c(){t=G("section"),n=G("casino-tournaments-tab"),r=be(),s.c(),Ue(n,"tabs",e[1]),Ue(n,"defaulttab",e[0]),Ue(n,"mbsource",e[2])},m(a,l){q(a,t,l),L(t,n),L(t,r),s.m(t,null)},p(a,l){l[0]&2&&Ue(n,"tabs",a[1]),l[0]&1&&Ue(n,"defaulttab",a[0]),l[0]&4&&Ue(n,"mbsource",a[2]),o===(o=i(a))&&s?s.p(a,l):(s.d(1),s=o(a),s&&(s.c(),s.m(t,null)))},d(a){a&&Z(t),s.d()}}}function Ys(e){let t;return{c(){t=G("div"),t.innerHTML="<casino-tournaments-limited-controller-loader></casino-tournaments-limited-controller-loader>",I(t,"class","Loading")},m(n,r){q(n,t,r)},p:ee,d(n){n&&Z(t)}}}function qs(e){let t;return{c(){t=G("div"),I(t,"class","NoContent")},m(n,r){q(n,t,r)},p:ee,d(n){n&&Z(t)}}}function Ks(e){let t,n,r,i,o=Ne([e[7]("name"),e[7]("rank"),e[7]("enddate"),e[7]("prize")]),s=[];for(let u=0;u<4;u+=1)s[u]=ar(sr(e,o,u));let a=Ne(e[6]),l=[];for(let u=0;u<a.length;u+=1)l[u]=hr(ir(e,a,u));return{c(){t=G("table"),n=G("thead"),r=G("tr");for(let u=0;u<4;u+=1)s[u].c();i=be();for(let u=0;u<l.length;u+=1)l[u].c()},m(u,c){q(u,t,c),L(t,n),L(n,r);for(let f=0;f<4;f+=1)s[f]&&s[f].m(r,null);L(t,i);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null)},p(u,c){if(c[0]&128){o=Ne([u[7]("name"),u[7]("rank"),u[7]("enddate"),u[7]("prize")]);let f;for(f=0;f<4;f+=1){const d=sr(u,o,f);s[f]?s[f].p(d,c):(s[f]=ar(d),s[f].c(),s[f].m(r,null))}for(;f<4;f+=1)s[f].d(1)}if(c[0]&64){a=Ne(u[6]);let f;for(f=0;f<a.length;f+=1){const d=ir(u,a,f);l[f]?l[f].p(d,c):(l[f]=hr(d),l[f].c(),l[f].m(t,null))}for(;f<l.length;f+=1)l[f].d(1);l.length=a.length}},d(u){u&&Z(t),St(s,u),St(l,u)}}}function ar(e){let t,n=e[32]+"",r;return{c(){t=G("th"),r=He(n)},m(i,o){q(i,t,o),L(t,r)},p(i,o){o[0]&128&&n!==(n=i[32]+"")&&Pe(r,n)},d(i){i&&Z(t)}}}function ur(e){var T,k,V,W;let t,n=((T=e[32])==null?void 0:T.title)+"",r,i,o,s=(((k=e[32])==null?void 0:k.rank)||" -")+"",a,l,u,c,f,d=(((V=e[32])==null?void 0:V.prize)||" -")+"",b,S,x;function F(){return e[21](e[32])}let Q=Ne(Ln((W=e[32])==null?void 0:W.enddate)),N=[];for(let B=0;B<Q.length;B+=1)N[B]=lr(or(e,Q,B));return{c(){var B,E;t=G("td"),r=He(n),i=be(),o=G("td"),a=He(s),l=be(),u=G("td");for(let H=0;H<N.length;H+=1)N[H].c();c=be(),f=G("td"),b=He(d),I(t,"class","Title"),I(t,"part","Title"),I(o,"class","Rank"),vt(o,"active",(B=e[32])==null?void 0:B.prize),I(u,"class","EndDate"),I(u,"part","EndDate"),I(f,"class","Prize"),vt(f,"active",(E=e[32])==null?void 0:E.prize)},m(B,E){q(B,t,E),L(t,r),q(B,i,E),q(B,o,E),L(o,a),q(B,l,E),q(B,u,E);for(let H=0;H<N.length;H+=1)N[H]&&N[H].m(u,null);q(B,c,E),q(B,f,E),L(f,b),S||(x=rt(t,"click",F),S=!0)},p(B,E){var H,ge,Se,ce,Oe,de;if(e=B,E[0]&64&&n!==(n=((H=e[32])==null?void 0:H.title)+"")&&Pe(r,n),E[0]&64&&s!==(s=(((ge=e[32])==null?void 0:ge.rank)||" -")+"")&&Pe(a,s),E[0]&64&&vt(o,"active",(Se=e[32])==null?void 0:Se.prize),E[0]&64){Q=Ne(Ln((ce=e[32])==null?void 0:ce.enddate));let te;for(te=0;te<Q.length;te+=1){const Be=or(e,Q,te);N[te]?N[te].p(Be,E):(N[te]=lr(Be),N[te].c(),N[te].m(u,null))}for(;te<N.length;te+=1)N[te].d(1);N.length=Q.length}E[0]&64&&d!==(d=(((Oe=e[32])==null?void 0:Oe.prize)||" -")+"")&&Pe(b,d),E[0]&64&&vt(f,"active",(de=e[32])==null?void 0:de.prize)},d(B){B&&(Z(t),Z(i),Z(o),Z(l),Z(u),Z(c),Z(f)),St(N,B),S=!1,x()}}}function lr(e){let t,n=e[35]+"",r;return{c(){t=G("p"),r=He(n)},m(i,o){q(i,t,o),L(t,r)},p(i,o){o[0]&64&&n!==(n=i[35]+"")&&Pe(r,n)},d(i){i&&Z(t)}}}function hr(e){let t,n,r,i=e[32]&&ur(e);return{c(){t=G("tbody"),n=G("tr"),i&&i.c(),r=be()},m(o,s){q(o,t,s),L(t,n),i&&i.m(n,null),L(t,r)},p(o,s){o[32]?i?i.p(o,s):(i=ur(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},d(o){o&&Z(t),i&&i.d()}}}function $s(e){let t,n,r,i,o,s,a,l,u,c,f,d,b=e[7]("myTournaments")+"",S,x,F,Q,N,T,k=e[8]&&Zs(e);function V(E,H){return E[5]?Ys:Ws}let W=V(e),B=W(e);return{c(){t=G("div"),n=G("div"),r=G("div"),i=je("svg"),o=je("rect"),s=je("defs"),a=je("pattern"),l=je("use"),k&&k.c(),f=be(),d=G("div"),S=He(b),x=be(),F=G("div"),F.textContent="X",Q=be(),B.c(),I(o,"width",e[4]),I(o,"height",e[4]),I(o,"fill","url(#pattern0)"),dr(l,"xlink:href","#image0_2606_356"),I(l,"transform","scale(0.00195312)"),I(a,"id","pattern0"),I(a,"patternContentUnits","objectBoundingBox"),I(a,"width","1"),I(a,"height","1"),I(i,"width",e[4]),I(i,"height",e[4]),I(i,"viewBox",u=`0 0 ${e[4]} ${e[4]}`),I(i,"fill","none"),I(i,"xmlns","http://www.w3.org/2000/svg"),I(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),I(r,"class","svg"),Tt(()=>e[19].call(r)),I(d,"class","text"),I(F,"class","CloseButton"),I(F,"part","CloseButton"),I(n,"class","top-wrapper"),I(t,"class","Root"),I(t,"part","Root")},m(E,H){q(E,t,H),L(t,n),L(n,r),L(r,i),L(i,o),L(i,s),L(s,a),L(a,l),k&&k.m(s,null),c=di(r,e[19].bind(r)),L(n,f),L(n,d),L(d,S),L(n,x),L(n,F),L(t,Q),B.m(t,null),e[22](t),N||(T=rt(F,"click",e[20]),N=!0)},p(E,H){H[0]&16&&I(o,"width",E[4]),H[0]&16&&I(o,"height",E[4]),E[8]&&k.p(E,H),H[0]&16&&I(i,"width",E[4]),H[0]&16&&I(i,"height",E[4]),H[0]&16&&u!==(u=`0 0 ${E[4]} ${E[4]}`)&&I(i,"viewBox",u),H[0]&128&&b!==(b=E[7]("myTournaments")+"")&&Pe(S,b),W===(W=V(E))&&B?B.p(E,H):(B.d(1),B=W(E),B&&(B.c(),B.m(t,null)))},i:ee,o:ee,d(E){E&&Z(t),k&&k.d(),c(),B.d(),e[22](null),N=!1,T()}}}function ea(e,t,n){let r,i,o,s,a;ui(e,Ds,g=>n(7,a=g));let{endpoint:l=""}=t,{lang:u="en"}=t,{session:c=""}=t,{state:f=void 0}=t,{states:d="Scheduled,Ongoing,Finished"}=t,{filter:b=""}=t,{clientstyling:S=""}=t,{clientstylingurl:x=""}=t,{translationurl:F=""}=t,{mbsource:Q}=t;Wr({withLocale:"en",translations:{}});const N=()=>{fetch(F).then(M=>M.json()).then(M=>{Object.keys(M).forEach(K=>{yn(K,M[K])}),de()}).catch(M=>{console.error(M)})};Object.keys(Ot).forEach(g=>{yn(g,Ot[g])});let T,k,V,W=0,B=Bi,E=!0,H={};const ge=g=>{let M={};i.map(D=>{M[D]||(M[D]=[])}),((g==null?void 0:g.items)||[]).map(D=>{const{id:lt,nameOrTitle:Ft,endTime:Gt}=D.tournament,jt={id:lt,title:Ft,rank:D.leaderBoard&&`#${D.leaderBoard.rank}/${D.endRank}`,enddate:Gt,prize:D.leaderBoard&&D.leaderBoard.prizeName};M[rr(D.tournament.state)].push(jt)}),n(16,H=M)},Se=Xs({PlayerLeaderBoardsUpdate:g=>{ge(g),o.map(M=>{Gs(M,H[M].length)})},TournamentUpdate:g=>{if(g!=null&&g.item){const M=(g==null?void 0:g.item)||{};let K=rr(M.state);n(16,H=pt(dt({},H),{[K]:H[K].map(D=>(D==null?void 0:D.id)===M.id?pt(dt({},D),{title:M.nameOrTitle,enddate:M.endTime}):D)}))}}}),ce=(g,M)=>mt(this,null,function*(){const K=`${l}/v1/tournaments`,D=new URL(K);D.searchParams.append("pagination",`offset=${g},limit=${M}`),D.searchParams.append("sortField","StartTime"),D.searchParams.append("sortOrder","desc"),D.searchParams.append("language",u),D.searchParams.append("XSessionId",c),b&&D.searchParams.append("filter",b),V=Js(V,zs(`${K}/leaderboard/player/updates?${D.searchParams.toString()}`),Se)});Us();const Oe=()=>{ce(0,30),ks(u),de()},de=()=>{setTimeout(()=>{const g=M=>a(`${M}`);rn("Scheduled",g("scheduled")),rn("Ongoing",g("ongoing")),rn("Finished",`${g("finished")} (${g("last")} 48h)`)},1)};In(()=>()=>{V&&V.removeEventListener("message",Se)}),Qs({TournamentsTabSwitch:g=>mt(this,null,function*(){return n(17,r=g.tab)})});function te(){W=this.clientWidth,n(4,W)}const Be=()=>window.postMessage({type:"OnCloseThumbnail"},window.location.href),ve=g=>{window.postMessage({type:"MyTournamentFromNavClicked",tournamentId:g==null?void 0:g.id,showLeaderboard:!0},window.location.href)};function Te(g){Bt[g?"unshift":"push"](()=>{T=g,n(3,T)})}return e.$$set=g=>{"endpoint"in g&&n(9,l=g.endpoint),"lang"in g&&n(10,u=g.lang),"session"in g&&n(11,c=g.session),"state"in g&&n(0,f=g.state),"states"in g&&n(1,d=g.states),"filter"in g&&n(12,b=g.filter),"clientstyling"in g&&n(13,S=g.clientstyling),"clientstylingurl"in g&&n(14,x=g.clientstylingurl),"translationurl"in g&&n(15,F=g.translationurl),"mbsource"in g&&n(2,Q=g.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&1&&n(17,r=f),e.$$.dirty[0]&2&&n(18,i=d.split(",")),e.$$.dirty[0]&262144&&(o=i.filter(g=>g!=="Finished")),e.$$.dirty[0]&196608&&n(6,s=H[r]),e.$$.dirty[0]&7680&&l&&b&&u&&c&&Oe(),e.$$.dirty[0]&8200&&S&&T&&mr(T,S),e.$$.dirty[0]&16392&&x&&T&&gr(T,x),e.$$.dirty[0]&12&&Q&&T&&vr(T,`${Q}.Style`,k),e.$$.dirty[0]&32768&&F&&N(),e.$$.dirty[0]&1024&&u&&de(),e.$$.dirty[0]&65536&&Object.keys(H).length&&(n(5,E=!1),de())},[f,d,Q,T,W,E,s,a,B,l,u,c,b,S,x,F,H,r,i,te,Be,ve,Te]}class qr extends Tn{constructor(t){super(),Sn(this,t,ea,$s,Nt,{endpoint:9,lang:10,session:11,state:0,states:1,filter:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:2},Vs,[-1,-1])}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),he()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),he()}get session(){return this.$$.ctx[11]}set session(t){this.$$set({session:t}),he()}get state(){return this.$$.ctx[0]}set state(t){this.$$set({state:t}),he()}get states(){return this.$$.ctx[1]}set states(t){this.$$set({states:t}),he()}get filter(){return this.$$.ctx[12]}set filter(t){this.$$set({filter:t}),he()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),he()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),he()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),he()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),he()}}Bn(qr,{endpoint:{},lang:{},session:{},state:{},states:{},filter:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const ta=Object.freeze(Object.defineProperty({__proto__:null,default:qr},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsLimitedController_ce=ta;exports.SvelteComponent=Tn;exports.append=L;exports.append_styles=xn;exports.attr=I;exports.binding_callbacks=Bt;exports.create_custom_element=Bn;exports.destroy_each=St;exports.detach=Z;exports.element=G;exports.ensure_array_like=Ne;exports.flush=he;exports.init=Sn;exports.insert=q;exports.isMobile=Zr;exports.is_function=_t;exports.listen=rt;exports.noop=ee;exports.onMount=In;exports.safe_not_equal=Nt;exports.setClientStyling=mr;exports.setClientStylingURL=gr;exports.setStreamStyling=vr;exports.set_data=Pe;exports.space=be;exports.text=He;
@@ -4524,6 +4524,36 @@ const jr = (e) => {
4524
4524
  prize: "Díj",
4525
4525
  myTournaments: "Versenyeim"
4526
4526
  },
4527
+ ru: {
4528
+ 500: "500 - Внутренняя ошибка сервера",
4529
+ scheduled: "Предстоящие",
4530
+ ongoing: "Идёт",
4531
+ finished: "Завершено",
4532
+ last: "последний",
4533
+ loading: "Загрузка, пожалуйста подождите ...",
4534
+ noTournaments: "Турниры не найдены",
4535
+ nothing: "Здесь нечего показать.",
4536
+ name: "Название",
4537
+ rank: "Место",
4538
+ enddate: "Дата окончания",
4539
+ prize: "Приз",
4540
+ myTournaments: "Мои турниры"
4541
+ },
4542
+ az: {
4543
+ 500: "500 - Daxili server xətası",
4544
+ scheduled: "Gələcək",
4545
+ ongoing: "Davam edir",
4546
+ finished: "Bağlıdır",
4547
+ last: "sonuncu",
4548
+ loading: "Yüklənir, zəhmət olmasa gözləyin ...",
4549
+ noTournaments: "Turnir tapılmadı",
4550
+ nothing: "Burada göstəriləcək heç nə yoxdur.",
4551
+ name: "Ad",
4552
+ rank: "Sıra",
4553
+ enddate: "Bitmə tarixi",
4554
+ prize: "Mükafat",
4555
+ myTournaments: "Mənim Turnirlərim"
4556
+ },
4527
4557
  "en-us": {
4528
4558
  500: "500 - Internal server error",
4529
4559
  scheduled: "Upcoming",
@@ -5064,7 +5094,7 @@ if (typeof window < "u") {
5064
5094
  }
5065
5095
  };
5066
5096
  };
5067
- customElements.define = e(customElements.define), import("./CasinoTournamentsTab-CACw0Hww.js").then(({ default: t }) => {
5097
+ customElements.define = e(customElements.define), import("./CasinoTournamentsTab-BNfBmAQQ.js").then(({ default: t }) => {
5068
5098
  !customElements.get("casino-tournaments-tab") && customElements.define("casino-tournaments-tab", t.element);
5069
5099
  });
5070
5100
  }