@everymatrix/casino-tournaments-limited-controller 1.50.1 → 1.51.0

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.
@@ -4462,6 +4462,21 @@ const Zn = (e) => {
4462
4462
  enddate: "Befejezés dátuma",
4463
4463
  prize: "Díj",
4464
4464
  myTournaments: "Versenyeim"
4465
+ },
4466
+ "en-us": {
4467
+ 500: "500 - Internal server error",
4468
+ scheduled: "Upcoming",
4469
+ ongoing: "Running",
4470
+ finished: "Closed",
4471
+ last: "last",
4472
+ loading: "Loading, please wait ...",
4473
+ noTournaments: "No tournaments found",
4474
+ nothing: "Nothing to show here.",
4475
+ name: "Name",
4476
+ rank: "Rank",
4477
+ enddate: "End Date",
4478
+ prize: "Prize",
4479
+ myTournaments: "My Tournaments"
4465
4480
  }
4466
4481
  };
4467
4482
  function jr({ withLocale: e, translations: t }) {
@@ -4987,7 +5002,7 @@ if (typeof window != "undefined") {
4987
5002
  }
4988
5003
  };
4989
5004
  };
4990
- customElements.define = e(customElements.define), import("./CasinoTournamentsTab-CBhl8Fea.js").then(({ default: t }) => {
5005
+ customElements.define = e(customElements.define), import("./CasinoTournamentsTab-EMmErxHu.js").then(({ default: t }) => {
4991
5006
  !customElements.get("casino-tournaments-tab") && customElements.define("casino-tournaments-tab", t.element);
4992
5007
  });
4993
5008
  }
@@ -4,10 +4,10 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
4
4
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
5
5
  `):"",this.name="UnsubscriptionError",this.errors=n}});function rn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ot=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=tn(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(I){t={error:I}}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(be(c))try{c()}catch(I){o=I instanceof Jt?I.errors:[I]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=tn(f),E=d.next();!E.done;E=d.next()){var T=E.value;try{_n(T)}catch(I){o=o!=null?o:[],I instanceof Jt?o=Fe(Fe([],nn(o)),nn(I.errors)):o.push(I)}}}catch(I){r={error:I}}finally{try{E&&!E.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(o)throw new Jt(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)_n(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)&&rn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&rn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),cr=Ot.EMPTY;function dr(e){return e instanceof Ot||e&&"closed"in e&&be(e.remove)&&be(e.add)&&be(e.unsubscribe)}function _n(e){be(e)?e():e.unsubscribe()}var pr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Bi={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Fe([e,t],nn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ti(e){Bi.setTimeout(function(){throw e})}function Pn(){}function yt(e){e()}var mr=function(e){Ee(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,dr(n)&&n.add(r)):r.destination=Ri,r}return t.create=function(n,r,i){return new on(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}(Ot),Ci=Function.prototype.bind;function Xt(e,t){return Ci.call(e,t)}var Si=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){At(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){At(r)}else At(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){At(n)}},e}(),on=function(e){Ee(t,e);function t(n,r,i){var o=e.call(this)||this,s;if(be(n)||!n)s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var a;o&&pr.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return o.unsubscribe()},s={next:n.next&&Xt(n.next,a),error:n.error&&Xt(n.error,a),complete:n.complete&&Xt(n.complete,a)}):s=n}return o.destination=new Si(s),o}return t}(mr);function At(e){Ti(e)}function Hi(e){throw e}var Ri={closed:!0,next:Pn,error:Hi,complete:Pn},Oi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ni(e){return e}function _i(e){return e.length===0?Ni:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var Dn=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=Di(t)?t:new on(t,n,r);return yt(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=Ln(n),new n(function(i,o){var s=new on({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[Oi]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return _i(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Ln(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 Ln(e){var t;return(t=e!=null?e:pr.Promise)!==null&&t!==void 0?t:Promise}function Pi(e){return e&&be(e.next)&&be(e.error)&&be(e.complete)}function Di(e){return e&&e instanceof mr||Pi(e)&&dr(e)}var Li=fr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gr=function(e){Ee(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 Mn(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Li},t.prototype.next=function(n){var r=this;yt(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=tn(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;yt(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;yt(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?cr:(this.currentObservers=null,a.push(n),new Ot(function(){r.currentObservers=null,rn(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 Dn;return n.source=this,n},t.create=function(n,r){return new Mn(n,r)},t}(Dn),Mn=function(e){Ee(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:cr},t}(gr),vr={now:function(){return(vr.delegate||Date).now()},delegate:void 0},Mi=function(e){Ee(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=vr);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}(gr);const kn=[],Un={},ki=(e,t=0)=>{if(kn.indexOf(e)==-1){const n=new Mi(t);Un[e]=n,kn.push(e)}return Un[e]},Le=[];function Ui(e,t){return{subscribe:Nt(e,t).subscribe}}function Nt(e,t=K){let n;const r=new Set;function i(a){if(Rt(e,a)&&(e=a,n)){const l=!Le.length;for(const u of r)u[1](),Le.push(u,e);if(l){for(let u=0;u<Le.length;u+=2)Le[u][0](Le[u+1]);Le.length=0}}}function o(a){i(a(e))}function s(a,l=K){const u=[a,l];return r.add(u),r.size===1&&(n=t(i,o)||K),a(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function Je(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 Ui(n,(s,a)=>{let l=!1;const u=[];let c=0,f=K;const d=()=>{if(c)return;f();const T=t(r?u[0]:u,s,a);o?s(T):f=gn(T)?T:K},E=i.map((T,I)=>ur(T,U=>{u[I]=U,c&=~(1<<I),l&&d()},()=>{c|=1<<I}));return l=!0,d(),function(){rt(E),f(),l=!1}})}var Fi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Gi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ji=function(t){return Qi(t)&&!zi(t)};function Qi(e){return!!e&&typeof e=="object"}function zi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Vi(e)}var Ji=typeof Symbol=="function"&&Symbol.for,Xi=Ji?Symbol.for("react.element"):60103;function Vi(e){return e.$$typeof===Xi}function Zi(e){return Array.isArray(e)?[]:{}}function tt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ge(Zi(e),e,t):e}function Wi(e,t,n){return e.concat(t).map(function(r){return tt(r,n)})}function Yi(e,t){if(!t.customMerge)return Ge;var n=t.customMerge(e);return typeof n=="function"?n:Ge}function qi(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Fn(e){return Object.keys(e).concat(qi(e))}function Ar(e,t){try{return t in e}catch(n){return!1}}function Ki(e,t){return Ar(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function $i(e,t,n){var r={};return n.isMergeableObject(e)&&Fn(e).forEach(function(i){r[i]=tt(e[i],n)}),Fn(t).forEach(function(i){Ki(e,i)||(Ar(e,i)&&n.isMergeableObject(t[i])?r[i]=Yi(i,n)(e[i],t[i],n):r[i]=tt(t[i],n))}),r}function Ge(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Wi,n.isMergeableObject=n.isMergeableObject||ji,n.cloneUnlessOtherwiseSpecified=tt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):$i(e,t,n):tt(t,n)}Ge.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Ge(r,i,n)},{})};var eo=Ge,to=eo;const no=Gi(to);function Vt(e,t){var n=t&&t.cache?t.cache:uo,r=t&&t.serializer?t.serializer:ao,i=t&&t.strategy?t.strategy:io;return i(e,{cache:n,serializer:r})}function ro(e){return e==null||typeof e=="number"||typeof e=="boolean"}function br(e,t,n,r){var i=ro(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function Er(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 wn(e,t,n,r,i){return n.bind(t,e,r,i)}function io(e,t){var n=e.length===1?br:Er;return wn(e,this,n,t.cache.create(),t.serializer)}function oo(e,t){return wn(e,this,Er,t.cache.create(),t.serializer)}function so(e,t){return wn(e,this,br,t.cache.create(),t.serializer)}var ao=function(){return JSON.stringify(arguments)};function xn(){this.cache=Object.create(null)}xn.prototype.get=function(e){return this.cache[e]};xn.prototype.set=function(e,t){this.cache[e]=t};var uo={create:function(){return new xn}},Zt={variadic:oo,monadic:so},H;(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"})(H||(H={}));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 je;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(je||(je={}));function Gn(e){return e.type===j.literal}function lo(e){return e.type===j.argument}function yr(e){return e.type===j.number}function wr(e){return e.type===j.date}function xr(e){return e.type===j.time}function Ir(e){return e.type===j.select}function Br(e){return e.type===j.plural}function ho(e){return e.type===j.pound}function Tr(e){return e.type===j.tag}function Cr(e){return!!(e&&typeof e=="object"&&e.type===je.number)}function sn(e){return!!(e&&typeof e=="object"&&e.type===je.dateTime)}var Sr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,fo=/(?:[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 co(e){var t={};return e.replace(fo,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 po=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function mo(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(po).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 go(e){return e.replace(/^(.*?)-/,"")}var jn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Hr=/^(@+)?(\+|#+)?[rs]?$/g,vo=/(\*)(0+)|(#+)(0+)|(0+)/g,Rr=/^(0+)$/;function Qn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Hr,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 Or(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 Ao(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)),!Rr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function zn(e){var t={},n=Or(e);return n||t}function bo(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=go(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=P(P(P({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return P(P({},l),zn(u))},{}));continue;case"engineering":t=P(P(P({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return P(P({},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(vo,function(l,u,c,f,d,E){if(u)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(E)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Rr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(jn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(jn,function(l,u,c,f,d,E){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&E?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+E.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=P(P({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=P(P({},t),Qn(o)));continue}if(Hr.test(i.stem)){t=P(P({},t),Qn(i.stem));continue}var s=Or(i.stem);s&&(t=P(P({},t),s));var a=Ao(i.stem);a&&(t=P(P({},t),a))}return t}var bt={"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 Eo(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=yo(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 yo(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=bt[r||""]||bt[n||""]||bt["".concat(n,"-001")]||bt["001"];return i[0]}var Wt,wo=new RegExp("^".concat(Sr.source,"*")),xo=new RegExp("".concat(Sr.source,"*$"));function O(e,t){return{start:e,end:t}}var Io=!!String.prototype.startsWith&&"_a".startsWith("a",1),Bo=!!String.fromCodePoint,To=!!Object.fromEntries,Co=!!String.prototype.codePointAt,So=!!String.prototype.trimStart,Ho=!!String.prototype.trimEnd,Ro=!!Number.isSafeInteger,Oo=Ro?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},an=!0;try{var No=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");an=((Wt=No.exec("a"))===null||Wt===void 0?void 0:Wt[0])==="a"}catch(e){an=!1}var Jn=Io?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},un=Bo?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},Xn=To?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},Nr=Co?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}},_o=So?function(t){return t.trimStart()}:function(t){return t.replace(wo,"")},Po=Ho?function(t){return t.trimEnd()}:function(t){return t.replace(xo,"")};function _r(e,t){return new RegExp(e,t)}var ln;if(an){var Vn=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ln=function(t,n){var r;Vn.lastIndex=n;var i=Vn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else ln=function(t,n){for(var r=[];;){var i=Nr(t,n);if(i===void 0||Pr(i)||ko(i))break;r.push(i),n+=i>=65536?2:1}return un.apply(void 0,r)};var Do=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:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(H.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&hn(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:O(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()||!hn(this.char()))return this.error(H.INVALID_TAG,O(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(H.UNMATCHED_CLOSING_TAG,O(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:i,children:s,location:O(r,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,O(r,this.clonePosition()))}else return this.error(H.INVALID_TAG,O(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Mo(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=O(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||!Lo(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 un.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(),un(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,O(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(H.MALFORMED_ARGUMENT,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:i,location:O(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(H.MALFORMED_ARGUMENT,O(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=ln(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=O(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(H.EXPECT_ARGUMENT_TYPE,O(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=Po(f.val);if(d.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var E=O(c,this.clonePosition());u={style:d,styleLocation:E}}var T=this.tryParseArgumentClose(i);if(T.err)return T;var I=O(i,this.clonePosition());if(u&&Jn(u==null?void 0:u.style,"::",0)){var U=_o(u.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(U,u.styleLocation);return f.err?f:{val:{type:j.number,value:r,location:I,style:f.val},err:null}}else{if(U.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,I);var V=U;this.locale&&(V=Eo(U,this.locale));var d={type:je.dateTime,pattern:V,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?co(V):{}},S=a==="date"?j.date:j.time;return{val:{type:S,value:r,location:I,style:d},err:null}}}return{val:{type:a==="number"?j.number:a==="date"?j.date:j.time,value:r,location:I,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,O(A,P({},A)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),N=0;if(a!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),B=this.parseIdentifierIfPossible(),N=f.val}var Y=this.tryParsePluralOrSelectOptions(t,a,n,B);if(Y.err)return Y;var T=this.tryParseArgumentClose(i);if(T.err)return T;var F=O(i,this.clonePosition());return a==="select"?{val:{type:j.select,value:r,options:Xn(Y.val),location:F},err:null}:{val:{type:j.plural,value:r,options:Xn(Y.val),offset:N,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,O(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,O(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(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(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=mo(t)}catch(i){return this.error(H.INVALID_NUMBER_SKELETON,n)}return{val:{type:je.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?bo(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(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=O(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var E=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(t+1,n,r);if(T.err)return T;var I=this.tryParseArgumentClose(E);if(I.err)return I;a.push([u,{value:T.val,location:O(E,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(n==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(H.MISSING_OTHER_CLAUSE,O(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=O(i,this.clonePosition());return o?(s*=r,Oo(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=Nr(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(Jn(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()&&Pr(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 hn(e){return e>=97&&e<=122||e>=65&&e<=90}function Lo(e){return hn(e)||e===47}function Mo(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 Pr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ko(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 fn(e){e.forEach(function(t){if(delete t.location,Ir(t)||Br(t))for(var n in t.options)delete t.options[n].location,fn(t.options[n].value);else yr(t)&&Cr(t.style)||(wr(t)||xr(t))&&sn(t.style)?delete t.style.location:Tr(t)&&fn(t.children)})}function Uo(e,t){t===void 0&&(t={}),t=P({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Do(e,t).parse();if(n.err){var r=SyntaxError(H[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||fn(n.val),n.val}var Qe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Qe||(Qe={}));var _t=function(e){Ee(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),Zn=function(e){Ee(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('", "'),'"'),Qe.INVALID_VALUE,o)||this}return t}(_t),Fo=function(e){Ee(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Qe.INVALID_VALUE,i)||this}return t}(_t),Go=function(e){Ee(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,'"'),Qe.MISSING_VALUE,r)||this}return t}(_t),oe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(oe||(oe={}));function jo(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==oe.literal||n.type!==oe.literal?t.push(n):r.value+=n.value,t},[])}function Qo(e){return typeof e=="function"}function wt(e,t,n,r,i,o,s){if(e.length===1&&Gn(e[0]))return[{type:oe.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Gn(c)){a.push({type:oe.literal,value:c.value});continue}if(ho(c)){typeof o=="number"&&a.push({type:oe.literal,value:n.getNumberFormat(t).format(o)});continue}var f=c.value;if(!(i&&f in i))throw new Go(f,s);var d=i[f];if(lo(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?oe.literal:oe.object,value:d});continue}if(wr(c)){var E=typeof c.style=="string"?r.date[c.style]:sn(c.style)?c.style.parsedOptions:void 0;a.push({type:oe.literal,value:n.getDateTimeFormat(t,E).format(d)});continue}if(xr(c)){var E=typeof c.style=="string"?r.time[c.style]:sn(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:oe.literal,value:n.getDateTimeFormat(t,E).format(d)});continue}if(yr(c)){var E=typeof c.style=="string"?r.number[c.style]:Cr(c.style)?c.style.parsedOptions:void 0;E&&E.scale&&(d=d*(E.scale||1)),a.push({type:oe.literal,value:n.getNumberFormat(t,E).format(d)});continue}if(Tr(c)){var T=c.children,I=c.value,U=i[I];if(!Qo(U))throw new Fo(I,"function",s);var V=wt(T,t,n,r,i,o),S=U(V.map(function(N){return N.value}));Array.isArray(S)||(S=[S]),a.push.apply(a,S.map(function(N){return{type:typeof N=="string"?oe.literal:oe.object,value:N}}))}if(Ir(c)){var A=c.options[d]||c.options.other;if(!A)throw new Zn(c.value,d,Object.keys(c.options),s);a.push.apply(a,wt(A.value,t,n,r,i));continue}if(Br(c)){var A=c.options["=".concat(d)];if(!A){if(!Intl.PluralRules)throw new _t(`Intl.PluralRules is not available in this environment.
6
6
  Try polyfilling it using "@formatjs/intl-pluralrules"
7
- `,Qe.MISSING_INTL_API,s);var B=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));A=c.options[B]||c.options.other}if(!A)throw new Zn(c.value,d,Object.keys(c.options),s);a.push.apply(a,wt(A.value,t,n,r,i,d-(c.offset||0)));continue}}return jo(a)}function zo(e,t){return t?P(P(P({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=P(P({},e[r]),t[r]||{}),n},{})):e}function Jo(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=zo(e[r],t[r]),n},P({},e)):e}function Yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Xo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:Yt(e.number),strategy:Zt.variadic}),getDateTimeFormat:Vt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:Yt(e.dateTime),strategy:Zt.variadic}),getPluralRules:Vt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Fe([void 0],n,!1)))},{cache:Yt(e.pluralRules),strategy:Zt.variadic})}}var Vo=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!==oe.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 wt(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=Ii(s,["formatters"]);this.ast=e.__parse(t,P(P({},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=Jo(e.formats,r),this.formatters=i&&i.formatters||Xo(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=Uo,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 Zo(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 Ie={},Wo=(e,t,n)=>n&&(t in Ie||(Ie[t]={}),e in Ie[t]||(Ie[t][e]=n),n),Dr=(e,t)=>{if(t==null)return;if(t in Ie&&e in Ie[t])return Ie[t][e];const n=Pt(t);for(let r=0;r<n.length;r++){const i=n[r],o=qo(i,e);if(o)return Wo(e,t,o)}};let In;const Xe=Nt({});function Yo(e){return In[e]||null}function Lr(e){return e in In}function qo(e,t){if(!Lr(e))return null;const n=Yo(e);return Zo(n,t)}function Ko(e){if(e==null)return;const t=Pt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Lr(r))return r}}function Mr(e,...t){delete Ie[e],Xe.update(n=>(n[e]=no.all([n[e]||{},...t]),n))}Je([Xe],([e])=>Object.keys(e));Xe.subscribe(e=>In=e);const xt={};function $o(e,t){xt[e].delete(t),xt[e].size===0&&delete xt[e]}function kr(e){return xt[e]}function es(e){return Pt(e).map(t=>{const n=kr(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function cn(e){return e==null?!1:Pt(e).some(t=>{var n;return(n=kr(t))==null?void 0:n.size})}function ts(e,t){return Promise.all(t.map(r=>($o(e,r),r().then(i=>i.default||i)))).then(r=>Mr(e,...r))}const qe={};function Ur(e){if(!cn(e))return e in qe?qe[e]:Promise.resolve();const t=es(e);return qe[e]=Promise.all(t.map(([n,r])=>ts(n,r))).then(()=>{if(cn(e))return Ur(e);delete qe[e]}),qe[e]}const ns={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"}}},rs={fallbackLocale:null,loadingDelay:200,formats:ns,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},is=rs;function ze(){return is}const qt=Nt(!1);var os=Object.defineProperty,ss=Object.defineProperties,as=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,ls=Object.prototype.propertyIsEnumerable,Yn=(e,t,n)=>t in e?os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hs=(e,t)=>{for(var n in t||(t={}))us.call(t,n)&&Yn(e,n,t[n]);if(Wn)for(var n of Wn(t))ls.call(t,n)&&Yn(e,n,t[n]);return e},fs=(e,t)=>ss(e,as(t));let dn;const Ct=Nt(null);function qn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Pt(e,t=ze().fallbackLocale){const n=qn(e);return t?[...new Set([...n,...qn(t)])]:n}function Oe(){return dn!=null?dn:void 0}Ct.subscribe(e=>{dn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const cs=e=>{if(e&&Ko(e)&&cn(e)){const{loadingDelay:t}=ze();let n;return typeof window!="undefined"&&Oe()!=null&&t?n=window.setTimeout(()=>qt.set(!0),t):qt.set(!0),Ur(e).then(()=>{Ct.set(e)}).finally(()=>{clearTimeout(n),qt.set(!1)})}return Ct.set(e)},Te=fs(hs({},Ct),{set:cs}),Dt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var ds=Object.defineProperty,St=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Kn=(e,t,n)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t)=>{for(var n in t||(t={}))Fr.call(t,n)&&Kn(e,n,t[n]);if(St)for(var n of St(t))Gr.call(t,n)&&Kn(e,n,t[n]);return e},Ve=(e,t)=>{var n={};for(var r in e)Fr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&St)for(var r of St(e))t.indexOf(r)<0&&Gr.call(e,r)&&(n[r]=e[r]);return n};const nt=(e,t)=>{const{formats:n}=ze();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ps=Dt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=nt("number",r)),new Intl.NumberFormat(n,i)}),ms=Dt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=nt("date",r):Object.keys(i).length===0&&(i=nt("date","short")),new Intl.DateTimeFormat(n,i)}),gs=Dt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=nt("time",r):Object.keys(i).length===0&&(i=nt("time","short")),new Intl.DateTimeFormat(n,i)}),vs=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Ve(t,["locale"]);return ps(Bn({locale:n},r))},As=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Ve(t,["locale"]);return ms(Bn({locale:n},r))},bs=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Ve(t,["locale"]);return gs(Bn({locale:n},r))},Es=Dt((e,t=Oe())=>new Vo(e,t,ze().formats,{ignoreTag:ze().ignoreTag})),ys=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=Oe(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Dr(e,l);if(!c)c=(o=(i=(r=(n=ze()).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=Es(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},ws=(e,t)=>bs(t).format(e),xs=(e,t)=>As(t).format(e),Is=(e,t)=>vs(t).format(e),Bs=(e,t=Oe())=>Dr(e,t),Ts=Je([Te,Xe],()=>ys);Je([Te],()=>ws);Je([Te],()=>xs);Je([Te],()=>Is);Je([Te,Xe],()=>Bs);window.emWidgets={topic:ki};const Cs=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)),Ss=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",{userAgent:Hs}=window.navigator;Cs(window.navigator.userAgent);Ss(Hs);const $n=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")}},Ht={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"}};function jr({withLocale:e,translations:t}){Te.subscribe(n=>{n==null&&(Xe.set(t),Te.set(e))})}function pn(e,t){Mr(e,t)}function Rs(e){Te.set(e)}const Os=()=>{jr({withLocale:"en",translations:{}}),Object.keys(Ht).forEach(e=>{pn(e,Ht[e])})};var mn={exports:{}};/** @license
7
+ `,Qe.MISSING_INTL_API,s);var B=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));A=c.options[B]||c.options.other}if(!A)throw new Zn(c.value,d,Object.keys(c.options),s);a.push.apply(a,wt(A.value,t,n,r,i,d-(c.offset||0)));continue}}return jo(a)}function zo(e,t){return t?P(P(P({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=P(P({},e[r]),t[r]||{}),n},{})):e}function Jo(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=zo(e[r],t[r]),n},P({},e)):e}function Yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Xo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:Yt(e.number),strategy:Zt.variadic}),getDateTimeFormat:Vt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:Yt(e.dateTime),strategy:Zt.variadic}),getPluralRules:Vt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Fe([void 0],n,!1)))},{cache:Yt(e.pluralRules),strategy:Zt.variadic})}}var Vo=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!==oe.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 wt(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=Ii(s,["formatters"]);this.ast=e.__parse(t,P(P({},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=Jo(e.formats,r),this.formatters=i&&i.formatters||Xo(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=Uo,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 Zo(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 Ie={},Wo=(e,t,n)=>n&&(t in Ie||(Ie[t]={}),e in Ie[t]||(Ie[t][e]=n),n),Dr=(e,t)=>{if(t==null)return;if(t in Ie&&e in Ie[t])return Ie[t][e];const n=Pt(t);for(let r=0;r<n.length;r++){const i=n[r],o=qo(i,e);if(o)return Wo(e,t,o)}};let In;const Xe=Nt({});function Yo(e){return In[e]||null}function Lr(e){return e in In}function qo(e,t){if(!Lr(e))return null;const n=Yo(e);return Zo(n,t)}function Ko(e){if(e==null)return;const t=Pt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Lr(r))return r}}function Mr(e,...t){delete Ie[e],Xe.update(n=>(n[e]=no.all([n[e]||{},...t]),n))}Je([Xe],([e])=>Object.keys(e));Xe.subscribe(e=>In=e);const xt={};function $o(e,t){xt[e].delete(t),xt[e].size===0&&delete xt[e]}function kr(e){return xt[e]}function es(e){return Pt(e).map(t=>{const n=kr(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function cn(e){return e==null?!1:Pt(e).some(t=>{var n;return(n=kr(t))==null?void 0:n.size})}function ts(e,t){return Promise.all(t.map(r=>($o(e,r),r().then(i=>i.default||i)))).then(r=>Mr(e,...r))}const qe={};function Ur(e){if(!cn(e))return e in qe?qe[e]:Promise.resolve();const t=es(e);return qe[e]=Promise.all(t.map(([n,r])=>ts(n,r))).then(()=>{if(cn(e))return Ur(e);delete qe[e]}),qe[e]}const ns={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"}}},rs={fallbackLocale:null,loadingDelay:200,formats:ns,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},is=rs;function ze(){return is}const qt=Nt(!1);var os=Object.defineProperty,ss=Object.defineProperties,as=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,ls=Object.prototype.propertyIsEnumerable,Yn=(e,t,n)=>t in e?os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hs=(e,t)=>{for(var n in t||(t={}))us.call(t,n)&&Yn(e,n,t[n]);if(Wn)for(var n of Wn(t))ls.call(t,n)&&Yn(e,n,t[n]);return e},fs=(e,t)=>ss(e,as(t));let dn;const Ct=Nt(null);function qn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Pt(e,t=ze().fallbackLocale){const n=qn(e);return t?[...new Set([...n,...qn(t)])]:n}function Oe(){return dn!=null?dn:void 0}Ct.subscribe(e=>{dn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const cs=e=>{if(e&&Ko(e)&&cn(e)){const{loadingDelay:t}=ze();let n;return typeof window!="undefined"&&Oe()!=null&&t?n=window.setTimeout(()=>qt.set(!0),t):qt.set(!0),Ur(e).then(()=>{Ct.set(e)}).finally(()=>{clearTimeout(n),qt.set(!1)})}return Ct.set(e)},Te=fs(hs({},Ct),{set:cs}),Dt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var ds=Object.defineProperty,St=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Kn=(e,t,n)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t)=>{for(var n in t||(t={}))Fr.call(t,n)&&Kn(e,n,t[n]);if(St)for(var n of St(t))Gr.call(t,n)&&Kn(e,n,t[n]);return e},Ve=(e,t)=>{var n={};for(var r in e)Fr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&St)for(var r of St(e))t.indexOf(r)<0&&Gr.call(e,r)&&(n[r]=e[r]);return n};const nt=(e,t)=>{const{formats:n}=ze();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ps=Dt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=nt("number",r)),new Intl.NumberFormat(n,i)}),ms=Dt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=nt("date",r):Object.keys(i).length===0&&(i=nt("date","short")),new Intl.DateTimeFormat(n,i)}),gs=Dt(e=>{var t=e,{locale:n,format:r}=t,i=Ve(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=nt("time",r):Object.keys(i).length===0&&(i=nt("time","short")),new Intl.DateTimeFormat(n,i)}),vs=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Ve(t,["locale"]);return ps(Bn({locale:n},r))},As=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Ve(t,["locale"]);return ms(Bn({locale:n},r))},bs=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Ve(t,["locale"]);return gs(Bn({locale:n},r))},Es=Dt((e,t=Oe())=>new Vo(e,t,ze().formats,{ignoreTag:ze().ignoreTag})),ys=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=Oe(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Dr(e,l);if(!c)c=(o=(i=(r=(n=ze()).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=Es(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},ws=(e,t)=>bs(t).format(e),xs=(e,t)=>As(t).format(e),Is=(e,t)=>vs(t).format(e),Bs=(e,t=Oe())=>Dr(e,t),Ts=Je([Te,Xe],()=>ys);Je([Te],()=>ws);Je([Te],()=>xs);Je([Te],()=>Is);Je([Te,Xe],()=>Bs);window.emWidgets={topic:ki};const Cs=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)),Ss=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",{userAgent:Hs}=window.navigator;Cs(window.navigator.userAgent);Ss(Hs);const $n=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")}},Ht={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 jr({withLocale:e,translations:t}){Te.subscribe(n=>{n==null&&(Xe.set(t),Te.set(e))})}function pn(e,t){Mr(e,t)}function Rs(e){Te.set(e)}const Os=()=>{jr({withLocale:"en",translations:{}}),Object.keys(Ht).forEach(e=>{pn(e,Ht[e])})};var mn={exports:{}};/** @license
8
8
  * eventsource.js
9
9
  * Available under MIT License (MIT)
10
10
  * https://github.com/Yaffle/EventSource/
11
11
  */(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,E=n.TextDecoder,T=n.TextEncoder,I=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()}),I==null){var U=f;f=function(h,m){var g=m.signal;return U(h,{headers:m.headers,credentials:m.credentials,cache:m.cache}).then(function(p){var y=p.body.getReader();return g._reader=y,g._aborted&&g._reader.cancel(),{status:p.status,statusText:p.statusText,headers:p.headers,body:{getReader:function(){return y}}}})},I=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function V(){this.bitsNeeded=0,this.codePoint=0}V.prototype.decode=function(h){function m(L,k,w){if(w===1)return L>=128>>k&&L<<k<=2047;if(w===2)return L>=2048>>k&&L<<k<=55295||L>=57344>>k&&L<<k<=65535;if(w===3)return L>=65536>>k&&L<<k<=1114111;throw new Error}function g(L,k){if(L===6*1)return k>>6>15?3:k>31?2:1;if(L===6*2)return k>15?3:2;if(L===6*3)return 3;throw new Error}for(var p=65533,y="",b=this.bitsNeeded,C=this.codePoint,z=0;z<h.length;z+=1){var R=h[z];b!==0&&(R<128||R>191||!m(C<<6|R&63,b-6,g(b,C)))&&(b=0,C=p,y+=String.fromCharCode(C)),b===0?(R>=0&&R<=127?(b=0,C=R):R>=192&&R<=223?(b=6*1,C=R&31):R>=224&&R<=239?(b=6*2,C=R&15):R>=240&&R<=247?(b=6*3,C=R&7):(b=0,C=p),b!==0&&!m(C,b,g(b,C))&&(b=0,C=p)):(b-=6,C=C<<6|R&63),b===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=b,this.codePoint=C,y};var S=function(){try{return new E().decode(new T().encode("test"),{stream:!0})==="test"}catch(h){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+h)}return!1};(E==null||T==null||!S())&&(E=V);var A=function(){};function B(h){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=A,this.onload=A,this.onerror=A,this.onreadystatechange=A,this._contentType="",this._xhr=h,this._sendTimeout=0,this._abort=A}B.prototype.open=function(h,m){this._abort(!0);var g=this,p=this._xhr,y=1,b=0;this._abort=function(w){g._sendTimeout!==0&&(i(g._sendTimeout),g._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,p.onload=A,p.onerror=A,p.onabort=A,p.onprogress=A,p.onreadystatechange=A,p.abort(),b!==0&&(i(b),b=0),w||(g.readyState=4,g.onabort(null),g.onreadystatechange())),y=0};var C=function(){if(y===1){var w=0,J="",me=void 0;if("contentType"in p)w=200,J="OK",me=p.contentType;else try{w=p.status,J=p.statusText,me=p.getResponseHeader("Content-Type")}catch(We){w=0,J="",me=void 0}w!==0&&(y=2,g.readyState=2,g.status=w,g.statusText=J,g._contentType=me,g.onreadystatechange())}},z=function(){if(C(),y===2||y===3){y=3;var w="";try{w=p.responseText}catch(J){}g.readyState=3,g.responseText=w,g.onprogress()}},R=function(w,J){if((J==null||J.preventDefault==null)&&(J={preventDefault:A}),z(),y===1||y===2||y===3){if(y=4,b!==0&&(i(b),b=0),g.readyState=4,w==="load")g.onload(J);else if(w==="error")g.onerror(J);else if(w==="abort")g.onabort(J);else throw new TypeError;g.onreadystatechange()}},L=function(w){p!=null&&(p.readyState===4?(!("onload"in p)||!("onerror"in p)||!("onabort"in p))&&R(p.responseText===""?"error":"load",w):p.readyState===3?"onprogress"in p||z():p.readyState===2&&C())},k=function(){b=r(function(){k()},500),p.readyState===3&&z()};"onload"in p&&(p.onload=function(w){R("load",w)}),"onerror"in p&&(p.onerror=function(w){R("error",w)}),"onabort"in p&&(p.onabort=function(w){R("abort",w)}),"onprogress"in p&&(p.onprogress=z),"onreadystatechange"in p&&(p.onreadystatechange=function(w){L(w)}),("contentType"in p||!("ontimeout"in o.prototype))&&(m+=(m.indexOf("?")===-1?"?":"&")+"padding=true"),p.open(h,m,!0),"readyState"in p&&(b=r(function(){k()},0))},B.prototype.abort=function(){this._abort(!1)},B.prototype.getResponseHeader=function(h){return this._contentType},B.prototype.setRequestHeader=function(h,m){var g=this._xhr;"setRequestHeader"in g&&g.setRequestHeader(h,m)},B.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},B.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(g){throw g}};function N(h){return h.replace(/[A-Z]/g,function(m){return String.fromCharCode(m.charCodeAt(0)+32)})}function Y(h){for(var m=Object.create(null),g=h.split(`\r
12
12
  `),p=0;p<g.length;p+=1){var y=g[p],b=y.split(": "),C=b.shift(),z=b.join(": ");m[N(C)]=z}this._map=m}Y.prototype.get=function(h){return this._map[N(h)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function F(){}F.prototype.open=function(h,m,g,p,y,b,C){h.open("GET",y);var z=0;h.onprogress=function(){var L=h.responseText,k=L.slice(z);z+=k.length,g(k)},h.onerror=function(L){L.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 L=h.status,k=h.statusText,w=h.getResponseHeader("Content-Type"),J=h.getAllResponseHeaders();m(L,k,w,new Y(J))}},h.withCredentials=b;for(var R in C)Object.prototype.hasOwnProperty.call(C,R)&&h.setRequestHeader(R,C[R]);return h.send(),h};function Q(h){this._headers=h}Q.prototype.get=function(h){return this._headers.get(h)};function $(){}$.prototype.open=function(h,m,g,p,y,b,C){var z=null,R=new I,L=R.signal,k=new E;return f(y,{headers:C,credentials:b?"include":"same-origin",signal:L,cache:"no-store"}).then(function(w){return z=w.body.getReader(),m(w.status,w.statusText,w.headers.get("Content-Type"),new Q(w.headers)),new c(function(J,me){var We=function(){z.read().then(function(se){if(se.done)J(void 0);else{var ne=k.decode(se.value,{stream:!0});g(ne),We()}}).catch(function(se){me(se)})};We()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){p(w)}),{abort:function(){z!=null&&z.cancel(),R.abort()}}};function Ce(){this._listeners=Object.create(null)}function it(h){r(function(){throw h},0)}Ce.prototype.dispatchEvent=function(h){h.target=this;var m=this._listeners[h.type];if(m!=null)for(var g=m.length,p=0;p<g;p+=1){var y=m[p];try{typeof y.handleEvent=="function"?y.handleEvent(h):y.call(this,h)}catch(b){it(b)}}},Ce.prototype.addEventListener=function(h,m){h=String(h);var g=this._listeners,p=g[h];p==null&&(p=[],g[h]=p);for(var y=!1,b=0;b<p.length;b+=1)p[b]===m&&(y=!0);y||p.push(m)},Ce.prototype.removeEventListener=function(h,m){h=String(h);var g=this._listeners,p=g[h];if(p!=null){for(var y=[],b=0;b<p.length;b+=1)p[b]!==m&&y.push(p[b]);y.length===0?delete g[h]:g[h]=y}};function ye(h){this.type=h,this.target=void 0}function ot(h,m){ye.call(this,h),this.data=m.data,this.lastEventId=m.lastEventId}ot.prototype=Object.create(ye.prototype);function we(h,m){ye.call(this,h),this.status=m.status,this.statusText=m.statusText,this.headers=m.headers}we.prototype=Object.create(ye.prototype);function st(h,m){ye.call(this,h),this.error=m.error}st.prototype=Object.create(ye.prototype);var Ze=-1,de=0,xe=1,v=2,D=-1,_=0,ee=1,at=2,Lt=3,Mt=/^text\/event\-stream(;.*)?$/i,Jr=1e3,Xr=18e6,kt=function(h,m){var g=h==null?m:parseInt(h,10);return g!==g&&(g=m),Ut(g)},Ut=function(h){return Math.min(Math.max(h,Jr),Xr)},Ne=function(h,m,g){try{typeof m=="function"&&m.call(h,g)}catch(p){it(p)}};function fe(h,m){Ce.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,Wr(this,h,m)}function Vr(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var Zr=f!=null&&d!=null&&"body"in d.prototype;function Wr(h,m,g){m=String(m);var p=!!g.withCredentials,y=g.lastEventIdQueryParameterName||"lastEventId",b=Ut(1e3),C=kt(g.heartbeatTimeout,45e3),z="",R=b,L=!1,k=0,w=g.headers||{},J=g.Transport,me=Zr&&J==null?void 0:new B(J!=null?new J:Vr()),We=J!=null&&typeof J!="string"?new J:me==null?new $:new F,se=void 0,ne=0,ce=Ze,_e="",ut="",ge="",lt="",re=_,Ft=0,Se=0,Yr=function(q,Z,ae,ue){if(ce===de)if(q===200&&ae!=null&&Mt.test(ae)){ce=xe,L=Date.now(),R=b,h.readyState=xe;var ie=new we("open",{status:q,statusText:Z,headers:ue});h.dispatchEvent(ie),Ne(h,h.onopen,ie)}else{var te="";q!==200?(Z&&(Z=Z.replace(/\s+/g," ")),te="EventSource's response has a status "+q+" "+Z+" that is not 200. Aborting the connection."):te="EventSource's response has a Content-Type specifying an unsupported type: "+(ae==null?"-":ae.replace(/\s+/g," "))+". Aborting the connection.",Gt();var ie=new we("error",{status:q,statusText:Z,headers:ue});h.dispatchEvent(ie),Ne(h,h.onerror,ie),console.error(te)}},qr=function(q){if(ce===xe){for(var Z=-1,ae=0;ae<q.length;ae+=1){var ue=q.charCodeAt(ae);(ue===10||ue===13)&&(Z=ae)}var ie=(Z!==-1?lt:"")+q.slice(0,Z+1);lt=(Z===-1?lt:"")+q.slice(Z+1),q!==""&&(L=Date.now(),k+=q.length);for(var te=0;te<ie.length;te+=1){var ue=ie.charCodeAt(te);if(re===D&&ue===10)re=_;else if(re===D&&(re=_),ue===13||ue===10){if(re!==_){re===ee&&(Se=te+1);var ve=ie.slice(Ft,Se-1),Ae=ie.slice(Se+(Se<te&&ie.charCodeAt(Se)===32?1:0),te);ve==="data"?(_e+=`
13
- `,_e+=Ae):ve==="id"?ut=Ae:ve==="event"?ge=Ae:ve==="retry"?(b=kt(Ae,b),R=b):ve==="heartbeatTimeout"&&(C=kt(Ae,C),ne!==0&&(i(ne),ne=r(function(){Ye()},C)))}if(re===_){if(_e!==""){z=ut,ge===""&&(ge="message");var Pe=new ot(ge,{data:_e.slice(1),lastEventId:ut});if(h.dispatchEvent(Pe),ge==="open"?Ne(h,h.onopen,Pe):ge==="message"?Ne(h,h.onmessage,Pe):ge==="error"&&Ne(h,h.onerror,Pe),ce===v)return}_e="",ge=""}re=ue===13?D:_}else re===_&&(Ft=te,re=ee),re===ee?ue===58&&(Se=te+1,re=at):re===at&&(re=Lt)}}},Cn=function(q){if(ce===xe||ce===de){ce=Ze,ne!==0&&(i(ne),ne=0),ne=r(function(){Ye()},R),R=Ut(Math.min(b*16,R*2)),h.readyState=de;var Z=new st("error",{error:q});h.dispatchEvent(Z),Ne(h,h.onerror,Z),q!=null&&console.error(q)}},Gt=function(){ce=v,se!=null&&(se.abort(),se=void 0),ne!==0&&(i(ne),ne=0),h.readyState=v},Ye=function(){if(ne=0,ce!==Ze){if(!L&&se!=null)Cn(new Error("No activity within "+C+" milliseconds. "+(ce===de?"No response received.":k+" chars received.")+" Reconnecting.")),se!=null&&(se.abort(),se=void 0);else{var q=Math.max((L||Date.now())+C-Date.now(),1);L=!1,ne=r(function(){Ye()},q)}return}L=!1,k=0,ne=r(function(){Ye()},C),ce=de,_e="",ge="",ut=z,lt="",Ft=0,Se=0,re=_;var Z=m;if(m.slice(0,5)!=="data:"&&m.slice(0,5)!=="blob:"&&z!==""){var ae=m.indexOf("?");Z=ae===-1?m:m.slice(0,ae+1)+m.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Ae,Pe){return Pe===y?"":Ae}),Z+=(m.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(z)}var ue=h.withCredentials,ie={};ie.Accept="text/event-stream";var te=h.headers;if(te!=null)for(var ve in te)Object.prototype.hasOwnProperty.call(te,ve)&&(ie[ve]=te[ve]);try{se=We.open(me,Yr,qr,Cn,Z,ue,ie)}catch(Ae){throw Gt(),Ae}};h.url=m,h.readyState=de,h.withCredentials=p,h.headers=w,h._close=Gt,Ye()}fe.prototype=Object.create(Ce.prototype),fe.prototype.CONNECTING=de,fe.prototype.OPEN=xe,fe.prototype.CLOSED=v,fe.prototype.close=function(){this._close()},fe.CONNECTING=de,fe.OPEN=xe,fe.CLOSED=v,fe.prototype.withCredentials=void 0;var Tn=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Tn=fe),function(h){{var m=h(t);m!==void 0&&(e.exports=m)}}(function(h){h.EventSourcePolyfill=fe,h.NativeEventSource=l,h.EventSource=Tn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Fi:globalThis)})(mn,mn.exports);var Ns=mn.exports;const Qr=e=>window.postMessage(e,window.location.href),_s=(e,t)=>{Qr({type:"TournamentsTabTotalUpdate",state:e,total:t})},Kt=(e,t)=>{Qr({type:"TournamentsTabLocaleTextUpdate",state:e,text:t})},Ps=e=>n=>{Object.keys(e).map(r=>{if(n.data&&n.data.type==r){const i=n.data,{type:o}=i,s=Qt(i,["type"]);e[r](s)}})},Ds=e=>{const t=Ps(e);An(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}))},Ls=(e,t=null)=>{let n={accept:"text/event-stream"};return t&&(n["X-SessionID"]=t),new Ns.EventSourcePolyfill(e,{headers:n})},Ms=(e,t,n)=>{e&&(e.removeEventListener("message",n),e.close());let r=t;return typeof r!="undefined"&&r.addEventListener("message",n),r},ks=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=Qt(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-BFH8qkPT.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}function Us(e){vn(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 er(e,t,n){const r=e.slice();return r[33]=t[n],r[35]=n,r}function tr(e,t,n){const r=e.slice();return r[36]=t[n],r}function nr(e,t,n){const r=e.slice();return r[33]=t[n],r}function Fs(e){let t;return{c(){t=Me("image"),x(t,"id","image0_2606_356"),x(t,"width","512"),x(t,"height","512"),lr(t,"xlink:href",e[7])},m(n,r){W(n,t,r)},p:K,d(n){n&&X(t)}}}function Gs(e){let t,n,r;function i(a,l){return a[5]?zs:Qs}let o=i(e),s=o(e);return{c(){t=G("section"),n=G("casino-tournaments-tab"),r=pe(),s.c(),pt(n,"tabs",e[1]),pt(n,"tab",e[0])},m(a,l){W(a,t,l),M(t,n),M(t,r),s.m(t,null)},p(a,l){l[0]&2&&pt(n,"tabs",a[1]),l[0]&1&&pt(n,"tab",a[0]),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&&X(t),s.d()}}}function js(e){let t;return{c(){t=G("div"),t.innerHTML="<casino-tournaments-limited-controller-loader></casino-tournaments-limited-controller-loader>",x(t,"class","Loading")},m(n,r){W(n,t,r)},p:K,d(n){n&&X(t)}}}function Qs(e){let t;return{c(){t=G("div"),x(t,"class","NoContent")},m(n,r){W(n,t,r)},p:K,d(n){n&&X(t)}}}function zs(e){let t,n,r,i,o=He([e[6]("name"),e[6]("rank"),e[6]("enddate"),e[6]("prize")]),s=[];for(let u=0;u<4;u+=1)s[u]=rr(nr(e,o,u));let a=He(e[5]),l=[];for(let u=0;u<a.length;u+=1)l[u]=sr(er(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=pe();for(let u=0;u<l.length;u+=1)l[u].c()},m(u,c){W(u,t,c),M(t,n),M(n,r);for(let f=0;f<4;f+=1)s[f]&&s[f].m(r,null);M(t,i);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null)},p(u,c){if(c[0]&64){o=He([u[6]("name"),u[6]("rank"),u[6]("enddate"),u[6]("prize")]);let f;for(f=0;f<4;f+=1){const d=nr(u,o,f);s[f]?s[f].p(d,c):(s[f]=rr(d),s[f].c(),s[f].m(r,null))}for(;f<4;f+=1)s[f].d(1)}if(c[0]&32){a=He(u[5]);let f;for(f=0;f<a.length;f+=1){const d=er(u,a,f);l[f]?l[f].p(d,c):(l[f]=sr(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&&X(t),It(s,u),It(l,u)}}}function rr(e){let t,n=e[33]+"",r;return{c(){t=G("th"),r=Be(n)},m(i,o){W(i,t,o),M(t,r)},p(i,o){o[0]&64&&n!==(n=i[33]+"")&&Re(r,n)},d(i){i&&X(t)}}}function ir(e){let t,n=e[33].title+"",r,i,o,s=(e[33].rank||" -")+"",a,l,u,c,f,d=(e[33].prize||" -")+"",E,T,I;function U(){return e[20](e[33])}let V=He(Nn(e[33].enddate)),S=[];for(let A=0;A<V.length;A+=1)S[A]=or(tr(e,V,A));return{c(){t=G("td"),r=Be(n),i=pe(),o=G("td"),a=Be(s),l=pe(),u=G("td");for(let A=0;A<S.length;A+=1)S[A].c();c=pe(),f=G("td"),E=Be(d),x(t,"class","Title"),x(t,"part","Title"),x(o,"class","Rank"),gt(o,"active",e[33].prize),x(u,"class","EndDate"),x(u,"part","EndDate"),x(u,"nowrap",""),x(f,"class","Prize"),gt(f,"active",e[33].prize)},m(A,B){W(A,t,B),M(t,r),W(A,i,B),W(A,o,B),M(o,a),W(A,l,B),W(A,u,B);for(let N=0;N<S.length;N+=1)S[N]&&S[N].m(u,null);W(A,c,B),W(A,f,B),M(f,E),T||(I=$e(t,"click",U),T=!0)},p(A,B){if(e=A,B[0]&32&&n!==(n=e[33].title+"")&&Re(r,n),B[0]&32&&s!==(s=(e[33].rank||" -")+"")&&Re(a,s),B[0]&32&&gt(o,"active",e[33].prize),B[0]&32){V=He(Nn(e[33].enddate));let N;for(N=0;N<V.length;N+=1){const Y=tr(e,V,N);S[N]?S[N].p(Y,B):(S[N]=or(Y),S[N].c(),S[N].m(u,null))}for(;N<S.length;N+=1)S[N].d(1);S.length=V.length}B[0]&32&&d!==(d=(e[33].prize||" -")+"")&&Re(E,d),B[0]&32&&gt(f,"active",e[33].prize)},d(A){A&&(X(t),X(i),X(o),X(l),X(u),X(c),X(f)),It(S,A),T=!1,I()}}}function or(e){let t,n=e[36]+"",r;return{c(){t=G("p"),r=Be(n)},m(i,o){W(i,t,o),M(t,r)},p(i,o){o[0]&32&&n!==(n=i[36]+"")&&Re(r,n)},d(i){i&&X(t)}}}function sr(e){let t,n,r,i=e[33]&&ir(e);return{c(){t=G("tbody"),n=G("tr"),i&&i.c(),r=pe()},m(o,s){W(o,t,s),M(t,n),i&&i.m(n,null),M(t,r)},p(o,s){o[33]?i?i.p(o,s):(i=ir(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},d(o){o&&X(t),i&&i.d()}}}function Js(e){let t,n,r,i,o,s,a,l,u,c,f,d,E=e[6]("myTournaments")+"",T,I,U,V,S,A,B=e[7]&&Fs(e);function N(Q,$){return Q[4]?js:Gs}let Y=N(e),F=Y(e);return{c(){t=G("div"),n=G("div"),r=G("div"),i=Me("svg"),o=Me("rect"),s=Me("defs"),a=Me("pattern"),l=Me("use"),B&&B.c(),f=pe(),d=G("div"),T=Be(E),I=pe(),U=G("div"),U.textContent="X",V=pe(),F.c(),x(o,"width",e[3]),x(o,"height",e[3]),x(o,"fill","url(#pattern0)"),lr(l,"xlink:href","#image0_2606_356"),x(l,"transform","scale(0.00195312)"),x(a,"id","pattern0"),x(a,"patternContentUnits","objectBoundingBox"),x(a,"width","1"),x(a,"height","1"),x(i,"width",e[3]),x(i,"height",e[3]),x(i,"viewBox",u=`0 0 ${e[3]} ${e[3]}`),x(i,"fill","none"),x(i,"xmlns","http://www.w3.org/2000/svg"),x(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),x(r,"class","svg"),Tt(()=>e[18].call(r)),x(d,"class","text"),x(U,"class","CloseButton"),x(U,"part","CloseButton"),x(n,"class","top-wrapper"),x(t,"class","Root"),x(t,"part","Root")},m(Q,$){W(Q,t,$),M(t,n),M(n,r),M(r,i),M(i,o),M(i,s),M(s,a),M(a,l),B&&B.m(s,null),c=ai(r,e[18].bind(r)),M(n,f),M(n,d),M(d,T),M(n,I),M(n,U),M(t,V),F.m(t,null),e[21](t),S||(A=$e(U,"click",e[19]),S=!0)},p(Q,$){$[0]&8&&x(o,"width",Q[3]),$[0]&8&&x(o,"height",Q[3]),Q[7]&&B.p(Q,$),$[0]&8&&x(i,"width",Q[3]),$[0]&8&&x(i,"height",Q[3]),$[0]&8&&u!==(u=`0 0 ${Q[3]} ${Q[3]}`)&&x(i,"viewBox",u),$[0]&64&&E!==(E=Q[6]("myTournaments")+"")&&Re(T,E),Y===(Y=N(Q))&&F?F.p(Q,$):(F.d(1),F=Y(Q),F&&(F.c(),F.m(t,null)))},i:K,o:K,d(Q){Q&&X(t),B&&B.d(),c(),F.d(),e[21](null),S=!1,A()}}}function Xs(e,t,n){let r,i,o,s,a;ni(e,Ts,v=>n(6,a=v));let{endpoint:l=""}=t,{lang:u="en"}=t,{session:c=""}=t,{state:f=void 0}=t,{states:d="Scheduled,Ongoing,Finished"}=t,{filter:E=""}=t,{clientstyling:T=""}=t,{clientstylingurl:I=""}=t,{translationurl:U=""}=t;jr({withLocale:"en",translations:{}});const V=()=>{fetch(U).then(D=>D.json()).then(D=>{Object.keys(D).forEach(_=>{pn(_,D[_])}),we()}).catch(D=>{console.log(D)})};Object.keys(Ht).forEach(v=>{pn(v,Ht[v])});let S,A,B=0,N=Ei,Y=!0,F={};const Q=v=>{let D={};i.map(_=>{D[_]||(D[_]=[])}),v.items.map(_=>{const{id:ee,nameOrTitle:at,endTime:Lt}=_.tournament,Mt={id:ee,title:at,rank:_.leaderBoard&&`#${_.leaderBoard.rank}/${_.endRank}`,enddate:Lt,prize:_.leaderBoard&&_.leaderBoard.prizeName};D[$n(_.tournament.state)].push(Mt)}),n(15,F=D)},$=ks({PlayerLeaderBoardsUpdate:v=>{Q(v),o.map(D=>{_s(D,F[D].length)})},TournamentUpdate:v=>{if(v.item){const D=v.item;let _=$n(D.state);n(15,F=ct(ft({},F),{[_]:F[_].map(ee=>ee.id===D.id?ct(ft({},ee),{title:D.nameOrTitle,enddate:D.endTime}):ee)}))}}}),Ce=(v,D)=>dt(this,null,function*(){const _=`${l}/v1/tournaments`,ee=new URL(_);ee.searchParams.append("pagination",`offset=${v},limit=${D}`),ee.searchParams.append("sortField","StartTime"),ee.searchParams.append("sortOrder","desc"),ee.searchParams.append("language",u),ee.searchParams.append("XSessionId",c),E&&ee.searchParams.append("filter",E),A=Ms(A,Ls(`${_}/leaderboard/player/updates?${ee.searchParams.toString()}`),$)});Os();const it=()=>{Ce(0,30),Rs(u),we()},ye=()=>{let v=document.createElement("style");v.innerHTML=T,S.appendChild(v)},ot=()=>{let v=new URL(I),D=document.createElement("style");fetch(v.href).then(_=>_.text()).then(_=>{D.innerHTML=_,setTimeout(()=>{S.appendChild(D)},1),setTimeout(()=>{},500)})},we=()=>{setTimeout(()=>{const v=D=>a(`${D}`);Kt("Scheduled",v("scheduled")),Kt("Ongoing",v("ongoing")),Kt("Finished",`${v("finished")} (${v("last")} 48h)`)},1)};An(()=>()=>{A&&A.removeEventListener("message",$)}),Ds({TournamentsTabSwitch:v=>dt(this,null,function*(){return n(16,r=v.tab)})});function st(){B=this.clientWidth,n(3,B)}const Ze=()=>window.postMessage({type:"OnCloseThumbnail"},window.location.href),de=v=>{window.postMessage({type:"MyTournamentFromNavClicked",tournamentId:v.id,showLeaderboard:!0},window.location.href)};function xe(v){Bt[v?"unshift":"push"](()=>{S=v,n(2,S)})}return e.$$set=v=>{"endpoint"in v&&n(8,l=v.endpoint),"lang"in v&&n(9,u=v.lang),"session"in v&&n(10,c=v.session),"state"in v&&n(0,f=v.state),"states"in v&&n(1,d=v.states),"filter"in v&&n(11,E=v.filter),"clientstyling"in v&&n(12,T=v.clientstyling),"clientstylingurl"in v&&n(13,I=v.clientstylingurl),"translationurl"in v&&n(14,U=v.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1&&n(16,r=f),e.$$.dirty[0]&2&&n(17,i=d.split(",")),e.$$.dirty[0]&131072&&(o=i.filter(v=>v!=="Finished")),e.$$.dirty[0]&98304&&n(5,s=F[r]),e.$$.dirty[0]&3840&&l&&E&&u&&c&&it(),e.$$.dirty[0]&4100&&T&&S&&ye(),e.$$.dirty[0]&8196&&I&&S&&ot(),e.$$.dirty[0]&16384&&U&&V(),e.$$.dirty[0]&512&&u&&we(),e.$$.dirty[0]&32768&&Object.keys(F).length&&(n(4,Y=!1),we())},[f,d,S,B,Y,s,a,N,l,u,c,E,T,I,U,F,r,i,st,Ze,de,xe]}class zr extends yn{constructor(t){super(),bn(this,t,Xs,Js,Rt,{endpoint:8,lang:9,session:10,state:0,states:1,filter:11,clientstyling:12,clientstylingurl:13,translationurl:14},Us,[-1,-1])}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),he()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),he()}get session(){return this.$$.ctx[10]}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[11]}set filter(t){this.$$set({filter:t}),he()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),he()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),he()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),he()}}En(zr,{endpoint:{},lang:{},session:{},state:{},states:{},filter:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);const Vs=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsLimitedController_ce=Vs;exports.SvelteComponent=yn;exports.append=M;exports.append_styles=vn;exports.attr=x;exports.binding_callbacks=Bt;exports.create_custom_element=En;exports.destroy_each=It;exports.detach=X;exports.element=G;exports.ensure_array_like=He;exports.flush=he;exports.init=bn;exports.insert=W;exports.listen=$e;exports.noop=K;exports.onMount=An;exports.safe_not_equal=Rt;exports.set_data=Re;exports.space=pe;exports.text=Be;
13
+ `,_e+=Ae):ve==="id"?ut=Ae:ve==="event"?ge=Ae:ve==="retry"?(b=kt(Ae,b),R=b):ve==="heartbeatTimeout"&&(C=kt(Ae,C),ne!==0&&(i(ne),ne=r(function(){Ye()},C)))}if(re===_){if(_e!==""){z=ut,ge===""&&(ge="message");var Pe=new ot(ge,{data:_e.slice(1),lastEventId:ut});if(h.dispatchEvent(Pe),ge==="open"?Ne(h,h.onopen,Pe):ge==="message"?Ne(h,h.onmessage,Pe):ge==="error"&&Ne(h,h.onerror,Pe),ce===v)return}_e="",ge=""}re=ue===13?D:_}else re===_&&(Ft=te,re=ee),re===ee?ue===58&&(Se=te+1,re=at):re===at&&(re=Lt)}}},Cn=function(q){if(ce===xe||ce===de){ce=Ze,ne!==0&&(i(ne),ne=0),ne=r(function(){Ye()},R),R=Ut(Math.min(b*16,R*2)),h.readyState=de;var Z=new st("error",{error:q});h.dispatchEvent(Z),Ne(h,h.onerror,Z),q!=null&&console.error(q)}},Gt=function(){ce=v,se!=null&&(se.abort(),se=void 0),ne!==0&&(i(ne),ne=0),h.readyState=v},Ye=function(){if(ne=0,ce!==Ze){if(!L&&se!=null)Cn(new Error("No activity within "+C+" milliseconds. "+(ce===de?"No response received.":k+" chars received.")+" Reconnecting.")),se!=null&&(se.abort(),se=void 0);else{var q=Math.max((L||Date.now())+C-Date.now(),1);L=!1,ne=r(function(){Ye()},q)}return}L=!1,k=0,ne=r(function(){Ye()},C),ce=de,_e="",ge="",ut=z,lt="",Ft=0,Se=0,re=_;var Z=m;if(m.slice(0,5)!=="data:"&&m.slice(0,5)!=="blob:"&&z!==""){var ae=m.indexOf("?");Z=ae===-1?m:m.slice(0,ae+1)+m.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Ae,Pe){return Pe===y?"":Ae}),Z+=(m.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(z)}var ue=h.withCredentials,ie={};ie.Accept="text/event-stream";var te=h.headers;if(te!=null)for(var ve in te)Object.prototype.hasOwnProperty.call(te,ve)&&(ie[ve]=te[ve]);try{se=We.open(me,Yr,qr,Cn,Z,ue,ie)}catch(Ae){throw Gt(),Ae}};h.url=m,h.readyState=de,h.withCredentials=p,h.headers=w,h._close=Gt,Ye()}fe.prototype=Object.create(Ce.prototype),fe.prototype.CONNECTING=de,fe.prototype.OPEN=xe,fe.prototype.CLOSED=v,fe.prototype.close=function(){this._close()},fe.CONNECTING=de,fe.OPEN=xe,fe.CLOSED=v,fe.prototype.withCredentials=void 0;var Tn=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Tn=fe),function(h){{var m=h(t);m!==void 0&&(e.exports=m)}}(function(h){h.EventSourcePolyfill=fe,h.NativeEventSource=l,h.EventSource=Tn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Fi:globalThis)})(mn,mn.exports);var Ns=mn.exports;const Qr=e=>window.postMessage(e,window.location.href),_s=(e,t)=>{Qr({type:"TournamentsTabTotalUpdate",state:e,total:t})},Kt=(e,t)=>{Qr({type:"TournamentsTabLocaleTextUpdate",state:e,text:t})},Ps=e=>n=>{Object.keys(e).map(r=>{if(n.data&&n.data.type==r){const i=n.data,{type:o}=i,s=Qt(i,["type"]);e[r](s)}})},Ds=e=>{const t=Ps(e);An(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}))},Ls=(e,t=null)=>{let n={accept:"text/event-stream"};return t&&(n["X-SessionID"]=t),new Ns.EventSourcePolyfill(e,{headers:n})},Ms=(e,t,n)=>{e&&(e.removeEventListener("message",n),e.close());let r=t;return typeof r!="undefined"&&r.addEventListener("message",n),r},ks=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=Qt(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-D1vDlYTK.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}function Us(e){vn(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 er(e,t,n){const r=e.slice();return r[33]=t[n],r[35]=n,r}function tr(e,t,n){const r=e.slice();return r[36]=t[n],r}function nr(e,t,n){const r=e.slice();return r[33]=t[n],r}function Fs(e){let t;return{c(){t=Me("image"),x(t,"id","image0_2606_356"),x(t,"width","512"),x(t,"height","512"),lr(t,"xlink:href",e[7])},m(n,r){W(n,t,r)},p:K,d(n){n&&X(t)}}}function Gs(e){let t,n,r;function i(a,l){return a[5]?zs:Qs}let o=i(e),s=o(e);return{c(){t=G("section"),n=G("casino-tournaments-tab"),r=pe(),s.c(),pt(n,"tabs",e[1]),pt(n,"tab",e[0])},m(a,l){W(a,t,l),M(t,n),M(t,r),s.m(t,null)},p(a,l){l[0]&2&&pt(n,"tabs",a[1]),l[0]&1&&pt(n,"tab",a[0]),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&&X(t),s.d()}}}function js(e){let t;return{c(){t=G("div"),t.innerHTML="<casino-tournaments-limited-controller-loader></casino-tournaments-limited-controller-loader>",x(t,"class","Loading")},m(n,r){W(n,t,r)},p:K,d(n){n&&X(t)}}}function Qs(e){let t;return{c(){t=G("div"),x(t,"class","NoContent")},m(n,r){W(n,t,r)},p:K,d(n){n&&X(t)}}}function zs(e){let t,n,r,i,o=He([e[6]("name"),e[6]("rank"),e[6]("enddate"),e[6]("prize")]),s=[];for(let u=0;u<4;u+=1)s[u]=rr(nr(e,o,u));let a=He(e[5]),l=[];for(let u=0;u<a.length;u+=1)l[u]=sr(er(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=pe();for(let u=0;u<l.length;u+=1)l[u].c()},m(u,c){W(u,t,c),M(t,n),M(n,r);for(let f=0;f<4;f+=1)s[f]&&s[f].m(r,null);M(t,i);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null)},p(u,c){if(c[0]&64){o=He([u[6]("name"),u[6]("rank"),u[6]("enddate"),u[6]("prize")]);let f;for(f=0;f<4;f+=1){const d=nr(u,o,f);s[f]?s[f].p(d,c):(s[f]=rr(d),s[f].c(),s[f].m(r,null))}for(;f<4;f+=1)s[f].d(1)}if(c[0]&32){a=He(u[5]);let f;for(f=0;f<a.length;f+=1){const d=er(u,a,f);l[f]?l[f].p(d,c):(l[f]=sr(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&&X(t),It(s,u),It(l,u)}}}function rr(e){let t,n=e[33]+"",r;return{c(){t=G("th"),r=Be(n)},m(i,o){W(i,t,o),M(t,r)},p(i,o){o[0]&64&&n!==(n=i[33]+"")&&Re(r,n)},d(i){i&&X(t)}}}function ir(e){let t,n=e[33].title+"",r,i,o,s=(e[33].rank||" -")+"",a,l,u,c,f,d=(e[33].prize||" -")+"",E,T,I;function U(){return e[20](e[33])}let V=He(Nn(e[33].enddate)),S=[];for(let A=0;A<V.length;A+=1)S[A]=or(tr(e,V,A));return{c(){t=G("td"),r=Be(n),i=pe(),o=G("td"),a=Be(s),l=pe(),u=G("td");for(let A=0;A<S.length;A+=1)S[A].c();c=pe(),f=G("td"),E=Be(d),x(t,"class","Title"),x(t,"part","Title"),x(o,"class","Rank"),gt(o,"active",e[33].prize),x(u,"class","EndDate"),x(u,"part","EndDate"),x(u,"nowrap",""),x(f,"class","Prize"),gt(f,"active",e[33].prize)},m(A,B){W(A,t,B),M(t,r),W(A,i,B),W(A,o,B),M(o,a),W(A,l,B),W(A,u,B);for(let N=0;N<S.length;N+=1)S[N]&&S[N].m(u,null);W(A,c,B),W(A,f,B),M(f,E),T||(I=$e(t,"click",U),T=!0)},p(A,B){if(e=A,B[0]&32&&n!==(n=e[33].title+"")&&Re(r,n),B[0]&32&&s!==(s=(e[33].rank||" -")+"")&&Re(a,s),B[0]&32&&gt(o,"active",e[33].prize),B[0]&32){V=He(Nn(e[33].enddate));let N;for(N=0;N<V.length;N+=1){const Y=tr(e,V,N);S[N]?S[N].p(Y,B):(S[N]=or(Y),S[N].c(),S[N].m(u,null))}for(;N<S.length;N+=1)S[N].d(1);S.length=V.length}B[0]&32&&d!==(d=(e[33].prize||" -")+"")&&Re(E,d),B[0]&32&&gt(f,"active",e[33].prize)},d(A){A&&(X(t),X(i),X(o),X(l),X(u),X(c),X(f)),It(S,A),T=!1,I()}}}function or(e){let t,n=e[36]+"",r;return{c(){t=G("p"),r=Be(n)},m(i,o){W(i,t,o),M(t,r)},p(i,o){o[0]&32&&n!==(n=i[36]+"")&&Re(r,n)},d(i){i&&X(t)}}}function sr(e){let t,n,r,i=e[33]&&ir(e);return{c(){t=G("tbody"),n=G("tr"),i&&i.c(),r=pe()},m(o,s){W(o,t,s),M(t,n),i&&i.m(n,null),M(t,r)},p(o,s){o[33]?i?i.p(o,s):(i=ir(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},d(o){o&&X(t),i&&i.d()}}}function Js(e){let t,n,r,i,o,s,a,l,u,c,f,d,E=e[6]("myTournaments")+"",T,I,U,V,S,A,B=e[7]&&Fs(e);function N(Q,$){return Q[4]?js:Gs}let Y=N(e),F=Y(e);return{c(){t=G("div"),n=G("div"),r=G("div"),i=Me("svg"),o=Me("rect"),s=Me("defs"),a=Me("pattern"),l=Me("use"),B&&B.c(),f=pe(),d=G("div"),T=Be(E),I=pe(),U=G("div"),U.textContent="X",V=pe(),F.c(),x(o,"width",e[3]),x(o,"height",e[3]),x(o,"fill","url(#pattern0)"),lr(l,"xlink:href","#image0_2606_356"),x(l,"transform","scale(0.00195312)"),x(a,"id","pattern0"),x(a,"patternContentUnits","objectBoundingBox"),x(a,"width","1"),x(a,"height","1"),x(i,"width",e[3]),x(i,"height",e[3]),x(i,"viewBox",u=`0 0 ${e[3]} ${e[3]}`),x(i,"fill","none"),x(i,"xmlns","http://www.w3.org/2000/svg"),x(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),x(r,"class","svg"),Tt(()=>e[18].call(r)),x(d,"class","text"),x(U,"class","CloseButton"),x(U,"part","CloseButton"),x(n,"class","top-wrapper"),x(t,"class","Root"),x(t,"part","Root")},m(Q,$){W(Q,t,$),M(t,n),M(n,r),M(r,i),M(i,o),M(i,s),M(s,a),M(a,l),B&&B.m(s,null),c=ai(r,e[18].bind(r)),M(n,f),M(n,d),M(d,T),M(n,I),M(n,U),M(t,V),F.m(t,null),e[21](t),S||(A=$e(U,"click",e[19]),S=!0)},p(Q,$){$[0]&8&&x(o,"width",Q[3]),$[0]&8&&x(o,"height",Q[3]),Q[7]&&B.p(Q,$),$[0]&8&&x(i,"width",Q[3]),$[0]&8&&x(i,"height",Q[3]),$[0]&8&&u!==(u=`0 0 ${Q[3]} ${Q[3]}`)&&x(i,"viewBox",u),$[0]&64&&E!==(E=Q[6]("myTournaments")+"")&&Re(T,E),Y===(Y=N(Q))&&F?F.p(Q,$):(F.d(1),F=Y(Q),F&&(F.c(),F.m(t,null)))},i:K,o:K,d(Q){Q&&X(t),B&&B.d(),c(),F.d(),e[21](null),S=!1,A()}}}function Xs(e,t,n){let r,i,o,s,a;ni(e,Ts,v=>n(6,a=v));let{endpoint:l=""}=t,{lang:u="en"}=t,{session:c=""}=t,{state:f=void 0}=t,{states:d="Scheduled,Ongoing,Finished"}=t,{filter:E=""}=t,{clientstyling:T=""}=t,{clientstylingurl:I=""}=t,{translationurl:U=""}=t;jr({withLocale:"en",translations:{}});const V=()=>{fetch(U).then(D=>D.json()).then(D=>{Object.keys(D).forEach(_=>{pn(_,D[_])}),we()}).catch(D=>{console.log(D)})};Object.keys(Ht).forEach(v=>{pn(v,Ht[v])});let S,A,B=0,N=Ei,Y=!0,F={};const Q=v=>{let D={};i.map(_=>{D[_]||(D[_]=[])}),v.items.map(_=>{const{id:ee,nameOrTitle:at,endTime:Lt}=_.tournament,Mt={id:ee,title:at,rank:_.leaderBoard&&`#${_.leaderBoard.rank}/${_.endRank}`,enddate:Lt,prize:_.leaderBoard&&_.leaderBoard.prizeName};D[$n(_.tournament.state)].push(Mt)}),n(15,F=D)},$=ks({PlayerLeaderBoardsUpdate:v=>{Q(v),o.map(D=>{_s(D,F[D].length)})},TournamentUpdate:v=>{if(v.item){const D=v.item;let _=$n(D.state);n(15,F=ct(ft({},F),{[_]:F[_].map(ee=>ee.id===D.id?ct(ft({},ee),{title:D.nameOrTitle,enddate:D.endTime}):ee)}))}}}),Ce=(v,D)=>dt(this,null,function*(){const _=`${l}/v1/tournaments`,ee=new URL(_);ee.searchParams.append("pagination",`offset=${v},limit=${D}`),ee.searchParams.append("sortField","StartTime"),ee.searchParams.append("sortOrder","desc"),ee.searchParams.append("language",u),ee.searchParams.append("XSessionId",c),E&&ee.searchParams.append("filter",E),A=Ms(A,Ls(`${_}/leaderboard/player/updates?${ee.searchParams.toString()}`),$)});Os();const it=()=>{Ce(0,30),Rs(u),we()},ye=()=>{let v=document.createElement("style");v.innerHTML=T,S.appendChild(v)},ot=()=>{let v=new URL(I),D=document.createElement("style");fetch(v.href).then(_=>_.text()).then(_=>{D.innerHTML=_,setTimeout(()=>{S.appendChild(D)},1),setTimeout(()=>{},500)})},we=()=>{setTimeout(()=>{const v=D=>a(`${D}`);Kt("Scheduled",v("scheduled")),Kt("Ongoing",v("ongoing")),Kt("Finished",`${v("finished")} (${v("last")} 48h)`)},1)};An(()=>()=>{A&&A.removeEventListener("message",$)}),Ds({TournamentsTabSwitch:v=>dt(this,null,function*(){return n(16,r=v.tab)})});function st(){B=this.clientWidth,n(3,B)}const Ze=()=>window.postMessage({type:"OnCloseThumbnail"},window.location.href),de=v=>{window.postMessage({type:"MyTournamentFromNavClicked",tournamentId:v.id,showLeaderboard:!0},window.location.href)};function xe(v){Bt[v?"unshift":"push"](()=>{S=v,n(2,S)})}return e.$$set=v=>{"endpoint"in v&&n(8,l=v.endpoint),"lang"in v&&n(9,u=v.lang),"session"in v&&n(10,c=v.session),"state"in v&&n(0,f=v.state),"states"in v&&n(1,d=v.states),"filter"in v&&n(11,E=v.filter),"clientstyling"in v&&n(12,T=v.clientstyling),"clientstylingurl"in v&&n(13,I=v.clientstylingurl),"translationurl"in v&&n(14,U=v.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1&&n(16,r=f),e.$$.dirty[0]&2&&n(17,i=d.split(",")),e.$$.dirty[0]&131072&&(o=i.filter(v=>v!=="Finished")),e.$$.dirty[0]&98304&&n(5,s=F[r]),e.$$.dirty[0]&3840&&l&&E&&u&&c&&it(),e.$$.dirty[0]&4100&&T&&S&&ye(),e.$$.dirty[0]&8196&&I&&S&&ot(),e.$$.dirty[0]&16384&&U&&V(),e.$$.dirty[0]&512&&u&&we(),e.$$.dirty[0]&32768&&Object.keys(F).length&&(n(4,Y=!1),we())},[f,d,S,B,Y,s,a,N,l,u,c,E,T,I,U,F,r,i,st,Ze,de,xe]}class zr extends yn{constructor(t){super(),bn(this,t,Xs,Js,Rt,{endpoint:8,lang:9,session:10,state:0,states:1,filter:11,clientstyling:12,clientstylingurl:13,translationurl:14},Us,[-1,-1])}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),he()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),he()}get session(){return this.$$.ctx[10]}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[11]}set filter(t){this.$$set({filter:t}),he()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),he()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),he()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),he()}}En(zr,{endpoint:{},lang:{},session:{},state:{},states:{},filter:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);const Vs=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsLimitedController_ce=Vs;exports.SvelteComponent=yn;exports.append=M;exports.append_styles=vn;exports.attr=x;exports.binding_callbacks=Bt;exports.create_custom_element=En;exports.destroy_each=It;exports.detach=X;exports.element=G;exports.ensure_array_like=He;exports.flush=he;exports.init=bn;exports.insert=W;exports.listen=$e;exports.noop=K;exports.onMount=An;exports.safe_not_equal=Rt;exports.set_data=Re;exports.space=pe;exports.text=Be;
@@ -1 +1 @@
1
- "use strict";var U=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var T=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))k.call(t,n)&&T(e,n,t[n]);if(p)for(var n of p(t))C.call(t,n)&&T(e,n,t[n]);return e},y=(e,t)=>j(e,q(t));var L=(e,t)=>{var n={};for(var l in e)k.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&p)for(var l of p(e))t.indexOf(l)<0&&C.call(e,l)&&(n[l]=e[l]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoTournamentsLimitedController-BWSNMylL.cjs"),O=e=>n=>{Object.keys(e).map(l=>{if(n.data&&n.data.type==l){const s=n.data,{type:r}=s,a=L(s,["type"]);e[l](a)}})},D=e=>{const t=O(e);i.onMount(()=>(window.addEventListener("message",t,!1),()=>{window.removeEventListener("message",t)}))};function I(e){i.append_styles(e,"svelte-1eq8iwl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}")}function F(e,t,n){const l=e.slice();return l[15]=t[n],l}function M(e){let t,n=i.ensure_array_like(e[5]),l=[];for(let s=0;s<n.length;s+=1)l[s]=z(F(e,n,s));return{c(){t=i.element("ul");for(let s=0;s<l.length;s+=1)l[s].c();i.attr(t,"part","ul")},m(s,r){i.insert(s,t,r);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(t,null)},p(s,r){if(r&60){n=i.ensure_array_like(s[5]);let a;for(a=0;a<n.length;a+=1){const c=F(s,n,a);l[a]?l[a].p(c,r):(l[a]=z(c),l[a].c(),l[a].m(t,null))}for(;a<l.length;a+=1)l[a].d(1);l.length=n.length}},d(s){s&&i.detach(t),i.destroy_each(l,s)}}}function S(e){let t,n,l=e[2][e[15]]+"",s;return{c(){t=i.element("sup"),n=i.element("span"),s=i.text(l),i.attr(n,"part","SupText"),i.attr(t,"part","sup")},m(r,a){i.insert(r,t,a),i.append(t,n),i.append(n,s)},p(r,a){a&36&&l!==(l=r[2][r[15]]+"")&&i.set_data(s,l)},d(r){r&&i.detach(t)}}}function z(e){let t,n,l=e[3][e[15]]+"",s,r,a,c,f,d,h,u=e[2][e[15]]>=0&&S(e);function m(){return e[10](e[15])}return{c(){t=i.element("li"),n=i.element("span"),s=i.text(l),r=i.space(),u&&u.c(),a=i.space(),i.attr(n,"part","LiText"),i.attr(t,"class",c=e[4]===e[15]?"active":""),i.attr(t,"part",f=`${e[15]} li `+(e[4]===e[15]?"active":""))},m(b,g){i.insert(b,t,g),i.append(t,n),i.append(n,s),i.append(t,r),u&&u.m(t,null),i.append(t,a),d||(h=i.listen(t,"click",m),d=!0)},p(b,g){e=b,g&40&&l!==(l=e[3][e[15]]+"")&&i.set_data(s,l),e[2][e[15]]>=0?u?u.p(e,g):(u=S(e),u.c(),u.m(t,a)):u&&(u.d(1),u=null),g&48&&c!==(c=e[4]===e[15]?"active":"")&&i.attr(t,"class",c),g&48&&f!==(f=`${e[15]} li `+(e[4]===e[15]?"active":""))&&i.attr(t,"part",f)},d(b){b&&i.detach(t),u&&u.d(),d=!1,h()}}}function P(e){let t,n=e[1]&&M(e);return{c(){t=i.element("div"),n&&n.c(),i.attr(t,"class","casino-tournaments-tab"),i.attr(t,"part","CustomStylingContainer")},m(l,s){i.insert(l,t,s),n&&n.m(t,null),e[11](t)},p(l,[s]){l[1]?n?n.p(l,s):(n=M(l),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i:i.noop,o:i.noop,d(l){l&&i.detach(t),n&&n.d(),e[11](null)}}}function A(e,t,n){let l,s,{tabs:r=""}=t,{tab:a=void 0}=t,{clientstyling:c=""}=t,{clientstylingurl:f=""}=t,d,h=!1,u={},m={};const b=()=>{let o=document.createElement("style");o.innerHTML=c,d.appendChild(o)},g=()=>{let o=new URL(f),v=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{v.innerHTML=_,setTimeout(()=>{d.appendChild(v)},1),setTimeout(()=>{},500)})};D({TournamentsTabTotalUpdate:o=>{n(2,u=y(w({},u),{[o.state]:o.total}))},TournamentsTabLocaleTextUpdate:o=>{n(1,h=!0),n(3,m=y(w({},m),{[o.state]:o.text}))}}),i.onMount(()=>{window.postMessage({type:"TournamentsTabListenerLoaded"},window.location.href)});const H=o=>{n(4,s=o),window.postMessage({type:"TournamentsTabSwitch",tab:o},window.location.href)};function R(o){i.binding_callbacks[o?"unshift":"push"](()=>{d=o,n(0,d)})}return e.$$set=o=>{"tabs"in o&&n(6,r=o.tabs),"tab"in o&&n(7,a=o.tab),"clientstyling"in o&&n(8,c=o.clientstyling),"clientstylingurl"in o&&n(9,f=o.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&257&&d&&c&&b(),e.$$.dirty&513&&d&&f&&g(),e.$$.dirty&64&&n(5,l=r.split(",")),e.$$.dirty&128&&n(4,s=a)},[d,h,u,m,s,l,r,a,c,f,H,R]}class E extends i.SvelteComponent{constructor(t){super(),i.init(this,t,A,P,i.safe_not_equal,{tabs:6,tab:7,clientstyling:8,clientstylingurl:9},I)}get tabs(){return this.$$.ctx[6]}set tabs(t){this.$$set({tabs:t}),i.flush()}get tab(){return this.$$.ctx[7]}set tab(t){this.$$set({tab:t}),i.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}}i.create_custom_element(E,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=E;
1
+ "use strict";var U=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var T=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))k.call(t,n)&&T(e,n,t[n]);if(p)for(var n of p(t))C.call(t,n)&&T(e,n,t[n]);return e},y=(e,t)=>j(e,q(t));var L=(e,t)=>{var n={};for(var l in e)k.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&p)for(var l of p(e))t.indexOf(l)<0&&C.call(e,l)&&(n[l]=e[l]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoTournamentsLimitedController-Bx3u13of.cjs"),O=e=>n=>{Object.keys(e).map(l=>{if(n.data&&n.data.type==l){const s=n.data,{type:r}=s,a=L(s,["type"]);e[l](a)}})},D=e=>{const t=O(e);i.onMount(()=>(window.addEventListener("message",t,!1),()=>{window.removeEventListener("message",t)}))};function I(e){i.append_styles(e,"svelte-1eq8iwl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}")}function F(e,t,n){const l=e.slice();return l[15]=t[n],l}function M(e){let t,n=i.ensure_array_like(e[5]),l=[];for(let s=0;s<n.length;s+=1)l[s]=z(F(e,n,s));return{c(){t=i.element("ul");for(let s=0;s<l.length;s+=1)l[s].c();i.attr(t,"part","ul")},m(s,r){i.insert(s,t,r);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(t,null)},p(s,r){if(r&60){n=i.ensure_array_like(s[5]);let a;for(a=0;a<n.length;a+=1){const c=F(s,n,a);l[a]?l[a].p(c,r):(l[a]=z(c),l[a].c(),l[a].m(t,null))}for(;a<l.length;a+=1)l[a].d(1);l.length=n.length}},d(s){s&&i.detach(t),i.destroy_each(l,s)}}}function S(e){let t,n,l=e[2][e[15]]+"",s;return{c(){t=i.element("sup"),n=i.element("span"),s=i.text(l),i.attr(n,"part","SupText"),i.attr(t,"part","sup")},m(r,a){i.insert(r,t,a),i.append(t,n),i.append(n,s)},p(r,a){a&36&&l!==(l=r[2][r[15]]+"")&&i.set_data(s,l)},d(r){r&&i.detach(t)}}}function z(e){let t,n,l=e[3][e[15]]+"",s,r,a,c,f,d,h,u=e[2][e[15]]>=0&&S(e);function m(){return e[10](e[15])}return{c(){t=i.element("li"),n=i.element("span"),s=i.text(l),r=i.space(),u&&u.c(),a=i.space(),i.attr(n,"part","LiText"),i.attr(t,"class",c=e[4]===e[15]?"active":""),i.attr(t,"part",f=`${e[15]} li `+(e[4]===e[15]?"active":""))},m(b,g){i.insert(b,t,g),i.append(t,n),i.append(n,s),i.append(t,r),u&&u.m(t,null),i.append(t,a),d||(h=i.listen(t,"click",m),d=!0)},p(b,g){e=b,g&40&&l!==(l=e[3][e[15]]+"")&&i.set_data(s,l),e[2][e[15]]>=0?u?u.p(e,g):(u=S(e),u.c(),u.m(t,a)):u&&(u.d(1),u=null),g&48&&c!==(c=e[4]===e[15]?"active":"")&&i.attr(t,"class",c),g&48&&f!==(f=`${e[15]} li `+(e[4]===e[15]?"active":""))&&i.attr(t,"part",f)},d(b){b&&i.detach(t),u&&u.d(),d=!1,h()}}}function P(e){let t,n=e[1]&&M(e);return{c(){t=i.element("div"),n&&n.c(),i.attr(t,"class","casino-tournaments-tab"),i.attr(t,"part","CustomStylingContainer")},m(l,s){i.insert(l,t,s),n&&n.m(t,null),e[11](t)},p(l,[s]){l[1]?n?n.p(l,s):(n=M(l),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i:i.noop,o:i.noop,d(l){l&&i.detach(t),n&&n.d(),e[11](null)}}}function A(e,t,n){let l,s,{tabs:r=""}=t,{tab:a=void 0}=t,{clientstyling:c=""}=t,{clientstylingurl:f=""}=t,d,h=!1,u={},m={};const b=()=>{let o=document.createElement("style");o.innerHTML=c,d.appendChild(o)},g=()=>{let o=new URL(f),v=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{v.innerHTML=_,setTimeout(()=>{d.appendChild(v)},1),setTimeout(()=>{},500)})};D({TournamentsTabTotalUpdate:o=>{n(2,u=y(w({},u),{[o.state]:o.total}))},TournamentsTabLocaleTextUpdate:o=>{n(1,h=!0),n(3,m=y(w({},m),{[o.state]:o.text}))}}),i.onMount(()=>{window.postMessage({type:"TournamentsTabListenerLoaded"},window.location.href)});const H=o=>{n(4,s=o),window.postMessage({type:"TournamentsTabSwitch",tab:o},window.location.href)};function R(o){i.binding_callbacks[o?"unshift":"push"](()=>{d=o,n(0,d)})}return e.$$set=o=>{"tabs"in o&&n(6,r=o.tabs),"tab"in o&&n(7,a=o.tab),"clientstyling"in o&&n(8,c=o.clientstyling),"clientstylingurl"in o&&n(9,f=o.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&257&&d&&c&&b(),e.$$.dirty&513&&d&&f&&g(),e.$$.dirty&64&&n(5,l=r.split(",")),e.$$.dirty&128&&n(4,s=a)},[d,h,u,m,s,l,r,a,c,f,H,R]}class E extends i.SvelteComponent{constructor(t){super(),i.init(this,t,A,P,i.safe_not_equal,{tabs:6,tab:7,clientstyling:8,clientstylingurl:9},I)}get tabs(){return this.$$.ctx[6]}set tabs(t){this.$$set({tabs:t}),i.flush()}get tab(){return this.$$.ctx[7]}set tab(t){this.$$set({tab:t}),i.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}}i.create_custom_element(E,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=E;
@@ -19,7 +19,7 @@ var E = (e, t) => {
19
19
  t.indexOf(i) < 0 && z.call(e, i) && (n[i] = e[i]);
20
20
  return n;
21
21
  };
22
- import { o as O, S as Q, i as V, f as y, c as W, s as X, a as Y, e as m, b as f, d as v, n as H, g as T, h as R, j as Z, t as A, k as U, l as h, m as x, p as B, q as $ } from "./CasinoTournamentsLimitedController-Cyx20Y1S.js";
22
+ import { o as O, S as Q, i as V, f as y, c as W, s as X, a as Y, e as m, b as f, d as v, n as H, g as T, h as R, j as Z, t as A, k as U, l as h, m as x, p as B, q as $ } from "./CasinoTournamentsLimitedController-BZf-aVE8.js";
23
23
  const tt = (e) => (n) => {
24
24
  Object.keys(e).map((i) => {
25
25
  if (n.data && n.data.type == i) {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsLimitedController-BWSNMylL.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-controller",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsLimitedController-Bx3u13of.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-controller",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-Cyx20Y1S.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-BZf-aVE8.js").then((e) => e.C).then(({ default: e }) => {
14
14
  !customElements.get("casino-tournaments-limited-controller") && customElements.define(
15
15
  "casino-tournaments-limited-controller",
16
16
  e.element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-limited-controller",
3
- "version": "1.50.1",
3
+ "version": "1.51.0",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-limited-controller.cjs",
6
6
  "module": "es2015/casino-tournaments-limited-controller.js",