@everymatrix/casino-tournaments-controller 1.99.57 → 1.99.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/components/{CasinoTournamentsController-ClZWffEZ.js → CasinoTournamentsController-CsiHSaP8.js} +33 -58
  2. package/components/{CasinoTournamentsController-weHslg5F.cjs → CasinoTournamentsController-DOgIHtU-.cjs} +2 -2
  3. package/components/{CasinoTournamentsController-sqQUnW62.js → CasinoTournamentsController-DPls4kT6.js} +34 -59
  4. package/components/{CasinoTournamentsFilterController-e8RzVP8h.cjs → CasinoTournamentsFilterController-DbYN2EGs.cjs} +1 -1
  5. package/components/{CasinoTournamentsFilterController-CKF4I9vD.js → CasinoTournamentsFilterController-Dr_s7za7.js} +1 -1
  6. package/components/{CasinoTournamentsFilterController-D65kcykj.js → CasinoTournamentsFilterController-oGPBlxu2.js} +1 -1
  7. package/components/{CasinoTournamentsListController-DRXcKgWc.js → CasinoTournamentsListController-BBOjsBSF.js} +3 -4
  8. package/components/{CasinoTournamentsListController-BNFY9kuN.js → CasinoTournamentsListController-DUyAxBlq.js} +3 -4
  9. package/components/{CasinoTournamentsListController-CzOHaKpQ.cjs → CasinoTournamentsListController-JzRBbRwz.cjs} +2 -2
  10. package/components/{CasinoTournamentsThumbnail-IziNXhPp.js → CasinoTournamentsThumbnail-B4JwagIL.js} +3 -3
  11. package/components/{CasinoTournamentsThumbnail-CytwmIzY.js → CasinoTournamentsThumbnail-Cj1EVR8f.js} +3 -3
  12. package/components/{CasinoTournamentsThumbnail-D9krmwoJ.cjs → CasinoTournamentsThumbnail-WofYyefh.cjs} +1 -1
  13. package/components/{CasinoTournamentsThumbnailController-DjE3sgum.cjs → CasinoTournamentsThumbnailController-CCP30ER5.cjs} +1 -1
  14. package/components/{CasinoTournamentsThumbnailController-C_kJCy-_.js → CasinoTournamentsThumbnailController-CNqQeTbS.js} +8 -11
  15. package/components/{CasinoTournamentsThumbnailController-BuQq33SW.js → CasinoTournamentsThumbnailController-DfzKDvQw.js} +8 -11
  16. package/components/{CasinoTournamentsThumbnailDuration-osUzpqph.cjs → CasinoTournamentsThumbnailDuration-CrMHos5Y.cjs} +1 -1
  17. package/components/{CasinoTournamentsThumbnailDuration-D1izVOFm.js → CasinoTournamentsThumbnailDuration-DCVhax-g.js} +5 -9
  18. package/components/{CasinoTournamentsThumbnailDuration-BrhO3H5L.js → CasinoTournamentsThumbnailDuration-DjMj637T.js} +5 -9
  19. package/components/{CasinoTournamentsThumbnailGamesSlider-Bz3eLPHw.js → CasinoTournamentsThumbnailGamesSlider-ByIc_gAF.js} +2 -3
  20. package/components/{CasinoTournamentsThumbnailGamesSlider-Docuutex.js → CasinoTournamentsThumbnailGamesSlider-CYzXnj_g.js} +2 -3
  21. package/components/{CasinoTournamentsThumbnailGamesSlider-Db99miaT.cjs → CasinoTournamentsThumbnailGamesSlider-hfo5hQid.cjs} +1 -1
  22. package/components/{CasinoTournamentsThumbnailPrizes-AtRlKC7k.cjs → CasinoTournamentsThumbnailPrizes-DCFxw50m.cjs} +1 -1
  23. package/components/{CasinoTournamentsThumbnailPrizes-Ci_OxxiL.js → CasinoTournamentsThumbnailPrizes-DZTJE3Xa.js} +1 -1
  24. package/components/{CasinoTournamentsThumbnailPrizes-C8ozHbXk.js → CasinoTournamentsThumbnailPrizes-Fcx7rvgJ.js} +1 -1
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/{index-97d17652-B6BYeRne.js → index-97d17652-B7kuyr7B.js} +22 -24
  30. package/stencil/{index-97d17652-BOr4KAqq.js → index-97d17652-Cylnizw0.js} +22 -24
  31. package/stencil/{index-b2193545-Dg04r8Mf.js → index-b2193545-D5DMRrXT.js} +2 -3
  32. package/stencil/{index-b2193545-oPMLiBVn.js → index-b2193545-evj4NBzl.js} +2 -3
  33. package/stencil/{ui-image-DyN7Fe9v.js → ui-image-BQB9htll.js} +1 -1
  34. package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-C1j5WYU1.js} +1 -1
  35. package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-Yz-NwCB5.js} +1 -1
  36. package/stencil/{ui-image-BiEqrTjD.js → ui-image-t4iT2lJF.js} +1 -1
  37. package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-B6hxNvK2.js} +2 -2
  38. package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-CeEpO7fa.js} +2 -2
  39. package/stencil/{ui-skeleton-DGlqF493.js → ui-skeleton-DZhnwmHg.js} +2 -2
  40. package/stencil/{ui-skeleton-ed169f8f-Dc_jq3n7.js → ui-skeleton-ed169f8f-BDPQLS5-.js} +1 -1
  41. package/stencil/{ui-skeleton-ed169f8f-CLXtOZ1A.js → ui-skeleton-ed169f8f-Cuuq-Jld.js} +1 -1
  42. package/stencil/{ui-skeleton-CCeXOW4G.js → ui-skeleton-zkSIfvAX.js} +2 -2
@@ -48,8 +48,7 @@ function Bn(e, t, r) {
48
48
  }
49
49
  }
50
50
  function On(e) {
51
- if (!e)
52
- return document;
51
+ if (!e) return document;
53
52
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
54
53
  return t && /** @type {ShadowRoot} */
55
54
  t.host ? (
@@ -160,8 +159,7 @@ function at(e) {
160
159
  ut = e;
161
160
  }
162
161
  function Mn() {
163
- if (!ut)
164
- throw new Error("Function called outside component initialization");
162
+ if (!ut) throw new Error("Function called outside component initialization");
165
163
  return ut;
166
164
  }
167
165
  function Rn(e) {
@@ -192,8 +190,7 @@ function D() {
192
190
  } catch (t) {
193
191
  throw Xe.length = 0, ke = 0, t;
194
192
  }
195
- for (at(null), Xe.length = 0, ke = 0; qt.length; )
196
- qt.pop()();
193
+ for (at(null), Xe.length = 0, ke = 0; qt.length; ) qt.pop()();
197
194
  for (let t = 0; t < We.length; t += 1) {
198
195
  const r = We[t];
199
196
  Dt.has(r) || (Dt.add(r), r());
@@ -515,8 +512,7 @@ var Qt = function(e, t) {
515
512
  return Qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
516
513
  r.__proto__ = n;
517
514
  } || function(r, n) {
518
- for (var i in n)
519
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
515
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
520
516
  }, Qt(e, t);
521
517
  };
522
518
  function ct(e, t) {
@@ -530,40 +526,34 @@ function ct(e, t) {
530
526
  }
531
527
  function Yt(e) {
532
528
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
533
- if (r)
534
- return r.call(e);
535
- if (e && typeof e.length == "number")
536
- return {
537
- next: function() {
538
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
539
- }
540
- };
529
+ if (r) return r.call(e);
530
+ if (e && typeof e.length == "number") return {
531
+ next: function() {
532
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
533
+ }
534
+ };
541
535
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
542
536
  }
543
537
  function Kt(e, t) {
544
538
  var r = typeof Symbol == "function" && e[Symbol.iterator];
545
- if (!r)
546
- return e;
539
+ if (!r) return e;
547
540
  var n = r.call(e), i, o = [], s;
548
541
  try {
549
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
550
- o.push(i.value);
542
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
551
543
  } catch (a) {
552
544
  s = { error: a };
553
545
  } finally {
554
546
  try {
555
547
  i && !i.done && (r = n.return) && r.call(n);
556
548
  } finally {
557
- if (s)
558
- throw s.error;
549
+ if (s) throw s.error;
559
550
  }
560
551
  }
561
552
  return o;
562
553
  }
563
554
  function er(e, t, r) {
564
- if (arguments.length === 2)
565
- for (var n = 0, i = t.length, o; n < i; n++)
566
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
555
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
556
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
567
557
  return e.concat(o || t);
568
558
  }
569
559
  function Se(e) {
@@ -612,8 +602,7 @@ var Bt = function() {
612
602
  try {
613
603
  h && !h.done && (r = a.return) && r.call(a);
614
604
  } finally {
615
- if (t)
616
- throw t.error;
605
+ if (t) throw t.error;
617
606
  }
618
607
  }
619
608
  else
@@ -643,8 +632,7 @@ var Bt = function() {
643
632
  try {
644
633
  _ && !_.done && (i = p.return) && i.call(p);
645
634
  } finally {
646
- if (n)
647
- throw n.error;
635
+ if (n) throw n.error;
648
636
  }
649
637
  }
650
638
  }
@@ -911,8 +899,7 @@ var ai = Wr(function(e) {
911
899
  try {
912
900
  a && !a.done && (o = s.return) && o.call(s);
913
901
  } finally {
914
- if (i)
915
- throw i.error;
902
+ if (i) throw i.error;
916
903
  }
917
904
  }
918
905
  }
@@ -1158,8 +1145,7 @@ var nr = function(e, t) {
1158
1145
  return nr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1159
1146
  r.__proto__ = n;
1160
1147
  } || function(r, n) {
1161
- for (var i in n)
1162
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1148
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1163
1149
  }, nr(e, t);
1164
1150
  };
1165
1151
  function Pt(e, t) {
@@ -1175,25 +1161,22 @@ var Ee = function() {
1175
1161
  return Ee = Object.assign || function(t) {
1176
1162
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1177
1163
  r = arguments[n];
1178
- for (var o in r)
1179
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1164
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1180
1165
  }
1181
1166
  return t;
1182
1167
  }, Ee.apply(this, arguments);
1183
1168
  };
1184
1169
  function Bi(e, t) {
1185
1170
  var r = {};
1186
- for (var n in e)
1187
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1171
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1188
1172
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1189
1173
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1190
1174
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1191
1175
  return r;
1192
1176
  }
1193
1177
  function Ut(e, t, r) {
1194
- if (r || arguments.length === 2)
1195
- for (var n = 0, i = t.length, o; n < i; n++)
1196
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1178
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1179
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1197
1180
  return e.concat(o || Array.prototype.slice.call(t));
1198
1181
  }
1199
1182
  function Gt(e, t) {
@@ -1248,8 +1231,7 @@ var Li = function() {
1248
1231
  return St = Object.assign || function(t) {
1249
1232
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1250
1233
  r = arguments[n];
1251
- for (var o in r)
1252
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1234
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1253
1235
  }
1254
1236
  return t;
1255
1237
  }, St.apply(this, arguments);
@@ -1395,8 +1377,7 @@ var U = function() {
1395
1377
  return U = Object.assign || function(t) {
1396
1378
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1397
1379
  r = arguments[n];
1398
- for (var o in r)
1399
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1380
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1400
1381
  }
1401
1382
  return t;
1402
1383
  }, U.apply(this, arguments);
@@ -3038,8 +3019,7 @@ function zi(e, t) {
3038
3019
  r += h;
3039
3020
  for (; s-- > 0; )
3040
3021
  r = l + r;
3041
- } else
3042
- i === "J" ? r += "H" : r += i;
3022
+ } else i === "J" ? r += "H" : r += i;
3043
3023
  }
3044
3024
  return r;
3045
3025
  }
@@ -3642,8 +3622,7 @@ function lr(e) {
3642
3622
  if (delete t.location, sn(t) || an(t))
3643
3623
  for (var r in t.options)
3644
3624
  delete t.options[r].location, lr(t.options[r].value);
3645
- else
3646
- rn(t) && ln(t.style) || (nn(t) || on(t)) && ir(t.style) ? delete t.style.location : un(t) && lr(t.children);
3625
+ else rn(t) && ln(t.style) || (nn(t) || on(t)) && ir(t.style) ? delete t.style.location : un(t) && lr(t.children);
3647
3626
  });
3648
3627
  }
3649
3628
  function fo(e, t) {
@@ -4838,8 +4817,7 @@ function ns(e, t) {
4838
4817
  }
4839
4818
  }
4840
4819
  function is(e, t) {
4841
- if (!e || !t)
4842
- return;
4820
+ if (!e || !t) return;
4843
4821
  const r = new URL(t);
4844
4822
  fetch(r.href).then((n) => n.text()).then((n) => {
4845
4823
  const i = document.createElement("style");
@@ -4849,8 +4827,7 @@ function is(e, t) {
4849
4827
  });
4850
4828
  }
4851
4829
  function os(e, t, r, n = !1) {
4852
- if (!window.emMessageBus)
4853
- return;
4830
+ if (!window.emMessageBus) return;
4854
4831
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
4855
4832
  return r = ss(e, t), r;
4856
4833
  window[ze] || (window[ze] = {}), r = as(e, t);
@@ -4871,8 +4848,7 @@ function ss(e, t) {
4871
4848
  }
4872
4849
  function as(e, t) {
4873
4850
  return window.emMessageBus.subscribe(t, (r) => {
4874
- if (!e)
4875
- return;
4851
+ if (!e) return;
4876
4852
  const n = e.getRootNode(), i = window[ze];
4877
4853
  let o = i[t] && i[t].sheet;
4878
4854
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
@@ -4895,7 +4871,7 @@ if (typeof window < "u") {
4895
4871
  }
4896
4872
  };
4897
4873
  };
4898
- customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-CKF4I9vD.js").then(({ default: t }) => {
4874
+ customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-Dr_s7za7.js").then(({ default: t }) => {
4899
4875
  !customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
4900
4876
  });
4901
4877
  }
@@ -4911,7 +4887,7 @@ if (typeof window < "u") {
4911
4887
  }
4912
4888
  };
4913
4889
  };
4914
- customElements.define = e(customElements.define), import("./CasinoTournamentsListController-DRXcKgWc.js").then(({ default: t }) => {
4890
+ customElements.define = e(customElements.define), import("./CasinoTournamentsListController-BBOjsBSF.js").then(({ default: t }) => {
4915
4891
  !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
4916
4892
  });
4917
4893
  }
@@ -5497,8 +5473,7 @@ function vs(e, t, r) {
5497
5473
  window.location.href
5498
5474
  ), await mt(s, f, L), he >= te && r(23, Ue = !0);
5499
5475
  }, v = () => (s || (r(19, Re = "Endpoint is missing! Please provide a valid endpointURL."), r(17, Me = !0), console.error(Re)), Me), x = () => {
5500
- if (!Te)
5501
- return !1;
5476
+ if (!Te) return !1;
5502
5477
  v() || (he = parseInt(l, 10), Fr(a), it(s, 0, he));
5503
5478
  }, M = () => {
5504
5479
  Fr(a);
@@ -1,4 +1,4 @@
1
- "use strict";var Xn=Object.defineProperty,zn=Object.defineProperties;var Wn=Object.getOwnPropertyDescriptors;var Er=Object.getOwnPropertySymbols;var qn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable;var kt=(e,t,r)=>t in e?Xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wr=(e,t)=>{for(var r in t||(t={}))qn.call(t,r)&&kt(e,r,t[r]);if(Er)for(var r of Er(t))Zn.call(t,r)&&kt(e,r,t[r]);return e},xr=(e,t)=>zn(e,Wn(t));var ce=(e,t,r)=>(kt(e,typeof t!="symbol"?t+"":t,r),r);var Ne=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(u){i(u)}},s=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(e,t)).next())});function ue(){}function Qr(e){return e()}function Sr(){return Object.create(null)}function rt(e){e.forEach(Qr)}function pt(e){return typeof e=="function"}function br(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let yt;function Jn(e,t){return e===t?!0:(yt||(yt=document.createElement("a")),yt.href=t,e===yt.href)}function Qn(e){return Object.keys(e).length===0}function Yr(e,...t){if(e==null){for(const n of t)n(void 0);return ue}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Kr(e,t,r){e.$$.on_destroy.push(Yr(t,r))}function Yn(e){return e&&pt(e.destroy)?e.destroy:ue}function W(e,t){e.appendChild(t)}function en(e,t,r){const n=Kn(e);if(!n.getElementById(t)){const i=$("style");i.id=t,i.textContent=r,ei(n,i)}}function Kn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ei(e,t){return W(e.head||e,t),t.sheet}function ne(e,t,r){e.insertBefore(t,r||null)}function q(e){e.parentNode&&e.parentNode.removeChild(e)}function ti(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function $(e){return document.createElement(e)}function ri(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ae(e){return document.createTextNode(e)}function Ht(){return Ae(" ")}function tn(){return Ae("")}function Ot(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function U(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function w(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:U(e,t,r)}function ni(e){return Array.from(e.childNodes)}function Me(e,t){t=""+t,e.data!==t&&(e.data=t)}function ii(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}let _t;function oi(){if(_t===void 0){_t=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){_t=!0}}return _t}function si(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const n=$("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const i=oi();let o;return i?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Ot(window,"message",s=>{s.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{o=Ot(n.contentWindow,"resize",t),t()}),W(e,n),()=>{(i||o&&n.contentWindow)&&o(),q(n)}}function ai(e,t,r){e.classList.toggle(t,!!r)}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let ft;function ht(e){ft=e}function li(){if(!ft)throw new Error("Function called outside component initialization");return ft}function rn(e){li().$$.on_mount.push(e)}const Ze=[],Pt=[];let Qe=[];const Tr=[],hi=Promise.resolve();let Kt=!1;function fi(){Kt||(Kt=!0,hi.then(D))}function Bt(e){Qe.push(e)}const Vt=new Set;let We=0;function D(){if(We!==0)return;const e=ft;do{try{for(;We<Ze.length;){const t=Ze[We];We++,ht(t),ci(t.$$)}}catch(t){throw Ze.length=0,We=0,t}for(ht(null),Ze.length=0,We=0;Pt.length;)Pt.pop()();for(let t=0;t<Qe.length;t+=1){const r=Qe[t];Vt.has(r)||(Vt.add(r),r())}Qe.length=0}while(Ze.length);for(;Tr.length;)Tr.pop()();Kt=!1,Vt.clear(),ht(e)}function ci(e){if(e.fragment!==null){e.update(),rt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Bt)}}function di(e){const t=[],r=[];Qe.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Qe=t}const pi=new Set;function mi(e,t){e&&e.i&&(pi.delete(e),e.i(t))}function bi(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function gi(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Bt(()=>{const o=e.$$.on_mount.map(Qr).filter(pt);e.$$.on_destroy?e.$$.on_destroy.push(...o):rt(o),e.$$.on_mount=[]}),i.forEach(Bt)}function vi(e,t){const r=e.$$;r.fragment!==null&&(di(r.after_update),rt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function yi(e,t){e.$$.dirty[0]===-1&&(Ze.push(e),fi(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function nn(e,t,r,n,i,o,s=null,a=[-1]){const l=ft;ht(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ue,not_equal:i,bound:Sr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Sr(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=r?r(e,t.props||{},(d,p,...E)=>{const C=E.length?E[0]:p;return u.ctx&&i(u.ctx[d],u.ctx[d]=C)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](C),c&&yi(e,d)),p}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const d=ni(t.target);u.fragment&&u.fragment.l(d),d.forEach(q)}else u.fragment&&u.fragment.c();t.intro&&mi(e.$$.fragment),gi(e,t.target,t.anchor),D()}ht(l)}let on;typeof HTMLElement=="function"&&(on=class extends HTMLElement{constructor(t,r,n){super();ce(this,"$$ctor");ce(this,"$$s");ce(this,"$$c");ce(this,"$$cn",!1);ce(this,"$$d",{});ce(this,"$$r",!1);ce(this,"$$p_d",{});ce(this,"$$l",{});ce(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Ne(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=$("slot"),o!=="default"&&U(s,"name",o)},m:function(u,c){ne(u,s,c)},d:function(u){u&&q(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ui(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=xt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:xr(wr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=xt(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function xt(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function sn(e,t,r,n,i,o){let s=class extends on{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=xt(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),n.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}class an{constructor(){ce(this,"$$");ce(this,"$$set")}$destroy(){vi(this,1),this.$destroy=ue}$on(t,r){if(!pt(r))return ue;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Qn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _i="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_i);/*! *****************************************************************************
1
+ "use strict";var Xn=Object.defineProperty,zn=Object.defineProperties;var Wn=Object.getOwnPropertyDescriptors;var Er=Object.getOwnPropertySymbols;var qn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable;var kt=(e,t,r)=>t in e?Xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wr=(e,t)=>{for(var r in t||(t={}))qn.call(t,r)&&kt(e,r,t[r]);if(Er)for(var r of Er(t))Zn.call(t,r)&&kt(e,r,t[r]);return e},xr=(e,t)=>zn(e,Wn(t));var ce=(e,t,r)=>kt(e,typeof t!="symbol"?t+"":t,r);var Ne=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(u){i(u)}},s=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(e,t)).next())});function ue(){}function Qr(e){return e()}function Sr(){return Object.create(null)}function rt(e){e.forEach(Qr)}function pt(e){return typeof e=="function"}function br(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let yt;function Jn(e,t){return e===t?!0:(yt||(yt=document.createElement("a")),yt.href=t,e===yt.href)}function Qn(e){return Object.keys(e).length===0}function Yr(e,...t){if(e==null){for(const n of t)n(void 0);return ue}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Kr(e,t,r){e.$$.on_destroy.push(Yr(t,r))}function Yn(e){return e&&pt(e.destroy)?e.destroy:ue}function W(e,t){e.appendChild(t)}function en(e,t,r){const n=Kn(e);if(!n.getElementById(t)){const i=$("style");i.id=t,i.textContent=r,ei(n,i)}}function Kn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ei(e,t){return W(e.head||e,t),t.sheet}function ne(e,t,r){e.insertBefore(t,r||null)}function q(e){e.parentNode&&e.parentNode.removeChild(e)}function ti(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function $(e){return document.createElement(e)}function ri(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ae(e){return document.createTextNode(e)}function Ht(){return Ae(" ")}function tn(){return Ae("")}function Ot(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function U(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function w(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:U(e,t,r)}function ni(e){return Array.from(e.childNodes)}function Me(e,t){t=""+t,e.data!==t&&(e.data=t)}function ii(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}let _t;function oi(){if(_t===void 0){_t=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){_t=!0}}return _t}function si(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const n=$("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const i=oi();let o;return i?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Ot(window,"message",s=>{s.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{o=Ot(n.contentWindow,"resize",t),t()}),W(e,n),()=>{(i||o&&n.contentWindow)&&o(),q(n)}}function ai(e,t,r){e.classList.toggle(t,!!r)}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let ft;function ht(e){ft=e}function li(){if(!ft)throw new Error("Function called outside component initialization");return ft}function rn(e){li().$$.on_mount.push(e)}const Ze=[],Pt=[];let Qe=[];const Tr=[],hi=Promise.resolve();let Kt=!1;function fi(){Kt||(Kt=!0,hi.then(D))}function Bt(e){Qe.push(e)}const Vt=new Set;let We=0;function D(){if(We!==0)return;const e=ft;do{try{for(;We<Ze.length;){const t=Ze[We];We++,ht(t),ci(t.$$)}}catch(t){throw Ze.length=0,We=0,t}for(ht(null),Ze.length=0,We=0;Pt.length;)Pt.pop()();for(let t=0;t<Qe.length;t+=1){const r=Qe[t];Vt.has(r)||(Vt.add(r),r())}Qe.length=0}while(Ze.length);for(;Tr.length;)Tr.pop()();Kt=!1,Vt.clear(),ht(e)}function ci(e){if(e.fragment!==null){e.update(),rt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Bt)}}function di(e){const t=[],r=[];Qe.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Qe=t}const pi=new Set;function mi(e,t){e&&e.i&&(pi.delete(e),e.i(t))}function bi(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function gi(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Bt(()=>{const o=e.$$.on_mount.map(Qr).filter(pt);e.$$.on_destroy?e.$$.on_destroy.push(...o):rt(o),e.$$.on_mount=[]}),i.forEach(Bt)}function vi(e,t){const r=e.$$;r.fragment!==null&&(di(r.after_update),rt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function yi(e,t){e.$$.dirty[0]===-1&&(Ze.push(e),fi(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function nn(e,t,r,n,i,o,s=null,a=[-1]){const l=ft;ht(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ue,not_equal:i,bound:Sr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Sr(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=r?r(e,t.props||{},(d,p,...E)=>{const C=E.length?E[0]:p;return u.ctx&&i(u.ctx[d],u.ctx[d]=C)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](C),c&&yi(e,d)),p}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const d=ni(t.target);u.fragment&&u.fragment.l(d),d.forEach(q)}else u.fragment&&u.fragment.c();t.intro&&mi(e.$$.fragment),gi(e,t.target,t.anchor),D()}ht(l)}let on;typeof HTMLElement=="function"&&(on=class extends HTMLElement{constructor(t,r,n){super();ce(this,"$$ctor");ce(this,"$$s");ce(this,"$$c");ce(this,"$$cn",!1);ce(this,"$$d",{});ce(this,"$$r",!1);ce(this,"$$p_d",{});ce(this,"$$l",{});ce(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Ne(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=$("slot"),o!=="default"&&U(s,"name",o)},m:function(u,c){ne(u,s,c)},d:function(u){u&&q(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ui(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=xt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:xr(wr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=xt(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function xt(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function sn(e,t,r,n,i,o){let s=class extends on{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=xt(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),n.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}class an{constructor(){ce(this,"$$");ce(this,"$$set")}$destroy(){vi(this,1),this.$destroy=ue}$on(t,r){if(!pt(r))return ue;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Qn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _i="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_i);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -21,7 +21,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
21
21
  * https://github.com/Yaffle/EventSource/
22
22
  */(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,s=r.XDomainRequest,a=r.ActiveXObject,l=r.EventSource,u=r.document,c=r.Promise,d=r.fetch,p=r.Response,E=r.TextDecoder,C=r.TextEncoder,O=r.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(h){u.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(h){function b(){}return b.prototype=h,new b}),Date.now||(Date.now=function(){return new Date().getTime()}),O==null){var ee=d;d=function(h,b){var g=b.signal;return ee(h,{headers:b.headers,credentials:b.credentials,cache:b.cache}).then(function(m){var y=m.body.getReader();return g._reader=y,g._aborted&&g._reader.cancel(),{status:m.status,statusText:m.statusText,headers:m.headers,body:{getReader:function(){return y}}}})},O=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function de(){this.bitsNeeded=0,this.codePoint=0}de.prototype.decode=function(h){function b(P,I,_){if(_===1)return P>=128>>I&&P<<I<=2047;if(_===2)return P>=2048>>I&&P<<I<=55295||P>=57344>>I&&P<<I<=65535;if(_===3)return P>=65536>>I&&P<<I<=1114111;throw new Error}function g(P,I){if(P===6*1)return I>>6>15?3:I>31?2:1;if(P===6*2)return I>15?3:2;if(P===6*3)return 3;throw new Error}for(var m=65533,y="",v=this.bitsNeeded,x=this.codePoint,M=0;M<h.length;M+=1){var T=h[M];v!==0&&(T<128||T>191||!b(x<<6|T&63,v-6,g(v,x)))&&(v=0,x=m,y+=String.fromCharCode(x)),v===0?(T>=0&&T<=127?(v=0,x=T):T>=192&&T<=223?(v=6*1,x=T&31):T>=224&&T<=239?(v=6*2,x=T&15):T>=240&&T<=247?(v=6*3,x=T&7):(v=0,x=m),v!==0&&!b(x,v,g(v,x))&&(v=0,x=m)):(v-=6,x=x<<6|T&63),v===0&&(x<=65535?y+=String.fromCharCode(x):(y+=String.fromCharCode(55296+(x-65535-1>>10)),y+=String.fromCharCode(56320+(x-65535-1&1023))))}return this.bitsNeeded=v,this.codePoint=x,y};var ie=function(){try{return new E().decode(new C().encode("test"),{stream:!0})==="test"}catch(h){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+h)}return!1};(E==null||C==null||!ie())&&(E=de);var N=function(){};function k(h){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=N,this.onload=N,this.onerror=N,this.onreadystatechange=N,this._contentType="",this._xhr=h,this._sendTimeout=0,this._abort=N}k.prototype.open=function(h,b){this._abort(!0);var g=this,m=this._xhr,y=1,v=0;this._abort=function(_){g._sendTimeout!==0&&(i(g._sendTimeout),g._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,m.onload=N,m.onerror=N,m.onabort=N,m.onprogress=N,m.onreadystatechange=N,m.abort(),v!==0&&(i(v),v=0),_||(g.readyState=4,g.onabort(null),g.onreadystatechange())),y=0};var x=function(){if(y===1){var _=0,R="",f=void 0;if("contentType"in m)_=200,R="OK",f=m.contentType;else try{_=m.status,R=m.statusText,f=m.getResponseHeader("Content-Type")}catch(L){_=0,R="",f=void 0}_!==0&&(y=2,g.readyState=2,g.status=_,g.statusText=R,g._contentType=f,g.onreadystatechange())}},M=function(){if(x(),y===2||y===3){y=3;var _="";try{_=m.responseText}catch(R){}g.readyState=3,g.responseText=_,g.onprogress()}},T=function(_,R){if((R==null||R.preventDefault==null)&&(R={preventDefault:N}),M(),y===1||y===2||y===3){if(y=4,v!==0&&(i(v),v=0),g.readyState=4,_==="load")g.onload(R);else if(_==="error")g.onerror(R);else if(_==="abort")g.onabort(R);else throw new TypeError;g.onreadystatechange()}},P=function(_){m!=null&&(m.readyState===4?(!("onload"in m)||!("onerror"in m)||!("onabort"in m))&&T(m.responseText===""?"error":"load",_):m.readyState===3?"onprogress"in m||M():m.readyState===2&&x())},I=function(){v=n(function(){I()},500),m.readyState===3&&M()};"onload"in m&&(m.onload=function(_){T("load",_)}),"onerror"in m&&(m.onerror=function(_){T("error",_)}),"onabort"in m&&(m.onabort=function(_){T("abort",_)}),"onprogress"in m&&(m.onprogress=M),"onreadystatechange"in m&&(m.onreadystatechange=function(_){P(_)}),("contentType"in m||!("ontimeout"in o.prototype))&&(b+=(b.indexOf("?")===-1?"?":"&")+"padding=true"),m.open(h,b,!0),"readyState"in m&&(v=n(function(){I()},0))},k.prototype.abort=function(){this._abort(!1)},k.prototype.getResponseHeader=function(h){return this._contentType},k.prototype.setRequestHeader=function(h,b){var g=this._xhr;"setRequestHeader"in g&&g.setRequestHeader(h,b)},k.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},k.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var h=this;h._sendTimeout=n(function(){h._sendTimeout=0,h.send()},4);return}var b=this._xhr;"withCredentials"in b&&(b.withCredentials=this.withCredentials);try{b.send(void 0)}catch(g){throw g}};function Z(h){return h.replace(/[A-Z]/g,function(b){return String.fromCharCode(b.charCodeAt(0)+32)})}function le(h){for(var b=Object.create(null),g=h.split(`\r
23
23
  `),m=0;m<g.length;m+=1){var y=g[m],v=y.split(": "),x=v.shift(),M=v.join(": ");b[Z(x)]=M}this._map=b}le.prototype.get=function(h){return this._map[Z(h)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function ve(){}ve.prototype.open=function(h,b,g,m,y,v,x){h.open("GET",y);var M=0;h.onprogress=function(){var P=h.responseText,I=P.slice(M);M+=I.length,g(I)},h.onerror=function(P){P.preventDefault(),m(new Error("NetworkError"))},h.onload=function(){m(null)},h.onabort=function(){m(null)},h.onreadystatechange=function(){if(h.readyState===o.HEADERS_RECEIVED){var P=h.status,I=h.statusText,_=h.getResponseHeader("Content-Type"),R=h.getAllResponseHeaders();b(P,I,_,new le(R))}},h.withCredentials=v;for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&h.setRequestHeader(T,x[T]);return h.send(),h};function Fe(h){this._headers=h}Fe.prototype.get=function(h){return this._headers.get(h)};function Ue(){}Ue.prototype.open=function(h,b,g,m,y,v,x){var M=null,T=new O,P=T.signal,I=new E;return d(y,{headers:x,credentials:v?"include":"same-origin",signal:P,cache:"no-store"}).then(function(_){return M=_.body.getReader(),b(_.status,_.statusText,_.headers.get("Content-Type"),new Fe(_.headers)),new c(function(R,f){var L=function(){M.read().then(function(B){if(B.done)R(void 0);else{var S=I.decode(B.value,{stream:!0});g(S),L()}}).catch(function(B){f(B)})};L()})}).catch(function(_){if(_.name!=="AbortError")return _}).then(function(_){m(_)}),{abort:function(){M!=null&&M.cancel(),T.abort()}}};function we(){this._listeners=Object.create(null)}function Ge(h){n(function(){throw h},0)}we.prototype.dispatchEvent=function(h){h.target=this;var b=this._listeners[h.type];if(b!=null)for(var g=b.length,m=0;m<g;m+=1){var y=b[m];try{typeof y.handleEvent=="function"?y.handleEvent(h):y.call(this,h)}catch(v){Ge(v)}}},we.prototype.addEventListener=function(h,b){h=String(h);var g=this._listeners,m=g[h];m==null&&(m=[],g[h]=m);for(var y=!1,v=0;v<m.length;v+=1)m[v]===b&&(y=!0);y||m.push(b)},we.prototype.removeEventListener=function(h,b){h=String(h);var g=this._listeners,m=g[h];if(m!=null){for(var y=[],v=0;v<m.length;v+=1)m[v]!==b&&y.push(m[v]);y.length===0?delete g[h]:g[h]=y}};function pe(h){this.type=h,this.target=void 0}function ye(h,b){pe.call(this,h),this.data=b.data,this.lastEventId=b.lastEventId}ye.prototype=Object.create(pe.prototype);function ot(h,b){pe.call(this,h),this.status=b.status,this.statusText=b.statusText,this.headers=b.headers}ot.prototype=Object.create(pe.prototype);function je(h,b){pe.call(this,h),this.error=b.error}je.prototype=Object.create(pe.prototype);var $e=-1,he=0,me=1,J=2,st=-1,te=0,Oe=1,fe=2,ke=3,Ce=/^text\/event\-stream(;.*)?$/i,bt=1e3,be=18e6,Ie=function(h,b){var g=h==null?b:parseInt(h,10);return g!==g&&(g=b),Ve(g)},Ve=function(h){return Math.min(Math.max(h,bt),be)},Pe=function(h,b,g){try{typeof b=="function"&&b.call(h,g)}catch(m){Ge(m)}};function oe(h,b){we.call(this),b=b||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,at(this,h,b)}function gt(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var Gt=d!=null&&p!=null&&"body"in p.prototype;function at(h,b,g){b=String(b);var m=!!g.withCredentials,y=g.lastEventIdQueryParameterName||"lastEventId",v=Ve(1e3),x=Ie(g.heartbeatTimeout,45e3),M="",T=v,P=!1,I=0,_=g.headers||{},R=g.Transport,f=Gt&&R==null?void 0:new k(R!=null?new R:gt()),L=R!=null&&typeof R!="string"?new R:f==null?new Ue:new ve,B=void 0,S=0,re=$e,ge="",Xe="",_e="",z="",Q=te,jt=0,Le=0,kn=function(V,j,se,ae){if(re===he)if(V===200&&se!=null&&Ce.test(se)){re=me,P=Date.now(),T=v,h.readyState=me;var Y=new ot("open",{status:V,statusText:j,headers:ae});h.dispatchEvent(Y),Pe(h,h.onopen,Y)}else{var X="";V!==200?(j&&(j=j.replace(/\s+/g," ")),X="EventSource's response has a status "+V+" "+j+" that is not 200. Aborting the connection."):X="EventSource's response has a Content-Type specifying an unsupported type: "+(se==null?"-":se.replace(/\s+/g," "))+". Aborting the connection.",$t();var Y=new ot("error",{status:V,statusText:j,headers:ae});h.dispatchEvent(Y),Pe(h,h.onerror,Y),console.error(X)}},Vn=function(V){if(re===me){for(var j=-1,se=0;se<V.length;se+=1){var ae=V.charCodeAt(se);(ae===10||ae===13)&&(j=se)}var Y=(j!==-1?z:"")+V.slice(0,j+1);z=(j===-1?z:"")+V.slice(j+1),V!==""&&(P=Date.now(),I+=V.length);for(var X=0;X<Y.length;X+=1){var ae=Y.charCodeAt(X);if(Q===st&&ae===10)Q=te;else if(Q===st&&(Q=te),ae===13||ae===10){if(Q!==te){Q===Oe&&(Le=X+1);var xe=Y.slice(jt,Le-1),Se=Y.slice(Le+(Le<X&&Y.charCodeAt(Le)===32?1:0),X);xe==="data"?(ge+=`
24
- `,ge+=Se):xe==="id"?Xe=Se:xe==="event"?_e=Se:xe==="retry"?(v=Ie(Se,v),T=v):xe==="heartbeatTimeout"&&(x=Ie(Se,x),S!==0&&(i(S),S=n(function(){ut()},x)))}if(Q===te){if(ge!==""){M=Xe,_e===""&&(_e="message");var ze=new ye(_e,{data:ge.slice(1),lastEventId:Xe});if(h.dispatchEvent(ze),_e==="open"?Pe(h,h.onopen,ze):_e==="message"?Pe(h,h.onmessage,ze):_e==="error"&&Pe(h,h.onerror,ze),re===J)return}ge="",_e=""}Q=ae===13?st:te}else Q===te&&(jt=X,Q=Oe),Q===Oe?ae===58&&(Le=X+1,Q=fe):Q===fe&&(Q=ke)}}},_r=function(V){if(re===me||re===he){re=$e,S!==0&&(i(S),S=0),S=n(function(){ut()},T),T=Ve(Math.min(v*16,T*2)),h.readyState=he;var j=new je("error",{error:V});h.dispatchEvent(j),Pe(h,h.onerror,j),V!=null&&console.error(V)}},$t=function(){re=J,B!=null&&(B.abort(),B=void 0),S!==0&&(i(S),S=0),h.readyState=J},ut=function(){if(S=0,re!==$e){if(!P&&B!=null)_r(new Error("No activity within "+x+" milliseconds. "+(re===he?"No response received.":I+" chars received.")+" Reconnecting.")),B!=null&&(B.abort(),B=void 0);else{var V=Math.max((P||Date.now())+x-Date.now(),1);P=!1,S=n(function(){ut()},V)}return}P=!1,I=0,S=n(function(){ut()},x),re=he,ge="",_e="",Xe=M,z="",jt=0,Le=0,Q=te;var j=b;if(b.slice(0,5)!=="data:"&&b.slice(0,5)!=="blob:"&&M!==""){var se=b.indexOf("?");j=se===-1?b:b.slice(0,se+1)+b.slice(se+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Se,ze){return ze===y?"":Se}),j+=(b.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(M)}var ae=h.withCredentials,Y={};Y.Accept="text/event-stream";var X=h.headers;if(X!=null)for(var xe in X)Object.prototype.hasOwnProperty.call(X,xe)&&(Y[xe]=X[xe]);try{B=L.open(f,kn,Vn,_r,j,ae,Y)}catch(Se){throw $t(),Se}};h.url=b,h.readyState=he,h.withCredentials=m,h.headers=_,h._close=$t,ut()}oe.prototype=Object.create(we.prototype),oe.prototype.CONNECTING=he,oe.prototype.OPEN=me,oe.prototype.CLOSED=J,oe.prototype.close=function(){this._close()},oe.CONNECTING=he,oe.OPEN=me,oe.CLOSED=J,oe.prototype.withCredentials=void 0;var vt=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(vt=oe),function(h){{var b=h(t);b!==void 0&&(e.exports=b)}}(function(h){h.EventSourcePolyfill=oe,h.NativeEventSource=l,h.EventSource=vt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ri:globalThis)})(mr,mr.exports);var As=mr.exports;const Je="__WIDGET_GLOBAL_STYLE_CACHE__";function Un(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Gn(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function jn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Hs(e,t),r;window[Je]||(window[Je]={}),r=Os(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[Je][t]){const a=window[Je][t];a.refCount>1?a.refCount=a.refCount-1:delete window[Je][t]}o()};return r.unsubscribe=s,r}function Hs(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Os(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[Je];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const s=n.adoptedStyleSheets||[];s.includes(o)||(n.adoptedStyleSheets=[...s,o])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){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"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsFilterController-e8RzVP8h.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-filter-controller")&&customElements.define("casino-tournaments-filter-controller",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){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"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsListController-CzOHaKpQ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",t.element)})}const qr=e=>e.length>0&&e!="false";function Ps(e){en(e,"svelte-v0e19m","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}")}function Bs(e){let t,r,n,i,o,s,a=e[21]&&Zr(e);function l(p,E){return p[22]==0?Ls:Is}let u=l(e),c=u(e),d=!e[23]&&Jr(e);return{c(){t=$("div"),r=$("div"),n=$("div"),a&&a.c(),i=Ht(),o=$("div"),c.c(),s=Ht(),d&&d.c(),U(n,"class","FirstRow"),U(n,"part","FirstRow"),U(o,"class","SecondRow"),U(o,"part","SecondRow"),U(r,"class","Tournaments"),U(r,"part","Tournaments"),U(t,"class","TournamentsWrapper"),U(t,"part","TournamentsWrapper")},m(p,E){ne(p,t,E),W(t,r),W(r,n),a&&a.m(n,null),W(r,i),W(r,o),c.m(o,null),W(r,s),d&&d.m(r,null)},p(p,E){p[21]?a?a.p(p,E):(a=Zr(p),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u===(u=l(p))&&c?c.p(p,E):(c.d(1),c=u(p),c&&(c.c(),c.m(o,null))),p[23]?d&&(d.d(1),d=null):d?d.p(p,E):(d=Jr(p),d.c(),d.m(r,null))},d(p){p&&q(t),a&&a.d(),c.d(),d&&d.d()}}}function Cs(e){let t,r=e[24]("500")+"",n,i,o,s;return{c(){t=$("p"),n=Ae(r),i=Ht(),o=$("p"),s=Ae(e[19])},m(a,l){ne(a,t,l),W(t,n),ne(a,i,l),ne(a,o,l),W(o,s)},p(a,l){l[0]&16777216&&r!==(r=a[24]("500")+"")&&Me(n,r),l[0]&524288&&Me(s,a[19])},d(a){a&&(q(t),q(i),q(o))}}}function Zr(e){let t;return{c(){t=$("casino-tournaments-filter-controller"),w(t,"clientstyling",e[13]),w(t,"clientstylingurl",e[14]),w(t,"translationurl",e[4]),w(t,"mbsource",e[15]),w(t,"filters",Fs),w(t,"activefilters",e[6]),w(t,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(r,n){ne(r,t,n)},p(r,n){n[0]&8192&&w(t,"clientstyling",r[13]),n[0]&16384&&w(t,"clientstylingurl",r[14]),n[0]&16&&w(t,"translationurl",r[4]),n[0]&32768&&w(t,"mbsource",r[15]),n[0]&64&&w(t,"activefilters",r[6])},d(r){r&&q(t)}}}function Is(e){let t;return{c(){t=$("casino-tournaments-list-controller"),w(t,"clientstyling",e[13]),w(t,"clientstylingurl",e[14]),w(t,"translationurl",e[4]),w(t,"userid",e[1]),w(t,"numberoftournaments",e[5]),w(t,"loginurl",e[9]),w(t,"loginevent",e[7]),w(t,"registerurl",e[10]),w(t,"registerevent",e[8]),w(t,"lang",e[3]),w(t,"currency",e[11]),w(t,"keepbrowsercontext",e[12]),w(t,"mbsource",e[15]),w(t,"session",e[0]),w(t,"endpoint",e[2]),w(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
24
+ `,ge+=Se):xe==="id"?Xe=Se:xe==="event"?_e=Se:xe==="retry"?(v=Ie(Se,v),T=v):xe==="heartbeatTimeout"&&(x=Ie(Se,x),S!==0&&(i(S),S=n(function(){ut()},x)))}if(Q===te){if(ge!==""){M=Xe,_e===""&&(_e="message");var ze=new ye(_e,{data:ge.slice(1),lastEventId:Xe});if(h.dispatchEvent(ze),_e==="open"?Pe(h,h.onopen,ze):_e==="message"?Pe(h,h.onmessage,ze):_e==="error"&&Pe(h,h.onerror,ze),re===J)return}ge="",_e=""}Q=ae===13?st:te}else Q===te&&(jt=X,Q=Oe),Q===Oe?ae===58&&(Le=X+1,Q=fe):Q===fe&&(Q=ke)}}},_r=function(V){if(re===me||re===he){re=$e,S!==0&&(i(S),S=0),S=n(function(){ut()},T),T=Ve(Math.min(v*16,T*2)),h.readyState=he;var j=new je("error",{error:V});h.dispatchEvent(j),Pe(h,h.onerror,j),V!=null&&console.error(V)}},$t=function(){re=J,B!=null&&(B.abort(),B=void 0),S!==0&&(i(S),S=0),h.readyState=J},ut=function(){if(S=0,re!==$e){if(!P&&B!=null)_r(new Error("No activity within "+x+" milliseconds. "+(re===he?"No response received.":I+" chars received.")+" Reconnecting.")),B!=null&&(B.abort(),B=void 0);else{var V=Math.max((P||Date.now())+x-Date.now(),1);P=!1,S=n(function(){ut()},V)}return}P=!1,I=0,S=n(function(){ut()},x),re=he,ge="",_e="",Xe=M,z="",jt=0,Le=0,Q=te;var j=b;if(b.slice(0,5)!=="data:"&&b.slice(0,5)!=="blob:"&&M!==""){var se=b.indexOf("?");j=se===-1?b:b.slice(0,se+1)+b.slice(se+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Se,ze){return ze===y?"":Se}),j+=(b.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(M)}var ae=h.withCredentials,Y={};Y.Accept="text/event-stream";var X=h.headers;if(X!=null)for(var xe in X)Object.prototype.hasOwnProperty.call(X,xe)&&(Y[xe]=X[xe]);try{B=L.open(f,kn,Vn,_r,j,ae,Y)}catch(Se){throw $t(),Se}};h.url=b,h.readyState=he,h.withCredentials=m,h.headers=_,h._close=$t,ut()}oe.prototype=Object.create(we.prototype),oe.prototype.CONNECTING=he,oe.prototype.OPEN=me,oe.prototype.CLOSED=J,oe.prototype.close=function(){this._close()},oe.CONNECTING=he,oe.OPEN=me,oe.CLOSED=J,oe.prototype.withCredentials=void 0;var vt=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(vt=oe),function(h){{var b=h(t);b!==void 0&&(e.exports=b)}}(function(h){h.EventSourcePolyfill=oe,h.NativeEventSource=l,h.EventSource=vt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ri:globalThis)})(mr,mr.exports);var As=mr.exports;const Je="__WIDGET_GLOBAL_STYLE_CACHE__";function Un(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Gn(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function jn(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Hs(e,t),r;window[Je]||(window[Je]={}),r=Os(e,t);const o=r.unsubscribe.bind(r),s=()=>{if(window[Je][t]){const a=window[Je][t];a.refCount>1?a.refCount=a.refCount-1:delete window[Je][t]}o()};return r.unsubscribe=s,r}function Hs(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Os(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[Je];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const s=n.adoptedStyleSheets||[];s.includes(o)||(n.adoptedStyleSheets=[...s,o])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){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"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsFilterController-DbYN2EGs.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-filter-controller")&&customElements.define("casino-tournaments-filter-controller",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){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"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsListController-JzRBbRwz.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",t.element)})}const qr=e=>e.length>0&&e!="false";function Ps(e){en(e,"svelte-v0e19m","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}")}function Bs(e){let t,r,n,i,o,s,a=e[21]&&Zr(e);function l(p,E){return p[22]==0?Ls:Is}let u=l(e),c=u(e),d=!e[23]&&Jr(e);return{c(){t=$("div"),r=$("div"),n=$("div"),a&&a.c(),i=Ht(),o=$("div"),c.c(),s=Ht(),d&&d.c(),U(n,"class","FirstRow"),U(n,"part","FirstRow"),U(o,"class","SecondRow"),U(o,"part","SecondRow"),U(r,"class","Tournaments"),U(r,"part","Tournaments"),U(t,"class","TournamentsWrapper"),U(t,"part","TournamentsWrapper")},m(p,E){ne(p,t,E),W(t,r),W(r,n),a&&a.m(n,null),W(r,i),W(r,o),c.m(o,null),W(r,s),d&&d.m(r,null)},p(p,E){p[21]?a?a.p(p,E):(a=Zr(p),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u===(u=l(p))&&c?c.p(p,E):(c.d(1),c=u(p),c&&(c.c(),c.m(o,null))),p[23]?d&&(d.d(1),d=null):d?d.p(p,E):(d=Jr(p),d.c(),d.m(r,null))},d(p){p&&q(t),a&&a.d(),c.d(),d&&d.d()}}}function Cs(e){let t,r=e[24]("500")+"",n,i,o,s;return{c(){t=$("p"),n=Ae(r),i=Ht(),o=$("p"),s=Ae(e[19])},m(a,l){ne(a,t,l),W(t,n),ne(a,i,l),ne(a,o,l),W(o,s)},p(a,l){l[0]&16777216&&r!==(r=a[24]("500")+"")&&Me(n,r),l[0]&524288&&Me(s,a[19])},d(a){a&&(q(t),q(i),q(o))}}}function Zr(e){let t;return{c(){t=$("casino-tournaments-filter-controller"),w(t,"clientstyling",e[13]),w(t,"clientstylingurl",e[14]),w(t,"translationurl",e[4]),w(t,"mbsource",e[15]),w(t,"filters",Fs),w(t,"activefilters",e[6]),w(t,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(r,n){ne(r,t,n)},p(r,n){n[0]&8192&&w(t,"clientstyling",r[13]),n[0]&16384&&w(t,"clientstylingurl",r[14]),n[0]&16&&w(t,"translationurl",r[4]),n[0]&32768&&w(t,"mbsource",r[15]),n[0]&64&&w(t,"activefilters",r[6])},d(r){r&&q(t)}}}function Is(e){let t;return{c(){t=$("casino-tournaments-list-controller"),w(t,"clientstyling",e[13]),w(t,"clientstylingurl",e[14]),w(t,"translationurl",e[4]),w(t,"userid",e[1]),w(t,"numberoftournaments",e[5]),w(t,"loginurl",e[9]),w(t,"loginevent",e[7]),w(t,"registerurl",e[10]),w(t,"registerevent",e[8]),w(t,"lang",e[3]),w(t,"currency",e[11]),w(t,"keepbrowsercontext",e[12]),w(t,"mbsource",e[15]),w(t,"session",e[0]),w(t,"endpoint",e[2]),w(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
25
25
  TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
26
26
  TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
27
27
  TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`)},m(r,n){ne(r,t,n)},p(r,n){n[0]&8192&&w(t,"clientstyling",r[13]),n[0]&16384&&w(t,"clientstylingurl",r[14]),n[0]&16&&w(t,"translationurl",r[4]),n[0]&2&&w(t,"userid",r[1]),n[0]&32&&w(t,"numberoftournaments",r[5]),n[0]&512&&w(t,"loginurl",r[9]),n[0]&128&&w(t,"loginevent",r[7]),n[0]&1024&&w(t,"registerurl",r[10]),n[0]&256&&w(t,"registerevent",r[8]),n[0]&8&&w(t,"lang",r[3]),n[0]&2048&&w(t,"currency",r[11]),n[0]&4096&&w(t,"keepbrowsercontext",r[12]),n[0]&32768&&w(t,"mbsource",r[15]),n[0]&1&&w(t,"session",r[0]),n[0]&4&&w(t,"endpoint",r[2])},d(r){r&&q(t)}}}function Ls(e){let t;function r(o,s){return o[20]?Rs:o[18]?Ms:Ns}let n=r(e),i=n(e);return{c(){i.c(),t=tn()},m(o,s){i.m(o,s),ne(o,t,s)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&q(t),i.d(o)}}}function Ns(e){let t,r=e[24]("noTournaments")+"",n;return{c(){t=$("p"),n=Ae(r),U(t,"class","NoTournaments"),U(t,"part","NoTournaments")},m(i,o){ne(i,t,o),W(t,n)},p(i,o){o[0]&16777216&&r!==(r=i[24]("noTournaments")+"")&&Me(n,r)},d(i){i&&q(t)}}}function Ms(e){let t,r=e[24]("fetchError")+"",n;return{c(){t=$("p"),n=Ae(r),U(t,"class","FetchErrorMessage")},m(i,o){ne(i,t,o),W(t,n)},p(i,o){o[0]&16777216&&r!==(r=i[24]("fetchError")+"")&&Me(n,r)},d(i){i&&q(t)}}}function Rs(e){let t,r=e[24]("loading")+"",n;return{c(){t=$("p"),n=Ae(r),U(t,"class","LoadingMessage"),U(t,"part","LoadingMessage")},m(i,o){ne(i,t,o),W(t,n)},p(i,o){o[0]&16777216&&r!==(r=i[24]("loading")+"")&&Me(n,r)},d(i){i&&q(t)}}}function Jr(e){let t,r,n,i=e[24]("showMore")+"",o,s,a;return{c(){t=$("div"),r=$("div"),n=$("button"),o=Ae(i),U(n,"class","ShowMoreButton"),U(n,"part","ShowMoreButton"),U(n,"title","Show More"),U(r,"class","CenterButton"),U(r,"part","CenterButton"),U(t,"class","ThirdRow"),U(t,"part","ThirdRow")},m(l,u){ne(l,t,u),W(t,r),W(r,n),W(n,o),s||(a=Ot(n,"click",e[34]),s=!0)},p(l,u){u[0]&16777216&&i!==(i=l[24]("showMore")+"")&&Me(o,i)},d(l){l&&q(t),s=!1,a()}}}function Ds(e){let t;function r(o,s){return o[17]?Cs:Bs}let n=r(e),i=n(e);return{c(){t=$("div"),i.c()},m(o,s){ne(o,t,s),i.m(t,null),e[35](t)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t,null)))},i:ue,o:ue,d(o){o&&q(t),i.d(),e[35](null)}}}let Fs="All,Scheduled,Ongoing,Finished";function Us(e,t,r){let n;Kr(e,Dn,f=>r(24,n=f));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{lang:a="en"}=t,{translationurl:l=""}=t,{numberoftournaments:u="6"}=t,{showmorestep:c="2"}=t,{filters:d="All"}=t,{loginevent:p=""}=t,{registerevent:E=""}=t,{loginurl:C=""}=t,{registerurl:O=""}=t,{currency:ee="EUR"}=t,{keepbrowsercontext:de="false"}=t,{sorttype:ie=""}=t,{sortorder:N=""}=t,{starttimeafter:k=""}=t,{showanonymoustournaments:Z="true"}=t,{clientstyling:le=""}=t,{clientstylingurl:ve=""}=t,{delaybeforeload:Fe=1e3}=t,Ue=!1,we=!1,Ge="",pe=!1,ye="",ot=window.navigator.userAgent,je=!0,$e=!1,he=!1,{mbsource:me}=t,J,st,te=0,Oe=!1,fe=6,ke=!0,Ce=[],bt,be,Ie=!1,Ve;Ts({withLocale:"en",translations:{}});const Pe=()=>{fetch(l).then(L=>L.json()).then(L=>{Ve=L,Object.keys(L).forEach(B=>{Yt(B,L[B])})}).catch(L=>{console.log(L)})},oe=f=>{f&&Object.keys(f).forEach(L=>{Yt(L,f[L])})};Object.keys(Wr).forEach(f=>{Yt(f,Wr[f])});const gt=f=>{f.data&&f.data.type==="UserSessionID"&&(pe=!0,r(32,ye=f.data.session),f.data.userid,at(s,0,fe)),f.data&&f.data.type==="TournamentsFiltersSelected"&&(Ce=f.data.filters,at(s,0,fe)),f.data&&f.data.type==="TournamentThumbnailMounted"&&oe(Ve)},Gt=f=>f=="Scheduled"?"Unstarted":f=="Ongoing"?"Running":"Closing|Closed",at=(f,L,B)=>Ne(this,null,function*(){r(20,je=!0),r(22,te=0);const S=yield b(f,L,B);S===null?r(18,we=!0):setTimeout(()=>window.postMessage({type:"TournamentList",tournamentList:S==null?void 0:S.items},window.location.href),50),r(20,je=!1)}),vt=(f,L,B)=>Ne(this,null,function*(){const S=yield b(f,L,B);S===null?r(18,we=!0):window.postMessage({type:"TournamentListShowMore",tournamentList:S==null?void 0:S.items},window.location.href)}),h=()=>{const f=new Date;return k?f.setDate(f.getDate()-Number(k)):f.setMonth(f.getMonth()-1),f.toISOString().substring(0,10)},b=(f,L,B)=>Ne(this,null,function*(){const S=new URL(`${f}/v1/tournaments`),re=new Headers;S.searchParams.append("pagination",`offset=${L},limit=${B}`),S.searchParams.append("sortField","StartTime"),S.searchParams.append("sortOrder",N||"desc"),S.searchParams.append("language",a),S.searchParams.append("platform",Fn(ot));const ge={StartTimeAfter:h()};!qr(i)&&Z==="false"&&(ge.tags="no-role-set"),Ce.length>0&&Ce[0]!="All"&&(ge.state=Ce.map(z=>Gt(z)).join("|"));const Xe=Object.keys(ge).map(z=>`${z}=${ge[z]}`).join(",");return S.searchParams.append("filter",Xe),ie&&S.searchParams.append("sortType",ie),pe&&re.append("X-SessionID",ye),fetch(S,{method:"GET",headers:re,cache:"no-cache"}).then(z=>z.ok?z.json():null).then(z=>z===null?null:(bt=S.searchParams.toString(),r(22,te=z.total),fe>=te?r(23,ke=!0):r(23,ke=!1),he||m(),z))}),g=f=>{if(f.type!="message")return;let L=f.data;if(L)try{let B=JSON.parse(L);if(!B||!B.item)return;let S=B.item;B.messageType=="TournamentUpdate"&&window.postMessage({type:"UpdateTournamentView",tournamentData:S},window.location.href),B.messageType=="TournamentRemove"&&window.postMessage({type:"TournamentList",tournamentList:B.items},window.location.href)}catch(B){console.error(B)}},m=()=>{he=!0,setTimeout(()=>{he=!1},1e3),be&&(be.removeEventListener("message",g),be.close());let f=`${s}/v1/tournaments/updates?${bt}`;be=new As.EventSourcePolyfill(f,{headers:{accept:"text/event-stream","X-SessionId":i}}),typeof be!="undefined"&&be.addEventListener("message",g)},y=()=>Ne(this,null,function*(){let f=fe;const L=parseInt(c,10);fe+=L,window.postMessage({type:"TournamentsPagination",offset:0,limit:fe},window.location.href),yield vt(s,f,L),fe>=te&&r(23,ke=!0)}),v=()=>(s||(r(19,Ge="Endpoint is missing! Please provide a valid endpointURL."),r(17,Ue=!0),console.error(Ge)),Ue),x=()=>{if(!Oe)return!1;v()||(fe=parseInt(u,10),zr(a),at(s,0,fe))},M=()=>{zr(a)},T=()=>{Ce=d.split(","),r(21,$e=!0)},P=()=>{qr(i)?(pe=!0,r(32,ye=i)):(pe=!1,r(32,ye=""))},I=()=>Ne(this,null,function*(){Ie||(Ie=!0,yield x(),Ie=!1)});rn(()=>(setTimeout(()=>{r(33,Oe=!0)},Fe),window.addEventListener("message",gt,!1),()=>{window.removeEventListener("message",gt),be&&(be.removeEventListener("message",g),be.close())}));const _=()=>y();function R(f){Pt[f?"unshift":"push"](()=>{J=f,r(16,J)})}return e.$$set=f=>{"session"in f&&r(0,i=f.session),"userid"in f&&r(1,o=f.userid),"endpoint"in f&&r(2,s=f.endpoint),"lang"in f&&r(3,a=f.lang),"translationurl"in f&&r(4,l=f.translationurl),"numberoftournaments"in f&&r(5,u=f.numberoftournaments),"showmorestep"in f&&r(26,c=f.showmorestep),"filters"in f&&r(6,d=f.filters),"loginevent"in f&&r(7,p=f.loginevent),"registerevent"in f&&r(8,E=f.registerevent),"loginurl"in f&&r(9,C=f.loginurl),"registerurl"in f&&r(10,O=f.registerurl),"currency"in f&&r(11,ee=f.currency),"keepbrowsercontext"in f&&r(12,de=f.keepbrowsercontext),"sorttype"in f&&r(27,ie=f.sorttype),"sortorder"in f&&r(28,N=f.sortorder),"starttimeafter"in f&&r(29,k=f.starttimeafter),"showanonymoustournaments"in f&&r(30,Z=f.showanonymoustournaments),"clientstyling"in f&&r(13,le=f.clientstyling),"clientstylingurl"in f&&r(14,ve=f.clientstylingurl),"delaybeforeload"in f&&r(31,Fe=f.delaybeforeload),"mbsource"in f&&r(15,me=f.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&2,e.$$.dirty[0]&64&&d&&T(),e.$$.dirty[0]&8&&a&&M(),e.$$.dirty[0]&16&&l&&Pe(),e.$$.dirty[1]&4&&Oe&&x(),e.$$.dirty[0]&1&&(i===""||i)&&P(),e.$$.dirty[1]&2&&(ye===""||ye)&&I(),e.$$.dirty[0]&1140850732&&s&&u&&c&&a&&Z&&I(),e.$$.dirty[0]&73728&&le&&J&&Un(J,le),e.$$.dirty[0]&81920&&ve&&J&&Gn(J,ve),e.$$.dirty[0]&98304&&me&&J&&jn(J,`${me}.Style`,st)},[i,o,s,a,l,u,d,p,E,C,O,ee,de,le,ve,me,J,Ue,we,Ge,je,$e,te,ke,n,y,c,ie,N,k,Z,Fe,ye,Oe,_,R]}class $n extends an{constructor(t){super(),nn(this,t,Us,Ds,br,{session:0,userid:1,endpoint:2,lang:3,translationurl:4,numberoftournaments:5,showmorestep:26,filters:6,loginevent:7,registerevent:8,loginurl:9,registerurl:10,currency:11,keepbrowsercontext:12,sorttype:27,sortorder:28,starttimeafter:29,showanonymoustournaments:30,clientstyling:13,clientstylingurl:14,delaybeforeload:31,mbsource:15},Ps,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),D()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),D()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),D()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),D()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),D()}get numberoftournaments(){return this.$$.ctx[5]}set numberoftournaments(t){this.$$set({numberoftournaments:t}),D()}get showmorestep(){return this.$$.ctx[26]}set showmorestep(t){this.$$set({showmorestep:t}),D()}get filters(){return this.$$.ctx[6]}set filters(t){this.$$set({filters:t}),D()}get loginevent(){return this.$$.ctx[7]}set loginevent(t){this.$$set({loginevent:t}),D()}get registerevent(){return this.$$.ctx[8]}set registerevent(t){this.$$set({registerevent:t}),D()}get loginurl(){return this.$$.ctx[9]}set loginurl(t){this.$$set({loginurl:t}),D()}get registerurl(){return this.$$.ctx[10]}set registerurl(t){this.$$set({registerurl:t}),D()}get currency(){return this.$$.ctx[11]}set currency(t){this.$$set({currency:t}),D()}get keepbrowsercontext(){return this.$$.ctx[12]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),D()}get sorttype(){return this.$$.ctx[27]}set sorttype(t){this.$$set({sorttype:t}),D()}get sortorder(){return this.$$.ctx[28]}set sortorder(t){this.$$set({sortorder:t}),D()}get starttimeafter(){return this.$$.ctx[29]}set starttimeafter(t){this.$$set({starttimeafter:t}),D()}get showanonymoustournaments(){return this.$$.ctx[30]}set showanonymoustournaments(t){this.$$set({showanonymoustournaments:t}),D()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),D()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),D()}get delaybeforeload(){return this.$$.ctx[31]}set delaybeforeload(t){this.$$set({delaybeforeload:t}),D()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),D()}}sn($n,{session:{},userid:{},endpoint:{},lang:{},translationurl:{},numberoftournaments:{},showmorestep:{},filters:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},sorttype:{},sortorder:{},starttimeafter:{},showanonymoustournaments:{},clientstyling:{},clientstylingurl:{},delaybeforeload:{},mbsource:{}},[],[],!0);const Gs=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Re;exports.$format=Dn;exports.$locale=He;exports.CasinoTournamentsController_ce=Gs;exports.SvelteComponent=an;exports.action_destroyer=Yn;exports.addMessages=vr;exports.add_iframe_resize_listener=si;exports.add_render_callback=Bt;exports.append=W;exports.append_styles=en;exports.attr=U;exports.binding_callbacks=Pt;exports.component_subscribe=Kr;exports.create_custom_element=sn;exports.destroy_each=ti;exports.detach=q;exports.element=$;exports.empty=tn;exports.ensure_array_like=bi;exports.flush=D;exports.getDevice=Fn;exports.init=nn;exports.insert=ne;exports.isMobile=Ss;exports.is_function=pt;exports.listen=Ot;exports.noop=ue;exports.onMount=rn;exports.run_all=rt;exports.safe_not_equal=br;exports.setClientStyling=Un;exports.setClientStylingURL=Gn;exports.setStreamStyling=jn;exports.set_custom_element_data=w;exports.set_data=Me;exports.set_style=ii;exports.space=Ht;exports.src_url_equal=Jn;exports.svg_element=ri;exports.text=Ae;exports.toggle_class=ai;