@everymatrix/tournament-details-page 0.2.1 → 0.2.2
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/ChartIcon-BOJYO_mg.cjs +1 -0
- package/components/ChartIcon-BnuWrPCu.js +32 -0
- package/components/ChartIcon-DpI8g8MS.js +32 -0
- package/components/ChartIcon-RZGJve9X.cjs +1 -0
- package/components/CoinStackIcon-D7VDNLPL.js +32 -0
- package/components/CoinStackIcon-D9m5o_fi.cjs +1 -0
- package/components/CoinStackIcon-DFr0r7ql.cjs +1 -0
- package/components/CoinStackIcon-JPra1r-T.js +32 -0
- package/components/DocumentsIcon-BGDIx1Br.cjs +1 -0
- package/components/DocumentsIcon-BMHGy7l5.cjs +1 -0
- package/components/DocumentsIcon-CbpU2Gyn.js +32 -0
- package/components/DocumentsIcon-DFbkU_nq.js +32 -0
- package/components/FootballIcon-BXfYxMAS.js +32 -0
- package/components/FootballIcon-Ba3k9QwJ.cjs +1 -0
- package/components/FootballIcon-Dh004HAn.cjs +1 -0
- package/components/FootballIcon-t-RiDqHO.js +32 -0
- package/components/PeopleIcon-2b-6fziq.js +32 -0
- package/components/PeopleIcon-BL0lywpf.js +32 -0
- package/components/PeopleIcon-Bi5uKQ9t.cjs +1 -0
- package/components/PeopleIcon-Dij57H9Y.cjs +1 -0
- package/components/RankArrowIcon-BLPI8Ihl.js +32 -0
- package/components/RankArrowIcon-C1FqD2OV.cjs +1 -0
- package/components/RankArrowIcon-D9MUkVQC.cjs +1 -0
- package/components/RankArrowIcon-DxqeIh-2.js +32 -0
- package/components/SlotMachineIcon-Cuv-0tTj.cjs +1 -0
- package/components/SlotMachineIcon-DbLnS5Dy.js +32 -0
- package/components/SlotMachineIcon-_w58r-b5.cjs +1 -0
- package/components/SlotMachineIcon-rm59GZar.js +32 -0
- package/components/{StatusBadge-BnPuCJnO.js → StatusBadge-94g1_G1j.js} +840 -811
- package/components/StatusBadge-Bdc22cMY.cjs +8 -0
- package/components/{StatusBadge-CV5WC0Fx.cjs → StatusBadge-BsjzjNer.cjs} +5 -5
- package/components/{StatusBadge-DKawANSc.js → StatusBadge-DuF7NK69.js} +789 -760
- package/components/{TournamentDetailsPage-LzqcZox2.js → TournamentDetailsPage-AkoBgtU-.js} +164 -165
- package/components/{TournamentDetailsPage-DQ5X0Dqc.js → TournamentDetailsPage-BknZ3XLG.js} +146 -147
- package/components/{TournamentDetailsPage-D4ZDEGSF.cjs → TournamentDetailsPage-DKQGDSr1.cjs} +3 -3
- package/components/{TournamentDetailsPage-Cy3rGC6M.cjs → TournamentDetailsPage-DbL7sBZM.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-CpEie2Gb.cjs → TournamentDetailsSkeleton-BTCHrmxN.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-CL0BOfFu.js → TournamentDetailsSkeleton-CmKNNW5d.js} +2 -2
- package/components/{TournamentDetailsSkeleton-CqfwFamx.js → TournamentDetailsSkeleton-D0L8P1tb.js} +2 -2
- package/components/{TournamentDetailsSkeleton-u1WnYDq6.cjs → TournamentDetailsSkeleton-Dtd2H__T.cjs} +1 -1
- package/components/TournamentGames-BGr8V4Dd.js +306 -0
- package/components/TournamentGames-BhXlS-fA.js +284 -0
- package/components/TournamentGames-Ch4ODv3u.cjs +19 -0
- package/components/TournamentGames-D8h0gDfK.cjs +19 -0
- package/components/{TournamentImage-BxaewAcW.js → TournamentImage-BFh29Z7_.js} +1 -1
- package/components/{TournamentImage-BeCXYKda.cjs → TournamentImage-CxfcEUy6.cjs} +1 -1
- package/components/{TournamentImage-Dx0Km_cw.cjs → TournamentImage-D26UWHyP.cjs} +1 -1
- package/components/{TournamentImage-Cp5BEQ0s.js → TournamentImage-Hm-i2BLZ.js} +1 -1
- package/components/TournamentLeaderboard-1i-FoUCN.cjs +38 -0
- package/components/TournamentLeaderboard-B6IMbAZ_.cjs +38 -0
- package/components/TournamentLeaderboard-BJ0mlW5c.js +1384 -0
- package/components/TournamentLeaderboard-BM3HZ0jQ.js +1441 -0
- package/components/TournamentRules-Bu4jfxhb.cjs +6 -0
- package/components/TournamentRules-DwcmzDOu.js +138 -0
- package/components/TournamentRules-Dxup5GZ2.js +143 -0
- package/components/TournamentRules-iglqjP1P.cjs +6 -0
- package/components/TournamentSummary-B7I6gN81.js +145 -0
- package/components/TournamentSummary-C24QhbUw.cjs +3 -0
- package/components/TournamentSummary-HgOjtkW2.cjs +3 -0
- package/components/TournamentSummary-ozfHjUkk.js +150 -0
- package/components/{TournamentTabs-FzkOjNA3.js → TournamentTabs-B5Hc7DnJ.js} +2 -2
- package/components/{TournamentTabs-EGrABVKQ.cjs → TournamentTabs-BVEr7PbQ.cjs} +1 -1
- package/components/{TournamentTabs-DpLpOYtB.js → TournamentTabs-DHZPrDgf.js} +2 -2
- package/components/{TournamentTabs-DEQtwaH4.cjs → TournamentTabs-ryceiGS3.cjs} +1 -1
- package/components/TrophyIcon-DJyC3k-2.js +32 -0
- package/components/TrophyIcon-DbEHhyTe.js +32 -0
- package/components/TrophyIcon-DddCZpjC.cjs +1 -0
- package/components/TrophyIcon-eLIudkPn.cjs +1 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/StatusBadge-BVcNxptf.cjs +0 -8
- package/components/TournamentGames-B6UkeuiX.js +0 -821
- package/components/TournamentGames-CYxz1Jcl.cjs +0 -34
- package/components/TournamentGames-DO01jBJs.js +0 -799
- package/components/TournamentGames-Dt7xzVBn.cjs +0 -34
- package/components/TournamentLeaderboard-BufvnLFX.js +0 -1393
- package/components/TournamentLeaderboard-D1mX3sal.cjs +0 -38
- package/components/TournamentLeaderboard-D9OPwUvy.cjs +0 -38
- package/components/TournamentLeaderboard-Dqbb_r0i.js +0 -1451
- package/components/TournamentRules-BbxvSZdU.cjs +0 -6
- package/components/TournamentRules-Bsxb9Asj.js +0 -144
- package/components/TournamentRules-DX1CVsV7.cjs +0 -6
- package/components/TournamentRules-SECANCVS.js +0 -149
- package/components/TournamentSummary-Ardxi8yJ.js +0 -159
- package/components/TournamentSummary-BGk055-K.cjs +0 -3
- package/components/TournamentSummary-CizBbtzd.cjs +0 -3
- package/components/TournamentSummary-Dnj0Cnzu.js +0 -154
|
@@ -1,1451 +0,0 @@
|
|
|
1
|
-
var xt = Object.defineProperty, Et = Object.defineProperties;
|
|
2
|
-
var At = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var lt = Object.getOwnPropertySymbols;
|
|
4
|
-
var Tt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ct = (u, n, r) => n in u ? xt(u, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : u[n] = r, nt = (u, n) => {
|
|
6
|
-
for (var r in n || (n = {}))
|
|
7
|
-
Tt.call(n, r) && ct(u, r, n[r]);
|
|
8
|
-
if (lt)
|
|
9
|
-
for (var r of lt(n))
|
|
10
|
-
Mt.call(n, r) && ct(u, r, n[r]);
|
|
11
|
-
return u;
|
|
12
|
-
}, ft = (u, n) => Et(u, At(n));
|
|
13
|
-
var ze = (u, n, r) => new Promise((y, E) => {
|
|
14
|
-
var w = ($) => {
|
|
15
|
-
try {
|
|
16
|
-
Y(r.next($));
|
|
17
|
-
} catch (z) {
|
|
18
|
-
E(z);
|
|
19
|
-
}
|
|
20
|
-
}, C = ($) => {
|
|
21
|
-
try {
|
|
22
|
-
Y(r.throw($));
|
|
23
|
-
} catch (z) {
|
|
24
|
-
E(z);
|
|
25
|
-
}
|
|
26
|
-
}, Y = ($) => $.done ? y($.value) : Promise.resolve($.value).then(w, C);
|
|
27
|
-
Y((r = r.apply(u, n)).next());
|
|
28
|
-
});
|
|
29
|
-
import { z as dt, A as bt, B as Dt, c as $t, g as Ot, a as Rt, p as Be, C as Ct, D as ht, E as Lt, F as Ze, q as Te, G as kt, j as i, H as rt, m as ae, I as Pt, i as Qe, b as _e, d as zt, o as Me, f as Re, v as Ue, J as It, K as Yt, h as Ge, s as Oe, r as He, L as mt, M as pt, N as Ie, t as We, O as Ye, P as Je, Q as at, k as vt, l as Ke, R as Nt, T as Ht, U as Ft, $ as Bt, y as gt, V as it, W as yt, X as Ut } from "./StatusBadge-BnPuCJnO.js";
|
|
30
|
-
import { T as Xt } from "./translations-DPzojb4V.js";
|
|
31
|
-
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
32
|
-
}, globalThis.customElements = { define() {
|
|
33
|
-
}, get() {
|
|
34
|
-
}, whenDefined() {
|
|
35
|
-
} });
|
|
36
|
-
const jt = (u, n) => {
|
|
37
|
-
window.postMessage(
|
|
38
|
-
ft(nt({}, n), {
|
|
39
|
-
type: u
|
|
40
|
-
}),
|
|
41
|
-
window.location.href
|
|
42
|
-
);
|
|
43
|
-
}, ut = (u, n) => {
|
|
44
|
-
jt(`Tournaments:${u}`, n);
|
|
45
|
-
}, _n = (u, n) => {
|
|
46
|
-
let r = !1;
|
|
47
|
-
const y = () => {
|
|
48
|
-
r || (r = !0, u());
|
|
49
|
-
}, E = () => {
|
|
50
|
-
r && (r = !1, n());
|
|
51
|
-
}, w = (C) => {
|
|
52
|
-
C.persisted && y();
|
|
53
|
-
};
|
|
54
|
-
return y(), window.addEventListener("pagehide", E), window.addEventListener("pageshow", w), () => {
|
|
55
|
-
window.removeEventListener("pagehide", E), window.removeEventListener("pageshow", w), E();
|
|
56
|
-
};
|
|
57
|
-
}, Sn = (u, n, r = {}) => {
|
|
58
|
-
ut("DetailPageOpen", nt({
|
|
59
|
-
isOpen: u,
|
|
60
|
-
tournamentId: n.id,
|
|
61
|
-
tournamentName: n.nameOrTitle
|
|
62
|
-
}, u ? { tabName: r.tabName } : { optedIn: !!r.optedIn }));
|
|
63
|
-
}, xn = (u, n) => {
|
|
64
|
-
ut("DetailTabClicked", {
|
|
65
|
-
tournamentId: u == null ? void 0 : u.id,
|
|
66
|
-
tournamentName: u == null ? void 0 : u.nameOrTitle,
|
|
67
|
-
tabName: n
|
|
68
|
-
});
|
|
69
|
-
}, En = (u, n) => {
|
|
70
|
-
ut("PlayGame", {
|
|
71
|
-
launchUrl: u.launchUrl,
|
|
72
|
-
id: u.gameId,
|
|
73
|
-
thumbnail: u.thumbnail,
|
|
74
|
-
name: u.name,
|
|
75
|
-
tournamentId: n
|
|
76
|
-
});
|
|
77
|
-
}, wt = (u) => {
|
|
78
|
-
const n = new Headers();
|
|
79
|
-
return u && n.append("X-SessionId", u), n;
|
|
80
|
-
}, An = (u) => ze(void 0, null, function* () {
|
|
81
|
-
var E;
|
|
82
|
-
const n = new URL(`${u.endpoint}/v1/tournaments/${u.tournamentid}`);
|
|
83
|
-
u.filterById && n.searchParams.append("filter", `id=${u.tournamentid}`), n.searchParams.append("language", u.language), n.searchParams.append("expand", "games"), u.gamesLimit !== void 0 && n.searchParams.append("pagination", `games(limit=${u.gamesLimit},offset=${(E = u.gamesOffset) != null ? E : 0})`), n.searchParams.append("platform", u.platform);
|
|
84
|
-
const y = yield (yield fetch(n, { method: "GET", headers: wt(u.session) })).json();
|
|
85
|
-
return y == null ? void 0 : y.item;
|
|
86
|
-
});
|
|
87
|
-
var st = { exports: {} };
|
|
88
|
-
/** @license
|
|
89
|
-
* eventsource.js
|
|
90
|
-
* Available under MIT License (MIT)
|
|
91
|
-
* https://github.com/Yaffle/EventSource/
|
|
92
|
-
*/
|
|
93
|
-
(function(u, n) {
|
|
94
|
-
(function(r) {
|
|
95
|
-
var y = r.setTimeout, E = r.clearTimeout, w = r.XMLHttpRequest, C = r.XDomainRequest, Y = r.ActiveXObject, $ = r.EventSource, z = r.document, L = r.Promise, j = r.fetch, be = r.Response, ue = r.TextDecoder, B = r.TextEncoder, ie = r.AbortController;
|
|
96
|
-
if (typeof window != "undefined" && typeof z != "undefined" && !("readyState" in z) && z.body == null && (z.readyState = "loading", window.addEventListener("load", function(e) {
|
|
97
|
-
z.readyState = "complete";
|
|
98
|
-
}, !1)), w == null && Y != null && (w = function() {
|
|
99
|
-
return new Y("Microsoft.XMLHTTP");
|
|
100
|
-
}), Object.create == null && (Object.create = function(e) {
|
|
101
|
-
function c() {
|
|
102
|
-
}
|
|
103
|
-
return c.prototype = e, new c();
|
|
104
|
-
}), Date.now || (Date.now = function() {
|
|
105
|
-
return (/* @__PURE__ */ new Date()).getTime();
|
|
106
|
-
}), ie == null) {
|
|
107
|
-
var _ = j;
|
|
108
|
-
j = function(e, c) {
|
|
109
|
-
var v = c.signal;
|
|
110
|
-
return _(e, { headers: c.headers, credentials: c.credentials, cache: c.cache }).then(function(l) {
|
|
111
|
-
var M = l.body.getReader();
|
|
112
|
-
return v._reader = M, v._aborted && v._reader.cancel(), {
|
|
113
|
-
status: l.status,
|
|
114
|
-
statusText: l.statusText,
|
|
115
|
-
headers: l.headers,
|
|
116
|
-
body: {
|
|
117
|
-
getReader: function() {
|
|
118
|
-
return M;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
});
|
|
123
|
-
}, ie = function() {
|
|
124
|
-
this.signal = {
|
|
125
|
-
_reader: null,
|
|
126
|
-
_aborted: !1
|
|
127
|
-
}, this.abort = function() {
|
|
128
|
-
this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
function R() {
|
|
133
|
-
this.bitsNeeded = 0, this.codePoint = 0;
|
|
134
|
-
}
|
|
135
|
-
R.prototype.decode = function(e) {
|
|
136
|
-
function c(f, m, p) {
|
|
137
|
-
if (p === 1)
|
|
138
|
-
return f >= 128 >> m && f << m <= 2047;
|
|
139
|
-
if (p === 2)
|
|
140
|
-
return f >= 2048 >> m && f << m <= 55295 || f >= 57344 >> m && f << m <= 65535;
|
|
141
|
-
if (p === 3)
|
|
142
|
-
return f >= 65536 >> m && f << m <= 1114111;
|
|
143
|
-
throw new Error();
|
|
144
|
-
}
|
|
145
|
-
function v(f, m) {
|
|
146
|
-
if (f === 6 * 1)
|
|
147
|
-
return m >> 6 > 15 ? 3 : m > 31 ? 2 : 1;
|
|
148
|
-
if (f === 6 * 2)
|
|
149
|
-
return m > 15 ? 3 : 2;
|
|
150
|
-
if (f === 6 * 3)
|
|
151
|
-
return 3;
|
|
152
|
-
throw new Error();
|
|
153
|
-
}
|
|
154
|
-
for (var l = 65533, M = "", x = this.bitsNeeded, P = this.codePoint, t = 0; t < e.length; t += 1) {
|
|
155
|
-
var o = e[t];
|
|
156
|
-
x !== 0 && (o < 128 || o > 191 || !c(P << 6 | o & 63, x - 6, v(x, P))) && (x = 0, P = l, M += String.fromCharCode(P)), x === 0 ? (o >= 0 && o <= 127 ? (x = 0, P = o) : o >= 192 && o <= 223 ? (x = 6 * 1, P = o & 31) : o >= 224 && o <= 239 ? (x = 6 * 2, P = o & 15) : o >= 240 && o <= 247 ? (x = 6 * 3, P = o & 7) : (x = 0, P = l), x !== 0 && !c(P, x, v(x, P)) && (x = 0, P = l)) : (x -= 6, P = P << 6 | o & 63), x === 0 && (P <= 65535 ? M += String.fromCharCode(P) : (M += String.fromCharCode(55296 + (P - 65535 - 1 >> 10)), M += String.fromCharCode(56320 + (P - 65535 - 1 & 1023))));
|
|
157
|
-
}
|
|
158
|
-
return this.bitsNeeded = x, this.codePoint = P, M;
|
|
159
|
-
};
|
|
160
|
-
var N = function() {
|
|
161
|
-
try {
|
|
162
|
-
return new ue().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
163
|
-
} catch (e) {
|
|
164
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
165
|
-
}
|
|
166
|
-
return !1;
|
|
167
|
-
};
|
|
168
|
-
(ue == null || B == null || !N()) && (ue = R);
|
|
169
|
-
var D = function() {
|
|
170
|
-
};
|
|
171
|
-
function U(e) {
|
|
172
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = D, this.onload = D, this.onerror = D, this.onreadystatechange = D, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = D;
|
|
173
|
-
}
|
|
174
|
-
U.prototype.open = function(e, c) {
|
|
175
|
-
this._abort(!0);
|
|
176
|
-
var v = this, l = this._xhr, M = 1, x = 0;
|
|
177
|
-
this._abort = function(p) {
|
|
178
|
-
v._sendTimeout !== 0 && (E(v._sendTimeout), v._sendTimeout = 0), (M === 1 || M === 2 || M === 3) && (M = 4, l.onload = D, l.onerror = D, l.onabort = D, l.onprogress = D, l.onreadystatechange = D, l.abort(), x !== 0 && (E(x), x = 0), p || (v.readyState = 4, v.onabort(null), v.onreadystatechange())), M = 0;
|
|
179
|
-
};
|
|
180
|
-
var P = function() {
|
|
181
|
-
if (M === 1) {
|
|
182
|
-
var p = 0, O = "", K = void 0;
|
|
183
|
-
if ("contentType" in l)
|
|
184
|
-
p = 200, O = "OK", K = l.contentType;
|
|
185
|
-
else
|
|
186
|
-
try {
|
|
187
|
-
p = l.status, O = l.statusText, K = l.getResponseHeader("Content-Type");
|
|
188
|
-
} catch (F) {
|
|
189
|
-
p = 0, O = "", K = void 0;
|
|
190
|
-
}
|
|
191
|
-
p !== 0 && (M = 2, v.readyState = 2, v.status = p, v.statusText = O, v._contentType = K, v.onreadystatechange());
|
|
192
|
-
}
|
|
193
|
-
}, t = function() {
|
|
194
|
-
if (P(), M === 2 || M === 3) {
|
|
195
|
-
M = 3;
|
|
196
|
-
var p = "";
|
|
197
|
-
try {
|
|
198
|
-
p = l.responseText;
|
|
199
|
-
} catch (O) {
|
|
200
|
-
}
|
|
201
|
-
v.readyState = 3, v.responseText = p, v.onprogress();
|
|
202
|
-
}
|
|
203
|
-
}, o = function(p, O) {
|
|
204
|
-
if ((O == null || O.preventDefault == null) && (O = {
|
|
205
|
-
preventDefault: D
|
|
206
|
-
}), t(), M === 1 || M === 2 || M === 3) {
|
|
207
|
-
if (M = 4, x !== 0 && (E(x), x = 0), v.readyState = 4, p === "load")
|
|
208
|
-
v.onload(O);
|
|
209
|
-
else if (p === "error")
|
|
210
|
-
v.onerror(O);
|
|
211
|
-
else if (p === "abort")
|
|
212
|
-
v.onabort(O);
|
|
213
|
-
else
|
|
214
|
-
throw new TypeError();
|
|
215
|
-
v.onreadystatechange();
|
|
216
|
-
}
|
|
217
|
-
}, f = function(p) {
|
|
218
|
-
l != null && (l.readyState === 4 ? (!("onload" in l) || !("onerror" in l) || !("onabort" in l)) && o(l.responseText === "" ? "error" : "load", p) : l.readyState === 3 ? "onprogress" in l || t() : l.readyState === 2 && P());
|
|
219
|
-
}, m = function() {
|
|
220
|
-
x = y(function() {
|
|
221
|
-
m();
|
|
222
|
-
}, 500), l.readyState === 3 && t();
|
|
223
|
-
};
|
|
224
|
-
"onload" in l && (l.onload = function(p) {
|
|
225
|
-
o("load", p);
|
|
226
|
-
}), "onerror" in l && (l.onerror = function(p) {
|
|
227
|
-
o("error", p);
|
|
228
|
-
}), "onabort" in l && (l.onabort = function(p) {
|
|
229
|
-
o("abort", p);
|
|
230
|
-
}), "onprogress" in l && (l.onprogress = t), "onreadystatechange" in l && (l.onreadystatechange = function(p) {
|
|
231
|
-
f(p);
|
|
232
|
-
}), ("contentType" in l || !("ontimeout" in w.prototype)) && (c += (c.indexOf("?") === -1 ? "?" : "&") + "padding=true"), l.open(e, c, !0), "readyState" in l && (x = y(function() {
|
|
233
|
-
m();
|
|
234
|
-
}, 0));
|
|
235
|
-
}, U.prototype.abort = function() {
|
|
236
|
-
this._abort(!1);
|
|
237
|
-
}, U.prototype.getResponseHeader = function(e) {
|
|
238
|
-
return this._contentType;
|
|
239
|
-
}, U.prototype.setRequestHeader = function(e, c) {
|
|
240
|
-
var v = this._xhr;
|
|
241
|
-
"setRequestHeader" in v && v.setRequestHeader(e, c);
|
|
242
|
-
}, U.prototype.getAllResponseHeaders = function() {
|
|
243
|
-
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
244
|
-
}, U.prototype.send = function() {
|
|
245
|
-
if ((!("ontimeout" in w.prototype) || !("sendAsBinary" in w.prototype) && !("mozAnon" in w.prototype)) && z != null && z.readyState != null && z.readyState !== "complete") {
|
|
246
|
-
var e = this;
|
|
247
|
-
e._sendTimeout = y(function() {
|
|
248
|
-
e._sendTimeout = 0, e.send();
|
|
249
|
-
}, 4);
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
var c = this._xhr;
|
|
253
|
-
"withCredentials" in c && (c.withCredentials = this.withCredentials);
|
|
254
|
-
try {
|
|
255
|
-
c.send(void 0);
|
|
256
|
-
} catch (v) {
|
|
257
|
-
throw v;
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
function ee(e) {
|
|
261
|
-
return e.replace(/[A-Z]/g, function(c) {
|
|
262
|
-
return String.fromCharCode(c.charCodeAt(0) + 32);
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function oe(e) {
|
|
266
|
-
for (var c = /* @__PURE__ */ Object.create(null), v = e.split(`\r
|
|
267
|
-
`), l = 0; l < v.length; l += 1) {
|
|
268
|
-
var M = v[l], x = M.split(": "), P = x.shift(), t = x.join(": ");
|
|
269
|
-
c[ee(P)] = t;
|
|
270
|
-
}
|
|
271
|
-
this._map = c;
|
|
272
|
-
}
|
|
273
|
-
oe.prototype.get = function(e) {
|
|
274
|
-
return this._map[ee(e)];
|
|
275
|
-
}, w != null && w.HEADERS_RECEIVED == null && (w.HEADERS_RECEIVED = 2);
|
|
276
|
-
function se() {
|
|
277
|
-
}
|
|
278
|
-
se.prototype.open = function(e, c, v, l, M, x, P) {
|
|
279
|
-
e.open("GET", M);
|
|
280
|
-
var t = 0;
|
|
281
|
-
e.onprogress = function() {
|
|
282
|
-
var f = e.responseText, m = f.slice(t);
|
|
283
|
-
t += m.length, v(m);
|
|
284
|
-
}, e.onerror = function(f) {
|
|
285
|
-
f.preventDefault(), l(new Error("NetworkError"));
|
|
286
|
-
}, e.onload = function() {
|
|
287
|
-
l(null);
|
|
288
|
-
}, e.onabort = function() {
|
|
289
|
-
l(null);
|
|
290
|
-
}, e.onreadystatechange = function() {
|
|
291
|
-
if (e.readyState === w.HEADERS_RECEIVED) {
|
|
292
|
-
var f = e.status, m = e.statusText, p = e.getResponseHeader("Content-Type"), O = e.getAllResponseHeaders();
|
|
293
|
-
c(f, m, p, new oe(O));
|
|
294
|
-
}
|
|
295
|
-
}, e.withCredentials = x;
|
|
296
|
-
for (var o in P)
|
|
297
|
-
Object.prototype.hasOwnProperty.call(P, o) && e.setRequestHeader(o, P[o]);
|
|
298
|
-
return e.send(), e;
|
|
299
|
-
};
|
|
300
|
-
function V(e) {
|
|
301
|
-
this._headers = e;
|
|
302
|
-
}
|
|
303
|
-
V.prototype.get = function(e) {
|
|
304
|
-
return this._headers.get(e);
|
|
305
|
-
};
|
|
306
|
-
function W() {
|
|
307
|
-
}
|
|
308
|
-
W.prototype.open = function(e, c, v, l, M, x, P) {
|
|
309
|
-
var t = null, o = new ie(), f = o.signal, m = new ue();
|
|
310
|
-
return j(M, {
|
|
311
|
-
headers: P,
|
|
312
|
-
credentials: x ? "include" : "same-origin",
|
|
313
|
-
signal: f,
|
|
314
|
-
cache: "no-store"
|
|
315
|
-
}).then(function(p) {
|
|
316
|
-
return t = p.body.getReader(), c(p.status, p.statusText, p.headers.get("Content-Type"), new V(p.headers)), new L(function(O, K) {
|
|
317
|
-
var F = function() {
|
|
318
|
-
t.read().then(function(I) {
|
|
319
|
-
if (I.done)
|
|
320
|
-
O(void 0);
|
|
321
|
-
else {
|
|
322
|
-
var G = m.decode(I.value, { stream: !0 });
|
|
323
|
-
v(G), F();
|
|
324
|
-
}
|
|
325
|
-
}).catch(function(I) {
|
|
326
|
-
K(I);
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
F();
|
|
330
|
-
});
|
|
331
|
-
}).catch(function(p) {
|
|
332
|
-
if (p.name !== "AbortError")
|
|
333
|
-
return p;
|
|
334
|
-
}).then(function(p) {
|
|
335
|
-
l(p);
|
|
336
|
-
}), {
|
|
337
|
-
abort: function() {
|
|
338
|
-
t != null && t.cancel(), o.abort();
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
function k() {
|
|
343
|
-
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
344
|
-
}
|
|
345
|
-
function T(e) {
|
|
346
|
-
y(function() {
|
|
347
|
-
throw e;
|
|
348
|
-
}, 0);
|
|
349
|
-
}
|
|
350
|
-
k.prototype.dispatchEvent = function(e) {
|
|
351
|
-
e.target = this;
|
|
352
|
-
var c = this._listeners[e.type];
|
|
353
|
-
if (c != null)
|
|
354
|
-
for (var v = c.length, l = 0; l < v; l += 1) {
|
|
355
|
-
var M = c[l];
|
|
356
|
-
try {
|
|
357
|
-
typeof M.handleEvent == "function" ? M.handleEvent(e) : M.call(this, e);
|
|
358
|
-
} catch (x) {
|
|
359
|
-
T(x);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}, k.prototype.addEventListener = function(e, c) {
|
|
363
|
-
e = String(e);
|
|
364
|
-
var v = this._listeners, l = v[e];
|
|
365
|
-
l == null && (l = [], v[e] = l);
|
|
366
|
-
for (var M = !1, x = 0; x < l.length; x += 1)
|
|
367
|
-
l[x] === c && (M = !0);
|
|
368
|
-
M || l.push(c);
|
|
369
|
-
}, k.prototype.removeEventListener = function(e, c) {
|
|
370
|
-
e = String(e);
|
|
371
|
-
var v = this._listeners, l = v[e];
|
|
372
|
-
if (l != null) {
|
|
373
|
-
for (var M = [], x = 0; x < l.length; x += 1)
|
|
374
|
-
l[x] !== c && M.push(l[x]);
|
|
375
|
-
M.length === 0 ? delete v[e] : v[e] = M;
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
function Q(e) {
|
|
379
|
-
this.type = e, this.target = void 0;
|
|
380
|
-
}
|
|
381
|
-
function de(e, c) {
|
|
382
|
-
Q.call(this, e), this.data = c.data, this.lastEventId = c.lastEventId;
|
|
383
|
-
}
|
|
384
|
-
de.prototype = Object.create(Q.prototype);
|
|
385
|
-
function g(e, c) {
|
|
386
|
-
Q.call(this, e), this.status = c.status, this.statusText = c.statusText, this.headers = c.headers;
|
|
387
|
-
}
|
|
388
|
-
g.prototype = Object.create(Q.prototype);
|
|
389
|
-
function s(e, c) {
|
|
390
|
-
Q.call(this, e), this.error = c.error;
|
|
391
|
-
}
|
|
392
|
-
s.prototype = Object.create(Q.prototype);
|
|
393
|
-
var a = -1, h = 0, d = 1, b = 2, S = -1, A = 0, H = 1, q = 2, re = 3, le = /^text\/event\-stream(;.*)?$/i, De = 1e3, Se = 18e6, we = function(e, c) {
|
|
394
|
-
var v = e == null ? c : parseInt(e, 10);
|
|
395
|
-
return v !== v && (v = c), ve(v);
|
|
396
|
-
}, ve = function(e) {
|
|
397
|
-
return Math.min(Math.max(e, De), Se);
|
|
398
|
-
}, Z = function(e, c, v) {
|
|
399
|
-
try {
|
|
400
|
-
typeof c == "function" && c.call(e, v);
|
|
401
|
-
} catch (l) {
|
|
402
|
-
T(l);
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
function X(e, c) {
|
|
406
|
-
k.call(this), c = c || {}, 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, Ne(this, e, c);
|
|
407
|
-
}
|
|
408
|
-
function ge() {
|
|
409
|
-
return w != null && "withCredentials" in w.prototype || C == null ? new w() : new C();
|
|
410
|
-
}
|
|
411
|
-
var xe = j != null && be != null && "body" in be.prototype;
|
|
412
|
-
function Ne(e, c, v) {
|
|
413
|
-
c = String(c);
|
|
414
|
-
var l = !!v.withCredentials, M = v.lastEventIdQueryParameterName || "lastEventId", x = ve(1e3), P = we(v.heartbeatTimeout, 45e3), t = "", o = x, f = !1, m = 0, p = v.headers || {}, O = v.Transport, K = xe && O == null ? void 0 : new U(O != null ? new O() : ge()), F = O != null && typeof O != "string" ? new O() : K == null ? new W() : new se(), I = void 0, G = 0, J = a, te = "", ne = "", he = "", Ce = "", me = A, Xe = 0, Le = 0, et = function(fe, ce, Ee, Ae) {
|
|
415
|
-
if (J === h)
|
|
416
|
-
if (fe === 200 && Ee != null && le.test(Ee)) {
|
|
417
|
-
J = d, f = Date.now(), o = x, e.readyState = d;
|
|
418
|
-
var ye = new g("open", {
|
|
419
|
-
status: fe,
|
|
420
|
-
statusText: ce,
|
|
421
|
-
headers: Ae
|
|
422
|
-
});
|
|
423
|
-
e.dispatchEvent(ye), Z(e, e.onopen, ye);
|
|
424
|
-
} else {
|
|
425
|
-
var pe = "";
|
|
426
|
-
fe !== 200 ? (ce && (ce = ce.replace(/\s+/g, " ")), pe = "EventSource's response has a status " + fe + " " + ce + " that is not 200. Aborting the connection.") : pe = "EventSource's response has a Content-Type specifying an unsupported type: " + (Ee == null ? "-" : Ee.replace(/\s+/g, " ")) + ". Aborting the connection.", tt();
|
|
427
|
-
var ye = new g("error", {
|
|
428
|
-
status: fe,
|
|
429
|
-
statusText: ce,
|
|
430
|
-
headers: Ae
|
|
431
|
-
});
|
|
432
|
-
e.dispatchEvent(ye), Z(e, e.onerror, ye), console.error(pe);
|
|
433
|
-
}
|
|
434
|
-
}, Fe = function(fe) {
|
|
435
|
-
if (J === d) {
|
|
436
|
-
for (var ce = -1, Ee = 0; Ee < fe.length; Ee += 1) {
|
|
437
|
-
var Ae = fe.charCodeAt(Ee);
|
|
438
|
-
(Ae === 10 || Ae === 13) && (ce = Ee);
|
|
439
|
-
}
|
|
440
|
-
var ye = (ce !== -1 ? Ce : "") + fe.slice(0, ce + 1);
|
|
441
|
-
Ce = (ce === -1 ? Ce : "") + fe.slice(ce + 1), fe !== "" && (f = Date.now(), m += fe.length);
|
|
442
|
-
for (var pe = 0; pe < ye.length; pe += 1) {
|
|
443
|
-
var Ae = ye.charCodeAt(pe);
|
|
444
|
-
if (me === S && Ae === 10)
|
|
445
|
-
me = A;
|
|
446
|
-
else if (me === S && (me = A), Ae === 13 || Ae === 10) {
|
|
447
|
-
if (me !== A) {
|
|
448
|
-
me === H && (Le = pe + 1);
|
|
449
|
-
var ke = ye.slice(Xe, Le - 1), Pe = ye.slice(Le + (Le < pe && ye.charCodeAt(Le) === 32 ? 1 : 0), pe);
|
|
450
|
-
ke === "data" ? (te += `
|
|
451
|
-
`, te += Pe) : ke === "id" ? ne = Pe : ke === "event" ? he = Pe : ke === "retry" ? (x = we(Pe, x), o = x) : ke === "heartbeatTimeout" && (P = we(Pe, P), G !== 0 && (E(G), G = y(function() {
|
|
452
|
-
Ve();
|
|
453
|
-
}, P)));
|
|
454
|
-
}
|
|
455
|
-
if (me === A) {
|
|
456
|
-
if (te !== "") {
|
|
457
|
-
t = ne, he === "" && (he = "message");
|
|
458
|
-
var qe = new de(he, {
|
|
459
|
-
data: te.slice(1),
|
|
460
|
-
lastEventId: ne
|
|
461
|
-
});
|
|
462
|
-
if (e.dispatchEvent(qe), he === "open" ? Z(e, e.onopen, qe) : he === "message" ? Z(e, e.onmessage, qe) : he === "error" && Z(e, e.onerror, qe), J === b)
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
te = "", he = "";
|
|
466
|
-
}
|
|
467
|
-
me = Ae === 13 ? S : A;
|
|
468
|
-
} else
|
|
469
|
-
me === A && (Xe = pe, me = H), me === H ? Ae === 58 && (Le = pe + 1, me = q) : me === q && (me = re);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}, je = function(fe) {
|
|
473
|
-
if (J === d || J === h) {
|
|
474
|
-
J = a, G !== 0 && (E(G), G = 0), G = y(function() {
|
|
475
|
-
Ve();
|
|
476
|
-
}, o), o = ve(Math.min(x * 16, o * 2)), e.readyState = h;
|
|
477
|
-
var ce = new s("error", { error: fe });
|
|
478
|
-
e.dispatchEvent(ce), Z(e, e.onerror, ce), fe != null && console.error(fe);
|
|
479
|
-
}
|
|
480
|
-
}, tt = function() {
|
|
481
|
-
J = b, I != null && (I.abort(), I = void 0), G !== 0 && (E(G), G = 0), e.readyState = b;
|
|
482
|
-
}, Ve = function() {
|
|
483
|
-
if (G = 0, J !== a) {
|
|
484
|
-
if (!f && I != null)
|
|
485
|
-
je(new Error("No activity within " + P + " milliseconds. " + (J === h ? "No response received." : m + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
|
|
486
|
-
else {
|
|
487
|
-
var fe = Math.max((f || Date.now()) + P - Date.now(), 1);
|
|
488
|
-
f = !1, G = y(function() {
|
|
489
|
-
Ve();
|
|
490
|
-
}, fe);
|
|
491
|
-
}
|
|
492
|
-
return;
|
|
493
|
-
}
|
|
494
|
-
f = !1, m = 0, G = y(function() {
|
|
495
|
-
Ve();
|
|
496
|
-
}, P), J = h, te = "", he = "", ne = t, Ce = "", Xe = 0, Le = 0, me = A;
|
|
497
|
-
var ce = c;
|
|
498
|
-
if (c.slice(0, 5) !== "data:" && c.slice(0, 5) !== "blob:" && t !== "") {
|
|
499
|
-
var Ee = c.indexOf("?");
|
|
500
|
-
ce = Ee === -1 ? c : c.slice(0, Ee + 1) + c.slice(Ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Pe, qe) {
|
|
501
|
-
return qe === M ? "" : Pe;
|
|
502
|
-
}), ce += (c.indexOf("?") === -1 ? "?" : "&") + M + "=" + encodeURIComponent(t);
|
|
503
|
-
}
|
|
504
|
-
var Ae = e.withCredentials, ye = {};
|
|
505
|
-
ye.Accept = "text/event-stream";
|
|
506
|
-
var pe = e.headers;
|
|
507
|
-
if (pe != null)
|
|
508
|
-
for (var ke in pe)
|
|
509
|
-
Object.prototype.hasOwnProperty.call(pe, ke) && (ye[ke] = pe[ke]);
|
|
510
|
-
try {
|
|
511
|
-
I = F.open(K, et, Fe, je, ce, Ae, ye);
|
|
512
|
-
} catch (Pe) {
|
|
513
|
-
throw tt(), Pe;
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
e.url = c, e.readyState = h, e.withCredentials = l, e.headers = p, e._close = tt, Ve();
|
|
517
|
-
}
|
|
518
|
-
X.prototype = Object.create(k.prototype), X.prototype.CONNECTING = h, X.prototype.OPEN = d, X.prototype.CLOSED = b, X.prototype.close = function() {
|
|
519
|
-
this._close();
|
|
520
|
-
}, X.CONNECTING = h, X.OPEN = d, X.CLOSED = b, X.prototype.withCredentials = void 0;
|
|
521
|
-
var $e = $;
|
|
522
|
-
w != null && ($ == null || !("withCredentials" in $.prototype)) && ($e = X), function(e) {
|
|
523
|
-
{
|
|
524
|
-
var c = e(n);
|
|
525
|
-
c !== void 0 && (u.exports = c);
|
|
526
|
-
}
|
|
527
|
-
}(function(e) {
|
|
528
|
-
e.EventSourcePolyfill = X, e.NativeEventSource = $, e.EventSource = $e;
|
|
529
|
-
});
|
|
530
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : dt : globalThis);
|
|
531
|
-
})(st, st.exports);
|
|
532
|
-
var qt = st.exports;
|
|
533
|
-
const Gt = (u) => ze(void 0, null, function* () {
|
|
534
|
-
const n = new URL(`${u.endpoint}/v1/tournaments/${u.tournamentid}/leaderboard`);
|
|
535
|
-
n.searchParams.append("language", u.language), n.searchParams.append("platform", u.platform), n.searchParams.append("pagination", `offset=${u.offset},limit=${u.limit}`);
|
|
536
|
-
const y = yield (yield fetch(n)).json();
|
|
537
|
-
return { items: y == null ? void 0 : y.items, total: y == null ? void 0 : y.total };
|
|
538
|
-
}), Vt = (u) => ze(void 0, null, function* () {
|
|
539
|
-
var w, C, Y, $;
|
|
540
|
-
const n = new URL(`${u.endpoint}/v1/tournaments/leaderboard/player`);
|
|
541
|
-
n.searchParams.append("language", u.language), n.searchParams.append("platform", u.platform), n.searchParams.append("filter", `includeUnqualifiedPlayer=${(w = u.includeUnqualified) != null ? w : !1}`);
|
|
542
|
-
const y = yield (yield fetch(n, { method: "GET", headers: wt(u.session) })).json(), E = (C = y == null ? void 0 : y.items) == null ? void 0 : C.find((z) => {
|
|
543
|
-
var L;
|
|
544
|
-
return ((L = z == null ? void 0 : z.tournament) == null ? void 0 : L.id) === u.tournamentid;
|
|
545
|
-
});
|
|
546
|
-
return {
|
|
547
|
-
playerData: (Y = E == null ? void 0 : E.tournament) == null ? void 0 : Y.leaderBoard,
|
|
548
|
-
endRank: E == null ? void 0 : E.endRank,
|
|
549
|
-
playerEnrolled: ($ = E == null ? void 0 : E.tournament) == null ? void 0 : $.playerEnrolled
|
|
550
|
-
};
|
|
551
|
-
}), Qt = (u, n) => {
|
|
552
|
-
const r = new URL(`${u.endpoint}/v1/tournaments/${u.tournamentid}/leaderboard/updates`);
|
|
553
|
-
r.searchParams.append("HeartBeat", "false"), r.searchParams.append("language", u.language), r.searchParams.append("filter", "includeUnqualifiedPlayer=true"), r.searchParams.append("pagination", `offset=${u.offset},limit=${u.limit}`), r.searchParams.append("platform", u.platform);
|
|
554
|
-
const y = new qt.EventSourcePolyfill(r, {
|
|
555
|
-
headers: { accept: "text/event-stream", "X-SessionId": u.session }
|
|
556
|
-
});
|
|
557
|
-
return y.onmessage = (E) => {
|
|
558
|
-
const w = JSON.parse(E.data);
|
|
559
|
-
w && w.messageType === "LeaderBoardUpdate" && n(w == null ? void 0 : w.items);
|
|
560
|
-
}, y;
|
|
561
|
-
};
|
|
562
|
-
var _t = { exports: {} };
|
|
563
|
-
(function(u, n) {
|
|
564
|
-
(function(r, y) {
|
|
565
|
-
u.exports = y();
|
|
566
|
-
})(dt, function() {
|
|
567
|
-
var r = 1e3, y = 6e4, E = 36e5, w = "millisecond", C = "second", Y = "minute", $ = "hour", z = "day", L = "week", j = "month", be = "quarter", ue = "year", B = "date", ie = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(g) {
|
|
568
|
-
var s = ["th", "st", "nd", "rd"], a = g % 100;
|
|
569
|
-
return "[" + g + (s[(a - 20) % 10] || s[a] || s[0]) + "]";
|
|
570
|
-
} }, D = function(g, s, a) {
|
|
571
|
-
var h = String(g);
|
|
572
|
-
return !h || h.length >= s ? g : "" + Array(s + 1 - h.length).join(a) + g;
|
|
573
|
-
}, U = { s: D, z: function(g) {
|
|
574
|
-
var s = -g.utcOffset(), a = Math.abs(s), h = Math.floor(a / 60), d = a % 60;
|
|
575
|
-
return (s <= 0 ? "+" : "-") + D(h, 2, "0") + ":" + D(d, 2, "0");
|
|
576
|
-
}, m: function g(s, a) {
|
|
577
|
-
if (s.date() < a.date()) return -g(a, s);
|
|
578
|
-
var h = 12 * (a.year() - s.year()) + (a.month() - s.month()), d = s.clone().add(h, j), b = a - d < 0, S = s.clone().add(h + (b ? -1 : 1), j);
|
|
579
|
-
return +(-(h + (a - d) / (b ? d - S : S - d)) || 0);
|
|
580
|
-
}, a: function(g) {
|
|
581
|
-
return g < 0 ? Math.ceil(g) || 0 : Math.floor(g);
|
|
582
|
-
}, p: function(g) {
|
|
583
|
-
return { M: j, y: ue, w: L, d: z, D: B, h: $, m: Y, s: C, ms: w, Q: be }[g] || String(g || "").toLowerCase().replace(/s$/, "");
|
|
584
|
-
}, u: function(g) {
|
|
585
|
-
return g === void 0;
|
|
586
|
-
} }, ee = "en", oe = {};
|
|
587
|
-
oe[ee] = N;
|
|
588
|
-
var se = "$isDayjsObject", V = function(g) {
|
|
589
|
-
return g instanceof Q || !(!g || !g[se]);
|
|
590
|
-
}, W = function g(s, a, h) {
|
|
591
|
-
var d;
|
|
592
|
-
if (!s) return ee;
|
|
593
|
-
if (typeof s == "string") {
|
|
594
|
-
var b = s.toLowerCase();
|
|
595
|
-
oe[b] && (d = b), a && (oe[b] = a, d = b);
|
|
596
|
-
var S = s.split("-");
|
|
597
|
-
if (!d && S.length > 1) return g(S[0]);
|
|
598
|
-
} else {
|
|
599
|
-
var A = s.name;
|
|
600
|
-
oe[A] = s, d = A;
|
|
601
|
-
}
|
|
602
|
-
return !h && d && (ee = d), d || !h && ee;
|
|
603
|
-
}, k = function(g, s) {
|
|
604
|
-
if (V(g)) return g.clone();
|
|
605
|
-
var a = typeof s == "object" ? s : {};
|
|
606
|
-
return a.date = g, a.args = arguments, new Q(a);
|
|
607
|
-
}, T = U;
|
|
608
|
-
T.l = W, T.i = V, T.w = function(g, s) {
|
|
609
|
-
return k(g, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
|
|
610
|
-
};
|
|
611
|
-
var Q = function() {
|
|
612
|
-
function g(a) {
|
|
613
|
-
this.$L = W(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[se] = !0;
|
|
614
|
-
}
|
|
615
|
-
var s = g.prototype;
|
|
616
|
-
return s.parse = function(a) {
|
|
617
|
-
this.$d = function(h) {
|
|
618
|
-
var d = h.date, b = h.utc;
|
|
619
|
-
if (d === null) return /* @__PURE__ */ new Date(NaN);
|
|
620
|
-
if (T.u(d)) return /* @__PURE__ */ new Date();
|
|
621
|
-
if (d instanceof Date) return new Date(d);
|
|
622
|
-
if (typeof d == "string" && !/Z$/i.test(d)) {
|
|
623
|
-
var S = d.match(_);
|
|
624
|
-
if (S) {
|
|
625
|
-
var A = S[2] - 1 || 0, H = (S[7] || "0").substring(0, 3);
|
|
626
|
-
return b ? new Date(Date.UTC(S[1], A, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, H)) : new Date(S[1], A, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, H);
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
return new Date(d);
|
|
630
|
-
}(a), this.init();
|
|
631
|
-
}, s.init = function() {
|
|
632
|
-
var a = this.$d;
|
|
633
|
-
this.$y = a.getFullYear(), this.$M = a.getMonth(), this.$D = a.getDate(), this.$W = a.getDay(), this.$H = a.getHours(), this.$m = a.getMinutes(), this.$s = a.getSeconds(), this.$ms = a.getMilliseconds();
|
|
634
|
-
}, s.$utils = function() {
|
|
635
|
-
return T;
|
|
636
|
-
}, s.isValid = function() {
|
|
637
|
-
return this.$d.toString() !== ie;
|
|
638
|
-
}, s.isSame = function(a, h) {
|
|
639
|
-
var d = k(a);
|
|
640
|
-
return this.startOf(h) <= d && d <= this.endOf(h);
|
|
641
|
-
}, s.isAfter = function(a, h) {
|
|
642
|
-
return k(a) < this.startOf(h);
|
|
643
|
-
}, s.isBefore = function(a, h) {
|
|
644
|
-
return this.endOf(h) < k(a);
|
|
645
|
-
}, s.$g = function(a, h, d) {
|
|
646
|
-
return T.u(a) ? this[h] : this.set(d, a);
|
|
647
|
-
}, s.unix = function() {
|
|
648
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
649
|
-
}, s.valueOf = function() {
|
|
650
|
-
return this.$d.getTime();
|
|
651
|
-
}, s.startOf = function(a, h) {
|
|
652
|
-
var d = this, b = !!T.u(h) || h, S = T.p(a), A = function(ve, Z) {
|
|
653
|
-
var X = T.w(d.$u ? Date.UTC(d.$y, Z, ve) : new Date(d.$y, Z, ve), d);
|
|
654
|
-
return b ? X : X.endOf(z);
|
|
655
|
-
}, H = function(ve, Z) {
|
|
656
|
-
return T.w(d.toDate()[ve].apply(d.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), d);
|
|
657
|
-
}, q = this.$W, re = this.$M, le = this.$D, De = "set" + (this.$u ? "UTC" : "");
|
|
658
|
-
switch (S) {
|
|
659
|
-
case ue:
|
|
660
|
-
return b ? A(1, 0) : A(31, 11);
|
|
661
|
-
case j:
|
|
662
|
-
return b ? A(1, re) : A(0, re + 1);
|
|
663
|
-
case L:
|
|
664
|
-
var Se = this.$locale().weekStart || 0, we = (q < Se ? q + 7 : q) - Se;
|
|
665
|
-
return A(b ? le - we : le + (6 - we), re);
|
|
666
|
-
case z:
|
|
667
|
-
case B:
|
|
668
|
-
return H(De + "Hours", 0);
|
|
669
|
-
case $:
|
|
670
|
-
return H(De + "Minutes", 1);
|
|
671
|
-
case Y:
|
|
672
|
-
return H(De + "Seconds", 2);
|
|
673
|
-
case C:
|
|
674
|
-
return H(De + "Milliseconds", 3);
|
|
675
|
-
default:
|
|
676
|
-
return this.clone();
|
|
677
|
-
}
|
|
678
|
-
}, s.endOf = function(a) {
|
|
679
|
-
return this.startOf(a, !1);
|
|
680
|
-
}, s.$set = function(a, h) {
|
|
681
|
-
var d, b = T.p(a), S = "set" + (this.$u ? "UTC" : ""), A = (d = {}, d[z] = S + "Date", d[B] = S + "Date", d[j] = S + "Month", d[ue] = S + "FullYear", d[$] = S + "Hours", d[Y] = S + "Minutes", d[C] = S + "Seconds", d[w] = S + "Milliseconds", d)[b], H = b === z ? this.$D + (h - this.$W) : h;
|
|
682
|
-
if (b === j || b === ue) {
|
|
683
|
-
var q = this.clone().set(B, 1);
|
|
684
|
-
q.$d[A](H), q.init(), this.$d = q.set(B, Math.min(this.$D, q.daysInMonth())).$d;
|
|
685
|
-
} else A && this.$d[A](H);
|
|
686
|
-
return this.init(), this;
|
|
687
|
-
}, s.set = function(a, h) {
|
|
688
|
-
return this.clone().$set(a, h);
|
|
689
|
-
}, s.get = function(a) {
|
|
690
|
-
return this[T.p(a)]();
|
|
691
|
-
}, s.add = function(a, h) {
|
|
692
|
-
var d, b = this;
|
|
693
|
-
a = Number(a);
|
|
694
|
-
var S = T.p(h), A = function(re) {
|
|
695
|
-
var le = k(b);
|
|
696
|
-
return T.w(le.date(le.date() + Math.round(re * a)), b);
|
|
697
|
-
};
|
|
698
|
-
if (S === j) return this.set(j, this.$M + a);
|
|
699
|
-
if (S === ue) return this.set(ue, this.$y + a);
|
|
700
|
-
if (S === z) return A(1);
|
|
701
|
-
if (S === L) return A(7);
|
|
702
|
-
var H = (d = {}, d[Y] = y, d[$] = E, d[C] = r, d)[S] || 1, q = this.$d.getTime() + a * H;
|
|
703
|
-
return T.w(q, this);
|
|
704
|
-
}, s.subtract = function(a, h) {
|
|
705
|
-
return this.add(-1 * a, h);
|
|
706
|
-
}, s.format = function(a) {
|
|
707
|
-
var h = this, d = this.$locale();
|
|
708
|
-
if (!this.isValid()) return d.invalidDate || ie;
|
|
709
|
-
var b = a || "YYYY-MM-DDTHH:mm:ssZ", S = T.z(this), A = this.$H, H = this.$m, q = this.$M, re = d.weekdays, le = d.months, De = d.meridiem, Se = function(Z, X, ge, xe) {
|
|
710
|
-
return Z && (Z[X] || Z(h, b)) || ge[X].slice(0, xe);
|
|
711
|
-
}, we = function(Z) {
|
|
712
|
-
return T.s(A % 12 || 12, Z, "0");
|
|
713
|
-
}, ve = De || function(Z, X, ge) {
|
|
714
|
-
var xe = Z < 12 ? "AM" : "PM";
|
|
715
|
-
return ge ? xe.toLowerCase() : xe;
|
|
716
|
-
};
|
|
717
|
-
return b.replace(R, function(Z, X) {
|
|
718
|
-
return X || function(ge) {
|
|
719
|
-
switch (ge) {
|
|
720
|
-
case "YY":
|
|
721
|
-
return String(h.$y).slice(-2);
|
|
722
|
-
case "YYYY":
|
|
723
|
-
return T.s(h.$y, 4, "0");
|
|
724
|
-
case "M":
|
|
725
|
-
return q + 1;
|
|
726
|
-
case "MM":
|
|
727
|
-
return T.s(q + 1, 2, "0");
|
|
728
|
-
case "MMM":
|
|
729
|
-
return Se(d.monthsShort, q, le, 3);
|
|
730
|
-
case "MMMM":
|
|
731
|
-
return Se(le, q);
|
|
732
|
-
case "D":
|
|
733
|
-
return h.$D;
|
|
734
|
-
case "DD":
|
|
735
|
-
return T.s(h.$D, 2, "0");
|
|
736
|
-
case "d":
|
|
737
|
-
return String(h.$W);
|
|
738
|
-
case "dd":
|
|
739
|
-
return Se(d.weekdaysMin, h.$W, re, 2);
|
|
740
|
-
case "ddd":
|
|
741
|
-
return Se(d.weekdaysShort, h.$W, re, 3);
|
|
742
|
-
case "dddd":
|
|
743
|
-
return re[h.$W];
|
|
744
|
-
case "H":
|
|
745
|
-
return String(A);
|
|
746
|
-
case "HH":
|
|
747
|
-
return T.s(A, 2, "0");
|
|
748
|
-
case "h":
|
|
749
|
-
return we(1);
|
|
750
|
-
case "hh":
|
|
751
|
-
return we(2);
|
|
752
|
-
case "a":
|
|
753
|
-
return ve(A, H, !0);
|
|
754
|
-
case "A":
|
|
755
|
-
return ve(A, H, !1);
|
|
756
|
-
case "m":
|
|
757
|
-
return String(H);
|
|
758
|
-
case "mm":
|
|
759
|
-
return T.s(H, 2, "0");
|
|
760
|
-
case "s":
|
|
761
|
-
return String(h.$s);
|
|
762
|
-
case "ss":
|
|
763
|
-
return T.s(h.$s, 2, "0");
|
|
764
|
-
case "SSS":
|
|
765
|
-
return T.s(h.$ms, 3, "0");
|
|
766
|
-
case "Z":
|
|
767
|
-
return S;
|
|
768
|
-
}
|
|
769
|
-
return null;
|
|
770
|
-
}(Z) || S.replace(":", "");
|
|
771
|
-
});
|
|
772
|
-
}, s.utcOffset = function() {
|
|
773
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
774
|
-
}, s.diff = function(a, h, d) {
|
|
775
|
-
var b, S = this, A = T.p(h), H = k(a), q = (H.utcOffset() - this.utcOffset()) * y, re = this - H, le = function() {
|
|
776
|
-
return T.m(S, H);
|
|
777
|
-
};
|
|
778
|
-
switch (A) {
|
|
779
|
-
case ue:
|
|
780
|
-
b = le() / 12;
|
|
781
|
-
break;
|
|
782
|
-
case j:
|
|
783
|
-
b = le();
|
|
784
|
-
break;
|
|
785
|
-
case be:
|
|
786
|
-
b = le() / 3;
|
|
787
|
-
break;
|
|
788
|
-
case L:
|
|
789
|
-
b = (re - q) / 6048e5;
|
|
790
|
-
break;
|
|
791
|
-
case z:
|
|
792
|
-
b = (re - q) / 864e5;
|
|
793
|
-
break;
|
|
794
|
-
case $:
|
|
795
|
-
b = re / E;
|
|
796
|
-
break;
|
|
797
|
-
case Y:
|
|
798
|
-
b = re / y;
|
|
799
|
-
break;
|
|
800
|
-
case C:
|
|
801
|
-
b = re / r;
|
|
802
|
-
break;
|
|
803
|
-
default:
|
|
804
|
-
b = re;
|
|
805
|
-
}
|
|
806
|
-
return d ? b : T.a(b);
|
|
807
|
-
}, s.daysInMonth = function() {
|
|
808
|
-
return this.endOf(j).$D;
|
|
809
|
-
}, s.$locale = function() {
|
|
810
|
-
return oe[this.$L];
|
|
811
|
-
}, s.locale = function(a, h) {
|
|
812
|
-
if (!a) return this.$L;
|
|
813
|
-
var d = this.clone(), b = W(a, h, !0);
|
|
814
|
-
return b && (d.$L = b), d;
|
|
815
|
-
}, s.clone = function() {
|
|
816
|
-
return T.w(this.$d, this);
|
|
817
|
-
}, s.toDate = function() {
|
|
818
|
-
return new Date(this.valueOf());
|
|
819
|
-
}, s.toJSON = function() {
|
|
820
|
-
return this.isValid() ? this.toISOString() : null;
|
|
821
|
-
}, s.toISOString = function() {
|
|
822
|
-
return this.$d.toISOString();
|
|
823
|
-
}, s.toString = function() {
|
|
824
|
-
return this.$d.toUTCString();
|
|
825
|
-
}, g;
|
|
826
|
-
}(), de = Q.prototype;
|
|
827
|
-
return k.prototype = de, [["$ms", w], ["$s", C], ["$m", Y], ["$H", $], ["$W", z], ["$M", j], ["$y", ue], ["$D", B]].forEach(function(g) {
|
|
828
|
-
de[g[1]] = function(s) {
|
|
829
|
-
return this.$g(s, g[0], g[1]);
|
|
830
|
-
};
|
|
831
|
-
}), k.extend = function(g, s) {
|
|
832
|
-
return g.$i || (g(s, Q, k), g.$i = !0), k;
|
|
833
|
-
}, k.locale = W, k.isDayjs = V, k.unix = function(g) {
|
|
834
|
-
return k(1e3 * g);
|
|
835
|
-
}, k.en = oe[ee], k.Ls = oe, k.p = {}, k;
|
|
836
|
-
});
|
|
837
|
-
})(_t);
|
|
838
|
-
var Wt = _t.exports;
|
|
839
|
-
const Kt = /* @__PURE__ */ bt(Wt);
|
|
840
|
-
var St = { exports: {} };
|
|
841
|
-
(function(u, n) {
|
|
842
|
-
(function(r, y) {
|
|
843
|
-
u.exports = y();
|
|
844
|
-
})(dt, function() {
|
|
845
|
-
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, y = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, E = /\d/, w = /\d\d/, C = /\d\d?/, Y = /\d*[^-_:/,()\s\d]+/, $ = {}, z = function(_) {
|
|
846
|
-
return (_ = +_) + (_ > 68 ? 1900 : 2e3);
|
|
847
|
-
}, L = function(_) {
|
|
848
|
-
return function(R) {
|
|
849
|
-
this[_] = +R;
|
|
850
|
-
};
|
|
851
|
-
}, j = [/[+-]\d\d:?(\d\d)?|Z/, function(_) {
|
|
852
|
-
(this.zone || (this.zone = {})).offset = function(R) {
|
|
853
|
-
if (!R || R === "Z") return 0;
|
|
854
|
-
var N = R.match(/([+-]|\d\d)/g), D = 60 * N[1] + (+N[2] || 0);
|
|
855
|
-
return D === 0 ? 0 : N[0] === "+" ? -D : D;
|
|
856
|
-
}(_);
|
|
857
|
-
}], be = function(_) {
|
|
858
|
-
var R = $[_];
|
|
859
|
-
return R && (R.indexOf ? R : R.s.concat(R.f));
|
|
860
|
-
}, ue = function(_, R) {
|
|
861
|
-
var N, D = $.meridiem;
|
|
862
|
-
if (D) {
|
|
863
|
-
for (var U = 1; U <= 24; U += 1) if (_.indexOf(D(U, 0, R)) > -1) {
|
|
864
|
-
N = U > 12;
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
} else N = _ === (R ? "pm" : "PM");
|
|
868
|
-
return N;
|
|
869
|
-
}, B = { A: [Y, function(_) {
|
|
870
|
-
this.afternoon = ue(_, !1);
|
|
871
|
-
}], a: [Y, function(_) {
|
|
872
|
-
this.afternoon = ue(_, !0);
|
|
873
|
-
}], Q: [E, function(_) {
|
|
874
|
-
this.month = 3 * (_ - 1) + 1;
|
|
875
|
-
}], S: [E, function(_) {
|
|
876
|
-
this.milliseconds = 100 * +_;
|
|
877
|
-
}], SS: [w, function(_) {
|
|
878
|
-
this.milliseconds = 10 * +_;
|
|
879
|
-
}], SSS: [/\d{3}/, function(_) {
|
|
880
|
-
this.milliseconds = +_;
|
|
881
|
-
}], s: [C, L("seconds")], ss: [C, L("seconds")], m: [C, L("minutes")], mm: [C, L("minutes")], H: [C, L("hours")], h: [C, L("hours")], HH: [C, L("hours")], hh: [C, L("hours")], D: [C, L("day")], DD: [w, L("day")], Do: [Y, function(_) {
|
|
882
|
-
var R = $.ordinal, N = _.match(/\d+/);
|
|
883
|
-
if (this.day = N[0], R) for (var D = 1; D <= 31; D += 1) R(D).replace(/\[|\]/g, "") === _ && (this.day = D);
|
|
884
|
-
}], w: [C, L("week")], ww: [w, L("week")], M: [C, L("month")], MM: [w, L("month")], MMM: [Y, function(_) {
|
|
885
|
-
var R = be("months"), N = (be("monthsShort") || R.map(function(D) {
|
|
886
|
-
return D.slice(0, 3);
|
|
887
|
-
})).indexOf(_) + 1;
|
|
888
|
-
if (N < 1) throw new Error();
|
|
889
|
-
this.month = N % 12 || N;
|
|
890
|
-
}], MMMM: [Y, function(_) {
|
|
891
|
-
var R = be("months").indexOf(_) + 1;
|
|
892
|
-
if (R < 1) throw new Error();
|
|
893
|
-
this.month = R % 12 || R;
|
|
894
|
-
}], Y: [/[+-]?\d+/, L("year")], YY: [w, function(_) {
|
|
895
|
-
this.year = z(_);
|
|
896
|
-
}], YYYY: [/\d{4}/, L("year")], Z: j, ZZ: j };
|
|
897
|
-
function ie(_) {
|
|
898
|
-
var R, N;
|
|
899
|
-
R = _, N = $ && $.formats;
|
|
900
|
-
for (var D = (_ = R.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(k, T, Q) {
|
|
901
|
-
var de = Q && Q.toUpperCase();
|
|
902
|
-
return T || N[Q] || r[Q] || N[de].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(g, s, a) {
|
|
903
|
-
return s || a.slice(1);
|
|
904
|
-
});
|
|
905
|
-
})).match(y), U = D.length, ee = 0; ee < U; ee += 1) {
|
|
906
|
-
var oe = D[ee], se = B[oe], V = se && se[0], W = se && se[1];
|
|
907
|
-
D[ee] = W ? { regex: V, parser: W } : oe.replace(/^\[|\]$/g, "");
|
|
908
|
-
}
|
|
909
|
-
return function(k) {
|
|
910
|
-
for (var T = {}, Q = 0, de = 0; Q < U; Q += 1) {
|
|
911
|
-
var g = D[Q];
|
|
912
|
-
if (typeof g == "string") de += g.length;
|
|
913
|
-
else {
|
|
914
|
-
var s = g.regex, a = g.parser, h = k.slice(de), d = s.exec(h)[0];
|
|
915
|
-
a.call(T, d), k = k.replace(d, "");
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
return function(b) {
|
|
919
|
-
var S = b.afternoon;
|
|
920
|
-
if (S !== void 0) {
|
|
921
|
-
var A = b.hours;
|
|
922
|
-
S ? A < 12 && (b.hours += 12) : A === 12 && (b.hours = 0), delete b.afternoon;
|
|
923
|
-
}
|
|
924
|
-
}(T), T;
|
|
925
|
-
};
|
|
926
|
-
}
|
|
927
|
-
return function(_, R, N) {
|
|
928
|
-
N.p.customParseFormat = !0, _ && _.parseTwoDigitYear && (z = _.parseTwoDigitYear);
|
|
929
|
-
var D = R.prototype, U = D.parse;
|
|
930
|
-
D.parse = function(ee) {
|
|
931
|
-
var oe = ee.date, se = ee.utc, V = ee.args;
|
|
932
|
-
this.$u = se;
|
|
933
|
-
var W = V[1];
|
|
934
|
-
if (typeof W == "string") {
|
|
935
|
-
var k = V[2] === !0, T = V[3] === !0, Q = k || T, de = V[2];
|
|
936
|
-
T && (de = V[2]), $ = this.$locale(), !k && de && ($ = N.Ls[de]), this.$d = function(h, d, b, S) {
|
|
937
|
-
try {
|
|
938
|
-
if (["x", "X"].indexOf(d) > -1) return new Date((d === "X" ? 1e3 : 1) * h);
|
|
939
|
-
var A = ie(d)(h), H = A.year, q = A.month, re = A.day, le = A.hours, De = A.minutes, Se = A.seconds, we = A.milliseconds, ve = A.zone, Z = A.week, X = /* @__PURE__ */ new Date(), ge = re || (H || q ? 1 : X.getDate()), xe = H || X.getFullYear(), Ne = 0;
|
|
940
|
-
H && !q || (Ne = q > 0 ? q - 1 : X.getMonth());
|
|
941
|
-
var $e, e = le || 0, c = De || 0, v = Se || 0, l = we || 0;
|
|
942
|
-
return ve ? new Date(Date.UTC(xe, Ne, ge, e, c, v, l + 60 * ve.offset * 1e3)) : b ? new Date(Date.UTC(xe, Ne, ge, e, c, v, l)) : ($e = new Date(xe, Ne, ge, e, c, v, l), Z && ($e = S($e).week(Z).toDate()), $e);
|
|
943
|
-
} catch (M) {
|
|
944
|
-
return /* @__PURE__ */ new Date("");
|
|
945
|
-
}
|
|
946
|
-
}(oe, W, se, N), this.init(), de && de !== !0 && (this.$L = this.locale(de).$L), Q && oe != this.format(W) && (this.$d = /* @__PURE__ */ new Date("")), $ = {};
|
|
947
|
-
} else if (W instanceof Array) for (var g = W.length, s = 1; s <= g; s += 1) {
|
|
948
|
-
V[1] = W[s - 1];
|
|
949
|
-
var a = N.apply(this, V);
|
|
950
|
-
if (a.isValid()) {
|
|
951
|
-
this.$d = a.$d, this.$L = a.$L, this.init();
|
|
952
|
-
break;
|
|
953
|
-
}
|
|
954
|
-
s === g && (this.$d = /* @__PURE__ */ new Date(""));
|
|
955
|
-
}
|
|
956
|
-
else U.call(this, ee);
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
});
|
|
960
|
-
})(St);
|
|
961
|
-
var Zt = St.exports;
|
|
962
|
-
const Jt = /* @__PURE__ */ bt(Zt);
|
|
963
|
-
Kt.extend(Jt);
|
|
964
|
-
const Tn = () => typeof window == "undefined";
|
|
965
|
-
class Mn {
|
|
966
|
-
constructor() {
|
|
967
|
-
}
|
|
968
|
-
static processMinMax(n, r) {
|
|
969
|
-
return {
|
|
970
|
-
minValue: n ? `: ${n}` : null,
|
|
971
|
-
maxValue: r ? `: ${r}` : null
|
|
972
|
-
};
|
|
973
|
-
}
|
|
974
|
-
static generateCasinoRule(n, r) {
|
|
975
|
-
var Y, $;
|
|
976
|
-
const y = ` ~ ${n("unlimited")}`, E = r.currency || "EUR", w = (Y = r.minStake) != null && Y.amount[E] ? `: ${r.minStake.amount[E]} ${E}` : y, C = ($ = r.maxStake) != null && $.amount[E] ? `: ${r.maxStake.amount[E]} ${E}` : y;
|
|
977
|
-
return n("casinoRuleMinMaxBet", { values: { minBet: w, maxBet: C } });
|
|
978
|
-
}
|
|
979
|
-
static generateSportsRule(n, r) {
|
|
980
|
-
var oe, se, V, W, k, T, Q, de, g, s;
|
|
981
|
-
const y = [], E = ` ~ ${n("unlimited")}`, w = r.currency || "EUR", C = (oe = r.minStake) != null && oe.amount[w] ? `: ${r.minStake.amount[w]} ${w}` : E, Y = (se = r.maxStake) != null && se.amount[w] ? `: ${r.maxStake.amount[w]} ${w}` : E;
|
|
982
|
-
y.push(n("sportsRuleMinMaxBet", { values: { sportMinBet: C, sportMaxBet: Y } }));
|
|
983
|
-
const $ = r.config.liveMatch === "true", z = r.config.preLiveMatch === "true";
|
|
984
|
-
$ && z ? y.push(n("matchTypePreAndLive")) : $ ? y.push(`${n("matchTypeLive")}`) : z && y.push(`${n("matchTyppePre")}`);
|
|
985
|
-
const L = r.combination, j = [];
|
|
986
|
-
L.single.isEligible && j.push(n("betTypeSingle"));
|
|
987
|
-
const ue = {
|
|
988
|
-
null: n("typeOfSelectionAny"),
|
|
989
|
-
true: n("bankerOnly"),
|
|
990
|
-
false: n("nonBankerOnly")
|
|
991
|
-
}, B = {
|
|
992
|
-
unspecific: n("typeOfSelectionAny"),
|
|
993
|
-
all: n("betBuilderOnly"),
|
|
994
|
-
none: n("notBuilderOnly")
|
|
995
|
-
};
|
|
996
|
-
let ie = "", _ = "";
|
|
997
|
-
const R = `${n("oddsPerSelection")}: ${r.config.minOdds || n("unlimited")} - ${r.config.maxOdds || n("unlimited")}`, N = L.system.isEligible, D = L.multiple.isEligible;
|
|
998
|
-
N && (ie = ` ${n("betTypeSystem")}
|
|
999
|
-
( ${n("typeOfSelection")}: ${ue[((W = (V = r.combination.system.banker) == null ? void 0 : V.include) == null ? void 0 : W.toString()) || "null"]},
|
|
1000
|
-
${n("numberOfSelection")}:
|
|
1001
|
-
${((k = L.system.minSelection) == null ? void 0 : k.number) || n("unlimited")} - ${((T = L.system.maxSelection) == null ? void 0 : T.number) || n("unlimited")},
|
|
1002
|
-
${R} ) `), D && (_ = ` ${n("betTypeMultiple")}
|
|
1003
|
-
( ${n("typeOfSelection")}: ${B[((de = (Q = r.combination.multiple.betBuilder) == null ? void 0 : Q.mode) == null ? void 0 : de.toString()) || "unspecific"]},
|
|
1004
|
-
${n("numberOfSelection")}:
|
|
1005
|
-
${((g = L.multiple.minSelection) == null ? void 0 : g.number) || n("unlimited")} - ${((s = L.multiple.maxSelection) == null ? void 0 : s.number) || n("unlimited")},
|
|
1006
|
-
${R} ) `), N && D ? j.push(_ + n("and") + ie) : N ? j.push(ie) : D && j.push(_), y.push(j.join(", "));
|
|
1007
|
-
const U = r.config.minTotalOdds ? `: ${r.config.minTotalOdds}` : E, ee = r.config.maxTotalOdds ? `: ${r.config.maxTotalOdds}` : E;
|
|
1008
|
-
return y.push(`${n("sportsRuleMinMaxOdds", { values: { sportMinOdds: U, sportMaxOdds: ee } })}`), y;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
const Dn = (u, n = 3) => {
|
|
1012
|
-
var y;
|
|
1013
|
-
const r = [];
|
|
1014
|
-
for (const E of [...u != null ? u : []].sort((w, C) => w.rank - C.rank)) {
|
|
1015
|
-
const w = (y = E == null ? void 0 : E.name) == null ? void 0 : y.trim();
|
|
1016
|
-
if (w && !r.includes(w) && r.push(w), r.length === n)
|
|
1017
|
-
break;
|
|
1018
|
-
}
|
|
1019
|
-
return r;
|
|
1020
|
-
}, ot = 20, en = 5, tn = 20, nn = "1500px 0px", $n = 24, On = "1000px 0px", Rn = {
|
|
1021
|
-
BetCount: "scoreCriteriaType.mostRounds",
|
|
1022
|
-
WinStakeRatio: "scoreCriteriaType.winStakeRatio",
|
|
1023
|
-
MaxWinStakeRatio: "scoreCriteriaType.maxWinStakeRatio",
|
|
1024
|
-
Stake: "scoreCriteriaType.stake",
|
|
1025
|
-
Win: "scoreCriteriaType.win",
|
|
1026
|
-
WinBetCount: "scoreCriteriaType.winBetCount"
|
|
1027
|
-
}, Cn = [
|
|
1028
|
-
{ id: "rules", label: "rulesPrizesTab" },
|
|
1029
|
-
{ id: "leaderboard", label: "leaderboardTab" },
|
|
1030
|
-
{ id: "games", label: "gamesTab" }
|
|
1031
|
-
], Ln = 3, kn = 4, Pn = 8, zn = 12, rn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAABgFBMVEXi4NDm16wJZN5qXCKdkHgqZapnYGaaaTatkWEsofe0tGo3KhwSYd0IY+QzoPfVolcVFXEKK4sYc9Y0ovpkq8uPdlSOeW+jil6vusbEgz3//6olF50Af38lkvpvSS1Nfplyj6Ff1f+/fz+0amqan5uf1OT/tLT//wAwNmAGHn07UnsNSbt/AABoRSp5SiN4ZkprYFh8fXN/f/9fv/9Pu/xXx/2qqqr/f3/DrnX/0nYAAADHtqjLtZQXh/DXx6+5ppHCqpJVxfyuh0/OqGusl4a1mXDk1bYOZs4Af/+meUjXtXAAAP2qiGfSolfSm1AXddQA//9s2v64l1nqxXNNuP3z5sEAVf8ReuyNakuYc0vArqLhqlgalfo2u/4DPrwNZtswkdkwpvZSqP9CpemRlperqqnEnGnYw5Hxt1v///8ZW7ILbecwhs8xmedVVVVizP6FjpiKpayudzu7pHbHjEXitWbixon96JANScUKTckNWtBOZIVOmMxb2v9/f39vpbe+KJb7AAAAgHRSTlP//6Qc5f79/6IXAxknUs/nCv/qYv1U/3L//wMIApuX///rBAP//wMBev9jJgJC/zdFkgIIarsDArT+AP7+/v/+/fz+/v79//wC//8C//v++gH9//77/wP9/v/+/v7+BdL//AX///7+/v4B/+///gP+///////9//4YLmr9/v8C/U9F5AAAAAM1SURBVHjadZR3exM5EMa17iEhlXQChH69AneSVtJWe9e77sY9seNKCumFFPLVmXXI4UvC/KFnH81v3xmNRoPwgKWGYPnrLcbx94PbGA18r2E89Peb5dGl+8DH7oQ8ZEpJX1woteokYO9Tt6DUGl6byqVfpBXParJvBLAbEIhPjSrpKySXU5RGAbAPrwahIby2lEunt5XtXLNeb+YAq1U3IObHb1AMD3ky29tKc2urubU5WW+en18+eRIYxp+vIWAaF8sQp7G5ef7gcnf3OaeabR8eHgf8w9fQn/FR5QE4W4F927aPjo66XUqpKHPtuOv3tAC6h3/nWt9s8DFGYKXcEPtCGMfT2N+HXuLIvx0hBCEC/ufcMIyMqmYyGZ0IaRY0APqAI1mXg08Dzz6smmFnMmpWVcsARUCjD40d6sRx1YymJlxVtdRSOGyF90qWIOLoH7zgQQs4YgvCwamqpWLJoF2uU0a57hBC7DEQAegehOOEGJblCNZGKM9QW8ojyB92NfeqBM/wrAc5OjHz+fYcaqO5HVNiml05cAAahuN5StNZOBlhTAJfq4XQDkF5p3Pcmy8S4f4GV4OgWH5JkDLXdc7ySGq92HnOTIlavTHLIKIyDSoI1Ia7lHB9ZkYneYnO7YR2ecY0mRM2oHKVWfwUoBQep5QIPRDgZl64eksK7IWpaRrzRQ5QpK8Ux3FDa5dBizFT/zW8jxyruEcZhCdC7UWgRn0oUCl7EDFpuESYaSLmMDA48pj6CL/z7u4VDlQ4KfcP6FAE6TC4Q63TSSTcyiMokQc9xX9kXUgSjEIH2JrmJsAO5vesYsjvNSfyWvQXted2vFbJZrOHiQPVKhVDocePg8mCLxb72nQPf34900tcO8+CwWA0KtdqVVneGMHXENzhj6EzcNaT0StLNmoNWS6s/oQffnstfjzik6tVORkNTvwwMbG+WZdBxjeOY4Pvbhzj06QMUHR9fX0ymUzKBd8n/JX57wXHUvjEV4D/5S3IBSLBo1u5PQvgUX/ybXgYIKeLgyNjYKrE+9hqNLp6ujIwCG6MHhwDz+LJCXytxL83nzzMyyP1f+QWBEFT8Ztbt6G77At9BjvkWHKpLwAAAABJRU5ErkJggg==";
|
|
1032
|
-
var an = Re('<span class="tournament-leaderboard__prize svelte-1mz4he7"><img class="tournament-leaderboard__prize-icon svelte-1mz4he7" alt="" width="18" height="18"/> <span class="tournament-leaderboard__prize-name svelte-1mz4he7"> </span></span>'), on = Re('<span class="tournament-leaderboard__prize svelte-1mz4he7">-</span>'), sn = Re('<div class="tournament-leaderboard__skeleton svelte-1mz4he7"></div>'), dn = Re('<div class="tournament-leaderboard__list svelte-1mz4he7" aria-busy="true"></div>'), un = Re('<div class="tournament-leaderboard__empty svelte-1mz4he7"><p class="tournament-leaderboard__empty-title svelte-1mz4he7"> </p> <p class="tournament-leaderboard__empty-description svelte-1mz4he7"> </p></div>'), ln = Re('<div class="tournament-leaderboard__sentinel svelte-1mz4he7"></div>'), cn = Re('<li><span class="tournament-leaderboard__rank svelte-1mz4he7"> </span> <span class="tournament-leaderboard__name svelte-1mz4he7"> </span> <span class="tournament-leaderboard__score svelte-1mz4he7"> </span> <!></li>'), fn = Re('<div class="tournament-leaderboard__remaining svelte-1mz4he7" aria-hidden="true"></div>'), hn = Re('<!> <ol class="tournament-leaderboard__list svelte-1mz4he7"></ol> <!>', 1), mn = Re('<div><button type="button" class="tournament-leaderboard__row tournament-leaderboard__row--sticky svelte-1mz4he7"><span class="tournament-leaderboard__rank svelte-1mz4he7"> </span> <span class="tournament-leaderboard__name svelte-1mz4he7"> </span> <span class="tournament-leaderboard__score svelte-1mz4he7"> </span> <!></button></div>'), pn = Re('<div class="tournament-leaderboard svelte-1mz4he7"><!> <!></div>');
|
|
1033
|
-
const vn = {
|
|
1034
|
-
hash: "svelte-1mz4he7",
|
|
1035
|
-
code: `.tournament-leaderboard.svelte-1mz4he7 {position:relative;display:flex;flex-direction:column;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;line-height:1.4;.tournament-leaderboard__list:where(.svelte-1mz4he7) {display:flex;flex-direction:column;gap:8px;margin:0;padding:17px 17px 2px 0;list-style:none;}.tournament-leaderboard__row:where(.svelte-1mz4he7) {box-sizing:border-box;display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));align-items:center;gap:12px;width:100%;min-height:40px;padding:6px 16px;border:0;border-radius:0;background:transparent;color:inherit;font-size:16px;font-weight:600;text-align:left;color:var(--text-default, rgba(223, 227, 232, 1));}.tournament-leaderboard__rank:where(.svelte-1mz4he7),
|
|
1036
|
-
.tournament-leaderboard__score:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-variant-numeric:tabular-nums;}.tournament-leaderboard__name:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;overflow-wrap:anywhere;}.tournament-leaderboard__prize:where(.svelte-1mz4he7) {display:flex;align-items:center;gap:6px;min-width:0;}.tournament-leaderboard__prize-icon:where(.svelte-1mz4he7) {flex-shrink:0;width:18px;height:18px;}.tournament-leaderboard__prize-name:where(.svelte-1mz4he7) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.tournament-leaderboard__row--player:where(.svelte-1mz4he7),
|
|
1037
|
-
.tournament-leaderboard__row--sticky:where(.svelte-1mz4he7) {background:linear-gradient(90deg, rgba(255, 204, 0, 0.45) 0%, rgba(255, 204, 0, 0.12) 100%),
|
|
1038
|
-
var(--bg-surface-level-1, rgba(2, 38, 82, 1));.tournament-leaderboard__rank:where(.svelte-1mz4he7),
|
|
1039
|
-
.tournament-leaderboard__name:where(.svelte-1mz4he7),
|
|
1040
|
-
.tournament-leaderboard__score:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;}.tournament-leaderboard__prize:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));}}.tournament-leaderboard__row--player:where(.svelte-1mz4he7) {border:1.5px solid var(--border-alert, rgba(255, 204, 0, 1));border-radius:12px;}.tournament-leaderboard__sticky:where(.svelte-1mz4he7) {position:sticky;bottom:0;z-index:2;margin-top:8px;}.tournament-leaderboard__sticky--hidden:where(.svelte-1mz4he7) {visibility:hidden;pointer-events:none;}.tournament-leaderboard__row--sticky:where(.svelte-1mz4he7) {border-top:1px solid var(--border-alert, rgba(255, 204, 0, 1));cursor:pointer;}.tournament-leaderboard__sentinel:where(.svelte-1mz4he7) {height:1px;}.tournament-leaderboard__remaining:where(.svelte-1mz4he7) {--row-pitch: 48px;height:calc(var(--remaining) * var(--row-pitch));margin-top:4px;background:repeating-linear-gradient(
|
|
1041
|
-
to bottom,
|
|
1042
|
-
var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05)) 0 calc(var(--row-pitch) - 12px),
|
|
1043
|
-
transparent calc(var(--row-pitch) - 12px) var(--row-pitch)
|
|
1044
|
-
);border-radius:8px;}.tournament-leaderboard__skeleton:where(.svelte-1mz4he7) {display:block;height:36px;margin:4px 0;border-radius:8px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
1045
|
-
animation: svelte-1mz4he7-tournament-leaderboard-pulse 1.2s ease-in-out infinite;}.tournament-leaderboard__empty:where(.svelte-1mz4he7) {display:flex;flex-direction:column;align-items:center;gap:8px;padding:63px 16px;text-align:center;p:where(.svelte-1mz4he7) {margin:0;}}.tournament-leaderboard__empty-title:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;font-weight:700;}.tournament-leaderboard__empty-description:where(.svelte-1mz4he7) {max-width:340px;color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-size:14px;font-weight:500;}}
|
|
1046
|
-
|
|
1047
|
-
@keyframes svelte-1mz4he7-tournament-leaderboard-pulse {
|
|
1048
|
-
50% {
|
|
1049
|
-
opacity: 0.5;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
@media (max-width: 767px) {.tournament-leaderboard.svelte-1mz4he7 {.tournament-leaderboard__row:where(.svelte-1mz4he7) {grid-template-columns:36px minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.6fr);min-height:0;padding:8px 12px;}}
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
@media (prefers-reduced-motion: reduce) {.tournament-leaderboard.svelte-1mz4he7 .tournament-leaderboard__skeleton:where(.svelte-1mz4he7) {
|
|
1057
|
-
animation: none;}
|
|
1058
|
-
}`
|
|
1059
|
-
};
|
|
1060
|
-
function gn(u, n) {
|
|
1061
|
-
Ot(n, !0), Rt(u, vn);
|
|
1062
|
-
const r = () => Ft(Bt, "$_", y), [y, E] = It(), w = (t, o = gt, f = gt) => {
|
|
1063
|
-
var m = it(), p = Je(m);
|
|
1064
|
-
{
|
|
1065
|
-
var O = (F) => {
|
|
1066
|
-
var I = an(), G = Ge(I), J = Oe(G, 2), te = Ie(J, !0);
|
|
1067
|
-
He(I), We(
|
|
1068
|
-
(ne) => {
|
|
1069
|
-
Ke(G, "src", rn), Ye(te, ne);
|
|
1070
|
-
},
|
|
1071
|
-
[() => f() ? r()("notQualified") : o()]
|
|
1072
|
-
), _e(F, I);
|
|
1073
|
-
}, K = (F) => {
|
|
1074
|
-
var I = on();
|
|
1075
|
-
_e(F, I);
|
|
1076
|
-
};
|
|
1077
|
-
Qe(p, (F) => {
|
|
1078
|
-
f() || o() ? F(O) : F(K, -1);
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
_e(t, m);
|
|
1082
|
-
}, C = Be(n, "endpoint", 7), Y = Be(n, "language", 7, "en"), $ = Be(n, "session", 7), z = Be(n, "tournamentid", 7), L = Be(n, "platform", 7), j = Be(n, "translationurl", 7), be = Be(n, "newlyEnrolled", 7);
|
|
1083
|
-
Ct(Xt), ht(Y());
|
|
1084
|
-
const ue = () => {
|
|
1085
|
-
ht(Y());
|
|
1086
|
-
};
|
|
1087
|
-
Lt(() => {
|
|
1088
|
-
j() && Yt(j());
|
|
1089
|
-
}), Ze(() => {
|
|
1090
|
-
ue();
|
|
1091
|
-
});
|
|
1092
|
-
let B = Te(kt([])), ie = Te(0), _ = Te(0), R = Te(!0), N = Te(!1), D = Te(!1), U = Te(void 0), ee = Te(void 0), oe = Te(!1), se = Te(!1), V = null, W = Te(null);
|
|
1093
|
-
const k = Me(() => i(ie) + i(B).length), T = Me(() => i(k) < i(_)), Q = Me(() => i(ie) > 0), de = Me(() => Math.max(i(_) - i(k), 0));
|
|
1094
|
-
let g = Te(null);
|
|
1095
|
-
Ze(() => {
|
|
1096
|
-
!i(W) || !i(B).length || rt().then(() => {
|
|
1097
|
-
i(W) && i(B).length && ae(g, (i(W).offsetHeight + 4) / i(B).length);
|
|
1098
|
-
});
|
|
1099
|
-
});
|
|
1100
|
-
const s = Me(() => {
|
|
1101
|
-
var t, o;
|
|
1102
|
-
return (o = (t = i(U)) == null ? void 0 : t.rank) != null ? o : i(ee);
|
|
1103
|
-
});
|
|
1104
|
-
let a = Te(null);
|
|
1105
|
-
const h = Me(() => i(a) === null ? 0 : Math.max(0, i(ie) + i(B).length - i(a))), d = Me(() => i(R) || i(a) === null ? "" : `${i(a)}:${Math.min(i(h), tn)}`), b = Me(() => i(B).find((t) => H(t))), S = Me(() => {
|
|
1106
|
-
var t;
|
|
1107
|
-
return (t = i(b)) != null ? t : i(U);
|
|
1108
|
-
}), A = Me(() => !!(i(oe) && i(s))), H = (t) => i(U) ? t.userID && i(U).userID ? t.userID === i(U).userID : t.rank === i(U).rank : !!i(ee) && t.rank === i(ee), q = (t) => t ? Number.isInteger(t) ? String(t) : t.toFixed(2) : "-", re = (t, o) => Gt({
|
|
1109
|
-
endpoint: C(),
|
|
1110
|
-
language: Y(),
|
|
1111
|
-
platform: L(),
|
|
1112
|
-
session: $(),
|
|
1113
|
-
tournamentid: z(),
|
|
1114
|
-
offset: t,
|
|
1115
|
-
limit: o
|
|
1116
|
-
}), le = (t) => ze(this, null, function* () {
|
|
1117
|
-
var o, f;
|
|
1118
|
-
ae(R, !0);
|
|
1119
|
-
try {
|
|
1120
|
-
const m = yield re(t, ot);
|
|
1121
|
-
ae(B, (o = m.items) != null ? o : [], !0), ae(_, (f = m.total) != null ? f : 0, !0), ae(ie, t, !0), ae(a, t, !0);
|
|
1122
|
-
} catch (m) {
|
|
1123
|
-
console.log(m);
|
|
1124
|
-
} finally {
|
|
1125
|
-
ae(R, !1);
|
|
1126
|
-
}
|
|
1127
|
-
}), De = () => ze(this, null, function* () {
|
|
1128
|
-
var t, o;
|
|
1129
|
-
if (!(!i(T) || i(N))) {
|
|
1130
|
-
ae(N, !0);
|
|
1131
|
-
try {
|
|
1132
|
-
const f = yield re(i(k), ot);
|
|
1133
|
-
ae(B, [...i(B), ...(t = f.items) != null ? t : []], !0), ae(_, (o = f.total) != null ? o : i(_), !0);
|
|
1134
|
-
} catch (f) {
|
|
1135
|
-
console.log(f);
|
|
1136
|
-
} finally {
|
|
1137
|
-
ae(N, !1);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
}), Se = (t) => {
|
|
1141
|
-
var f;
|
|
1142
|
-
let o = t.parentElement;
|
|
1143
|
-
for (; o; ) {
|
|
1144
|
-
const { overflowY: m } = getComputedStyle(o);
|
|
1145
|
-
if ((m === "auto" || m === "scroll") && o.scrollHeight > o.clientHeight)
|
|
1146
|
-
return o;
|
|
1147
|
-
o = o.parentElement;
|
|
1148
|
-
}
|
|
1149
|
-
return (f = document.scrollingElement) != null ? f : document.documentElement;
|
|
1150
|
-
}, we = (t) => {
|
|
1151
|
-
var o;
|
|
1152
|
-
return t === void 0 ? null : (o = i(W)) == null ? void 0 : o.querySelector(`[data-rank="${t}"]`);
|
|
1153
|
-
}, ve = () => ze(this, null, function* () {
|
|
1154
|
-
var t, o, f;
|
|
1155
|
-
if (!(!i(Q) || i(D))) {
|
|
1156
|
-
ae(D, !0);
|
|
1157
|
-
try {
|
|
1158
|
-
const m = Math.max(0, i(ie) - ot), p = yield re(m, i(ie) - m), O = (t = i(B)[0]) == null ? void 0 : t.rank, K = (o = we(O)) == null ? void 0 : o.getBoundingClientRect().top;
|
|
1159
|
-
ae(B, [...(f = p.items) != null ? f : [], ...i(B)], !0), ae(ie, m, !0), yield rt();
|
|
1160
|
-
const F = we(O);
|
|
1161
|
-
F && K !== void 0 && (Se(F).scrollTop += F.getBoundingClientRect().top - K);
|
|
1162
|
-
} catch (m) {
|
|
1163
|
-
console.log(m);
|
|
1164
|
-
} finally {
|
|
1165
|
-
ae(D, !1);
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
}), Z = () => ze(this, null, function* () {
|
|
1169
|
-
if (i(s)) {
|
|
1170
|
-
if (V) {
|
|
1171
|
-
V.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
1172
|
-
return;
|
|
1173
|
-
}
|
|
1174
|
-
yield le(Math.max(0, i(s) - 1 - en)), yield rt(), V == null || V.scrollIntoView({ block: "center" });
|
|
1175
|
-
}
|
|
1176
|
-
}), X = (t, o) => {
|
|
1177
|
-
const f = new IntersectionObserver(
|
|
1178
|
-
(m) => {
|
|
1179
|
-
m.some((p) => p.isIntersecting) && o();
|
|
1180
|
-
},
|
|
1181
|
-
{ rootMargin: nn }
|
|
1182
|
-
);
|
|
1183
|
-
return f.observe(t), {
|
|
1184
|
-
update(m) {
|
|
1185
|
-
o = m;
|
|
1186
|
-
},
|
|
1187
|
-
destroy() {
|
|
1188
|
-
f.disconnect();
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1191
|
-
}, ge = (t, o) => {
|
|
1192
|
-
let f = null;
|
|
1193
|
-
const m = () => {
|
|
1194
|
-
V = t, f = new IntersectionObserver((O) => {
|
|
1195
|
-
ae(se, O.some((K) => K.isIntersecting), !0);
|
|
1196
|
-
}), f.observe(t);
|
|
1197
|
-
}, p = () => {
|
|
1198
|
-
f == null || f.disconnect(), f = null, V === t && (V = null, ae(se, !1));
|
|
1199
|
-
};
|
|
1200
|
-
return o && m(), {
|
|
1201
|
-
update(O) {
|
|
1202
|
-
O && !f ? m() : !O && f && p();
|
|
1203
|
-
},
|
|
1204
|
-
destroy: p
|
|
1205
|
-
};
|
|
1206
|
-
}, xe = () => ze(this, null, function* () {
|
|
1207
|
-
try {
|
|
1208
|
-
const t = yield Vt({
|
|
1209
|
-
endpoint: C(),
|
|
1210
|
-
language: Y(),
|
|
1211
|
-
platform: L(),
|
|
1212
|
-
session: $(),
|
|
1213
|
-
tournamentid: z(),
|
|
1214
|
-
includeUnqualified: !0
|
|
1215
|
-
});
|
|
1216
|
-
ae(U, t.playerData, !0), ae(ee, t.endRank, !0), ae(oe, !!t.playerEnrolled, !0);
|
|
1217
|
-
} catch (t) {
|
|
1218
|
-
console.log(t);
|
|
1219
|
-
}
|
|
1220
|
-
});
|
|
1221
|
-
Ze(() => {
|
|
1222
|
-
if (!i(d) || i(d).endsWith(":0"))
|
|
1223
|
-
return;
|
|
1224
|
-
const [t, o] = i(d).split(":").map(Number), f = Qt(
|
|
1225
|
-
{
|
|
1226
|
-
endpoint: C(),
|
|
1227
|
-
language: Y(),
|
|
1228
|
-
platform: L(),
|
|
1229
|
-
session: $(),
|
|
1230
|
-
tournamentid: z(),
|
|
1231
|
-
offset: t,
|
|
1232
|
-
limit: o
|
|
1233
|
-
},
|
|
1234
|
-
(m) => {
|
|
1235
|
-
const p = t - i(ie);
|
|
1236
|
-
if (!(m != null && m.length) || t !== i(a) || p < 0)
|
|
1237
|
-
return;
|
|
1238
|
-
ae(
|
|
1239
|
-
B,
|
|
1240
|
-
[
|
|
1241
|
-
...i(B).slice(0, p),
|
|
1242
|
-
...m,
|
|
1243
|
-
...i(B).slice(p + m.length)
|
|
1244
|
-
],
|
|
1245
|
-
!0
|
|
1246
|
-
);
|
|
1247
|
-
const O = i(U) && m.find((K) => H(K));
|
|
1248
|
-
O && ae(U, O, !0);
|
|
1249
|
-
}
|
|
1250
|
-
);
|
|
1251
|
-
return () => f.close();
|
|
1252
|
-
}), Ze(() => {
|
|
1253
|
-
be() && xe();
|
|
1254
|
-
}), Pt(() => {
|
|
1255
|
-
le(0), xe();
|
|
1256
|
-
});
|
|
1257
|
-
var Ne = {
|
|
1258
|
-
get endpoint() {
|
|
1259
|
-
return C();
|
|
1260
|
-
},
|
|
1261
|
-
set endpoint(t) {
|
|
1262
|
-
C(t), Ue();
|
|
1263
|
-
},
|
|
1264
|
-
get language() {
|
|
1265
|
-
return Y();
|
|
1266
|
-
},
|
|
1267
|
-
set language(t = "en") {
|
|
1268
|
-
Y(t), Ue();
|
|
1269
|
-
},
|
|
1270
|
-
get session() {
|
|
1271
|
-
return $();
|
|
1272
|
-
},
|
|
1273
|
-
set session(t) {
|
|
1274
|
-
$(t), Ue();
|
|
1275
|
-
},
|
|
1276
|
-
get tournamentid() {
|
|
1277
|
-
return z();
|
|
1278
|
-
},
|
|
1279
|
-
set tournamentid(t) {
|
|
1280
|
-
z(t), Ue();
|
|
1281
|
-
},
|
|
1282
|
-
get platform() {
|
|
1283
|
-
return L();
|
|
1284
|
-
},
|
|
1285
|
-
set platform(t) {
|
|
1286
|
-
L(t), Ue();
|
|
1287
|
-
},
|
|
1288
|
-
get translationurl() {
|
|
1289
|
-
return j();
|
|
1290
|
-
},
|
|
1291
|
-
set translationurl(t) {
|
|
1292
|
-
j(t), Ue();
|
|
1293
|
-
},
|
|
1294
|
-
get newlyEnrolled() {
|
|
1295
|
-
return be();
|
|
1296
|
-
},
|
|
1297
|
-
set newlyEnrolled(t) {
|
|
1298
|
-
be(t), Ue();
|
|
1299
|
-
}
|
|
1300
|
-
}, $e = pn(), e = Ge($e);
|
|
1301
|
-
{
|
|
1302
|
-
var c = (t) => {
|
|
1303
|
-
var o = dn();
|
|
1304
|
-
mt(o, 20, () => Array(8), pt, (f, m, p, O) => {
|
|
1305
|
-
var K = sn();
|
|
1306
|
-
_e(f, K);
|
|
1307
|
-
}), He(o), _e(t, o);
|
|
1308
|
-
}, v = (t) => {
|
|
1309
|
-
var o = un(), f = Ge(o), m = Ie(f, !0), p = Oe(f, 2), O = Ie(p, !0);
|
|
1310
|
-
He(o), We(
|
|
1311
|
-
(K, F) => {
|
|
1312
|
-
Ye(m, K), Ye(O, F);
|
|
1313
|
-
},
|
|
1314
|
-
[
|
|
1315
|
-
() => r()("noLeaderboardTitle"),
|
|
1316
|
-
() => r()("noLeaderboardDescription")
|
|
1317
|
-
]
|
|
1318
|
-
), _e(t, o);
|
|
1319
|
-
}, l = (t) => {
|
|
1320
|
-
var o = hn(), f = Je(o);
|
|
1321
|
-
{
|
|
1322
|
-
var m = (F) => {
|
|
1323
|
-
var I = it(), G = Je(I);
|
|
1324
|
-
yt(G, () => i(ie), (J) => {
|
|
1325
|
-
var te = ln();
|
|
1326
|
-
at(te, (ne, he) => X == null ? void 0 : X(ne, he), () => ve), _e(J, te);
|
|
1327
|
-
}), _e(F, I);
|
|
1328
|
-
};
|
|
1329
|
-
Qe(f, (F) => {
|
|
1330
|
-
i(Q) && F(m);
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
var p = Oe(f, 2);
|
|
1334
|
-
mt(p, 21, () => i(B), pt, (F, I) => {
|
|
1335
|
-
const G = Me(() => H(i(I)));
|
|
1336
|
-
var J = cn();
|
|
1337
|
-
let te;
|
|
1338
|
-
var ne = Ge(J), he = Ie(ne, !0), Ce = Oe(ne, 2), me = Ie(Ce, !0), Xe = Oe(Ce, 2), Le = Ie(Xe, !0), et = Oe(Xe, 2);
|
|
1339
|
-
{
|
|
1340
|
-
let Fe = Me(() => i(G) && !!i(I).unqualified);
|
|
1341
|
-
w(et, () => i(I).prizeName, () => i(Fe));
|
|
1342
|
-
}
|
|
1343
|
-
He(J), at(J, (Fe, je) => ge == null ? void 0 : ge(Fe, je), () => i(G)), We(
|
|
1344
|
-
(Fe, je) => {
|
|
1345
|
-
te = vt(J, 1, "tournament-leaderboard__row svelte-1mz4he7", null, te, { "tournament-leaderboard__row--player": i(G) }), Ke(J, "data-rank", i(I).rank), Ye(he, i(I).rank), Ye(me, Fe), Ye(Le, je);
|
|
1346
|
-
},
|
|
1347
|
-
[
|
|
1348
|
-
() => i(G) ? r()("youLabel") : i(I).shortName || "J.D",
|
|
1349
|
-
() => q(i(I).score)
|
|
1350
|
-
]
|
|
1351
|
-
), _e(F, J);
|
|
1352
|
-
}), He(p), Nt(p, (F) => ae(W, F), () => i(W));
|
|
1353
|
-
var O = Oe(p, 2);
|
|
1354
|
-
{
|
|
1355
|
-
var K = (F) => {
|
|
1356
|
-
var I = it(), G = Je(I);
|
|
1357
|
-
yt(G, () => i(k), (J) => {
|
|
1358
|
-
var te = fn();
|
|
1359
|
-
let ne;
|
|
1360
|
-
at(te, (he, Ce) => X == null ? void 0 : X(he, Ce), () => De), We(() => ne = Ut(te, "", ne, {
|
|
1361
|
-
"--remaining": i(de),
|
|
1362
|
-
"--row-pitch": i(g) ? `${i(g)}px` : null
|
|
1363
|
-
})), _e(J, te);
|
|
1364
|
-
}), _e(F, I);
|
|
1365
|
-
};
|
|
1366
|
-
Qe(O, (F) => {
|
|
1367
|
-
i(T) && F(K);
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
_e(t, o);
|
|
1371
|
-
};
|
|
1372
|
-
Qe(e, (t) => {
|
|
1373
|
-
i(R) ? t(c) : i(B).length === 0 ? t(v, 1) : t(l, -1);
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
var M = Oe(e, 2);
|
|
1377
|
-
{
|
|
1378
|
-
var x = (t) => {
|
|
1379
|
-
var o = mn();
|
|
1380
|
-
let f;
|
|
1381
|
-
var m = Ge(o), p = Ge(m), O = Ie(p, !0), K = Oe(p, 2), F = Ie(K, !0), I = Oe(K, 2), G = Ie(I, !0), J = Oe(I, 2);
|
|
1382
|
-
{
|
|
1383
|
-
let te = Me(() => {
|
|
1384
|
-
var ne;
|
|
1385
|
-
return !!((ne = i(S)) != null && ne.unqualified);
|
|
1386
|
-
});
|
|
1387
|
-
w(J, () => {
|
|
1388
|
-
var ne;
|
|
1389
|
-
return (ne = i(S)) == null ? void 0 : ne.prizeName;
|
|
1390
|
-
}, () => i(te));
|
|
1391
|
-
}
|
|
1392
|
-
He(m), He(o), We(
|
|
1393
|
-
(te, ne, he) => {
|
|
1394
|
-
f = vt(o, 1, "tournament-leaderboard__sticky svelte-1mz4he7", null, f, {
|
|
1395
|
-
"tournament-leaderboard__sticky--hidden": i(se)
|
|
1396
|
-
}), Ke(o, "aria-hidden", i(se)), Ke(m, "aria-label", te), Ke(m, "tabindex", i(se) ? -1 : 0), Ye(O, i(s)), Ye(F, ne), Ye(G, he);
|
|
1397
|
-
},
|
|
1398
|
-
[
|
|
1399
|
-
() => r()("goToMyPosition"),
|
|
1400
|
-
() => r()("youLabel"),
|
|
1401
|
-
() => {
|
|
1402
|
-
var te, ne;
|
|
1403
|
-
return q((ne = (te = i(S)) == null ? void 0 : te.score) != null ? ne : 0);
|
|
1404
|
-
}
|
|
1405
|
-
]
|
|
1406
|
-
), Ht("click", m, Z), _e(t, o);
|
|
1407
|
-
};
|
|
1408
|
-
Qe(M, (t) => {
|
|
1409
|
-
i(A) && t(x);
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
He($e), _e(u, $e);
|
|
1413
|
-
var P = zt(Ne);
|
|
1414
|
-
return E(), P;
|
|
1415
|
-
}
|
|
1416
|
-
Dt(["click"]);
|
|
1417
|
-
$t(
|
|
1418
|
-
gn,
|
|
1419
|
-
{
|
|
1420
|
-
endpoint: {},
|
|
1421
|
-
language: {},
|
|
1422
|
-
session: {},
|
|
1423
|
-
tournamentid: {},
|
|
1424
|
-
platform: {},
|
|
1425
|
-
translationurl: {},
|
|
1426
|
-
newlyEnrolled: {}
|
|
1427
|
-
},
|
|
1428
|
-
[],
|
|
1429
|
-
[],
|
|
1430
|
-
{ mode: "open" }
|
|
1431
|
-
);
|
|
1432
|
-
export {
|
|
1433
|
-
Cn as D,
|
|
1434
|
-
$n as G,
|
|
1435
|
-
Rn as S,
|
|
1436
|
-
Mn as T,
|
|
1437
|
-
On as a,
|
|
1438
|
-
Ln as b,
|
|
1439
|
-
Pn as c,
|
|
1440
|
-
zn as d,
|
|
1441
|
-
kn as e,
|
|
1442
|
-
An as f,
|
|
1443
|
-
Dn as g,
|
|
1444
|
-
Sn as h,
|
|
1445
|
-
Tn as i,
|
|
1446
|
-
Vt as j,
|
|
1447
|
-
xn as k,
|
|
1448
|
-
gn as l,
|
|
1449
|
-
En as s,
|
|
1450
|
-
_n as t
|
|
1451
|
-
};
|