@everymatrix/tournament-details-page 0.0.1 → 0.0.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.
@@ -0,0 +1,976 @@
1
+ var Fe = (r, t, e) => new Promise((n, i) => {
2
+ var o = (u) => {
3
+ try {
4
+ l(e.next(u));
5
+ } catch (y) {
6
+ i(y);
7
+ }
8
+ }, s = (u) => {
9
+ try {
10
+ l(e.throw(u));
11
+ } catch (y) {
12
+ i(y);
13
+ }
14
+ }, l = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
15
+ l((e = e.apply(r, t)).next());
16
+ });
17
+ import { $ as ye, a as Rt, b as Ot, d as Ke, c as Bt, e as jt, p as F, u as At, s as R, f as Ze, o as It, g as $, i as E, h as T, j as Wt, k as Dt, l as Z, m as Ht, n as c, q as h, r as m, t as Ft, v as Zt, w as C, x as U, y as v, z as w, A as ne, B as g, C as Ut, D as q, E as Ue, F as Vt, G as A, H as zt, I as X } from "./TournamentDetails-CJVSWVXD.js";
18
+ function Gt({ withLocale: r, translations: t }) {
19
+ ye.subscribe((e) => {
20
+ e == null && (Ot.set(t), ye.set(r));
21
+ });
22
+ }
23
+ function qt(r, t) {
24
+ Rt(r, t);
25
+ }
26
+ function Xt(r) {
27
+ ye.set(r);
28
+ }
29
+ const Ve = {
30
+ en: {
31
+ totalPrizes: "Total prizes",
32
+ viewPrizes: "View Prizes",
33
+ moreGames: "More Games",
34
+ play: "Play",
35
+ joinButton: "Join",
36
+ rules: "Rules",
37
+ scoreCriteriaType: {
38
+ stake: "The score criteria for this tournament is <b>Turnover</b>. For each X generated (X= amount wagered in player currency or equivalent in base currency) player will get 1 point. The player who will have the largest turnover will have the highest score and rank.",
39
+ mostRounds: "The score criteria for this tournament is <b>Most Rounds</b>. For every played round player will get 1 point. The player who will have the biggest number of played rounds / placed bets will have the highest score and rank.",
40
+ winStakeRatio: `The score criteria for this tournament is <b>Win/Stake Ratio</b>. The score will be calculated
41
+ as a sum of win/stake ratios for qualified rounds and bets.
42
+ The player who got the highest score will win the tournament.`,
43
+ winStakeRatioWinMinScore: `<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
44
+ <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
45
+ minimum score value.</span>
46
+ </li></ul>`,
47
+ maxWinStakeRatio: "The score criteria for this tournament is <b>Max Win/Stake Ratio</b>. The player who got the biggest win by placing the smallest bet will win the tournament (bet = 10 EUR, win = 5000 EUR, the score will be 500). Only higher ratio will update the player's score.",
48
+ win: `The score criteria for this tournament is <b>Winnings</b>. The score will be calculated based on the sum of all bet winnings with the qualifying rounds/bets.
49
+ For example, a player has two qualifying rounds. he won €1 in one round and €3 in another. In this case.
50
+ the score will be calculated as 1+3=4.`,
51
+ winBetCount: `The score criteria for this tournament is <b>Winnings and Number of Rounds</b>. The score will be calculated based on the sum of all bet winnings and rounds number with the qualifying
52
+ rounds/bets. For example, a player has two qualifying rounds. he won €1 in one round and €3 in another.
53
+ In this case. the score will be calculated as 1+3+2=6.`
54
+ },
55
+ miniBetCount: "Minimum bet count: <b>{betCount}</b>. To be qualified for prizes, the player has to play at least <b>{betCount} rounds</b>, otherwise the prize won’t be granted.",
56
+ timePeriod: "The tournament starts at <b>{startTime}</b> and ends at <b>{endTime}</b>",
57
+ terms: 'See <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Terms & Conditions.</a>',
58
+ productNoLimitsBet: "For {productName}, there are no minimum and maximum bet limits set.",
59
+ casinoRuleMinMaxBet: "Min bet{minBet}, Max bet{maxBet}",
60
+ unlimited: "Unlimited",
61
+ forCasino: "For Casino Games",
62
+ forSportsbook: "For Sportsbook",
63
+ sportsRuleMinMaxBet: "Min bet{sportMinBet}, Max bet{sportMaxBet}",
64
+ sportsRuleMinMaxOdds: "Min Odds{sportMinOdds}, Max Odds{sportMaxOdds}",
65
+ matchTyppePre: "Prelive Sports bets",
66
+ matchTypeLive: "Live Sports bets",
67
+ matchTypePreAndLive: "Prelive and Live Sport bets",
68
+ betTypeSingle: "Single bet",
69
+ betTypeMultiple: "Multiple bet",
70
+ betTypeSystem: "System bet",
71
+ typeOfSelection: "Type of selection",
72
+ numberOfSelection: "Number of selections",
73
+ oddsPerSelection: "Odds per selections",
74
+ betBuilderOnly: "Bet Builder Only",
75
+ bankerOnly: "Banker Only",
76
+ typeOfSelectionAny: "Any",
77
+ notBuilderOnly: "Not Bet Builder Only",
78
+ nonBankerOnly: "Non Banker Only"
79
+ },
80
+ tr: {
81
+ totalPrizes: "Total prizes",
82
+ viewPrizes: "View Prizes",
83
+ moreGames: "More Games",
84
+ play: "Play",
85
+ joinButton: "Join"
86
+ }
87
+ };
88
+ /*! *****************************************************************************
89
+ Copyright (c) Microsoft Corporation.
90
+
91
+ Permission to use, copy, modify, and/or distribute this software for any
92
+ purpose with or without fee is hereby granted.
93
+
94
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
95
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
96
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
97
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
98
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
99
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
100
+ PERFORMANCE OF THIS SOFTWARE.
101
+ ***************************************************************************** */
102
+ var be = function(r, t) {
103
+ return be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
104
+ e.__proto__ = n;
105
+ } || function(e, n) {
106
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
107
+ }, be(r, t);
108
+ };
109
+ function K(r, t) {
110
+ if (typeof t != "function" && t !== null)
111
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
112
+ be(r, t);
113
+ function e() {
114
+ this.constructor = r;
115
+ }
116
+ r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
117
+ }
118
+ function we(r) {
119
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
120
+ if (e) return e.call(r);
121
+ if (r && typeof r.length == "number") return {
122
+ next: function() {
123
+ return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
124
+ }
125
+ };
126
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
127
+ }
128
+ function xe(r, t) {
129
+ var e = typeof Symbol == "function" && r[Symbol.iterator];
130
+ if (!e) return r;
131
+ var n = e.call(r), i, o = [], s;
132
+ try {
133
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
134
+ } catch (l) {
135
+ s = { error: l };
136
+ } finally {
137
+ try {
138
+ i && !i.done && (e = n.return) && e.call(n);
139
+ } finally {
140
+ if (s) throw s.error;
141
+ }
142
+ }
143
+ return o;
144
+ }
145
+ function Ce(r, t, e) {
146
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
147
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
148
+ return r.concat(o || t);
149
+ }
150
+ function I(r) {
151
+ return typeof r == "function";
152
+ }
153
+ function Qe(r) {
154
+ var t = function(n) {
155
+ Error.call(n), n.stack = new Error().stack;
156
+ }, e = r(t);
157
+ return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
158
+ }
159
+ var ge = Qe(function(r) {
160
+ return function(e) {
161
+ r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
162
+ ` + e.map(function(n, i) {
163
+ return i + 1 + ") " + n.toString();
164
+ }).join(`
165
+ `) : "", this.name = "UnsubscriptionError", this.errors = e;
166
+ };
167
+ });
168
+ function _e(r, t) {
169
+ if (r) {
170
+ var e = r.indexOf(t);
171
+ 0 <= e && r.splice(e, 1);
172
+ }
173
+ }
174
+ var se = function() {
175
+ function r(t) {
176
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
177
+ }
178
+ return r.prototype.unsubscribe = function() {
179
+ var t, e, n, i, o;
180
+ if (!this.closed) {
181
+ this.closed = !0;
182
+ var s = this._parentage;
183
+ if (s)
184
+ if (this._parentage = null, Array.isArray(s))
185
+ try {
186
+ for (var l = we(s), u = l.next(); !u.done; u = l.next()) {
187
+ var y = u.value;
188
+ y.remove(this);
189
+ }
190
+ } catch (x) {
191
+ t = { error: x };
192
+ } finally {
193
+ try {
194
+ u && !u.done && (e = l.return) && e.call(l);
195
+ } finally {
196
+ if (t) throw t.error;
197
+ }
198
+ }
199
+ else
200
+ s.remove(this);
201
+ var M = this.initialTeardown;
202
+ if (I(M))
203
+ try {
204
+ M();
205
+ } catch (x) {
206
+ o = x instanceof ge ? x.errors : [x];
207
+ }
208
+ var V = this._finalizers;
209
+ if (V) {
210
+ this._finalizers = null;
211
+ try {
212
+ for (var z = we(V), d = z.next(); !d.done; d = z.next()) {
213
+ var Q = d.value;
214
+ try {
215
+ ze(Q);
216
+ } catch (x) {
217
+ o = o != null ? o : [], x instanceof ge ? o = Ce(Ce([], xe(o)), xe(x.errors)) : o.push(x);
218
+ }
219
+ }
220
+ } catch (x) {
221
+ n = { error: x };
222
+ } finally {
223
+ try {
224
+ d && !d.done && (i = z.return) && i.call(z);
225
+ } finally {
226
+ if (n) throw n.error;
227
+ }
228
+ }
229
+ }
230
+ if (o)
231
+ throw new ge(o);
232
+ }
233
+ }, r.prototype.add = function(t) {
234
+ var e;
235
+ if (t && t !== this)
236
+ if (this.closed)
237
+ ze(t);
238
+ else {
239
+ if (t instanceof r) {
240
+ if (t.closed || t._hasParent(this))
241
+ return;
242
+ t._addParent(this);
243
+ }
244
+ (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
245
+ }
246
+ }, r.prototype._hasParent = function(t) {
247
+ var e = this._parentage;
248
+ return e === t || Array.isArray(e) && e.includes(t);
249
+ }, r.prototype._addParent = function(t) {
250
+ var e = this._parentage;
251
+ this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
252
+ }, r.prototype._removeParent = function(t) {
253
+ var e = this._parentage;
254
+ e === t ? this._parentage = null : Array.isArray(e) && _e(e, t);
255
+ }, r.prototype.remove = function(t) {
256
+ var e = this._finalizers;
257
+ e && _e(e, t), t instanceof r && t._removeParent(this);
258
+ }, r.EMPTY = function() {
259
+ var t = new r();
260
+ return t.closed = !0, t;
261
+ }(), r;
262
+ }(), et = se.EMPTY;
263
+ function tt(r) {
264
+ return r instanceof se || r && "closed" in r && I(r.remove) && I(r.add) && I(r.unsubscribe);
265
+ }
266
+ function ze(r) {
267
+ I(r) ? r() : r.unsubscribe();
268
+ }
269
+ var $t = {
270
+ Promise: void 0
271
+ }, Jt = {
272
+ setTimeout: function(r, t) {
273
+ for (var e = [], n = 2; n < arguments.length; n++)
274
+ e[n - 2] = arguments[n];
275
+ return setTimeout.apply(void 0, Ce([r, t], xe(e)));
276
+ },
277
+ clearTimeout: function(r) {
278
+ return clearTimeout(r);
279
+ },
280
+ delegate: void 0
281
+ };
282
+ function Nt(r) {
283
+ Jt.setTimeout(function() {
284
+ throw r;
285
+ });
286
+ }
287
+ function Ge() {
288
+ }
289
+ function oe(r) {
290
+ r();
291
+ }
292
+ var rt = function(r) {
293
+ K(t, r);
294
+ function t(e) {
295
+ var n = r.call(this) || this;
296
+ return n.isStopped = !1, e ? (n.destination = e, tt(e) && e.add(n)) : n.destination = Qt, n;
297
+ }
298
+ return t.create = function(e, n, i) {
299
+ return new Se(e, n, i);
300
+ }, t.prototype.next = function(e) {
301
+ this.isStopped || this._next(e);
302
+ }, t.prototype.error = function(e) {
303
+ this.isStopped || (this.isStopped = !0, this._error(e));
304
+ }, t.prototype.complete = function() {
305
+ this.isStopped || (this.isStopped = !0, this._complete());
306
+ }, t.prototype.unsubscribe = function() {
307
+ this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
308
+ }, t.prototype._next = function(e) {
309
+ this.destination.next(e);
310
+ }, t.prototype._error = function(e) {
311
+ try {
312
+ this.destination.error(e);
313
+ } finally {
314
+ this.unsubscribe();
315
+ }
316
+ }, t.prototype._complete = function() {
317
+ try {
318
+ this.destination.complete();
319
+ } finally {
320
+ this.unsubscribe();
321
+ }
322
+ }, t;
323
+ }(se), Yt = function() {
324
+ function r(t) {
325
+ this.partialObserver = t;
326
+ }
327
+ return r.prototype.next = function(t) {
328
+ var e = this.partialObserver;
329
+ if (e.next)
330
+ try {
331
+ e.next(t);
332
+ } catch (n) {
333
+ ie(n);
334
+ }
335
+ }, r.prototype.error = function(t) {
336
+ var e = this.partialObserver;
337
+ if (e.error)
338
+ try {
339
+ e.error(t);
340
+ } catch (n) {
341
+ ie(n);
342
+ }
343
+ else
344
+ ie(t);
345
+ }, r.prototype.complete = function() {
346
+ var t = this.partialObserver;
347
+ if (t.complete)
348
+ try {
349
+ t.complete();
350
+ } catch (e) {
351
+ ie(e);
352
+ }
353
+ }, r;
354
+ }(), Se = function(r) {
355
+ K(t, r);
356
+ function t(e, n, i) {
357
+ var o = r.call(this) || this, s;
358
+ return I(e) || !e ? s = {
359
+ next: e != null ? e : void 0,
360
+ error: n != null ? n : void 0,
361
+ complete: i != null ? i : void 0
362
+ } : s = e, o.destination = new Yt(s), o;
363
+ }
364
+ return t;
365
+ }(rt);
366
+ function ie(r) {
367
+ Nt(r);
368
+ }
369
+ function Kt(r) {
370
+ throw r;
371
+ }
372
+ var Qt = {
373
+ closed: !0,
374
+ next: Ge,
375
+ error: Kt,
376
+ complete: Ge
377
+ }, er = function() {
378
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
379
+ }();
380
+ function tr(r) {
381
+ return r;
382
+ }
383
+ function rr(r) {
384
+ return r.length === 0 ? tr : r.length === 1 ? r[0] : function(e) {
385
+ return r.reduce(function(n, i) {
386
+ return i(n);
387
+ }, e);
388
+ };
389
+ }
390
+ var qe = function() {
391
+ function r(t) {
392
+ t && (this._subscribe = t);
393
+ }
394
+ return r.prototype.lift = function(t) {
395
+ var e = new r();
396
+ return e.source = this, e.operator = t, e;
397
+ }, r.prototype.subscribe = function(t, e, n) {
398
+ var i = this, o = ir(t) ? t : new Se(t, e, n);
399
+ return oe(function() {
400
+ var s = i, l = s.operator, u = s.source;
401
+ o.add(l ? l.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
402
+ }), o;
403
+ }, r.prototype._trySubscribe = function(t) {
404
+ try {
405
+ return this._subscribe(t);
406
+ } catch (e) {
407
+ t.error(e);
408
+ }
409
+ }, r.prototype.forEach = function(t, e) {
410
+ var n = this;
411
+ return e = Xe(e), new e(function(i, o) {
412
+ var s = new Se({
413
+ next: function(l) {
414
+ try {
415
+ t(l);
416
+ } catch (u) {
417
+ o(u), s.unsubscribe();
418
+ }
419
+ },
420
+ error: o,
421
+ complete: i
422
+ });
423
+ n.subscribe(s);
424
+ });
425
+ }, r.prototype._subscribe = function(t) {
426
+ var e;
427
+ return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
428
+ }, r.prototype[er] = function() {
429
+ return this;
430
+ }, r.prototype.pipe = function() {
431
+ for (var t = [], e = 0; e < arguments.length; e++)
432
+ t[e] = arguments[e];
433
+ return rr(t)(this);
434
+ }, r.prototype.toPromise = function(t) {
435
+ var e = this;
436
+ return t = Xe(t), new t(function(n, i) {
437
+ var o;
438
+ e.subscribe(function(s) {
439
+ return o = s;
440
+ }, function(s) {
441
+ return i(s);
442
+ }, function() {
443
+ return n(o);
444
+ });
445
+ });
446
+ }, r.create = function(t) {
447
+ return new r(t);
448
+ }, r;
449
+ }();
450
+ function Xe(r) {
451
+ var t;
452
+ return (t = r != null ? r : $t.Promise) !== null && t !== void 0 ? t : Promise;
453
+ }
454
+ function nr(r) {
455
+ return r && I(r.next) && I(r.error) && I(r.complete);
456
+ }
457
+ function ir(r) {
458
+ return r && r instanceof rt || nr(r) && tt(r);
459
+ }
460
+ var or = Qe(function(r) {
461
+ return function() {
462
+ r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
463
+ };
464
+ }), nt = function(r) {
465
+ K(t, r);
466
+ function t() {
467
+ var e = r.call(this) || this;
468
+ return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
469
+ }
470
+ return t.prototype.lift = function(e) {
471
+ var n = new $e(this, this);
472
+ return n.operator = e, n;
473
+ }, t.prototype._throwIfClosed = function() {
474
+ if (this.closed)
475
+ throw new or();
476
+ }, t.prototype.next = function(e) {
477
+ var n = this;
478
+ oe(function() {
479
+ var i, o;
480
+ if (n._throwIfClosed(), !n.isStopped) {
481
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
482
+ try {
483
+ for (var s = we(n.currentObservers), l = s.next(); !l.done; l = s.next()) {
484
+ var u = l.value;
485
+ u.next(e);
486
+ }
487
+ } catch (y) {
488
+ i = { error: y };
489
+ } finally {
490
+ try {
491
+ l && !l.done && (o = s.return) && o.call(s);
492
+ } finally {
493
+ if (i) throw i.error;
494
+ }
495
+ }
496
+ }
497
+ });
498
+ }, t.prototype.error = function(e) {
499
+ var n = this;
500
+ oe(function() {
501
+ if (n._throwIfClosed(), !n.isStopped) {
502
+ n.hasError = n.isStopped = !0, n.thrownError = e;
503
+ for (var i = n.observers; i.length; )
504
+ i.shift().error(e);
505
+ }
506
+ });
507
+ }, t.prototype.complete = function() {
508
+ var e = this;
509
+ oe(function() {
510
+ if (e._throwIfClosed(), !e.isStopped) {
511
+ e.isStopped = !0;
512
+ for (var n = e.observers; n.length; )
513
+ n.shift().complete();
514
+ }
515
+ });
516
+ }, t.prototype.unsubscribe = function() {
517
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
518
+ }, Object.defineProperty(t.prototype, "observed", {
519
+ get: function() {
520
+ var e;
521
+ return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
522
+ },
523
+ enumerable: !1,
524
+ configurable: !0
525
+ }), t.prototype._trySubscribe = function(e) {
526
+ return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
527
+ }, t.prototype._subscribe = function(e) {
528
+ return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
529
+ }, t.prototype._innerSubscribe = function(e) {
530
+ var n = this, i = this, o = i.hasError, s = i.isStopped, l = i.observers;
531
+ return o || s ? et : (this.currentObservers = null, l.push(e), new se(function() {
532
+ n.currentObservers = null, _e(l, e);
533
+ }));
534
+ }, t.prototype._checkFinalizedStatuses = function(e) {
535
+ var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
536
+ i ? e.error(o) : s && e.complete();
537
+ }, t.prototype.asObservable = function() {
538
+ var e = new qe();
539
+ return e.source = this, e;
540
+ }, t.create = function(e, n) {
541
+ return new $e(e, n);
542
+ }, t;
543
+ }(qe), $e = function(r) {
544
+ K(t, r);
545
+ function t(e, n) {
546
+ var i = r.call(this) || this;
547
+ return i.destination = e, i.source = n, i;
548
+ }
549
+ return t.prototype.next = function(e) {
550
+ var n, i;
551
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, e);
552
+ }, t.prototype.error = function(e) {
553
+ var n, i;
554
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, e);
555
+ }, t.prototype.complete = function() {
556
+ var e, n;
557
+ (n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
558
+ }, t.prototype._subscribe = function(e) {
559
+ var n, i;
560
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && i !== void 0 ? i : et;
561
+ }, t;
562
+ }(nt), it = {
563
+ now: function() {
564
+ return (it.delegate || Date).now();
565
+ },
566
+ delegate: void 0
567
+ }, sr = function(r) {
568
+ K(t, r);
569
+ function t(e, n, i) {
570
+ e === void 0 && (e = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = it);
571
+ var o = r.call(this) || this;
572
+ return o._bufferSize = e, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, n), o;
573
+ }
574
+ return t.prototype.next = function(e) {
575
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, l = n._timestampProvider, u = n._windowTime;
576
+ i || (o.push(e), !s && o.push(l.now() + u)), this._trimBuffer(), r.prototype.next.call(this, e);
577
+ }, t.prototype._subscribe = function(e) {
578
+ this._throwIfClosed(), this._trimBuffer();
579
+ for (var n = this._innerSubscribe(e), i = this, o = i._infiniteTimeWindow, s = i._buffer, l = s.slice(), u = 0; u < l.length && !e.closed; u += o ? 1 : 2)
580
+ e.next(l[u]);
581
+ return this._checkFinalizedStatuses(e), n;
582
+ }, t.prototype._trimBuffer = function() {
583
+ var e = this, n = e._bufferSize, i = e._timestampProvider, o = e._buffer, s = e._infiniteTimeWindow, l = (s ? 1 : 2) * n;
584
+ if (n < 1 / 0 && l < o.length && o.splice(0, o.length - l), !s) {
585
+ for (var u = i.now(), y = 0, M = 1; M < o.length && o[M] <= u; M += 2)
586
+ y = M;
587
+ y && o.splice(0, y + 1);
588
+ }
589
+ }, t;
590
+ }(nt);
591
+ const Je = [], Ne = {}, ar = (r, t = 0) => {
592
+ if (Je.indexOf(r) == -1) {
593
+ const e = new sr(t);
594
+ Ne[r] = e, Je.push(r);
595
+ }
596
+ return Ne[r];
597
+ };
598
+ window.emWidgets = { topic: ar };
599
+ const lr = (r) => r.toLowerCase().match(/android/i) ? "Android" : r.toLowerCase().match(/iphone/i) ? "iPhone" : r.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
600
+ String(Number.MAX_SAFE_INTEGER).length;
601
+ Ke.extend(Bt);
602
+ const Ye = (r) => Ke(r).format("MMMM D, HH:mm"), ur = () => typeof window == "undefined", cr = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2035%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.2075%202.87946H1.125C0.642%202.87946%200.25%203.27134%200.25%203.7542C0.25%203.7542%200.25%204.57383%200.25%205.50367C0.25%206.43177%200.618372%207.32138%201.2755%207.97743C1.93175%208.63436%202.82162%209.00262%203.75%209.00262H4.62062C5.23137%2010.0611%206.37412%2010.7521%207.65162%2010.7521H8.125V13.3763H7.25C6.5535%2013.3763%205.88587%2013.6527%205.39412%2014.1452C4.9015%2014.6368%204.625%2015.3042%204.625%2016.0005C4.625%2016.4344%204.625%2016.8639%204.625%2016.8639L5.5%2017.75H12.5C12.5%2017.75%2013.375%2017.6826%2013.375%2016.8639V16.0005C13.375%2015.3042%2013.0985%2014.6368%2012.6059%2014.1452C12.1141%2013.6527%2011.4465%2013.3763%2010.75%2013.3763H9.875V10.7521H10.3475C11.6259%2010.7521%2012.7678%2010.0611%2013.3794%209.00262H14.25C15.1784%209.00262%2016.0683%208.63436%2016.7245%207.97743C17.3816%207.32138%2017.75%206.43177%2017.75%205.50367V3.7542C17.75%203.27134%2017.358%202.87946%2016.875%202.87946H14.7916L15.1084%201.29619C15.1591%201.03901%2015.0926%200.772216%2014.9264%200.570152C14.7601%200.367213%2014.5116%200.25%2014.2491%200.25L3.74912%200.255246C3.48749%200.255246%203.239%200.373333%203.07275%200.575397C2.90737%200.778336%202.84087%201.04426%202.89162%201.30143L3.2075%202.87946ZM11.625%2016.0005H6.375C6.375%2015.7687%206.46687%2015.5457%206.63137%2015.3821C6.795%2015.2176%207.01813%2015.1258%207.25%2015.1258H10.75C10.9819%2015.1258%2011.205%2015.2176%2011.3686%2015.3821C11.5331%2015.5457%2011.625%2015.7687%2011.625%2016.0005ZM13.1825%201.99948L12.0642%207.59604C11.9006%208.41392%2011.1822%209.00262%2010.3475%209.00262H7.65162C6.81775%209.00262%206.09938%208.41392%205.93575%207.59604L4.8175%202.00384L13.1825%201.99948ZM3.5575%204.62893C3.10337%204.62893%202%204.62893%202%204.62893V5.50367C2%205.96728%202.18462%206.41253%202.51275%206.74055C2.84087%207.06858%203.28625%207.25315%203.75%207.25315H4.0825L3.5575%204.62893ZM14.4416%204.62893L13.9166%207.25315H14.25C14.7137%207.25315%2015.1591%207.06858%2015.4873%206.74055C15.8154%206.41253%2016%205.96728%2016%205.50367V4.62893H14.4416Z'%20fill='white'/%3e%3c/svg%3e", dr = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2030%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.551%204.16666C2.55684%204.17198%202.56317%204.1776%202.57004%204.18349C2.69809%204.29358%202.93213%204.43049%203.2938%204.56201C4.01028%204.82255%205.05531%204.99999%206.24992%204.99999C7.44453%204.99999%208.48956%204.82255%209.20604%204.56201C9.56771%204.43049%209.80175%204.29358%209.9298%204.18349C9.93666%204.1776%209.943%204.17198%209.94884%204.16666C9.943%204.16133%209.93666%204.15572%209.9298%204.14982C9.80175%204.03973%209.56771%203.90282%209.20604%203.77131C8.48956%203.51077%207.44453%203.33332%206.24992%203.33332C5.05531%203.33332%204.01028%203.51077%203.2938%203.77131C2.93213%203.90282%202.69809%204.03973%202.57004%204.14982C2.56317%204.15572%202.55684%204.16133%202.551%204.16666ZM9.99992%206.04163C9.92615%206.07193%209.85128%206.10081%209.77561%206.12833C8.83325%206.47101%207.58661%206.66666%206.24992%206.66666C4.91322%206.66666%203.66659%206.47101%202.72423%206.12833C2.64856%206.10081%202.57369%206.07193%202.49992%206.04163V7.86398C2.5121%207.87898%202.53366%207.90222%202.57004%207.93349C2.69809%208.04358%202.93213%208.18049%203.2938%208.31201C4.01028%208.57254%205.05531%208.74999%206.24992%208.74999C7.44453%208.74999%208.48956%208.57254%209.20604%208.31201C9.56771%208.18049%209.80175%208.04358%209.9298%207.93349C9.96618%207.90222%209.98774%207.87898%209.99992%207.86398V6.04163ZM9.99992%209.79163C9.92615%209.82193%209.85128%209.85081%209.77561%209.87833C8.83325%2010.221%207.58661%2010.4167%206.24992%2010.4167C4.91322%2010.4167%203.66659%2010.221%202.72423%209.87833C2.64856%209.85081%202.57369%209.82193%202.49992%209.79163V11.614C2.5121%2011.629%202.53366%2011.6522%202.57004%2011.6835C2.69809%2011.7936%202.93213%2011.9305%203.2938%2012.062C4.01028%2012.3225%205.05531%2012.5%206.24992%2012.5C7.10597%2012.5%207.89151%2012.4088%208.53614%2012.258C9.09478%2012.1273%209.50237%2011.9625%209.75771%2011.8062C9.83221%2011.6674%209.91307%2011.5324%209.99992%2011.4018V9.79163ZM11.6666%209.83557V4.16666C11.6666%203.60229%2011.3494%203.17239%2011.0163%202.88601C10.6805%202.59731%2010.2434%202.37508%209.77561%202.20498C8.83325%201.86231%207.58661%201.66666%206.24992%201.66666C4.91322%201.66666%203.66659%201.86231%202.72423%202.20498C2.25647%202.37508%201.8193%202.59731%201.4835%202.88601C1.15039%203.17239%200.833252%203.60229%200.833252%204.16666V15.4167C0.833252%2015.981%201.15039%2016.4109%201.4835%2016.6973C1.8193%2016.986%202.25647%2017.2082%202.72423%2017.3783C3.66659%2017.721%204.91322%2017.9167%206.24992%2017.9167C7.25171%2017.9167%208.19625%2017.8069%208.99817%2017.6112C9.42337%2017.5074%209.83222%2017.3738%2010.1963%2017.2062C11.1101%2018.3981%2012.5486%2019.1667%2014.1666%2019.1667C16.928%2019.1667%2019.1666%2016.9281%2019.1666%2014.1667C19.1666%2011.4052%2016.928%209.16666%2014.1666%209.16666C13.2559%209.16666%2012.402%209.41014%2011.6666%209.83557ZM9.16822%2014.2957C9.18087%2014.7953%209.2668%2015.2766%209.41565%2015.7294C9.19988%2015.8216%208.9295%2015.9124%208.60306%2015.992C7.94665%2016.1522%207.13633%2016.25%206.24992%2016.25C5.05531%2016.25%204.01028%2016.0725%203.2938%2015.812C2.93213%2015.6805%202.69809%2015.5436%202.57004%2015.4335C2.53366%2015.4022%202.5121%2015.379%202.49992%2015.364V13.5416C2.57369%2013.5719%202.64856%2013.6008%202.72423%2013.6283C3.66659%2013.971%204.91322%2014.1667%206.24992%2014.1667C7.21803%2014.1667%208.13221%2014.0641%208.9157%2013.8809C9.00426%2013.8602%209.09202%2013.8382%209.17876%2013.815C9.17069%2013.9312%209.16658%2014.0484%209.16658%2014.1667C9.16658%2014.2098%209.16713%2014.2528%209.16822%2014.2957ZM10.8333%2014.1667C10.8333%2016.0076%2012.3256%2017.5%2014.1666%2017.5C16.0075%2017.5%2017.4999%2016.0076%2017.4999%2014.1667C17.4999%2012.3257%2016.0075%2010.8333%2014.1666%2010.8333C12.3256%2010.8333%2010.8333%2012.3257%2010.8333%2014.1667Z'%20fill='white'/%3e%3c/svg%3e", fr = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2035%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.4167%203.33332C15.0986%203.33332%2018.0833%206.31809%2018.0833%209.99999C18.0833%2013.6819%2015.0986%2016.6667%2011.4167%2016.6667C9.32275%2016.6667%207.45468%2015.7023%206.23114%2014.1902C5.94163%2013.8325%205.4169%2013.7771%205.05913%2014.0666C4.70135%2014.3561%204.64602%2014.8809%204.93553%2015.2386C6.46191%2017.1249%208.79848%2018.3333%2011.4167%2018.3333C16.019%2018.3333%2019.75%2014.6024%2019.75%209.99999C19.75%205.39762%2016.019%201.66666%2011.4167%201.66666C7.13809%201.66666%203.61263%204.8911%203.13774%209.04253L3.08938%208.99416C2.76399%208.66867%202.23636%208.66859%201.91087%208.99398C1.58539%209.31937%201.58531%209.84701%201.9107%2010.1725L3.57687%2011.8392C3.73313%2011.9955%203.94507%2012.0833%204.16609%2012.0833C4.3871%2012.0834%204.59908%2011.9956%204.75538%2011.8393L6.42254%2010.1727C6.74803%209.84728%206.74811%209.31964%206.42272%208.99415C6.09733%208.66867%205.56969%208.66859%205.2442%208.99398L4.77099%209.46705C5.0425%206.03433%207.91416%203.33332%2011.4167%203.33332ZM11.4167%204.99999C10.9564%204.99999%2010.5833%205.37309%2010.5833%205.83332V9.554L8.45442%2010.9733C8.07148%2011.2286%207.968%2011.746%208.22329%2012.1289C8.47858%2012.5118%208.99598%2012.6153%209.37892%2012.36L11.8789%2010.6934C12.1107%2010.5388%2012.25%2010.2786%2012.25%209.99999V5.83332C12.25%205.37309%2011.8769%204.99999%2011.4167%204.99999Z'%20fill='white'/%3e%3c/svg%3e", pr = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2035%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.666748%202.00001C0.666748%201.07954%201.41294%200.333344%202.33341%200.333344C3.25389%200.333344%204.00008%201.07954%204.00008%202.00001C4.00008%202.92048%203.25389%203.66668%202.33341%203.66668C1.41294%203.66668%200.666748%202.92048%200.666748%202.00001ZM5.66675%202.00001C5.66675%201.53977%206.03984%201.16668%206.50008%201.16668H16.5001C16.9603%201.16668%2017.3334%201.53977%2017.3334%202.00001C17.3334%202.46025%2016.9603%202.83334%2016.5001%202.83334L6.50008%202.83334C6.03984%202.83334%205.66675%202.46025%205.66675%202.00001ZM0.666748%207.00001C0.666748%206.07954%201.41294%205.33334%202.33341%205.33334C3.25389%205.33334%204.00008%206.07954%204.00008%207.00001C4.00008%207.92048%203.25389%208.66668%202.33341%208.66668C1.41294%208.66668%200.666748%207.92048%200.666748%207.00001ZM5.66675%207.00001C5.66675%206.53977%206.03984%206.16668%206.50008%206.16668L16.5001%206.16668C16.9603%206.16668%2017.3334%206.53977%2017.3334%207.00001C17.3334%207.46025%2016.9603%207.83334%2016.5001%207.83334L6.50008%207.83334C6.03984%207.83334%205.66675%207.46025%205.66675%207.00001ZM0.666748%2012C0.666748%2011.0795%201.41294%2010.3333%202.33341%2010.3333C3.25389%2010.3333%204.00008%2011.0795%204.00008%2012C4.00008%2012.9205%203.25389%2013.6667%202.33341%2013.6667C1.41294%2013.6667%200.666748%2012.9205%200.666748%2012ZM5.66675%2012C5.66675%2011.5398%206.03984%2011.1667%206.50008%2011.1667L16.5001%2011.1667C16.9603%2011.1667%2017.3334%2011.5398%2017.3334%2012C17.3334%2012.4602%2016.9603%2012.8333%2016.5001%2012.8333L6.50008%2012.8333C6.03984%2012.8333%205.66675%2012.4602%205.66675%2012Z'%20fill='white'/%3e%3c/svg%3e", vr = "data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3098%207.23828L5.84025%202.76374L1.3727%207.23828L0%205.8605L5.84025%200.000186443L11.6825%205.8605L10.3098%207.23828Z'%20fill='white'/%3e%3c/svg%3e", hr = "data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37278%200L5.84236%204.47454L10.3099%200L11.6826%201.37778L5.84236%207.23809L7.72476e-05%201.37778L1.37278%200Z'%20fill='white'/%3e%3c/svg%3e";
603
+ if (typeof window != "undefined") {
604
+ let r = function(t) {
605
+ return function(...e) {
606
+ try {
607
+ return t.apply(this, e);
608
+ } catch (n) {
609
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
610
+ return !1;
611
+ throw n;
612
+ }
613
+ };
614
+ };
615
+ customElements.define = r(customElements.define), import("./TournamentLeaderboard-BjmkrtNX.js").then(({ default: t }) => {
616
+ !customElements.get("tournament-leaderboard") && customElements.define("tournament-leaderboard", t.element);
617
+ });
618
+ }
619
+ if (typeof window != "undefined") {
620
+ let r = function(t) {
621
+ return function(...e) {
622
+ try {
623
+ return t.apply(this, e);
624
+ } catch (n) {
625
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
626
+ return !1;
627
+ throw n;
628
+ }
629
+ };
630
+ };
631
+ customElements.define = r(customElements.define), import("./TournamentDetails-CJVSWVXD.js").then((t) => t.T).then(({ default: t }) => {
632
+ !customElements.get("tournament-details") && customElements.define("tournament-details", t.element);
633
+ });
634
+ }
635
+ if (typeof window != "undefined") {
636
+ let r = function(t) {
637
+ return function(...e) {
638
+ try {
639
+ return t.apply(this, e);
640
+ } catch (n) {
641
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
642
+ return !1;
643
+ throw n;
644
+ }
645
+ };
646
+ };
647
+ customElements.define = r(customElements.define), import("./TournamentGames-DIIgfZ-E.js").then(({ default: t }) => {
648
+ !customElements.get("tournament-games") && customElements.define("tournament-games", t.element);
649
+ });
650
+ }
651
+ var mr = $('<span class="Spinner svelte-gxy8gu"></span>'), gr = $("<button><!></button>"), yr = $('<div class="TournamemntRulesContent svelte-gxy8gu"><div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="svelte-gxy8gu"><!> <!> <!> <!> <!> <!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div></div>'), br = $('<div class="DetailsWrapper svelte-gxy8gu"><tournament-details></tournament-details> <!></div> <tournament-leaderboard></tournament-leaderboard> <div class="TournamentRulesWrapper svelte-gxy8gu"><button class="TournamentRulesHeader svelte-gxy8gu"><span class="TournamemntRulesTitle svelte-gxy8gu"> </span> <img alt="Icon" class="Icon svelte-gxy8gu"/></button> <!></div> <tournament-games></tournament-games>', 3), wr = $('<div class="SkeletonWrapper svelte-gxy8gu"><div class="Skeleton Details svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Leaderboard svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Rules svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Games svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div></div>'), xr = $('<div class="TournamentDetailsPageWrapper svelte-gxy8gu"><!> <!></div>');
652
+ const Cr = {
653
+ hash: "svelte-gxy8gu",
654
+ code: `.svelte-gxy8gu,
655
+ .svelte-gxy8gu::before,
656
+ .svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:6px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;&.Details {height:400px;}&.Leaderboard {height:400px;}&.Rules {height:150px;}&.Games {height:300px;}}.SkeletonShimmer.svelte-gxy8gu {width:100%;height:100%;background:linear-gradient(
657
+ 90deg,
658
+ transparent 0%,
659
+ var(--emw-color-bg-secondary, #434343) 50%,
660
+ transparent 100%
661
+ );
662
+ animation: svelte-gxy8gu-loading 1.5s infinite;transform:translateX(-100%);}
663
+
664
+ @keyframes svelte-gxy8gu-loading {
665
+ 0% {
666
+ transform: translateX(-100%);
667
+ }
668
+ 100% {
669
+ transform: translateX(100%);
670
+ }
671
+ }.TournamentDetailsPageWrapper.svelte-gxy8gu {max-width:1300px;margin:auto;background-color:#2C2B2B;padding:10px;border-radius:6px;display:flex;flex-direction:column;gap:10px;}.DetailsWrapper.svelte-gxy8gu {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding-bottom:16px;.ViewPrizesContainer:where(.svelte-gxy8gu) {display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:calc(100% - 32px);margin:auto;padding:10px;}}.ButtonPrimary.svelte-gxy8gu {display:block;width:calc(100% - 32px);margin:auto;background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}&.Enrolled {pointer-events:none;filter:saturate(50%);}}
672
+
673
+ @keyframes svelte-gxy8gu-pulse {
674
+ 0%, 100% {
675
+ background-position: 0% 0%;
676
+ }
677
+ 50% {
678
+ background-position: 0% 100%;
679
+ }
680
+ }.Spinner.svelte-gxy8gu {display:inline-block;width:16px;height:16px;border:2px solid rgba(255, 255, 255, 0.3);border-top-color:var(--emw-color-typography, #ffffff);border-radius:50%;
681
+ animation: svelte-gxy8gu-spin 0.6s linear infinite;}
682
+
683
+ @keyframes svelte-gxy8gu-spin {
684
+ to { transform: rotate(360deg); }
685
+ }
686
+
687
+
688
+ @media (max-width: 750px) {.TournamentDetailsPageWrapper.svelte-gxy8gu {background-color:transparent;}
689
+ }
690
+
691
+ @media (min-width: 1000px) {.ButtonPrimary.svelte-gxy8gu {display:block;width:300px;margin:auto;}
692
+ }.TournamentRulesWrapper.svelte-gxy8gu {border:1px solid var(--emw-color-bg-secondary, #333232);border-radius:4px;overflow:hidden;.TournamentRulesHeader:where(.svelte-gxy8gu) {width:100%;padding:10px;background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-weight:500;font-size:14px;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1rem;transition:background 0.2s;}.TournamentRulesHeader:where(.svelte-gxy8gu):hover {background:var(--emw-color-bg-elements, #4A4A4A)}.Icon:where(.svelte-gxy8gu) {width:15px;height:15px;}.TournamemntRulesContent:where(.svelte-gxy8gu) {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-size:12px;font-weight:200;padding:10px;.TournamentRuleRow:where(.svelte-gxy8gu) {display:flex;gap:10px;margin:6px;.RuleText:where(.svelte-gxy8gu) {align-self:center;}}}}`
693
+ };
694
+ function ot(r, t) {
695
+ var Le, Re;
696
+ Ht(t, !0), jt(r, Cr);
697
+ const e = () => Ut(Vt, "$_", n), [n, i] = Dt(), o = F(t, "initialState"), s = F(t, "endpoint"), l = F(t, "language", 7, "en"), u = F(t, "session"), y = F(t, "tournamentid"), M = F(t, "gamesLimit", 7, 6), V = F(t, "platformProp", 7, null);
698
+ Gt({ withLocale: "en", translations: {} }), Object.keys(Ve).forEach((a) => {
699
+ qt(a, Ve[a]);
700
+ });
701
+ const z = () => {
702
+ Xt(l());
703
+ };
704
+ At(() => {
705
+ z();
706
+ });
707
+ let d = R(Ze(((Le = o()) == null ? void 0 : Le.tournament) || null)), Q = R(Ze([])), x = R(!1), Te = R(void 0), ae = R(!1), Me = R(!1), ke = R(""), ee = R(!1), Ee = R(void 0), J = R(!1);
708
+ const te = ur() ? (Re = V()) != null ? Re : "dk" : lr(window.navigator.userAgent), st = () => Fe(this, null, function* () {
709
+ C(x, !0);
710
+ const a = new URL(`${s()}/v1/tournaments/${y()}`), _ = new Headers();
711
+ u() && _.append("X-SessionId", u());
712
+ const W = { method: "GET", headers: _ };
713
+ a.searchParams.append("language", l()), a.searchParams.append("expand", "games"), a.searchParams.append("pagination", `games(limit=${M()},offset=0)`), a.searchParams.append("platform", te), fetch(a, W).then((f) => f.json()).then((f) => {
714
+ var S, re, P, G, D;
715
+ C(d, f == null ? void 0 : f.item, !0), C(Q, (re = (S = f == null ? void 0 : f.item) == null ? void 0 : S.games) == null ? void 0 : re.items, !0), C(Te, (G = (P = f == null ? void 0 : f.item) == null ? void 0 : P.games) == null ? void 0 : G.total, !0), C(Ee, (D = f == null ? void 0 : f.item) == null ? void 0 : D.metadata, !0);
716
+ }).catch((f) => console.log(f)).finally(() => {
717
+ C(x, !1);
718
+ });
719
+ }), at = () => {
720
+ fetch(`${s()}/tournaments/${c(d).id}`, { headers: { "X-SessionID": u() } }).then((a) => a.json()).then((a) => {
721
+ var _;
722
+ (_ = a == null ? void 0 : a.item) != null && _.playerEnrolled ? C(ee, !0) : (C(Me, !0), C(ke, a.errorMessage, !0));
723
+ }).catch((a) => console.log(a));
724
+ }, lt = () => {
725
+ C(ae, !0);
726
+ const a = new URL(`${s()}/v1/bonus/claim`);
727
+ a.searchParams.append("language", l()), a.searchParams.append("platform", te);
728
+ const _ = new Headers();
729
+ _.append("Content-Type", "application/json"), _.append("X-SessionID", u());
730
+ let W = {};
731
+ c(d).wallets && c(d).wallets.length > 0 && (W = {
732
+ language: l(),
733
+ bonusCode: c(d).wallets[0].code,
734
+ currency: c(d).baseCurrency,
735
+ type: "tournament"
736
+ });
737
+ const f = {
738
+ method: "PUT",
739
+ headers: _,
740
+ body: JSON.stringify(W)
741
+ };
742
+ fetch(a, f).then((S) => S.json()).then((S) => {
743
+ S && (S.success == !0 ? C(ee, !0) : S.errorMessage.match("VersionMismatchException") && at());
744
+ }).catch((S) => {
745
+ console.log(S), C(Me, !0), C(ke, S.errorMessage, !0);
746
+ }).finally(() => C(ae, !1));
747
+ }, ut = () => {
748
+ C(J, !c(J));
749
+ };
750
+ It(() => {
751
+ o() || u() && y() && s() && st();
752
+ });
753
+ var ct = {
754
+ get initialState() {
755
+ return o();
756
+ },
757
+ set initialState(a) {
758
+ o(a), Z();
759
+ },
760
+ get endpoint() {
761
+ return s();
762
+ },
763
+ set endpoint(a) {
764
+ s(a), Z();
765
+ },
766
+ get language() {
767
+ return l();
768
+ },
769
+ set language(a = "en") {
770
+ l(a), Z();
771
+ },
772
+ get session() {
773
+ return u();
774
+ },
775
+ set session(a) {
776
+ u(a), Z();
777
+ },
778
+ get tournamentid() {
779
+ return y();
780
+ },
781
+ set tournamentid(a) {
782
+ y(a), Z();
783
+ },
784
+ get gamesLimit() {
785
+ return M();
786
+ },
787
+ set gamesLimit(a = 6) {
788
+ M(a), Z();
789
+ },
790
+ get platformProp() {
791
+ return V();
792
+ },
793
+ set platformProp(a = null) {
794
+ V(a), Z();
795
+ }
796
+ }, le = xr(), Pe = h(le);
797
+ {
798
+ var dt = (a) => {
799
+ var _ = br(), W = U(_), f = h(W);
800
+ v(() => w(f, "tournament", c(d))), v(() => w(f, "language", l())), v(() => w(f, "enrolled", c(d).playerEnrolled)), ne(f, 1, "svelte-gxy8gu");
801
+ var S = m(f, 2);
802
+ {
803
+ var re = (B) => {
804
+ var L = gr();
805
+ L.__click = lt;
806
+ var N = h(L);
807
+ {
808
+ var Y = (j) => {
809
+ var H = mr();
810
+ T(j, H);
811
+ }, ce = (j) => {
812
+ var H = zt();
813
+ v((de) => Ue(H, de), [() => e()("joinButton")]), T(j, H);
814
+ };
815
+ E(N, (j) => {
816
+ c(ae) ? j(Y) : j(ce, !1);
817
+ });
818
+ }
819
+ g(L), v(() => {
820
+ ne(L, 1, `ButtonPrimary ${c(d).playerEnrolled || c(ee) ? "Enrolled" : ""}`, "svelte-gxy8gu"), L.disabled = c(d).playerEnrolled || c(ee);
821
+ }), T(B, L);
822
+ };
823
+ E(S, (B) => {
824
+ !c(d).playerEnrolled && c(d).state !== "Closed" && B(re);
825
+ });
826
+ }
827
+ g(W);
828
+ var P = m(W, 2);
829
+ v(() => w(P, "endpoint", s())), v(() => w(P, "language", l())), v(() => w(P, "session", u())), v(() => w(P, "tournamentid", y())), v(() => w(P, "platform", te)), ne(P, 1, "svelte-gxy8gu");
830
+ var G = m(P, 2), D = h(G);
831
+ D.__click = ut;
832
+ var ue = h(D), ht = h(ue, !0);
833
+ g(ue);
834
+ var mt = m(ue, 2);
835
+ g(D);
836
+ var gt = m(D, 2);
837
+ {
838
+ var yt = (B) => {
839
+ var L = yr(), N = h(L), Y = h(N), ce = h(Y);
840
+ g(Y);
841
+ var j = m(Y, 2), H = h(j);
842
+ {
843
+ var de = (p) => {
844
+ var b = X(), k = U(b);
845
+ A(k, () => e()("scoreCriteriaType.mostRounds")), T(p, b);
846
+ };
847
+ E(H, (p) => {
848
+ c(d).scoreCriteria == "BetCount" && p(de);
849
+ });
850
+ }
851
+ var Oe = m(H, 2);
852
+ {
853
+ var bt = (p) => {
854
+ var b = X(), k = U(b);
855
+ A(k, () => e()("scoreCriteriaType.winStakeRatio")), T(p, b);
856
+ };
857
+ E(Oe, (p) => {
858
+ c(d).scoreCriteria == "WinStakeRatio" && p(bt);
859
+ });
860
+ }
861
+ var Be = m(Oe, 2);
862
+ {
863
+ var wt = (p) => {
864
+ var b = X(), k = U(b);
865
+ A(k, () => e()("scoreCriteriaType.maxWinStakeRatio")), T(p, b);
866
+ };
867
+ E(Be, (p) => {
868
+ c(d).scoreCriteria == "MaxWinStakeRatio" && p(wt);
869
+ });
870
+ }
871
+ var je = m(Be, 2);
872
+ {
873
+ var xt = (p) => {
874
+ var b = X(), k = U(b);
875
+ A(k, () => e()("scoreCriteriaType.stake")), T(p, b);
876
+ };
877
+ E(je, (p) => {
878
+ c(d).scoreCriteria == "Stake" && p(xt);
879
+ });
880
+ }
881
+ var Ae = m(je, 2);
882
+ {
883
+ var Ct = (p) => {
884
+ var b = X(), k = U(b);
885
+ A(k, () => e()("scoreCriteriaType.win")), T(p, b);
886
+ };
887
+ E(Ae, (p) => {
888
+ c(d).scoreCriteria == "Win" && p(Ct);
889
+ });
890
+ }
891
+ var _t = m(Ae, 2);
892
+ {
893
+ var St = (p) => {
894
+ var b = X(), k = U(b);
895
+ A(k, () => e()("scoreCriteriaType.winBetCount")), T(p, b);
896
+ };
897
+ E(_t, (p) => {
898
+ c(d).scoreCriteria == "WinBetCount" && p(St);
899
+ });
900
+ }
901
+ g(j), g(N);
902
+ var fe = m(N, 2), pe = h(fe), Tt = h(pe);
903
+ g(pe);
904
+ var Ie = m(pe, 2), Mt = h(Ie);
905
+ A(Mt, () => e()("miniBetCount", { values: { betCount: c(d).minBetCount } })), g(Ie), g(fe);
906
+ var ve = m(fe, 2), he = h(ve), kt = h(he);
907
+ g(he);
908
+ var We = m(he, 2), Et = h(We);
909
+ A(Et, () => e()("timePeriod", {
910
+ values: {
911
+ startTime: Ye(c(d).startTime),
912
+ endTime: Ye(c(d).endTime)
913
+ }
914
+ })), g(We), g(ve);
915
+ var De = m(ve, 2), me = h(De), Pt = h(me);
916
+ g(me);
917
+ var He = m(me, 2), Lt = h(He);
918
+ A(Lt, () => e()("terms", { values: { tcUrl: c(d).termsUrl || "#" } })), g(He), g(De), g(L), v(() => {
919
+ q(ce, "src", cr), q(Tt, "src", dr), q(kt, "src", fr), q(Pt, "src", pr);
920
+ }), T(B, L);
921
+ };
922
+ E(gt, (B) => {
923
+ c(J) && B(yt);
924
+ });
925
+ }
926
+ g(G);
927
+ var O = m(G, 2);
928
+ v(() => w(O, "endpoint", s())), v(() => w(O, "language", l())), v(() => w(O, "session", u())), v(() => w(O, "tournamentid", y())), v(() => w(O, "platform", te)), v(() => w(O, "initialGames", c(Q))), v(() => w(O, "totalGames", c(Te))), v(() => w(O, "tournamentMetadata", c(Ee))), ne(O, 1, "svelte-gxy8gu"), v(
929
+ (B) => {
930
+ q(D, "aria-expanded", c(J)), Ue(ht, B), q(mt, "src", c(J) ? vr : hr);
931
+ },
932
+ [() => e()("rules")]
933
+ ), T(a, _);
934
+ };
935
+ E(Pe, (a) => {
936
+ c(d) && a(dt);
937
+ });
938
+ }
939
+ var ft = m(Pe, 2);
940
+ {
941
+ var pt = (a) => {
942
+ var _ = wr();
943
+ T(a, _);
944
+ };
945
+ E(ft, (a) => {
946
+ c(x) && a(pt);
947
+ });
948
+ }
949
+ g(le), T(r, le);
950
+ var vt = Wt(ct);
951
+ return i(), vt;
952
+ }
953
+ Ft(["click"]);
954
+ Zt(
955
+ ot,
956
+ {
957
+ initialState: {},
958
+ endpoint: {},
959
+ language: {},
960
+ session: {},
961
+ tournamentid: {},
962
+ gamesLimit: {},
963
+ platformProp: {}
964
+ },
965
+ [],
966
+ [],
967
+ !0
968
+ );
969
+ const Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
970
+ __proto__: null,
971
+ default: ot
972
+ }, Symbol.toStringTag, { value: "Module" }));
973
+ export {
974
+ Tr as T,
975
+ lr as g
976
+ };