@everymatrix/casino-search-nd 1.98.0 → 1.98.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.
@@ -64,7 +64,7 @@ function Zn(e, t) {
64
64
  function Y(e, t, r) {
65
65
  e.insertBefore(t, r || null);
66
66
  }
67
- function W(e) {
67
+ function j(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
70
  function Vs(e, t) {
@@ -106,10 +106,13 @@ function ce(e, t) {
106
106
  function rr(e, t) {
107
107
  e.value = t ?? "";
108
108
  }
109
- function Ys(e, t, r) {
109
+ function Ys(e, t, r, n) {
110
+ r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
111
+ }
112
+ function Xs(e, t, r) {
110
113
  e.classList.toggle(t, !!r);
111
114
  }
112
- class Xs {
115
+ class qs {
113
116
  /**
114
117
  * @private
115
118
  * @default false
@@ -176,7 +179,7 @@ class Xs {
176
179
  /**
177
180
  * @returns {void} */
178
181
  d() {
179
- this.n.forEach(W);
182
+ this.n.forEach(j);
180
183
  }
181
184
  }
182
185
  function ea(e) {
@@ -207,7 +210,7 @@ let Ot = !1;
207
210
  function $r() {
208
211
  Ot || (Ot = !0, Wr.then(L));
209
212
  }
210
- function qs() {
213
+ function zs() {
211
214
  return $r(), Wr;
212
215
  }
213
216
  function Ht(e) {
@@ -334,7 +337,7 @@ function ha(e, t, r, n, a, i, o = null, s = [-1]) {
334
337
  }) : [], l.update(), c = !0, fe(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
335
338
  if (t.hydrate) {
336
339
  const h = Kn(t.target);
337
- l.fragment && l.fragment.l(h), h.forEach(W);
340
+ l.fragment && l.fragment.l(h), h.forEach(j);
338
341
  } else
339
342
  l.fragment && l.fragment.c();
340
343
  t.intro && Vr(e.$$.fragment), ua(e, t.target, t.anchor), L();
@@ -394,7 +397,7 @@ typeof HTMLElement == "function" && (Yr = class extends HTMLElement {
394
397
  Y(u, i, l);
395
398
  },
396
399
  d: function(u) {
397
- u && W(i);
400
+ u && j(i);
398
401
  }
399
402
  };
400
403
  };
@@ -3244,14 +3247,14 @@ var lt = (
3244
3247
  }
3245
3248
  return t;
3246
3249
  }(lt)
3247
- ), q;
3250
+ ), z;
3248
3251
  (function(e) {
3249
3252
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3250
- })(q || (q = {}));
3253
+ })(z || (z = {}));
3251
3254
  function bi(e) {
3252
3255
  return e.length < 2 ? e : e.reduce(function(t, r) {
3253
3256
  var n = t[t.length - 1];
3254
- return !n || n.type !== q.literal || r.type !== q.literal ? t.push(r) : n.value += r.value, t;
3257
+ return !n || n.type !== z.literal || r.type !== z.literal ? t.push(r) : n.value += r.value, t;
3255
3258
  }, []);
3256
3259
  }
3257
3260
  function yi(e) {
@@ -3261,7 +3264,7 @@ function Qe(e, t, r, n, a, i, o) {
3261
3264
  if (e.length === 1 && or(e[0]))
3262
3265
  return [
3263
3266
  {
3264
- type: q.literal,
3267
+ type: z.literal,
3265
3268
  value: e[0].value
3266
3269
  }
3267
3270
  ];
@@ -3269,14 +3272,14 @@ function Qe(e, t, r, n, a, i, o) {
3269
3272
  var c = l[u];
3270
3273
  if (or(c)) {
3271
3274
  s.push({
3272
- type: q.literal,
3275
+ type: z.literal,
3273
3276
  value: c.value
3274
3277
  });
3275
3278
  continue;
3276
3279
  }
3277
3280
  if (Ga(c)) {
3278
3281
  typeof i == "number" && s.push({
3279
- type: q.literal,
3282
+ type: z.literal,
3280
3283
  value: r.getNumberFormat(t).format(i)
3281
3284
  });
3282
3285
  continue;
@@ -3287,7 +3290,7 @@ function Qe(e, t, r, n, a, i, o) {
3287
3290
  var d = a[h];
3288
3291
  if (Fa(c)) {
3289
3292
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3290
- type: typeof d == "string" ? q.literal : q.object,
3293
+ type: typeof d == "string" ? z.literal : z.object,
3291
3294
  value: d
3292
3295
  });
3293
3296
  continue;
@@ -3295,7 +3298,7 @@ function Qe(e, t, r, n, a, i, o) {
3295
3298
  if (Jr(c)) {
3296
3299
  var m = typeof c.style == "string" ? n.date[c.style] : Rt(c.style) ? c.style.parsedOptions : void 0;
3297
3300
  s.push({
3298
- type: q.literal,
3301
+ type: z.literal,
3299
3302
  value: r.getDateTimeFormat(t, m).format(d)
3300
3303
  });
3301
3304
  continue;
@@ -3303,7 +3306,7 @@ function Qe(e, t, r, n, a, i, o) {
3303
3306
  if (Zr(c)) {
3304
3307
  var m = typeof c.style == "string" ? n.time[c.style] : Rt(c.style) ? c.style.parsedOptions : n.time.medium;
3305
3308
  s.push({
3306
- type: q.literal,
3309
+ type: z.literal,
3307
3310
  value: r.getDateTimeFormat(t, m).format(d)
3308
3311
  });
3309
3312
  continue;
@@ -3311,7 +3314,7 @@ function Qe(e, t, r, n, a, i, o) {
3311
3314
  if (Qr(c)) {
3312
3315
  var m = typeof c.style == "string" ? n.number[c.style] : rn(c.style) ? c.style.parsedOptions : void 0;
3313
3316
  m && m.scale && (d = d * (m.scale || 1)), s.push({
3314
- type: q.literal,
3317
+ type: z.literal,
3315
3318
  value: r.getNumberFormat(t, m).format(d)
3316
3319
  });
3317
3320
  continue;
@@ -3325,7 +3328,7 @@ function Qe(e, t, r, n, a, i, o) {
3325
3328
  }));
3326
3329
  Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(U) {
3327
3330
  return {
3328
- type: typeof U == "string" ? q.literal : q.object,
3331
+ type: typeof U == "string" ? z.literal : z.object,
3329
3332
  value: U
3330
3333
  };
3331
3334
  }));
@@ -3426,7 +3429,7 @@ var Ei = (
3426
3429
  if (l.length === 1)
3427
3430
  return l[0].value;
3428
3431
  var c = l.reduce(function(h, d) {
3429
- return !h.length || d.type !== q.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3432
+ return !h.length || d.type !== z.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3430
3433
  }, []);
3431
3434
  return c.length <= 1 ? c[0] || "" : c;
3432
3435
  }, this.formatToParts = function(u) {
@@ -4585,7 +4588,7 @@ const Er = [], xr = {}, To = (e, t = 0) => {
4585
4588
  return xr[e];
4586
4589
  };
4587
4590
  window.emWidgets = { topic: To };
4588
- const zs = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), nt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4591
+ const Qs = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), nt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4589
4592
  String(Number.MAX_SAFE_INTEGER).length;
4590
4593
  const Co = (e, t) => function(...r) {
4591
4594
  clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
@@ -4604,7 +4607,7 @@ if (typeof window < "u") {
4604
4607
  }
4605
4608
  };
4606
4609
  };
4607
- customElements.define = e(customElements.define), import("./CasinoGameThumbnailNd-RdZ-tZ3Z.js").then(({ default: t }) => {
4610
+ customElements.define = e(customElements.define), import("./CasinoGameThumbnailNd-IxCRMzNi.js").then(({ default: t }) => {
4608
4611
  !customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", t.element);
4609
4612
  });
4610
4613
  }
@@ -4622,18 +4625,18 @@ function he(e) {
4622
4625
  var t = Number(e);
4623
4626
  return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
4624
4627
  }
4625
- function $(e, t) {
4628
+ function W(e, t) {
4626
4629
  if (t.length < e)
4627
4630
  throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
4628
4631
  }
4629
- function X(e) {
4630
- $(1, arguments);
4632
+ function q(e) {
4633
+ W(1, arguments);
4631
4634
  var t = Object.prototype.toString.call(e);
4632
4635
  return e instanceof Date || at(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
4633
4636
  }
4634
4637
  function Po(e, t) {
4635
- $(2, arguments);
4636
- var r = X(e).getTime(), n = he(t);
4638
+ W(2, arguments);
4639
+ var r = q(e).getTime(), n = he(t);
4637
4640
  return new Date(r + n);
4638
4641
  }
4639
4642
  var Oo = {};
@@ -4645,38 +4648,38 @@ function Ho(e) {
4645
4648
  return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
4646
4649
  }
4647
4650
  function Mo(e) {
4648
- return $(1, arguments), e instanceof Date || at(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
4651
+ return W(1, arguments), e instanceof Date || at(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
4649
4652
  }
4650
4653
  function Ro(e) {
4651
- if ($(1, arguments), !Mo(e) && typeof e != "number")
4654
+ if (W(1, arguments), !Mo(e) && typeof e != "number")
4652
4655
  return !1;
4653
- var t = X(e);
4656
+ var t = q(e);
4654
4657
  return !isNaN(Number(t));
4655
4658
  }
4656
4659
  function Tr(e, t) {
4657
- return $(2, arguments), X(e).getTime() - X(t).getTime();
4660
+ return W(2, arguments), q(e).getTime() - q(t).getTime();
4658
4661
  }
4659
4662
  function Ao(e, t) {
4660
- $(2, arguments);
4663
+ W(2, arguments);
4661
4664
  var r = he(t);
4662
4665
  return Po(e, -r);
4663
4666
  }
4664
4667
  var Bo = 864e5;
4665
4668
  function Lo(e) {
4666
- $(1, arguments);
4667
- var t = X(e), r = t.getTime();
4669
+ W(1, arguments);
4670
+ var t = q(e), r = t.getTime();
4668
4671
  t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
4669
4672
  var n = t.getTime(), a = r - n;
4670
4673
  return Math.floor(a / Bo) + 1;
4671
4674
  }
4672
4675
  function it(e) {
4673
- $(1, arguments);
4674
- var t = 1, r = X(e), n = r.getUTCDay(), a = (n < t ? 7 : 0) + n - t;
4676
+ W(1, arguments);
4677
+ var t = 1, r = q(e), n = r.getUTCDay(), a = (n < t ? 7 : 0) + n - t;
4675
4678
  return r.setUTCDate(r.getUTCDate() - a), r.setUTCHours(0, 0, 0, 0), r;
4676
4679
  }
4677
4680
  function xn(e) {
4678
- $(1, arguments);
4679
- var t = X(e), r = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
4681
+ W(1, arguments);
4682
+ var t = q(e), r = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
4680
4683
  n.setUTCFullYear(r + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
4681
4684
  var a = it(n), i = /* @__PURE__ */ new Date(0);
4682
4685
  i.setUTCFullYear(r, 0, 4), i.setUTCHours(0, 0, 0, 0);
@@ -4684,7 +4687,7 @@ function xn(e) {
4684
4687
  return t.getTime() >= a.getTime() ? r + 1 : t.getTime() >= o.getTime() ? r : r - 1;
4685
4688
  }
4686
4689
  function No(e) {
4687
- $(1, arguments);
4690
+ W(1, arguments);
4688
4691
  var t = xn(e), r = /* @__PURE__ */ new Date(0);
4689
4692
  r.setUTCFullYear(t, 0, 4), r.setUTCHours(0, 0, 0, 0);
4690
4693
  var n = it(r);
@@ -4692,23 +4695,23 @@ function No(e) {
4692
4695
  }
4693
4696
  var Io = 6048e5;
4694
4697
  function Do(e) {
4695
- $(1, arguments);
4696
- var t = X(e), r = it(t).getTime() - No(t).getTime();
4698
+ W(1, arguments);
4699
+ var t = q(e), r = it(t).getTime() - No(t).getTime();
4697
4700
  return Math.round(r / Io) + 1;
4698
4701
  }
4699
4702
  function ot(e, t) {
4700
4703
  var r, n, a, i, o, s, u, l;
4701
- $(1, arguments);
4704
+ W(1, arguments);
4702
4705
  var c = dt(), h = he((r = (n = (a = (i = t?.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && a !== void 0 ? a : c.weekStartsOn) !== null && n !== void 0 ? n : (u = c.locale) === null || u === void 0 || (l = u.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && r !== void 0 ? r : 0);
4703
4706
  if (!(h >= 0 && h <= 6))
4704
4707
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4705
- var d = X(e), m = d.getUTCDay(), g = (m < h ? 7 : 0) + m - h;
4708
+ var d = q(e), m = d.getUTCDay(), g = (m < h ? 7 : 0) + m - h;
4706
4709
  return d.setUTCDate(d.getUTCDate() - g), d.setUTCHours(0, 0, 0, 0), d;
4707
4710
  }
4708
4711
  function Tn(e, t) {
4709
4712
  var r, n, a, i, o, s, u, l;
4710
- $(1, arguments);
4711
- var c = X(e), h = c.getUTCFullYear(), d = dt(), m = he((r = (n = (a = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && a !== void 0 ? a : d.firstWeekContainsDate) !== null && n !== void 0 ? n : (u = d.locale) === null || u === void 0 || (l = u.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && r !== void 0 ? r : 1);
4713
+ W(1, arguments);
4714
+ var c = q(e), h = c.getUTCFullYear(), d = dt(), m = he((r = (n = (a = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && a !== void 0 ? a : d.firstWeekContainsDate) !== null && n !== void 0 ? n : (u = d.locale) === null || u === void 0 || (l = u.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && r !== void 0 ? r : 1);
4712
4715
  if (!(m >= 1 && m <= 7))
4713
4716
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
4714
4717
  var g = /* @__PURE__ */ new Date(0);
@@ -4720,7 +4723,7 @@ function Tn(e, t) {
4720
4723
  }
4721
4724
  function ko(e, t) {
4722
4725
  var r, n, a, i, o, s, u, l;
4723
- $(1, arguments);
4726
+ W(1, arguments);
4724
4727
  var c = dt(), h = he((r = (n = (a = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && a !== void 0 ? a : c.firstWeekContainsDate) !== null && n !== void 0 ? n : (u = c.locale) === null || u === void 0 || (l = u.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && r !== void 0 ? r : 1), d = Tn(e, t), m = /* @__PURE__ */ new Date(0);
4725
4728
  m.setUTCFullYear(d, 0, h), m.setUTCHours(0, 0, 0, 0);
4726
4729
  var g = ot(m, t);
@@ -4728,8 +4731,8 @@ function ko(e, t) {
4728
4731
  }
4729
4732
  var Uo = 6048e5;
4730
4733
  function Fo(e, t) {
4731
- $(1, arguments);
4732
- var r = X(e), n = ot(r, t).getTime() - ko(r, t).getTime();
4734
+ W(1, arguments);
4735
+ var r = q(e), n = ot(r, t).getTime() - ko(r, t).getTime();
4733
4736
  return Math.round(n / Uo) + 1;
4734
4737
  }
4735
4738
  function O(e, t) {
@@ -5821,9 +5824,9 @@ var ds = /^(\d+)(th|st|nd|rd)?/i, ms = /\d+/i, gs = {
5821
5824
  firstWeekContainsDate: 1
5822
5825
  }
5823
5826
  }, Ps = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Os = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Hs = /^'([^]*?)'?$/, Ms = /''/g, Rs = /[a-zA-Z]/;
5824
- function Qs(e, t, r) {
5827
+ function Js(e, t, r) {
5825
5828
  var n, a, i, o, s, u, l, c, h, d, m, g, b, _;
5826
- $(2, arguments);
5829
+ W(2, arguments);
5827
5830
  var v = String(t), B = dt(), M = (n = (a = void 0) !== null && a !== void 0 ? a : B.locale) !== null && n !== void 0 ? n : Cs, k = he((i = (o = (s = (u = void 0) !== null && u !== void 0 ? u : void 0) !== null && s !== void 0 ? s : B.firstWeekContainsDate) !== null && o !== void 0 ? o : (l = B.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
5828
5831
  if (!(k >= 1 && k <= 7))
5829
5832
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
@@ -5834,7 +5837,7 @@ function Qs(e, t, r) {
5834
5837
  throw new RangeError("locale must contain localize property");
5835
5838
  if (!M.formatLong)
5836
5839
  throw new RangeError("locale must contain formatLong property");
5837
- var T = X(e);
5840
+ var T = q(e);
5838
5841
  if (!Ro(T))
5839
5842
  throw new RangeError("Invalid time value");
5840
5843
  var P = Ho(T), G = Ao(T, P), R = {
@@ -5843,23 +5846,23 @@ function Qs(e, t, r) {
5843
5846
  locale: M,
5844
5847
  _originalDate: T
5845
5848
  }, C = v.match(Os).map(function(E) {
5846
- var V = E[0];
5847
- if (V === "p" || V === "P") {
5848
- var ie = Wo[V];
5849
+ var $ = E[0];
5850
+ if ($ === "p" || $ === "P") {
5851
+ var ie = Wo[$];
5849
5852
  return ie(E, M.formatLong);
5850
5853
  }
5851
5854
  return E;
5852
5855
  }).join("").match(Ps).map(function(E) {
5853
5856
  if (E === "''")
5854
5857
  return "'";
5855
- var V = E[0];
5856
- if (V === "'")
5858
+ var $ = E[0];
5859
+ if ($ === "'")
5857
5860
  return As(E);
5858
- var ie = Go[V];
5861
+ var ie = Go[$];
5859
5862
  if (ie)
5860
5863
  return Xo(E) && Hr(E, t, String(e)), Yo(E) && Hr(E, t, String(e)), ie(G, E, M.localize, R);
5861
- if (V.match(Rs))
5862
- throw new RangeError("Format string contains an unescaped latin alphabet character `" + V + "`");
5864
+ if ($.match(Rs))
5865
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + $ + "`");
5863
5866
  return E;
5864
5867
  }).join("");
5865
5868
  return C;
@@ -5869,13 +5872,13 @@ function As(e) {
5869
5872
  return t ? t[1].replace(Ms, "'") : e;
5870
5873
  }
5871
5874
  function Bs(e, t) {
5872
- $(2, arguments);
5873
- var r = X(e), n = X(t);
5875
+ W(2, arguments);
5876
+ var r = q(e), n = q(t);
5874
5877
  return r.getTime() > n.getTime();
5875
5878
  }
5876
5879
  function Ls(e, t) {
5877
- $(2, arguments);
5878
- var r = X(e), n = X(t);
5880
+ W(2, arguments);
5881
+ var r = q(e), n = q(t);
5879
5882
  return r.getTime() < n.getTime();
5880
5883
  }
5881
5884
  function Ns(e, t, r) {
@@ -5914,7 +5917,7 @@ function Rr(e) {
5914
5917
  (s[18] ? "NotVisible" : "")) && w(t, "class", a);
5915
5918
  },
5916
5919
  d(s) {
5917
- s && W(t), i = !1, o();
5920
+ s && j(t), i = !1, o();
5918
5921
  }
5919
5922
  };
5920
5923
  }
@@ -5958,7 +5961,7 @@ function Ds(e) {
5958
5961
  (c[19] == !0 ? "" : "NotVisible")) && w(r, "class", a);
5959
5962
  },
5960
5963
  d(c) {
5961
- c && (W(t), W(r)), s && s.d(c), u && u.d(), l && l.d();
5964
+ c && (j(t), j(r)), s && s.d(c), u && u.d(), l && l.d();
5962
5965
  }
5963
5966
  };
5964
5967
  }
@@ -5980,7 +5983,7 @@ function ks(e) {
5980
5983
  a[23]("loading") + "") && ce(n, r);
5981
5984
  },
5982
5985
  d(a) {
5983
- a && W(t);
5986
+ a && j(t);
5984
5987
  }
5985
5988
  };
5986
5989
  }
@@ -6002,7 +6005,7 @@ function Us(e) {
6002
6005
  a[23]("searchResult") + "") && ce(n, r);
6003
6006
  },
6004
6007
  d(a) {
6005
- a && W(t);
6008
+ a && j(t);
6006
6009
  }
6007
6010
  };
6008
6011
  }
@@ -6027,7 +6030,7 @@ function Fs(e) {
6027
6030
  i[15].length == 0 ? a ? a.p(i, o) : (a = Br(i), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
6028
6031
  },
6029
6032
  d(i) {
6030
- i && (W(t), W(r)), n && n.d(i), a && a.d(i);
6033
+ i && (j(t), j(r)), n && n.d(i), a && a.d(i);
6031
6034
  }
6032
6035
  };
6033
6036
  }
@@ -6049,7 +6052,7 @@ function Ar(e) {
6049
6052
  a[23]("recentSearch") + "") && ce(n, r);
6050
6053
  },
6051
6054
  d(a) {
6052
- a && W(t);
6055
+ a && j(t);
6053
6056
  }
6054
6057
  };
6055
6058
  }
@@ -6078,7 +6081,7 @@ function Br(e) {
6078
6081
  (u[11] == "true" ? "WithIcon" : "")) && w(t, "class", o);
6079
6082
  },
6080
6083
  d(u) {
6081
- u && W(t), s && s.d();
6084
+ u && j(t), s && s.d();
6082
6085
  }
6083
6086
  };
6084
6087
  }
@@ -6092,7 +6095,7 @@ function Lr(e) {
6092
6095
  Y(r, t, n);
6093
6096
  },
6094
6097
  d(r) {
6095
- r && W(t);
6098
+ r && j(t);
6096
6099
  }
6097
6100
  };
6098
6101
  }
@@ -6128,7 +6131,7 @@ function Nr(e) {
6128
6131
  ), t = sa(t, s, i, 1, o, a, r, n.parentNode, oa, Ir, n, Mr));
6129
6132
  },
6130
6133
  d(o) {
6131
- o && W(n);
6134
+ o && j(n);
6132
6135
  for (let s = 0; s < t.length; s += 1)
6133
6136
  t[s].d(o);
6134
6137
  }
@@ -6176,7 +6179,7 @@ function Ir(e, t) {
6176
6179
  t[69]?.icons
6177
6180
  )), p(r, "gamename", o = /*game*/
6178
6181
  t[69].name), p(r, "gamevendor", s = /*game*/
6179
- t[69].vendor.name), p(r, "gameLaunchUrl", u = /*game*/
6182
+ t[69].vendor?.name), p(r, "gameLaunchUrl", u = /*game*/
6180
6183
  t[69].launchUrl), p(r, "gameisnew", l = /*game*/
6181
6184
  t[69].isNew), p(r, "gametag", c = /*game*/
6182
6185
  t[69].advancedTags?.length > 0 && /*addGameTag*/
@@ -6283,7 +6286,7 @@ function Ir(e, t) {
6283
6286
  32768 && o !== (o = /*game*/
6284
6287
  t[69].name) && p(r, "gamename", o), v[0] & /*searchArray*/
6285
6288
  32768 && s !== (s = /*game*/
6286
- t[69].vendor.name) && p(r, "gamevendor", s), v[0] & /*searchArray*/
6289
+ t[69].vendor?.name) && p(r, "gamevendor", s), v[0] & /*searchArray*/
6287
6290
  32768 && u !== (u = /*game*/
6288
6291
  t[69].launchUrl) && p(r, "gameLaunchUrl", u), v[0] & /*searchArray*/
6289
6292
  32768 && l !== (l = /*game*/
@@ -6357,7 +6360,7 @@ function Ir(e, t) {
6357
6360
  );
6358
6361
  },
6359
6362
  d(_) {
6360
- _ && W(r);
6363
+ _ && j(r);
6361
6364
  }
6362
6365
  };
6363
6366
  }
@@ -6391,7 +6394,7 @@ function Dr(e) {
6391
6394
  (d[11] == "true" ? "WithIcon" : "")) && w(t, "class", c);
6392
6395
  },
6393
6396
  d(d) {
6394
- d && W(t), h && h.d();
6397
+ d && j(t), h && h.d();
6395
6398
  }
6396
6399
  };
6397
6400
  }
@@ -6405,7 +6408,7 @@ function kr(e) {
6405
6408
  Y(r, t, n);
6406
6409
  },
6407
6410
  d(r) {
6408
- r && W(t);
6411
+ r && j(t);
6409
6412
  }
6410
6413
  };
6411
6414
  }
@@ -6499,7 +6502,7 @@ function Gs(e) {
6499
6502
  i: Z,
6500
6503
  o: Z,
6501
6504
  d(C) {
6502
- C && W(t), e[42](null), T && T.d(), R.d(), e[45](null), k = !1, fe(U);
6505
+ C && j(t), e[42](null), T && T.d(), R.d(), e[45](null), k = !1, fe(U);
6503
6506
  }
6504
6507
  };
6505
6508
  }
@@ -6509,7 +6512,7 @@ function js(e, t, r) {
6509
6512
  zn(e, ro, (f) => r(23, n = f));
6510
6513
  let { endpoint: a = "" } = t, { datasource: i = "" } = t, { session: o = "" } = t, { userid: s = "" } = t, { lang: u = "en" } = t, { mbsource: l } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { integratedgameframedesktop: d = "false" } = t, { integratedgameframemobile: m = "false" } = t, { showgamename: g = "" } = t, { gamepagemodalurl: b = "true" } = t, { translationurl: _ = "" } = t, { showfavorites: v = "" } = t, { cancelbutton: B = "true" } = t, { notfoundicon: M = "false" } = t, { controlchannel: k = "casino-search" } = t, { allowedorigins: U = window.location.origin } = t, { requiredicon: T = "false" } = t, { allowsingleclickgameentry: P = "false" } = t, { enablesearchcontainergrid: G = "false" } = t;
6511
6514
  const R = () => (U || "").split(",").map((f) => f.trim()).filter(Boolean);
6512
- let C = window.navigator.userAgent, E = [], V = [], ie = {}, ee = "", He, je = !0, te = !1, Q = !1, re, Me, On, We = !1, $e, Ve, qt = [];
6515
+ let C = window.navigator.userAgent, E = [], $ = [], ie = {}, ee = "", He, je = !0, te = !1, Q = !1, re, Me, On, We = !1, $e, Ve, qt = [];
6513
6516
  const mt = (f) => {
6514
6517
  Object.keys(f).forEach((y) => {
6515
6518
  no(y, f[y]);
@@ -6549,17 +6552,17 @@ function js(e, t, r) {
6549
6552
  r(15, E = []);
6550
6553
  let f = localStorage.getItem("searchedGamesWds_casino"), y = [];
6551
6554
  f && (y = f.split(","));
6552
- let I = [], F = 0, j = y.length;
6553
- if (j > 0) {
6554
- for (F = 0; F < j; F++) {
6555
- let z = new URL(`${a}/v1/casino/games/${y[F]}`);
6556
- z.searchParams.append("language", u), z.searchParams.append("datasource", i), z.searchParams.append("platform", nt(C)), I.push(Nn(z, y[F]));
6555
+ let I = [], F = 0, X = y.length;
6556
+ if (X > 0) {
6557
+ for (F = 0; F < X; F++) {
6558
+ let V = new URL(`${a}/v1/casino/games/${y[F]}`);
6559
+ V.searchParams.append("language", u), V.searchParams.append("datasource", i), V.searchParams.append("platform", nt(C)), I.push(Nn(V, y[F]));
6557
6560
  }
6558
- Promise.all(I).then((z) => {
6559
- z = z.filter(function(ue) {
6561
+ Promise.all(I).then((V) => {
6562
+ V = V.filter(function(ue) {
6560
6563
  return !!ue;
6561
- }), r(15, E = z.map((ue) => (ue.isFavorite = Jt(ue.id), ue))), E.length ? Re("searchSuccess", "SearchWidget") : Re("searchFail", "SearchWidget");
6562
- }).catch((z) => {
6564
+ }), r(15, E = V.map((ue) => (ue.isFavorite = Jt(ue.id), ue))), E.length ? Re("searchSuccess", "SearchWidget") : Re("searchFail", "SearchWidget");
6565
+ }).catch((V) => {
6563
6566
  Re("searchError", "SearchWidget");
6564
6567
  });
6565
6568
  }
@@ -6597,18 +6600,20 @@ function js(e, t, r) {
6597
6600
  I(F);
6598
6601
  });
6599
6602
  }), Nn = (f, y) => new Promise((I, F) => {
6600
- r(20, Q = !0), y && Object.keys(ie).indexOf(y) >= 0 ? (r(20, Q = !1), I(ie[y])) : fetch(f).then((j) => j.json()).then((j) => {
6601
- r(20, Q = !1), j.error || (ie[j[0].gameId] = j[0]), I(j[0]);
6602
- }).catch((j) => {
6603
- r(20, Q = !1), console.error(j);
6603
+ r(20, Q = !0), y && Object.keys(ie).indexOf(y) >= 0 ? (r(20, Q = !1), I(ie[y])) : fetch(f).then((X) => X.json()).then((X) => {
6604
+ r(20, Q = !1);
6605
+ const V = X?.[0]?.gameId ? X[0] : null;
6606
+ V && (ie[V.gameId] = V), I(V);
6607
+ }).catch((X) => {
6608
+ r(20, Q = !1), console.error(X);
6604
6609
  try {
6605
6610
  me({
6606
6611
  type: "SearchError",
6607
- message: String(j)
6612
+ message: String(X)
6608
6613
  });
6609
6614
  } catch {
6610
6615
  }
6611
- F(j);
6616
+ F(X);
6612
6617
  });
6613
6618
  }), In = () => {
6614
6619
  const f = new URL(`${a}/v1/player/${Ve}/favorites/`);
@@ -6626,15 +6631,15 @@ function js(e, t, r) {
6626
6631
  if (f?.length === 0)
6627
6632
  return "";
6628
6633
  let y, I = 99999999999, F;
6629
- const j = new Date(Date.now());
6630
- return f.forEach((z, ue) => {
6631
- const Xn = new Date(z.schedules[0].startTime), vt = new Date(z.schedules[0].endTime);
6632
- Tr(new Date(vt), new Date(j)) < I && (I = Tr(new Date(vt), new Date(j)), F = ue), Bs(new Date(j), new Date(Xn)) && Ls(new Date(j), new Date(vt)) && (y = f[F].name);
6634
+ const X = new Date(Date.now());
6635
+ return f.forEach((V, ue) => {
6636
+ const Xn = new Date(V.schedules[0].startTime), vt = new Date(V.schedules[0].endTime);
6637
+ Tr(new Date(vt), new Date(X)) < I && (I = Tr(new Date(vt), new Date(X)), F = ue), Bs(new Date(X), new Date(Xn)) && Ls(new Date(X), new Date(vt)) && (y = f[F].name);
6633
6638
  }), y;
6634
6639
  }, Un = (f) => {
6635
- if (V = localStorage.getItem("searchedGamesWds_casino"), V ? V = V.split(",") : V = [], V.indexOf(f) === -1) {
6640
+ if ($ = localStorage.getItem("searchedGamesWds_casino"), $ ? $ = $.split(",") : $ = [], $.indexOf(f) === -1) {
6636
6641
  let y;
6637
- V.unshift(f), y = V.join(","), localStorage.setItem("searchedGamesWds_casino", y);
6642
+ $.unshift(f), y = $.join(","), localStorage.setItem("searchedGamesWds_casino", y);
6638
6643
  }
6639
6644
  }, Ae = () => {
6640
6645
  r(16, ee = ""), r(18, je = !0), r(20, Q = !1), r(15, E = []), r(19, te = !1), Kt(te);
@@ -6927,27 +6932,28 @@ fa(Ws, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsour
6927
6932
  export {
6928
6933
  Pe as $,
6929
6934
  jr as A,
6930
- qs as B,
6931
- Qs as C,
6932
- ar as D,
6933
- Vs as E,
6934
- ro as F,
6935
- oo as G,
6936
- Xs as H,
6937
- so as I,
6938
- uo as J,
6939
- Ws as K,
6935
+ Ys as B,
6936
+ zs as C,
6937
+ Js as D,
6938
+ ar as E,
6939
+ Vs as F,
6940
+ ro as G,
6941
+ qs as H,
6942
+ oo as I,
6943
+ so as J,
6944
+ uo as K,
6945
+ Ws as L,
6940
6946
  da as S,
6941
6947
  dn as a,
6942
6948
  Qn as b,
6943
6949
  fa as c,
6944
- W as d,
6950
+ j as d,
6945
6951
  $s as e,
6946
6952
  L as f,
6947
6953
  p as g,
6948
6954
  w as h,
6949
6955
  ha as i,
6950
- zs as j,
6956
+ Qs as j,
6951
6957
  Y as k,
6952
6958
  H as l,
6953
6959
  N as m,
@@ -6957,7 +6963,7 @@ export {
6957
6963
  ra as q,
6958
6964
  Ns as r,
6959
6965
  Fr as s,
6960
- Ys as t,
6966
+ Xs as t,
6961
6967
  ce as u,
6962
6968
  be as v,
6963
6969
  ae as w,
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-lkJNx7nv.cjs")).then(e=>e.CasinoSearchNd_ce).then(({default:e})=>{!customElements.get("casino-search-nd")&&customElements.define("casino-search-nd",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-DOUZ_m6G.cjs")).then(e=>e.CasinoSearchNd_ce).then(({default:e})=>{!customElements.get("casino-search-nd")&&customElements.define("casino-search-nd",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoSearchNd-DtiVLKlD.js").then((e) => e.K).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoSearchNd-CMvZiRPL.js").then((e) => e.L).then(({ default: e }) => {
14
14
  !customElements.get("casino-search-nd") && customElements.define("casino-search-nd", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { K as s } from "../components/CasinoSearchNd-C2FtElTh.js";
1
+ import { L as s } from "../components/CasinoSearchNd-zDUnp765.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-search-nd",
3
- "version": "1.98.0",
3
+ "version": "1.98.2",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-search-nd.cjs",
6
6
  "module": "esnext/casino-search-nd.js",