@everymatrix/casino-tournaments-rank 1.44.0 → 1.45.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,728 @@
1
+ var dt = Object.defineProperty, gt = Object.defineProperties;
2
+ var $t = Object.getOwnPropertyDescriptors;
3
+ var et = Object.getOwnPropertySymbols;
4
+ var mt = Object.prototype.hasOwnProperty, pt = Object.prototype.propertyIsEnumerable;
5
+ var Q = (e, t, n) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ mt.call(t, n) && Q(e, n, t[n]);
8
+ if (et)
9
+ for (var n of et(t))
10
+ pt.call(t, n) && Q(e, n, t[n]);
11
+ return e;
12
+ }, it = (e, t) => gt(e, $t(t));
13
+ var b = (e, t, n) => Q(e, typeof t != "symbol" ? t + "" : t, n);
14
+ var st = (e, t, n) => new Promise((r, i) => {
15
+ var s = (f) => {
16
+ try {
17
+ c(n.next(f));
18
+ } catch (a) {
19
+ i(a);
20
+ }
21
+ }, o = (f) => {
22
+ try {
23
+ c(n.throw(f));
24
+ } catch (a) {
25
+ i(a);
26
+ }
27
+ }, c = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(s, o);
28
+ c((n = n.apply(e, t)).next());
29
+ });
30
+ function B() {
31
+ }
32
+ function ut(e) {
33
+ return e();
34
+ }
35
+ function rt() {
36
+ return /* @__PURE__ */ Object.create(null);
37
+ }
38
+ function G(e) {
39
+ e.forEach(ut);
40
+ }
41
+ function ft(e) {
42
+ return typeof e == "function";
43
+ }
44
+ function _t(e, t) {
45
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
+ }
47
+ let J;
48
+ function lt(e, t) {
49
+ return e === t ? !0 : (J || (J = document.createElement("a")), J.href = t, e === J.href);
50
+ }
51
+ function wt(e) {
52
+ return Object.keys(e).length === 0;
53
+ }
54
+ function $(e, t) {
55
+ e.appendChild(t);
56
+ }
57
+ function kt(e, t, n) {
58
+ const r = yt(e);
59
+ if (!r.getElementById(t)) {
60
+ const i = S("style");
61
+ i.id = t, i.textContent = n, bt(r, i);
62
+ }
63
+ }
64
+ function yt(e) {
65
+ if (!e) return document;
66
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
67
+ return t && /** @type {ShadowRoot} */
68
+ t.host ? (
69
+ /** @type {ShadowRoot} */
70
+ t
71
+ ) : e.ownerDocument;
72
+ }
73
+ function bt(e, t) {
74
+ return $(
75
+ /** @type {Document} */
76
+ e.head || e,
77
+ t
78
+ ), t.sheet;
79
+ }
80
+ function K(e, t, n) {
81
+ e.insertBefore(t, n || null);
82
+ }
83
+ function F(e) {
84
+ e.parentNode && e.parentNode.removeChild(e);
85
+ }
86
+ function S(e) {
87
+ return document.createElement(e);
88
+ }
89
+ function T(e) {
90
+ return document.createTextNode(e);
91
+ }
92
+ function O() {
93
+ return T(" ");
94
+ }
95
+ function u(e, t, n) {
96
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
97
+ }
98
+ function vt(e) {
99
+ return Array.from(e.childNodes);
100
+ }
101
+ function V(e, t) {
102
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
103
+ t);
104
+ }
105
+ function xt(e) {
106
+ const t = {};
107
+ return e.childNodes.forEach(
108
+ /** @param {Element} node */
109
+ (n) => {
110
+ t[n.slot || "default"] = !0;
111
+ }
112
+ ), t;
113
+ }
114
+ let q;
115
+ function N(e) {
116
+ q = e;
117
+ }
118
+ function Ct() {
119
+ if (!q) throw new Error("Function called outside component initialization");
120
+ return q;
121
+ }
122
+ function St(e) {
123
+ Ct().$$.on_mount.push(e);
124
+ }
125
+ const U = [], X = [];
126
+ let I = [];
127
+ const ct = [], At = /* @__PURE__ */ Promise.resolve();
128
+ let Y = !1;
129
+ function zt() {
130
+ Y || (Y = !0, At.then(C));
131
+ }
132
+ function tt(e) {
133
+ I.push(e);
134
+ }
135
+ const W = /* @__PURE__ */ new Set();
136
+ let P = 0;
137
+ function C() {
138
+ if (P !== 0)
139
+ return;
140
+ const e = q;
141
+ do {
142
+ try {
143
+ for (; P < U.length; ) {
144
+ const t = U[P];
145
+ P++, N(t), Rt(t.$$);
146
+ }
147
+ } catch (t) {
148
+ throw U.length = 0, P = 0, t;
149
+ }
150
+ for (N(null), U.length = 0, P = 0; X.length; ) X.pop()();
151
+ for (let t = 0; t < I.length; t += 1) {
152
+ const n = I[t];
153
+ W.has(n) || (W.add(n), n());
154
+ }
155
+ I.length = 0;
156
+ } while (U.length);
157
+ for (; ct.length; )
158
+ ct.pop()();
159
+ Y = !1, W.clear(), N(e);
160
+ }
161
+ function Rt(e) {
162
+ if (e.fragment !== null) {
163
+ e.update(), G(e.before_update);
164
+ const t = e.dirty;
165
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
166
+ }
167
+ }
168
+ function Et(e) {
169
+ const t = [], n = [];
170
+ I.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), I = t;
171
+ }
172
+ const Lt = /* @__PURE__ */ new Set();
173
+ function Pt(e, t) {
174
+ e && e.i && (Lt.delete(e), e.i(t));
175
+ }
176
+ function Tt(e, t, n) {
177
+ const { fragment: r, after_update: i } = e.$$;
178
+ r && r.m(t, n), tt(() => {
179
+ const s = e.$$.on_mount.map(ut).filter(ft);
180
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : G(s), e.$$.on_mount = [];
181
+ }), i.forEach(tt);
182
+ }
183
+ function Ut(e, t) {
184
+ const n = e.$$;
185
+ n.fragment !== null && (Et(n.after_update), G(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
186
+ }
187
+ function It(e, t) {
188
+ e.$$.dirty[0] === -1 && (U.push(e), zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
189
+ }
190
+ function Mt(e, t, n, r, i, s, o = null, c = [-1]) {
191
+ const f = q;
192
+ N(e);
193
+ const a = e.$$ = {
194
+ fragment: null,
195
+ ctx: [],
196
+ // state
197
+ props: s,
198
+ update: B,
199
+ not_equal: i,
200
+ bound: rt(),
201
+ // lifecycle
202
+ on_mount: [],
203
+ on_destroy: [],
204
+ on_disconnect: [],
205
+ before_update: [],
206
+ after_update: [],
207
+ context: new Map(t.context || (f ? f.$$.context : [])),
208
+ // everything else
209
+ callbacks: rt(),
210
+ dirty: c,
211
+ skip_bound: !1,
212
+ root: t.target || f.$$.root
213
+ };
214
+ o && o(a.root);
215
+ let p = !1;
216
+ if (a.ctx = n ? n(e, t.props || {}, (m, d, ...k) => {
217
+ const v = k.length ? k[0] : d;
218
+ return a.ctx && i(a.ctx[m], a.ctx[m] = v) && (!a.skip_bound && a.bound[m] && a.bound[m](v), p && It(e, m)), d;
219
+ }) : [], a.update(), p = !0, G(a.before_update), a.fragment = r ? r(a.ctx) : !1, t.target) {
220
+ if (t.hydrate) {
221
+ const m = vt(t.target);
222
+ a.fragment && a.fragment.l(m), m.forEach(F);
223
+ } else
224
+ a.fragment && a.fragment.c();
225
+ t.intro && Pt(e.$$.fragment), Tt(e, t.target, t.anchor), C();
226
+ }
227
+ N(f);
228
+ }
229
+ let ht;
230
+ typeof HTMLElement == "function" && (ht = class extends HTMLElement {
231
+ constructor(t, n, r) {
232
+ super();
233
+ /** The Svelte component constructor */
234
+ b(this, "$$ctor");
235
+ /** Slots */
236
+ b(this, "$$s");
237
+ /** The Svelte component instance */
238
+ b(this, "$$c");
239
+ /** Whether or not the custom element is connected */
240
+ b(this, "$$cn", !1);
241
+ /** Component props data */
242
+ b(this, "$$d", {});
243
+ /** `true` if currently in the process of reflecting component props back to attributes */
244
+ b(this, "$$r", !1);
245
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
246
+ b(this, "$$p_d", {});
247
+ /** @type {Record<string, Function[]>} Event listeners */
248
+ b(this, "$$l", {});
249
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
250
+ b(this, "$$l_u", /* @__PURE__ */ new Map());
251
+ this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
252
+ }
253
+ addEventListener(t, n, r) {
254
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
255
+ const i = this.$$c.$on(t, n);
256
+ this.$$l_u.set(n, i);
257
+ }
258
+ super.addEventListener(t, n, r);
259
+ }
260
+ removeEventListener(t, n, r) {
261
+ if (super.removeEventListener(t, n, r), this.$$c) {
262
+ const i = this.$$l_u.get(n);
263
+ i && (i(), this.$$l_u.delete(n));
264
+ }
265
+ }
266
+ connectedCallback() {
267
+ return st(this, null, function* () {
268
+ if (this.$$cn = !0, !this.$$c) {
269
+ let t = function(s) {
270
+ return () => {
271
+ let o;
272
+ return {
273
+ c: function() {
274
+ o = S("slot"), s !== "default" && u(o, "name", s);
275
+ },
276
+ /**
277
+ * @param {HTMLElement} target
278
+ * @param {HTMLElement} [anchor]
279
+ */
280
+ m: function(a, p) {
281
+ K(a, o, p);
282
+ },
283
+ d: function(a) {
284
+ a && F(o);
285
+ }
286
+ };
287
+ };
288
+ };
289
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
290
+ return;
291
+ const n = {}, r = xt(this);
292
+ for (const s of this.$$s)
293
+ s in r && (n[s] = [t(s)]);
294
+ for (const s of this.attributes) {
295
+ const o = this.$$g_p(s.name);
296
+ o in this.$$d || (this.$$d[o] = Z(o, s.value, this.$$p_d, "toProp"));
297
+ }
298
+ for (const s in this.$$p_d)
299
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
300
+ this.$$c = new this.$$ctor({
301
+ target: this.shadowRoot || this,
302
+ props: it(nt({}, this.$$d), {
303
+ $$slots: n,
304
+ $$scope: {
305
+ ctx: []
306
+ }
307
+ })
308
+ });
309
+ const i = () => {
310
+ this.$$r = !0;
311
+ for (const s in this.$$p_d)
312
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
313
+ const o = Z(
314
+ s,
315
+ this.$$d[s],
316
+ this.$$p_d,
317
+ "toAttribute"
318
+ );
319
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
320
+ }
321
+ this.$$r = !1;
322
+ };
323
+ this.$$c.$$.after_update.push(i), i();
324
+ for (const s in this.$$l)
325
+ for (const o of this.$$l[s]) {
326
+ const c = this.$$c.$on(s, o);
327
+ this.$$l_u.set(o, c);
328
+ }
329
+ this.$$l = {};
330
+ }
331
+ });
332
+ }
333
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
334
+ // and setting attributes through setAttribute etc, this is helpful
335
+ attributeChangedCallback(t, n, r) {
336
+ var i;
337
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Z(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
338
+ }
339
+ disconnectedCallback() {
340
+ this.$$cn = !1, Promise.resolve().then(() => {
341
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
342
+ });
343
+ }
344
+ $$g_p(t) {
345
+ return Object.keys(this.$$p_d).find(
346
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
347
+ ) || t;
348
+ }
349
+ });
350
+ function Z(e, t, n, r) {
351
+ var s;
352
+ const i = (s = n[e]) == null ? void 0 : s.type;
353
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
354
+ return t;
355
+ if (r === "toAttribute")
356
+ switch (i) {
357
+ case "Object":
358
+ case "Array":
359
+ return t == null ? null : JSON.stringify(t);
360
+ case "Boolean":
361
+ return t ? "" : null;
362
+ case "Number":
363
+ return t == null ? null : t;
364
+ default:
365
+ return t;
366
+ }
367
+ else
368
+ switch (i) {
369
+ case "Object":
370
+ case "Array":
371
+ return t && JSON.parse(t);
372
+ case "Boolean":
373
+ return t;
374
+ case "Number":
375
+ return t != null ? +t : t;
376
+ default:
377
+ return t;
378
+ }
379
+ }
380
+ function Ht(e, t, n, r, i, s) {
381
+ let o = class extends ht {
382
+ constructor() {
383
+ super(e, n, i), this.$$p_d = t;
384
+ }
385
+ static get observedAttributes() {
386
+ return Object.keys(t).map(
387
+ (c) => (t[c].attribute || c).toLowerCase()
388
+ );
389
+ }
390
+ };
391
+ return Object.keys(t).forEach((c) => {
392
+ Object.defineProperty(o.prototype, c, {
393
+ get() {
394
+ return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
395
+ },
396
+ set(f) {
397
+ var a;
398
+ f = Z(c, f, t), this.$$d[c] = f, (a = this.$$c) == null || a.$set({ [c]: f });
399
+ }
400
+ });
401
+ }), r.forEach((c) => {
402
+ Object.defineProperty(o.prototype, c, {
403
+ get() {
404
+ var f;
405
+ return (f = this.$$c) == null ? void 0 : f[c];
406
+ }
407
+ });
408
+ }), e.element = /** @type {any} */
409
+ o, o;
410
+ }
411
+ class jt {
412
+ constructor() {
413
+ /**
414
+ * ### PRIVATE API
415
+ *
416
+ * Do not use, may change at any time
417
+ *
418
+ * @type {any}
419
+ */
420
+ b(this, "$$");
421
+ /**
422
+ * ### PRIVATE API
423
+ *
424
+ * Do not use, may change at any time
425
+ *
426
+ * @type {any}
427
+ */
428
+ b(this, "$$set");
429
+ }
430
+ /** @returns {void} */
431
+ $destroy() {
432
+ Ut(this, 1), this.$destroy = B;
433
+ }
434
+ /**
435
+ * @template {Extract<keyof Events, string>} K
436
+ * @param {K} type
437
+ * @param {((e: Events[K]) => void) | null | undefined} callback
438
+ * @returns {() => void}
439
+ */
440
+ $on(t, n) {
441
+ if (!ft(n))
442
+ return B;
443
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
444
+ return r.push(n), () => {
445
+ const i = r.indexOf(n);
446
+ i !== -1 && r.splice(i, 1);
447
+ };
448
+ }
449
+ /**
450
+ * @param {Partial<Props>} props
451
+ * @returns {void}
452
+ */
453
+ $set(t) {
454
+ this.$$set && !wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
455
+ }
456
+ }
457
+ const Dt = "4";
458
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dt);
459
+ const Ot = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='award'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20384%20512'%20class='svg-inline--fa%20fa-award%20fa-w-12%20fa-3x'%3e%3cpath%20fill='currentColor'%20d='M97.12%20362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2%20448.7c-4.39%2010.77%203.81%2022.47%2015.43%2022.03l52.69-2.01L105.56%20507c8%208.44%2022.04%205.81%2026.43-4.96l52.05-127.62c-10.84%206.04-22.87%209.58-35.31%209.58-19.5%200-37.82-7.59-51.61-21.37zM382.8%20448.7l-45.37-111.24c-7.56%205.88-15.92%2010.77-25.43%2013.32-21.07%205.64-16.45%203.18-25.12%2011.85-13.79%2013.78-32.12%2021.37-51.62%2021.37-12.44%200-24.47-3.55-35.31-9.58L252%20502.04c4.39%2010.77%2018.44%2013.4%2026.43%204.96l36.25-38.28%2052.69%202.01c11.62.44%2019.82-11.27%2015.43-22.03zM263%20340c15.28-15.55%2017.03-14.21%2038.79-20.14%2013.89-3.79%2024.75-14.84%2028.47-28.98%207.48-28.4%205.54-24.97%2025.95-45.75%2010.17-10.35%2014.14-25.44%2010.42-39.58-7.47-28.38-7.48-24.42%200-52.83%203.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87%207.6-23.98%207.61-51.9%200-13.89-3.79-28.72.25-38.89%2010.61-20.41%2020.78-17.05%2018.8-44.94%2026.41-13.89%203.79-24.75%2014.84-28.47%2028.98-7.47%2028.39-5.54%2024.97-25.95%2045.75-10.17%2010.35-14.15%2025.44-10.42%2039.58%207.47%2028.36%207.48%2024.4%200%2052.82-3.72%2014.14.25%2029.23%2010.42%2039.59%2020.41%2020.78%2018.47%2017.35%2025.95%2045.75%203.72%2014.14%2014.58%2025.19%2028.47%2028.98C104.6%20325.96%20106.27%20325%20121%20340c13.23%2013.47%2033.84%2015.88%2049.74%205.82a39.676%2039.676%200%200%201%2042.53%200c15.89%2010.06%2036.5%207.65%2049.73-5.82zM97.66%20175.96c0-53.03%2042.24-96.02%2094.34-96.02s94.34%2042.99%2094.34%2096.02-42.24%2096.02-94.34%2096.02-94.34-42.99-94.34-96.02z'%20class=''%3e%3c/path%3e%3c/svg%3e", Nt = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='user'%20class='svg-inline--fa%20fa-user'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M224%20256c70.7%200%20128-57.31%20128-128s-57.3-128-128-128C153.3%200%2096%2057.31%2096%20128S153.3%20256%20224%20256zM274.7%20304H173.3C77.61%20304%200%20381.6%200%20477.3c0%2019.14%2015.52%2034.67%2034.66%2034.67h378.7C432.5%20512%20448%20496.5%20448%20477.3C448%20381.6%20370.4%20304%20274.7%20304z'%3e%3c/path%3e%3c/svg%3e", Bt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", qt = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
460
+ function Ft(e) {
461
+ kt(e, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
462
+ }
463
+ function at(e) {
464
+ let t;
465
+ return {
466
+ c() {
467
+ t = S("span"), t.innerHTML = `<img alt="user" src="${Nt}"/>`, u(t, "class", "Icon UserIcon"), u(t, "part", "Icon UserIcon");
468
+ },
469
+ m(n, r) {
470
+ K(n, t, r);
471
+ },
472
+ d(n) {
473
+ n && F(t);
474
+ }
475
+ };
476
+ }
477
+ function ot(e) {
478
+ let t;
479
+ return {
480
+ c() {
481
+ t = S("span"), t.innerHTML = `<img alt="prize" src="${Ot}"/>`, u(t, "class", "Icon PrizeIcon"), u(t, "part", "Icon PrizeIcon");
482
+ },
483
+ m(n, r) {
484
+ K(n, t, r);
485
+ },
486
+ d(n) {
487
+ n && F(t);
488
+ }
489
+ };
490
+ }
491
+ function Jt(e) {
492
+ let t, n, r, i, s, o = (
493
+ /*overallrank*/
494
+ (e[1] == 0 ? "-" : (
495
+ /*userrank*/
496
+ e[0] ? (
497
+ /*userrank*/
498
+ e[0]
499
+ ) : "-"
500
+ )) + ""
501
+ ), c, f, a = (
502
+ /*overallrank*/
503
+ (e[1] == 0 ? "-" : (
504
+ /*overallrank*/
505
+ e[1]
506
+ )) + ""
507
+ ), p, m, d, k, v, M, _, H, R, z, y, j, E, D, L, l, A, h = (
508
+ /*showicon*/
509
+ e[4] == "true" && at()
510
+ ), w = (
511
+ /*showicon*/
512
+ e[4] == "true" && ot()
513
+ );
514
+ return {
515
+ c() {
516
+ t = S("div"), n = S("div"), h && h.c(), r = O(), i = S("span"), s = T(
517
+ /*rankprefix*/
518
+ e[3]
519
+ ), c = T(o), f = T("/"), p = T(a), m = O(), d = S("img"), M = O(), _ = S("img"), z = O(), y = S("div"), w && w.c(), j = O(), E = S("span"), D = T(
520
+ /*prize*/
521
+ e[2]
522
+ ), u(d, "part", "Rank_Arror_UP"), u(d, "alt", "Rank Up"), lt(d.src, k = Bt) || u(d, "src", k), u(d, "width", "20"), u(d, "height", "20"), u(d, "class", v = "svg Arrow Up " + /*userRankChanged*/
523
+ (e[7] && /*isRankingUp*/
524
+ e[8] ? "Show" : "Hidden")), u(_, "part", "Rank_Arror_Down"), u(_, "alt", "Rank Down"), lt(_.src, H = qt) || u(_, "src", H), u(_, "width", "10"), u(_, "height", "10"), u(_, "class", R = "svg Arrow Down " + /*userRankChanged*/
525
+ (e[7] && !/*isRankingUp*/
526
+ e[8] ? "Show" : "Hidden")), u(i, "class", "RankInfo"), u(i, "part", "RankText"), u(n, "class", "RankSec"), u(n, "part", "Rank"), u(E, "class", "RankInfo UserPrize"), u(E, "part", "PrizeText"), u(y, "class", L = /*displayin*/
527
+ e[5] + " PrizeSec"), u(y, "part", "Prize"), u(t, "class", l = /*displayin*/
528
+ e[5] + " casino-tournaments-rank"), u(t, "part", A = /*displayin*/
529
+ e[5] + " casino-tournaments-rank");
530
+ },
531
+ m(g, x) {
532
+ K(g, t, x), $(t, n), h && h.m(n, null), $(n, r), $(n, i), $(i, s), $(i, c), $(i, f), $(i, p), $(i, m), $(i, d), $(i, M), $(i, _), $(t, z), $(t, y), w && w.m(y, null), $(y, j), $(y, E), $(E, D), e[12](t);
533
+ },
534
+ p(g, [x]) {
535
+ /*showicon*/
536
+ g[4] == "true" ? h || (h = at(), h.c(), h.m(n, r)) : h && (h.d(1), h = null), x & /*rankprefix*/
537
+ 8 && V(
538
+ s,
539
+ /*rankprefix*/
540
+ g[3]
541
+ ), x & /*overallrank, userrank*/
542
+ 3 && o !== (o = /*overallrank*/
543
+ (g[1] == 0 ? "-" : (
544
+ /*userrank*/
545
+ g[0] ? (
546
+ /*userrank*/
547
+ g[0]
548
+ ) : "-"
549
+ )) + "") && V(c, o), x & /*overallrank*/
550
+ 2 && a !== (a = /*overallrank*/
551
+ (g[1] == 0 ? "-" : (
552
+ /*overallrank*/
553
+ g[1]
554
+ )) + "") && V(p, a), x & /*userRankChanged, isRankingUp*/
555
+ 384 && v !== (v = "svg Arrow Up " + /*userRankChanged*/
556
+ (g[7] && /*isRankingUp*/
557
+ g[8] ? "Show" : "Hidden")) && u(d, "class", v), x & /*userRankChanged, isRankingUp*/
558
+ 384 && R !== (R = "svg Arrow Down " + /*userRankChanged*/
559
+ (g[7] && !/*isRankingUp*/
560
+ g[8] ? "Show" : "Hidden")) && u(_, "class", R), /*showicon*/
561
+ g[4] == "true" ? w || (w = ot(), w.c(), w.m(y, j)) : w && (w.d(1), w = null), x & /*prize*/
562
+ 4 && V(
563
+ D,
564
+ /*prize*/
565
+ g[2]
566
+ ), x & /*displayin*/
567
+ 32 && L !== (L = /*displayin*/
568
+ g[5] + " PrizeSec") && u(y, "class", L), x & /*displayin*/
569
+ 32 && l !== (l = /*displayin*/
570
+ g[5] + " casino-tournaments-rank") && u(t, "class", l), x & /*displayin*/
571
+ 32 && A !== (A = /*displayin*/
572
+ g[5] + " casino-tournaments-rank") && u(t, "part", A);
573
+ },
574
+ i: B,
575
+ o: B,
576
+ d(g) {
577
+ g && F(t), h && h.d(), w && w.d(), e[12](null);
578
+ }
579
+ };
580
+ }
581
+ function Vt(e, t, n) {
582
+ let { rankprefix: r = "#" } = t, { showicon: i = "true" } = t, { tournamentid: s = "" } = t, { overallrank: o = "0" } = t, { userrank: c = "0" } = t, { prize: f = "PrizeName" } = t, { displayin: a = "row" } = t, { clientstyling: p = "" } = t, { clientstylingurl: m = "" } = t, d, k, v = !1, M = !0, _, H, R, z;
583
+ const y = (l) => {
584
+ l.data && l.data.type == `TournamentRankInfo_${s}` && j(l.data.rankInfo);
585
+ }, j = (l) => {
586
+ let A = (h) => {
587
+ n(0, c = h.rank), n(1, o = h.overallRank), n(2, f = h.prize);
588
+ };
589
+ if (!z) {
590
+ z = k, A(l);
591
+ return;
592
+ }
593
+ k && (n(7, v = z != l.rank), n(8, M = z > l.rank), _ = (/* @__PURE__ */ new Date()).getTime(), R = setTimeout(
594
+ () => {
595
+ H = (/* @__PURE__ */ new Date()).getTime(), (H - _) / 1e3 > 4 && n(7, v = !1), z = k;
596
+ },
597
+ 5e3
598
+ ), A(l));
599
+ }, E = () => {
600
+ let l = document.createElement("style");
601
+ l.innerHTML = p, d.appendChild(l);
602
+ }, D = () => {
603
+ let l = new URL(m), A = document.createElement("style");
604
+ fetch(l.href).then((h) => h.text()).then((h) => {
605
+ A.innerHTML = h, setTimeout(
606
+ () => {
607
+ d.appendChild(A);
608
+ },
609
+ 1
610
+ ), setTimeout(
611
+ () => {
612
+ },
613
+ 500
614
+ );
615
+ });
616
+ };
617
+ St(() => (k = c == null ? void 0 : parseInt(c), z = k, n(0, c = c == null ? "-" : c), window.addEventListener("message", y, !0), () => {
618
+ window.removeEventListener("message", y), clearTimeout(R);
619
+ }));
620
+ function L(l) {
621
+ X[l ? "unshift" : "push"](() => {
622
+ d = l, n(6, d);
623
+ });
624
+ }
625
+ return e.$$set = (l) => {
626
+ "rankprefix" in l && n(3, r = l.rankprefix), "showicon" in l && n(4, i = l.showicon), "tournamentid" in l && n(9, s = l.tournamentid), "overallrank" in l && n(1, o = l.overallrank), "userrank" in l && n(0, c = l.userrank), "prize" in l && n(2, f = l.prize), "displayin" in l && n(5, a = l.displayin), "clientstyling" in l && n(10, p = l.clientstyling), "clientstylingurl" in l && n(11, m = l.clientstylingurl);
627
+ }, e.$$.update = () => {
628
+ e.$$.dirty & /*customStylingContainer, clientstyling*/
629
+ 1088 && d && p && E(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
630
+ 2112 && d && m && D(), e.$$.dirty & /*userrank*/
631
+ 1 && (k = parseInt(c));
632
+ }, [
633
+ c,
634
+ o,
635
+ f,
636
+ r,
637
+ i,
638
+ a,
639
+ d,
640
+ v,
641
+ M,
642
+ s,
643
+ p,
644
+ m,
645
+ L
646
+ ];
647
+ }
648
+ class Zt extends jt {
649
+ constructor(t) {
650
+ super(), Mt(
651
+ this,
652
+ t,
653
+ Vt,
654
+ Jt,
655
+ _t,
656
+ {
657
+ rankprefix: 3,
658
+ showicon: 4,
659
+ tournamentid: 9,
660
+ overallrank: 1,
661
+ userrank: 0,
662
+ prize: 2,
663
+ displayin: 5,
664
+ clientstyling: 10,
665
+ clientstylingurl: 11
666
+ },
667
+ Ft
668
+ );
669
+ }
670
+ get rankprefix() {
671
+ return this.$$.ctx[3];
672
+ }
673
+ set rankprefix(t) {
674
+ this.$$set({ rankprefix: t }), C();
675
+ }
676
+ get showicon() {
677
+ return this.$$.ctx[4];
678
+ }
679
+ set showicon(t) {
680
+ this.$$set({ showicon: t }), C();
681
+ }
682
+ get tournamentid() {
683
+ return this.$$.ctx[9];
684
+ }
685
+ set tournamentid(t) {
686
+ this.$$set({ tournamentid: t }), C();
687
+ }
688
+ get overallrank() {
689
+ return this.$$.ctx[1];
690
+ }
691
+ set overallrank(t) {
692
+ this.$$set({ overallrank: t }), C();
693
+ }
694
+ get userrank() {
695
+ return this.$$.ctx[0];
696
+ }
697
+ set userrank(t) {
698
+ this.$$set({ userrank: t }), C();
699
+ }
700
+ get prize() {
701
+ return this.$$.ctx[2];
702
+ }
703
+ set prize(t) {
704
+ this.$$set({ prize: t }), C();
705
+ }
706
+ get displayin() {
707
+ return this.$$.ctx[5];
708
+ }
709
+ set displayin(t) {
710
+ this.$$set({ displayin: t }), C();
711
+ }
712
+ get clientstyling() {
713
+ return this.$$.ctx[10];
714
+ }
715
+ set clientstyling(t) {
716
+ this.$$set({ clientstyling: t }), C();
717
+ }
718
+ get clientstylingurl() {
719
+ return this.$$.ctx[11];
720
+ }
721
+ set clientstylingurl(t) {
722
+ this.$$set({ clientstylingurl: t }), C();
723
+ }
724
+ }
725
+ Ht(Zt, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
726
+ export {
727
+ Zt as default
728
+ };