@everymatrix/tournament-details-page 0.0.2 → 0.0.5
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-upe3WFia.cjs → TournamentDetails-2nXu_Fl0.cjs} +5 -5
- package/components/{TournamentDetails-amGR_-Hv.js → TournamentDetails-ByOP8vGa.js} +575 -576
- package/components/{TournamentDetails-CJVSWVXD.js → TournamentDetails-DIGjTSwQ.js} +701 -702
- package/components/{TournamentDetailsPage-DW00w9RP.js → TournamentDetailsPage-CPVEgDYR.js} +154 -154
- package/components/TournamentDetailsPage-CpVOLote.cjs +63 -0
- package/components/{TournamentDetailsPage-B21wsWnv.js → TournamentDetailsPage-Dlv02xHw.js} +110 -110
- package/components/TournamentGames-0cZY55hS.js +348 -0
- package/components/TournamentGames-3vEVB6E0.js +376 -0
- package/components/TournamentGames-54X0-O5B.cjs +26 -0
- package/components/TournamentLeaderboard-CXLrlJUG.cjs +30 -0
- package/components/TournamentLeaderboard-D7ktm7ED.js +788 -0
- package/components/TournamentLeaderboard-nb3ySbAn.js +804 -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/TournamentDetailsPage-BlWvqhbK.js +0 -953
- package/components/TournamentDetailsPage-BsjnqhIP.cjs +0 -63
- package/components/TournamentDetailsPage-DnknTo0Y.js +0 -976
- package/components/TournamentDetailsPage-FO-PGATk.cjs +0 -63
- package/components/TournamentGames-B0ap9lHo.cjs +0 -26
- package/components/TournamentGames-BqZd-C9h.js +0 -351
- package/components/TournamentGames-C0-voJOi.js +0 -324
- package/components/TournamentGames-Cb2LP2tF.js +0 -324
- package/components/TournamentGames-D5Nyb0Nx.cjs +0 -26
- package/components/TournamentGames-DIIgfZ-E.js +0 -351
- package/components/TournamentLeaderboard-BjmkrtNX.js +0 -800
- package/components/TournamentLeaderboard-C1tIH5FA.js +0 -784
- package/components/TournamentLeaderboard-DWYhqHPh.cjs +0 -36
|
@@ -0,0 +1,804 @@
|
|
|
1
|
+
import { a as nr, $ as or, M as sr, m as ir, e as lr, p as De, u as dr, o as cr, g as W, i as je, n as c, s as he, q as g, r as A, y as ue, h as L, j as vr, k as hr, L as Ye, w as q, l as Fe, I as We, x as Oe, J as Ze, C as ur, E as R, K as rr, t as fr, v as pr, F as gr, B as f, N as mr, A as tr } from "./TournamentDetails-DIGjTSwQ.js";
|
|
2
|
+
function yr(ie, $) {
|
|
3
|
+
nr(ie, $);
|
|
4
|
+
}
|
|
5
|
+
function br(ie) {
|
|
6
|
+
or.set(ie);
|
|
7
|
+
}
|
|
8
|
+
const ar = {
|
|
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: "Puanlar",
|
|
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: "Currently there are no players enrolled in this tournament",
|
|
33
|
+
joinButton: "Join",
|
|
34
|
+
previousButton: "Previous",
|
|
35
|
+
nextButton: "Next"
|
|
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, E = w.XMLHttpRequest, ae = w.XDomainRequest, J = w.ActiveXObject, K = w.EventSource, F = w.document, Ge = w.Promise, O = w.fetch, fe = w.Response, Q = w.TextDecoder, xe = w.TextEncoder, Y = 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)), E == null && J != null && (E = 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
|
+
}), Y == 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
|
+
}, Y = 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 Q().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
|
+
(Q == null || xe == null || !pe()) && (Q = 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 E.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 E.prototype) || !("sendAsBinary" in E.prototype) && !("mozAnon" in E.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
|
+
}, E != null && E.HEADERS_RECEIVED == null && (E.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 === E.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 Y(), d = t.signal, u = new Q();
|
|
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, Z = 0, ee = 1, ce = 2, Re = -1, re = 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), _e(s);
|
|
347
|
+
}, _e = 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, Ke(this, e, n);
|
|
358
|
+
}
|
|
359
|
+
function Je() {
|
|
360
|
+
return E != null && "withCredentials" in E.prototype || ae == null ? new E() : new ae();
|
|
361
|
+
}
|
|
362
|
+
var Xe = O != null && fe != null && "body" in fe.prototype;
|
|
363
|
+
function Ke(e, n, s) {
|
|
364
|
+
n = String(n);
|
|
365
|
+
var a = !!s.withCredentials, v = s.lastEventIdQueryParameterName || "lastEventId", l = _e(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() : Je()), x = h != null && typeof h != "string" ? new h() : b == null ? new Me() : new Ie(), p = void 0, m = 0, S = Pe, X = "", _ = "", y = "", k = "", j = re, te = 0, G = 0, ne = function(T, P, H, M) {
|
|
366
|
+
if (S === Z)
|
|
367
|
+
if (T === 200 && H != null && Te.test(H)) {
|
|
368
|
+
S = ee, d = Date.now(), t = l, e.readyState = ee;
|
|
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
|
+
}, Ee = function(T) {
|
|
386
|
+
if (S === ee) {
|
|
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 ? k : "") + T.slice(0, P + 1);
|
|
392
|
+
k = (P === -1 ? k : "") + 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 (j === Re && M === 10)
|
|
396
|
+
j = re;
|
|
397
|
+
else if (j === Re && (j = re), M === 13 || M === 10) {
|
|
398
|
+
if (j !== re) {
|
|
399
|
+
j === we && (G = C + 1);
|
|
400
|
+
var oe = D.slice(te, G - 1), se = D.slice(G + (G < C && D.charCodeAt(G) === 32 ? 1 : 0), C);
|
|
401
|
+
oe === "data" ? (X += `
|
|
402
|
+
`, X += se) : oe === "id" ? _ = 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 (j === re) {
|
|
407
|
+
if (X !== "") {
|
|
408
|
+
i = _, y === "" && (y = "message");
|
|
409
|
+
var ke = new ye(y, {
|
|
410
|
+
data: X.slice(1),
|
|
411
|
+
lastEventId: _
|
|
412
|
+
});
|
|
413
|
+
if (e.dispatchEvent(ke), y === "open" ? ve(e, e.onopen, ke) : y === "message" ? ve(e, e.onmessage, ke) : y === "error" && ve(e, e.onerror, ke), S === ce)
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
X = "", y = "";
|
|
417
|
+
}
|
|
418
|
+
j = M === 13 ? Re : re;
|
|
419
|
+
} else
|
|
420
|
+
j === re && (te = C, j = we), j === we ? M === 58 && (G = C + 1, j = Se) : j === Se && (j = Ue);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}, Le = function(T) {
|
|
424
|
+
if (S === ee || S === Z) {
|
|
425
|
+
S = Pe, m !== 0 && (le(m), m = 0), m = V(function() {
|
|
426
|
+
Ne();
|
|
427
|
+
}, t), t = _e(Math.min(l * 16, t * 2)), e.readyState = Z;
|
|
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 === Z ? "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 = Z, X = "", y = "", _ = i, k = "", te = 0, G = 0, j = re;
|
|
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, ke) {
|
|
452
|
+
return ke === 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, Ee, Le, P, M, D);
|
|
463
|
+
} catch (se) {
|
|
464
|
+
throw Qe(), se;
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
e.url = n, e.readyState = Z, e.withCredentials = a, e.headers = o, e._close = Qe, Ne();
|
|
468
|
+
}
|
|
469
|
+
B.prototype = Object.create(me.prototype), B.prototype.CONNECTING = Z, B.prototype.OPEN = ee, B.prototype.CLOSED = ce, B.prototype.close = function() {
|
|
470
|
+
this._close();
|
|
471
|
+
}, B.CONNECTING = Z, B.OPEN = ee, B.CLOSED = ce, B.prototype.withCredentials = void 0;
|
|
472
|
+
var qe = K;
|
|
473
|
+
E != null && (K == null || !("withCredentials" in K.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 = K, e.EventSource = qe;
|
|
480
|
+
});
|
|
481
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : sr : globalThis);
|
|
482
|
+
})(er, er.exports);
|
|
483
|
+
var wr = er.exports, _r = W('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span>', 1), jr = 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>'), Er = W('<tr class="SkeletonRow svelte-75jgrh"><td colspan="4" class="SkeletonShimmer svelte-75jgrh"><div class="svelte-75jgrh"></div></td></tr>'), kr = 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('<span class="PaginationButton Elipsis svelte-75jgrh">...</span>'), Tr = W("<button> </button>"), Cr = 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>'), Ar = 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>'), 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:80px;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #333232);overflow:hidden;position:relative;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:40px;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;}
|
|
509
|
+
}`
|
|
510
|
+
};
|
|
511
|
+
function Dr(ie, $) {
|
|
512
|
+
ir($, !0), lr(ie, Nr);
|
|
513
|
+
const w = () => ur(gr, "$_", V), [V, le] = hr(), E = De($, "endpoint"), ae = De($, "language", 7, "en"), J = De($, "session"), K = De($, "tournamentid"), F = De($, "platform");
|
|
514
|
+
Object.keys(ar).forEach((r) => {
|
|
515
|
+
yr(r, ar[r]);
|
|
516
|
+
});
|
|
517
|
+
const Ge = () => {
|
|
518
|
+
br(ae());
|
|
519
|
+
};
|
|
520
|
+
dr(() => {
|
|
521
|
+
Ge();
|
|
522
|
+
});
|
|
523
|
+
let O = null, fe = he(void 0), Q = he(!1), xe = he(!1), Y = 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(Q, !0);
|
|
528
|
+
const r = new URL(`${E()}/v1/tournaments/${K()}/leaderboard`), i = new Headers();
|
|
529
|
+
J() && i.append("X-SessionId", J()), r.searchParams.append("language", ae()), 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(Q, !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(`${E()}/v1/tournaments/${K()}/leaderboard/updates`);
|
|
538
|
+
r.searchParams.append("HeartBeat", "false"), r.searchParams.append("language", ae()), 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(`${E()}/v1/tournaments/leaderboard/player`), i = new Headers();
|
|
544
|
+
r.searchParams.append("language", ae()), 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) === K();
|
|
549
|
+
});
|
|
550
|
+
q(Y, 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
|
+
cr(() => (U(), Ie(), ge(), () => {
|
|
578
|
+
O == null || O.close(), O = null;
|
|
579
|
+
}));
|
|
580
|
+
var Z = {
|
|
581
|
+
get endpoint() {
|
|
582
|
+
return E();
|
|
583
|
+
},
|
|
584
|
+
set endpoint(r) {
|
|
585
|
+
E(r), Fe();
|
|
586
|
+
},
|
|
587
|
+
get language() {
|
|
588
|
+
return ae();
|
|
589
|
+
},
|
|
590
|
+
set language(r = "en") {
|
|
591
|
+
ae(r), Fe();
|
|
592
|
+
},
|
|
593
|
+
get session() {
|
|
594
|
+
return J();
|
|
595
|
+
},
|
|
596
|
+
set session(r) {
|
|
597
|
+
J(r), Fe();
|
|
598
|
+
},
|
|
599
|
+
get tournamentid() {
|
|
600
|
+
return K();
|
|
601
|
+
},
|
|
602
|
+
set tournamentid(r) {
|
|
603
|
+
K(r), Fe();
|
|
604
|
+
},
|
|
605
|
+
get platform() {
|
|
606
|
+
return F();
|
|
607
|
+
},
|
|
608
|
+
set platform(r) {
|
|
609
|
+
F(r), Fe();
|
|
610
|
+
}
|
|
611
|
+
}, ee = Lr(), ce = g(ee);
|
|
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 = (_) => {
|
|
623
|
+
var y = _r(), k = Oe(y), j = g(k);
|
|
624
|
+
f(k);
|
|
625
|
+
var te = A(k, 2), G = g(te, !0);
|
|
626
|
+
f(te);
|
|
627
|
+
var ne = A(te, 2), Ee = g(ne, !0);
|
|
628
|
+
f(ne), ue(() => {
|
|
629
|
+
var Le;
|
|
630
|
+
R(j, `${(Le = c(Y).rank) != null ? Le : ""}.`), R(G, c(Y).score), R(Ee, c(Y).prizeName || "-");
|
|
631
|
+
}), L(_, y);
|
|
632
|
+
}, X = (_) => {
|
|
633
|
+
var y = jr(), k = g(y, !0);
|
|
634
|
+
f(y), ue((j) => R(k, j), [() => w()("notEnrolledRank")]), L(_, y);
|
|
635
|
+
};
|
|
636
|
+
je(m, (_) => {
|
|
637
|
+
c(Y) ? _(S) : _(X, !1);
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
f(p), f(i), ue(
|
|
641
|
+
(_, y, k) => {
|
|
642
|
+
R(u, _), R(h, y), R(x, k);
|
|
643
|
+
},
|
|
644
|
+
[
|
|
645
|
+
() => w()("myRanking"),
|
|
646
|
+
() => w()("points"),
|
|
647
|
+
() => w()("prize")
|
|
648
|
+
]
|
|
649
|
+
), L(r, i);
|
|
650
|
+
}, re = (r) => {
|
|
651
|
+
var i = Sr();
|
|
652
|
+
L(r, i);
|
|
653
|
+
};
|
|
654
|
+
je(ce, (r) => {
|
|
655
|
+
c(xe) ? r(re, !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 _e = A(Ce), ve = g(_e, !0);
|
|
663
|
+
f(_e);
|
|
664
|
+
var B = A(_e), Je = g(B, !0);
|
|
665
|
+
f(B), f(Ue), f(Se);
|
|
666
|
+
var Xe = A(Se), Ke = 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 = Er();
|
|
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 = kr(), S = g(m), X = g(S);
|
|
681
|
+
f(S);
|
|
682
|
+
var _ = A(S), y = g(_, !0);
|
|
683
|
+
f(_);
|
|
684
|
+
var k = A(_), j = g(k, !0);
|
|
685
|
+
f(k);
|
|
686
|
+
var te = A(k), G = g(te, !0);
|
|
687
|
+
f(te), f(m), ue(
|
|
688
|
+
(ne) => {
|
|
689
|
+
var Ee;
|
|
690
|
+
tr(m, 1, ne, "svelte-75jgrh"), R(X, `${(Ee = c(p).rank) != null ? Ee : ""}.`), R(y, c(p).shortName || "-"), R(j, c(p).score || "-"), R(G, c(p).prizeName || "-");
|
|
691
|
+
},
|
|
692
|
+
[
|
|
693
|
+
() => {
|
|
694
|
+
var ne;
|
|
695
|
+
return mr(Pe(c(p).rank, c(p).rank === ((ne = c(Y)) == 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
|
+
je(
|
|
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
|
+
je(Ke, (r) => {
|
|
716
|
+
c(Q) ? 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 = Cr(), t = g(i);
|
|
724
|
+
t.__click = Me;
|
|
725
|
+
var d = g(t, !0);
|
|
726
|
+
f(t);
|
|
727
|
+
var u = A(t, 2);
|
|
728
|
+
Ze(u, 21, () => c(de), rr, (b, x) => {
|
|
729
|
+
var p = We(), m = Oe(p);
|
|
730
|
+
{
|
|
731
|
+
var S = (_) => {
|
|
732
|
+
var y = Rr();
|
|
733
|
+
L(_, y);
|
|
734
|
+
}, X = (_) => {
|
|
735
|
+
var y = Tr();
|
|
736
|
+
let k;
|
|
737
|
+
y.__click = () => me(c(x));
|
|
738
|
+
var j = g(y, !0);
|
|
739
|
+
f(y), ue(() => {
|
|
740
|
+
k = tr(y, 1, "PaginationButton Number svelte-75jgrh", null, k, { Active: c(x) === c(ye) }), R(j, c(x));
|
|
741
|
+
}), L(_, y);
|
|
742
|
+
};
|
|
743
|
+
je(m, (_) => {
|
|
744
|
+
typeof c(x) != "number" ? _(S) : _(X, !1);
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
L(b, p);
|
|
748
|
+
}), f(u);
|
|
749
|
+
var o = A(u, 2);
|
|
750
|
+
o.__click = He;
|
|
751
|
+
var h = g(o, !0);
|
|
752
|
+
f(o), f(i), ue(
|
|
753
|
+
(b, x) => {
|
|
754
|
+
var p, m;
|
|
755
|
+
t.disabled = !((p = c(pe)) != null && p.previous), R(d, b), o.disabled = !((m = c(pe)) != null && m.next), R(h, x);
|
|
756
|
+
},
|
|
757
|
+
[() => w()("previousButton"), () => w()("nextButton")]
|
|
758
|
+
), L(r, i);
|
|
759
|
+
};
|
|
760
|
+
je(n, (r) => {
|
|
761
|
+
!c(Q) && c(N) > c(I) && r(s);
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
var a = A(n, 2);
|
|
765
|
+
{
|
|
766
|
+
var v = (r) => {
|
|
767
|
+
var i = Ar();
|
|
768
|
+
L(r, i);
|
|
769
|
+
};
|
|
770
|
+
je(a, (r) => {
|
|
771
|
+
c(Q) && r(v);
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
f(ee), ue(
|
|
775
|
+
(r, i, t, d) => {
|
|
776
|
+
R(Ve, r), R(Ae, i), R(ve, t), R(Je, d);
|
|
777
|
+
},
|
|
778
|
+
[
|
|
779
|
+
() => w()("rank"),
|
|
780
|
+
() => w()("user"),
|
|
781
|
+
() => w()("points"),
|
|
782
|
+
() => w()("prize")
|
|
783
|
+
]
|
|
784
|
+
), L(ie, ee);
|
|
785
|
+
var l = vr(Z);
|
|
786
|
+
return le(), l;
|
|
787
|
+
}
|
|
788
|
+
fr(["click"]);
|
|
789
|
+
customElements.define("tournament-leaderboard", pr(
|
|
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
|
+
};
|