@everymatrix/casino-tournaments-rank 1.65.2 → 1.65.3

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.
@@ -1,13 +1,13 @@
1
1
  var dt = Object.defineProperty, gt = Object.defineProperties;
2
2
  var $t = Object.getOwnPropertyDescriptors;
3
3
  var tt = Object.getOwnPropertySymbols;
4
- var mt = Object.prototype.hasOwnProperty, pt = Object.prototype.propertyIsEnumerable;
4
+ var mt = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable;
5
5
  var G = (e, t, n) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, et = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
7
  mt.call(t, n) && G(e, n, t[n]);
8
8
  if (tt)
9
9
  for (var n of tt(t))
10
- pt.call(t, n) && G(e, n, t[n]);
10
+ _t.call(t, n) && G(e, n, t[n]);
11
11
  return e;
12
12
  }, nt = (e, t) => gt(e, $t(t));
13
13
  var x = (e, t, n) => (G(e, typeof t != "symbol" ? t + "" : t, n), n);
@@ -41,7 +41,7 @@ function V(e) {
41
41
  function ut(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function _t(e, t) {
44
+ function pt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  let q;
@@ -51,7 +51,7 @@ function st(e, t) {
51
51
  function wt(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function _(e, t) {
54
+ function p(e, t) {
55
55
  e.appendChild(t);
56
56
  }
57
57
  function kt(e, t, n) {
@@ -72,7 +72,7 @@ function yt(e) {
72
72
  ) : e.ownerDocument;
73
73
  }
74
74
  function bt(e, t) {
75
- return _(
75
+ return p(
76
76
  /** @type {Document} */
77
77
  e.head || e,
78
78
  t
@@ -216,10 +216,10 @@ function Mt(e, t, n, s, l, r, o = null, f = [-1]) {
216
216
  };
217
217
  o && o(a.root);
218
218
  let y = !1;
219
- if (a.ctx = n ? n(e, t.props || {}, (g, h, ...k) => {
219
+ if (a.ctx = n(e, t.props || {}, (g, h, ...k) => {
220
220
  const w = k.length ? k[0] : h;
221
221
  return a.ctx && l(a.ctx[g], a.ctx[g] = w) && (!a.skip_bound && a.bound[g] && a.bound[g](w), y && It(e, g)), h;
222
- }) : [], a.update(), y = !0, V(a.before_update), a.fragment = s ? s(a.ctx) : !1, t.target) {
222
+ }), a.update(), y = !0, V(a.before_update), a.fragment = s(a.ctx), t.target) {
223
223
  if (t.hydrate) {
224
224
  const g = xt(t.target);
225
225
  a.fragment && a.fragment.l(g), g.forEach(B);
@@ -519,38 +519,38 @@ function qt(e) {
519
519
  e[3] + " casino-tournaments-rank"), u(t, "part", E = /*displayin*/
520
520
  e[3] + " casino-tournaments-rank");
521
521
  },
522
- m(d, p) {
523
- Z(d, t, p), _(t, n), $ && $.m(n, null), _(n, s), _(n, l), _(l, r), _(l, o), _(l, f), _(l, i), _(l, g), _(l, h), _(t, L), _(t, b), m && m.m(b, null), _(b, P), _(b, S), _(S, T), e[14](t);
522
+ m(d, _) {
523
+ Z(d, t, _), p(t, n), $ && $.m(n, null), p(n, s), p(n, l), p(l, r), p(l, o), p(l, f), p(l, i), p(l, g), p(l, h), p(t, L), p(t, b), m && m.m(b, null), p(b, P), p(b, S), p(S, T), e[14](t);
524
524
  },
525
- p(d, [p]) {
525
+ p(d, [_]) {
526
526
  /*showicon*/
527
- d[2] == "true" ? $ || ($ = ct(), $.c(), $.m(n, s)) : $ && ($.d(1), $ = null), p & /*rankprefix*/
527
+ d[2] == "true" ? $ || ($ = ct(), $.c(), $.m(n, s)) : $ && ($.d(1), $ = null), _ & /*rankprefix*/
528
528
  2 && K(
529
529
  r,
530
530
  /*rankprefix*/
531
531
  d[1]
532
- ), p & /*rankinfo*/
532
+ ), _ & /*rankinfo*/
533
533
  128 && K(
534
534
  o,
535
535
  /*rankinfo*/
536
536
  d[7]
537
- ), p & /*userRankChanged, isRankingUp*/
537
+ ), _ & /*userRankChanged, isRankingUp*/
538
538
  96 && y !== (y = "svg Arrow Up " + /*userRankChanged*/
539
539
  (d[5] && /*isRankingUp*/
540
- d[6] ? "Show" : "Hidden")) && u(i, "class", y), p & /*userRankChanged, isRankingUp*/
540
+ d[6] ? "Show" : "Hidden")) && u(i, "class", y), _ & /*userRankChanged, isRankingUp*/
541
541
  96 && w !== (w = "svg Arrow Down " + /*userRankChanged*/
542
542
  (d[5] && !/*isRankingUp*/
543
543
  d[6] ? "Show" : "Hidden")) && u(h, "class", w), /*showicon*/
544
- d[2] == "true" ? m || (m = ot(), m.c(), m.m(b, P)) : m && (m.d(1), m = null), p & /*prize*/
544
+ d[2] == "true" ? m || (m = ot(), m.c(), m.m(b, P)) : m && (m.d(1), m = null), _ & /*prize*/
545
545
  1 && K(
546
546
  T,
547
547
  /*prize*/
548
548
  d[0]
549
- ), p & /*displayin*/
549
+ ), _ & /*displayin*/
550
550
  8 && C !== (C = /*displayin*/
551
- d[3] + " PrizeSec") && u(b, "class", C), p & /*displayin*/
551
+ d[3] + " PrizeSec") && u(b, "class", C), _ & /*displayin*/
552
552
  8 && z !== (z = /*displayin*/
553
- d[3] + " casino-tournaments-rank") && u(t, "class", z), p & /*displayin*/
553
+ d[3] + " casino-tournaments-rank") && u(t, "class", z), _ & /*displayin*/
554
554
  8 && E !== (E = /*displayin*/
555
555
  d[3] + " casino-tournaments-rank") && u(t, "part", E);
556
556
  },
@@ -564,7 +564,7 @@ function qt(e) {
564
564
  function Ft(e, t, n) {
565
565
  let { rankprefix: s = "#" } = t, { showicon: l = "true" } = t, { tournamentid: r = "" } = t, { overallrank: o = "0" } = t, { showoverallrank: f = "true" } = t, { userrank: i = "0" } = t, { prize: a = "PrizeName" } = t, { displayin: y = "row" } = t, { clientstyling: g = "" } = t, { clientstylingurl: h = "" } = t, k, w, L = !1, b = !0, P, S, T, C, z = "";
566
566
  const E = (c) => {
567
- c.data && c.data.type == `TournamentRankInfo_${r}` && ($(c.data.rankInfo), p());
567
+ c.data && c.data.type == `TournamentRankInfo_${r}` && ($(c.data.rankInfo), _());
568
568
  }, $ = (c) => {
569
569
  let H = (R) => {
570
570
  n(9, i = R.rank), n(8, o = R.overallRank), n(0, a = R.prize);
@@ -596,10 +596,10 @@ function Ft(e, t, n) {
596
596
  500
597
597
  );
598
598
  });
599
- }, p = () => {
599
+ }, _ = () => {
600
600
  n(7, z = f == "true" ? `${+i == 0 ? "-" : i || "-"}/${+o == 0 ? "-" : o}` : i);
601
601
  };
602
- At(() => (w = i == null ? void 0 : parseInt(i), C = w, n(9, i = i == null ? "-" : i), window.addEventListener("message", E, !0), p(), () => {
602
+ At(() => (w = i == null ? void 0 : parseInt(i), C = w, n(9, i = i == null ? "-" : i), window.addEventListener("message", E, !0), _(), () => {
603
603
  window.removeEventListener("message", E), clearTimeout(T);
604
604
  }));
605
605
  function ht(c) {
@@ -614,8 +614,8 @@ function Ft(e, t, n) {
614
614
  4112 && k && g && m(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
615
615
  8208 && k && h && d(), e.$$.dirty & /*userrank*/
616
616
  512 && (w = parseInt(i)), e.$$.dirty & /*userrank*/
617
- 512 && i && p(), e.$$.dirty & /*overallrank*/
618
- 256 && o && p();
617
+ 512 && i && _(), e.$$.dirty & /*overallrank*/
618
+ 256 && o && _();
619
619
  }, [
620
620
  a,
621
621
  s,
@@ -641,7 +641,7 @@ class Jt extends jt {
641
641
  t,
642
642
  Ft,
643
643
  qt,
644
- _t,
644
+ pt,
645
645
  {
646
646
  rankprefix: 1,
647
647
  showicon: 2,
@@ -22,7 +22,7 @@ function Y(e, t) {
22
22
  function ot(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function _(e, t) {
25
+ function p(e, t) {
26
26
  e.appendChild(t);
27
27
  }
28
28
  function at(e, t, n) {
@@ -43,7 +43,7 @@ function ut(e) {
43
43
  ) : e.ownerDocument;
44
44
  }
45
45
  function ft(e, t) {
46
- return _(
46
+ return p(
47
47
  /** @type {Document} */
48
48
  e.head || e,
49
49
  t
@@ -99,7 +99,7 @@ const U = [], K = [];
99
99
  let I = [];
100
100
  const tt = [], mt = /* @__PURE__ */ Promise.resolve();
101
101
  let Q = !1;
102
- function pt() {
102
+ function _t() {
103
103
  Q || (Q = !0, mt.then(b));
104
104
  }
105
105
  function W(e) {
@@ -115,7 +115,7 @@ function b() {
115
115
  try {
116
116
  for (; T < U.length; ) {
117
117
  const t = U[T];
118
- T++, j(t), _t(t.$$);
118
+ T++, j(t), pt(t.$$);
119
119
  }
120
120
  } catch (t) {
121
121
  throw U.length = 0, T = 0, t;
@@ -132,7 +132,7 @@ function b() {
132
132
  tt.pop()();
133
133
  Q = !1, G.clear(), j(e);
134
134
  }
135
- function _t(e) {
135
+ function pt(e) {
136
136
  if (e.fragment !== null) {
137
137
  e.update(), J(e.before_update);
138
138
  const t = e.dirty;
@@ -159,7 +159,7 @@ function xt(e, t) {
159
159
  n.fragment !== null && (wt(n.after_update), J(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
160
160
  }
161
161
  function vt(e, t) {
162
- e.$$.dirty[0] === -1 && (U.push(e), pt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
162
+ e.$$.dirty[0] === -1 && (U.push(e), _t(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
163
163
  }
164
164
  function Ct(e, t, n, r, i, o, f = null, a = [-1]) {
165
165
  const s = O;
@@ -187,10 +187,10 @@ function Ct(e, t, n, r, i, o, f = null, a = [-1]) {
187
187
  };
188
188
  f && f(u.root);
189
189
  let C = !1;
190
- if (u.ctx = n ? n(e, t.props || {}, (g, h, ...k) => {
190
+ if (u.ctx = n(e, t.props || {}, (g, h, ...k) => {
191
191
  const w = k.length ? k[0] : h;
192
192
  return u.ctx && i(u.ctx[g], u.ctx[g] = w) && (!u.skip_bound && u.bound[g] && u.bound[g](w), C && vt(e, g)), h;
193
- }) : [], u.update(), C = !0, J(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
193
+ }), u.update(), C = !0, J(u.before_update), u.fragment = r(u.ctx), t.target) {
194
194
  if (t.hydrate) {
195
195
  const g = ht(t.target);
196
196
  u.fragment && u.fragment.l(g), g.forEach(N);
@@ -482,38 +482,38 @@ function Pt(e) {
482
482
  e[3] + " casino-tournaments-rank"), c(t, "part", z = /*displayin*/
483
483
  e[3] + " casino-tournaments-rank");
484
484
  },
485
- m(d, p) {
486
- V(d, t, p), _(t, n), $ && $.m(n, null), _(n, r), _(n, i), _(i, o), _(i, f), _(i, a), _(i, s), _(i, g), _(i, h), _(t, E), _(t, y), m && m.m(y, null), _(y, L), _(y, A), _(A, P), e[14](t);
485
+ m(d, _) {
486
+ V(d, t, _), p(t, n), $ && $.m(n, null), p(n, r), p(n, i), p(i, o), p(i, f), p(i, a), p(i, s), p(i, g), p(i, h), p(t, E), p(t, y), m && m.m(y, null), p(y, L), p(y, A), p(A, P), e[14](t);
487
487
  },
488
- p(d, [p]) {
488
+ p(d, [_]) {
489
489
  /*showicon*/
490
- d[2] == "true" ? $ || ($ = et(), $.c(), $.m(n, r)) : $ && ($.d(1), $ = null), p & /*rankprefix*/
490
+ d[2] == "true" ? $ || ($ = et(), $.c(), $.m(n, r)) : $ && ($.d(1), $ = null), _ & /*rankprefix*/
491
491
  2 && Z(
492
492
  o,
493
493
  /*rankprefix*/
494
494
  d[1]
495
- ), p & /*rankinfo*/
495
+ ), _ & /*rankinfo*/
496
496
  128 && Z(
497
497
  f,
498
498
  /*rankinfo*/
499
499
  d[7]
500
- ), p & /*userRankChanged, isRankingUp*/
500
+ ), _ & /*userRankChanged, isRankingUp*/
501
501
  96 && C !== (C = "svg Arrow Up " + /*userRankChanged*/
502
502
  (d[5] && /*isRankingUp*/
503
- d[6] ? "Show" : "Hidden")) && c(s, "class", C), p & /*userRankChanged, isRankingUp*/
503
+ d[6] ? "Show" : "Hidden")) && c(s, "class", C), _ & /*userRankChanged, isRankingUp*/
504
504
  96 && w !== (w = "svg Arrow Down " + /*userRankChanged*/
505
505
  (d[5] && !/*isRankingUp*/
506
506
  d[6] ? "Show" : "Hidden")) && c(h, "class", w), /*showicon*/
507
- d[2] == "true" ? m || (m = nt(), m.c(), m.m(y, L)) : m && (m.d(1), m = null), p & /*prize*/
507
+ d[2] == "true" ? m || (m = nt(), m.c(), m.m(y, L)) : m && (m.d(1), m = null), _ & /*prize*/
508
508
  1 && Z(
509
509
  P,
510
510
  /*prize*/
511
511
  d[0]
512
- ), p & /*displayin*/
512
+ ), _ & /*displayin*/
513
513
  8 && x !== (x = /*displayin*/
514
- d[3] + " PrizeSec") && c(y, "class", x), p & /*displayin*/
514
+ d[3] + " PrizeSec") && c(y, "class", x), _ & /*displayin*/
515
515
  8 && R !== (R = /*displayin*/
516
- d[3] + " casino-tournaments-rank") && c(t, "class", R), p & /*displayin*/
516
+ d[3] + " casino-tournaments-rank") && c(t, "class", R), _ & /*displayin*/
517
517
  8 && z !== (z = /*displayin*/
518
518
  d[3] + " casino-tournaments-rank") && c(t, "part", z);
519
519
  },
@@ -527,7 +527,7 @@ function Pt(e) {
527
527
  function Tt(e, t, n) {
528
528
  let { rankprefix: r = "#" } = t, { showicon: i = "true" } = t, { tournamentid: o = "" } = t, { overallrank: f = "0" } = t, { showoverallrank: a = "true" } = t, { userrank: s = "0" } = t, { prize: u = "PrizeName" } = t, { displayin: C = "row" } = t, { clientstyling: g = "" } = t, { clientstylingurl: h = "" } = t, k, w, E = !1, y = !0, L, A, P, x, R = "";
529
529
  const z = (l) => {
530
- l.data && l.data.type == `TournamentRankInfo_${o}` && ($(l.data.rankInfo), p());
530
+ l.data && l.data.type == `TournamentRankInfo_${o}` && ($(l.data.rankInfo), _());
531
531
  }, $ = (l) => {
532
532
  let M = (S) => {
533
533
  n(9, s = S.rank), n(8, f = S.overallRank), n(0, u = S.prize);
@@ -559,10 +559,10 @@ function Tt(e, t, n) {
559
559
  500
560
560
  );
561
561
  });
562
- }, p = () => {
562
+ }, _ = () => {
563
563
  n(7, R = a == "true" ? `${+s == 0 ? "-" : s || "-"}/${+f == 0 ? "-" : f}` : s);
564
564
  };
565
- $t(() => (w = s == null ? void 0 : parseInt(s), x = w, n(9, s = s ?? "-"), window.addEventListener("message", z, !0), p(), () => {
565
+ $t(() => (w = s == null ? void 0 : parseInt(s), x = w, n(9, s = s ?? "-"), window.addEventListener("message", z, !0), _(), () => {
566
566
  window.removeEventListener("message", z), clearTimeout(P);
567
567
  }));
568
568
  function lt(l) {
@@ -577,8 +577,8 @@ function Tt(e, t, n) {
577
577
  4112 && k && g && m(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
578
578
  8208 && k && h && d(), e.$$.dirty & /*userrank*/
579
579
  512 && (w = parseInt(s)), e.$$.dirty & /*userrank*/
580
- 512 && s && p(), e.$$.dirty & /*overallrank*/
581
- 256 && f && p();
580
+ 512 && s && _(), e.$$.dirty & /*overallrank*/
581
+ 256 && f && _();
582
582
  }, [
583
583
  u,
584
584
  r,
@@ -0,0 +1 @@
1
+ "use strict";var gt=Object.defineProperty,$t=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var _t=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&G(e,n,t[n]);if(tt)for(var n of tt(t))pt.call(t,n)&&G(e,n,t[n]);return e},nt=(e,t)=>$t(e,mt(t));var x=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((s,l)=>{var r=i=>{try{f(n.next(i))}catch(a){l(a)}},o=i=>{try{f(n.throw(i))}catch(a){l(a)}},f=i=>i.done?s(i.value):Promise.resolve(i.value).then(r,o);f((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function D(){}function at(e){return e()}function rt(){return Object.create(null)}function V(e){e.forEach(at)}function ut(e){return typeof e=="function"}function wt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let q;function st(e,t){return e===t?!0:(q||(q=document.createElement("a")),q.href=t,e===q.href)}function kt(e){return Object.keys(e).length===0}function p(e,t){e.appendChild(t)}function yt(e,t,n){const s=bt(e);if(!s.getElementById(t)){const l=S("style");l.id=t,l.textContent=n,xt(s,l)}}function bt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function xt(e,t){return p(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function B(e){e.parentNode&&e.parentNode.removeChild(e)}function S(e){return document.createElement(e)}function F(e){return document.createTextNode(e)}function j(){return F(" ")}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function vt(e){return Array.from(e.childNodes)}function K(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ct(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let N;function O(e){N=e}function St(){if(!N)throw new Error("Function called outside component initialization");return N}function At(e){St().$$.on_mount.push(e)}const I=[],W=[];let M=[];const lt=[],Rt=Promise.resolve();let X=!1;function zt(){X||(X=!0,Rt.then(v))}function Y(e){M.push(e)}const Q=new Set;let U=0;function v(){if(U!==0)return;const e=N;do{try{for(;U<I.length;){const t=I[U];U++,O(t),Et(t.$$)}}catch(t){throw I.length=0,U=0,t}for(O(null),I.length=0,U=0;W.length;)W.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];Q.has(n)||(Q.add(n),n())}M.length=0}while(I.length);for(;lt.length;)lt.pop()();X=!1,Q.clear(),O(e)}function Et(e){if(e.fragment!==null){e.update(),V(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Y)}}function Pt(e){const t=[],n=[];M.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),M=t}const Lt=new Set;function Tt(e,t){e&&e.i&&(Lt.delete(e),e.i(t))}function Ut(e,t,n){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,n),Y(()=>{const r=e.$$.on_mount.map(at).filter(ut);e.$$.on_destroy?e.$$.on_destroy.push(...r):V(r),e.$$.on_mount=[]}),l.forEach(Y)}function It(e,t){const n=e.$$;n.fragment!==null&&(Pt(n.after_update),V(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Mt(e,t){e.$$.dirty[0]===-1&&(I.push(e),zt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ht(e,t,n,s,l,r,o=null,f=[-1]){const i=N;O(e);const a=e.$$={fragment:null,ctx:[],props:r,update:D,not_equal:l,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(i?i.$$.context:[])),callbacks:rt(),dirty:f,skip_bound:!1,root:t.target||i.$$.root};o&&o(a.root);let y=!1;if(a.ctx=n(e,t.props||{},(g,h,...k)=>{const w=k.length?k[0]:h;return a.ctx&&l(a.ctx[g],a.ctx[g]=w)&&(!a.skip_bound&&a.bound[g]&&a.bound[g](w),y&&Mt(e,g)),h}),a.update(),y=!0,V(a.before_update),a.fragment=s(a.ctx),t.target){if(t.hydrate){const g=vt(t.target);a.fragment&&a.fragment.l(g),g.forEach(B)}else a.fragment&&a.fragment.c();t.intro&&Tt(e.$$.fragment),Ut(e,t.target,t.anchor),v()}O(i)}let ft;typeof HTMLElement=="function"&&(ft=class extends HTMLElement{constructor(t,n,s){super();x(this,"$$ctor");x(this,"$$s");x(this,"$$c");x(this,"$$cn",!1);x(this,"$$d",{});x(this,"$$r",!1);x(this,"$$p_d",{});x(this,"$$l",{});x(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const l=this.$$c.$on(t,n);this.$$l_u.set(n,l)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let o;return{c:function(){o=S("slot"),r!=="default"&&u(o,"name",r)},m:function(a,y){Z(a,o,y)},d:function(a){a&&B(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=Ct(this);for(const r of this.$$s)r in s&&(n[r]=[t(r)]);for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=J(o,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const l=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const o=J(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1};this.$$c.$$.after_update.push(l),l();for(const r in this.$$l)for(const o of this.$$l[r]){const f=this.$$c.$on(r,o);this.$$l_u.set(o,f)}this.$$l={}}})}attributeChangedCallback(t,n,s){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=J(t,s,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function J(e,t,n,s){var r;const l=(r=n[e])==null?void 0:r.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function jt(e,t,n,s,l,r){let o=class extends ft{constructor(){super(e,n,l),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Object.keys(t).forEach(f=>{Object.defineProperty(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(i){var a;i=J(f,i,t),this.$$d[f]=i,(a=this.$$c)==null||a.$set({[f]:i})}})}),s.forEach(f=>{Object.defineProperty(o.prototype,f,{get(){var i;return(i=this.$$c)==null?void 0:i[f]}})}),e.element=o,o}class Ot{constructor(){x(this,"$$");x(this,"$$set")}$destroy(){It(this,1),this.$destroy=D}$on(t,n){if(!ut(n))return D;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const l=s.indexOf(n);l!==-1&&s.splice(l,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Dt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Dt);const Nt="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",Bt="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";function qt(e){yt(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}}")}function ct(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>',u(t,"class","Icon UserIcon"),u(t,"part","Icon UserIcon")},m(n,s){Z(n,t,s)},d(n){n&&B(t)}}}function ot(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.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 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.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 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>',u(t,"class","Icon PrizeIcon"),u(t,"part","Icon PrizeIcon")},m(n,s){Z(n,t,s)},d(n){n&&B(t)}}}function Ft(e){let t,n,s,l,r,o,f,i,a,y,g,h,k,w,P,b,L,A,T,C,z,E,$=e[2]=="true"&&ct(),m=e[2]=="true"&&ot();return{c(){t=S("div"),n=S("div"),$&&$.c(),s=j(),l=S("span"),r=F(e[1]),o=F(e[7]),f=j(),i=S("img"),g=j(),h=S("img"),P=j(),b=S("div"),m&&m.c(),L=j(),A=S("span"),T=F(e[0]),u(i,"part","Rank_Arror_UP"),u(i,"alt","Rank Up"),st(i.src,a=Nt)||u(i,"src",a),u(i,"width","20"),u(i,"height","20"),u(i,"class",y="svg Arrow Up "+(e[5]&&e[6]?"Show":"Hidden")),u(h,"part","Rank_Arror_Down"),u(h,"alt","Rank Down"),st(h.src,k=Bt)||u(h,"src",k),u(h,"width","10"),u(h,"height","10"),u(h,"class",w="svg Arrow Down "+(e[5]&&!e[6]?"Show":"Hidden")),u(l,"class","RankInfo"),u(l,"part","RankText"),u(n,"class","RankSec"),u(n,"part","Rank"),u(A,"class","RankInfo UserPrize"),u(A,"part","PrizeText"),u(b,"class",C=e[3]+" PrizeSec"),u(b,"part","Prize"),u(t,"class",z=e[3]+" casino-tournaments-rank"),u(t,"part",E=e[3]+" casino-tournaments-rank")},m(d,_){Z(d,t,_),p(t,n),$&&$.m(n,null),p(n,s),p(n,l),p(l,r),p(l,o),p(l,f),p(l,i),p(l,g),p(l,h),p(t,P),p(t,b),m&&m.m(b,null),p(b,L),p(b,A),p(A,T),e[14](t)},p(d,[_]){d[2]=="true"?$||($=ct(),$.c(),$.m(n,s)):$&&($.d(1),$=null),_&2&&K(r,d[1]),_&128&&K(o,d[7]),_&96&&y!==(y="svg Arrow Up "+(d[5]&&d[6]?"Show":"Hidden"))&&u(i,"class",y),_&96&&w!==(w="svg Arrow Down "+(d[5]&&!d[6]?"Show":"Hidden"))&&u(h,"class",w),d[2]=="true"?m||(m=ot(),m.c(),m.m(b,L)):m&&(m.d(1),m=null),_&1&&K(T,d[0]),_&8&&C!==(C=d[3]+" PrizeSec")&&u(b,"class",C),_&8&&z!==(z=d[3]+" casino-tournaments-rank")&&u(t,"class",z),_&8&&E!==(E=d[3]+" casino-tournaments-rank")&&u(t,"part",E)},i:D,o:D,d(d){d&&B(t),$&&$.d(),m&&m.d(),e[14](null)}}}function Jt(e,t,n){let{rankprefix:s="#"}=t,{showicon:l="true"}=t,{tournamentid:r=""}=t,{overallrank:o="0"}=t,{showoverallrank:f="true"}=t,{userrank:i="0"}=t,{prize:a="PrizeName"}=t,{displayin:y="row"}=t,{clientstyling:g=""}=t,{clientstylingurl:h=""}=t,k,w,P=!1,b=!0,L,A,T,C,z="";const E=c=>{c.data&&c.data.type==`TournamentRankInfo_${r}`&&($(c.data.rankInfo),_())},$=c=>{let H=R=>{n(9,i=R.rank),n(8,o=R.overallRank),n(0,a=R.prize)};if(!C){C=w,H(c);return}w&&(n(5,P=C!=c.rank),n(6,b=C>c.rank),L=new Date().getTime(),T=setTimeout(()=>{A=new Date().getTime(),(A-L)/1e3>4&&n(5,P=!1),C=w},5e3),H(c))},m=()=>{let c=document.createElement("style");c.innerHTML=g,k.appendChild(c)},d=()=>{let c=new URL(h),H=document.createElement("style");fetch(c.href).then(R=>R.text()).then(R=>{H.innerHTML=R,setTimeout(()=>{k.appendChild(H)},1),setTimeout(()=>{},500)})},_=()=>{n(7,z=f=="true"?`${+i==0?"-":i||"-"}/${+o==0?"-":o}`:i)};At(()=>(w=i==null?void 0:parseInt(i),C=w,n(9,i=i==null?"-":i),window.addEventListener("message",E,!0),_(),()=>{window.removeEventListener("message",E),clearTimeout(T)}));function dt(c){W[c?"unshift":"push"](()=>{k=c,n(4,k)})}return e.$$set=c=>{"rankprefix"in c&&n(1,s=c.rankprefix),"showicon"in c&&n(2,l=c.showicon),"tournamentid"in c&&n(10,r=c.tournamentid),"overallrank"in c&&n(8,o=c.overallrank),"showoverallrank"in c&&n(11,f=c.showoverallrank),"userrank"in c&&n(9,i=c.userrank),"prize"in c&&n(0,a=c.prize),"displayin"in c&&n(3,y=c.displayin),"clientstyling"in c&&n(12,g=c.clientstyling),"clientstylingurl"in c&&n(13,h=c.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&4112&&k&&g&&m(),e.$$.dirty&8208&&k&&h&&d(),e.$$.dirty&512&&(w=parseInt(i)),e.$$.dirty&512&&i&&_(),e.$$.dirty&256&&o&&_()},[a,s,l,y,k,P,b,z,o,i,r,f,g,h,dt]}class ht extends Ot{constructor(t){super(),Ht(this,t,Jt,Ft,wt,{rankprefix:1,showicon:2,tournamentid:10,overallrank:8,showoverallrank:11,userrank:9,prize:0,displayin:3,clientstyling:12,clientstylingurl:13},qt)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),v()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),v()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),v()}get overallrank(){return this.$$.ctx[8]}set overallrank(t){this.$$set({overallrank:t}),v()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),v()}get userrank(){return this.$$.ctx[9]}set userrank(t){this.$$set({userrank:t}),v()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),v()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),v()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),v()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),v()}}jt(ht,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=ht;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsRank-QR2sgBcR.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsRank-Dm__nUVx.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoTournamentsRank-WKoMVYmB.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsRank-C4oh_CB0.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-tournaments-rank") && customElements.define("casino-tournaments-rank", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoTournamentsRank-DUAvuAr6.js";
1
+ import { C as s } from "../components/CasinoTournamentsRank-C_mN2iWY.js";
2
2
  function a(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-rank",
3
- "version": "1.65.2",
3
+ "version": "1.65.3",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-rank.cjs",
6
6
  "module": "esnext/casino-tournaments-rank.js",
@@ -1 +0,0 @@
1
- "use strict";var gt=Object.defineProperty,$t=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var pt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))pt.call(t,n)&&G(e,n,t[n]);if(tt)for(var n of tt(t))_t.call(t,n)&&G(e,n,t[n]);return e},nt=(e,t)=>$t(e,mt(t));var x=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((s,l)=>{var r=i=>{try{f(n.next(i))}catch(a){l(a)}},o=i=>{try{f(n.throw(i))}catch(a){l(a)}},f=i=>i.done?s(i.value):Promise.resolve(i.value).then(r,o);f((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function D(){}function at(e){return e()}function rt(){return Object.create(null)}function V(e){e.forEach(at)}function ut(e){return typeof e=="function"}function wt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let q;function st(e,t){return e===t?!0:(q||(q=document.createElement("a")),q.href=t,e===q.href)}function kt(e){return Object.keys(e).length===0}function _(e,t){e.appendChild(t)}function yt(e,t,n){const s=bt(e);if(!s.getElementById(t)){const l=S("style");l.id=t,l.textContent=n,xt(s,l)}}function bt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function xt(e,t){return _(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function B(e){e.parentNode&&e.parentNode.removeChild(e)}function S(e){return document.createElement(e)}function F(e){return document.createTextNode(e)}function j(){return F(" ")}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function vt(e){return Array.from(e.childNodes)}function K(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ct(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let N;function O(e){N=e}function St(){if(!N)throw new Error("Function called outside component initialization");return N}function At(e){St().$$.on_mount.push(e)}const I=[],W=[];let M=[];const lt=[],Rt=Promise.resolve();let X=!1;function zt(){X||(X=!0,Rt.then(v))}function Y(e){M.push(e)}const Q=new Set;let U=0;function v(){if(U!==0)return;const e=N;do{try{for(;U<I.length;){const t=I[U];U++,O(t),Et(t.$$)}}catch(t){throw I.length=0,U=0,t}for(O(null),I.length=0,U=0;W.length;)W.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];Q.has(n)||(Q.add(n),n())}M.length=0}while(I.length);for(;lt.length;)lt.pop()();X=!1,Q.clear(),O(e)}function Et(e){if(e.fragment!==null){e.update(),V(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Y)}}function Pt(e){const t=[],n=[];M.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),M=t}const Lt=new Set;function Tt(e,t){e&&e.i&&(Lt.delete(e),e.i(t))}function Ut(e,t,n){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,n),Y(()=>{const r=e.$$.on_mount.map(at).filter(ut);e.$$.on_destroy?e.$$.on_destroy.push(...r):V(r),e.$$.on_mount=[]}),l.forEach(Y)}function It(e,t){const n=e.$$;n.fragment!==null&&(Pt(n.after_update),V(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Mt(e,t){e.$$.dirty[0]===-1&&(I.push(e),zt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ht(e,t,n,s,l,r,o=null,f=[-1]){const i=N;O(e);const a=e.$$={fragment:null,ctx:[],props:r,update:D,not_equal:l,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(i?i.$$.context:[])),callbacks:rt(),dirty:f,skip_bound:!1,root:t.target||i.$$.root};o&&o(a.root);let y=!1;if(a.ctx=n?n(e,t.props||{},(g,h,...k)=>{const w=k.length?k[0]:h;return a.ctx&&l(a.ctx[g],a.ctx[g]=w)&&(!a.skip_bound&&a.bound[g]&&a.bound[g](w),y&&Mt(e,g)),h}):[],a.update(),y=!0,V(a.before_update),a.fragment=s?s(a.ctx):!1,t.target){if(t.hydrate){const g=vt(t.target);a.fragment&&a.fragment.l(g),g.forEach(B)}else a.fragment&&a.fragment.c();t.intro&&Tt(e.$$.fragment),Ut(e,t.target,t.anchor),v()}O(i)}let ft;typeof HTMLElement=="function"&&(ft=class extends HTMLElement{constructor(t,n,s){super();x(this,"$$ctor");x(this,"$$s");x(this,"$$c");x(this,"$$cn",!1);x(this,"$$d",{});x(this,"$$r",!1);x(this,"$$p_d",{});x(this,"$$l",{});x(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const l=this.$$c.$on(t,n);this.$$l_u.set(n,l)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let o;return{c:function(){o=S("slot"),r!=="default"&&u(o,"name",r)},m:function(a,y){Z(a,o,y)},d:function(a){a&&B(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=Ct(this);for(const r of this.$$s)r in s&&(n[r]=[t(r)]);for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=J(o,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const l=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const o=J(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1};this.$$c.$$.after_update.push(l),l();for(const r in this.$$l)for(const o of this.$$l[r]){const f=this.$$c.$on(r,o);this.$$l_u.set(o,f)}this.$$l={}}})}attributeChangedCallback(t,n,s){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=J(t,s,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function J(e,t,n,s){var r;const l=(r=n[e])==null?void 0:r.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function jt(e,t,n,s,l,r){let o=class extends ft{constructor(){super(e,n,l),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Object.keys(t).forEach(f=>{Object.defineProperty(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(i){var a;i=J(f,i,t),this.$$d[f]=i,(a=this.$$c)==null||a.$set({[f]:i})}})}),s.forEach(f=>{Object.defineProperty(o.prototype,f,{get(){var i;return(i=this.$$c)==null?void 0:i[f]}})}),e.element=o,o}class Ot{constructor(){x(this,"$$");x(this,"$$set")}$destroy(){It(this,1),this.$destroy=D}$on(t,n){if(!ut(n))return D;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const l=s.indexOf(n);l!==-1&&s.splice(l,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Dt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Dt);const Nt="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",Bt="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";function qt(e){yt(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}}")}function ct(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>',u(t,"class","Icon UserIcon"),u(t,"part","Icon UserIcon")},m(n,s){Z(n,t,s)},d(n){n&&B(t)}}}function ot(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.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 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.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 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>',u(t,"class","Icon PrizeIcon"),u(t,"part","Icon PrizeIcon")},m(n,s){Z(n,t,s)},d(n){n&&B(t)}}}function Ft(e){let t,n,s,l,r,o,f,i,a,y,g,h,k,w,P,b,L,A,T,C,z,E,$=e[2]=="true"&&ct(),m=e[2]=="true"&&ot();return{c(){t=S("div"),n=S("div"),$&&$.c(),s=j(),l=S("span"),r=F(e[1]),o=F(e[7]),f=j(),i=S("img"),g=j(),h=S("img"),P=j(),b=S("div"),m&&m.c(),L=j(),A=S("span"),T=F(e[0]),u(i,"part","Rank_Arror_UP"),u(i,"alt","Rank Up"),st(i.src,a=Nt)||u(i,"src",a),u(i,"width","20"),u(i,"height","20"),u(i,"class",y="svg Arrow Up "+(e[5]&&e[6]?"Show":"Hidden")),u(h,"part","Rank_Arror_Down"),u(h,"alt","Rank Down"),st(h.src,k=Bt)||u(h,"src",k),u(h,"width","10"),u(h,"height","10"),u(h,"class",w="svg Arrow Down "+(e[5]&&!e[6]?"Show":"Hidden")),u(l,"class","RankInfo"),u(l,"part","RankText"),u(n,"class","RankSec"),u(n,"part","Rank"),u(A,"class","RankInfo UserPrize"),u(A,"part","PrizeText"),u(b,"class",C=e[3]+" PrizeSec"),u(b,"part","Prize"),u(t,"class",z=e[3]+" casino-tournaments-rank"),u(t,"part",E=e[3]+" casino-tournaments-rank")},m(d,p){Z(d,t,p),_(t,n),$&&$.m(n,null),_(n,s),_(n,l),_(l,r),_(l,o),_(l,f),_(l,i),_(l,g),_(l,h),_(t,P),_(t,b),m&&m.m(b,null),_(b,L),_(b,A),_(A,T),e[14](t)},p(d,[p]){d[2]=="true"?$||($=ct(),$.c(),$.m(n,s)):$&&($.d(1),$=null),p&2&&K(r,d[1]),p&128&&K(o,d[7]),p&96&&y!==(y="svg Arrow Up "+(d[5]&&d[6]?"Show":"Hidden"))&&u(i,"class",y),p&96&&w!==(w="svg Arrow Down "+(d[5]&&!d[6]?"Show":"Hidden"))&&u(h,"class",w),d[2]=="true"?m||(m=ot(),m.c(),m.m(b,L)):m&&(m.d(1),m=null),p&1&&K(T,d[0]),p&8&&C!==(C=d[3]+" PrizeSec")&&u(b,"class",C),p&8&&z!==(z=d[3]+" casino-tournaments-rank")&&u(t,"class",z),p&8&&E!==(E=d[3]+" casino-tournaments-rank")&&u(t,"part",E)},i:D,o:D,d(d){d&&B(t),$&&$.d(),m&&m.d(),e[14](null)}}}function Jt(e,t,n){let{rankprefix:s="#"}=t,{showicon:l="true"}=t,{tournamentid:r=""}=t,{overallrank:o="0"}=t,{showoverallrank:f="true"}=t,{userrank:i="0"}=t,{prize:a="PrizeName"}=t,{displayin:y="row"}=t,{clientstyling:g=""}=t,{clientstylingurl:h=""}=t,k,w,P=!1,b=!0,L,A,T,C,z="";const E=c=>{c.data&&c.data.type==`TournamentRankInfo_${r}`&&($(c.data.rankInfo),p())},$=c=>{let H=R=>{n(9,i=R.rank),n(8,o=R.overallRank),n(0,a=R.prize)};if(!C){C=w,H(c);return}w&&(n(5,P=C!=c.rank),n(6,b=C>c.rank),L=new Date().getTime(),T=setTimeout(()=>{A=new Date().getTime(),(A-L)/1e3>4&&n(5,P=!1),C=w},5e3),H(c))},m=()=>{let c=document.createElement("style");c.innerHTML=g,k.appendChild(c)},d=()=>{let c=new URL(h),H=document.createElement("style");fetch(c.href).then(R=>R.text()).then(R=>{H.innerHTML=R,setTimeout(()=>{k.appendChild(H)},1),setTimeout(()=>{},500)})},p=()=>{n(7,z=f=="true"?`${+i==0?"-":i||"-"}/${+o==0?"-":o}`:i)};At(()=>(w=i==null?void 0:parseInt(i),C=w,n(9,i=i==null?"-":i),window.addEventListener("message",E,!0),p(),()=>{window.removeEventListener("message",E),clearTimeout(T)}));function dt(c){W[c?"unshift":"push"](()=>{k=c,n(4,k)})}return e.$$set=c=>{"rankprefix"in c&&n(1,s=c.rankprefix),"showicon"in c&&n(2,l=c.showicon),"tournamentid"in c&&n(10,r=c.tournamentid),"overallrank"in c&&n(8,o=c.overallrank),"showoverallrank"in c&&n(11,f=c.showoverallrank),"userrank"in c&&n(9,i=c.userrank),"prize"in c&&n(0,a=c.prize),"displayin"in c&&n(3,y=c.displayin),"clientstyling"in c&&n(12,g=c.clientstyling),"clientstylingurl"in c&&n(13,h=c.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&4112&&k&&g&&m(),e.$$.dirty&8208&&k&&h&&d(),e.$$.dirty&512&&(w=parseInt(i)),e.$$.dirty&512&&i&&p(),e.$$.dirty&256&&o&&p()},[a,s,l,y,k,P,b,z,o,i,r,f,g,h,dt]}class ht extends Ot{constructor(t){super(),Ht(this,t,Jt,Ft,wt,{rankprefix:1,showicon:2,tournamentid:10,overallrank:8,showoverallrank:11,userrank:9,prize:0,displayin:3,clientstyling:12,clientstylingurl:13},qt)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),v()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),v()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),v()}get overallrank(){return this.$$.ctx[8]}set overallrank(t){this.$$set({overallrank:t}),v()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),v()}get userrank(){return this.$$.ctx[9]}set userrank(t){this.$$set({userrank:t}),v()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),v()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),v()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),v()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),v()}}jt(ht,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=ht;