@everymatrix/tournament-details-page 0.0.7 → 0.0.8

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.
Files changed (26) hide show
  1. package/components/{TournamentDetails-qcyLTtSv.js → TournamentDetails-CKMkVYxd.js} +1976 -1943
  2. package/components/{TournamentDetails-DoBMS_9T.js → TournamentDetails-H6pHb_yG.js} +1608 -1575
  3. package/components/TournamentDetails-nG7lN2NT.cjs +7 -0
  4. package/components/TournamentDetailsPage-B5bbvugX.js +1107 -0
  5. package/components/TournamentDetailsPage-CjBmguAV.js +1082 -0
  6. package/components/TournamentDetailsPage-DrDTbkUX.cjs +59 -0
  7. package/components/TournamentGames-CATtl7ab.js +377 -0
  8. package/components/TournamentGames-CXKhYSVz.js +405 -0
  9. package/components/TournamentGames-Dz1Ddedp.cjs +27 -0
  10. package/components/TournamentLeaderboard-Bdrmjyzv.js +823 -0
  11. package/components/TournamentLeaderboard-Cvo-K1Xv.js +839 -0
  12. package/components/TournamentLeaderboard-xrrrpKix.cjs +31 -0
  13. package/es2015/tournament-details-page.cjs +1 -1
  14. package/es2015/tournament-details-page.js +1 -1
  15. package/esnext/tournament-details-page.js +1 -1
  16. package/package.json +1 -1
  17. package/components/TournamentDetails-C-zS8XGk.cjs +0 -7
  18. package/components/TournamentDetailsPage-C2wcS4rg.js +0 -987
  19. package/components/TournamentDetailsPage-CQFv3xok.js +0 -1010
  20. package/components/TournamentDetailsPage-CR3ti0az.cjs +0 -66
  21. package/components/TournamentGames-KOJ004rg.js +0 -387
  22. package/components/TournamentGames-xrJB7h-M.js +0 -359
  23. package/components/TournamentGames-zikPbhES.cjs +0 -27
  24. package/components/TournamentLeaderboard-BjBItfy9.js +0 -788
  25. package/components/TournamentLeaderboard-D9naoaD9.cjs +0 -30
  26. package/components/TournamentLeaderboard-Dc8xv6be.js +0 -804
@@ -0,0 +1,839 @@
1
+ import { a as st, $ as it, N as lt, n as dt, e as ct, p as Ae, f as vt, u as ut, o as ht, h as $, i as ge, q as i, s as ie, r as f, t as B, B as le, j as O, k as ft, l as pt, M as Ye, x as V, m as Le, J as Me, A as ke, K as Ze, y as gt, G as N, L as tt, v as yt, w as mt, z as bt, E as u, O as wt, P as _t, D as rt } from "./TournamentDetails-CKMkVYxd.js";
2
+ function at(de, Q) {
3
+ st(de, Q);
4
+ }
5
+ function nt(de) {
6
+ it.set(de);
7
+ }
8
+ const ot = {
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 et = { exports: {} };
39
+ /** @license
40
+ * eventsource.js
41
+ * Available under MIT License (MIT)
42
+ * https://github.com/Yaffle/EventSource/
43
+ */
44
+ (function(de, Q) {
45
+ (function(_) {
46
+ var Z = _.setTimeout, ce = _.clearTimeout, T = _.XMLHttpRequest, ee = _.XDomainRequest, te = _.ActiveXObject, re = _.EventSource, z = _.document, Pe = _.Promise, Re = _.fetch, Ue = _.Response, q = _.TextDecoder, ye = _.TextEncoder, me = _.AbortController;
47
+ if (typeof window != "undefined" && typeof z != "undefined" && !("readyState" in z) && z.body == null && (z.readyState = "loading", window.addEventListener("load", function(e) {
48
+ z.readyState = "complete";
49
+ }, !1)), T == null && te != null && (T = function() {
50
+ return new te("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
+ }), me == null) {
58
+ var Ne = Re;
59
+ Re = function(e, n) {
60
+ var s = n.signal;
61
+ return Ne(e, { headers: n.headers, credentials: n.credentials, cache: n.cache }).then(function(a) {
62
+ var d = a.body.getReader();
63
+ return s._reader = d, s._aborted && s._reader.cancel(), {
64
+ status: a.status,
65
+ statusText: a.statusText,
66
+ headers: a.headers,
67
+ body: {
68
+ getReader: function() {
69
+ return d;
70
+ }
71
+ }
72
+ };
73
+ });
74
+ }, me = 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 ae() {
84
+ this.bitsNeeded = 0, this.codePoint = 0;
85
+ }
86
+ ae.prototype.decode = function(e) {
87
+ function n(g, t, r) {
88
+ if (r === 1)
89
+ return g >= 128 >> t && g << t <= 2047;
90
+ if (r === 2)
91
+ return g >= 2048 >> t && g << t <= 55295 || g >= 57344 >> t && g << t <= 65535;
92
+ if (r === 3)
93
+ return g >= 65536 >> t && g << t <= 1114111;
94
+ throw new Error();
95
+ }
96
+ function s(g, t) {
97
+ if (g === 6 * 1)
98
+ return t >> 6 > 15 ? 3 : t > 31 ? 2 : 1;
99
+ if (g === 6 * 2)
100
+ return t > 15 ? 3 : 2;
101
+ if (g === 6 * 3)
102
+ return 3;
103
+ throw new Error();
104
+ }
105
+ for (var a = 65533, d = "", l = this.bitsNeeded, c = this.codePoint, x = 0; x < e.length; x += 1) {
106
+ var v = e[x];
107
+ l !== 0 && (v < 128 || v > 191 || !n(c << 6 | v & 63, l - 6, s(l, c))) && (l = 0, c = a, d += String.fromCharCode(c)), l === 0 ? (v >= 0 && v <= 127 ? (l = 0, c = v) : v >= 192 && v <= 223 ? (l = 6 * 1, c = v & 31) : v >= 224 && v <= 239 ? (l = 6 * 2, c = v & 15) : v >= 240 && v <= 247 ? (l = 6 * 3, c = v & 7) : (l = 0, c = a), l !== 0 && !n(c, l, s(l, c)) && (l = 0, c = a)) : (l -= 6, c = c << 6 | v & 63), l === 0 && (c <= 65535 ? d += String.fromCharCode(c) : (d += String.fromCharCode(55296 + (c - 65535 - 1 >> 10)), d += String.fromCharCode(56320 + (c - 65535 - 1 & 1023))));
108
+ }
109
+ return this.bitsNeeded = l, this.codePoint = c, d;
110
+ };
111
+ var De = function() {
112
+ try {
113
+ return new q().decode(new ye().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 || ye == null || !De()) && (q = ae);
120
+ var j = function() {
121
+ };
122
+ function D(e) {
123
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = j, this.onload = j, this.onerror = j, this.onreadystatechange = j, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = j;
124
+ }
125
+ D.prototype.open = function(e, n) {
126
+ this._abort(!0);
127
+ var s = this, a = this._xhr, d = 1, l = 0;
128
+ this._abort = function(r) {
129
+ s._sendTimeout !== 0 && (ce(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, a.onload = j, a.onerror = j, a.onabort = j, a.onprogress = j, a.onreadystatechange = j, a.abort(), l !== 0 && (ce(l), l = 0), r || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), d = 0;
130
+ };
131
+ var c = function() {
132
+ if (d === 1) {
133
+ var r = 0, o = "", y = void 0;
134
+ if ("contentType" in a)
135
+ r = 200, o = "OK", y = a.contentType;
136
+ else
137
+ try {
138
+ r = a.status, o = a.statusText, y = a.getResponseHeader("Content-Type");
139
+ } catch (S) {
140
+ r = 0, o = "", y = void 0;
141
+ }
142
+ r !== 0 && (d = 2, s.readyState = 2, s.status = r, s.statusText = o, s._contentType = y, s.onreadystatechange());
143
+ }
144
+ }, x = function() {
145
+ if (c(), d === 2 || d === 3) {
146
+ d = 3;
147
+ var r = "";
148
+ try {
149
+ r = a.responseText;
150
+ } catch (o) {
151
+ }
152
+ s.readyState = 3, s.responseText = r, s.onprogress();
153
+ }
154
+ }, v = function(r, o) {
155
+ if ((o == null || o.preventDefault == null) && (o = {
156
+ preventDefault: j
157
+ }), x(), d === 1 || d === 2 || d === 3) {
158
+ if (d = 4, l !== 0 && (ce(l), l = 0), s.readyState = 4, r === "load")
159
+ s.onload(o);
160
+ else if (r === "error")
161
+ s.onerror(o);
162
+ else if (r === "abort")
163
+ s.onabort(o);
164
+ else
165
+ throw new TypeError();
166
+ s.onreadystatechange();
167
+ }
168
+ }, g = function(r) {
169
+ a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && v(a.responseText === "" ? "error" : "load", r) : a.readyState === 3 ? "onprogress" in a || x() : a.readyState === 2 && c());
170
+ }, t = function() {
171
+ l = Z(function() {
172
+ t();
173
+ }, 500), a.readyState === 3 && x();
174
+ };
175
+ "onload" in a && (a.onload = function(r) {
176
+ v("load", r);
177
+ }), "onerror" in a && (a.onerror = function(r) {
178
+ v("error", r);
179
+ }), "onabort" in a && (a.onabort = function(r) {
180
+ v("abort", r);
181
+ }), "onprogress" in a && (a.onprogress = x), "onreadystatechange" in a && (a.onreadystatechange = function(r) {
182
+ g(r);
183
+ }), ("contentType" in a || !("ontimeout" in T.prototype)) && (n += (n.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, n, !0), "readyState" in a && (l = Z(function() {
184
+ t();
185
+ }, 0));
186
+ }, D.prototype.abort = function() {
187
+ this._abort(!1);
188
+ }, D.prototype.getResponseHeader = function(e) {
189
+ return this._contentType;
190
+ }, D.prototype.setRequestHeader = function(e, n) {
191
+ var s = this._xhr;
192
+ "setRequestHeader" in s && s.setRequestHeader(e, n);
193
+ }, D.prototype.getAllResponseHeaders = function() {
194
+ return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
195
+ }, D.prototype.send = function() {
196
+ if ((!("ontimeout" in T.prototype) || !("sendAsBinary" in T.prototype) && !("mozAnon" in T.prototype)) && z != null && z.readyState != null && z.readyState !== "complete") {
197
+ var e = this;
198
+ e._sendTimeout = Z(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 ve(e) {
217
+ for (var n = /* @__PURE__ */ Object.create(null), s = e.split(`\r
218
+ `), a = 0; a < s.length; a += 1) {
219
+ var d = s[a], l = d.split(": "), c = l.shift(), x = l.join(": ");
220
+ n[be(c)] = x;
221
+ }
222
+ this._map = n;
223
+ }
224
+ ve.prototype.get = function(e) {
225
+ return this._map[be(e)];
226
+ }, T != null && T.HEADERS_RECEIVED == null && (T.HEADERS_RECEIVED = 2);
227
+ function we() {
228
+ }
229
+ we.prototype.open = function(e, n, s, a, d, l, c) {
230
+ e.open("GET", d);
231
+ var x = 0;
232
+ e.onprogress = function() {
233
+ var g = e.responseText, t = g.slice(x);
234
+ x += t.length, s(t);
235
+ }, e.onerror = function(g) {
236
+ g.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 === T.HEADERS_RECEIVED) {
243
+ var g = e.status, t = e.statusText, r = e.getResponseHeader("Content-Type"), o = e.getAllResponseHeaders();
244
+ n(g, t, r, new ve(o));
245
+ }
246
+ }, e.withCredentials = l;
247
+ for (var v in c)
248
+ Object.prototype.hasOwnProperty.call(c, v) && e.setRequestHeader(v, c[v]);
249
+ return e.send(), e;
250
+ };
251
+ function ze(e) {
252
+ this._headers = e;
253
+ }
254
+ ze.prototype.get = function(e) {
255
+ return this._headers.get(e);
256
+ };
257
+ function _e() {
258
+ }
259
+ _e.prototype.open = function(e, n, s, a, d, l, c) {
260
+ var x = null, v = new me(), g = v.signal, t = new q();
261
+ return Re(d, {
262
+ headers: c,
263
+ credentials: l ? "include" : "same-origin",
264
+ signal: g,
265
+ cache: "no-store"
266
+ }).then(function(r) {
267
+ return x = r.body.getReader(), n(r.status, r.statusText, r.headers.get("Content-Type"), new ze(r.headers)), new Pe(function(o, y) {
268
+ var S = function() {
269
+ x.read().then(function(p) {
270
+ if (p.done)
271
+ o(void 0);
272
+ else {
273
+ var h = t.decode(p.value, { stream: !0 });
274
+ s(h), S();
275
+ }
276
+ }).catch(function(p) {
277
+ y(p);
278
+ });
279
+ };
280
+ S();
281
+ });
282
+ }).catch(function(r) {
283
+ if (r.name !== "AbortError")
284
+ return r;
285
+ }).then(function(r) {
286
+ a(r);
287
+ }), {
288
+ abort: function() {
289
+ x != null && x.cancel(), v.abort();
290
+ }
291
+ };
292
+ };
293
+ function je() {
294
+ this._listeners = /* @__PURE__ */ Object.create(null);
295
+ }
296
+ function qe(e) {
297
+ Z(function() {
298
+ throw e;
299
+ }, 0);
300
+ }
301
+ je.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 d = n[a];
307
+ try {
308
+ typeof d.handleEvent == "function" ? d.handleEvent(e) : d.call(this, e);
309
+ } catch (l) {
310
+ qe(l);
311
+ }
312
+ }
313
+ }, je.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 d = !1, l = 0; l < a.length; l += 1)
318
+ a[l] === n && (d = !0);
319
+ d || a.push(n);
320
+ }, je.prototype.removeEventListener = function(e, n) {
321
+ e = String(e);
322
+ var s = this._listeners, a = s[e];
323
+ if (a != null) {
324
+ for (var d = [], l = 0; l < a.length; l += 1)
325
+ a[l] !== n && d.push(a[l]);
326
+ d.length === 0 ? delete s[e] : s[e] = d;
327
+ }
328
+ };
329
+ function ue(e) {
330
+ this.type = e, this.target = void 0;
331
+ }
332
+ function We(e, n) {
333
+ ue.call(this, e), this.data = n.data, this.lastEventId = n.lastEventId;
334
+ }
335
+ We.prototype = Object.create(ue.prototype);
336
+ function Xe(e, n) {
337
+ ue.call(this, e), this.status = n.status, this.statusText = n.statusText, this.headers = n.headers;
338
+ }
339
+ Xe.prototype = Object.create(ue.prototype);
340
+ function Ge(e, n) {
341
+ ue.call(this, e), this.error = n.error;
342
+ }
343
+ Ge.prototype = Object.create(ue.prototype);
344
+ var he = -1, K = 0, fe = 1, xe = 2, Oe = -1, J = 0, Ee = 1, Fe = 2, $e = 3, Ke = /^text\/event\-stream(;.*)?$/i, Ve = 1e3, Be = 18e6, Te = function(e, n) {
345
+ var s = e == null ? n : parseInt(e, 10);
346
+ return s !== s && (s = n), Se(s);
347
+ }, Se = function(e) {
348
+ return Math.min(Math.max(e, Ve), Be);
349
+ }, pe = function(e, n, s) {
350
+ try {
351
+ typeof n == "function" && n.call(e, s);
352
+ } catch (a) {
353
+ qe(a);
354
+ }
355
+ };
356
+ function M(e, n) {
357
+ je.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, Qe(this, e, n);
358
+ }
359
+ function Je() {
360
+ return T != null && "withCredentials" in T.prototype || ee == null ? new T() : new ee();
361
+ }
362
+ var Ie = Re != null && Ue != null && "body" in Ue.prototype;
363
+ function Qe(e, n, s) {
364
+ n = String(n);
365
+ var a = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", l = Se(1e3), c = Te(s.heartbeatTimeout, 45e3), x = "", v = l, g = !1, t = 0, r = s.headers || {}, o = s.Transport, y = Ie && o == null ? void 0 : new D(o != null ? new o() : Je()), S = o != null && typeof o != "string" ? new o() : y == null ? new _e() : new we(), p = void 0, h = 0, m = he, P = "", C = "", A = "", W = "", R = J, k = 0, E = 0, I = function(b, w, H, G) {
366
+ if (m === K)
367
+ if (b === 200 && H != null && Ke.test(H)) {
368
+ m = fe, g = Date.now(), v = l, e.readyState = fe;
369
+ var U = new Xe("open", {
370
+ status: b,
371
+ statusText: w,
372
+ headers: G
373
+ });
374
+ e.dispatchEvent(U), pe(e, e.onopen, U);
375
+ } else {
376
+ var F = "";
377
+ b !== 200 ? (w && (w = w.replace(/\s+/g, " ")), F = "EventSource's response has a status " + b + " " + w + " that is not 200. Aborting the connection.") : F = "EventSource's response has a Content-Type specifying an unsupported type: " + (H == null ? "-" : H.replace(/\s+/g, " ")) + ". Aborting the connection.", X();
378
+ var U = new Xe("error", {
379
+ status: b,
380
+ statusText: w,
381
+ headers: G
382
+ });
383
+ e.dispatchEvent(U), pe(e, e.onerror, U), console.error(F);
384
+ }
385
+ }, ne = function(b) {
386
+ if (m === fe) {
387
+ for (var w = -1, H = 0; H < b.length; H += 1) {
388
+ var G = b.charCodeAt(H);
389
+ (G === 10 || G === 13) && (w = H);
390
+ }
391
+ var U = (w !== -1 ? W : "") + b.slice(0, w + 1);
392
+ W = (w === -1 ? W : "") + b.slice(w + 1), b !== "" && (g = Date.now(), t += b.length);
393
+ for (var F = 0; F < U.length; F += 1) {
394
+ var G = U.charCodeAt(F);
395
+ if (R === Oe && G === 10)
396
+ R = J;
397
+ else if (R === Oe && (R = J), G === 13 || G === 10) {
398
+ if (R !== J) {
399
+ R === Ee && (E = F + 1);
400
+ var oe = U.slice(k, E - 1), se = U.slice(E + (E < F && U.charCodeAt(E) === 32 ? 1 : 0), F);
401
+ oe === "data" ? (P += `
402
+ `, P += se) : oe === "id" ? C = se : oe === "event" ? A = se : oe === "retry" ? (l = Te(se, l), v = l) : oe === "heartbeatTimeout" && (c = Te(se, c), h !== 0 && (ce(h), h = Z(function() {
403
+ L();
404
+ }, c)));
405
+ }
406
+ if (R === J) {
407
+ if (P !== "") {
408
+ x = C, A === "" && (A = "message");
409
+ var Ce = new We(A, {
410
+ data: P.slice(1),
411
+ lastEventId: C
412
+ });
413
+ if (e.dispatchEvent(Ce), A === "open" ? pe(e, e.onopen, Ce) : A === "message" ? pe(e, e.onmessage, Ce) : A === "error" && pe(e, e.onerror, Ce), m === xe)
414
+ return;
415
+ }
416
+ P = "", A = "";
417
+ }
418
+ R = G === 13 ? Oe : J;
419
+ } else
420
+ R === J && (k = F, R = Ee), R === Ee ? G === 58 && (E = F + 1, R = Fe) : R === Fe && (R = $e);
421
+ }
422
+ }
423
+ }, Y = function(b) {
424
+ if (m === fe || m === K) {
425
+ m = he, h !== 0 && (ce(h), h = 0), h = Z(function() {
426
+ L();
427
+ }, v), v = Se(Math.min(l * 16, v * 2)), e.readyState = K;
428
+ var w = new Ge("error", { error: b });
429
+ e.dispatchEvent(w), pe(e, e.onerror, w), b != null && console.error(b);
430
+ }
431
+ }, X = function() {
432
+ m = xe, p != null && (p.abort(), p = void 0), h !== 0 && (ce(h), h = 0), e.readyState = xe;
433
+ }, L = function() {
434
+ if (h = 0, m !== he) {
435
+ if (!g && p != null)
436
+ Y(new Error("No activity within " + c + " milliseconds. " + (m === K ? "No response received." : t + " chars received.") + " Reconnecting.")), p != null && (p.abort(), p = void 0);
437
+ else {
438
+ var b = Math.max((g || Date.now()) + c - Date.now(), 1);
439
+ g = !1, h = Z(function() {
440
+ L();
441
+ }, b);
442
+ }
443
+ return;
444
+ }
445
+ g = !1, t = 0, h = Z(function() {
446
+ L();
447
+ }, c), m = K, P = "", A = "", C = x, W = "", k = 0, E = 0, R = J;
448
+ var w = n;
449
+ if (n.slice(0, 5) !== "data:" && n.slice(0, 5) !== "blob:" && x !== "") {
450
+ var H = n.indexOf("?");
451
+ w = H === -1 ? n : n.slice(0, H + 1) + n.slice(H + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(se, Ce) {
452
+ return Ce === d ? "" : se;
453
+ }), w += (n.indexOf("?") === -1 ? "?" : "&") + d + "=" + encodeURIComponent(x);
454
+ }
455
+ var G = e.withCredentials, U = {};
456
+ U.Accept = "text/event-stream";
457
+ var F = e.headers;
458
+ if (F != null)
459
+ for (var oe in F)
460
+ Object.prototype.hasOwnProperty.call(F, oe) && (U[oe] = F[oe]);
461
+ try {
462
+ p = S.open(y, I, ne, Y, w, G, U);
463
+ } catch (se) {
464
+ throw X(), se;
465
+ }
466
+ };
467
+ e.url = n, e.readyState = K, e.withCredentials = a, e.headers = r, e._close = X, L();
468
+ }
469
+ M.prototype = Object.create(je.prototype), M.prototype.CONNECTING = K, M.prototype.OPEN = fe, M.prototype.CLOSED = xe, M.prototype.close = function() {
470
+ this._close();
471
+ }, M.CONNECTING = K, M.OPEN = fe, M.CLOSED = xe, M.prototype.withCredentials = void 0;
472
+ var He = re;
473
+ T != null && (re == null || !("withCredentials" in re.prototype)) && (He = M), function(e) {
474
+ {
475
+ var n = e(Q);
476
+ n !== void 0 && (de.exports = n);
477
+ }
478
+ }(function(e) {
479
+ e.EventSourcePolyfill = M, e.NativeEventSource = re, e.EventSource = He;
480
+ });
481
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : lt : globalThis);
482
+ })(et, et.exports);
483
+ var jt = et.exports, xt = $('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span>', 1), Et = $('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh">—</span> <span class="svelte-75jgrh">—</span>', 1), St = $('<p class="svelte-75jgrh"> </p>'), kt = $('<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>'), Pt = $('<div class="PlayerRankSkeletonWrapper svelte-75jgrh"><div class="PlayerRankSkeleton svelte-75jgrh"></div> <div class="PlayerRankSkeleton svelte-75jgrh"></div></div>'), Rt = $('<tr class="SkeletonRow svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"></td></tr>'), Tt = $('<tr><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td></tr>'), Ct = $('<tr class="svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"><div class="EmptyLeaderboard svelte-75jgrh"><p class="svelte-75jgrh"> </p></div></td></tr>'), At = $('<div class="PaginationSkeleton svelte-75jgrh"><div class="PaginationSkeletonButton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationSkeletonButton svelte-75jgrh"></div></div>'), Lt = $('<span class="PaginationButton Elipsis svelte-75jgrh">...</span>'), Nt = $("<button> </button>"), Dt = $('<div class="PaginationWrapper svelte-75jgrh"><button class="PaginationButton svelte-75jgrh"> </button> <div class="PageNumberWrapper svelte-75jgrh"></div> <button class="PaginationButton svelte-75jgrh"> </button></div>'), Ot = $('<div class="LeaderboardWrapper svelte-75jgrh"><div class="RankingWrapper 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> <!> <!></div>');
484
+ const Ft = {
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;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-75jgrh {display:flex;flex-direction:column;gap:5px;min-height:60px;.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);opacity:70%;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;background-color:var(--emw-color-skeleton, #535353);
489
+ animation: svelte-75jgrh-pulse 1s infinite;}.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-skeleton, #535353);border-radius:6px;
490
+ animation: svelte-75jgrh-pulse 1s infinite;}}.PaginationSkeleton.svelte-75jgrh {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
491
+ animation: svelte-75jgrh-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
492
+ animation: svelte-75jgrh-pulse 1s infinite;}}
493
+
494
+ @keyframes svelte-75jgrh-pulse {
495
+ 0% {
496
+ opacity: 0;
497
+ }
498
+ 50% {
499
+ opacity: 1;
500
+ }
501
+ 100% {
502
+ opacity: 0;
503
+ }
504
+ }
505
+
506
+ @media (min-width: 1000px) {.ShowPlayersButton.svelte-75jgrh {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
507
+ }
508
+
509
+ @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;}}
510
+ }`
511
+ };
512
+ function Bt(de, Q) {
513
+ dt(Q, !0), ct(de, Ft);
514
+ const _ = () => gt(bt, "$_", Z), [Z, ce] = pt(), T = Ae(Q, "endpoint"), ee = Ae(Q, "language", 7, "en"), te = Ae(Q, "session"), re = Ae(Q, "tournamentid"), z = Ae(Q, "platform"), Pe = Ae(Q, "translationurl"), Re = () => {
515
+ let t = new URL(Pe());
516
+ fetch(t.href).then((r) => r.json()).then((r) => {
517
+ Object.keys(r).forEach((o) => {
518
+ at(o, r[o]);
519
+ });
520
+ }).catch((r) => {
521
+ console.log(r);
522
+ });
523
+ };
524
+ Object.keys(ot).forEach((t) => {
525
+ at(t, ot[t]);
526
+ }), nt(ee());
527
+ const Ue = () => {
528
+ nt(ee());
529
+ };
530
+ vt(() => {
531
+ Pe() && Re();
532
+ }), ut(() => {
533
+ Ue();
534
+ });
535
+ let q = null, ye = ie(void 0), me = ie(!1), Ne = ie(!1), ae = ie(void 0), De = ie(void 0), j = ie(0), D = ie(10), be = ie(!0), ve = ie(void 0);
536
+ const we = () => {
537
+ if (K.has(i(he)))
538
+ return;
539
+ V(me, !0);
540
+ const t = new URL(`${T()}/v1/tournaments/${re()}/leaderboard`), r = new Headers();
541
+ te() && r.append("X-SessionId", te()), t.searchParams.append("language", ee()), t.searchParams.append("platform", z()), t.searchParams.append("pagination", `offset=${i(j)},limit=${i(D)}`), fetch(t).then((o) => o.json()).then((o) => {
542
+ V(ye, o == null ? void 0 : o.items, !0), V(ve, o == null ? void 0 : o.total, !0), K.set(i(he), i(ye)), i(be) || V(be, !0);
543
+ }).catch((o) => console.log(o)).finally(() => V(me, !1));
544
+ }, ze = (t) => {
545
+ const r = JSON.parse(t.data);
546
+ r && r.messageType === "LeaderBoardUpdate" && V(ye, r == null ? void 0 : r.items, !0);
547
+ }, _e = () => {
548
+ q && (q.close(), q = null);
549
+ const t = new URL(`${T()}/v1/tournaments/${re()}/leaderboard/updates`);
550
+ t.searchParams.append("HeartBeat", "false"), t.searchParams.append("language", ee()), t.searchParams.append("filter", "includeUnqualifiedPlayer=true"), t.searchParams.append("pagination", `offset=${i(j)},limit=${i(D)}`), t.searchParams.append("platform", z()), q = new jt.EventSourcePolyfill(t, {
551
+ headers: { accept: "text/event-stream", "X-SessionId": te() }
552
+ }), q.onmessage = ze;
553
+ }, je = () => {
554
+ V(Ne, !0);
555
+ const t = new URL(`${T()}/v1/tournaments/leaderboard/player`), r = new Headers();
556
+ t.searchParams.append("language", ee()), t.searchParams.append("platform", z()), t.searchParams.append("filter", "includeUnqualifiedPlayer=false"), te() && r.append("X-SessionId", te()), fetch(t, { method: "GET", headers: r }).then((y) => y.json()).then((y) => {
557
+ var p;
558
+ const S = (p = y == null ? void 0 : y.items) == null ? void 0 : p.find((h) => {
559
+ var m;
560
+ return ((m = h == null ? void 0 : h.tournament) == null ? void 0 : m.id) === re();
561
+ });
562
+ V(ae, S == null ? void 0 : S.leaderBoard, !0), V(De, S == null ? void 0 : S.endRank, !0);
563
+ }).catch((y) => {
564
+ console.log(y);
565
+ }).finally(() => V(Ne, !1));
566
+ }, qe = () => {
567
+ i(j) < i(ve) && (V(j, i(j) + i(D)), we(), _e());
568
+ }, ue = () => {
569
+ i(j) !== 0 && (V(j, i(j) - i(D)), we(), _e());
570
+ }, We = (t) => {
571
+ V(j, (t - 1) * i(D)), we(), _e();
572
+ }, Ge = Ye(() => {
573
+ const t = Math.ceil(i(ve) / i(D)), r = Math.floor(i(j) / i(D)) + 1;
574
+ if (t <= 5)
575
+ return Array.from({ length: t }, (y, S) => S + 1);
576
+ const o = [];
577
+ return o.push(1), r <= 3 ? (o.push(2, 3), o.push("..."), o.push(t)) : r >= t - 2 ? (o.push("..."), o.push(t - 2, t - 1, t)) : (o.push("..."), o.push(r - 1, r, r + 1), o.push("..."), o.push(t)), o;
578
+ }), he = Ye(() => Math.floor(i(j) / i(D)) + 1);
579
+ let K = /* @__PURE__ */ new Map(), fe = Ye(() => {
580
+ var t;
581
+ return (t = K.get(i(he))) != null ? t : [];
582
+ });
583
+ const xe = (t, r) => {
584
+ const o = [];
585
+ return r && o.push("PlayerRow"), t === 1 && o.push("Gold"), t === 2 && o.push("Silver"), t === 3 && o.push("Bronze"), o.join(" ");
586
+ };
587
+ ht(() => (we(), je(), _e(), () => {
588
+ q == null || q.close(), q = null;
589
+ }));
590
+ var Oe = {
591
+ get endpoint() {
592
+ return T();
593
+ },
594
+ set endpoint(t) {
595
+ T(t), Le();
596
+ },
597
+ get language() {
598
+ return ee();
599
+ },
600
+ set language(t = "en") {
601
+ ee(t), Le();
602
+ },
603
+ get session() {
604
+ return te();
605
+ },
606
+ set session(t) {
607
+ te(t), Le();
608
+ },
609
+ get tournamentid() {
610
+ return re();
611
+ },
612
+ set tournamentid(t) {
613
+ re(t), Le();
614
+ },
615
+ get platform() {
616
+ return z();
617
+ },
618
+ set platform(t) {
619
+ z(t), Le();
620
+ },
621
+ get translationurl() {
622
+ return Pe();
623
+ },
624
+ set translationurl(t) {
625
+ Pe(t), Le();
626
+ }
627
+ }, J = Ot(), Ee = f(J), Fe = f(Ee);
628
+ {
629
+ var $e = (t) => {
630
+ var r = kt(), o = f(r), y = f(o), S = f(y, !0);
631
+ u(y);
632
+ var p = B(y, 2), h = f(p, !0);
633
+ u(p);
634
+ var m = B(p, 2), P = f(m, !0);
635
+ u(m), u(o);
636
+ var C = B(o, 2), A = f(C);
637
+ {
638
+ var W = (k) => {
639
+ var E = xt(), I = ke(E), ne = f(I);
640
+ u(I);
641
+ var Y = B(I, 2), X = f(Y, !0);
642
+ u(Y);
643
+ var L = B(Y, 2), b = f(L, !0);
644
+ u(L), le(() => {
645
+ var w;
646
+ N(ne, `${(w = i(ae).rank) != null ? w : ""}.`), N(X, i(ae).score), N(b, i(ae).prizeName || "—");
647
+ }), O(k, E);
648
+ }, R = (k) => {
649
+ var E = Me(), I = ke(E);
650
+ {
651
+ var ne = (X) => {
652
+ var L = Et(), b = ke(L), w = f(b);
653
+ u(b), wt(4), le(() => {
654
+ var H;
655
+ return N(w, `${(H = i(De)) != null ? H : ""}.`);
656
+ }), O(X, L);
657
+ }, Y = (X) => {
658
+ var L = St(), b = f(L, !0);
659
+ u(L), le((w) => N(b, w), [() => _()("notEnrolledRank")]), O(X, L);
660
+ };
661
+ ge(
662
+ I,
663
+ (X) => {
664
+ i(De) ? X(ne) : X(Y, !1);
665
+ },
666
+ !0
667
+ );
668
+ }
669
+ O(k, E);
670
+ };
671
+ ge(A, (k) => {
672
+ i(ae) ? k(W) : k(R, !1);
673
+ });
674
+ }
675
+ u(C), u(r), le(
676
+ (k, E, I) => {
677
+ N(S, k), N(h, E), N(P, I);
678
+ },
679
+ [
680
+ () => _()("myRanking"),
681
+ () => _()("points"),
682
+ () => _()("prize")
683
+ ]
684
+ ), O(t, r);
685
+ }, Ke = (t) => {
686
+ var r = Pt();
687
+ O(t, r);
688
+ };
689
+ ge(Fe, (t) => {
690
+ i(Ne) ? t(Ke, !1) : t($e);
691
+ });
692
+ }
693
+ var Ve = B(Fe, 2), Be = f(Ve), Te = f(Be), Se = f(Te), pe = f(Se, !0);
694
+ u(Se);
695
+ var M = B(Se), Je = f(M, !0);
696
+ u(M);
697
+ var Ie = B(M), Qe = f(Ie, !0);
698
+ u(Ie);
699
+ var He = B(Ie), e = f(He, !0);
700
+ u(He), u(Te), u(Be);
701
+ var n = B(Be), s = f(n);
702
+ {
703
+ var a = (t) => {
704
+ var r = Me(), o = ke(r);
705
+ Ze(o, 17, () => Array(i(D)), tt, (y, S, p, h) => {
706
+ var m = Rt();
707
+ O(y, m);
708
+ }), O(t, r);
709
+ }, d = (t) => {
710
+ var r = Me(), o = ke(r);
711
+ {
712
+ var y = (p) => {
713
+ var h = Me(), m = ke(h);
714
+ Ze(m, 17, () => i(fe), (P) => P.rank, (P, C) => {
715
+ var A = Tt(), W = f(A), R = f(W);
716
+ u(W);
717
+ var k = B(W), E = f(k, !0);
718
+ u(k);
719
+ var I = B(k), ne = f(I, !0);
720
+ u(I);
721
+ var Y = B(I), X = f(Y, !0);
722
+ u(Y), u(A), le(
723
+ (L) => {
724
+ var b;
725
+ rt(A, 1, L, "svelte-75jgrh"), N(R, `${(b = i(C).rank) != null ? b : ""}.`), N(E, i(C).shortName || "—"), N(ne, i(C).score || "—"), N(X, i(C).prizeName || "—");
726
+ },
727
+ [
728
+ () => {
729
+ var L;
730
+ return _t(xe(i(C).rank, i(C).rank === ((L = i(ae)) == null ? void 0 : L.rank)));
731
+ }
732
+ ]
733
+ ), O(P, A);
734
+ }), O(p, h);
735
+ }, S = (p) => {
736
+ var h = Ct(), m = f(h), P = f(m), C = f(P), A = f(C, !0);
737
+ u(C), u(P), u(m), u(h), le((W) => N(A, W), [() => _()("emptyLeaderboard")]), O(p, h);
738
+ };
739
+ ge(
740
+ o,
741
+ (p) => {
742
+ var h;
743
+ ((h = i(ye)) == null ? void 0 : h.length) > 0 ? p(y) : p(S, !1);
744
+ },
745
+ !0
746
+ );
747
+ }
748
+ O(t, r);
749
+ };
750
+ ge(s, (t) => {
751
+ i(me) ? t(a) : t(d, !1);
752
+ });
753
+ }
754
+ u(n), u(Ve), u(Ee);
755
+ var l = B(Ee, 2);
756
+ {
757
+ var c = (t) => {
758
+ var r = At();
759
+ O(t, r);
760
+ };
761
+ ge(l, (t) => {
762
+ i(be) || t(c);
763
+ });
764
+ }
765
+ var x = B(l, 2);
766
+ {
767
+ var v = (t) => {
768
+ var r = Dt(), o = f(r);
769
+ o.__click = ue;
770
+ var y = f(o, !0);
771
+ u(o);
772
+ var S = B(o, 2);
773
+ Ze(S, 21, () => i(Ge), tt, (m, P) => {
774
+ var C = Me(), A = ke(C);
775
+ {
776
+ var W = (k) => {
777
+ var E = Lt();
778
+ O(k, E);
779
+ }, R = (k) => {
780
+ var E = Nt();
781
+ let I;
782
+ E.__click = () => We(i(P));
783
+ var ne = f(E, !0);
784
+ u(E), le(() => {
785
+ I = rt(E, 1, "PaginationButton Number svelte-75jgrh", null, I, { Active: i(P) === i(he) }), N(ne, i(P));
786
+ }), O(k, E);
787
+ };
788
+ ge(A, (k) => {
789
+ typeof i(P) != "number" ? k(W) : k(R, !1);
790
+ });
791
+ }
792
+ O(m, C);
793
+ }), u(S);
794
+ var p = B(S, 2);
795
+ p.__click = qe;
796
+ var h = f(p, !0);
797
+ u(p), u(r), le(
798
+ (m, P) => {
799
+ o.disabled = i(j) === 0, N(y, m), p.disabled = i(j) >= i(ve) - i(D), N(h, P);
800
+ },
801
+ [() => _()("previousButton"), () => _()("nextButton")]
802
+ ), O(t, r);
803
+ };
804
+ ge(x, (t) => {
805
+ i(be) && i(ve) > i(D) && t(v);
806
+ });
807
+ }
808
+ u(J), le(
809
+ (t, r, o, y) => {
810
+ N(pe, t), N(Je, r), N(Qe, o), N(e, y);
811
+ },
812
+ [
813
+ () => _()("rank"),
814
+ () => _()("user"),
815
+ () => _()("points"),
816
+ () => _()("prize")
817
+ ]
818
+ ), O(de, J);
819
+ var g = ft(Oe);
820
+ return ce(), g;
821
+ }
822
+ yt(["click"]);
823
+ customElements.define("tournament-leaderboard", mt(
824
+ Bt,
825
+ {
826
+ endpoint: {},
827
+ language: {},
828
+ session: {},
829
+ tournamentid: {},
830
+ platform: {},
831
+ translationurl: {}
832
+ },
833
+ [],
834
+ [],
835
+ !1
836
+ ));
837
+ export {
838
+ Bt as default
839
+ };