@everymatrix/tournament-details-page 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{TournamentDetails-qcyLTtSv.js → TournamentDetails-CKMkVYxd.js} +1976 -1943
- package/components/{TournamentDetails-DoBMS_9T.js → TournamentDetails-H6pHb_yG.js} +1608 -1575
- package/components/TournamentDetails-nG7lN2NT.cjs +7 -0
- package/components/TournamentDetailsPage-0JKgpPb4.js +1107 -0
- package/components/TournamentDetailsPage-CNDHXiDn.cjs +59 -0
- package/components/TournamentDetailsPage-D-pwFR-w.js +1082 -0
- package/components/TournamentGames-COHWeopg.js +377 -0
- package/components/TournamentGames-DLS2XJfo.js +403 -0
- package/components/TournamentGames-DO485kHn.cjs +27 -0
- package/components/TournamentLeaderboard-BnP-SIlN.cjs +31 -0
- package/components/TournamentLeaderboard-Dnpxq0_A.js +839 -0
- package/components/TournamentLeaderboard-ivZpO_TZ.js +823 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +1 -1
- package/esnext/tournament-details-page.js +1 -1
- package/package.json +1 -1
- package/components/TournamentDetails-C-zS8XGk.cjs +0 -7
- package/components/TournamentDetailsPage-C2wcS4rg.js +0 -987
- package/components/TournamentDetailsPage-CQFv3xok.js +0 -1010
- package/components/TournamentDetailsPage-CR3ti0az.cjs +0 -66
- package/components/TournamentGames-KOJ004rg.js +0 -387
- package/components/TournamentGames-xrJB7h-M.js +0 -359
- package/components/TournamentGames-zikPbhES.cjs +0 -27
- package/components/TournamentLeaderboard-BjBItfy9.js +0 -788
- package/components/TournamentLeaderboard-D9naoaD9.cjs +0 -30
- package/components/TournamentLeaderboard-Dc8xv6be.js +0 -804
|
@@ -1,804 +0,0 @@
|
|
|
1
|
-
import { a as or, $ as sr, M as ir, m as lr, e as dr, p as De, u as cr, o as vr, g as W, i as _e, n as c, s as he, q as g, r as A, y as ue, h as L, j as hr, k as ur, L as Ye, w as q, l as Fe, I as We, x as Oe, J as Ze, C as fr, E as R, K as rr, t as pr, v as gr, F as mr, B as f, N as yr, A as tr } from "./TournamentDetails-qcyLTtSv.js";
|
|
2
|
-
function br(ie, $) {
|
|
3
|
-
or(ie, $);
|
|
4
|
-
}
|
|
5
|
-
function ar(ie) {
|
|
6
|
-
sr.set(ie);
|
|
7
|
-
}
|
|
8
|
-
const nr = {
|
|
9
|
-
en: {
|
|
10
|
-
rank: "Rank",
|
|
11
|
-
user: "User",
|
|
12
|
-
points: "Points",
|
|
13
|
-
prize: "Prize",
|
|
14
|
-
notEnrolledRank: "You are currently not enrolled in this torunament",
|
|
15
|
-
myRanking: "My Ranking",
|
|
16
|
-
showMore: "Show More",
|
|
17
|
-
showLess: "Show Less",
|
|
18
|
-
emptyLeaderboard: "Currently there are no players enrolled in this tournament",
|
|
19
|
-
joinButton: "Join",
|
|
20
|
-
previousButton: "Previous",
|
|
21
|
-
nextButton: "Next"
|
|
22
|
-
},
|
|
23
|
-
tr: {
|
|
24
|
-
rank: "Sıralama",
|
|
25
|
-
user: "Kullanıcı",
|
|
26
|
-
points: "Puan",
|
|
27
|
-
prize: "Ödül",
|
|
28
|
-
notEnrolledRank: "Şu anda bu turnuvaya kayıtlı değilsiniz",
|
|
29
|
-
myRanking: "Sıralamam",
|
|
30
|
-
showMore: "Daha Fazla Göster",
|
|
31
|
-
showLess: "Daha Az Göster",
|
|
32
|
-
emptyLeaderboard: "Şu anda bu turnuvaya kayıtlı oyuncu bulunmuyor",
|
|
33
|
-
joinButton: "Katıl",
|
|
34
|
-
previousButton: "Önceki",
|
|
35
|
-
nextButton: "Sonraki"
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var er = { exports: {} };
|
|
39
|
-
/** @license
|
|
40
|
-
* eventsource.js
|
|
41
|
-
* Available under MIT License (MIT)
|
|
42
|
-
* https://github.com/Yaffle/EventSource/
|
|
43
|
-
*/
|
|
44
|
-
(function(ie, $) {
|
|
45
|
-
(function(w) {
|
|
46
|
-
var V = w.setTimeout, le = w.clearTimeout, k = w.XMLHttpRequest, K = w.XDomainRequest, J = w.ActiveXObject, Q = w.EventSource, F = w.document, Ge = w.Promise, O = w.fetch, fe = w.Response, Y = w.TextDecoder, xe = w.TextEncoder, Z = w.AbortController;
|
|
47
|
-
if (typeof window != "undefined" && typeof F != "undefined" && !("readyState" in F) && F.body == null && (F.readyState = "loading", window.addEventListener("load", function(e) {
|
|
48
|
-
F.readyState = "complete";
|
|
49
|
-
}, !1)), k == null && J != null && (k = function() {
|
|
50
|
-
return new J("Microsoft.XMLHTTP");
|
|
51
|
-
}), Object.create == null && (Object.create = function(e) {
|
|
52
|
-
function n() {
|
|
53
|
-
}
|
|
54
|
-
return n.prototype = e, new n();
|
|
55
|
-
}), Date.now || (Date.now = function() {
|
|
56
|
-
return (/* @__PURE__ */ new Date()).getTime();
|
|
57
|
-
}), Z == null) {
|
|
58
|
-
var z = O;
|
|
59
|
-
O = function(e, n) {
|
|
60
|
-
var s = n.signal;
|
|
61
|
-
return z(e, { headers: n.headers, credentials: n.credentials, cache: n.cache }).then(function(a) {
|
|
62
|
-
var v = a.body.getReader();
|
|
63
|
-
return s._reader = v, s._aborted && s._reader.cancel(), {
|
|
64
|
-
status: a.status,
|
|
65
|
-
statusText: a.statusText,
|
|
66
|
-
headers: a.headers,
|
|
67
|
-
body: {
|
|
68
|
-
getReader: function() {
|
|
69
|
-
return v;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
}, Z = function() {
|
|
75
|
-
this.signal = {
|
|
76
|
-
_reader: null,
|
|
77
|
-
_aborted: !1
|
|
78
|
-
}, this.abort = function() {
|
|
79
|
-
this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function I() {
|
|
84
|
-
this.bitsNeeded = 0, this.codePoint = 0;
|
|
85
|
-
}
|
|
86
|
-
I.prototype.decode = function(e) {
|
|
87
|
-
function n(d, u, o) {
|
|
88
|
-
if (o === 1)
|
|
89
|
-
return d >= 128 >> u && d << u <= 2047;
|
|
90
|
-
if (o === 2)
|
|
91
|
-
return d >= 2048 >> u && d << u <= 55295 || d >= 57344 >> u && d << u <= 65535;
|
|
92
|
-
if (o === 3)
|
|
93
|
-
return d >= 65536 >> u && d << u <= 1114111;
|
|
94
|
-
throw new Error();
|
|
95
|
-
}
|
|
96
|
-
function s(d, u) {
|
|
97
|
-
if (d === 6 * 1)
|
|
98
|
-
return u >> 6 > 15 ? 3 : u > 31 ? 2 : 1;
|
|
99
|
-
if (d === 6 * 2)
|
|
100
|
-
return u > 15 ? 3 : 2;
|
|
101
|
-
if (d === 6 * 3)
|
|
102
|
-
return 3;
|
|
103
|
-
throw new Error();
|
|
104
|
-
}
|
|
105
|
-
for (var a = 65533, v = "", l = this.bitsNeeded, r = this.codePoint, i = 0; i < e.length; i += 1) {
|
|
106
|
-
var t = e[i];
|
|
107
|
-
l !== 0 && (t < 128 || t > 191 || !n(r << 6 | t & 63, l - 6, s(l, r))) && (l = 0, r = a, v += String.fromCharCode(r)), l === 0 ? (t >= 0 && t <= 127 ? (l = 0, r = t) : t >= 192 && t <= 223 ? (l = 6 * 1, r = t & 31) : t >= 224 && t <= 239 ? (l = 6 * 2, r = t & 15) : t >= 240 && t <= 247 ? (l = 6 * 3, r = t & 7) : (l = 0, r = a), l !== 0 && !n(r, l, s(l, r)) && (l = 0, r = a)) : (l -= 6, r = r << 6 | t & 63), l === 0 && (r <= 65535 ? v += String.fromCharCode(r) : (v += String.fromCharCode(55296 + (r - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (r - 65535 - 1 & 1023))));
|
|
108
|
-
}
|
|
109
|
-
return this.bitsNeeded = l, this.codePoint = r, v;
|
|
110
|
-
};
|
|
111
|
-
var pe = function() {
|
|
112
|
-
try {
|
|
113
|
-
return new Y().decode(new xe().encode("test"), { stream: !0 }) === "test";
|
|
114
|
-
} catch (e) {
|
|
115
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
116
|
-
}
|
|
117
|
-
return !1;
|
|
118
|
-
};
|
|
119
|
-
(Y == null || xe == null || !pe()) && (Y = I);
|
|
120
|
-
var N = function() {
|
|
121
|
-
};
|
|
122
|
-
function U(e) {
|
|
123
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = N, this.onload = N, this.onerror = N, this.onreadystatechange = N, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = N;
|
|
124
|
-
}
|
|
125
|
-
U.prototype.open = function(e, n) {
|
|
126
|
-
this._abort(!0);
|
|
127
|
-
var s = this, a = this._xhr, v = 1, l = 0;
|
|
128
|
-
this._abort = function(o) {
|
|
129
|
-
s._sendTimeout !== 0 && (le(s._sendTimeout), s._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, a.onload = N, a.onerror = N, a.onabort = N, a.onprogress = N, a.onreadystatechange = N, a.abort(), l !== 0 && (le(l), l = 0), o || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), v = 0;
|
|
130
|
-
};
|
|
131
|
-
var r = function() {
|
|
132
|
-
if (v === 1) {
|
|
133
|
-
var o = 0, h = "", b = void 0;
|
|
134
|
-
if ("contentType" in a)
|
|
135
|
-
o = 200, h = "OK", b = a.contentType;
|
|
136
|
-
else
|
|
137
|
-
try {
|
|
138
|
-
o = a.status, h = a.statusText, b = a.getResponseHeader("Content-Type");
|
|
139
|
-
} catch (x) {
|
|
140
|
-
o = 0, h = "", b = void 0;
|
|
141
|
-
}
|
|
142
|
-
o !== 0 && (v = 2, s.readyState = 2, s.status = o, s.statusText = h, s._contentType = b, s.onreadystatechange());
|
|
143
|
-
}
|
|
144
|
-
}, i = function() {
|
|
145
|
-
if (r(), v === 2 || v === 3) {
|
|
146
|
-
v = 3;
|
|
147
|
-
var o = "";
|
|
148
|
-
try {
|
|
149
|
-
o = a.responseText;
|
|
150
|
-
} catch (h) {
|
|
151
|
-
}
|
|
152
|
-
s.readyState = 3, s.responseText = o, s.onprogress();
|
|
153
|
-
}
|
|
154
|
-
}, t = function(o, h) {
|
|
155
|
-
if ((h == null || h.preventDefault == null) && (h = {
|
|
156
|
-
preventDefault: N
|
|
157
|
-
}), i(), v === 1 || v === 2 || v === 3) {
|
|
158
|
-
if (v = 4, l !== 0 && (le(l), l = 0), s.readyState = 4, o === "load")
|
|
159
|
-
s.onload(h);
|
|
160
|
-
else if (o === "error")
|
|
161
|
-
s.onerror(h);
|
|
162
|
-
else if (o === "abort")
|
|
163
|
-
s.onabort(h);
|
|
164
|
-
else
|
|
165
|
-
throw new TypeError();
|
|
166
|
-
s.onreadystatechange();
|
|
167
|
-
}
|
|
168
|
-
}, d = function(o) {
|
|
169
|
-
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && t(a.responseText === "" ? "error" : "load", o) : a.readyState === 3 ? "onprogress" in a || i() : a.readyState === 2 && r());
|
|
170
|
-
}, u = function() {
|
|
171
|
-
l = V(function() {
|
|
172
|
-
u();
|
|
173
|
-
}, 500), a.readyState === 3 && i();
|
|
174
|
-
};
|
|
175
|
-
"onload" in a && (a.onload = function(o) {
|
|
176
|
-
t("load", o);
|
|
177
|
-
}), "onerror" in a && (a.onerror = function(o) {
|
|
178
|
-
t("error", o);
|
|
179
|
-
}), "onabort" in a && (a.onabort = function(o) {
|
|
180
|
-
t("abort", o);
|
|
181
|
-
}), "onprogress" in a && (a.onprogress = i), "onreadystatechange" in a && (a.onreadystatechange = function(o) {
|
|
182
|
-
d(o);
|
|
183
|
-
}), ("contentType" in a || !("ontimeout" in k.prototype)) && (n += (n.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, n, !0), "readyState" in a && (l = V(function() {
|
|
184
|
-
u();
|
|
185
|
-
}, 0));
|
|
186
|
-
}, U.prototype.abort = function() {
|
|
187
|
-
this._abort(!1);
|
|
188
|
-
}, U.prototype.getResponseHeader = function(e) {
|
|
189
|
-
return this._contentType;
|
|
190
|
-
}, U.prototype.setRequestHeader = function(e, n) {
|
|
191
|
-
var s = this._xhr;
|
|
192
|
-
"setRequestHeader" in s && s.setRequestHeader(e, n);
|
|
193
|
-
}, U.prototype.getAllResponseHeaders = function() {
|
|
194
|
-
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
195
|
-
}, U.prototype.send = function() {
|
|
196
|
-
if ((!("ontimeout" in k.prototype) || !("sendAsBinary" in k.prototype) && !("mozAnon" in k.prototype)) && F != null && F.readyState != null && F.readyState !== "complete") {
|
|
197
|
-
var e = this;
|
|
198
|
-
e._sendTimeout = V(function() {
|
|
199
|
-
e._sendTimeout = 0, e.send();
|
|
200
|
-
}, 4);
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
var n = this._xhr;
|
|
204
|
-
"withCredentials" in n && (n.withCredentials = this.withCredentials);
|
|
205
|
-
try {
|
|
206
|
-
n.send(void 0);
|
|
207
|
-
} catch (s) {
|
|
208
|
-
throw s;
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
function Be(e) {
|
|
212
|
-
return e.replace(/[A-Z]/g, function(n) {
|
|
213
|
-
return String.fromCharCode(n.charCodeAt(0) + 32);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
function ge(e) {
|
|
217
|
-
for (var n = /* @__PURE__ */ Object.create(null), s = e.split(`\r
|
|
218
|
-
`), a = 0; a < s.length; a += 1) {
|
|
219
|
-
var v = s[a], l = v.split(": "), r = l.shift(), i = l.join(": ");
|
|
220
|
-
n[Be(r)] = i;
|
|
221
|
-
}
|
|
222
|
-
this._map = n;
|
|
223
|
-
}
|
|
224
|
-
ge.prototype.get = function(e) {
|
|
225
|
-
return this._map[Be(e)];
|
|
226
|
-
}, k != null && k.HEADERS_RECEIVED == null && (k.HEADERS_RECEIVED = 2);
|
|
227
|
-
function Ie() {
|
|
228
|
-
}
|
|
229
|
-
Ie.prototype.open = function(e, n, s, a, v, l, r) {
|
|
230
|
-
e.open("GET", v);
|
|
231
|
-
var i = 0;
|
|
232
|
-
e.onprogress = function() {
|
|
233
|
-
var d = e.responseText, u = d.slice(i);
|
|
234
|
-
i += u.length, s(u);
|
|
235
|
-
}, e.onerror = function(d) {
|
|
236
|
-
d.preventDefault(), a(new Error("NetworkError"));
|
|
237
|
-
}, e.onload = function() {
|
|
238
|
-
a(null);
|
|
239
|
-
}, e.onabort = function() {
|
|
240
|
-
a(null);
|
|
241
|
-
}, e.onreadystatechange = function() {
|
|
242
|
-
if (e.readyState === k.HEADERS_RECEIVED) {
|
|
243
|
-
var d = e.status, u = e.statusText, o = e.getResponseHeader("Content-Type"), h = e.getAllResponseHeaders();
|
|
244
|
-
n(d, u, o, new ge(h));
|
|
245
|
-
}
|
|
246
|
-
}, e.withCredentials = l;
|
|
247
|
-
for (var t in r)
|
|
248
|
-
Object.prototype.hasOwnProperty.call(r, t) && e.setRequestHeader(t, r[t]);
|
|
249
|
-
return e.send(), e;
|
|
250
|
-
};
|
|
251
|
-
function He(e) {
|
|
252
|
-
this._headers = e;
|
|
253
|
-
}
|
|
254
|
-
He.prototype.get = function(e) {
|
|
255
|
-
return this._headers.get(e);
|
|
256
|
-
};
|
|
257
|
-
function Me() {
|
|
258
|
-
}
|
|
259
|
-
Me.prototype.open = function(e, n, s, a, v, l, r) {
|
|
260
|
-
var i = null, t = new Z(), d = t.signal, u = new Y();
|
|
261
|
-
return O(v, {
|
|
262
|
-
headers: r,
|
|
263
|
-
credentials: l ? "include" : "same-origin",
|
|
264
|
-
signal: d,
|
|
265
|
-
cache: "no-store"
|
|
266
|
-
}).then(function(o) {
|
|
267
|
-
return i = o.body.getReader(), n(o.status, o.statusText, o.headers.get("Content-Type"), new He(o.headers)), new Ge(function(h, b) {
|
|
268
|
-
var x = function() {
|
|
269
|
-
i.read().then(function(p) {
|
|
270
|
-
if (p.done)
|
|
271
|
-
h(void 0);
|
|
272
|
-
else {
|
|
273
|
-
var m = u.decode(p.value, { stream: !0 });
|
|
274
|
-
s(m), x();
|
|
275
|
-
}
|
|
276
|
-
}).catch(function(p) {
|
|
277
|
-
b(p);
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
x();
|
|
281
|
-
});
|
|
282
|
-
}).catch(function(o) {
|
|
283
|
-
if (o.name !== "AbortError")
|
|
284
|
-
return o;
|
|
285
|
-
}).then(function(o) {
|
|
286
|
-
a(o);
|
|
287
|
-
}), {
|
|
288
|
-
abort: function() {
|
|
289
|
-
i != null && i.cancel(), t.abort();
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
function me() {
|
|
294
|
-
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
295
|
-
}
|
|
296
|
-
function $e(e) {
|
|
297
|
-
V(function() {
|
|
298
|
-
throw e;
|
|
299
|
-
}, 0);
|
|
300
|
-
}
|
|
301
|
-
me.prototype.dispatchEvent = function(e) {
|
|
302
|
-
e.target = this;
|
|
303
|
-
var n = this._listeners[e.type];
|
|
304
|
-
if (n != null)
|
|
305
|
-
for (var s = n.length, a = 0; a < s; a += 1) {
|
|
306
|
-
var v = n[a];
|
|
307
|
-
try {
|
|
308
|
-
typeof v.handleEvent == "function" ? v.handleEvent(e) : v.call(this, e);
|
|
309
|
-
} catch (l) {
|
|
310
|
-
$e(l);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}, me.prototype.addEventListener = function(e, n) {
|
|
314
|
-
e = String(e);
|
|
315
|
-
var s = this._listeners, a = s[e];
|
|
316
|
-
a == null && (a = [], s[e] = a);
|
|
317
|
-
for (var v = !1, l = 0; l < a.length; l += 1)
|
|
318
|
-
a[l] === n && (v = !0);
|
|
319
|
-
v || a.push(n);
|
|
320
|
-
}, me.prototype.removeEventListener = function(e, n) {
|
|
321
|
-
e = String(e);
|
|
322
|
-
var s = this._listeners, a = s[e];
|
|
323
|
-
if (a != null) {
|
|
324
|
-
for (var v = [], l = 0; l < a.length; l += 1)
|
|
325
|
-
a[l] !== n && v.push(a[l]);
|
|
326
|
-
v.length === 0 ? delete s[e] : s[e] = v;
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
function de(e) {
|
|
330
|
-
this.type = e, this.target = void 0;
|
|
331
|
-
}
|
|
332
|
-
function ye(e, n) {
|
|
333
|
-
de.call(this, e), this.data = n.data, this.lastEventId = n.lastEventId;
|
|
334
|
-
}
|
|
335
|
-
ye.prototype = Object.create(de.prototype);
|
|
336
|
-
function be(e, n) {
|
|
337
|
-
de.call(this, e), this.status = n.status, this.statusText = n.statusText, this.headers = n.headers;
|
|
338
|
-
}
|
|
339
|
-
be.prototype = Object.create(de.prototype);
|
|
340
|
-
function ze(e, n) {
|
|
341
|
-
de.call(this, e), this.error = n.error;
|
|
342
|
-
}
|
|
343
|
-
ze.prototype = Object.create(de.prototype);
|
|
344
|
-
var Pe = -1, ee = 0, re = 1, ce = 2, Re = -1, te = 0, we = 1, Se = 2, Ue = 3, Te = /^text\/event\-stream(;.*)?$/i, Ve = 1e3, Ce = 18e6, Ae = function(e, n) {
|
|
345
|
-
var s = e == null ? n : parseInt(e, 10);
|
|
346
|
-
return s !== s && (s = n), je(s);
|
|
347
|
-
}, je = function(e) {
|
|
348
|
-
return Math.min(Math.max(e, Ve), Ce);
|
|
349
|
-
}, ve = function(e, n, s) {
|
|
350
|
-
try {
|
|
351
|
-
typeof n == "function" && n.call(e, s);
|
|
352
|
-
} catch (a) {
|
|
353
|
-
$e(a);
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
function B(e, n) {
|
|
357
|
-
me.call(this), n = n || {}, 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, Je(this, e, n);
|
|
358
|
-
}
|
|
359
|
-
function Ke() {
|
|
360
|
-
return k != null && "withCredentials" in k.prototype || K == null ? new k() : new K();
|
|
361
|
-
}
|
|
362
|
-
var Xe = O != null && fe != null && "body" in fe.prototype;
|
|
363
|
-
function Je(e, n, s) {
|
|
364
|
-
n = String(n);
|
|
365
|
-
var a = !!s.withCredentials, v = s.lastEventIdQueryParameterName || "lastEventId", l = je(1e3), r = Ae(s.heartbeatTimeout, 45e3), i = "", t = l, d = !1, u = 0, o = s.headers || {}, h = s.Transport, b = Xe && h == null ? void 0 : new U(h != null ? new h() : Ke()), x = h != null && typeof h != "string" ? new h() : b == null ? new Me() : new Ie(), p = void 0, m = 0, S = Pe, X = "", j = "", y = "", E = "", _ = te, ae = 0, G = 0, ne = function(T, P, H, M) {
|
|
366
|
-
if (S === ee)
|
|
367
|
-
if (T === 200 && H != null && Te.test(H)) {
|
|
368
|
-
S = re, d = Date.now(), t = l, e.readyState = re;
|
|
369
|
-
var D = new be("open", {
|
|
370
|
-
status: T,
|
|
371
|
-
statusText: P,
|
|
372
|
-
headers: M
|
|
373
|
-
});
|
|
374
|
-
e.dispatchEvent(D), ve(e, e.onopen, D);
|
|
375
|
-
} else {
|
|
376
|
-
var C = "";
|
|
377
|
-
T !== 200 ? (P && (P = P.replace(/\s+/g, " ")), C = "EventSource's response has a status " + T + " " + P + " that is not 200. Aborting the connection.") : C = "EventSource's response has a Content-Type specifying an unsupported type: " + (H == null ? "-" : H.replace(/\s+/g, " ")) + ". Aborting the connection.", Qe();
|
|
378
|
-
var D = new be("error", {
|
|
379
|
-
status: T,
|
|
380
|
-
statusText: P,
|
|
381
|
-
headers: M
|
|
382
|
-
});
|
|
383
|
-
e.dispatchEvent(D), ve(e, e.onerror, D), console.error(C);
|
|
384
|
-
}
|
|
385
|
-
}, ke = function(T) {
|
|
386
|
-
if (S === re) {
|
|
387
|
-
for (var P = -1, H = 0; H < T.length; H += 1) {
|
|
388
|
-
var M = T.charCodeAt(H);
|
|
389
|
-
(M === 10 || M === 13) && (P = H);
|
|
390
|
-
}
|
|
391
|
-
var D = (P !== -1 ? E : "") + T.slice(0, P + 1);
|
|
392
|
-
E = (P === -1 ? E : "") + T.slice(P + 1), T !== "" && (d = Date.now(), u += T.length);
|
|
393
|
-
for (var C = 0; C < D.length; C += 1) {
|
|
394
|
-
var M = D.charCodeAt(C);
|
|
395
|
-
if (_ === Re && M === 10)
|
|
396
|
-
_ = te;
|
|
397
|
-
else if (_ === Re && (_ = te), M === 13 || M === 10) {
|
|
398
|
-
if (_ !== te) {
|
|
399
|
-
_ === we && (G = C + 1);
|
|
400
|
-
var oe = D.slice(ae, G - 1), se = D.slice(G + (G < C && D.charCodeAt(G) === 32 ? 1 : 0), C);
|
|
401
|
-
oe === "data" ? (X += `
|
|
402
|
-
`, X += se) : oe === "id" ? j = se : oe === "event" ? y = se : oe === "retry" ? (l = Ae(se, l), t = l) : oe === "heartbeatTimeout" && (r = Ae(se, r), m !== 0 && (le(m), m = V(function() {
|
|
403
|
-
Ne();
|
|
404
|
-
}, r)));
|
|
405
|
-
}
|
|
406
|
-
if (_ === te) {
|
|
407
|
-
if (X !== "") {
|
|
408
|
-
i = j, y === "" && (y = "message");
|
|
409
|
-
var Ee = new ye(y, {
|
|
410
|
-
data: X.slice(1),
|
|
411
|
-
lastEventId: j
|
|
412
|
-
});
|
|
413
|
-
if (e.dispatchEvent(Ee), y === "open" ? ve(e, e.onopen, Ee) : y === "message" ? ve(e, e.onmessage, Ee) : y === "error" && ve(e, e.onerror, Ee), S === ce)
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
X = "", y = "";
|
|
417
|
-
}
|
|
418
|
-
_ = M === 13 ? Re : te;
|
|
419
|
-
} else
|
|
420
|
-
_ === te && (ae = C, _ = we), _ === we ? M === 58 && (G = C + 1, _ = Se) : _ === Se && (_ = Ue);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}, Le = function(T) {
|
|
424
|
-
if (S === re || S === ee) {
|
|
425
|
-
S = Pe, m !== 0 && (le(m), m = 0), m = V(function() {
|
|
426
|
-
Ne();
|
|
427
|
-
}, t), t = je(Math.min(l * 16, t * 2)), e.readyState = ee;
|
|
428
|
-
var P = new ze("error", { error: T });
|
|
429
|
-
e.dispatchEvent(P), ve(e, e.onerror, P), T != null && console.error(T);
|
|
430
|
-
}
|
|
431
|
-
}, Qe = function() {
|
|
432
|
-
S = ce, p != null && (p.abort(), p = void 0), m !== 0 && (le(m), m = 0), e.readyState = ce;
|
|
433
|
-
}, Ne = function() {
|
|
434
|
-
if (m = 0, S !== Pe) {
|
|
435
|
-
if (!d && p != null)
|
|
436
|
-
Le(new Error("No activity within " + r + " milliseconds. " + (S === ee ? "No response received." : u + " chars received.") + " Reconnecting.")), p != null && (p.abort(), p = void 0);
|
|
437
|
-
else {
|
|
438
|
-
var T = Math.max((d || Date.now()) + r - Date.now(), 1);
|
|
439
|
-
d = !1, m = V(function() {
|
|
440
|
-
Ne();
|
|
441
|
-
}, T);
|
|
442
|
-
}
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
d = !1, u = 0, m = V(function() {
|
|
446
|
-
Ne();
|
|
447
|
-
}, r), S = ee, X = "", y = "", j = i, E = "", ae = 0, G = 0, _ = te;
|
|
448
|
-
var P = n;
|
|
449
|
-
if (n.slice(0, 5) !== "data:" && n.slice(0, 5) !== "blob:" && i !== "") {
|
|
450
|
-
var H = n.indexOf("?");
|
|
451
|
-
P = H === -1 ? n : n.slice(0, H + 1) + n.slice(H + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(se, Ee) {
|
|
452
|
-
return Ee === v ? "" : se;
|
|
453
|
-
}), P += (n.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(i);
|
|
454
|
-
}
|
|
455
|
-
var M = e.withCredentials, D = {};
|
|
456
|
-
D.Accept = "text/event-stream";
|
|
457
|
-
var C = e.headers;
|
|
458
|
-
if (C != null)
|
|
459
|
-
for (var oe in C)
|
|
460
|
-
Object.prototype.hasOwnProperty.call(C, oe) && (D[oe] = C[oe]);
|
|
461
|
-
try {
|
|
462
|
-
p = x.open(b, ne, ke, Le, P, M, D);
|
|
463
|
-
} catch (se) {
|
|
464
|
-
throw Qe(), se;
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
e.url = n, e.readyState = ee, e.withCredentials = a, e.headers = o, e._close = Qe, Ne();
|
|
468
|
-
}
|
|
469
|
-
B.prototype = Object.create(me.prototype), B.prototype.CONNECTING = ee, B.prototype.OPEN = re, B.prototype.CLOSED = ce, B.prototype.close = function() {
|
|
470
|
-
this._close();
|
|
471
|
-
}, B.CONNECTING = ee, B.OPEN = re, B.CLOSED = ce, B.prototype.withCredentials = void 0;
|
|
472
|
-
var qe = Q;
|
|
473
|
-
k != null && (Q == null || !("withCredentials" in Q.prototype)) && (qe = B), function(e) {
|
|
474
|
-
{
|
|
475
|
-
var n = e($);
|
|
476
|
-
n !== void 0 && (ie.exports = n);
|
|
477
|
-
}
|
|
478
|
-
}(function(e) {
|
|
479
|
-
e.EventSourcePolyfill = B, e.NativeEventSource = Q, e.EventSource = qe;
|
|
480
|
-
});
|
|
481
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : ir : globalThis);
|
|
482
|
-
})(er, er.exports);
|
|
483
|
-
var wr = er.exports, jr = W('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span>', 1), _r = W('<p class="svelte-75jgrh"> </p>'), xr = W('<div class="PlayerRankWrapper svelte-75jgrh"><div class="PlayerRankLabels svelte-75jgrh"><span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span></div> <div class="PlayerRankData svelte-75jgrh"><!></div></div>'), Sr = W('<div class="PlayerRankSkeletonWrapper svelte-75jgrh"><div class="PlayerRankSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PlayerRankSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div></div>'), kr = W('<tr class="SkeletonRow svelte-75jgrh"><td colspan="4" class="SkeletonShimmer svelte-75jgrh"><div class="svelte-75jgrh"></div></td></tr>'), Er = W('<tr><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td></tr>'), Pr = W('<tr class="svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"><div class="EmptyLeaderboard svelte-75jgrh"><p class="svelte-75jgrh"> </p></div></td></tr>'), Rr = W('<div class="PaginationSkeleton svelte-75jgrh"><div class="PaginationSkeletonButton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationSkeletonButton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div></div>'), Tr = W('<span class="PaginationButton Elipsis svelte-75jgrh">...</span>'), Cr = W("<button> </button>"), Ar = W('<div class="PaginationWrapper svelte-75jgrh"><button class="PaginationButton svelte-75jgrh"> </button> <div class="PageNumberWrapper svelte-75jgrh"></div> <button class="PaginationButton svelte-75jgrh"> </button></div>'), Lr = W('<div class="LeaderboardWrapper svelte-75jgrh"><!> <table class="LeaderboardTable svelte-75jgrh"><thead class="LeaderboardTableHeader svelte-75jgrh"><tr class="svelte-75jgrh"><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th></tr></thead><tbody class="LeaderboardTableBody svelte-75jgrh"><!></tbody></table> <!> <!></div>');
|
|
484
|
-
const Nr = {
|
|
485
|
-
hash: "svelte-75jgrh",
|
|
486
|
-
code: `.svelte-75jgrh,
|
|
487
|
-
.svelte-75jgrh::before,
|
|
488
|
-
.svelte-75jgrh::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;}.PlayerRankWrapper.svelte-75jgrh {display:flex;flex-direction:column;gap:5px;margin-top:20px;.PlayerRankLabels:where(.svelte-75jgrh), .PlayerRankData:where(.svelte-75jgrh) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:400;& > span:where(.svelte-75jgrh):last-child{justify-self:end;}p:where(.svelte-75jgrh) {width:max-content;}}.PlayerRankData:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-75jgrh {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-75jgrh) {display:flex;gap:6px;}.PaginationButton:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.LeaderboardTable.svelte-75jgrh {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-75jgrh) {color:#F9C408;}thead:where(.svelte-75jgrh) th:where(.svelte-75jgrh) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-75jgrh) tr:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(2) {width:35%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(3) {width:20%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-75jgrh), td:where(.svelte-75jgrh) {text-align:center;vertical-align:middle;}tbody:where(.svelte-75jgrh) tr.Gold:where(.svelte-75jgrh){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Silver:where(.svelte-75jgrh) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Bronze:where(.svelte-75jgrh) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;}.SkeletonRow.svelte-75jgrh {height:41px;overflow:hidden;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;}}.PaginationSkeleton.svelte-75jgrh {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:60px;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #333232);overflow:hidden;position:relative;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:30px;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #333232);overflow:hidden;position:relative;}}.SkeletonShimmer.svelte-75jgrh {width:100%;height:100%;background:linear-gradient(
|
|
489
|
-
90deg,
|
|
490
|
-
transparent 0%,
|
|
491
|
-
var(--emw-color-skeleton, #333232) 50%,
|
|
492
|
-
transparent 100%
|
|
493
|
-
);
|
|
494
|
-
animation: svelte-75jgrh-loading 1.5s infinite;transform:translateX(-100%);}
|
|
495
|
-
|
|
496
|
-
@keyframes svelte-75jgrh-loading {
|
|
497
|
-
0% {
|
|
498
|
-
transform: translateX(-100%);
|
|
499
|
-
}
|
|
500
|
-
100% {
|
|
501
|
-
transform: translateX(100%);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
@media (min-width: 1000px) {.ShowPlayersButton.svelte-75jgrh {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
@media (min-width: 750px) {.PaginationWrapper.svelte-75jgrh, .PaginationSkeleton.svelte-75jgrh {justify-content:end;gap:10px;}.PaginationButton.svelte-75jgrh {min-width:75px;}.PaginationSkeleton.svelte-75jgrh {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:25px;}}
|
|
509
|
-
}`
|
|
510
|
-
};
|
|
511
|
-
function Dr(ie, $) {
|
|
512
|
-
lr($, !0), dr(ie, Nr);
|
|
513
|
-
const w = () => fr(mr, "$_", V), [V, le] = ur(), k = De($, "endpoint"), K = De($, "language", 7, "en"), J = De($, "session"), Q = De($, "tournamentid"), F = De($, "platform");
|
|
514
|
-
Object.keys(nr).forEach((r) => {
|
|
515
|
-
br(r, nr[r]);
|
|
516
|
-
}), ar(K());
|
|
517
|
-
const Ge = () => {
|
|
518
|
-
ar(K());
|
|
519
|
-
};
|
|
520
|
-
cr(() => {
|
|
521
|
-
Ge();
|
|
522
|
-
});
|
|
523
|
-
let O = null, fe = he(void 0), Y = he(!1), xe = he(!1), Z = he(void 0), z = he(0), I = he(10), pe = he(void 0), N = he(void 0);
|
|
524
|
-
const U = () => {
|
|
525
|
-
if (be.has(c(ye)))
|
|
526
|
-
return;
|
|
527
|
-
q(Y, !0);
|
|
528
|
-
const r = new URL(`${k()}/v1/tournaments/${Q()}/leaderboard`), i = new Headers();
|
|
529
|
-
J() && i.append("X-SessionId", J()), r.searchParams.append("language", K()), r.searchParams.append("platform", F()), r.searchParams.append("pagination", `offset=${c(z)},limit=${c(I)}`), fetch(r).then((t) => t.json()).then((t) => {
|
|
530
|
-
q(fe, t == null ? void 0 : t.items, !0), q(pe, t == null ? void 0 : t.pages, !0), q(N, t == null ? void 0 : t.total, !0), be.set(c(ye), c(fe));
|
|
531
|
-
}).catch((t) => console.log(t)).finally(() => q(Y, !1));
|
|
532
|
-
}, Be = (r) => {
|
|
533
|
-
const i = JSON.parse(r.data);
|
|
534
|
-
i && i.messageType === "LeaderBoardUpdate" && q(fe, i == null ? void 0 : i.items, !0);
|
|
535
|
-
}, ge = () => {
|
|
536
|
-
O && (O.close(), O = null);
|
|
537
|
-
const r = new URL(`${k()}/v1/tournaments/${Q()}/leaderboard/updates`);
|
|
538
|
-
r.searchParams.append("HeartBeat", "false"), r.searchParams.append("language", K()), r.searchParams.append("filter", "includeUnqualifiedPlayer=true"), r.searchParams.append("pagination", `offset=${c(z)},limit=${c(I)}`), r.searchParams.append("platform", F()), O = new wr.EventSourcePolyfill(r, {
|
|
539
|
-
headers: { accept: "text/event-stream", "X-SessionId": J() }
|
|
540
|
-
}), O.onmessage = Be;
|
|
541
|
-
}, Ie = () => {
|
|
542
|
-
q(xe, !0);
|
|
543
|
-
const r = new URL(`${k()}/v1/tournaments/leaderboard/player`), i = new Headers();
|
|
544
|
-
r.searchParams.append("language", K()), r.searchParams.append("platform", F()), r.searchParams.append("filter", "includeUnqualifiedPlayer=false"), J() && i.append("X-SessionId", J()), fetch(r, { method: "GET", headers: i }).then((d) => d.json()).then((d) => {
|
|
545
|
-
var o;
|
|
546
|
-
const u = (o = d == null ? void 0 : d.items) == null ? void 0 : o.find((h) => {
|
|
547
|
-
var b;
|
|
548
|
-
return ((b = h == null ? void 0 : h.tournament) == null ? void 0 : b.id) === Q();
|
|
549
|
-
});
|
|
550
|
-
q(Z, u == null ? void 0 : u.leaderBoard, !0);
|
|
551
|
-
}).catch((d) => {
|
|
552
|
-
console.log(d);
|
|
553
|
-
}).finally(() => q(xe, !1));
|
|
554
|
-
}, He = () => {
|
|
555
|
-
var r;
|
|
556
|
-
(r = c(pe)) != null && r.next && (q(z, c(z) + c(I)), U(), ge());
|
|
557
|
-
}, Me = () => {
|
|
558
|
-
var r;
|
|
559
|
-
(r = c(pe)) != null && r.previous && c(z) !== 0 && (q(z, c(z) - c(I)), U(), ge());
|
|
560
|
-
}, me = (r) => {
|
|
561
|
-
q(z, (r - 1) * c(I)), U(), ge();
|
|
562
|
-
}, de = Ye(() => {
|
|
563
|
-
const r = Math.ceil(c(N) / c(I)), i = Math.floor(c(z) / c(I)) + 1;
|
|
564
|
-
if (r <= 5)
|
|
565
|
-
return Array.from({ length: r }, (d, u) => u + 1);
|
|
566
|
-
const t = [];
|
|
567
|
-
return t.push(1), i <= 3 ? (t.push(2, 3), t.push("..."), t.push(r)) : i >= r - 2 ? (t.push("..."), t.push(r - 2, r - 1, r)) : (t.push("..."), t.push(i - 1, i, i + 1), t.push("..."), t.push(r)), t;
|
|
568
|
-
}), ye = Ye(() => Math.floor(c(z) / c(I)) + 1);
|
|
569
|
-
let be = /* @__PURE__ */ new Map(), ze = Ye(() => {
|
|
570
|
-
var r;
|
|
571
|
-
return (r = be.get(c(ye))) != null ? r : [];
|
|
572
|
-
});
|
|
573
|
-
const Pe = (r, i) => {
|
|
574
|
-
const t = [];
|
|
575
|
-
return i && t.push("PlayerRow"), r === 1 && t.push("Gold"), r === 2 && t.push("Silver"), r === 3 && t.push("Bronze"), t.join(" ");
|
|
576
|
-
};
|
|
577
|
-
vr(() => (U(), Ie(), ge(), () => {
|
|
578
|
-
O == null || O.close(), O = null;
|
|
579
|
-
}));
|
|
580
|
-
var ee = {
|
|
581
|
-
get endpoint() {
|
|
582
|
-
return k();
|
|
583
|
-
},
|
|
584
|
-
set endpoint(r) {
|
|
585
|
-
k(r), Fe();
|
|
586
|
-
},
|
|
587
|
-
get language() {
|
|
588
|
-
return K();
|
|
589
|
-
},
|
|
590
|
-
set language(r = "en") {
|
|
591
|
-
K(r), Fe();
|
|
592
|
-
},
|
|
593
|
-
get session() {
|
|
594
|
-
return J();
|
|
595
|
-
},
|
|
596
|
-
set session(r) {
|
|
597
|
-
J(r), Fe();
|
|
598
|
-
},
|
|
599
|
-
get tournamentid() {
|
|
600
|
-
return Q();
|
|
601
|
-
},
|
|
602
|
-
set tournamentid(r) {
|
|
603
|
-
Q(r), Fe();
|
|
604
|
-
},
|
|
605
|
-
get platform() {
|
|
606
|
-
return F();
|
|
607
|
-
},
|
|
608
|
-
set platform(r) {
|
|
609
|
-
F(r), Fe();
|
|
610
|
-
}
|
|
611
|
-
}, re = Lr(), ce = g(re);
|
|
612
|
-
{
|
|
613
|
-
var Re = (r) => {
|
|
614
|
-
var i = xr(), t = g(i), d = g(t), u = g(d, !0);
|
|
615
|
-
f(d);
|
|
616
|
-
var o = A(d, 2), h = g(o, !0);
|
|
617
|
-
f(o);
|
|
618
|
-
var b = A(o, 2), x = g(b, !0);
|
|
619
|
-
f(b), f(t);
|
|
620
|
-
var p = A(t, 2), m = g(p);
|
|
621
|
-
{
|
|
622
|
-
var S = (j) => {
|
|
623
|
-
var y = jr(), E = Oe(y), _ = g(E);
|
|
624
|
-
f(E);
|
|
625
|
-
var ae = A(E, 2), G = g(ae, !0);
|
|
626
|
-
f(ae);
|
|
627
|
-
var ne = A(ae, 2), ke = g(ne, !0);
|
|
628
|
-
f(ne), ue(() => {
|
|
629
|
-
var Le;
|
|
630
|
-
R(_, `${(Le = c(Z).rank) != null ? Le : ""}.`), R(G, c(Z).score), R(ke, c(Z).prizeName || "-");
|
|
631
|
-
}), L(j, y);
|
|
632
|
-
}, X = (j) => {
|
|
633
|
-
var y = _r(), E = g(y, !0);
|
|
634
|
-
f(y), ue((_) => R(E, _), [() => w()("notEnrolledRank")]), L(j, y);
|
|
635
|
-
};
|
|
636
|
-
_e(m, (j) => {
|
|
637
|
-
c(Z) ? j(S) : j(X, !1);
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
f(p), f(i), ue(
|
|
641
|
-
(j, y, E) => {
|
|
642
|
-
R(u, j), R(h, y), R(x, E);
|
|
643
|
-
},
|
|
644
|
-
[
|
|
645
|
-
() => w()("myRanking"),
|
|
646
|
-
() => w()("points"),
|
|
647
|
-
() => w()("prize")
|
|
648
|
-
]
|
|
649
|
-
), L(r, i);
|
|
650
|
-
}, te = (r) => {
|
|
651
|
-
var i = Sr();
|
|
652
|
-
L(r, i);
|
|
653
|
-
};
|
|
654
|
-
_e(ce, (r) => {
|
|
655
|
-
c(xe) ? r(te, !1) : r(Re);
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
var we = A(ce, 2), Se = g(we), Ue = g(Se), Te = g(Ue), Ve = g(Te, !0);
|
|
659
|
-
f(Te);
|
|
660
|
-
var Ce = A(Te), Ae = g(Ce, !0);
|
|
661
|
-
f(Ce);
|
|
662
|
-
var je = A(Ce), ve = g(je, !0);
|
|
663
|
-
f(je);
|
|
664
|
-
var B = A(je), Ke = g(B, !0);
|
|
665
|
-
f(B), f(Ue), f(Se);
|
|
666
|
-
var Xe = A(Se), Je = g(Xe);
|
|
667
|
-
{
|
|
668
|
-
var qe = (r) => {
|
|
669
|
-
var i = We(), t = Oe(i);
|
|
670
|
-
Ze(t, 17, () => Array(c(I)), rr, (d, u, o, h) => {
|
|
671
|
-
var b = kr();
|
|
672
|
-
L(d, b);
|
|
673
|
-
}), L(r, i);
|
|
674
|
-
}, e = (r) => {
|
|
675
|
-
var i = We(), t = Oe(i);
|
|
676
|
-
{
|
|
677
|
-
var d = (o) => {
|
|
678
|
-
var h = We(), b = Oe(h);
|
|
679
|
-
Ze(b, 17, () => c(ze), (x) => x.rank, (x, p) => {
|
|
680
|
-
var m = Er(), S = g(m), X = g(S);
|
|
681
|
-
f(S);
|
|
682
|
-
var j = A(S), y = g(j, !0);
|
|
683
|
-
f(j);
|
|
684
|
-
var E = A(j), _ = g(E, !0);
|
|
685
|
-
f(E);
|
|
686
|
-
var ae = A(E), G = g(ae, !0);
|
|
687
|
-
f(ae), f(m), ue(
|
|
688
|
-
(ne) => {
|
|
689
|
-
var ke;
|
|
690
|
-
tr(m, 1, ne, "svelte-75jgrh"), R(X, `${(ke = c(p).rank) != null ? ke : ""}.`), R(y, c(p).shortName || "-"), R(_, c(p).score || "-"), R(G, c(p).prizeName || "-");
|
|
691
|
-
},
|
|
692
|
-
[
|
|
693
|
-
() => {
|
|
694
|
-
var ne;
|
|
695
|
-
return yr(Pe(c(p).rank, c(p).rank === ((ne = c(Z)) == null ? void 0 : ne.rank)));
|
|
696
|
-
}
|
|
697
|
-
]
|
|
698
|
-
), L(x, m);
|
|
699
|
-
}), L(o, h);
|
|
700
|
-
}, u = (o) => {
|
|
701
|
-
var h = Pr(), b = g(h), x = g(b), p = g(x), m = g(p, !0);
|
|
702
|
-
f(p), f(x), f(b), f(h), ue((S) => R(m, S), [() => w()("emptyLeaderboard")]), L(o, h);
|
|
703
|
-
};
|
|
704
|
-
_e(
|
|
705
|
-
t,
|
|
706
|
-
(o) => {
|
|
707
|
-
var h;
|
|
708
|
-
((h = c(fe)) == null ? void 0 : h.length) > 0 ? o(d) : o(u, !1);
|
|
709
|
-
},
|
|
710
|
-
!0
|
|
711
|
-
);
|
|
712
|
-
}
|
|
713
|
-
L(r, i);
|
|
714
|
-
};
|
|
715
|
-
_e(Je, (r) => {
|
|
716
|
-
c(Y) ? r(qe) : r(e, !1);
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
f(Xe), f(we);
|
|
720
|
-
var n = A(we, 2);
|
|
721
|
-
{
|
|
722
|
-
var s = (r) => {
|
|
723
|
-
var i = Rr();
|
|
724
|
-
L(r, i);
|
|
725
|
-
};
|
|
726
|
-
_e(n, (r) => {
|
|
727
|
-
c(Y) && r(s);
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
var a = A(n, 2);
|
|
731
|
-
{
|
|
732
|
-
var v = (r) => {
|
|
733
|
-
var i = Ar(), t = g(i);
|
|
734
|
-
t.__click = Me;
|
|
735
|
-
var d = g(t, !0);
|
|
736
|
-
f(t);
|
|
737
|
-
var u = A(t, 2);
|
|
738
|
-
Ze(u, 21, () => c(de), rr, (b, x) => {
|
|
739
|
-
var p = We(), m = Oe(p);
|
|
740
|
-
{
|
|
741
|
-
var S = (j) => {
|
|
742
|
-
var y = Tr();
|
|
743
|
-
L(j, y);
|
|
744
|
-
}, X = (j) => {
|
|
745
|
-
var y = Cr();
|
|
746
|
-
let E;
|
|
747
|
-
y.__click = () => me(c(x));
|
|
748
|
-
var _ = g(y, !0);
|
|
749
|
-
f(y), ue(() => {
|
|
750
|
-
E = tr(y, 1, "PaginationButton Number svelte-75jgrh", null, E, { Active: c(x) === c(ye) }), R(_, c(x));
|
|
751
|
-
}), L(j, y);
|
|
752
|
-
};
|
|
753
|
-
_e(m, (j) => {
|
|
754
|
-
typeof c(x) != "number" ? j(S) : j(X, !1);
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
L(b, p);
|
|
758
|
-
}), f(u);
|
|
759
|
-
var o = A(u, 2);
|
|
760
|
-
o.__click = He;
|
|
761
|
-
var h = g(o, !0);
|
|
762
|
-
f(o), f(i), ue(
|
|
763
|
-
(b, x) => {
|
|
764
|
-
var p, m;
|
|
765
|
-
t.disabled = !((p = c(pe)) != null && p.previous), R(d, b), o.disabled = !((m = c(pe)) != null && m.next), R(h, x);
|
|
766
|
-
},
|
|
767
|
-
[() => w()("previousButton"), () => w()("nextButton")]
|
|
768
|
-
), L(r, i);
|
|
769
|
-
};
|
|
770
|
-
_e(a, (r) => {
|
|
771
|
-
!c(Y) && c(N) > c(I) && r(v);
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
f(re), ue(
|
|
775
|
-
(r, i, t, d) => {
|
|
776
|
-
R(Ve, r), R(Ae, i), R(ve, t), R(Ke, d);
|
|
777
|
-
},
|
|
778
|
-
[
|
|
779
|
-
() => w()("rank"),
|
|
780
|
-
() => w()("user"),
|
|
781
|
-
() => w()("points"),
|
|
782
|
-
() => w()("prize")
|
|
783
|
-
]
|
|
784
|
-
), L(ie, re);
|
|
785
|
-
var l = hr(ee);
|
|
786
|
-
return le(), l;
|
|
787
|
-
}
|
|
788
|
-
pr(["click"]);
|
|
789
|
-
customElements.define("tournament-leaderboard", gr(
|
|
790
|
-
Dr,
|
|
791
|
-
{
|
|
792
|
-
endpoint: {},
|
|
793
|
-
language: {},
|
|
794
|
-
session: {},
|
|
795
|
-
tournamentid: {},
|
|
796
|
-
platform: {}
|
|
797
|
-
},
|
|
798
|
-
[],
|
|
799
|
-
[],
|
|
800
|
-
!1
|
|
801
|
-
));
|
|
802
|
-
export {
|
|
803
|
-
Dr as default
|
|
804
|
-
};
|