@everymatrix/casino-random-game 1.55.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ var Ge = (e, t, r) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writ
10
10
  qr.call(t, r) && Ge(e, r, t[r]);
11
11
  return e;
12
12
  }, yt = (e, t) => Zr(e, Qr(t));
13
- var M = (e, t, r) => Ge(e, typeof t != "symbol" ? t + "" : t, r);
13
+ var M = (e, t, r) => (Ge(e, typeof t != "symbol" ? t + "" : t, r), r);
14
14
  var ye = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (h) => {
16
16
  try {
@@ -27,10 +27,11 @@ var ye = (e, t, r) => new Promise((n, i) => {
27
27
  }, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
28
28
  s((r = r.apply(e, t)).next());
29
29
  });
30
- function N() {
30
+ function C() {
31
31
  }
32
32
  function Kr(e, t) {
33
- for (const r in t) e[r] = t[r];
33
+ for (const r in t)
34
+ e[r] = t[r];
34
35
  return (
35
36
  /** @type {T & S} */
36
37
  e
@@ -62,7 +63,7 @@ function qt(e, ...t) {
62
63
  if (e == null) {
63
64
  for (const n of t)
64
65
  n(void 0);
65
- return N;
66
+ return C;
66
67
  }
67
68
  const r = e.subscribe(...t);
68
69
  return r.unsubscribe ? () => r.unsubscribe() : r;
@@ -120,7 +121,8 @@ function sn(e, t, r) {
120
121
  }
121
122
  }
122
123
  function un(e) {
123
- if (!e) return document;
124
+ if (!e)
125
+ return document;
124
126
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
125
127
  return t && /** @type {ShadowRoot} */
126
128
  t.host ? (
@@ -184,7 +186,8 @@ function ce(e) {
184
186
  me = e;
185
187
  }
186
188
  function mn() {
187
- if (!me) throw new Error("Function called outside component initialization");
189
+ if (!me)
190
+ throw new Error("Function called outside component initialization");
188
191
  return me;
189
192
  }
190
193
  function dn(e) {
@@ -218,7 +221,8 @@ function I() {
218
221
  } catch (t) {
219
222
  throw K.length = 0, Y = 0, t;
220
223
  }
221
- for (ce(null), K.length = 0, Y = 0; Ae.length; ) Ae.pop()();
224
+ for (ce(null), K.length = 0, Y = 0; Ae.length; )
225
+ Ae.pop()();
222
226
  for (let t = 0; t < ee.length; t += 1) {
223
227
  const r = ee[t];
224
228
  Ue.has(r) || (Ue.add(r), r());
@@ -258,11 +262,13 @@ function fe(e, t) {
258
262
  }
259
263
  function Je(e, t, r, n) {
260
264
  if (e && e.o) {
261
- if (Ee.has(e)) return;
265
+ if (Ee.has(e))
266
+ return;
262
267
  Ee.add(e), X.c.push(() => {
263
268
  Ee.delete(e), n && (r && e.d(1), n());
264
269
  }), e.o(t);
265
- } else n && n();
270
+ } else
271
+ n && n();
266
272
  }
267
273
  function wt(e) {
268
274
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
@@ -289,7 +295,7 @@ function wn(e, t, r, n, i, o, a = null, s = [-1]) {
289
295
  ctx: [],
290
296
  // state
291
297
  props: o,
292
- update: N,
298
+ update: C,
293
299
  not_equal: i,
294
300
  bound: vt(),
295
301
  // lifecycle
@@ -523,7 +529,7 @@ class Tn {
523
529
  }
524
530
  /** @returns {void} */
525
531
  $destroy() {
526
- xn(this, 1), this.$destroy = N;
532
+ xn(this, 1), this.$destroy = C;
527
533
  }
528
534
  /**
529
535
  * @template {Extract<keyof Events, string>} K
@@ -533,7 +539,7 @@ class Tn {
533
539
  */
534
540
  $on(t, r) {
535
541
  if (!ut(r))
536
- return N;
542
+ return C;
537
543
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
538
544
  return n.push(r), () => {
539
545
  const i = n.indexOf(r);
@@ -550,11 +556,26 @@ class Tn {
550
556
  }
551
557
  const Hn = "4";
552
558
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
559
+ /*! *****************************************************************************
560
+ Copyright (c) Microsoft Corporation.
561
+
562
+ Permission to use, copy, modify, and/or distribute this software for any
563
+ purpose with or without fee is hereby granted.
564
+
565
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
566
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
567
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
568
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
569
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
570
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
571
+ PERFORMANCE OF THIS SOFTWARE.
572
+ ***************************************************************************** */
553
573
  var Ze = function(e, t) {
554
574
  return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
555
575
  r.__proto__ = n;
556
576
  } || function(r, n) {
557
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
577
+ for (var i in n)
578
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
558
579
  }, Ze(e, t);
559
580
  };
560
581
  function $(e, t) {
@@ -570,14 +591,16 @@ var _ = function() {
570
591
  return _ = Object.assign || function(t) {
571
592
  for (var r, n = 1, i = arguments.length; n < i; n++) {
572
593
  r = arguments[n];
573
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
594
+ for (var o in r)
595
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
574
596
  }
575
597
  return t;
576
598
  }, _.apply(this, arguments);
577
599
  };
578
600
  function Bn(e, t) {
579
601
  var r = {};
580
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
602
+ for (var n in e)
603
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
581
604
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
582
605
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
583
606
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
@@ -585,35 +608,41 @@ function Bn(e, t) {
585
608
  }
586
609
  function Qe(e) {
587
610
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
588
- if (r) return r.call(e);
589
- if (e && typeof e.length == "number") return {
590
- next: function() {
591
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
592
- }
593
- };
611
+ if (r)
612
+ return r.call(e);
613
+ if (e && typeof e.length == "number")
614
+ return {
615
+ next: function() {
616
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
617
+ }
618
+ };
594
619
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
595
620
  }
596
621
  function Ye(e, t) {
597
622
  var r = typeof Symbol == "function" && e[Symbol.iterator];
598
- if (!r) return e;
623
+ if (!r)
624
+ return e;
599
625
  var n = r.call(e), i, o = [], a;
600
626
  try {
601
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
627
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
628
+ o.push(i.value);
602
629
  } catch (s) {
603
630
  a = { error: s };
604
631
  } finally {
605
632
  try {
606
633
  i && !i.done && (r = n.return) && r.call(n);
607
634
  } finally {
608
- if (a) throw a.error;
635
+ if (a)
636
+ throw a.error;
609
637
  }
610
638
  }
611
639
  return o;
612
640
  }
613
641
  function te(e, t, r) {
614
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
615
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
616
- return e.concat(o || Array.prototype.slice.call(t));
642
+ if (r || arguments.length === 2)
643
+ for (var n = 0, i = t.length, o; n < i; n++)
644
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
645
+ return e.concat(o || t);
617
646
  }
618
647
  function F(e) {
619
648
  return typeof e == "function";
@@ -661,7 +690,8 @@ var Ie = function() {
661
690
  try {
662
691
  h && !h.done && (r = s.return) && r.call(s);
663
692
  } finally {
664
- if (t) throw t.error;
693
+ if (t)
694
+ throw t.error;
665
695
  }
666
696
  }
667
697
  else
@@ -691,7 +721,8 @@ var Ie = function() {
691
721
  try {
692
722
  m && !m.done && (i = c.return) && i.call(c);
693
723
  } finally {
694
- if (n) throw n.error;
724
+ if (n)
725
+ throw n.error;
695
726
  }
696
727
  }
697
728
  }
@@ -865,11 +896,11 @@ var Mn = {
865
896
  }, Ln = function() {
866
897
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
867
898
  }();
868
- function Cn(e) {
899
+ function Nn(e) {
869
900
  return e;
870
901
  }
871
- function Nn(e) {
872
- return e.length === 0 ? Cn : e.length === 1 ? e[0] : function(r) {
902
+ function Cn(e) {
903
+ return e.length === 0 ? Nn : e.length === 1 ? e[0] : function(r) {
873
904
  return e.reduce(function(n, i) {
874
905
  return i(n);
875
906
  }, r);
@@ -918,7 +949,7 @@ var Ht = function() {
918
949
  }, e.prototype.pipe = function() {
919
950
  for (var t = [], r = 0; r < arguments.length; r++)
920
951
  t[r] = arguments[r];
921
- return Nn(t)(this);
952
+ return Cn(t)(this);
922
953
  }, e.prototype.toPromise = function(t) {
923
954
  var r = this;
924
955
  return t = Bt(t), new t(function(n, i) {
@@ -978,7 +1009,8 @@ var Dn = nr(function(e) {
978
1009
  try {
979
1010
  s && !s.done && (o = a.return) && o.call(a);
980
1011
  } finally {
981
- if (i) throw i.error;
1012
+ if (i)
1013
+ throw i.error;
982
1014
  }
983
1015
  }
984
1016
  }
@@ -1088,7 +1120,7 @@ function jn(e, t) {
1088
1120
  subscribe: Oe(e, t).subscribe
1089
1121
  };
1090
1122
  }
1091
- function Oe(e, t = N) {
1123
+ function Oe(e, t = C) {
1092
1124
  let r;
1093
1125
  const n = /* @__PURE__ */ new Set();
1094
1126
  function i(s) {
@@ -1106,9 +1138,9 @@ function Oe(e, t = N) {
1106
1138
  function o(s) {
1107
1139
  i(s(e));
1108
1140
  }
1109
- function a(s, h = N) {
1141
+ function a(s, h = C) {
1110
1142
  const l = [s, h];
1111
- return n.add(l), n.size === 1 && (r = t(i, o) || N), s(e), () => {
1143
+ return n.add(l), n.size === 1 && (r = t(i, o) || C), s(e), () => {
1112
1144
  n.delete(l), n.size === 0 && r && (r(), r = null);
1113
1145
  };
1114
1146
  }
@@ -1122,13 +1154,13 @@ function ae(e, t, r) {
1122
1154
  return jn(r, (a, s) => {
1123
1155
  let h = !1;
1124
1156
  const l = [];
1125
- let u = 0, f = N;
1157
+ let u = 0, f = C;
1126
1158
  const c = () => {
1127
1159
  if (u)
1128
1160
  return;
1129
1161
  f();
1130
1162
  const d = t(n ? l[0] : l, a, s);
1131
- o ? a(d) : f = ut(d) ? d : N;
1163
+ o ? a(d) : f = ut(d) ? d : C;
1132
1164
  }, m = i.map(
1133
1165
  (d, p) => qt(
1134
1166
  d,
@@ -1489,7 +1521,7 @@ function vi(e) {
1489
1521
  }
1490
1522
  return t;
1491
1523
  }
1492
- function Ct(e) {
1524
+ function Nt(e) {
1493
1525
  var t = {}, r = wr(e);
1494
1526
  return r || t;
1495
1527
  }
@@ -1529,12 +1561,12 @@ function _i(e) {
1529
1561
  continue;
1530
1562
  case "scientific":
1531
1563
  t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1532
- return _(_({}, h), Ct(l));
1564
+ return _(_({}, h), Nt(l));
1533
1565
  }, {}));
1534
1566
  continue;
1535
1567
  case "engineering":
1536
1568
  t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1537
- return _(_({}, h), Ct(l));
1569
+ return _(_({}, h), Nt(l));
1538
1570
  }, {}));
1539
1571
  continue;
1540
1572
  case "notation-simple":
@@ -3043,7 +3075,8 @@ function xi(e, t) {
3043
3075
  r += h;
3044
3076
  for (; a-- > 0; )
3045
3077
  r = l + r;
3046
- } else i === "J" ? r += "H" : r += i;
3078
+ } else
3079
+ i === "J" ? r += "H" : r += i;
3047
3080
  }
3048
3081
  return r;
3049
3082
  }
@@ -3082,7 +3115,7 @@ try {
3082
3115
  } catch (e) {
3083
3116
  tt = !1;
3084
3117
  }
3085
- var Nt = Ti ? (
3118
+ var Ct = Ti ? (
3086
3119
  // Native
3087
3120
  function(t, r, n) {
3088
3121
  return t.startsWith(r, n);
@@ -3140,7 +3173,7 @@ var Nt = Ti ? (
3140
3173
  function(t) {
3141
3174
  return t.replace(wi, "");
3142
3175
  }
3143
- ), Ci = Ri ? (
3176
+ ), Ni = Ri ? (
3144
3177
  // Native
3145
3178
  function(t) {
3146
3179
  return t.trimEnd();
@@ -3173,7 +3206,7 @@ if (tt) {
3173
3206
  }
3174
3207
  return rt.apply(void 0, n);
3175
3208
  };
3176
- var Ni = (
3209
+ var Ci = (
3177
3210
  /** @class */
3178
3211
  function() {
3179
3212
  function e(t, r) {
@@ -3371,7 +3404,7 @@ var Ni = (
3371
3404
  var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3372
3405
  if (f.err)
3373
3406
  return f;
3374
- var c = Ci(f.val);
3407
+ var c = Ni(f.val);
3375
3408
  if (c.length === 0)
3376
3409
  return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3377
3410
  var m = v(u, this.clonePosition());
@@ -3381,7 +3414,7 @@ var Ni = (
3381
3414
  if (d.err)
3382
3415
  return d;
3383
3416
  var p = v(i, this.clonePosition());
3384
- if (l && Nt(l == null ? void 0 : l.style, "::", 0)) {
3417
+ if (l && Ct(l == null ? void 0 : l.style, "::", 0)) {
3385
3418
  var A = Li(l.style.slice(2));
3386
3419
  if (s === "number") {
3387
3420
  var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
@@ -3423,7 +3456,7 @@ var Ni = (
3423
3456
  if (this.bumpSpace(), !this.bumpIf(","))
3424
3457
  return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, _({}, B)));
3425
3458
  this.bumpSpace();
3426
- var L = this.parseIdentifierIfPossible(), C = 0;
3459
+ var L = this.parseIdentifierIfPossible(), N = 0;
3427
3460
  if (s !== "select" && L.value === "offset") {
3428
3461
  if (!this.bumpIf(":"))
3429
3462
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
@@ -3431,7 +3464,7 @@ var Ni = (
3431
3464
  var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3432
3465
  if (f.err)
3433
3466
  return f;
3434
- this.bumpSpace(), L = this.parseIdentifierIfPossible(), C = f.val;
3467
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), N = f.val;
3435
3468
  }
3436
3469
  var G = this.tryParsePluralOrSelectOptions(t, s, r, L);
3437
3470
  if (G.err)
@@ -3453,7 +3486,7 @@ var Ni = (
3453
3486
  type: w.plural,
3454
3487
  value: n,
3455
3488
  options: Gt(G.val),
3456
- offset: C,
3489
+ offset: N,
3457
3490
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3458
3491
  location: be
3459
3492
  },
@@ -3594,7 +3627,7 @@ var Ni = (
3594
3627
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3595
3628
  }
3596
3629
  }, e.prototype.bumpIf = function(t) {
3597
- if (Nt(this.message, t, this.offset())) {
3630
+ if (Ct(this.message, t, this.offset())) {
3598
3631
  for (var r = 0; r < t.length; r++)
3599
3632
  this.bump();
3600
3633
  return !0;
@@ -3646,12 +3679,13 @@ function ot(e) {
3646
3679
  if (delete t.location, br(t) || gr(t))
3647
3680
  for (var r in t.options)
3648
3681
  delete t.options[r].location, ot(t.options[r].value);
3649
- else mr(t) && vr(t.style) || (dr(t) || pr(t)) && et(t.style) ? delete t.style.location : yr(t) && ot(t.children);
3682
+ else
3683
+ mr(t) && vr(t.style) || (dr(t) || pr(t)) && et(t.style) ? delete t.style.location : yr(t) && ot(t.children);
3650
3684
  });
3651
3685
  }
3652
3686
  function Fi(e, t) {
3653
3687
  t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3654
- var r = new Ni(e, t).parse();
3688
+ var r = new Ci(e, t).parse();
3655
3689
  if (r.err) {
3656
3690
  var n = SyntaxError(y[r.err.kind]);
3657
3691
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -3777,13 +3811,13 @@ function Te(e, t, r, n, i, o, a) {
3777
3811
  var d = u.children, p = u.value, A = i[p];
3778
3812
  if (!Vi(A))
3779
3813
  throw new $i(p, "function", a);
3780
- var H = Te(d, t, r, n, i, o), T = A(H.map(function(C) {
3781
- return C.value;
3814
+ var H = Te(d, t, r, n, i, o), T = A(H.map(function(N) {
3815
+ return N.value;
3782
3816
  }));
3783
- Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(C) {
3817
+ Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(N) {
3784
3818
  return {
3785
- type: typeof C == "string" ? P.literal : P.object,
3786
- value: C
3819
+ type: typeof N == "string" ? P.literal : P.object,
3820
+ value: N
3787
3821
  };
3788
3822
  }));
3789
3823
  }
@@ -4166,7 +4200,7 @@ const mo = (e) => {
4166
4200
  return Pe.set(e);
4167
4201
  }, W = fo(co({}, Pe), {
4168
4202
  set: mo
4169
- }), Ce = (e) => {
4203
+ }), Ne = (e) => {
4170
4204
  const t = /* @__PURE__ */ Object.create(null);
4171
4205
  return (n) => {
4172
4206
  const i = JSON.stringify(n);
@@ -4194,21 +4228,21 @@ const pe = (e, t) => {
4194
4228
  if (e in r && t in r[e])
4195
4229
  return r[e][t];
4196
4230
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4197
- }, bo = Ce(
4231
+ }, bo = Ne(
4198
4232
  (e) => {
4199
4233
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4200
4234
  if (r == null)
4201
4235
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4202
4236
  return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
4203
4237
  }
4204
- ), go = Ce(
4238
+ ), go = Ne(
4205
4239
  (e) => {
4206
4240
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4207
4241
  if (r == null)
4208
4242
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4209
4243
  return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
4210
4244
  }
4211
- ), yo = Ce(
4245
+ ), yo = Ne(
4212
4246
  (e) => {
4213
4247
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4214
4248
  if (r == null)
@@ -4238,7 +4272,7 @@ const pe = (e, t) => {
4238
4272
  "locale"
4239
4273
  ]);
4240
4274
  return yo(ft({ locale: r }, n));
4241
- }, Eo = Ce(
4275
+ }, Eo = Ne(
4242
4276
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4243
4277
  (e, t = Z()) => new Ji(e, t, oe().formats, {
4244
4278
  ignoreTag: oe().ignoreTag
@@ -4390,14 +4424,14 @@ const Wt = {
4390
4424
  noGames: "There are no random games to play"
4391
4425
  }
4392
4426
  };
4393
- function Co(e) {
4427
+ function No(e) {
4394
4428
  sn(e, "svelte-fd0a5p", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
4395
4429
  }
4396
4430
  function Xt(e, t, r) {
4397
4431
  const n = e.slice();
4398
4432
  return n[41] = t[r], n;
4399
4433
  }
4400
- const No = (e) => ({}), zt = (e) => ({});
4434
+ const Co = (e) => ({}), zt = (e) => ({});
4401
4435
  function Jt(e) {
4402
4436
  let t, r, n, i, o, a, s;
4403
4437
  const h = (
@@ -4442,7 +4476,7 @@ function Jt(e) {
4442
4476
  /*$$scope*/
4443
4477
  d[22],
4444
4478
  p,
4445
- No
4479
+ Co
4446
4480
  ) : an(
4447
4481
  /*$$scope*/
4448
4482
  d[22]
@@ -4470,7 +4504,7 @@ function Go(e) {
4470
4504
  m(n, i) {
4471
4505
  O(n, t, i), x(t, r);
4472
4506
  },
4473
- p: N,
4507
+ p: C,
4474
4508
  d(n) {
4475
4509
  n && R(t);
4476
4510
  }
@@ -4698,14 +4732,16 @@ function Vo(e) {
4698
4732
  if (
4699
4733
  /*buttontext*/
4700
4734
  d[1]
4701
- ) return ko;
4735
+ )
4736
+ return ko;
4702
4737
  if (!/*buttontext*/
4703
- d[1]) return jo;
4738
+ d[1])
4739
+ return jo;
4704
4740
  }
4705
4741
  let c = f(e), m = c && c(e);
4706
4742
  return {
4707
4743
  c() {
4708
- t = S("div"), u && u.c(), r = V(), n = S("div"), i = S("button"), m && m.c(), o = V(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper"), g(t, "part", "CustomStylingContainer");
4744
+ t = S("div"), u && u.c(), r = V(), n = S("div"), i = S("button"), m && m.c(), o = V(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
4709
4745
  },
4710
4746
  m(d, p) {
4711
4747
  O(d, t, p), u && u.m(t, null), x(t, r), x(t, n), x(n, i), m && m.m(i, null), x(i, o), x(i, a), a.innerHTML = /*randombuttonicon*/
@@ -4739,7 +4775,7 @@ function Vo(e) {
4739
4775
  function Wo(e, t, r) {
4740
4776
  let n;
4741
4777
  tn(e, Ao, (b) => r(9, n = b));
4742
- let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, L = !1, C = !1, G = !1, be = window.navigator.userAgent, U, Q, mt, ge, dt = null;
4778
+ let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, L = !1, N = !1, G = !1, be = window.navigator.userAgent, U, Q, mt, ge, dt = null;
4743
4779
  Mo({ withLocale: "en", translations: {} });
4744
4780
  const Lr = () => {
4745
4781
  fetch(c).then((E) => E.json()).then((E) => {
@@ -4753,20 +4789,20 @@ function Wo(e, t, r) {
4753
4789
  Object.keys(Wt).forEach((b) => {
4754
4790
  Vt(b, Wt[b]);
4755
4791
  });
4756
- const Cr = () => {
4792
+ const Nr = () => {
4757
4793
  let b = new URL(`${a}/v1/casino/games`);
4758
4794
  b.searchParams.append("platform", Po(be)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((E) => E.json()).then((E) => {
4759
- H = E.items, H.length ? (r(4, B = Nr(H.slice(0, 19))), r(7, G = !0)) : (r(4, B = []), r(7, G = !1));
4795
+ H = E.items, H.length ? (r(4, B = Cr(H.slice(0, 19))), r(7, G = !0)) : (r(4, B = []), r(7, G = !1));
4760
4796
  }).catch((E) => {
4761
4797
  console.log(E), r(7, G = !1);
4762
4798
  });
4763
- }, Nr = (b) => {
4799
+ }, Cr = (b) => {
4764
4800
  const E = Ur(b);
4765
4801
  return E.concat(E);
4766
4802
  }, Gr = () => ye(this, null, function* () {
4767
4803
  yield pn(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[ge]), mt = Q.children[ge];
4768
- }), Ne = () => ye(this, null, function* () {
4769
- r(6, C = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Gr();
4804
+ }), Ce = () => ye(this, null, function* () {
4805
+ r(6, N = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Gr();
4770
4806
  const b = window.getComputedStyle(Q).getPropertyValue("gap"), E = parseInt(b, 10) || 0, le = (mt.offsetHeight + E) * ge, Xr = [
4771
4807
  { transform: "translateX(0px)" },
4772
4808
  { filter: "blur(5px)" },
@@ -4779,7 +4815,7 @@ function Wo(e, t, r) {
4779
4815
  fill: "forwards"
4780
4816
  };
4781
4817
  dt = Q.animate(Xr, zr), dt.onfinish = () => {
4782
- r(6, C = !0);
4818
+ r(6, N = !0);
4783
4819
  };
4784
4820
  }), Ur = (b) => {
4785
4821
  const E = structuredClone(b);
@@ -4810,7 +4846,7 @@ function Wo(e, t, r) {
4810
4846
  Q = b, r(8, Q);
4811
4847
  });
4812
4848
  }
4813
- const jr = () => Ne(), kr = () => pt(), Vr = () => Ne();
4849
+ const jr = () => Ce(), kr = () => pt(), Vr = () => Ce();
4814
4850
  function Wr(b) {
4815
4851
  Ae[b ? "unshift" : "push"](() => {
4816
4852
  U = b, r(2, U);
@@ -4822,7 +4858,7 @@ function Wo(e, t, r) {
4822
4858
  e.$$.dirty[0] & /*lang*/
4823
4859
  65536 && l && Fr(), e.$$.dirty[0] & /*translationurl*/
4824
4860
  131072 && c && Lr(), e.$$.dirty[0] & /*endpoint, datasource*/
4825
- 24576 && a && s && Cr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4861
+ 24576 && a && s && Nr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4826
4862
  262148 && m && U && Ro(U, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4827
4863
  524292 && d && U && Io(U, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4828
4864
  2097156 && U && Oo(U, `${A}.Style`);
@@ -4833,11 +4869,11 @@ function Wo(e, t, r) {
4833
4869
  T,
4834
4870
  B,
4835
4871
  L,
4836
- C,
4872
+ N,
4837
4873
  G,
4838
4874
  Q,
4839
4875
  n,
4840
- Ne,
4876
+ Ce,
4841
4877
  pt,
4842
4878
  Dr,
4843
4879
  a,
@@ -4879,7 +4915,7 @@ class Xo extends Tn {
4879
4915
  filteredrandomgamecategories: 20,
4880
4916
  mbsource: 21
4881
4917
  },
4882
- Co,
4918
+ No,
4883
4919
  [-1, -1]
4884
4920
  );
4885
4921
  }
@@ -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/CasinoRandomGame-COg6hoKa.cjs")).then(({default:t})=>{!customElements.get("casino-random-game")&&customElements.define("casino-random-game",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/CasinoRandomGame-Clfo3s5q.cjs")).then(({default:t})=>{!customElements.get("casino-random-game")&&customElements.define("casino-random-game",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoRandomGame-3lGzdCm4.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoRandomGame-HdXGcgeY.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-random-game") && customElements.define("casino-random-game", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoRandomGame-B0mjhEha.js";
1
+ import { C as s } from "../components/CasinoRandomGame-DhycCvIv.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-random-game",
3
- "version": "1.55.0",
3
+ "version": "1.56.2",
4
4
  "type": "module",
5
5
  "main": "esnext/casino-random-game.js",
6
6
  "module": "esnext/casino-random-game.js",